Add a configure check for pthread_rwlock_init.
[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 ENABLE_CBE_PRINTF_A
845 EXTRA_OPTIONS
846 BINUTILS_INCDIR
847 CXX
848 CXXFLAGS
849 ac_ct_CXX
850 NM
851 ifGNUmake
852 LN_S
853 CMP
854 CP
855 DATE
856 FIND
857 MKDIR
858 MV
859 RANLIB
860 RM
861 SED
862 TAR
863 BINPWD
864 GRAPHVIZ
865 DOT
866 GV
867 DOTTY
868 PERL
869 HAVE_PERL
870 INSTALL_PROGRAM
871 INSTALL_SCRIPT
872 INSTALL_DATA
873 BZIP2
874 DOXYGEN
875 GROFF
876 GZIP
877 POD2HTML
878 POD2MAN
879 RUNTEST
880 TCLSH
881 ZIP
882 OCAMLC
883 OCAMLOPT
884 OCAMLDEP
885 OCAMLDOC
886 GAS
887 INSTALL_LTDL_TRUE
888 INSTALL_LTDL_FALSE
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
891 LIBADD_DL
892 ECHO
893 AR
894 STRIP
895 CXXCPP
896 F77
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 LLVMGCCCOMMAND
901 LLVMGXXCOMMAND
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 BINDINGS_TO_BUILD
928 ALL_BINDINGS
929 OCAML_LIBDIR
930 ENABLE_VISIBILITY_INLINES_HIDDEN
931 RPATH
932 RDYNAMIC
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936       ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 CPPFLAGS
943 CPP
944 CXX
945 CXXFLAGS
946 CCC
947 CXXCPP
948 F77
949 FFLAGS'
950 ac_subdirs_all='projects/sample
951 projects/privbracket
952 projects/llvm-stacker
953 projects/llvm-test
954 projects/test-suite
955 projects/llvm-reopt
956 projects/llvm-gcc
957 projects/llvm-java
958 projects/llvm-tv
959 projects/llvm-poolalloc
960 projects/poolalloc
961 projects/llvm-kernel'
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
982
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1008
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1012 do
1013   # If the previous option needs an argument, assign it.
1014   if test -n "$ac_prev"; then
1015     eval $ac_prev=\$ac_option
1016     ac_prev=
1017     continue
1018   fi
1019
1020   case $ac_option in
1021   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022   *)    ac_optarg=yes ;;
1023   esac
1024
1025   # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027   case $ac_dashdash$ac_option in
1028   --)
1029     ac_dashdash=yes ;;
1030
1031   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032     ac_prev=bindir ;;
1033   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034     bindir=$ac_optarg ;;
1035
1036   -build | --build | --buil | --bui | --bu)
1037     ac_prev=build_alias ;;
1038   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039     build_alias=$ac_optarg ;;
1040
1041   -cache-file | --cache-file | --cache-fil | --cache-fi \
1042   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043     ac_prev=cache_file ;;
1044   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046     cache_file=$ac_optarg ;;
1047
1048   --config-cache | -C)
1049     cache_file=config.cache ;;
1050
1051   -datadir | --datadir | --datadi | --datad)
1052     ac_prev=datadir ;;
1053   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054     datadir=$ac_optarg ;;
1055
1056   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057   | --dataroo | --dataro | --datar)
1058     ac_prev=datarootdir ;;
1059   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061     datarootdir=$ac_optarg ;;
1062
1063   -disable-* | --disable-*)
1064     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070     eval enable_$ac_feature=no ;;
1071
1072   -docdir | --docdir | --docdi | --doc | --do)
1073     ac_prev=docdir ;;
1074   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075     docdir=$ac_optarg ;;
1076
1077   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078     ac_prev=dvidir ;;
1079   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080     dvidir=$ac_optarg ;;
1081
1082   -enable-* | --enable-*)
1083     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087    { (exit 1); exit 1; }; }
1088     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089     eval enable_$ac_feature=\$ac_optarg ;;
1090
1091   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093   | --exec | --exe | --ex)
1094     ac_prev=exec_prefix ;;
1095   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097   | --exec=* | --exe=* | --ex=*)
1098     exec_prefix=$ac_optarg ;;
1099
1100   -gas | --gas | --ga | --g)
1101     # Obsolete; use --with-gas.
1102     with_gas=yes ;;
1103
1104   -help | --help | --hel | --he | -h)
1105     ac_init_help=long ;;
1106   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107     ac_init_help=recursive ;;
1108   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109     ac_init_help=short ;;
1110
1111   -host | --host | --hos | --ho)
1112     ac_prev=host_alias ;;
1113   -host=* | --host=* | --hos=* | --ho=*)
1114     host_alias=$ac_optarg ;;
1115
1116   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117     ac_prev=htmldir ;;
1118   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119   | --ht=*)
1120     htmldir=$ac_optarg ;;
1121
1122   -includedir | --includedir | --includedi | --included | --include \
1123   | --includ | --inclu | --incl | --inc)
1124     ac_prev=includedir ;;
1125   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126   | --includ=* | --inclu=* | --incl=* | --inc=*)
1127     includedir=$ac_optarg ;;
1128
1129   -infodir | --infodir | --infodi | --infod | --info | --inf)
1130     ac_prev=infodir ;;
1131   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132     infodir=$ac_optarg ;;
1133
1134   -libdir | --libdir | --libdi | --libd)
1135     ac_prev=libdir ;;
1136   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137     libdir=$ac_optarg ;;
1138
1139   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140   | --libexe | --libex | --libe)
1141     ac_prev=libexecdir ;;
1142   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143   | --libexe=* | --libex=* | --libe=*)
1144     libexecdir=$ac_optarg ;;
1145
1146   -localedir | --localedir | --localedi | --localed | --locale)
1147     ac_prev=localedir ;;
1148   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149     localedir=$ac_optarg ;;
1150
1151   -localstatedir | --localstatedir | --localstatedi | --localstated \
1152   | --localstate | --localstat | --localsta | --localst | --locals)
1153     ac_prev=localstatedir ;;
1154   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156     localstatedir=$ac_optarg ;;
1157
1158   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159     ac_prev=mandir ;;
1160   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161     mandir=$ac_optarg ;;
1162
1163   -nfp | --nfp | --nf)
1164     # Obsolete; use --without-fp.
1165     with_fp=no ;;
1166
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n)
1169     no_create=yes ;;
1170
1171   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173     no_recursion=yes ;;
1174
1175   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177   | --oldin | --oldi | --old | --ol | --o)
1178     ac_prev=oldincludedir ;;
1179   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182     oldincludedir=$ac_optarg ;;
1183
1184   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185     ac_prev=prefix ;;
1186   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187     prefix=$ac_optarg ;;
1188
1189   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190   | --program-pre | --program-pr | --program-p)
1191     ac_prev=program_prefix ;;
1192   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194     program_prefix=$ac_optarg ;;
1195
1196   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197   | --program-suf | --program-su | --program-s)
1198     ac_prev=program_suffix ;;
1199   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201     program_suffix=$ac_optarg ;;
1202
1203   -program-transform-name | --program-transform-name \
1204   | --program-transform-nam | --program-transform-na \
1205   | --program-transform-n | --program-transform- \
1206   | --program-transform | --program-transfor \
1207   | --program-transfo | --program-transf \
1208   | --program-trans | --program-tran \
1209   | --progr-tra | --program-tr | --program-t)
1210     ac_prev=program_transform_name ;;
1211   -program-transform-name=* | --program-transform-name=* \
1212   | --program-transform-nam=* | --program-transform-na=* \
1213   | --program-transform-n=* | --program-transform-=* \
1214   | --program-transform=* | --program-transfor=* \
1215   | --program-transfo=* | --program-transf=* \
1216   | --program-trans=* | --program-tran=* \
1217   | --progr-tra=* | --program-tr=* | --program-t=*)
1218     program_transform_name=$ac_optarg ;;
1219
1220   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221     ac_prev=pdfdir ;;
1222   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223     pdfdir=$ac_optarg ;;
1224
1225   -psdir | --psdir | --psdi | --psd | --ps)
1226     ac_prev=psdir ;;
1227   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228     psdir=$ac_optarg ;;
1229
1230   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231   | -silent | --silent | --silen | --sile | --sil)
1232     silent=yes ;;
1233
1234   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235     ac_prev=sbindir ;;
1236   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237   | --sbi=* | --sb=*)
1238     sbindir=$ac_optarg ;;
1239
1240   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242   | --sharedst | --shareds | --shared | --share | --shar \
1243   | --sha | --sh)
1244     ac_prev=sharedstatedir ;;
1245   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248   | --sha=* | --sh=*)
1249     sharedstatedir=$ac_optarg ;;
1250
1251   -site | --site | --sit)
1252     ac_prev=site ;;
1253   -site=* | --site=* | --sit=*)
1254     site=$ac_optarg ;;
1255
1256   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257     ac_prev=srcdir ;;
1258   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259     srcdir=$ac_optarg ;;
1260
1261   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262   | --syscon | --sysco | --sysc | --sys | --sy)
1263     ac_prev=sysconfdir ;;
1264   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266     sysconfdir=$ac_optarg ;;
1267
1268   -target | --target | --targe | --targ | --tar | --ta | --t)
1269     ac_prev=target_alias ;;
1270   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271     target_alias=$ac_optarg ;;
1272
1273   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274     verbose=yes ;;
1275
1276   -version | --version | --versio | --versi | --vers | -V)
1277     ac_init_version=: ;;
1278
1279   -with-* | --with-*)
1280     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283       { echo "$as_me: error: invalid package name: $ac_package" >&2
1284    { (exit 1); exit 1; }; }
1285     ac_package=`echo $ac_package| sed 's/-/_/g'`
1286     eval with_$ac_package=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/-/_/g'`
1295     eval with_$ac_package=no ;;
1296
1297   --x)
1298     # Obsolete; use --with-x.
1299     with_x=yes ;;
1300
1301   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302   | --x-incl | --x-inc | --x-in | --x-i)
1303     ac_prev=x_includes ;;
1304   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306     x_includes=$ac_optarg ;;
1307
1308   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310     ac_prev=x_libraries ;;
1311   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313     x_libraries=$ac_optarg ;;
1314
1315   -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317    { (exit 1); exit 1; }; }
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325    { (exit 1); exit 1; }; }
1326     eval $ac_envvar=\$ac_optarg
1327     export $ac_envvar ;;
1328
1329   *)
1330     # FIXME: should be removed in autoconf 3.0.
1331     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335     ;;
1336
1337   esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342   { echo "$as_me: error: missing argument to $ac_option" >&2
1343    { (exit 1); exit 1; }; }
1344 fi
1345
1346 # Be sure to have absolute directory names.
1347 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348                 datadir sysconfdir sharedstatedir localstatedir includedir \
1349                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350                 libdir localedir mandir
1351 do
1352   eval ac_val=\$$ac_var
1353   case $ac_val in
1354     [\\/$]* | ?:[\\/]* )  continue;;
1355     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356   esac
1357   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358    { (exit 1); exit 1; }; }
1359 done
1360
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370   if test "x$build_alias" = x; then
1371     cross_compiling=maybe
1372     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373     If a cross compiler is detected then cross compile mode will be used." >&2
1374   elif test "x$build_alias" != "x$host_alias"; then
1375     cross_compiling=yes
1376   fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388   { echo "$as_me: error: Working directory cannot be determined" >&2
1389    { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391   { echo "$as_me: error: pwd does not report name of working directory" >&2
1392    { (exit 1); exit 1; }; }
1393
1394
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397   ac_srcdir_defaulted=yes
1398   # Try the directory containing this script, then the parent directory.
1399   ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401          X"$0" : 'X\(//\)[^/]' \| \
1402          X"$0" : 'X\(//\)$' \| \
1403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 echo X"$0" |
1405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)[^/].*/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\).*/{
1418             s//\1/
1419             q
1420           }
1421           s/.*/./; q'`
1422   srcdir=$ac_confdir
1423   if test ! -r "$srcdir/$ac_unique_file"; then
1424     srcdir=..
1425   fi
1426 else
1427   ac_srcdir_defaulted=no
1428 fi
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432    { (exit 1); exit 1; }; }
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437    { (exit 1); exit 1; }; }
1438         pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441   srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_env_${ac_var}_value=\$${ac_var}
1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460   # Omit some internal or obsolete options to make the list less imposing.
1461   # This message is too long to be a string in the A/UX 3.1 sh.
1462   cat <<_ACEOF
1463 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473   -h, --help              display this help and exit
1474       --help=short        display options specific to this package
1475       --help=recursive    display the short help of all the included packages
1476   -V, --version           display version information and exit
1477   -q, --quiet, --silent   do not print \`checking...' messages
1478       --cache-file=FILE   cache test results in FILE [disabled]
1479   -C, --config-cache      alias for \`--cache-file=config.cache'
1480   -n, --no-create         do not create output files
1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484   --prefix=PREFIX         install architecture-independent files in PREFIX
1485                           [$ac_default_prefix]
1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                           [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497   --bindir=DIR           user executables [EPREFIX/bin]
1498   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1499   --libexecdir=DIR       program executables [EPREFIX/libexec]
1500   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1501   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1502   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1503   --libdir=DIR           object code libraries [EPREFIX/lib]
1504   --includedir=DIR       C header files [PREFIX/include]
1505   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1506   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1507   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1508   --infodir=DIR          info documentation [DATAROOTDIR/info]
1509   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1510   --mandir=DIR           man documentation [DATAROOTDIR/man]
1511   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1512   --htmldir=DIR          html documentation [DOCDIR]
1513   --dvidir=DIR           dvi documentation [DOCDIR]
1514   --pdfdir=DIR           pdf documentation [DOCDIR]
1515   --psdir=DIR            ps documentation [DOCDIR]
1516 _ACEOF
1517
1518   cat <<\_ACEOF
1519
1520 System types:
1521   --build=BUILD     configure for building on BUILD [guessed]
1522   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523   --target=TARGET   configure for building compilers for TARGET [HOST]
1524 _ACEOF
1525 fi
1526
1527 if test -n "$ac_init_help"; then
1528   case $ac_init_help in
1529      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1530    esac
1531   cat <<\_ACEOF
1532
1533 Optional Features:
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-optimized      Compile with optimizations enabled (default is NO)
1537   --enable-profiling      Compile with profiling enabled (default is NO)
1538   --enable-assertions     Compile with assertion checks enabled (default is
1539                           YES)
1540   --enable-expensive-checks
1541                           Compile with expensive debug checks enabled (default
1542                           is NO)
1543   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1544                           NO)
1545   --enable-jit            Enable Just In Time Compiling (default is YES)
1546   --enable-doxygen        Build doxygen documentation (default is NO)
1547   --enable-threads        Use threads if available (default is YES)
1548   --enable-pic            Build LLVM with Position Independent Code (default
1549                           is YES)
1550   --enable-targets        Build specific host targets:
1551                           all,host-only,{target-name} (default=all)
1552   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1553                           %a (default is YES)
1554   --enable-bindings       Build specific language bindings:
1555                           all,auto,none,{binding-name} (default=auto)
1556   --enable-libffi         Check for the presence of libffi (default is YES)
1557   --enable-ltdl-install   install libltdl
1558   --enable-shared[=PKGS]  build shared libraries
1559                           [default=yes]
1560   --enable-static[=PKGS]  build static libraries
1561                           [default=yes]
1562   --enable-fast-install[=PKGS]
1563                           optimize for fast installation
1564                           [default=yes]
1565   --disable-libtool-lock  avoid locking (might break parallel builds)
1566
1567 Optional Packages:
1568   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1569   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1570   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1571                           searches PATH)
1572   --with-llvmgcc          Specify location of llvm-gcc driver (default
1573                           searches PATH)
1574   --with-llvmgxx          Specify location of llvm-g++ driver (default
1575                           searches PATH)
1576   --with-extra-options    Specify additional options to compile LLVM with
1577   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1578                           is stdlib)
1579   --with-binutils-include Specify path to binutils/include/ containing
1580                           plugin-api.h file for gold plugin.
1581   --with-tclinclude       directory where tcl headers are
1582   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583   --with-pic              try to use only PIC/non-PIC objects [default=use
1584                           both]
1585   --with-tags[=TAGS]      include additional configurations [automatic]
1586   --with-udis86=<path>    Use udis86 external x86 disassembler library
1587
1588 Some influential environment variables:
1589   CC          C compiler command
1590   CFLAGS      C compiler flags
1591   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592               nonstandard directory <lib dir>
1593   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594               you have headers in a nonstandard directory <include dir>
1595   CPP         C preprocessor
1596   CXX         C++ compiler command
1597   CXXFLAGS    C++ compiler flags
1598   CXXCPP      C++ preprocessor
1599   F77         Fortran 77 compiler command
1600   FFLAGS      Fortran 77 compiler flags
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <llvmbugs@cs.uiuc.edu>.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" || continue
1614     ac_builddir=.
1615
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *)
1619   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620   # A ".." for each directory in $ac_dir_suffix.
1621   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622   case $ac_top_builddir_sub in
1623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625   esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1631
1632 case $srcdir in
1633   .)  # We are building in place.
1634     ac_srcdir=.
1635     ac_top_srcdir=$ac_top_builddir_sub
1636     ac_abs_top_srcdir=$ac_pwd ;;
1637   [\\/]* | ?:[\\/]* )  # Absolute name.
1638     ac_srcdir=$srcdir$ac_dir_suffix;
1639     ac_top_srcdir=$srcdir
1640     ac_abs_top_srcdir=$srcdir ;;
1641   *) # Relative name.
1642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643     ac_top_srcdir=$ac_top_build_prefix$srcdir
1644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648     cd "$ac_dir" || { ac_status=$?; continue; }
1649     # Check for guested configure.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1662
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 llvm configure 2.6svn
1667 generated by GNU Autoconf 2.60
1668
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673
1674 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1675 _ACEOF
1676   exit
1677 fi
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1681
1682 It was created by llvm $as_me 2.6svn, which was
1683 generated by GNU Autoconf 2.60.  Invocation command line was
1684
1685   $ $0 $@
1686
1687 _ACEOF
1688 exec 5>>config.log
1689 {
1690 cat <<_ASUNAME
1691 ## --------- ##
1692 ## Platform. ##
1693 ## --------- ##
1694
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1703
1704 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1705 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1708 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1709 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1710 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1711
1712 _ASUNAME
1713
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   echo "PATH: $as_dir"
1720 done
1721 IFS=$as_save_IFS
1722
1723 } >&5
1724
1725 cat >&5 <<_ACEOF
1726
1727
1728 ## ----------- ##
1729 ## Core tests. ##
1730 ## ----------- ##
1731
1732 _ACEOF
1733
1734
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_configure_args=
1741 ac_configure_args0=
1742 ac_configure_args1=
1743 ac_must_keep_next=false
1744 for ac_pass in 1 2
1745 do
1746   for ac_arg
1747   do
1748     case $ac_arg in
1749     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751     | -silent | --silent | --silen | --sile | --sil)
1752       continue ;;
1753     *\'*)
1754       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755     esac
1756     case $ac_pass in
1757     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758     2)
1759       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760       if test $ac_must_keep_next = true; then
1761         ac_must_keep_next=false # Got value, back to normal.
1762       else
1763         case $ac_arg in
1764           *=* | --config-cache | -C | -disable-* | --disable-* \
1765           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767           | -with-* | --with-* | -without-* | --without-* | --x)
1768             case "$ac_configure_args0 " in
1769               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770             esac
1771             ;;
1772           -* ) ac_must_keep_next=true ;;
1773         esac
1774       fi
1775       ac_configure_args="$ac_configure_args '$ac_arg'"
1776       ;;
1777     esac
1778   done
1779 done
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log.  We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789   # Save into config.log some information that might help in debugging.
1790   {
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1797 _ASBOX
1798     echo
1799     # The following way of writing the cache mishandles newlines in values,
1800 (
1801   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802     eval ac_val=\$$ac_var
1803     case $ac_val in #(
1804     *${as_nl}*)
1805       case $ac_var in #(
1806       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808       esac
1809       case $ac_var in #(
1810       _ | IFS | as_nl) ;; #(
1811       *) $as_unset $ac_var ;;
1812       esac ;;
1813     esac
1814   done
1815   (set) 2>&1 |
1816     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817     *${as_nl}ac_space=\ *)
1818       sed -n \
1819         "s/'\''/'\''\\\\'\'''\''/g;
1820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821       ;; #(
1822     *)
1823       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1824       ;;
1825     esac |
1826     sort
1827 )
1828     echo
1829
1830     cat <<\_ASBOX
1831 ## ----------------- ##
1832 ## Output variables. ##
1833 ## ----------------- ##
1834 _ASBOX
1835     echo
1836     for ac_var in $ac_subst_vars
1837     do
1838       eval ac_val=\$$ac_var
1839       case $ac_val in
1840       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841       esac
1842       echo "$ac_var='\''$ac_val'\''"
1843     done | sort
1844     echo
1845
1846     if test -n "$ac_subst_files"; then
1847       cat <<\_ASBOX
1848 ## ------------------- ##
1849 ## File substitutions. ##
1850 ## ------------------- ##
1851 _ASBOX
1852       echo
1853       for ac_var in $ac_subst_files
1854       do
1855         eval ac_val=\$$ac_var
1856         case $ac_val in
1857         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858         esac
1859         echo "$ac_var='\''$ac_val'\''"
1860       done | sort
1861       echo
1862     fi
1863
1864     if test -s confdefs.h; then
1865       cat <<\_ASBOX
1866 ## ----------- ##
1867 ## confdefs.h. ##
1868 ## ----------- ##
1869 _ASBOX
1870       echo
1871       cat confdefs.h
1872       echo
1873     fi
1874     test "$ac_signal" != 0 &&
1875       echo "$as_me: caught signal $ac_signal"
1876     echo "$as_me: exit $exit_status"
1877   } >&5
1878   rm -f core *.core core.conftest.* &&
1879     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880     exit $exit_status
1881 ' 0
1882 for ac_signal in 1 2 13 15; do
1883   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 done
1885 ac_signal=0
1886
1887 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1888 rm -f -r conftest* confdefs.h
1889
1890 # Predefined preprocessor variables.
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 _ACEOF
1915
1916
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer explicitly selected file to automatically selected ones.
1919 if test -n "$CONFIG_SITE"; then
1920   set x "$CONFIG_SITE"
1921 elif test "x$prefix" != xNONE; then
1922   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1923 else
1924   set x "$ac_default_prefix/share/config.site" \
1925         "$ac_default_prefix/etc/config.site"
1926 fi
1927 shift
1928 for ac_site_file
1929 do
1930   if test -r "$ac_site_file"; then
1931     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 echo "$as_me: loading site script $ac_site_file" >&6;}
1933     sed 's/^/| /' "$ac_site_file" >&5
1934     . "$ac_site_file"
1935   fi
1936 done
1937
1938 if test -r "$cache_file"; then
1939   # Some versions of bash will fail to source /dev/null (special
1940   # files actually), so we avoid doing that.
1941   if test -f "$cache_file"; then
1942     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 echo "$as_me: loading cache $cache_file" >&6;}
1944     case $cache_file in
1945       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946       *)                      . "./$cache_file";;
1947     esac
1948   fi
1949 else
1950   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 echo "$as_me: creating cache $cache_file" >&6;}
1952   >$cache_file
1953 fi
1954
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960   eval ac_new_set=\$ac_env_${ac_var}_set
1961   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962   eval ac_new_val=\$ac_env_${ac_var}_value
1963   case $ac_old_set,$ac_new_set in
1964     set,)
1965       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967       ac_cache_corrupted=: ;;
1968     ,set)
1969       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971       ac_cache_corrupted=: ;;
1972     ,);;
1973     *)
1974       if test "x$ac_old_val" != "x$ac_new_val"; then
1975         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1978 echo "$as_me:   former value:  $ac_old_val" >&2;}
1979         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1980 echo "$as_me:   current value: $ac_new_val" >&2;}
1981         ac_cache_corrupted=:
1982       fi;;
1983   esac
1984   # Pass precious variables to config.status.
1985   if test "$ac_new_set" = set; then
1986     case $ac_new_val in
1987     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988     *) ac_arg=$ac_var=$ac_new_val ;;
1989     esac
1990     case " $ac_configure_args " in
1991       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1992       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993     esac
1994   fi
1995 done
1996 if $ac_cache_corrupted; then
1997   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033
2034
2035
2036 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2037
2038
2039
2040
2041
2042
2043
2044 ac_aux_dir=
2045 for ac_dir in autoconf "$srcdir"/autoconf; do
2046   if test -f "$ac_dir/install-sh"; then
2047     ac_aux_dir=$ac_dir
2048     ac_install_sh="$ac_aux_dir/install-sh -c"
2049     break
2050   elif test -f "$ac_dir/install.sh"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/install.sh -c"
2053     break
2054   elif test -f "$ac_dir/shtool"; then
2055     ac_aux_dir=$ac_dir
2056     ac_install_sh="$ac_aux_dir/shtool install -c"
2057     break
2058   fi
2059 done
2060 if test -z "$ac_aux_dir"; then
2061   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2063    { (exit 1); exit 1; }; }
2064 fi
2065
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2073
2074
2075
2076 if test ${srcdir} != "." ; then
2077   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2079 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080    { (exit 1); exit 1; }; }
2081   fi
2082 fi
2083
2084 for i in `ls ${srcdir}/projects`
2085 do
2086   if test -d ${srcdir}/projects/${i} ; then
2087     case ${i} in
2088       CVS) ;;
2089       sample)       subdirs="$subdirs projects/sample"
2090     ;;
2091       privbracket)  subdirs="$subdirs projects/privbracket"
2092  ;;
2093       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2094  ;;
2095       # llvm-test is the old name of the test-suite, kept here for backwards
2096       # compatibility
2097       llvm-test)    subdirs="$subdirs projects/llvm-test"
2098  ;;
2099       test-suite)   subdirs="$subdirs projects/test-suite"
2100  ;;
2101       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2102 ;;
2103       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2104   ;;
2105       llvm-java)    subdirs="$subdirs projects/llvm-java"
2106  ;;
2107       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2108    ;;
2109       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2110  ;;
2111       poolalloc)    subdirs="$subdirs projects/poolalloc"
2112  ;;
2113       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2114  ;;
2115       *)
2116         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2118         ;;
2119     esac
2120   fi
2121 done
2122
2123
2124 # Make sure we can run config.sub.
2125 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128    { (exit 1); exit 1; }; }
2129
2130 { echo "$as_me:$LINENO: checking build system type" >&5
2131 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_build+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141    { (exit 1); exit 1; }; }
2142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 fi
2148 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149 echo "${ECHO_T}$ac_cv_build" >&6; }
2150 case $ac_cv_build in
2151 *-*-*) ;;
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153 echo "$as_me: error: invalid value of canonical build" >&2;}
2154    { (exit 1); exit 1; }; };;
2155 esac
2156 build=$ac_cv_build
2157 ac_save_IFS=$IFS; IFS='-'
2158 set x $ac_cv_build
2159 shift
2160 build_cpu=$1
2161 build_vendor=$2
2162 shift; shift
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2165 build_os=$*
2166 IFS=$ac_save_IFS
2167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168
2169
2170 { echo "$as_me:$LINENO: checking host system type" >&5
2171 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2172 if test "${ac_cv_host+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test "x$host_alias" = x; then
2176   ac_cv_host=$ac_cv_build
2177 else
2178   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181    { (exit 1); exit 1; }; }
2182 fi
2183
2184 fi
2185 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186 echo "${ECHO_T}$ac_cv_host" >&6; }
2187 case $ac_cv_host in
2188 *-*-*) ;;
2189 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190 echo "$as_me: error: invalid value of canonical host" >&2;}
2191    { (exit 1); exit 1; }; };;
2192 esac
2193 host=$ac_cv_host
2194 ac_save_IFS=$IFS; IFS='-'
2195 set x $ac_cv_host
2196 shift
2197 host_cpu=$1
2198 host_vendor=$2
2199 shift; shift
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2202 host_os=$*
2203 IFS=$ac_save_IFS
2204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205
2206
2207 { echo "$as_me:$LINENO: checking target system type" >&5
2208 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2209 if test "${ac_cv_target+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test "x$target_alias" = x; then
2213   ac_cv_target=$ac_cv_host
2214 else
2215   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 fi
2222 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223 echo "${ECHO_T}$ac_cv_target" >&6; }
2224 case $ac_cv_target in
2225 *-*-*) ;;
2226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227 echo "$as_me: error: invalid value of canonical target" >&2;}
2228    { (exit 1); exit 1; }; };;
2229 esac
2230 target=$ac_cv_target
2231 ac_save_IFS=$IFS; IFS='-'
2232 set x $ac_cv_target
2233 shift
2234 target_cpu=$1
2235 target_vendor=$2
2236 shift; shift
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2239 target_os=$*
2240 IFS=$ac_save_IFS
2241 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2242
2243
2244 # The aliases save the names the user supplied, while $host etc.
2245 # will get canonicalized.
2246 test -n "$target_alias" &&
2247   test "$program_prefix$program_suffix$program_transform_name" = \
2248     NONENONEs,x,x, &&
2249   program_prefix=${target_alias}-
2250
2251 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2253 if test "${llvm_cv_os_type+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   case $host in
2257   *-*-aix*)
2258     llvm_cv_link_all_option="-Wl,--whole-archive"
2259     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260     llvm_cv_os_type="AIX"
2261     llvm_cv_platform_type="Unix" ;;
2262   *-*-irix*)
2263     llvm_cv_link_all_option="-Wl,--whole-archive"
2264     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265     llvm_cv_os_type="IRIX"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-cygwin*)
2268     llvm_cv_link_all_option="-Wl,--whole-archive"
2269     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270     llvm_cv_os_type="Cygwin"
2271     llvm_cv_platform_type="Unix" ;;
2272   *-*-darwin*)
2273     llvm_cv_link_all_option="-Wl,-all_load"
2274     llvm_cv_no_link_all_option="-Wl,-noall_load"
2275     llvm_cv_os_type="Darwin"
2276     llvm_cv_platform_type="Unix" ;;
2277   *-*-freebsd*)
2278     llvm_cv_link_all_option="-Wl,--whole-archive"
2279     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280     llvm_cv_os_type="FreeBSD"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-*-openbsd*)
2283     llvm_cv_link_all_option="-Wl,--whole-archive"
2284     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285     llvm_cv_os_type="OpenBSD"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-*-netbsd*)
2288     llvm_cv_link_all_option="-Wl,--whole-archive"
2289     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290     llvm_cv_os_type="NetBSD"
2291     llvm_cv_platform_type="Unix" ;;
2292   *-*-dragonfly*)
2293     llvm_cv_link_all_option="-Wl,--whole-archive"
2294     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295     llvm_cv_os_type="DragonFly"
2296     llvm_cv_platform_type="Unix" ;;
2297   *-*-hpux*)
2298     llvm_cv_link_all_option="-Wl,--whole-archive"
2299     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300     llvm_cv_os_type="HP-UX"
2301     llvm_cv_platform_type="Unix" ;;
2302   *-*-interix*)
2303     llvm_cv_link_all_option="-Wl,--whole-archive"
2304     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305     llvm_cv_os_type="Interix"
2306     llvm_cv_platform_type="Unix" ;;
2307   *-*-linux*)
2308     llvm_cv_link_all_option="-Wl,--whole-archive"
2309     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310     llvm_cv_os_type="Linux"
2311     llvm_cv_platform_type="Unix" ;;
2312   *-*-solaris*)
2313     llvm_cv_link_all_option="-Wl,-z,allextract"
2314     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2315     llvm_cv_os_type="SunOS"
2316     llvm_cv_platform_type="Unix" ;;
2317   *-*-win32*)
2318     llvm_cv_link_all_option="-Wl,--whole-archive"
2319     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320     llvm_cv_os_type="Win32"
2321     llvm_cv_platform_type="Win32" ;;
2322   *-*-mingw*)
2323     llvm_cv_link_all_option="-Wl,--whole-archive"
2324     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325     llvm_cv_os_type="MingW"
2326     llvm_cv_platform_type="Win32" ;;
2327   *)
2328     llvm_cv_link_all_option=""
2329     llvm_cv_no_link_all_option=""
2330     llvm_cv_os_type="Unknown"
2331     llvm_cv_platform_type="Unknown" ;;
2332 esac
2333 fi
2334 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2336
2337 if test "$llvm_cv_os_type" = "Unknown" ; then
2338   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340    { (exit 1); exit 1; }; }
2341 fi
2342
2343 OS=$llvm_cv_os_type
2344
2345
2346 LINKALL=$llvm_cv_link_all_option
2347
2348 NOLINKALL=$llvm_cv_no_link_all_option
2349
2350
2351 case $llvm_cv_platform_type in
2352   Unix)
2353
2354 cat >>confdefs.h <<\_ACEOF
2355 #define LLVM_ON_UNIX 1
2356 _ACEOF
2357
2358     LLVM_ON_UNIX=1
2359
2360     LLVM_ON_WIN32=0
2361
2362     ;;
2363   Win32)
2364
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_WIN32 1
2367 _ACEOF
2368
2369     LLVM_ON_UNIX=0
2370
2371     LLVM_ON_WIN32=1
2372
2373     ;;
2374 esac
2375
2376 { echo "$as_me:$LINENO: checking target architecture" >&5
2377 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2378 if test "${llvm_cv_target_arch+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   case $target in
2382   i?86-*)                 llvm_cv_target_arch="x86" ;;
2383   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2384   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2385   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2386   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2387   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2388   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2389   mips-*)                 llvm_cv_target_arch="Mips" ;;
2390   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2391   xcore-*)                llvm_cv_target_arch="XCore" ;;
2392   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2393   *)                      llvm_cv_target_arch="Unknown" ;;
2394 esac
2395 fi
2396 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2397 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2398
2399 if test "$llvm_cv_target_arch" = "Unknown" ; then
2400   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2401 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2402 fi
2403
2404 ARCH=$llvm_cv_target_arch
2405
2406
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   if test -n "$CC"; then
2421   ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428   for ac_exec_ext in '' $ac_executable_extensions; do
2429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2430     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432     break 2
2433   fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442   { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2444 else
2445   { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_CC"; then
2452   ac_ct_CC=$CC
2453   # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$ac_ct_CC"; then
2461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_ac_ct_CC="gcc"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483 echo "${ECHO_T}$ac_ct_CC" >&6; }
2484 else
2485   { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2487 fi
2488
2489   if test "x$ac_ct_CC" = x; then
2490     CC=""
2491   else
2492     case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet.  If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&5
2497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet.  If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500 ac_tool_warned=yes ;;
2501 esac
2502     CC=$ac_ct_CC
2503   fi
2504 else
2505   CC="$ac_cv_prog_CC"
2506 fi
2507
2508 if test -z "$CC"; then
2509           if test -n "$ac_tool_prefix"; then
2510     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}cc; ac_word=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$CC"; then
2518   ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2527     ac_cv_prog_CC="${ac_tool_prefix}cc"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2541 else
2542   { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2544 fi
2545
2546
2547   fi
2548 fi
2549 if test -z "$CC"; then
2550   # Extract the first word of "cc", so it can be a program name with args.
2551 set dummy cc; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   if test -n "$CC"; then
2558   ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560   ac_prog_rejected=no
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564   IFS=$as_save_IFS
2565   test -z "$as_dir" && as_dir=.
2566   for ac_exec_ext in '' $ac_executable_extensions; do
2567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2568     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2569        ac_prog_rejected=yes
2570        continue
2571      fi
2572     ac_cv_prog_CC="cc"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 if test $ac_prog_rejected = yes; then
2581   # We found a bogon in the path, so make sure we never use it.
2582   set dummy $ac_cv_prog_CC
2583   shift
2584   if test $# != 0; then
2585     # We chose a different compiler from the bogus one.
2586     # However, it has the same basename, so the bogon will be chosen
2587     # first if we set CC to just the basename; use the full file name.
2588     shift
2589     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2590   fi
2591 fi
2592 fi
2593 fi
2594 CC=$ac_cv_prog_CC
2595 if test -n "$CC"; then
2596   { echo "$as_me:$LINENO: result: $CC" >&5
2597 echo "${ECHO_T}$CC" >&6; }
2598 else
2599   { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2601 fi
2602
2603
2604 fi
2605 if test -z "$CC"; then
2606   if test -n "$ac_tool_prefix"; then
2607   for ac_prog in cl.exe
2608   do
2609     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$CC"; then
2617   ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638   { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2640 else
2641   { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2643 fi
2644
2645
2646     test -n "$CC" && break
2647   done
2648 fi
2649 if test -z "$CC"; then
2650   ac_ct_CC=$CC
2651   for ac_prog in cl.exe
2652 do
2653   # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   if test -n "$ac_ct_CC"; then
2661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668   for ac_exec_ext in '' $ac_executable_extensions; do
2669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2670     ac_cv_prog_ac_ct_CC="$ac_prog"
2671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681 if test -n "$ac_ct_CC"; then
2682   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683 echo "${ECHO_T}$ac_ct_CC" >&6; }
2684 else
2685   { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2687 fi
2688
2689
2690   test -n "$ac_ct_CC" && break
2691 done
2692
2693   if test "x$ac_ct_CC" = x; then
2694     CC=""
2695   else
2696     case $cross_compiling:$ac_tool_warned in
2697 yes:)
2698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet.  If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&5
2701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet.  If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2704 ac_tool_warned=yes ;;
2705 esac
2706     CC=$ac_ct_CC
2707   fi
2708 fi
2709
2710 fi
2711
2712
2713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&2;}
2717    { (exit 1); exit 1; }; }
2718
2719 # Provide some information about the compiler.
2720 echo "$as_me:$LINENO: checking for C compiler version" >&5
2721 ac_compiler=`set X $ac_compile; echo $2`
2722 { (ac_try="$ac_compiler --version >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler --version >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732 { (ac_try="$ac_compiler -v >&5"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compiler -v >&5") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742 { (ac_try="$ac_compiler -V >&5"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_compiler -V >&5") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }
2752
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759
2760 int
2761 main ()
2762 {
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 ac_clean_files_save=$ac_clean_files
2769 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2770 # Try to create an executable without -o first, disregard a.out.
2771 # It will help us diagnose broken compilers, and finding out an intuition
2772 # of exeext.
2773 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2776 #
2777 # List of possible output files, starting from the most likely.
2778 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2779 # only as a last resort.  b.out is created by i960 compilers.
2780 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2781 #
2782 # The IRIX 6 linker writes into existing files which may not be
2783 # executable, retaining their permissions.  Remove them first so a
2784 # subsequent execution test works.
2785 ac_rmfiles=
2786 for ac_file in $ac_files
2787 do
2788   case $ac_file in
2789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791   esac
2792 done
2793 rm -f $ac_rmfiles
2794
2795 if { (ac_try="$ac_link_default"
2796 case "(($ac_try" in
2797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798   *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801   (eval "$ac_link_default") 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; then
2805   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2808 # so that the user can short-circuit this test for compilers unknown to
2809 # Autoconf.
2810 for ac_file in $ac_files
2811 do
2812   test -f "$ac_file" || continue
2813   case $ac_file in
2814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2815         ;;
2816     [ab].out )
2817         # We found the default executable, but exeext='' is most
2818         # certainly right.
2819         break;;
2820     *.* )
2821         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822         then :; else
2823            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824         fi
2825         # We set ac_cv_exeext here because the later test for it is not
2826         # safe: cross compilers may not add the suffix if given an `-o'
2827         # argument, so we may need to know it at that point already.
2828         # Even if this section looks crufty: it has the advantage of
2829         # actually working.
2830         break;;
2831     * )
2832         break;;
2833   esac
2834 done
2835 test "$ac_cv_exeext" = no && ac_cv_exeext=
2836
2837 else
2838   echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&5
2843 echo "$as_me: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&2;}
2845    { (exit 77); exit 77; }; }
2846 fi
2847
2848 ac_exeext=$ac_cv_exeext
2849 { echo "$as_me:$LINENO: result: $ac_file" >&5
2850 echo "${ECHO_T}$ac_file" >&6; }
2851
2852 # Check that the compiler produces executables we can run.  If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857 # If not cross compiling, check that we can run a simple program.
2858 if test "$cross_compiling" != yes; then
2859   if { ac_try='./$ac_file'
2860   { (case "(($ac_try" in
2861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862   *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865   (eval "$ac_try") 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869     cross_compiling=no
2870   else
2871     if test "$cross_compiling" = maybe; then
2872         cross_compiling=yes
2873     else
2874         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2875 If you meant to cross compile, use \`--host'.
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: cannot run C compiled programs.
2878 If you meant to cross compile, use \`--host'.
2879 See \`config.log' for more details." >&2;}
2880    { (exit 1); exit 1; }; }
2881     fi
2882   fi
2883 fi
2884 { echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6; }
2886
2887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2888 ac_clean_files=$ac_clean_files_save
2889 # Check that the compiler produces executables we can run.  If not, either
2890 # the compiler is broken, or we cross compile.
2891 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894 echo "${ECHO_T}$cross_compiling" >&6; }
2895
2896 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898 if { (ac_try="$ac_link"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_link") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; then
2908   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2910 # work properly (i.e., refer to `conftest.exe'), while it won't with
2911 # `rm'.
2912 for ac_file in conftest.exe conftest conftest.*; do
2913   test -f "$ac_file" || continue
2914   case $ac_file in
2915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2916     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917           break;;
2918     * ) break;;
2919   esac
2920 done
2921 else
2922   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&2;}
2926    { (exit 1); exit 1; }; }
2927 fi
2928
2929 rm -f conftest$ac_cv_exeext
2930 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2932
2933 rm -f conftest.$ac_ext
2934 EXEEXT=$ac_cv_exeext
2935 ac_exeext=$EXEEXT
2936 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2938 if test "${ac_cv_objext+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951
2952   ;
2953   return 0;
2954 }
2955 _ACEOF
2956 rm -f conftest.o conftest.obj
2957 if { (ac_try="$ac_compile"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compile") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; then
2967   for ac_file in conftest.o conftest.obj conftest.*; do
2968   test -f "$ac_file" || continue;
2969   case $ac_file in
2970     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2971     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972        break;;
2973   esac
2974 done
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&2;}
2983    { (exit 1); exit 1; }; }
2984 fi
2985
2986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2987 fi
2988 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2989 echo "${ECHO_T}$ac_cv_objext" >&6; }
2990 OBJEXT=$ac_cv_objext
2991 ac_objext=$OBJEXT
2992 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2993 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2994 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003
3004 int
3005 main ()
3006 {
3007 #ifndef __GNUC__
3008        choke me
3009 #endif
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_compile") 2>conftest.er1
3023   ac_status=$?
3024   grep -v '^ *+' conftest.er1 >conftest.err
3025   rm -f conftest.er1
3026   cat conftest.err >&5
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); } &&
3029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; } &&
3039          { ac_try='test -s conftest.$ac_objext'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   ac_compiler_gnu=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054         ac_compiler_gnu=no
3055 fi
3056
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059
3060 fi
3061 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3063 GCC=`test $ac_compiler_gnu = yes && echo yes`
3064 ac_test_CFLAGS=${CFLAGS+set}
3065 ac_save_CFLAGS=$CFLAGS
3066 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_cc_g+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   ac_save_c_werror_flag=$ac_c_werror_flag
3072    ac_c_werror_flag=yes
3073    ac_cv_prog_cc_g=no
3074    CFLAGS="-g"
3075    cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_compile") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } &&
3104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; } &&
3114          { ac_try='test -s conftest.$ac_objext'
3115   { (case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_try") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   ac_cv_prog_cc_g=yes
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129         CFLAGS=""
3130       cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_compile") 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   :
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184         ac_c_werror_flag=$ac_save_c_werror_flag
3185          CFLAGS="-g"
3186          cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_compile") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } &&
3215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3216   { (case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_try") 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; } &&
3225          { ac_try='test -s conftest.$ac_objext'
3226   { (case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_try") 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; }; then
3235   ac_cv_prog_cc_g=yes
3236 else
3237   echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240
3241 fi
3242
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250    ac_c_werror_flag=$ac_save_c_werror_flag
3251 fi
3252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255   CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257   if test "$GCC" = yes; then
3258     CFLAGS="-g -O2"
3259   else
3260     CFLAGS="-g"
3261   fi
3262 else
3263   if test "$GCC" = yes; then
3264     CFLAGS="-O2"
3265   else
3266     CFLAGS=
3267   fi
3268 fi
3269 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   ac_cv_prog_cc_c89=no
3275 ac_save_CC=$CC
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290      char **p;
3291      int i;
3292 {
3293   return p[i];
3294 }
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3296 {
3297   char *s;
3298   va_list v;
3299   va_start (v,p);
3300   s = g (p, va_arg (v,int));
3301   va_end (v);
3302   return s;
3303 }
3304
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3306    function prototypes and stuff, but not '\xHH' hex character constants.
3307    These don't provoke an error unfortunately, instead are silently treated
3308    as 'x'.  The following induces an error, until -std is added to get
3309    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3310    array size at least.  It's necessary to write '\x00'==0 to get something
3311    that's true only with -std.  */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
3314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315    inside strings and character constants.  */
3316 #define FOO(x) 'x'
3317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323 int argc;
3324 char **argv;
3325 int
3326 main ()
3327 {
3328 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3335 do
3336   CC="$ac_save_CC $ac_arg"
3337   rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344   (eval "$ac_compile") 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } &&
3351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352   { (case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_try") 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; } &&
3361          { ac_try='test -s conftest.$ac_objext'
3362   { (case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_try") 2>&5
3368   ac_status=$?
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }; }; then
3371   ac_cv_prog_cc_c89=$ac_arg
3372 else
3373   echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376
3377 fi
3378
3379 rm -f core conftest.err conftest.$ac_objext
3380   test "x$ac_cv_prog_cc_c89" != "xno" && break
3381 done
3382 rm -f conftest.$ac_ext
3383 CC=$ac_save_CC
3384
3385 fi
3386 # AC_CACHE_VAL
3387 case "x$ac_cv_prog_cc_c89" in
3388   x)
3389     { echo "$as_me:$LINENO: result: none needed" >&5
3390 echo "${ECHO_T}none needed" >&6; } ;;
3391   xno)
3392     { echo "$as_me:$LINENO: result: unsupported" >&5
3393 echo "${ECHO_T}unsupported" >&6; } ;;
3394   *)
3395     CC="$CC $ac_cv_prog_cc_c89"
3396     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3398 esac
3399
3400
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3414 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3415 # On Suns, sometimes $CPP names a directory.
3416 if test -n "$CPP" && test -d "$CPP"; then
3417   CPP=
3418 fi
3419 if test -z "$CPP"; then
3420   if test "${ac_cv_prog_CPP+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423       # Double quotes because CPP needs to be expanded
3424     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3425     do
3426       ac_preproc_ok=false
3427 for ac_c_preproc_warn_flag in '' yes
3428 do
3429   # Use a header file that comes with gcc, so configuring glibc
3430   # with a fresh cross-compiler works.
3431   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432   # <limits.h> exists even on freestanding compilers.
3433   # On the NeXT, cc -E runs the code through the compiler's parser,
3434   # not just through cpp. "Syntax error" is here to catch this case.
3435   cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441 #ifdef __STDC__
3442 # include <limits.h>
3443 #else
3444 # include <assert.h>
3445 #endif
3446                      Syntax error
3447 _ACEOF
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } >/dev/null; then
3461   if test -s conftest.err; then
3462     ac_cpp_err=$ac_c_preproc_warn_flag
3463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464   else
3465     ac_cpp_err=
3466   fi
3467 else
3468   ac_cpp_err=yes
3469 fi
3470 if test -z "$ac_cpp_err"; then
3471   :
3472 else
3473   echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476   # Broken: fails on valid input.
3477 continue
3478 fi
3479
3480 rm -f conftest.err conftest.$ac_ext
3481
3482   # OK, works on sane cases.  Now check whether nonexistent headers
3483   # can be detected and how.
3484   cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490 #include <ac_nonexistent.h>
3491 _ACEOF
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } >/dev/null; then
3505   if test -s conftest.err; then
3506     ac_cpp_err=$ac_c_preproc_warn_flag
3507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3508   else
3509     ac_cpp_err=
3510   fi
3511 else
3512   ac_cpp_err=yes
3513 fi
3514 if test -z "$ac_cpp_err"; then
3515   # Broken: success on invalid input.
3516 continue
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521   # Passes both tests.
3522 ac_preproc_ok=:
3523 break
3524 fi
3525
3526 rm -f conftest.err conftest.$ac_ext
3527
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3532   break
3533 fi
3534
3535     done
3536     ac_cv_prog_CPP=$CPP
3537
3538 fi
3539   CPP=$ac_cv_prog_CPP
3540 else
3541   ac_cv_prog_CPP=$CPP
3542 fi
3543 { echo "$as_me:$LINENO: result: $CPP" >&5
3544 echo "${ECHO_T}$CPP" >&6; }
3545 ac_preproc_ok=false
3546 for ac_c_preproc_warn_flag in '' yes
3547 do
3548   # Use a header file that comes with gcc, so configuring glibc
3549   # with a fresh cross-compiler works.
3550   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551   # <limits.h> exists even on freestanding compilers.
3552   # On the NeXT, cc -E runs the code through the compiler's parser,
3553   # not just through cpp. "Syntax error" is here to catch this case.
3554   cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 #ifdef __STDC__
3561 # include <limits.h>
3562 #else
3563 # include <assert.h>
3564 #endif
3565                      Syntax error
3566 _ACEOF
3567 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } >/dev/null; then
3580   if test -s conftest.err; then
3581     ac_cpp_err=$ac_c_preproc_warn_flag
3582     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583   else
3584     ac_cpp_err=
3585   fi
3586 else
3587   ac_cpp_err=yes
3588 fi
3589 if test -z "$ac_cpp_err"; then
3590   :
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595   # Broken: fails on valid input.
3596 continue
3597 fi
3598
3599 rm -f conftest.err conftest.$ac_ext
3600
3601   # OK, works on sane cases.  Now check whether nonexistent headers
3602   # can be detected and how.
3603   cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h.  */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h.  */
3609 #include <ac_nonexistent.h>
3610 _ACEOF
3611 if { (ac_try="$ac_cpp conftest.$ac_ext"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } >/dev/null; then
3624   if test -s conftest.err; then
3625     ac_cpp_err=$ac_c_preproc_warn_flag
3626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627   else
3628     ac_cpp_err=
3629   fi
3630 else
3631   ac_cpp_err=yes
3632 fi
3633 if test -z "$ac_cpp_err"; then
3634   # Broken: success on invalid input.
3635 continue
3636 else
3637   echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640   # Passes both tests.
3641 ac_preproc_ok=:
3642 break
3643 fi
3644
3645 rm -f conftest.err conftest.$ac_ext
3646
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then
3651   :
3652 else
3653   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&2;}
3657    { (exit 1); exit 1; }; }
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666
3667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_GREP+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   # Extract the first word of "grep ggrep" to use in msg output
3673 if test -z "$GREP"; then
3674 set dummy grep ggrep; ac_prog_name=$2
3675 if test "${ac_cv_path_GREP+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_prog in grep ggrep; do
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3689     # Check for GNU ac_path_GREP and select it if it is found.
3690   # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3692 *GNU*)
3693   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 *)
3695   ac_count=0
3696   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697   while :
3698   do
3699     cat "conftest.in" "conftest.in" >"conftest.tmp"
3700     mv "conftest.tmp" "conftest.in"
3701     cp "conftest.in" "conftest.nl"
3702     echo 'GREP' >> "conftest.nl"
3703     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705     ac_count=`expr $ac_count + 1`
3706     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707       # Best one so far, save it but keep looking for a better one
3708       ac_cv_path_GREP="$ac_path_GREP"
3709       ac_path_GREP_max=$ac_count
3710     fi
3711     # 10*(2^10) chars as input seems more than enough
3712     test $ac_count -gt 10 && break
3713   done
3714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 esac
3716
3717
3718     $ac_path_GREP_found && break 3
3719   done
3720 done
3721
3722 done
3723 IFS=$as_save_IFS
3724
3725
3726 fi
3727
3728 GREP="$ac_cv_path_GREP"
3729 if test -z "$GREP"; then
3730   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732    { (exit 1); exit 1; }; }
3733 fi
3734
3735 else
3736   ac_cv_path_GREP=$GREP
3737 fi
3738
3739
3740 fi
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743  GREP="$ac_cv_path_GREP"
3744
3745
3746 { echo "$as_me:$LINENO: checking for egrep" >&5
3747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3752    then ac_cv_path_EGREP="$GREP -E"
3753    else
3754      # Extract the first word of "egrep" to use in msg output
3755 if test -z "$EGREP"; then
3756 set dummy egrep; ac_prog_name=$2
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   ac_path_EGREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_prog in egrep; do
3768   for ac_exec_ext in '' $ac_executable_extensions; do
3769     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3770     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3771     # Check for GNU ac_path_EGREP and select it if it is found.
3772   # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3774 *GNU*)
3775   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776 *)
3777   ac_count=0
3778   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779   while :
3780   do
3781     cat "conftest.in" "conftest.in" >"conftest.tmp"
3782     mv "conftest.tmp" "conftest.in"
3783     cp "conftest.in" "conftest.nl"
3784     echo 'EGREP' >> "conftest.nl"
3785     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787     ac_count=`expr $ac_count + 1`
3788     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789       # Best one so far, save it but keep looking for a better one
3790       ac_cv_path_EGREP="$ac_path_EGREP"
3791       ac_path_EGREP_max=$ac_count
3792     fi
3793     # 10*(2^10) chars as input seems more than enough
3794     test $ac_count -gt 10 && break
3795   done
3796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3798
3799
3800     $ac_path_EGREP_found && break 3
3801   done
3802 done
3803
3804 done
3805 IFS=$as_save_IFS
3806
3807
3808 fi
3809
3810 EGREP="$ac_cv_path_EGREP"
3811 if test -z "$EGREP"; then
3812   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814    { (exit 1); exit 1; }; }
3815 fi
3816
3817 else
3818   ac_cv_path_EGREP=$EGREP
3819 fi
3820
3821
3822    fi
3823 fi
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826  EGREP="$ac_cv_path_EGREP"
3827
3828
3829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3831 if test "${ac_cv_header_stdc+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <stdlib.h>
3841 #include <stdarg.h>
3842 #include <string.h>
3843 #include <float.h>
3844
3845 int
3846 main ()
3847 {
3848
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 rm -f conftest.$ac_objext
3854 if { (ac_try="$ac_compile"
3855 case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860   (eval "$ac_compile") 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868   { (case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_try") 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; } &&
3877          { ac_try='test -s conftest.$ac_objext'
3878   { (case "(($ac_try" in
3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880   *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883   (eval "$ac_try") 2>&5
3884   ac_status=$?
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); }; }; then
3887   ac_cv_header_stdc=yes
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892         ac_cv_header_stdc=no
3893 fi
3894
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896
3897 if test $ac_cv_header_stdc = yes; then
3898   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <string.h>
3906
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909   $EGREP "memchr" >/dev/null 2>&1; then
3910   :
3911 else
3912   ac_cv_header_stdc=no
3913 fi
3914 rm -f conftest*
3915
3916 fi
3917
3918 if test $ac_cv_header_stdc = yes; then
3919   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920   cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h.  */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h.  */
3926 #include <stdlib.h>
3927
3928 _ACEOF
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930   $EGREP "free" >/dev/null 2>&1; then
3931   :
3932 else
3933   ac_cv_header_stdc=no
3934 fi
3935 rm -f conftest*
3936
3937 fi
3938
3939 if test $ac_cv_header_stdc = yes; then
3940   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941   if test "$cross_compiling" = yes; then
3942   :
3943 else
3944   cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950 #include <ctype.h>
3951 #include <stdlib.h>
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955 #else
3956 # define ISLOWER(c) \
3957                    (('a' <= (c) && (c) <= 'i') \
3958                      || ('j' <= (c) && (c) <= 'r') \
3959                      || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961 #endif
3962
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964 int
3965 main ()
3966 {
3967   int i;
3968   for (i = 0; i < 256; i++)
3969     if (XOR (islower (i), ISLOWER (i))
3970         || toupper (i) != TOUPPER (i))
3971       return 2;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest$ac_exeext
3976 if { (ac_try="$ac_link"
3977 case "(($ac_try" in
3978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979   *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982   (eval "$ac_link") 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3986   { (case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991   (eval "$ac_try") 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; }; then
3995   :
3996 else
3997   echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ( exit $ac_status )
4002 ac_cv_header_stdc=no
4003 fi
4004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005 fi
4006
4007
4008 fi
4009 fi
4010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4012 if test $ac_cv_header_stdc = yes; then
4013
4014 cat >>confdefs.h <<\_ACEOF
4015 #define STDC_HEADERS 1
4016 _ACEOF
4017
4018 fi
4019
4020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031                   inttypes.h stdint.h unistd.h
4032 do
4033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 $ac_includes_default
4046
4047 #include <$ac_header>
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4051 case "(($ac_try" in
4052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053   *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056   (eval "$ac_compile") 2>conftest.er1
4057   ac_status=$?
4058   grep -v '^ *+' conftest.er1 >conftest.err
4059   rm -f conftest.er1
4060   cat conftest.err >&5
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } &&
4063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064   { (case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069   (eval "$ac_try") 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; } &&
4073          { ac_try='test -s conftest.$ac_objext'
4074   { (case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_try") 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; }; then
4083   eval "$as_ac_Header=yes"
4084 else
4085   echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088         eval "$as_ac_Header=no"
4089 fi
4090
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 ac_res=`eval echo '${'$as_ac_Header'}'`
4094                { echo "$as_me:$LINENO: result: $ac_res" >&5
4095 echo "${ECHO_T}$ac_res" >&6; }
4096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097   cat >>confdefs.h <<_ACEOF
4098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099 _ACEOF
4100
4101 fi
4102
4103 done
4104
4105
4106 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4107 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4108 if test "${ac_cv_c_bigendian+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   # See if sys/param.h defines the BYTE_ORDER macro.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4120
4121 int
4122 main ()
4123 {
4124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4125  bogus endian macros
4126 #endif
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } &&
4146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147   { (case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_try") 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; } &&
4156          { ac_try='test -s conftest.$ac_objext'
4157   { (case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162   (eval "$ac_try") 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; }; then
4166   # It does; now see whether it defined to BIG_ENDIAN or not.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <sys/types.h>
4174 #include <sys/param.h>
4175
4176 int
4177 main ()
4178 {
4179 #if BYTE_ORDER != BIG_ENDIAN
4180  not big endian
4181 #endif
4182
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4189 case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_compile") 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } &&
4201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202   { (case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207   (eval "$ac_try") 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; } &&
4211          { ac_try='test -s conftest.$ac_objext'
4212   { (case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217   (eval "$ac_try") 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); }; }; then
4221   ac_cv_c_bigendian=yes
4222 else
4223   echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226         ac_cv_c_bigendian=no
4227 fi
4228
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 else
4231   echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234         # It does not; compile a test program.
4235 if test "$cross_compiling" = yes; then
4236   # try to guess the endianness by grepping values into an object file
4237   ac_cv_c_bigendian=unknown
4238   cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4245 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4246 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4247 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4248 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4249 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4250 int
4251 main ()
4252 {
4253  _ascii (); _ebcdic ();
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_compile") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } &&
4272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273   { (case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_try") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; } &&
4282          { ac_try='test -s conftest.$ac_objext'
4283   { (case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4293   ac_cv_c_bigendian=yes
4294 fi
4295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4296   if test "$ac_cv_c_bigendian" = unknown; then
4297     ac_cv_c_bigendian=no
4298   else
4299     # finding both strings is unlikely to happen, but who knows?
4300     ac_cv_c_bigendian=unknown
4301   fi
4302 fi
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307
4308 fi
4309
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 else
4312   cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 $ac_includes_default
4319 int
4320 main ()
4321 {
4322
4323   /* Are we little or big endian?  From Harbison&Steele.  */
4324   union
4325   {
4326     long int l;
4327     char c[sizeof (long int)];
4328   } u;
4329   u.l = 1;
4330   return u.c[sizeof (long int) - 1] == 1;
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest$ac_exeext
4337 if { (ac_try="$ac_link"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_link") 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347   { (case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_try") 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; }; then
4356   ac_cv_c_bigendian=no
4357 else
4358   echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ( exit $ac_status )
4363 ac_cv_c_bigendian=yes
4364 fi
4365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4366 fi
4367
4368
4369 fi
4370
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4374 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4375 case $ac_cv_c_bigendian in
4376   yes)
4377     ENDIAN=big
4378  ;;
4379   no)
4380     ENDIAN=little
4381  ;;
4382   *)
4383     { { echo "$as_me:$LINENO: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385 echo "$as_me: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387    { (exit 1); exit 1; }; } ;;
4388 esac
4389
4390
4391 if test "$cross_compiling" = yes; then
4392   LLVM_CROSS_COMPILING=1
4393
4394
4395 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4396 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4397 if test "${ac_cv_build_exeext+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4401   ac_cv_build_exeext=.exe
4402 else
4403   ac_build_prefix=${build_alias}-
4404
4405   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4406 set dummy ${ac_build_prefix}gcc; ac_word=$2
4407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   if test -n "$BUILD_CC"; then
4413   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420   for ac_exec_ext in '' $ac_executable_extensions; do
4421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424     break 2
4425   fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 BUILD_CC=$ac_cv_prog_BUILD_CC
4433 if test -n "$BUILD_CC"; then
4434   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435 echo "${ECHO_T}$BUILD_CC" >&6; }
4436 else
4437   { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4439 fi
4440
4441
4442   if test -z "$BUILD_CC"; then
4443      # Extract the first word of "gcc", so it can be a program name with args.
4444 set dummy gcc; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -n "$BUILD_CC"; then
4451   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458   for ac_exec_ext in '' $ac_executable_extensions; do
4459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4460     ac_cv_prog_BUILD_CC="gcc"
4461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462     break 2
4463   fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479
4480      if test -z "$BUILD_CC"; then
4481        # Extract the first word of "cc", so it can be a program name with args.
4482 set dummy cc; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   if test -n "$BUILD_CC"; then
4489   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4490 else
4491   ac_prog_rejected=no
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   for ac_exec_ext in '' $ac_executable_extensions; do
4498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4499     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500        ac_prog_rejected=yes
4501        continue
4502      fi
4503     ac_cv_prog_BUILD_CC="cc"
4504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505     break 2
4506   fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 if test $ac_prog_rejected = yes; then
4512   # We found a bogon in the path, so make sure we never use it.
4513   set dummy $ac_cv_prog_BUILD_CC
4514   shift
4515   if test $# != 0; then
4516     # We chose a different compiler from the bogus one.
4517     # However, it has the same basename, so the bogon will be chosen
4518     # first if we set BUILD_CC to just the basename; use the full file name.
4519     shift
4520     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4521   fi
4522 fi
4523 fi
4524 fi
4525 BUILD_CC=$ac_cv_prog_BUILD_CC
4526 if test -n "$BUILD_CC"; then
4527   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4528 echo "${ECHO_T}$BUILD_CC" >&6; }
4529 else
4530   { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4532 fi
4533
4534
4535      fi
4536   fi
4537   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4538 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4539    { (exit 1); exit 1; }; }
4540   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4541   rm -f conftest*
4542   echo 'int main () { return 0; }' > conftest.$ac_ext
4543   ac_cv_build_exeext=
4544   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4545   (eval $ac_build_link) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; then
4549     for file in conftest.*; do
4550       case $file in
4551       *.c | *.o | *.obj | *.dSYM) ;;
4552       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4553       esac
4554     done
4555   else
4556     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4557 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4558    { (exit 1); exit 1; }; }
4559   fi
4560   rm -f conftest*
4561   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4562 fi
4563 fi
4564
4565 BUILD_EXEEXT=""
4566 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4567 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4568 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4569 ac_build_exeext=$BUILD_EXEEXT
4570
4571   ac_build_prefix=${build_alias}-
4572   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4573 set dummy ${ac_build_prefix}g++; ac_word=$2
4574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   if test -n "$BUILD_CXX"; then
4580   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4589     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597 fi
4598 fi
4599 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4600 if test -n "$BUILD_CXX"; then
4601   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4602 echo "${ECHO_T}$BUILD_CXX" >&6; }
4603 else
4604   { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4606 fi
4607
4608
4609   if test -z "$BUILD_CXX"; then
4610      # Extract the first word of "g++", so it can be a program name with args.
4611 set dummy g++; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test -n "$BUILD_CXX"; then
4618   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_prog_BUILD_CXX="g++"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 fi
4636 fi
4637 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638 if test -n "$BUILD_CXX"; then
4639   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640 echo "${ECHO_T}$BUILD_CXX" >&6; }
4641 else
4642   { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4644 fi
4645
4646
4647      if test -z "$BUILD_CXX"; then
4648        # Extract the first word of "c++", so it can be a program name with args.
4649 set dummy c++; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   if test -n "$BUILD_CXX"; then
4656   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4657 else
4658   ac_prog_rejected=no
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4667        ac_prog_rejected=yes
4668        continue
4669      fi
4670     ac_cv_prog_BUILD_CXX="c++"
4671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 if test $ac_prog_rejected = yes; then
4679   # We found a bogon in the path, so make sure we never use it.
4680   set dummy $ac_cv_prog_BUILD_CXX
4681   shift
4682   if test $# != 0; then
4683     # We chose a different compiler from the bogus one.
4684     # However, it has the same basename, so the bogon will be chosen
4685     # first if we set BUILD_CXX to just the basename; use the full file name.
4686     shift
4687     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4688   fi
4689 fi
4690 fi
4691 fi
4692 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4693 if test -n "$BUILD_CXX"; then
4694   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4695 echo "${ECHO_T}$BUILD_CXX" >&6; }
4696 else
4697   { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4699 fi
4700
4701
4702      fi
4703   fi
4704 else
4705   LLVM_CROSS_COMPILING=0
4706
4707 fi
4708
4709 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4710   cvsbuild="yes"
4711   optimize="no"
4712   CVSBUILD=CVSBUILD=1
4713
4714 else
4715   cvsbuild="no"
4716   optimize="yes"
4717 fi
4718
4719
4720 # Check whether --enable-optimized was given.
4721 if test "${enable_optimized+set}" = set; then
4722   enableval=$enable_optimized;
4723 else
4724   enableval=$optimize
4725 fi
4726
4727 if test ${enableval} = "no" ; then
4728   ENABLE_OPTIMIZED=
4729
4730 else
4731   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4732
4733 fi
4734
4735 # Check whether --enable-profiling was given.
4736 if test "${enable_profiling+set}" = set; then
4737   enableval=$enable_profiling;
4738 else
4739   enableval="no"
4740 fi
4741
4742 if test ${enableval} = "no" ; then
4743   ENABLE_PROFILING=
4744
4745 else
4746   ENABLE_PROFILING=ENABLE_PROFILING=1
4747
4748 fi
4749
4750 # Check whether --enable-assertions was given.
4751 if test "${enable_assertions+set}" = set; then
4752   enableval=$enable_assertions;
4753 else
4754   enableval="yes"
4755 fi
4756
4757 if test ${enableval} = "yes" ; then
4758   DISABLE_ASSERTIONS=
4759
4760 else
4761   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4762
4763 fi
4764
4765 # Check whether --enable-expensive-checks was given.
4766 if test "${enable_expensive_checks+set}" = set; then
4767   enableval=$enable_expensive_checks;
4768 else
4769   enableval="no"
4770 fi
4771
4772 if test ${enableval} = "yes" ; then
4773   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4774
4775   EXPENSIVE_CHECKS=yes
4776
4777 else
4778   ENABLE_EXPENSIVE_CHECKS=
4779
4780   EXPENSIVE_CHECKS=no
4781
4782 fi
4783
4784 # Check whether --enable-debug-runtime was given.
4785 if test "${enable_debug_runtime+set}" = set; then
4786   enableval=$enable_debug_runtime;
4787 else
4788   enableval=no
4789 fi
4790
4791 if test ${enableval} = "no" ; then
4792   DEBUG_RUNTIME=
4793
4794 else
4795   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4796
4797 fi
4798
4799 # Check whether --enable-jit was given.
4800 if test "${enable_jit+set}" = set; then
4801   enableval=$enable_jit;
4802 else
4803   enableval=default
4804 fi
4805
4806 if test ${enableval} = "no"
4807 then
4808   JIT=
4809
4810 else
4811   case "$llvm_cv_target_arch" in
4812     x86)     TARGET_HAS_JIT=1
4813  ;;
4814     Sparc)   TARGET_HAS_JIT=0
4815  ;;
4816     PowerPC) TARGET_HAS_JIT=1
4817  ;;
4818     x86_64)  TARGET_HAS_JIT=1
4819  ;;
4820     Alpha)   TARGET_HAS_JIT=1
4821  ;;
4822     IA64)    TARGET_HAS_JIT=0
4823  ;;
4824     ARM)     TARGET_HAS_JIT=0
4825  ;;
4826     Mips)    TARGET_HAS_JIT=0
4827  ;;
4828     PIC16)   TARGET_HAS_JIT=0
4829  ;;
4830     XCore)   TARGET_HAS_JIT=0
4831  ;;
4832     MSP430)  TARGET_HAS_JIT=0
4833  ;;
4834     *)       TARGET_HAS_JIT=0
4835  ;;
4836   esac
4837 fi
4838
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then
4841   enableval=$enable_doxygen;
4842 else
4843   enableval=default
4844 fi
4845
4846 case "$enableval" in
4847   yes) ENABLE_DOXYGEN=1
4848  ;;
4849   no)  ENABLE_DOXYGEN=0
4850  ;;
4851   default) ENABLE_DOXYGEN=0
4852  ;;
4853   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855    { (exit 1); exit 1; }; } ;;
4856 esac
4857
4858 # Check whether --enable-threads was given.
4859 if test "${enable_threads+set}" = set; then
4860   enableval=$enable_threads;
4861 else
4862   enableval=default
4863 fi
4864
4865 case "$enableval" in
4866   yes) ENABLE_THREADS=1
4867  ;;
4868   no)  ENABLE_THREADS=0
4869  ;;
4870   default) ENABLE_THREADS=1
4871  ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 cat >>confdefs.h <<_ACEOF
4878 #define ENABLE_THREADS $ENABLE_THREADS
4879 _ACEOF
4880
4881
4882 # Check whether --enable-pic was given.
4883 if test "${enable_pic+set}" = set; then
4884   enableval=$enable_pic;
4885 else
4886   enableval=default
4887 fi
4888
4889 case "$enableval" in
4890   yes) ENABLE_PIC=1
4891  ;;
4892   no)  ENABLE_PIC=0
4893  ;;
4894   default) ENABLE_PIC=1
4895  ;;
4896   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898    { (exit 1); exit 1; }; } ;;
4899 esac
4900
4901 cat >>confdefs.h <<_ACEOF
4902 #define ENABLE_PIC $ENABLE_PIC
4903 _ACEOF
4904
4905
4906 TARGETS_TO_BUILD=""
4907 # Check whether --enable-targets was given.
4908 if test "${enable_targets+set}" = set; then
4909   enableval=$enable_targets;
4910 else
4911   enableval=all
4912 fi
4913
4914 case "$enableval" in
4915   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4916   host-only)
4917     case "$llvm_cv_target_arch" in
4918       x86)     TARGETS_TO_BUILD="X86" ;;
4919       x86_64)  TARGETS_TO_BUILD="X86" ;;
4920       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4921       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4922       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4923       IA64)    TARGETS_TO_BUILD="IA64" ;;
4924       ARM)     TARGETS_TO_BUILD="ARM" ;;
4925       Mips)    TARGETS_TO_BUILD="Mips" ;;
4926       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4927       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4928       XCore)   TARGETS_TO_BUILD="XCore" ;;
4929       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4930       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4931 echo "$as_me: error: Can not set target to build" >&2;}
4932    { (exit 1); exit 1; }; } ;;
4933     esac
4934     ;;
4935   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4936       case "$a_target" in
4937         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4938         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4940         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4941         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4942         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4943         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4944         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4945         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4946         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4947         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4948         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4949         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4950         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4951         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4952         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4953 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955       esac
4956   done
4957   ;;
4958 esac
4959 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4960
4961
4962 # Check whether --enable-cbe-printf-a was given.
4963 if test "${enable_cbe_printf_a+set}" = set; then
4964   enableval=$enable_cbe_printf_a;
4965 else
4966   enableval=default
4967 fi
4968
4969 case "$enableval" in
4970   yes) ENABLE_CBE_PRINTF_A=1
4971  ;;
4972   no)  ENABLE_CBE_PRINTF_A=0
4973  ;;
4974   default)  ENABLE_CBE_PRINTF_A=1
4975  ;;
4976   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4978    { (exit 1); exit 1; }; } ;;
4979 esac
4980
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4983 _ACEOF
4984
4985
4986
4987 # Check whether --with-llvmgccdir was given.
4988 if test "${with_llvmgccdir+set}" = set; then
4989   withval=$with_llvmgccdir;
4990 else
4991   withval=default
4992 fi
4993
4994 case "$withval" in
4995   default) WITH_LLVMGCCDIR=default ;;
4996   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4997   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4998 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000 esac
5001
5002
5003 # Check whether --with-llvmgcc was given.
5004 if test "${with_llvmgcc+set}" = set; then
5005   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5006       WITH_LLVMGCCDIR=""
5007 fi
5008
5009
5010
5011 # Check whether --with-llvmgxx was given.
5012 if test "${with_llvmgxx+set}" = set; then
5013   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5014     WITH_LLVMGCCDIR=""
5015 fi
5016
5017
5018 if test -n "$LLVMGCC"; then
5019    LLVMGCCCOMMAND="$LLVMGCC"
5020 fi
5021
5022 if test -n "$LLVMGXX"; then
5023    LLVMGXXCOMMAND="$LLVMGXX"
5024 fi
5025
5026 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5027    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5028 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5029    { (exit 1); exit 1; }; };
5030 fi
5031
5032 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5033    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5034 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5035    { (exit 1); exit 1; }; };
5036 fi
5037
5038
5039 # Check whether --with-extra-options was given.
5040 if test "${with_extra_options+set}" = set; then
5041   withval=$with_extra_options;
5042 else
5043   withval=default
5044 fi
5045
5046 case "$withval" in
5047   default) EXTRA_OPTIONS= ;;
5048   *) EXTRA_OPTIONS=$withval ;;
5049 esac
5050 EXTRA_OPTIONS=$EXTRA_OPTIONS
5051
5052
5053 # Check whether --enable-bindings was given.
5054 if test "${enable_bindings+set}" = set; then
5055   enableval=$enable_bindings;
5056 else
5057   enableval=default
5058 fi
5059
5060 BINDINGS_TO_BUILD=""
5061 case "$enableval" in
5062   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5063   all ) BINDINGS_TO_BUILD="ocaml" ;;
5064   none | no) BINDINGS_TO_BUILD="" ;;
5065   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066       case "$a_binding" in
5067         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5068         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5069 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5070    { (exit 1); exit 1; }; } ;;
5071       esac
5072   done
5073   ;;
5074 esac
5075
5076
5077 # Check whether --with-ocaml-libdir was given.
5078 if test "${with_ocaml_libdir+set}" = set; then
5079   withval=$with_ocaml_libdir;
5080 else
5081   withval=auto
5082 fi
5083
5084 case "$withval" in
5085   auto) with_ocaml_libdir="$withval" ;;
5086   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5087   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5088 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5089    { (exit 1); exit 1; }; } ;;
5090 esac
5091
5092
5093 # Check whether --with-binutils-include was given.
5094 if test "${with_binutils_include+set}" = set; then
5095   withval=$with_binutils_include;
5096 else
5097   withval=default
5098 fi
5099
5100 case "$withval" in
5101   default) WITH_BINUTILS_INCDIR=default ;;
5102   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5103   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5104 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5105    { (exit 1); exit 1; }; } ;;
5106 esac
5107 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5108   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5109
5110   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5111      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5112      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5113 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5114    { (exit 1); exit 1; }; };
5115   fi
5116 fi
5117
5118 # Check whether --enable-libffi was given.
5119 if test "${enable_libffi+set}" = set; then
5120   enableval=$enable_libffi;
5121 else
5122   enableval=yes
5123 fi
5124
5125 case "$enableval" in
5126   yes) llvm_cv_enable_libffi="yes" ;;
5127   no)  llvm_cv_enable_libffi="no"  ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133
5134 ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5141 # On Suns, sometimes $CPP names a directory.
5142 if test -n "$CPP" && test -d "$CPP"; then
5143   CPP=
5144 fi
5145 if test -z "$CPP"; then
5146   if test "${ac_cv_prog_CPP+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149       # Double quotes because CPP needs to be expanded
5150     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5151     do
5152       ac_preproc_ok=false
5153 for ac_c_preproc_warn_flag in '' yes
5154 do
5155   # Use a header file that comes with gcc, so configuring glibc
5156   # with a fresh cross-compiler works.
5157   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158   # <limits.h> exists even on freestanding compilers.
5159   # On the NeXT, cc -E runs the code through the compiler's parser,
5160   # not just through cpp. "Syntax error" is here to catch this case.
5161   cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172                      Syntax error
5173 _ACEOF
5174 if { (ac_try="$ac_cpp conftest.$ac_ext"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
5184   cat conftest.err >&5
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } >/dev/null; then
5187   if test -s conftest.err; then
5188     ac_cpp_err=$ac_c_preproc_warn_flag
5189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190   else
5191     ac_cpp_err=
5192   fi
5193 else
5194   ac_cpp_err=yes
5195 fi
5196 if test -z "$ac_cpp_err"; then
5197   :
5198 else
5199   echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202   # Broken: fails on valid input.
5203 continue
5204 fi
5205
5206 rm -f conftest.err conftest.$ac_ext
5207
5208   # OK, works on sane cases.  Now check whether nonexistent headers
5209   # can be detected and how.
5210   cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216 #include <ac_nonexistent.h>
5217 _ACEOF
5218 if { (ac_try="$ac_cpp conftest.$ac_ext"
5219 case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } >/dev/null; then
5231   if test -s conftest.err; then
5232     ac_cpp_err=$ac_c_preproc_warn_flag
5233     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5234   else
5235     ac_cpp_err=
5236   fi
5237 else
5238   ac_cpp_err=yes
5239 fi
5240 if test -z "$ac_cpp_err"; then
5241   # Broken: success on invalid input.
5242 continue
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247   # Passes both tests.
5248 ac_preproc_ok=:
5249 break
5250 fi
5251
5252 rm -f conftest.err conftest.$ac_ext
5253
5254 done
5255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256 rm -f conftest.err conftest.$ac_ext
5257 if $ac_preproc_ok; then
5258   break
5259 fi
5260
5261     done
5262     ac_cv_prog_CPP=$CPP
5263
5264 fi
5265   CPP=$ac_cv_prog_CPP
5266 else
5267   ac_cv_prog_CPP=$CPP
5268 fi
5269 { echo "$as_me:$LINENO: result: $CPP" >&5
5270 echo "${ECHO_T}$CPP" >&6; }
5271 ac_preproc_ok=false
5272 for ac_c_preproc_warn_flag in '' yes
5273 do
5274   # Use a header file that comes with gcc, so configuring glibc
5275   # with a fresh cross-compiler works.
5276   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277   # <limits.h> exists even on freestanding compilers.
5278   # On the NeXT, cc -E runs the code through the compiler's parser,
5279   # not just through cpp. "Syntax error" is here to catch this case.
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #ifdef __STDC__
5287 # include <limits.h>
5288 #else
5289 # include <assert.h>
5290 #endif
5291                      Syntax error
5292 _ACEOF
5293 if { (ac_try="$ac_cpp conftest.$ac_ext"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } >/dev/null; then
5306   if test -s conftest.err; then
5307     ac_cpp_err=$ac_c_preproc_warn_flag
5308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5309   else
5310     ac_cpp_err=
5311   fi
5312 else
5313   ac_cpp_err=yes
5314 fi
5315 if test -z "$ac_cpp_err"; then
5316   :
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321   # Broken: fails on valid input.
5322 continue
5323 fi
5324
5325 rm -f conftest.err conftest.$ac_ext
5326
5327   # OK, works on sane cases.  Now check whether nonexistent headers
5328   # can be detected and how.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #include <ac_nonexistent.h>
5336 _ACEOF
5337 if { (ac_try="$ac_cpp conftest.$ac_ext"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } >/dev/null; then
5350   if test -s conftest.err; then
5351     ac_cpp_err=$ac_c_preproc_warn_flag
5352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353   else
5354     ac_cpp_err=
5355   fi
5356 else
5357   ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360   # Broken: success on invalid input.
5361 continue
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366   # Passes both tests.
5367 ac_preproc_ok=:
5368 break
5369 fi
5370
5371 rm -f conftest.err conftest.$ac_ext
5372
5373 done
5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375 rm -f conftest.err conftest.$ac_ext
5376 if $ac_preproc_ok; then
5377   :
5378 else
5379   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5380 See \`config.log' for more details." >&5
5381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5382 See \`config.log' for more details." >&2;}
5383    { (exit 1); exit 1; }; }
5384 fi
5385
5386 ac_ext=c
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 if test -n "$ac_tool_prefix"; then
5398   for ac_prog in gcc
5399   do
5400     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_CC+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   if test -n "$CC"; then
5408   ac_cv_prog_CC="$CC" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415   for ac_exec_ext in '' $ac_executable_extensions; do
5416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5417     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 CC=$ac_cv_prog_CC
5428 if test -n "$CC"; then
5429   { echo "$as_me:$LINENO: result: $CC" >&5
5430 echo "${ECHO_T}$CC" >&6; }
5431 else
5432   { echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6; }
5434 fi
5435
5436
5437     test -n "$CC" && break
5438   done
5439 fi
5440 if test -z "$CC"; then
5441   ac_ct_CC=$CC
5442   for ac_prog in gcc
5443 do
5444   # Extract the first word of "$ac_prog", so it can be a program name with args.
5445 set dummy $ac_prog; ac_word=$2
5446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   if test -n "$ac_ct_CC"; then
5452   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459   for ac_exec_ext in '' $ac_executable_extensions; do
5460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_prog_ac_ct_CC="$ac_prog"
5462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5472 if test -n "$ac_ct_CC"; then
5473   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5474 echo "${ECHO_T}$ac_ct_CC" >&6; }
5475 else
5476   { echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6; }
5478 fi
5479
5480
5481   test -n "$ac_ct_CC" && break
5482 done
5483
5484   if test "x$ac_ct_CC" = x; then
5485     CC=""
5486   else
5487     case $cross_compiling:$ac_tool_warned in
5488 yes:)
5489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5490 whose name does not start with the host triplet.  If you think this
5491 configuration is useful to you, please write to autoconf@gnu.org." >&5
5492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5493 whose name does not start with the host triplet.  If you think this
5494 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497     CC=$ac_ct_CC
5498   fi
5499 fi
5500
5501
5502 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: no acceptable C compiler found in \$PATH
5505 See \`config.log' for more details." >&2;}
5506    { (exit 1); exit 1; }; }
5507
5508 # Provide some information about the compiler.
5509 echo "$as_me:$LINENO: checking for C compiler version" >&5
5510 ac_compiler=`set X $ac_compile; echo $2`
5511 { (ac_try="$ac_compiler --version >&5"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_compiler --version >&5") 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); }
5521 { (ac_try="$ac_compiler -v >&5"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_compiler -v >&5") 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }
5531 { (ac_try="$ac_compiler -V >&5"
5532 case "(($ac_try" in
5533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534   *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537   (eval "$ac_compiler -V >&5") 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }
5541
5542 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5544 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553
5554 int
5555 main ()
5556 {
5557 #ifndef __GNUC__
5558        choke me
5559 #endif
5560
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_compile") 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } &&
5579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5580   { (case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_try") 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; } &&
5589          { ac_try='test -s conftest.$ac_objext'
5590   { (case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595   (eval "$ac_try") 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; }; then
5599   ac_compiler_gnu=yes
5600 else
5601   echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604         ac_compiler_gnu=no
5605 fi
5606
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5609
5610 fi
5611 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5612 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5613 GCC=`test $ac_compiler_gnu = yes && echo yes`
5614 ac_test_CFLAGS=${CFLAGS+set}
5615 ac_save_CFLAGS=$CFLAGS
5616 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5617 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5618 if test "${ac_cv_prog_cc_g+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   ac_save_c_werror_flag=$ac_c_werror_flag
5622    ac_c_werror_flag=yes
5623    ac_cv_prog_cc_g=no
5624    CFLAGS="-g"
5625    cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631
5632 int
5633 main ()
5634 {
5635
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5642 case "(($ac_try" in
5643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644   *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647   (eval "$ac_compile") 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5655   { (case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660   (eval "$ac_try") 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; } &&
5664          { ac_try='test -s conftest.$ac_objext'
5665   { (case "(($ac_try" in
5666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667   *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670   (eval "$ac_try") 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_prog_cc_g=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679         CFLAGS=""
5680       cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686
5687 int
5688 main ()
5689 {
5690
5691   ;
5692   return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699   *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702   (eval "$ac_compile") 2>conftest.er1
5703   ac_status=$?
5704   grep -v '^ *+' conftest.er1 >conftest.err
5705   rm -f conftest.er1
5706   cat conftest.err >&5
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); } &&
5709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5710   { (case "(($ac_try" in
5711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712   *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715   (eval "$ac_try") 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; } &&
5719          { ac_try='test -s conftest.$ac_objext'
5720   { (case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725   (eval "$ac_try") 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   :
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734         ac_c_werror_flag=$ac_save_c_werror_flag
5735          CFLAGS="-g"
5736          cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742
5743 int
5744 main ()
5745 {
5746
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5766   { (case "(($ac_try" in
5767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768   *) ac_try_echo=$ac_try;;
5769 esac
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771   (eval "$ac_try") 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; } &&
5775          { ac_try='test -s conftest.$ac_objext'
5776   { (case "(($ac_try" in
5777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778   *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781   (eval "$ac_try") 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_cv_prog_cc_g=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790
5791 fi
5792
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 fi
5795
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 fi
5798
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800    ac_c_werror_flag=$ac_save_c_werror_flag
5801 fi
5802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5804 if test "$ac_test_CFLAGS" = set; then
5805   CFLAGS=$ac_save_CFLAGS
5806 elif test $ac_cv_prog_cc_g = yes; then
5807   if test "$GCC" = yes; then
5808     CFLAGS="-g -O2"
5809   else
5810     CFLAGS="-g"
5811   fi
5812 else
5813   if test "$GCC" = yes; then
5814     CFLAGS="-O2"
5815   else
5816     CFLAGS=
5817   fi
5818 fi
5819 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5820 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5821 if test "${ac_cv_prog_cc_c89+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   ac_cv_prog_cc_c89=no
5825 ac_save_CC=$CC
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832 #include <stdarg.h>
5833 #include <stdio.h>
5834 #include <sys/types.h>
5835 #include <sys/stat.h>
5836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5837 struct buf { int x; };
5838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5839 static char *e (p, i)
5840      char **p;
5841      int i;
5842 {
5843   return p[i];
5844 }
5845 static char *f (char * (*g) (char **, int), char **p, ...)
5846 {
5847   char *s;
5848   va_list v;
5849   va_start (v,p);
5850   s = g (p, va_arg (v,int));
5851   va_end (v);
5852   return s;
5853 }
5854
5855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5856    function prototypes and stuff, but not '\xHH' hex character constants.
5857    These don't provoke an error unfortunately, instead are silently treated
5858    as 'x'.  The following induces an error, until -std is added to get
5859    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5860    array size at least.  It's necessary to write '\x00'==0 to get something
5861    that's true only with -std.  */
5862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5863
5864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5865    inside strings and character constants.  */
5866 #define FOO(x) 'x'
5867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5868
5869 int test (int i, double x);
5870 struct s1 {int (*f) (int a);};
5871 struct s2 {int (*f) (double a);};
5872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5873 int argc;
5874 char **argv;
5875 int
5876 main ()
5877 {
5878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5879   ;
5880   return 0;
5881 }
5882 _ACEOF
5883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5884         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5885 do
5886   CC="$ac_save_CC $ac_arg"
5887   rm -f conftest.$ac_objext
5888 if { (ac_try="$ac_compile"
5889 case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_compile") 2>conftest.er1
5895   ac_status=$?
5896   grep -v '^ *+' conftest.er1 >conftest.err
5897   rm -f conftest.er1
5898   cat conftest.err >&5
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } &&
5901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5902   { (case "(($ac_try" in
5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904   *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907   (eval "$ac_try") 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; } &&
5911          { ac_try='test -s conftest.$ac_objext'
5912   { (case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917   (eval "$ac_try") 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; }; then
5921   ac_cv_prog_cc_c89=$ac_arg
5922 else
5923   echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926
5927 fi
5928
5929 rm -f core conftest.err conftest.$ac_objext
5930   test "x$ac_cv_prog_cc_c89" != "xno" && break
5931 done
5932 rm -f conftest.$ac_ext
5933 CC=$ac_save_CC
5934
5935 fi
5936 # AC_CACHE_VAL
5937 case "x$ac_cv_prog_cc_c89" in
5938   x)
5939     { echo "$as_me:$LINENO: result: none needed" >&5
5940 echo "${ECHO_T}none needed" >&6; } ;;
5941   xno)
5942     { echo "$as_me:$LINENO: result: unsupported" >&5
5943 echo "${ECHO_T}unsupported" >&6; } ;;
5944   *)
5945     CC="$CC $ac_cv_prog_cc_c89"
5946     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5947 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5948 esac
5949
5950
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956
5957 ac_ext=cpp
5958 ac_cpp='$CXXCPP $CPPFLAGS'
5959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962 if test -z "$CXX"; then
5963   if test -n "$CCC"; then
5964     CXX=$CCC
5965   else
5966     if test -n "$ac_tool_prefix"; then
5967   for ac_prog in g++
5968   do
5969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973 if test "${ac_cv_prog_CXX+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$CXX"; then
5977   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984   for ac_exec_ext in '' $ac_executable_extensions; do
5985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5986     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 CXX=$ac_cv_prog_CXX
5997 if test -n "$CXX"; then
5998   { echo "$as_me:$LINENO: result: $CXX" >&5
5999 echo "${ECHO_T}$CXX" >&6; }
6000 else
6001   { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6003 fi
6004
6005
6006     test -n "$CXX" && break
6007   done
6008 fi
6009 if test -z "$CXX"; then
6010   ac_ct_CXX=$CXX
6011   for ac_prog in g++
6012 do
6013   # Extract the first word of "$ac_prog", so it can be a program name with args.
6014 set dummy $ac_prog; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   if test -n "$ac_ct_CXX"; then
6021   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028   for ac_exec_ext in '' $ac_executable_extensions; do
6029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030     ac_cv_prog_ac_ct_CXX="$ac_prog"
6031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6041 if test -n "$ac_ct_CXX"; then
6042   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6043 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6044 else
6045   { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6047 fi
6048
6049
6050   test -n "$ac_ct_CXX" && break
6051 done
6052
6053   if test "x$ac_ct_CXX" = x; then
6054     CXX="g++"
6055   else
6056     case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059 whose name does not start with the host triplet.  If you think this
6060 configuration is useful to you, please write to autoconf@gnu.org." >&5
6061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062 whose name does not start with the host triplet.  If you think this
6063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064 ac_tool_warned=yes ;;
6065 esac
6066     CXX=$ac_ct_CXX
6067   fi
6068 fi
6069
6070   fi
6071 fi
6072 # Provide some information about the compiler.
6073 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6074 ac_compiler=`set X $ac_compile; echo $2`
6075 { (ac_try="$ac_compiler --version >&5"
6076 case "(($ac_try" in
6077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078   *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081   (eval "$ac_compiler --version >&5") 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }
6085 { (ac_try="$ac_compiler -v >&5"
6086 case "(($ac_try" in
6087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088   *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091   (eval "$ac_compiler -v >&5") 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }
6095 { (ac_try="$ac_compiler -V >&5"
6096 case "(($ac_try" in
6097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098   *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101   (eval "$ac_compiler -V >&5") 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }
6105
6106 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117
6118 int
6119 main ()
6120 {
6121 #ifndef __GNUC__
6122        choke me
6123 #endif
6124
6125   ;
6126   return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136   (eval "$ac_compile") 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } &&
6143          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6144   { (case "(($ac_try" in
6145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146   *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149   (eval "$ac_try") 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; } &&
6153          { ac_try='test -s conftest.$ac_objext'
6154   { (case "(($ac_try" in
6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156   *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159   (eval "$ac_try") 2>&5
6160   ac_status=$?
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); }; }; then
6163   ac_compiler_gnu=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168         ac_compiler_gnu=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6173
6174 fi
6175 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6176 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6177 GXX=`test $ac_compiler_gnu = yes && echo yes`
6178 ac_test_CXXFLAGS=${CXXFLAGS+set}
6179 ac_save_CXXFLAGS=$CXXFLAGS
6180 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6181 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6182 if test "${ac_cv_prog_cxx_g+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6186    ac_cxx_werror_flag=yes
6187    ac_cv_prog_cxx_g=no
6188    CXXFLAGS="-g"
6189    cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195
6196 int
6197 main ()
6198 {
6199
6200   ;
6201   return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208   *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211   (eval "$ac_compile") 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } &&
6218          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6219   { (case "(($ac_try" in
6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221   *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224   (eval "$ac_try") 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; } &&
6228          { ac_try='test -s conftest.$ac_objext'
6229   { (case "(($ac_try" in
6230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231   *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234   (eval "$ac_try") 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   ac_cv_prog_cxx_g=yes
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243         CXXFLAGS=""
6244       cat >conftest.$ac_ext <<_ACEOF
6245 /* confdefs.h.  */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h.  */
6250
6251 int
6252 main ()
6253 {
6254
6255   ;
6256   return 0;
6257 }
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6261 case "(($ac_try" in
6262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263   *) ac_try_echo=$ac_try;;
6264 esac
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266   (eval "$ac_compile") 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } &&
6273          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6274   { (case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279   (eval "$ac_try") 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; } &&
6283          { ac_try='test -s conftest.$ac_objext'
6284   { (case "(($ac_try" in
6285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286   *) ac_try_echo=$ac_try;;
6287 esac
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289   (eval "$ac_try") 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; }; then
6293   :
6294 else
6295   echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6299          CXXFLAGS="-g"
6300          cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306
6307 int
6308 main ()
6309 {
6310
6311   ;
6312   return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (ac_try="$ac_compile"
6317 case "(($ac_try" in
6318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319   *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322   (eval "$ac_compile") 2>conftest.er1
6323   ac_status=$?
6324   grep -v '^ *+' conftest.er1 >conftest.err
6325   rm -f conftest.er1
6326   cat conftest.err >&5
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } &&
6329          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6330   { (case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335   (eval "$ac_try") 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; } &&
6339          { ac_try='test -s conftest.$ac_objext'
6340   { (case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_try") 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   ac_cv_prog_cxx_g=yes
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354
6355 fi
6356
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 fi
6359
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 fi
6362
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6365 fi
6366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6367 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6368 if test "$ac_test_CXXFLAGS" = set; then
6369   CXXFLAGS=$ac_save_CXXFLAGS
6370 elif test $ac_cv_prog_cxx_g = yes; then
6371   if test "$GXX" = yes; then
6372     CXXFLAGS="-g -O2"
6373   else
6374     CXXFLAGS="-g"
6375   fi
6376 else
6377   if test "$GXX" = yes; then
6378     CXXFLAGS="-O2"
6379   else
6380     CXXFLAGS=
6381   fi
6382 fi
6383 ac_ext=c
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389
6390 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6391 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6392 if test "${lt_cv_path_NM+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   if test -n "$NM"; then
6396   # Let the user override the test.
6397   lt_cv_path_NM="$NM"
6398 else
6399   lt_nm_to_check="${ac_tool_prefix}nm"
6400   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6401     lt_nm_to_check="$lt_nm_to_check nm"
6402   fi
6403   for lt_tmp_nm in $lt_nm_to_check; do
6404     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6405     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6406       IFS="$lt_save_ifs"
6407       test -z "$ac_dir" && ac_dir=.
6408       tmp_nm="$ac_dir/$lt_tmp_nm"
6409       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6410         # Check to see if the nm accepts a BSD-compat flag.
6411         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6412         #   nm: unknown option "B" ignored
6413         # Tru64's nm complains that /dev/null is an invalid object file
6414         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6415         */dev/null* | *'Invalid file or object type'*)
6416           lt_cv_path_NM="$tmp_nm -B"
6417           break
6418           ;;
6419         *)
6420           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6421           */dev/null*)
6422             lt_cv_path_NM="$tmp_nm -p"
6423             break
6424             ;;
6425           *)
6426             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6427             continue # so that we can try to find one that supports BSD flags
6428             ;;
6429           esac
6430           ;;
6431         esac
6432       fi
6433     done
6434     IFS="$lt_save_ifs"
6435   done
6436   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6437 fi
6438 fi
6439 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6440 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6441 NM="$lt_cv_path_NM"
6442
6443
6444
6445 { echo "$as_me:$LINENO: checking for GNU make" >&5
6446 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6447 if test "${llvm_cv_gnu_make_command+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   llvm_cv_gnu_make_command=''
6451  for a in "$MAKE" make gmake gnumake ; do
6452   if test -z "$a" ; then continue ; fi ;
6453   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6454   then
6455    llvm_cv_gnu_make_command=$a ;
6456    break;
6457   fi
6458  done
6459 fi
6460 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6461 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6462  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6463    ifGNUmake='' ;
6464  else
6465    ifGNUmake='#' ;
6466    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6467 echo "${ECHO_T}\"Not found\"" >&6; };
6468  fi
6469
6470
6471 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6472 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6473 LN_S=$as_ln_s
6474 if test "$LN_S" = "ln -s"; then
6475   { echo "$as_me:$LINENO: result: yes" >&5
6476 echo "${ECHO_T}yes" >&6; }
6477 else
6478   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6479 echo "${ECHO_T}no, using $LN_S" >&6; }
6480 fi
6481
6482 # Extract the first word of "cmp", so it can be a program name with args.
6483 set dummy cmp; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_CMP+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   case $CMP in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499   for ac_exec_ext in '' $ac_executable_extensions; do
6500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6510   ;;
6511 esac
6512 fi
6513 CMP=$ac_cv_path_CMP
6514 if test -n "$CMP"; then
6515   { echo "$as_me:$LINENO: result: $CMP" >&5
6516 echo "${ECHO_T}$CMP" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6520 fi
6521
6522
6523 # Extract the first word of "cp", so it can be a program name with args.
6524 set dummy cp; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_CP+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   case $CP in
6531   [\\/]* | ?:[\\/]*)
6532   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6533   ;;
6534   *)
6535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540   for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6551   ;;
6552 esac
6553 fi
6554 CP=$ac_cv_path_CP
6555 if test -n "$CP"; then
6556   { echo "$as_me:$LINENO: result: $CP" >&5
6557 echo "${ECHO_T}$CP" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563
6564 # Extract the first word of "date", so it can be a program name with args.
6565 set dummy date; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_path_DATE+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   case $DATE in
6572   [\\/]* | ?:[\\/]*)
6573   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6574   ;;
6575   *)
6576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581   for ac_exec_ext in '' $ac_executable_extensions; do
6582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6583     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588 done
6589 IFS=$as_save_IFS
6590
6591   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6592   ;;
6593 esac
6594 fi
6595 DATE=$ac_cv_path_DATE
6596 if test -n "$DATE"; then
6597   { echo "$as_me:$LINENO: result: $DATE" >&5
6598 echo "${ECHO_T}$DATE" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6602 fi
6603
6604
6605 # Extract the first word of "find", so it can be a program name with args.
6606 set dummy find; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_path_FIND+set}" = set; then
6610   echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612   case $FIND in
6613   [\\/]* | ?:[\\/]*)
6614   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6615   ;;
6616   *)
6617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6633   ;;
6634 esac
6635 fi
6636 FIND=$ac_cv_path_FIND
6637 if test -n "$FIND"; then
6638   { echo "$as_me:$LINENO: result: $FIND" >&5
6639 echo "${ECHO_T}$FIND" >&6; }
6640 else
6641   { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6643 fi
6644
6645
6646 # Extract the first word of "grep", so it can be a program name with args.
6647 set dummy grep; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_GREP+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   case $GREP in
6654   [\\/]* | ?:[\\/]*)
6655   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6656   ;;
6657   *)
6658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6674   ;;
6675 esac
6676 fi
6677 GREP=$ac_cv_path_GREP
6678 if test -n "$GREP"; then
6679   { echo "$as_me:$LINENO: result: $GREP" >&5
6680 echo "${ECHO_T}$GREP" >&6; }
6681 else
6682   { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6684 fi
6685
6686
6687 # Extract the first word of "mkdir", so it can be a program name with args.
6688 set dummy mkdir; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_MKDIR+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   case $MKDIR in
6695   [\\/]* | ?:[\\/]*)
6696   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6697   ;;
6698   *)
6699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6715   ;;
6716 esac
6717 fi
6718 MKDIR=$ac_cv_path_MKDIR
6719 if test -n "$MKDIR"; then
6720   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6721 echo "${ECHO_T}$MKDIR" >&6; }
6722 else
6723   { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6725 fi
6726
6727
6728 # Extract the first word of "mv", so it can be a program name with args.
6729 set dummy mv; ac_word=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_path_MV+set}" = set; then
6733   echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735   case $MV in
6736   [\\/]* | ?:[\\/]*)
6737   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6738   ;;
6739   *)
6740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745   for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6756   ;;
6757 esac
6758 fi
6759 MV=$ac_cv_path_MV
6760 if test -n "$MV"; then
6761   { echo "$as_me:$LINENO: result: $MV" >&5
6762 echo "${ECHO_T}$MV" >&6; }
6763 else
6764   { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6766 fi
6767
6768
6769 if test -n "$ac_tool_prefix"; then
6770   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6774 if test "${ac_cv_prog_RANLIB+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777   if test -n "$RANLIB"; then
6778   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 RANLIB=$ac_cv_prog_RANLIB
6798 if test -n "$RANLIB"; then
6799   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6800 echo "${ECHO_T}$RANLIB" >&6; }
6801 else
6802   { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6804 fi
6805
6806
6807 fi
6808 if test -z "$ac_cv_prog_RANLIB"; then
6809   ac_ct_RANLIB=$RANLIB
6810   # Extract the first word of "ranlib", so it can be a program name with args.
6811 set dummy ranlib; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   if test -n "$ac_ct_RANLIB"; then
6818   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825   for ac_exec_ext in '' $ac_executable_extensions; do
6826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827     ac_cv_prog_ac_ct_RANLIB="ranlib"
6828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6838 if test -n "$ac_ct_RANLIB"; then
6839   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6840 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846   if test "x$ac_ct_RANLIB" = x; then
6847     RANLIB=":"
6848   else
6849     case $cross_compiling:$ac_tool_warned in
6850 yes:)
6851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6852 whose name does not start with the host triplet.  If you think this
6853 configuration is useful to you, please write to autoconf@gnu.org." >&5
6854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet.  If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859     RANLIB=$ac_ct_RANLIB
6860   fi
6861 else
6862   RANLIB="$ac_cv_prog_RANLIB"
6863 fi
6864
6865 # Extract the first word of "rm", so it can be a program name with args.
6866 set dummy rm; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_RM+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   case $RM in
6873   [\\/]* | ?:[\\/]*)
6874   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6875   ;;
6876   *)
6877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6893   ;;
6894 esac
6895 fi
6896 RM=$ac_cv_path_RM
6897 if test -n "$RM"; then
6898   { echo "$as_me:$LINENO: result: $RM" >&5
6899 echo "${ECHO_T}$RM" >&6; }
6900 else
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905
6906 # Extract the first word of "sed", so it can be a program name with args.
6907 set dummy sed; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_SED+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   case $SED in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6934   ;;
6935 esac
6936 fi
6937 SED=$ac_cv_path_SED
6938 if test -n "$SED"; then
6939   { echo "$as_me:$LINENO: result: $SED" >&5
6940 echo "${ECHO_T}$SED" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946
6947 # Extract the first word of "tar", so it can be a program name with args.
6948 set dummy tar; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_TAR+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   case $TAR in
6955   [\\/]* | ?:[\\/]*)
6956   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6957   ;;
6958   *)
6959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6975   ;;
6976 esac
6977 fi
6978 TAR=$ac_cv_path_TAR
6979 if test -n "$TAR"; then
6980   { echo "$as_me:$LINENO: result: $TAR" >&5
6981 echo "${ECHO_T}$TAR" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 # Extract the first word of "pwd", so it can be a program name with args.
6989 set dummy pwd; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_BINPWD+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   case $BINPWD in
6996   [\\/]* | ?:[\\/]*)
6997   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6998   ;;
6999   *)
7000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005   for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7016   ;;
7017 esac
7018 fi
7019 BINPWD=$ac_cv_path_BINPWD
7020 if test -n "$BINPWD"; then
7021   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7022 echo "${ECHO_T}$BINPWD" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029
7030 # Extract the first word of "Graphviz", so it can be a program name with args.
7031 set dummy Graphviz; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   case $GRAPHVIZ in
7038   [\\/]* | ?:[\\/]*)
7039   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7040   ;;
7041   *)
7042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047   for ac_exec_ext in '' $ac_executable_extensions; do
7048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7058   ;;
7059 esac
7060 fi
7061 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7062 if test -n "$GRAPHVIZ"; then
7063   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7064 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7065 else
7066   { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7068 fi
7069
7070
7071 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7072
7073 cat >>confdefs.h <<\_ACEOF
7074 #define HAVE_GRAPHVIZ 1
7075 _ACEOF
7076
7077     if test "$llvm_cv_os_type" = "MingW" ; then
7078     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7079   fi
7080
7081 cat >>confdefs.h <<_ACEOF
7082 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7083 _ACEOF
7084
7085 fi
7086 # Extract the first word of "dot", so it can be a program name with args.
7087 set dummy dot; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_DOT+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   case $DOT in
7094   [\\/]* | ?:[\\/]*)
7095   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7096   ;;
7097   *)
7098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103   for ac_exec_ext in '' $ac_executable_extensions; do
7104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7114   ;;
7115 esac
7116 fi
7117 DOT=$ac_cv_path_DOT
7118 if test -n "$DOT"; then
7119   { echo "$as_me:$LINENO: result: $DOT" >&5
7120 echo "${ECHO_T}$DOT" >&6; }
7121 else
7122   { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7124 fi
7125
7126
7127 if test "$DOT" != "echo dot" ; then
7128
7129 cat >>confdefs.h <<\_ACEOF
7130 #define HAVE_DOT 1
7131 _ACEOF
7132
7133     if test "$llvm_cv_os_type" = "MingW" ; then
7134     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7135   fi
7136
7137 cat >>confdefs.h <<_ACEOF
7138 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7139 _ACEOF
7140
7141 fi
7142 for ac_prog in gv gsview32
7143 do
7144   # Extract the first word of "$ac_prog", so it can be a program name with args.
7145 set dummy $ac_prog; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_GV+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   case $GV in
7152   [\\/]* | ?:[\\/]*)
7153   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7154   ;;
7155   *)
7156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161   for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171   ;;
7172 esac
7173 fi
7174 GV=$ac_cv_path_GV
7175 if test -n "$GV"; then
7176   { echo "$as_me:$LINENO: result: $GV" >&5
7177 echo "${ECHO_T}$GV" >&6; }
7178 else
7179   { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7181 fi
7182
7183
7184   test -n "$GV" && break
7185 done
7186 test -n "$GV" || GV="echo gv"
7187
7188 if test "$GV" != "echo gv" ; then
7189
7190 cat >>confdefs.h <<\_ACEOF
7191 #define HAVE_GV 1
7192 _ACEOF
7193
7194     if test "$llvm_cv_os_type" = "MingW" ; then
7195     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7196   fi
7197
7198 cat >>confdefs.h <<_ACEOF
7199 #define LLVM_PATH_GV "$GV${EXEEXT}"
7200 _ACEOF
7201
7202 fi
7203 # Extract the first word of "dotty", so it can be a program name with args.
7204 set dummy dotty; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_DOTTY+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $DOTTY in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7231   ;;
7232 esac
7233 fi
7234 DOTTY=$ac_cv_path_DOTTY
7235 if test -n "$DOTTY"; then
7236   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7237 echo "${ECHO_T}$DOTTY" >&6; }
7238 else
7239   { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243
7244 if test "$DOTTY" != "echo dotty" ; then
7245
7246 cat >>confdefs.h <<\_ACEOF
7247 #define HAVE_DOTTY 1
7248 _ACEOF
7249
7250     if test "$llvm_cv_os_type" = "MingW" ; then
7251     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7252   fi
7253
7254 cat >>confdefs.h <<_ACEOF
7255 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7256 _ACEOF
7257
7258 fi
7259
7260
7261 # Extract the first word of "perl", so it can be a program name with args.
7262 set dummy perl; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_PERL+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $PERL in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7271   ;;
7272   *)
7273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7289   ;;
7290 esac
7291 fi
7292 PERL=$ac_cv_path_PERL
7293 if test -n "$PERL"; then
7294   { echo "$as_me:$LINENO: result: $PERL" >&5
7295 echo "${ECHO_T}$PERL" >&6; }
7296 else
7297   { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7299 fi
7300
7301
7302 if test "$PERL" != "none"; then
7303   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7304 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7305   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7306     { echo "$as_me:$LINENO: result: yes" >&5
7307 echo "${ECHO_T}yes" >&6; }
7308   else
7309     PERL=none
7310     { echo "$as_me:$LINENO: result: not found" >&5
7311 echo "${ECHO_T}not found" >&6; }
7312   fi
7313 fi
7314
7315
7316 if test x"$PERL" = xnone; then
7317    HAVE_PERL=0
7318
7319    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7320 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7321    { (exit 1); exit 1; }; }
7322 else
7323    HAVE_PERL=1
7324
7325 fi
7326
7327 # Find a good install program.  We prefer a C program (faster),
7328 # so one script is as good as another.  But avoid the broken or
7329 # incompatible versions:
7330 # SysV /etc/install, /usr/sbin/install
7331 # SunOS /usr/etc/install
7332 # IRIX /sbin/install
7333 # AIX /bin/install
7334 # AmigaOS /C/install, which installs bootblocks on floppy discs
7335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7338 # OS/2's system install, which has a completely different semantic
7339 # ./install, which can be erroneously created by make from ./install.sh.
7340 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7342 if test -z "$INSTALL"; then
7343 if test "${ac_cv_path_install+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351   # Account for people who put trailing slashes in PATH elements.
7352 case $as_dir/ in
7353   ./ | .// | /cC/* | \
7354   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7355   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7356   /usr/ucb/* ) ;;
7357   *)
7358     # OSF1 and SCO ODT 3.0 have their own names for install.
7359     # Don't use installbsd from OSF since it installs stuff as root
7360     # by default.
7361     for ac_prog in ginstall scoinst install; do
7362       for ac_exec_ext in '' $ac_executable_extensions; do
7363         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7364           if test $ac_prog = install &&
7365             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7366             # AIX install.  It has an incompatible calling convention.
7367             :
7368           elif test $ac_prog = install &&
7369             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7370             # program-specific install script used by HP pwplus--don't use.
7371             :
7372           else
7373             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7374             break 3
7375           fi
7376         fi
7377       done
7378     done
7379     ;;
7380 esac
7381 done
7382 IFS=$as_save_IFS
7383
7384
7385 fi
7386   if test "${ac_cv_path_install+set}" = set; then
7387     INSTALL=$ac_cv_path_install
7388   else
7389     # As a last resort, use the slow shell script.  Don't cache a
7390     # value for INSTALL within a source directory, because that will
7391     # break other packages using the cache if that directory is
7392     # removed, or if the value is a relative name.
7393     INSTALL=$ac_install_sh
7394   fi
7395 fi
7396 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7397 echo "${ECHO_T}$INSTALL" >&6; }
7398
7399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7400 # It thinks the first close brace ends the variable substitution.
7401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7402
7403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7404
7405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7406
7407
7408 # Extract the first word of "bzip2", so it can be a program name with args.
7409 set dummy bzip2; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_BZIP2+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   case $BZIP2 in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425   for ac_exec_ext in '' $ac_executable_extensions; do
7426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435   ;;
7436 esac
7437 fi
7438 BZIP2=$ac_cv_path_BZIP2
7439 if test -n "$BZIP2"; then
7440   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7441 echo "${ECHO_T}$BZIP2" >&6; }
7442 else
7443   { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7445 fi
7446
7447
7448 # Extract the first word of "doxygen", so it can be a program name with args.
7449 set dummy doxygen; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   case $DOXYGEN in
7456   [\\/]* | ?:[\\/]*)
7457   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7458   ;;
7459   *)
7460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465   for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475   ;;
7476 esac
7477 fi
7478 DOXYGEN=$ac_cv_path_DOXYGEN
7479 if test -n "$DOXYGEN"; then
7480   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7481 echo "${ECHO_T}$DOXYGEN" >&6; }
7482 else
7483   { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7485 fi
7486
7487
7488 # Extract the first word of "groff", so it can be a program name with args.
7489 set dummy groff; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_GROFF+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $GROFF in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   ;;
7516 esac
7517 fi
7518 GROFF=$ac_cv_path_GROFF
7519 if test -n "$GROFF"; then
7520   { echo "$as_me:$LINENO: result: $GROFF" >&5
7521 echo "${ECHO_T}$GROFF" >&6; }
7522 else
7523   { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7525 fi
7526
7527
7528 # Extract the first word of "gzip", so it can be a program name with args.
7529 set dummy gzip; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_GZIP+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   case $GZIP in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545   for ac_exec_ext in '' $ac_executable_extensions; do
7546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555   ;;
7556 esac
7557 fi
7558 GZIP=$ac_cv_path_GZIP
7559 if test -n "$GZIP"; then
7560   { echo "$as_me:$LINENO: result: $GZIP" >&5
7561 echo "${ECHO_T}$GZIP" >&6; }
7562 else
7563   { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7565 fi
7566
7567
7568 # Extract the first word of "pod2html", so it can be a program name with args.
7569 set dummy pod2html; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_POD2HTML+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   case $POD2HTML in
7576   [\\/]* | ?:[\\/]*)
7577   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7578   ;;
7579   *)
7580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585   for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595   ;;
7596 esac
7597 fi
7598 POD2HTML=$ac_cv_path_POD2HTML
7599 if test -n "$POD2HTML"; then
7600   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7601 echo "${ECHO_T}$POD2HTML" >&6; }
7602 else
7603   { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }
7605 fi
7606
7607
7608 # Extract the first word of "pod2man", so it can be a program name with args.
7609 set dummy pod2man; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_POD2MAN+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   case $POD2MAN in
7616   [\\/]* | ?:[\\/]*)
7617   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635   ;;
7636 esac
7637 fi
7638 POD2MAN=$ac_cv_path_POD2MAN
7639 if test -n "$POD2MAN"; then
7640   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7641 echo "${ECHO_T}$POD2MAN" >&6; }
7642 else
7643   { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7645 fi
7646
7647
7648 # Extract the first word of "runtest", so it can be a program name with args.
7649 set dummy runtest; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_RUNTEST+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   case $RUNTEST in
7656   [\\/]* | ?:[\\/]*)
7657   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7658   ;;
7659   *)
7660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665   for ac_exec_ext in '' $ac_executable_extensions; do
7666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675   ;;
7676 esac
7677 fi
7678 RUNTEST=$ac_cv_path_RUNTEST
7679 if test -n "$RUNTEST"; then
7680   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7681 echo "${ECHO_T}$RUNTEST" >&6; }
7682 else
7683   { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7685 fi
7686
7687
7688
7689 no_itcl=true
7690 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7691 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7692
7693 # Check whether --with-tclinclude was given.
7694 if test "${with_tclinclude+set}" = set; then
7695   withval=$with_tclinclude; with_tclinclude=${withval}
7696 else
7697   with_tclinclude=''
7698 fi
7699
7700 if test "${ac_cv_path_tclsh+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703
7704 if test x"${with_tclinclude}" != x ; then
7705   if test -f ${with_tclinclude}/tclsh ; then
7706     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7707   elif test -f ${with_tclinclude}/src/tclsh ; then
7708     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7709   else
7710     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7711 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7712    { (exit 1); exit 1; }; }
7713   fi
7714 fi
7715
7716 if test x"${ac_cv_path_tclsh}" = x ; then
7717   { echo "$as_me:$LINENO: result: none" >&5
7718 echo "${ECHO_T}none" >&6; }
7719   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
7720 do
7721   # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_TCLSH+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   case $TCLSH in
7729   [\\/]* | ?:[\\/]*)
7730   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7731   ;;
7732   *)
7733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738   for ac_exec_ext in '' $ac_executable_extensions; do
7739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745 done
7746 IFS=$as_save_IFS
7747
7748   ;;
7749 esac
7750 fi
7751 TCLSH=$ac_cv_path_TCLSH
7752 if test -n "$TCLSH"; then
7753   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7754 echo "${ECHO_T}$TCLSH" >&6; }
7755 else
7756   { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7758 fi
7759
7760
7761   test -n "$TCLSH" && break
7762 done
7763
7764   if test x"${TCLSH}" = x ; then
7765     ac_cv_path_tclsh='';
7766   else
7767     ac_cv_path_tclsh="${TCLSH}";
7768   fi
7769 else
7770   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7771 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7772   TCLSH="${ac_cv_path_tclsh}"
7773
7774 fi
7775
7776 fi
7777
7778 # Extract the first word of "zip", so it can be a program name with args.
7779 set dummy zip; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_path_ZIP+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   case $ZIP in
7786   [\\/]* | ?:[\\/]*)
7787   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7788   ;;
7789   *)
7790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795   for ac_exec_ext in '' $ac_executable_extensions; do
7796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7797     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805   ;;
7806 esac
7807 fi
7808 ZIP=$ac_cv_path_ZIP
7809 if test -n "$ZIP"; then
7810   { echo "$as_me:$LINENO: result: $ZIP" >&5
7811 echo "${ECHO_T}$ZIP" >&6; }
7812 else
7813   { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7815 fi
7816
7817
7818 for ac_prog in ocamlc
7819 do
7820   # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_path_OCAMLC+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   case $OCAMLC in
7828   [\\/]* | ?:[\\/]*)
7829   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7830   ;;
7831   *)
7832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   test -z "$as_dir" && as_dir=.
7837   for ac_exec_ext in '' $ac_executable_extensions; do
7838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847   ;;
7848 esac
7849 fi
7850 OCAMLC=$ac_cv_path_OCAMLC
7851 if test -n "$OCAMLC"; then
7852   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7853 echo "${ECHO_T}$OCAMLC" >&6; }
7854 else
7855   { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859
7860   test -n "$OCAMLC" && break
7861 done
7862
7863 for ac_prog in ocamlopt
7864 do
7865   # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   case $OCAMLOPT in
7873   [\\/]* | ?:[\\/]*)
7874   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7875   ;;
7876   *)
7877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880   IFS=$as_save_IFS
7881   test -z "$as_dir" && as_dir=.
7882   for ac_exec_ext in '' $ac_executable_extensions; do
7883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886     break 2
7887   fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892   ;;
7893 esac
7894 fi
7895 OCAMLOPT=$ac_cv_path_OCAMLOPT
7896 if test -n "$OCAMLOPT"; then
7897   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7898 echo "${ECHO_T}$OCAMLOPT" >&6; }
7899 else
7900   { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7902 fi
7903
7904
7905   test -n "$OCAMLOPT" && break
7906 done
7907
7908 for ac_prog in ocamldep
7909 do
7910   # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   case $OCAMLDEP in
7918   [\\/]* | ?:[\\/]*)
7919   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7920   ;;
7921   *)
7922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927   for ac_exec_ext in '' $ac_executable_extensions; do
7928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7929     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937   ;;
7938 esac
7939 fi
7940 OCAMLDEP=$ac_cv_path_OCAMLDEP
7941 if test -n "$OCAMLDEP"; then
7942   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7943 echo "${ECHO_T}$OCAMLDEP" >&6; }
7944 else
7945   { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7947 fi
7948
7949
7950   test -n "$OCAMLDEP" && break
7951 done
7952
7953 for ac_prog in ocamldoc
7954 do
7955   # Extract the first word of "$ac_prog", so it can be a program name with args.
7956 set dummy $ac_prog; ac_word=$2
7957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7959 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   case $OCAMLDOC in
7963   [\\/]* | ?:[\\/]*)
7964   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7965   ;;
7966   *)
7967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970   IFS=$as_save_IFS
7971   test -z "$as_dir" && as_dir=.
7972   for ac_exec_ext in '' $ac_executable_extensions; do
7973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7974     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976     break 2
7977   fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982   ;;
7983 esac
7984 fi
7985 OCAMLDOC=$ac_cv_path_OCAMLDOC
7986 if test -n "$OCAMLDOC"; then
7987   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7988 echo "${ECHO_T}$OCAMLDOC" >&6; }
7989 else
7990   { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7992 fi
7993
7994
7995   test -n "$OCAMLDOC" && break
7996 done
7997
7998 for ac_prog in gas as
7999 do
8000   # Extract the first word of "$ac_prog", so it can be a program name with args.
8001 set dummy $ac_prog; ac_word=$2
8002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8004 if test "${ac_cv_path_GAS+set}" = set; then
8005   echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007   case $GAS in
8008   [\\/]* | ?:[\\/]*)
8009   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8010   ;;
8011   *)
8012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015   IFS=$as_save_IFS
8016   test -z "$as_dir" && as_dir=.
8017   for ac_exec_ext in '' $ac_executable_extensions; do
8018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8019     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021     break 2
8022   fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027   ;;
8028 esac
8029 fi
8030 GAS=$ac_cv_path_GAS
8031 if test -n "$GAS"; then
8032   { echo "$as_me:$LINENO: result: $GAS" >&5
8033 echo "${ECHO_T}$GAS" >&6; }
8034 else
8035   { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8037 fi
8038
8039
8040   test -n "$GAS" && break
8041 done
8042
8043
8044 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8045 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8046 if test "${llvm_cv_link_use_r+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049    ac_ext=c
8050 ac_cpp='$CPP $CPPFLAGS'
8051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8054
8055   oldcflags="$CFLAGS"
8056   CFLAGS="$CFLAGS -Wl,-R."
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063
8064 int
8065 main ()
8066 {
8067 int main() { return 0; }
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8074 case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_link") 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8087   { (case "(($ac_try" in
8088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089   *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092   (eval "$ac_try") 2>&5
8093   ac_status=$?
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); }; } &&
8096          { ac_try='test -s conftest$ac_exeext'
8097   { (case "(($ac_try" in
8098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099   *) ac_try_echo=$ac_try;;
8100 esac
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102   (eval "$ac_try") 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   llvm_cv_link_use_r=yes
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111         llvm_cv_link_use_r=no
8112 fi
8113
8114 rm -f core conftest.err conftest.$ac_objext \
8115       conftest$ac_exeext conftest.$ac_ext
8116   CFLAGS="$oldcflags"
8117   ac_ext=c
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123
8124 fi
8125 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8126 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8127 if test "$llvm_cv_link_use_r" = yes ; then
8128
8129 cat >>confdefs.h <<\_ACEOF
8130 #define HAVE_LINK_R 1
8131 _ACEOF
8132
8133   fi
8134
8135
8136 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8137 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8138 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141    ac_ext=c
8142 ac_cpp='$CPP $CPPFLAGS'
8143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146
8147   oldcflags="$CFLAGS"
8148   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8149   cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155
8156 int
8157 main ()
8158 {
8159 int main() { return 0; }
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; } &&
8188          { ac_try='test -s conftest$ac_exeext'
8189   { (case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_try") 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   llvm_cv_link_use_export_dynamic=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203         llvm_cv_link_use_export_dynamic=no
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext \
8207       conftest$ac_exeext conftest.$ac_ext
8208   CFLAGS="$oldcflags"
8209   ac_ext=c
8210 ac_cpp='$CPP $CPPFLAGS'
8211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8214
8215
8216 fi
8217 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8218 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8219 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8220
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_LINK_EXPORT_DYNAMIC 1
8223 _ACEOF
8224
8225   fi
8226
8227
8228
8229
8230 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8231 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8232 if test "${ac_cv_c_const+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241
8242 int
8243 main ()
8244 {
8245 /* FIXME: Include the comments suggested by Paul. */
8246 #ifndef __cplusplus
8247   /* Ultrix mips cc rejects this.  */
8248   typedef int charset[2];
8249   const charset x;
8250   /* SunOS 4.1.1 cc rejects this.  */
8251   char const *const *ccp;
8252   char **p;
8253   /* NEC SVR4.0.2 mips cc rejects this.  */
8254   struct point {int x, y;};
8255   static struct point const zero = {0,0};
8256   /* AIX XL C 1.02.0.0 rejects this.
8257      It does not let you subtract one const X* pointer from another in
8258      an arm of an if-expression whose if-part is not a constant
8259      expression */
8260   const char *g = "string";
8261   ccp = &g + (g ? g-g : 0);
8262   /* HPUX 7.0 cc rejects these. */
8263   ++ccp;
8264   p = (char**) ccp;
8265   ccp = (char const *const *) p;
8266   { /* SCO 3.2v4 cc rejects this.  */
8267     char *t;
8268     char const *s = 0 ? (char *) 0 : (char const *) 0;
8269
8270     *t++ = 0;
8271     if (s) return 0;
8272   }
8273   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8274     int x[] = {25, 17};
8275     const int *foo = &x[0];
8276     ++foo;
8277   }
8278   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8279     typedef const int *iptr;
8280     iptr p = 0;
8281     ++p;
8282   }
8283   { /* AIX XL C 1.02.0.0 rejects this saying
8284        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8285     struct s { int j; const int *ap[3]; };
8286     struct s *b; b->j = 5;
8287   }
8288   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8289     const int foo = 10;
8290     if (!foo) return 0;
8291   }
8292   return !x[0] && !zero.x;
8293 #endif
8294
8295   ;
8296   return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext
8300 if { (ac_try="$ac_compile"
8301 case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_compile") 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314   { (case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_try") 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; } &&
8323          { ac_try='test -s conftest.$ac_objext'
8324   { (case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329   (eval "$ac_try") 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; }; then
8333   ac_cv_c_const=yes
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338         ac_cv_c_const=no
8339 fi
8340
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 fi
8343 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8344 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8345 if test $ac_cv_c_const = no; then
8346
8347 cat >>confdefs.h <<\_ACEOF
8348 #define const
8349 _ACEOF
8350
8351 fi
8352
8353
8354
8355
8356
8357
8358 ac_header_dirent=no
8359 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8360   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8361 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8362 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372 #include <sys/types.h>
8373 #include <$ac_hdr>
8374
8375 int
8376 main ()
8377 {
8378 if ((DIR *) 0)
8379 return 0;
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_compile") 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399   { (case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_try") 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; } &&
8408          { ac_try='test -s conftest.$ac_objext'
8409   { (case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_try") 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   eval "$as_ac_Header=yes"
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423         eval "$as_ac_Header=no"
8424 fi
8425
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 fi
8428 ac_res=`eval echo '${'$as_ac_Header'}'`
8429                { echo "$as_me:$LINENO: result: $ac_res" >&5
8430 echo "${ECHO_T}$ac_res" >&6; }
8431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8432   cat >>confdefs.h <<_ACEOF
8433 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8434 _ACEOF
8435
8436 ac_header_dirent=$ac_hdr; break
8437 fi
8438
8439 done
8440 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8441 if test $ac_header_dirent = dirent.h; then
8442   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8443 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8444 if test "${ac_cv_search_opendir+set}" = set; then
8445   echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447   ac_func_search_save_LIBS=$LIBS
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454
8455 /* Override any GCC internal prototype to avoid an error.
8456    Use char because int might match the return type of a GCC
8457    builtin and then its argument prototype would still apply.  */
8458 #ifdef __cplusplus
8459 extern "C"
8460 #endif
8461 char opendir ();
8462 int
8463 main ()
8464 {
8465 return opendir ();
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 for ac_lib in '' dir; do
8471   if test -z "$ac_lib"; then
8472     ac_res="none required"
8473   else
8474     ac_res=-l$ac_lib
8475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8476   fi
8477   rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484   (eval "$ac_link") 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492   { (case "(($ac_try" in
8493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494   *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497   (eval "$ac_try") 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; } &&
8501          { ac_try='test -s conftest$ac_exeext'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_cv_search_opendir=$ac_res
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext \
8520       conftest$ac_exeext
8521   if test "${ac_cv_search_opendir+set}" = set; then
8522   break
8523 fi
8524 done
8525 if test "${ac_cv_search_opendir+set}" = set; then
8526   :
8527 else
8528   ac_cv_search_opendir=no
8529 fi
8530 rm conftest.$ac_ext
8531 LIBS=$ac_func_search_save_LIBS
8532 fi
8533 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8534 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8535 ac_res=$ac_cv_search_opendir
8536 if test "$ac_res" != no; then
8537   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8538
8539 fi
8540
8541 else
8542   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8544 if test "${ac_cv_search_opendir+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   ac_func_search_save_LIBS=$LIBS
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 /* Override any GCC internal prototype to avoid an error.
8556    Use char because int might match the return type of a GCC
8557    builtin and then its argument prototype would still apply.  */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 char opendir ();
8562 int
8563 main ()
8564 {
8565 return opendir ();
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 for ac_lib in '' x; do
8571   if test -z "$ac_lib"; then
8572     ac_res="none required"
8573   else
8574     ac_res=-l$ac_lib
8575     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8576   fi
8577   rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (ac_try="$ac_link"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_link") 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592   { (case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_try") 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; } &&
8601          { ac_try='test -s conftest$ac_exeext'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; }; then
8611   ac_cv_search_opendir=$ac_res
8612 else
8613   echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext \
8620       conftest$ac_exeext
8621   if test "${ac_cv_search_opendir+set}" = set; then
8622   break
8623 fi
8624 done
8625 if test "${ac_cv_search_opendir+set}" = set; then
8626   :
8627 else
8628   ac_cv_search_opendir=no
8629 fi
8630 rm conftest.$ac_ext
8631 LIBS=$ac_func_search_save_LIBS
8632 fi
8633 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8634 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8635 ac_res=$ac_cv_search_opendir
8636 if test "$ac_res" != no; then
8637   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8638
8639 fi
8640
8641 fi
8642
8643
8644 for ac_header in dlfcn.h
8645 do
8646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 fi
8653 ac_res=`eval echo '${'$as_ac_Header'}'`
8654                { echo "$as_me:$LINENO: result: $ac_res" >&5
8655 echo "${ECHO_T}$ac_res" >&6; }
8656 else
8657   # Is the header compilable?
8658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 $ac_includes_default
8667 #include <$ac_header>
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8671 case "(($ac_try" in
8672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673   *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676   (eval "$ac_compile") 2>conftest.er1
8677   ac_status=$?
8678   grep -v '^ *+' conftest.er1 >conftest.err
8679   rm -f conftest.er1
8680   cat conftest.err >&5
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } &&
8683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684   { (case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689   (eval "$ac_try") 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; } &&
8693          { ac_try='test -s conftest.$ac_objext'
8694   { (case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_try") 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; }; then
8703   ac_header_compiler=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708         ac_header_compiler=no
8709 fi
8710
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713 echo "${ECHO_T}$ac_header_compiler" >&6; }
8714
8715 # Is the header present?
8716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8718 cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724 #include <$ac_header>
8725 _ACEOF
8726 if { (ac_try="$ac_cpp conftest.$ac_ext"
8727 case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } >/dev/null; then
8739   if test -s conftest.err; then
8740     ac_cpp_err=$ac_c_preproc_warn_flag
8741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8742   else
8743     ac_cpp_err=
8744   fi
8745 else
8746   ac_cpp_err=yes
8747 fi
8748 if test -z "$ac_cpp_err"; then
8749   ac_header_preproc=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754   ac_header_preproc=no
8755 fi
8756
8757 rm -f conftest.err conftest.$ac_ext
8758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6; }
8760
8761 # So?  What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763   yes:no: )
8764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768     ac_header_preproc=yes
8769     ;;
8770   no:yes:* )
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8783     ( cat <<\_ASBOX
8784 ## ----------------------------------- ##
8785 ## Report this to llvmbugs@cs.uiuc.edu ##
8786 ## ----------------------------------- ##
8787 _ASBOX
8788      ) | sed "s/^/$as_me: WARNING:     /" >&2
8789     ;;
8790 esac
8791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   eval "$as_ac_Header=\$ac_header_preproc"
8797 fi
8798 ac_res=`eval echo '${'$as_ac_Header'}'`
8799                { echo "$as_me:$LINENO: result: $ac_res" >&5
8800 echo "${ECHO_T}$ac_res" >&6; }
8801
8802 fi
8803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8804   cat >>confdefs.h <<_ACEOF
8805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8806 _ACEOF
8807
8808 fi
8809
8810 done
8811
8812 # Check whether --enable-ltdl-install was given.
8813 if test "${enable_ltdl_install+set}" = set; then
8814   enableval=$enable_ltdl_install;
8815 fi
8816
8817
8818
8819
8820 if test x"${enable_ltdl_install-no}" != xno; then
8821   INSTALL_LTDL_TRUE=
8822   INSTALL_LTDL_FALSE='#'
8823 else
8824   INSTALL_LTDL_TRUE='#'
8825   INSTALL_LTDL_FALSE=
8826 fi
8827
8828
8829
8830 if test x"${enable_ltdl_convenience-no}" != xno; then
8831   CONVENIENCE_LTDL_TRUE=
8832   CONVENIENCE_LTDL_FALSE='#'
8833 else
8834   CONVENIENCE_LTDL_TRUE='#'
8835   CONVENIENCE_LTDL_FALSE=
8836 fi
8837
8838
8839 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8841 library_names_spec=
8842 libname_spec='lib$name'
8843 soname_spec=
8844 shrext_cmds=".so"
8845 postinstall_cmds=
8846 postuninstall_cmds=
8847 finish_cmds=
8848 finish_eval=
8849 shlibpath_var=
8850 shlibpath_overrides_runpath=unknown
8851 version_type=none
8852 dynamic_linker="$host_os ld.so"
8853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8854 if test "$GCC" = yes; then
8855   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8857     # if the path contains ";" then we assume it to be the separator
8858     # otherwise default to the standard path separator (i.e. ":") - it is
8859     # assumed that no part of a normal pathname contains ";" but that should
8860     # okay in the real world where ";" in dirpaths is itself problematic.
8861     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8862   else
8863     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8864   fi
8865 else
8866   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8867 fi
8868 need_lib_prefix=unknown
8869 hardcode_into_libs=no
8870
8871 # when you set need_version to no, make sure it does not cause -set_version
8872 # flags to be left without arguments
8873 need_version=unknown
8874
8875 case $host_os in
8876 aix3*)
8877   version_type=linux
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8879   shlibpath_var=LIBPATH
8880
8881   # AIX 3 has no versioning support, so we append a major version to the name.
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   ;;
8884
8885 aix4* | aix5*)
8886   version_type=linux
8887   need_lib_prefix=no
8888   need_version=no
8889   hardcode_into_libs=yes
8890   if test "$host_cpu" = ia64; then
8891     # AIX 5 supports IA64
8892     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8893     shlibpath_var=LD_LIBRARY_PATH
8894   else
8895     # With GCC up to 2.95.x, collect2 would create an import file
8896     # for dependence libraries.  The import file would start with
8897     # the line `#! .'.  This would cause the generated library to
8898     # depend on `.', always an invalid library.  This was fixed in
8899     # development snapshots of GCC prior to 3.0.
8900     case $host_os in
8901       aix4 | aix4.[01] | aix4.[01].*)
8902       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8903            echo ' yes '
8904            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8905         :
8906       else
8907         can_build_shared=no
8908       fi
8909       ;;
8910     esac
8911     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8912     # soname into executable. Probably we can add versioning support to
8913     # collect2, so additional links can be useful in future.
8914     if test "$aix_use_runtimelinking" = yes; then
8915       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8916       # instead of lib<name>.a to let people know that these are not
8917       # typical AIX shared libraries.
8918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919     else
8920       # We preserve .a as extension for shared libraries through AIX4.2
8921       # and later when we are not doing run time linking.
8922       library_names_spec='${libname}${release}.a $libname.a'
8923       soname_spec='${libname}${release}${shared_ext}$major'
8924     fi
8925     shlibpath_var=LIBPATH
8926   fi
8927   ;;
8928
8929 amigaos*)
8930   library_names_spec='$libname.ixlibrary $libname.a'
8931   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8932   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'
8933   ;;
8934
8935 beos*)
8936   library_names_spec='${libname}${shared_ext}'
8937   dynamic_linker="$host_os ld.so"
8938   shlibpath_var=LIBRARY_PATH
8939   ;;
8940
8941 bsdi[45]*)
8942   version_type=linux
8943   need_version=no
8944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945   soname_spec='${libname}${release}${shared_ext}$major'
8946   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8949   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8950   # the default ld.so.conf also contains /usr/contrib/lib and
8951   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8952   # libtool to hard-code these into programs
8953   ;;
8954
8955 cygwin* | mingw* | pw32*)
8956   version_type=windows
8957   shrext_cmds=".dll"
8958   need_version=no
8959   need_lib_prefix=no
8960
8961   case $GCC,$host_os in
8962   yes,cygwin* | yes,mingw* | yes,pw32*)
8963     library_names_spec='$libname.dll.a'
8964     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8965     postinstall_cmds='base_file=`basename \${file}`~
8966       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8967       dldir=$destdir/`dirname \$dlpath`~
8968       test -d \$dldir || mkdir -p \$dldir~
8969       $install_prog $dir/$dlname \$dldir/$dlname~
8970       chmod a+x \$dldir/$dlname'
8971     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8972       dlpath=$dir/\$dldll~
8973        $rm \$dlpath'
8974     shlibpath_overrides_runpath=yes
8975
8976     case $host_os in
8977     cygwin*)
8978       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8979       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8980       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8981       ;;
8982     mingw*)
8983       # MinGW DLLs use traditional 'lib' prefix
8984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8985       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8986       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8987         # It is most probably a Windows format PATH printed by
8988         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8989         # path with ; separators, and with drive letters. We can handle the
8990         # drive letters (cygwin fileutils understands them), so leave them,
8991         # especially as we might pass files found there to a mingw objdump,
8992         # which wouldn't understand a cygwinified path. Ahh.
8993         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8994       else
8995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8996       fi
8997       ;;
8998     pw32*)
8999       # pw32 DLLs use 'pw' prefix rather than 'lib'
9000       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9001       ;;
9002     esac
9003     ;;
9004
9005   *)
9006     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9007     ;;
9008   esac
9009   dynamic_linker='Win32 ld.exe'
9010   # FIXME: first we should search . and the directory the executable is in
9011   shlibpath_var=PATH
9012   ;;
9013
9014 darwin* | rhapsody*)
9015   dynamic_linker="$host_os dyld"
9016   version_type=darwin
9017   need_lib_prefix=no
9018   need_version=no
9019   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9020   soname_spec='${libname}${release}${major}$shared_ext'
9021   shlibpath_overrides_runpath=yes
9022   shlibpath_var=DYLD_LIBRARY_PATH
9023   shrext_cmds='.dylib'
9024   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9025   if test "$GCC" = yes; then
9026     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"`
9027   else
9028     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9029   fi
9030   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9031   ;;
9032
9033 dgux*)
9034   version_type=linux
9035   need_lib_prefix=no
9036   need_version=no
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   ;;
9041
9042 freebsd1*)
9043   dynamic_linker=no
9044   ;;
9045
9046 kfreebsd*-gnu)
9047   version_type=linux
9048   need_lib_prefix=no
9049   need_version=no
9050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9051   soname_spec='${libname}${release}${shared_ext}$major'
9052   shlibpath_var=LD_LIBRARY_PATH
9053   shlibpath_overrides_runpath=no
9054   hardcode_into_libs=yes
9055   dynamic_linker='GNU ld.so'
9056   ;;
9057
9058 freebsd* | dragonfly*)
9059   # DragonFly does not have aout.  When/if they implement a new
9060   # versioning mechanism, adjust this.
9061   if test -x /usr/bin/objformat; then
9062     objformat=`/usr/bin/objformat`
9063   else
9064     case $host_os in
9065     freebsd[123]*) objformat=aout ;;
9066     *) objformat=elf ;;
9067     esac
9068   fi
9069   version_type=freebsd-$objformat
9070   case $version_type in
9071     freebsd-elf*)
9072       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073       need_version=no
9074       need_lib_prefix=no
9075       ;;
9076     freebsd-*)
9077       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9078       need_version=yes
9079       ;;
9080   esac
9081   shlibpath_var=LD_LIBRARY_PATH
9082   case $host_os in
9083   freebsd2*)
9084     shlibpath_overrides_runpath=yes
9085     ;;
9086   freebsd3.[01]* | freebsdelf3.[01]*)
9087     shlibpath_overrides_runpath=yes
9088     hardcode_into_libs=yes
9089     ;;
9090   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9091   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9092     shlibpath_overrides_runpath=no
9093     hardcode_into_libs=yes
9094     ;;
9095   freebsd*) # from 4.6 on
9096     shlibpath_overrides_runpath=yes
9097     hardcode_into_libs=yes
9098     ;;
9099   esac
9100   ;;
9101
9102 gnu*)
9103   version_type=linux
9104   need_lib_prefix=no
9105   need_version=no
9106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9107   soname_spec='${libname}${release}${shared_ext}$major'
9108   shlibpath_var=LD_LIBRARY_PATH
9109   hardcode_into_libs=yes
9110   ;;
9111
9112 hpux9* | hpux10* | hpux11*)
9113   # Give a soname corresponding to the major version so that dld.sl refuses to
9114   # link against other versions.
9115   version_type=sunos
9116   need_lib_prefix=no
9117   need_version=no
9118   case $host_cpu in
9119   ia64*)
9120     shrext_cmds='.so'
9121     hardcode_into_libs=yes
9122     dynamic_linker="$host_os dld.so"
9123     shlibpath_var=LD_LIBRARY_PATH
9124     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126     soname_spec='${libname}${release}${shared_ext}$major'
9127     if test "X$HPUX_IA64_MODE" = X32; then
9128       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9129     else
9130       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9131     fi
9132     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9133     ;;
9134    hppa*64*)
9135      shrext_cmds='.sl'
9136      hardcode_into_libs=yes
9137      dynamic_linker="$host_os dld.sl"
9138      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9143      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9144      ;;
9145    *)
9146     shrext_cmds='.sl'
9147     dynamic_linker="$host_os dld.sl"
9148     shlibpath_var=SHLIB_PATH
9149     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151     soname_spec='${libname}${release}${shared_ext}$major'
9152     ;;
9153   esac
9154   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9155   postinstall_cmds='chmod 555 $lib'
9156   ;;
9157
9158 interix3*)
9159   version_type=linux
9160   need_lib_prefix=no
9161   need_version=no
9162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9163   soname_spec='${libname}${release}${shared_ext}$major'
9164   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9165   shlibpath_var=LD_LIBRARY_PATH
9166   shlibpath_overrides_runpath=no
9167   hardcode_into_libs=yes
9168   ;;
9169
9170 irix5* | irix6* | nonstopux*)
9171   case $host_os in
9172     nonstopux*) version_type=nonstopux ;;
9173     *)
9174         if test "$lt_cv_prog_gnu_ld" = yes; then
9175                 version_type=linux
9176         else
9177                 version_type=irix
9178         fi ;;
9179   esac
9180   need_lib_prefix=no
9181   need_version=no
9182   soname_spec='${libname}${release}${shared_ext}$major'
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9184   case $host_os in
9185   irix5* | nonstopux*)
9186     libsuff= shlibsuff=
9187     ;;
9188   *)
9189     case $LD in # libtool.m4 will add one of these switches to LD
9190     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9191       libsuff= shlibsuff= libmagic=32-bit;;
9192     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9193       libsuff=32 shlibsuff=N32 libmagic=N32;;
9194     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9195       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9196     *) libsuff= shlibsuff= libmagic=never-match;;
9197     esac
9198     ;;
9199   esac
9200   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9201   shlibpath_overrides_runpath=no
9202   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9203   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9204   hardcode_into_libs=yes
9205   ;;
9206
9207 # No shared lib support for Linux oldld, aout, or coff.
9208 linux*oldld* | linux*aout* | linux*coff*)
9209   dynamic_linker=no
9210   ;;
9211
9212 # This must be Linux ELF.
9213 linux*)
9214   version_type=linux
9215   need_lib_prefix=no
9216   need_version=no
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218   soname_spec='${libname}${release}${shared_ext}$major'
9219   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9220   shlibpath_var=LD_LIBRARY_PATH
9221   shlibpath_overrides_runpath=no
9222   # This implies no fast_install, which is unacceptable.
9223   # Some rework will be needed to allow for fast_install
9224   # before this can be enabled.
9225   hardcode_into_libs=yes
9226
9227   # Append ld.so.conf contents to the search path
9228   if test -f /etc/ld.so.conf; then
9229     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' ' '`
9230     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9231   fi
9232
9233   # We used to test for /lib/ld.so.1 and disable shared libraries on
9234   # powerpc, because MkLinux only supported shared libraries with the
9235   # GNU dynamic linker.  Since this was broken with cross compilers,
9236   # most powerpc-linux boxes support dynamic linking these days and
9237   # people can always --disable-shared, the test was removed, and we
9238   # assume the GNU/Linux dynamic linker is in use.
9239   dynamic_linker='GNU/Linux ld.so'
9240   ;;
9241
9242 knetbsd*-gnu)
9243   version_type=linux
9244   need_lib_prefix=no
9245   need_version=no
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247   soname_spec='${libname}${release}${shared_ext}$major'
9248   shlibpath_var=LD_LIBRARY_PATH
9249   shlibpath_overrides_runpath=no
9250   hardcode_into_libs=yes
9251   dynamic_linker='GNU ld.so'
9252   ;;
9253
9254 netbsd*)
9255   version_type=sunos
9256   need_lib_prefix=no
9257   need_version=no
9258   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9260     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9261     dynamic_linker='NetBSD (a.out) ld.so'
9262   else
9263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9264     soname_spec='${libname}${release}${shared_ext}$major'
9265     dynamic_linker='NetBSD ld.elf_so'
9266   fi
9267   shlibpath_var=LD_LIBRARY_PATH
9268   shlibpath_overrides_runpath=yes
9269   hardcode_into_libs=yes
9270   ;;
9271
9272 newsos6)
9273   version_type=linux
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275   shlibpath_var=LD_LIBRARY_PATH
9276   shlibpath_overrides_runpath=yes
9277   ;;
9278
9279 nto-qnx*)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   shlibpath_overrides_runpath=yes
9287   ;;
9288
9289 openbsd*)
9290   version_type=sunos
9291   sys_lib_dlsearch_path_spec="/usr/lib"
9292   need_lib_prefix=no
9293   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9294   case $host_os in
9295     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9296     *)                         need_version=no  ;;
9297   esac
9298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300   shlibpath_var=LD_LIBRARY_PATH
9301   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302     case $host_os in
9303       openbsd2.[89] | openbsd2.[89].*)
9304         shlibpath_overrides_runpath=no
9305         ;;
9306       *)
9307         shlibpath_overrides_runpath=yes
9308         ;;
9309       esac
9310   else
9311     shlibpath_overrides_runpath=yes
9312   fi
9313   ;;
9314
9315 os2*)
9316   libname_spec='$name'
9317   shrext_cmds=".dll"
9318   need_lib_prefix=no
9319   library_names_spec='$libname${shared_ext} $libname.a'
9320   dynamic_linker='OS/2 ld.exe'
9321   shlibpath_var=LIBPATH
9322   ;;
9323
9324 osf3* | osf4* | osf5*)
9325   version_type=osf
9326   need_lib_prefix=no
9327   need_version=no
9328   soname_spec='${libname}${release}${shared_ext}$major'
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9332   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9333   ;;
9334
9335 solaris*)
9336   version_type=linux
9337   need_lib_prefix=no
9338   need_version=no
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   shlibpath_overrides_runpath=yes
9343   hardcode_into_libs=yes
9344   # ldd complains unless libraries are executable
9345   postinstall_cmds='chmod +x $lib'
9346   ;;
9347
9348 sunos4*)
9349   version_type=sunos
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9351   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=yes
9354   if test "$with_gnu_ld" = yes; then
9355     need_lib_prefix=no
9356   fi
9357   need_version=yes
9358   ;;
9359
9360 sysv4 | sysv4.3*)
9361   version_type=linux
9362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363   soname_spec='${libname}${release}${shared_ext}$major'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   case $host_vendor in
9366     sni)
9367       shlibpath_overrides_runpath=no
9368       need_lib_prefix=no
9369       export_dynamic_flag_spec='${wl}-Blargedynsym'
9370       runpath_var=LD_RUN_PATH
9371       ;;
9372     siemens)
9373       need_lib_prefix=no
9374       ;;
9375     motorola)
9376       need_lib_prefix=no
9377       need_version=no
9378       shlibpath_overrides_runpath=no
9379       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9380       ;;
9381   esac
9382   ;;
9383
9384 sysv4*MP*)
9385   if test -d /usr/nec ;then
9386     version_type=linux
9387     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9388     soname_spec='$libname${shared_ext}.$major'
9389     shlibpath_var=LD_LIBRARY_PATH
9390   fi
9391   ;;
9392
9393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9394   version_type=freebsd-elf
9395   need_lib_prefix=no
9396   need_version=no
9397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9398   soname_spec='${libname}${release}${shared_ext}$major'
9399   shlibpath_var=LD_LIBRARY_PATH
9400   hardcode_into_libs=yes
9401   if test "$with_gnu_ld" = yes; then
9402     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9403     shlibpath_overrides_runpath=no
9404   else
9405     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9406     shlibpath_overrides_runpath=yes
9407     case $host_os in
9408       sco3.2v5*)
9409         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9410         ;;
9411     esac
9412   fi
9413   sys_lib_dlsearch_path_spec='/usr/lib'
9414   ;;
9415
9416 uts4*)
9417   version_type=linux
9418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419   soname_spec='${libname}${release}${shared_ext}$major'
9420   shlibpath_var=LD_LIBRARY_PATH
9421   ;;
9422
9423 *)
9424   dynamic_linker=no
9425   ;;
9426 esac
9427 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9428 echo "${ECHO_T}$dynamic_linker" >&6; }
9429 test "$dynamic_linker" = no && can_build_shared=no
9430
9431 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9432 if test "$GCC" = yes; then
9433   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9434 fi
9435
9436
9437 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9438 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9439 if test "${libltdl_cv_shlibext+set}" = set; then
9440   echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442
9443 module=yes
9444 eval libltdl_cv_shlibext=$shrext_cmds
9445
9446 fi
9447 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9448 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9449 if test -n "$libltdl_cv_shlibext"; then
9450
9451 cat >>confdefs.h <<_ACEOF
9452 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9453 _ACEOF
9454
9455 fi
9456
9457
9458 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9459 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9460 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   libltdl_cv_shlibpath_var="$shlibpath_var"
9464 fi
9465 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9466 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9467 if test -n "$libltdl_cv_shlibpath_var"; then
9468
9469 cat >>confdefs.h <<_ACEOF
9470 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9471 _ACEOF
9472
9473 fi
9474
9475
9476 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9477 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9478 if test "${libltdl_cv_sys_search_path+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9482 fi
9483 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9484 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9485 if test -n "$libltdl_cv_sys_search_path"; then
9486   sys_search_path=
9487   for dir in $libltdl_cv_sys_search_path; do
9488     if test -z "$sys_search_path"; then
9489       sys_search_path="$dir"
9490     else
9491       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9492     fi
9493   done
9494
9495 cat >>confdefs.h <<_ACEOF
9496 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9497 _ACEOF
9498
9499 fi
9500
9501 { echo "$as_me:$LINENO: checking for objdir" >&5
9502 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9503 if test "${libltdl_cv_objdir+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   libltdl_cv_objdir="$objdir"
9507   if test -n "$objdir"; then
9508     :
9509   else
9510     rm -f .libs 2>/dev/null
9511     mkdir .libs 2>/dev/null
9512     if test -d .libs; then
9513       libltdl_cv_objdir=.libs
9514     else
9515       # MS-DOS does not allow filenames that begin with a dot.
9516       libltdl_cv_objdir=_libs
9517     fi
9518   rmdir .libs 2>/dev/null
9519   fi
9520
9521 fi
9522 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9523 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9524
9525 cat >>confdefs.h <<_ACEOF
9526 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9527 _ACEOF
9528
9529
9530
9531
9532
9533
9534 # Check for command to grab the raw symbol name followed by C symbol from nm.
9535 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9536 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9537 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540
9541 # These are sane defaults that work on at least a few old systems.
9542 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9543
9544 # Character class describing NM global symbol codes.
9545 symcode='[BCDEGRST]'
9546
9547 # Regexp to match symbols that can be accessed directly from C.
9548 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9549
9550 # Transform an extracted symbol line into a proper C declaration
9551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9552
9553 # Transform an extracted symbol line into symbol name and symbol address
9554 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'"
9555
9556 # Define system-specific variables.
9557 case $host_os in
9558 aix*)
9559   symcode='[BCDT]'
9560   ;;
9561 cygwin* | mingw* | pw32*)
9562   symcode='[ABCDGISTW]'
9563   ;;
9564 hpux*) # Its linker distinguishes data from code symbols
9565   if test "$host_cpu" = ia64; then
9566     symcode='[ABCDEGRST]'
9567   fi
9568   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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 linux*)
9572   if test "$host_cpu" = ia64; then
9573     symcode='[ABCDGIRSTW]'
9574     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9575     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'"
9576   fi
9577   ;;
9578 irix* | nonstopux*)
9579   symcode='[BCDEGRST]'
9580   ;;
9581 osf*)
9582   symcode='[BCDEGQRST]'
9583   ;;
9584 solaris*)
9585   symcode='[BDRT]'
9586   ;;
9587 sco3.2v5*)
9588   symcode='[DT]'
9589   ;;
9590 sysv4.2uw2*)
9591   symcode='[DT]'
9592   ;;
9593 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9594   symcode='[ABDT]'
9595   ;;
9596 sysv4)
9597   symcode='[DFNSTU]'
9598   ;;
9599 esac
9600
9601 # Handle CRLF in mingw tool chain
9602 opt_cr=
9603 case $build_os in
9604 mingw*)
9605   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9606   ;;
9607 esac
9608
9609 # If we're using GNU nm, then use its standard symbol codes.
9610 case `$NM -V 2>&1` in
9611 *GNU* | *'with BFD'*)
9612   symcode='[ABCDGIRSTW]' ;;
9613 esac
9614
9615 # Try without a prefix undercore, then with it.
9616 for ac_symprfx in "" "_"; do
9617
9618   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9619   symxfrm="\\1 $ac_symprfx\\2 \\2"
9620
9621   # Write the raw and C identifiers.
9622   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9623
9624   # Check to see that the pipe works correctly.
9625   pipe_works=no
9626
9627   rm -f conftest*
9628   cat > conftest.$ac_ext <<EOF
9629 #ifdef __cplusplus
9630 extern "C" {
9631 #endif
9632 char nm_test_var;
9633 void nm_test_func(){}
9634 #ifdef __cplusplus
9635 }
9636 #endif
9637 int main(){nm_test_var='a';nm_test_func();return(0);}
9638 EOF
9639
9640   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641   (eval $ac_compile) 2>&5
9642   ac_status=$?
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); }; then
9645     # Now try to grab the symbols.
9646     nlist=conftest.nm
9647     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9648   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } && test -s "$nlist"; then
9652       # Try sorting and uniquifying the output.
9653       if sort "$nlist" | uniq > "$nlist"T; then
9654         mv -f "$nlist"T "$nlist"
9655       else
9656         rm -f "$nlist"T
9657       fi
9658
9659       # Make sure that we snagged all the symbols we need.
9660       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9661         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9662           cat <<EOF > conftest.$ac_ext
9663 #ifdef __cplusplus
9664 extern "C" {
9665 #endif
9666
9667 EOF
9668           # Now generate the symbol file.
9669           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9670
9671           cat <<EOF >> conftest.$ac_ext
9672 #if defined (__STDC__) && __STDC__
9673 # define lt_ptr_t void *
9674 #else
9675 # define lt_ptr_t char *
9676 # define const
9677 #endif
9678
9679 /* The mapping between symbol names and symbols. */
9680 const struct {
9681   const char *name;
9682   lt_ptr_t address;
9683 }
9684 lt_preloaded_symbols[] =
9685 {
9686 EOF
9687           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9688           cat <<\EOF >> conftest.$ac_ext
9689   {0, (lt_ptr_t) 0}
9690 };
9691
9692 #ifdef __cplusplus
9693 }
9694 #endif
9695 EOF
9696           # Now try linking the two files.
9697           mv conftest.$ac_objext conftstm.$ac_objext
9698           lt_save_LIBS="$LIBS"
9699           lt_save_CFLAGS="$CFLAGS"
9700           LIBS="conftstm.$ac_objext"
9701           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9702           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703   (eval $ac_link) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9707             pipe_works=yes
9708           fi
9709           LIBS="$lt_save_LIBS"
9710           CFLAGS="$lt_save_CFLAGS"
9711         else
9712           echo "cannot find nm_test_func in $nlist" >&5
9713         fi
9714       else
9715         echo "cannot find nm_test_var in $nlist" >&5
9716       fi
9717     else
9718       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9719     fi
9720   else
9721     echo "$progname: failed program was:" >&5
9722     cat conftest.$ac_ext >&5
9723   fi
9724   rm -f conftest* conftst*
9725
9726   # Do not use the global_symbol_pipe unless it works.
9727   if test "$pipe_works" = yes; then
9728     break
9729   else
9730     lt_cv_sys_global_symbol_pipe=
9731   fi
9732 done
9733
9734 fi
9735
9736 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9737   lt_cv_sys_global_symbol_to_cdecl=
9738 fi
9739 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9740   { echo "$as_me:$LINENO: result: failed" >&5
9741 echo "${ECHO_T}failed" >&6; }
9742 else
9743   { echo "$as_me:$LINENO: result: ok" >&5
9744 echo "${ECHO_T}ok" >&6; }
9745 fi
9746
9747
9748 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9749 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9750 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9754     libltdl_cv_preloaded_symbols=yes
9755   else
9756     libltdl_cv_preloaded_symbols=no
9757   fi
9758
9759 fi
9760 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9761 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9762 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9763
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_PRELOADED_SYMBOLS 1
9766 _ACEOF
9767
9768 fi
9769
9770 LIBADD_DL=
9771
9772 ac_ext=c
9773 ac_cpp='$CPP $CPPFLAGS'
9774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9777
9778
9779 { echo "$as_me:$LINENO: checking for shl_load" >&5
9780 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9781 if test "${ac_cv_func_shl_load+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9792 #define shl_load innocuous_shl_load
9793
9794 /* System header to define __stub macros and hopefully few prototypes,
9795     which can conflict with char shl_load (); below.
9796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9797     <limits.h> exists even on freestanding compilers.  */
9798
9799 #ifdef __STDC__
9800 # include <limits.h>
9801 #else
9802 # include <assert.h>
9803 #endif
9804
9805 #undef shl_load
9806
9807 /* Override any GCC internal prototype to avoid an error.
9808    Use char because int might match the return type of a GCC
9809    builtin and then its argument prototype would still apply.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 char shl_load ();
9814 /* The GNU C library defines this for functions which it implements
9815     to always fail with ENOSYS.  Some functions are actually named
9816     something starting with __ and the normal name is an alias.  */
9817 #if defined __stub_shl_load || defined __stub___shl_load
9818 choke me
9819 #endif
9820
9821 int
9822 main ()
9823 {
9824 return shl_load ();
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (ac_try="$ac_link"
9831 case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836   (eval "$ac_link") 2>conftest.er1
9837   ac_status=$?
9838   grep -v '^ *+' conftest.er1 >conftest.err
9839   rm -f conftest.er1
9840   cat conftest.err >&5
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9844   { (case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_try") 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859   (eval "$ac_try") 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; }; then
9863   ac_cv_func_shl_load=yes
9864 else
9865   echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868         ac_cv_func_shl_load=no
9869 fi
9870
9871 rm -f core conftest.err conftest.$ac_objext \
9872       conftest$ac_exeext conftest.$ac_ext
9873 fi
9874 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9875 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9876 if test $ac_cv_func_shl_load = yes; then
9877
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_SHL_LOAD 1
9880 _ACEOF
9881
9882 else
9883   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9884 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9885 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   ac_check_lib_save_LIBS=$LIBS
9889 LIBS="-ldld  $LIBS"
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896
9897 /* Override any GCC internal prototype to avoid an error.
9898    Use char because int might match the return type of a GCC
9899    builtin and then its argument prototype would still apply.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char shl_load ();
9904 int
9905 main ()
9906 {
9907 return shl_load ();
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9914 case "(($ac_try" in
9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916   *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919   (eval "$ac_link") 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; } &&
9936          { ac_try='test -s conftest$ac_exeext'
9937   { (case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_try") 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_lib_dld_shl_load=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951         ac_cv_lib_dld_shl_load=no
9952 fi
9953
9954 rm -f core conftest.err conftest.$ac_objext \
9955       conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9957 fi
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9960 if test $ac_cv_lib_dld_shl_load = yes; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_SHL_LOAD 1
9964 _ACEOF
9965
9966         LIBADD_DL="$LIBADD_DL -ldld"
9967 else
9968   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   ac_check_lib_save_LIBS=$LIBS
9974 LIBS="-ldl  $LIBS"
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981
9982 /* Override any GCC internal prototype to avoid an error.
9983    Use char because int might match the return type of a GCC
9984    builtin and then its argument prototype would still apply.  */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 char dlopen ();
9989 int
9990 main ()
9991 {
9992 return dlopen ();
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (ac_try="$ac_link"
9999 case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_link") 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012   { (case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_try") 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; } &&
10021          { ac_try='test -s conftest$ac_exeext'
10022   { (case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_try") 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   ac_cv_lib_dl_dlopen=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036         ac_cv_lib_dl_dlopen=no
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext \
10040       conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10042 fi
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10045 if test $ac_cv_lib_dl_dlopen = yes; then
10046
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_LIBDL 1
10049 _ACEOF
10050
10051                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10052 else
10053   cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 #if HAVE_DLFCN_H
10060 #  include <dlfcn.h>
10061 #endif
10062
10063 int
10064 main ()
10065 {
10066 dlopen(0, 0);
10067   ;
10068   return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (ac_try="$ac_link"
10073 case "(($ac_try" in
10074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075   *) ac_try_echo=$ac_try;;
10076 esac
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078   (eval "$ac_link") 2>conftest.er1
10079   ac_status=$?
10080   grep -v '^ *+' conftest.er1 >conftest.err
10081   rm -f conftest.er1
10082   cat conftest.err >&5
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); } &&
10085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086   { (case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_try") 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; } &&
10095          { ac_try='test -s conftest$ac_exeext'
10096   { (case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_try") 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; }; then
10105
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_LIBDL 1
10108 _ACEOF
10109  libltdl_cv_func_dlopen="yes"
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10115 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-lsvld  $LIBS"
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127
10128 /* Override any GCC internal prototype to avoid an error.
10129    Use char because int might match the return type of a GCC
10130    builtin and then its argument prototype would still apply.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char dlopen ();
10135 int
10136 main ()
10137 {
10138 return dlopen ();
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147   *) ac_try_echo=$ac_try;;
10148 esac
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150   (eval "$ac_link") 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158   { (case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_try") 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; } &&
10167          { ac_try='test -s conftest$ac_exeext'
10168   { (case "(($ac_try" in
10169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170   *) ac_try_echo=$ac_try;;
10171 esac
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173   (eval "$ac_try") 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; }; then
10177   ac_cv_lib_svld_dlopen=yes
10178 else
10179   echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182         ac_cv_lib_svld_dlopen=no
10183 fi
10184
10185 rm -f core conftest.err conftest.$ac_objext \
10186       conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10188 fi
10189 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10190 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10191 if test $ac_cv_lib_svld_dlopen = yes; then
10192
10193 cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_LIBDL 1
10195 _ACEOF
10196
10197                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10198 else
10199   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldld  $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214    Use char because int might match the return type of a GCC
10215    builtin and then its argument prototype would still apply.  */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char dld_link ();
10220 int
10221 main ()
10222 {
10223 return dld_link ();
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232   *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235   (eval "$ac_link") 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10243   { (case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248   (eval "$ac_try") 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); }; } &&
10252          { ac_try='test -s conftest$ac_exeext'
10253   { (case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258   (eval "$ac_try") 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_cv_lib_dld_dld_link=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267         ac_cv_lib_dld_dld_link=no
10268 fi
10269
10270 rm -f core conftest.err conftest.$ac_objext \
10271       conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10276 if test $ac_cv_lib_dld_dld_link = yes; then
10277
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DLD 1
10280 _ACEOF
10281
10282                 LIBADD_DL="$LIBADD_DL -ldld"
10283 else
10284   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10285 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10286 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10297 #define _dyld_func_lookup innocuous__dyld_func_lookup
10298
10299 /* System header to define __stub macros and hopefully few prototypes,
10300     which can conflict with char _dyld_func_lookup (); below.
10301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302     <limits.h> exists even on freestanding compilers.  */
10303
10304 #ifdef __STDC__
10305 # include <limits.h>
10306 #else
10307 # include <assert.h>
10308 #endif
10309
10310 #undef _dyld_func_lookup
10311
10312 /* Override any GCC internal prototype to avoid an error.
10313    Use char because int might match the return type of a GCC
10314    builtin and then its argument prototype would still apply.  */
10315 #ifdef __cplusplus
10316 extern "C"
10317 #endif
10318 char _dyld_func_lookup ();
10319 /* The GNU C library defines this for functions which it implements
10320     to always fail with ENOSYS.  Some functions are actually named
10321     something starting with __ and the normal name is an alias.  */
10322 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10323 choke me
10324 #endif
10325
10326 int
10327 main ()
10328 {
10329 return _dyld_func_lookup ();
10330   ;
10331   return 0;
10332 }
10333 _ACEOF
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (ac_try="$ac_link"
10336 case "(($ac_try" in
10337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338   *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341   (eval "$ac_link") 2>conftest.er1
10342   ac_status=$?
10343   grep -v '^ *+' conftest.er1 >conftest.err
10344   rm -f conftest.er1
10345   cat conftest.err >&5
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10349   { (case "(($ac_try" in
10350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351   *) ac_try_echo=$ac_try;;
10352 esac
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354   (eval "$ac_try") 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest$ac_exeext'
10359   { (case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_try") 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   ac_cv_func__dyld_func_lookup=yes
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373         ac_cv_func__dyld_func_lookup=no
10374 fi
10375
10376 rm -f core conftest.err conftest.$ac_objext \
10377       conftest$ac_exeext conftest.$ac_ext
10378 fi
10379 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10380 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10381 if test $ac_cv_func__dyld_func_lookup = yes; then
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define HAVE_DYLD 1
10385 _ACEOF
10386
10387 fi
10388
10389
10390 fi
10391
10392
10393 fi
10394
10395
10396 fi
10397
10398 rm -f core conftest.err conftest.$ac_objext \
10399       conftest$ac_exeext conftest.$ac_ext
10400
10401 fi
10402
10403
10404 fi
10405
10406
10407 fi
10408
10409
10410 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10411 then
10412   lt_save_LIBS="$LIBS"
10413   LIBS="$LIBS $LIBADD_DL"
10414
10415 for ac_func in dlerror
10416 do
10417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10431 #define $ac_func innocuous_$ac_func
10432
10433 /* System header to define __stub macros and hopefully few prototypes,
10434     which can conflict with char $ac_func (); below.
10435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436     <limits.h> exists even on freestanding compilers.  */
10437
10438 #ifdef __STDC__
10439 # include <limits.h>
10440 #else
10441 # include <assert.h>
10442 #endif
10443
10444 #undef $ac_func
10445
10446 /* Override any GCC internal prototype to avoid an error.
10447    Use char because int might match the return type of a GCC
10448    builtin and then its argument prototype would still apply.  */
10449 #ifdef __cplusplus
10450 extern "C"
10451 #endif
10452 char $ac_func ();
10453 /* The GNU C library defines this for functions which it implements
10454     to always fail with ENOSYS.  Some functions are actually named
10455     something starting with __ and the normal name is an alias.  */
10456 #if defined __stub_$ac_func || defined __stub___$ac_func
10457 choke me
10458 #endif
10459
10460 int
10461 main ()
10462 {
10463 return $ac_func ();
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472   *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475   (eval "$ac_link") 2>conftest.er1
10476   ac_status=$?
10477   grep -v '^ *+' conftest.er1 >conftest.err
10478   rm -f conftest.er1
10479   cat conftest.err >&5
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10483   { (case "(($ac_try" in
10484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485   *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488   (eval "$ac_try") 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; } &&
10492          { ac_try='test -s conftest$ac_exeext'
10493   { (case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_try") 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; }; then
10502   eval "$as_ac_var=yes"
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507         eval "$as_ac_var=no"
10508 fi
10509
10510 rm -f core conftest.err conftest.$ac_objext \
10511       conftest$ac_exeext conftest.$ac_ext
10512 fi
10513 ac_res=`eval echo '${'$as_ac_var'}'`
10514                { echo "$as_me:$LINENO: result: $ac_res" >&5
10515 echo "${ECHO_T}$ac_res" >&6; }
10516 if test `eval echo '${'$as_ac_var'}'` = yes; then
10517   cat >>confdefs.h <<_ACEOF
10518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10519 _ACEOF
10520
10521 fi
10522 done
10523
10524   LIBS="$lt_save_LIBS"
10525 fi
10526 ac_ext=c
10527 ac_cpp='$CPP $CPPFLAGS'
10528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531
10532
10533
10534 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10535 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10536 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539   ac_cv_sys_symbol_underscore=no
10540   cat > conftest.$ac_ext <<EOF
10541 void nm_test_func(){}
10542 int main(){nm_test_func;return 0;}
10543 EOF
10544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545   (eval $ac_compile) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; then
10549     # Now try to grab the symbols.
10550     ac_nlist=conftest.nm
10551     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10552   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && test -s "$ac_nlist"; then
10556       # See whether the symbols have a leading underscore.
10557       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10558         ac_cv_sys_symbol_underscore=yes
10559       else
10560         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10561           :
10562         else
10563           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10564         fi
10565       fi
10566     else
10567       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10568     fi
10569   else
10570     echo "configure: failed program was:" >&5
10571     cat conftest.c >&5
10572   fi
10573   rm -rf conftest*
10574
10575 fi
10576 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10577 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10578
10579
10580 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10581   if test x"$libltdl_cv_func_dlopen" = xyes ||
10582      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10583         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10584 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10585 if test "${libltdl_cv_need_uscore+set}" = set; then
10586   echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588   libltdl_cv_need_uscore=unknown
10589           save_LIBS="$LIBS"
10590           LIBS="$LIBS $LIBADD_DL"
10591           if test "$cross_compiling" = yes; then :
10592   libltdl_cv_need_uscore=cross
10593 else
10594   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10595   lt_status=$lt_dlunknown
10596   cat > conftest.$ac_ext <<EOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10599
10600 #if HAVE_DLFCN_H
10601 #include <dlfcn.h>
10602 #endif
10603
10604 #include <stdio.h>
10605
10606 #ifdef RTLD_GLOBAL
10607 #  define LT_DLGLOBAL           RTLD_GLOBAL
10608 #else
10609 #  ifdef DL_GLOBAL
10610 #    define LT_DLGLOBAL         DL_GLOBAL
10611 #  else
10612 #    define LT_DLGLOBAL         0
10613 #  endif
10614 #endif
10615
10616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10617    find out it does not work in some platform. */
10618 #ifndef LT_DLLAZY_OR_NOW
10619 #  ifdef RTLD_LAZY
10620 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10621 #  else
10622 #    ifdef DL_LAZY
10623 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10624 #    else
10625 #      ifdef RTLD_NOW
10626 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10627 #      else
10628 #        ifdef DL_NOW
10629 #          define LT_DLLAZY_OR_NOW      DL_NOW
10630 #        else
10631 #          define LT_DLLAZY_OR_NOW      0
10632 #        endif
10633 #      endif
10634 #    endif
10635 #  endif
10636 #endif
10637
10638 #ifdef __cplusplus
10639 extern "C" void exit (int);
10640 #endif
10641
10642 void fnord() { int i=42;}
10643 int main ()
10644 {
10645   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10646   int status = $lt_dlunknown;
10647
10648   if (self)
10649     {
10650       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10651       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10652       /* dlclose (self); */
10653     }
10654   else
10655     puts (dlerror ());
10656
10657     exit (status);
10658 }
10659 EOF
10660   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10665     (./conftest; exit; ) >&5 2>/dev/null
10666     lt_status=$?
10667     case x$lt_status in
10668       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10669       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10670       x$lt_dlunknown|x*)  ;;
10671     esac
10672   else :
10673     # compilation failed
10674
10675   fi
10676 fi
10677 rm -fr conftest*
10678
10679           LIBS="$save_LIBS"
10680
10681 fi
10682 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10683 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10684   fi
10685 fi
10686
10687 if test x"$libltdl_cv_need_uscore" = xyes; then
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define NEED_USCORE 1
10691 _ACEOF
10692
10693 fi
10694
10695
10696 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10697 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10698 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   # PORTME does your system automatically load deplibs for dlopen?
10702   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10703   # For now, we just catch OSes we know something about -- in the
10704   # future, we'll try test this programmatically.
10705   libltdl_cv_sys_dlopen_deplibs=unknown
10706   case "$host_os" in
10707   aix3*|aix4.1.*|aix4.2.*)
10708     # Unknown whether this is true for these versions of AIX, but
10709     # we want this `case' here to explicitly catch those versions.
10710     libltdl_cv_sys_dlopen_deplibs=unknown
10711     ;;
10712   aix[45]*)
10713     libltdl_cv_sys_dlopen_deplibs=yes
10714     ;;
10715   darwin*)
10716     # Assuming the user has installed a libdl from somewhere, this is true
10717     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10718     libltdl_cv_sys_dlopen_deplibs=yes
10719     ;;
10720   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10721     # GNU and its variants, using gnu ld.so (Glibc)
10722     libltdl_cv_sys_dlopen_deplibs=yes
10723     ;;
10724   hpux10*|hpux11*)
10725     libltdl_cv_sys_dlopen_deplibs=yes
10726     ;;
10727   interix*)
10728     libltdl_cv_sys_dlopen_deplibs=yes
10729     ;;
10730   irix[12345]*|irix6.[01]*)
10731     # Catch all versions of IRIX before 6.2, and indicate that we don't
10732     # know how it worked for any of those versions.
10733     libltdl_cv_sys_dlopen_deplibs=unknown
10734     ;;
10735   irix*)
10736     # The case above catches anything before 6.2, and it's known that
10737     # at 6.2 and later dlopen does load deplibs.
10738     libltdl_cv_sys_dlopen_deplibs=yes
10739     ;;
10740   netbsd*)
10741     libltdl_cv_sys_dlopen_deplibs=yes
10742     ;;
10743   openbsd*)
10744     libltdl_cv_sys_dlopen_deplibs=yes
10745     ;;
10746   osf[1234]*)
10747     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10748     # it did *not* use an RPATH in a shared library to find objects the
10749     # library depends on, so we explictly say `no'.
10750     libltdl_cv_sys_dlopen_deplibs=no
10751     ;;
10752   osf5.0|osf5.0a|osf5.1)
10753     # dlopen *does* load deplibs and with the right loader patch applied
10754     # it even uses RPATH in a shared library to search for shared objects
10755     # that the library depends on, but there's no easy way to know if that
10756     # patch is installed.  Since this is the case, all we can really
10757     # say is unknown -- it depends on the patch being installed.  If
10758     # it is, this changes to `yes'.  Without it, it would be `no'.
10759     libltdl_cv_sys_dlopen_deplibs=unknown
10760     ;;
10761   osf*)
10762     # the two cases above should catch all versions of osf <= 5.1.  Read
10763     # the comments above for what we know about them.
10764     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10765     # is used to find them so we can finally say `yes'.
10766     libltdl_cv_sys_dlopen_deplibs=yes
10767     ;;
10768   solaris*)
10769     libltdl_cv_sys_dlopen_deplibs=yes
10770     ;;
10771   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10772     libltdl_cv_sys_dlopen_deplibs=yes
10773     ;;
10774   esac
10775
10776 fi
10777 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10778 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10779 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10780
10781 cat >>confdefs.h <<\_ACEOF
10782 #define LTDL_DLOPEN_DEPLIBS 1
10783 _ACEOF
10784
10785 fi
10786
10787
10788 for ac_header in argz.h
10789 do
10790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 fi
10797 ac_res=`eval echo '${'$as_ac_Header'}'`
10798                { echo "$as_me:$LINENO: result: $ac_res" >&5
10799 echo "${ECHO_T}$ac_res" >&6; }
10800 else
10801   # Is the header compilable?
10802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 $ac_includes_default
10811 #include <$ac_header>
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (ac_try="$ac_compile"
10815 case "(($ac_try" in
10816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817   *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820   (eval "$ac_compile") 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } &&
10827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10828   { (case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_try") 2>&5
10834   ac_status=$?
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); }; } &&
10837          { ac_try='test -s conftest.$ac_objext'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; }; then
10847   ac_header_compiler=yes
10848 else
10849   echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852         ac_header_compiler=no
10853 fi
10854
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10857 echo "${ECHO_T}$ac_header_compiler" >&6; }
10858
10859 # Is the header present?
10860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 #include <$ac_header>
10869 _ACEOF
10870 if { (ac_try="$ac_cpp conftest.$ac_ext"
10871 case "(($ac_try" in
10872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873   *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } >/dev/null; then
10883   if test -s conftest.err; then
10884     ac_cpp_err=$ac_c_preproc_warn_flag
10885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10886   else
10887     ac_cpp_err=
10888   fi
10889 else
10890   ac_cpp_err=yes
10891 fi
10892 if test -z "$ac_cpp_err"; then
10893   ac_header_preproc=yes
10894 else
10895   echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898   ac_header_preproc=no
10899 fi
10900
10901 rm -f conftest.err conftest.$ac_ext
10902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10903 echo "${ECHO_T}$ac_header_preproc" >&6; }
10904
10905 # So?  What about this header?
10906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10907   yes:no: )
10908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10912     ac_header_preproc=yes
10913     ;;
10914   no:yes:* )
10915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10927     ( cat <<\_ASBOX
10928 ## ----------------------------------- ##
10929 ## Report this to llvmbugs@cs.uiuc.edu ##
10930 ## ----------------------------------- ##
10931 _ASBOX
10932      ) | sed "s/^/$as_me: WARNING:     /" >&2
10933     ;;
10934 esac
10935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   eval "$as_ac_Header=\$ac_header_preproc"
10941 fi
10942 ac_res=`eval echo '${'$as_ac_Header'}'`
10943                { echo "$as_me:$LINENO: result: $ac_res" >&5
10944 echo "${ECHO_T}$ac_res" >&6; }
10945
10946 fi
10947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10948   cat >>confdefs.h <<_ACEOF
10949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10950 _ACEOF
10951
10952 fi
10953
10954 done
10955
10956
10957 { echo "$as_me:$LINENO: checking for error_t" >&5
10958 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10959 if test "${ac_cv_type_error_t+set}" = set; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #if HAVE_ARGZ_H
10969 #  include <argz.h>
10970 #endif
10971
10972 typedef error_t ac__type_new_;
10973 int
10974 main ()
10975 {
10976 if ((ac__type_new_ *) 0)
10977   return 0;
10978 if (sizeof (ac__type_new_))
10979   return 0;
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_compile") 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999   { (case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_try") 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; } &&
11008          { ac_try='test -s conftest.$ac_objext'
11009   { (case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_try") 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; }; then
11018   ac_cv_type_error_t=yes
11019 else
11020   echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023         ac_cv_type_error_t=no
11024 fi
11025
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027 fi
11028 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11029 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11030 if test $ac_cv_type_error_t = yes; then
11031
11032 cat >>confdefs.h <<_ACEOF
11033 #define HAVE_ERROR_T 1
11034 _ACEOF
11035
11036
11037 else
11038
11039 cat >>confdefs.h <<\_ACEOF
11040 #define error_t int
11041 _ACEOF
11042
11043 fi
11044
11045
11046
11047
11048
11049
11050
11051 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11052 do
11053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11067 #define $ac_func innocuous_$ac_func
11068
11069 /* System header to define __stub macros and hopefully few prototypes,
11070     which can conflict with char $ac_func (); below.
11071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11072     <limits.h> exists even on freestanding compilers.  */
11073
11074 #ifdef __STDC__
11075 # include <limits.h>
11076 #else
11077 # include <assert.h>
11078 #endif
11079
11080 #undef $ac_func
11081
11082 /* Override any GCC internal prototype to avoid an error.
11083    Use char because int might match the return type of a GCC
11084    builtin and then its argument prototype would still apply.  */
11085 #ifdef __cplusplus
11086 extern "C"
11087 #endif
11088 char $ac_func ();
11089 /* The GNU C library defines this for functions which it implements
11090     to always fail with ENOSYS.  Some functions are actually named
11091     something starting with __ and the normal name is an alias.  */
11092 #if defined __stub_$ac_func || defined __stub___$ac_func
11093 choke me
11094 #endif
11095
11096 int
11097 main ()
11098 {
11099 return $ac_func ();
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (ac_try="$ac_link"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_link") 2>conftest.er1
11112   ac_status=$?
11113   grep -v '^ *+' conftest.er1 >conftest.err
11114   rm -f conftest.er1
11115   cat conftest.err >&5
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } &&
11118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119   { (case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_try") 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; } &&
11128          { ac_try='test -s conftest$ac_exeext'
11129   { (case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_try") 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }; then
11138   eval "$as_ac_var=yes"
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143         eval "$as_ac_var=no"
11144 fi
11145
11146 rm -f core conftest.err conftest.$ac_objext \
11147       conftest$ac_exeext conftest.$ac_ext
11148 fi
11149 ac_res=`eval echo '${'$as_ac_var'}'`
11150                { echo "$as_me:$LINENO: result: $ac_res" >&5
11151 echo "${ECHO_T}$ac_res" >&6; }
11152 if test `eval echo '${'$as_ac_var'}'` = yes; then
11153   cat >>confdefs.h <<_ACEOF
11154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11155 _ACEOF
11156
11157 fi
11158 done
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11188                   stdio.h unistd.h
11189 do
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 fi
11197 ac_res=`eval echo '${'$as_ac_Header'}'`
11198                { echo "$as_me:$LINENO: result: $ac_res" >&5
11199 echo "${ECHO_T}$ac_res" >&6; }
11200 else
11201   # Is the header compilable?
11202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 $ac_includes_default
11211 #include <$ac_header>
11212 _ACEOF
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_compile") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228   { (case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_try") 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (case "(($ac_try" in
11239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240   *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243   (eval "$ac_try") 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; }; then
11247   ac_header_compiler=yes
11248 else
11249   echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11251
11252         ac_header_compiler=no
11253 fi
11254
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6; }
11258
11259 # Is the header present?
11260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 #include <$ac_header>
11269 _ACEOF
11270 if { (ac_try="$ac_cpp conftest.$ac_ext"
11271 case "(($ac_try" in
11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273   *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } >/dev/null; then
11283   if test -s conftest.err; then
11284     ac_cpp_err=$ac_c_preproc_warn_flag
11285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286   else
11287     ac_cpp_err=
11288   fi
11289 else
11290   ac_cpp_err=yes
11291 fi
11292 if test -z "$ac_cpp_err"; then
11293   ac_header_preproc=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298   ac_header_preproc=no
11299 fi
11300
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11304
11305 # So?  What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307   yes:no: )
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312     ac_header_preproc=yes
11313     ;;
11314   no:yes:* )
11315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11327     ( cat <<\_ASBOX
11328 ## ----------------------------------- ##
11329 ## Report this to llvmbugs@cs.uiuc.edu ##
11330 ## ----------------------------------- ##
11331 _ASBOX
11332      ) | sed "s/^/$as_me: WARNING:     /" >&2
11333     ;;
11334 esac
11335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   eval "$as_ac_Header=\$ac_header_preproc"
11341 fi
11342 ac_res=`eval echo '${'$as_ac_Header'}'`
11343                { echo "$as_me:$LINENO: result: $ac_res" >&5
11344 echo "${ECHO_T}$ac_res" >&6; }
11345
11346 fi
11347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348   cat >>confdefs.h <<_ACEOF
11349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350 _ACEOF
11351
11352 fi
11353
11354 done
11355
11356
11357
11358
11359
11360 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11361 do
11362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370                { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 else
11373   # Is the header compilable?
11374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 $ac_includes_default
11383 #include <$ac_header>
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389   *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392   (eval "$ac_compile") 2>conftest.er1
11393   ac_status=$?
11394   grep -v '^ *+' conftest.er1 >conftest.err
11395   rm -f conftest.er1
11396   cat conftest.err >&5
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } &&
11399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400   { (case "(($ac_try" in
11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402   *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405   (eval "$ac_try") 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; } &&
11409          { ac_try='test -s conftest.$ac_objext'
11410   { (case "(($ac_try" in
11411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412   *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415   (eval "$ac_try") 2>&5
11416   ac_status=$?
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); }; }; then
11419   ac_header_compiler=yes
11420 else
11421   echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424         ac_header_compiler=no
11425 fi
11426
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429 echo "${ECHO_T}$ac_header_compiler" >&6; }
11430
11431 # Is the header present?
11432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440 #include <$ac_header>
11441 _ACEOF
11442 if { (ac_try="$ac_cpp conftest.$ac_ext"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } >/dev/null; then
11455   if test -s conftest.err; then
11456     ac_cpp_err=$ac_c_preproc_warn_flag
11457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11458   else
11459     ac_cpp_err=
11460   fi
11461 else
11462   ac_cpp_err=yes
11463 fi
11464 if test -z "$ac_cpp_err"; then
11465   ac_header_preproc=yes
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470   ac_header_preproc=no
11471 fi
11472
11473 rm -f conftest.err conftest.$ac_ext
11474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11475 echo "${ECHO_T}$ac_header_preproc" >&6; }
11476
11477 # So?  What about this header?
11478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11479   yes:no: )
11480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11484     ac_header_preproc=yes
11485     ;;
11486   no:yes:* )
11487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11499     ( cat <<\_ASBOX
11500 ## ----------------------------------- ##
11501 ## Report this to llvmbugs@cs.uiuc.edu ##
11502 ## ----------------------------------- ##
11503 _ASBOX
11504      ) | sed "s/^/$as_me: WARNING:     /" >&2
11505     ;;
11506 esac
11507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   eval "$as_ac_Header=\$ac_header_preproc"
11513 fi
11514 ac_res=`eval echo '${'$as_ac_Header'}'`
11515                { echo "$as_me:$LINENO: result: $ac_res" >&5
11516 echo "${ECHO_T}$ac_res" >&6; }
11517
11518 fi
11519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11520   cat >>confdefs.h <<_ACEOF
11521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11522 _ACEOF
11523
11524 fi
11525
11526 done
11527
11528
11529
11530 for ac_header in string.h strings.h
11531 do
11532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 fi
11539 ac_res=`eval echo '${'$as_ac_Header'}'`
11540                { echo "$as_me:$LINENO: result: $ac_res" >&5
11541 echo "${ECHO_T}$ac_res" >&6; }
11542 else
11543   # Is the header compilable?
11544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 $ac_includes_default
11553 #include <$ac_header>
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_compile") 2>conftest.er1
11563   ac_status=$?
11564   grep -v '^ *+' conftest.er1 >conftest.err
11565   rm -f conftest.er1
11566   cat conftest.err >&5
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } &&
11569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11570   { (case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_try") 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; } &&
11579          { ac_try='test -s conftest.$ac_objext'
11580   { (case "(($ac_try" in
11581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582   *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585   (eval "$ac_try") 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; }; then
11589   ac_header_compiler=yes
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594         ac_header_compiler=no
11595 fi
11596
11597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11599 echo "${ECHO_T}$ac_header_compiler" >&6; }
11600
11601 # Is the header present?
11602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 #include <$ac_header>
11611 _ACEOF
11612 if { (ac_try="$ac_cpp conftest.$ac_ext"
11613 case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } >/dev/null; then
11625   if test -s conftest.err; then
11626     ac_cpp_err=$ac_c_preproc_warn_flag
11627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11628   else
11629     ac_cpp_err=
11630   fi
11631 else
11632   ac_cpp_err=yes
11633 fi
11634 if test -z "$ac_cpp_err"; then
11635   ac_header_preproc=yes
11636 else
11637   echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640   ac_header_preproc=no
11641 fi
11642
11643 rm -f conftest.err conftest.$ac_ext
11644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11645 echo "${ECHO_T}$ac_header_preproc" >&6; }
11646
11647 # So?  What about this header?
11648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11649   yes:no: )
11650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11654     ac_header_preproc=yes
11655     ;;
11656   no:yes:* )
11657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11669     ( cat <<\_ASBOX
11670 ## ----------------------------------- ##
11671 ## Report this to llvmbugs@cs.uiuc.edu ##
11672 ## ----------------------------------- ##
11673 _ASBOX
11674      ) | sed "s/^/$as_me: WARNING:     /" >&2
11675     ;;
11676 esac
11677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   eval "$as_ac_Header=\$ac_header_preproc"
11683 fi
11684 ac_res=`eval echo '${'$as_ac_Header'}'`
11685                { echo "$as_me:$LINENO: result: $ac_res" >&5
11686 echo "${ECHO_T}$ac_res" >&6; }
11687
11688 fi
11689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11690   cat >>confdefs.h <<_ACEOF
11691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11692 _ACEOF
11693  break
11694 fi
11695
11696 done
11697
11698
11699
11700
11701 for ac_func in strchr index
11702 do
11703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h.  */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h.  */
11715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11717 #define $ac_func innocuous_$ac_func
11718
11719 /* System header to define __stub macros and hopefully few prototypes,
11720     which can conflict with char $ac_func (); below.
11721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722     <limits.h> exists even on freestanding compilers.  */
11723
11724 #ifdef __STDC__
11725 # include <limits.h>
11726 #else
11727 # include <assert.h>
11728 #endif
11729
11730 #undef $ac_func
11731
11732 /* Override any GCC internal prototype to avoid an error.
11733    Use char because int might match the return type of a GCC
11734    builtin and then its argument prototype would still apply.  */
11735 #ifdef __cplusplus
11736 extern "C"
11737 #endif
11738 char $ac_func ();
11739 /* The GNU C library defines this for functions which it implements
11740     to always fail with ENOSYS.  Some functions are actually named
11741     something starting with __ and the normal name is an alias.  */
11742 #if defined __stub_$ac_func || defined __stub___$ac_func
11743 choke me
11744 #endif
11745
11746 int
11747 main ()
11748 {
11749 return $ac_func ();
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (ac_try="$ac_link"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_link") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } &&
11768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11769   { (case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_try") 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; } &&
11778          { ac_try='test -s conftest$ac_exeext'
11779   { (case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_try") 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; }; then
11788   eval "$as_ac_var=yes"
11789 else
11790   echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11792
11793         eval "$as_ac_var=no"
11794 fi
11795
11796 rm -f core conftest.err conftest.$ac_objext \
11797       conftest$ac_exeext conftest.$ac_ext
11798 fi
11799 ac_res=`eval echo '${'$as_ac_var'}'`
11800                { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803   cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 _ACEOF
11806  break
11807 fi
11808 done
11809
11810
11811
11812 for ac_func in strrchr rindex
11813 do
11814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11818   echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820   cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11828 #define $ac_func innocuous_$ac_func
11829
11830 /* System header to define __stub macros and hopefully few prototypes,
11831     which can conflict with char $ac_func (); below.
11832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11833     <limits.h> exists even on freestanding compilers.  */
11834
11835 #ifdef __STDC__
11836 # include <limits.h>
11837 #else
11838 # include <assert.h>
11839 #endif
11840
11841 #undef $ac_func
11842
11843 /* Override any GCC internal prototype to avoid an error.
11844    Use char because int might match the return type of a GCC
11845    builtin and then its argument prototype would still apply.  */
11846 #ifdef __cplusplus
11847 extern "C"
11848 #endif
11849 char $ac_func ();
11850 /* The GNU C library defines this for functions which it implements
11851     to always fail with ENOSYS.  Some functions are actually named
11852     something starting with __ and the normal name is an alias.  */
11853 #if defined __stub_$ac_func || defined __stub___$ac_func
11854 choke me
11855 #endif
11856
11857 int
11858 main ()
11859 {
11860 return $ac_func ();
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (ac_try="$ac_link"
11867 case "(($ac_try" in
11868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869   *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872   (eval "$ac_link") 2>conftest.er1
11873   ac_status=$?
11874   grep -v '^ *+' conftest.er1 >conftest.err
11875   rm -f conftest.er1
11876   cat conftest.err >&5
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11880   { (case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_try") 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; } &&
11889          { ac_try='test -s conftest$ac_exeext'
11890   { (case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_try") 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }; then
11899   eval "$as_ac_var=yes"
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904         eval "$as_ac_var=no"
11905 fi
11906
11907 rm -f core conftest.err conftest.$ac_objext \
11908       conftest$ac_exeext conftest.$ac_ext
11909 fi
11910 ac_res=`eval echo '${'$as_ac_var'}'`
11911                { echo "$as_me:$LINENO: result: $ac_res" >&5
11912 echo "${ECHO_T}$ac_res" >&6; }
11913 if test `eval echo '${'$as_ac_var'}'` = yes; then
11914   cat >>confdefs.h <<_ACEOF
11915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11916 _ACEOF
11917  break
11918 fi
11919 done
11920
11921
11922
11923 for ac_func in memcpy bcopy
11924 do
11925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h.  */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h.  */
11937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11939 #define $ac_func innocuous_$ac_func
11940
11941 /* System header to define __stub macros and hopefully few prototypes,
11942     which can conflict with char $ac_func (); below.
11943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944     <limits.h> exists even on freestanding compilers.  */
11945
11946 #ifdef __STDC__
11947 # include <limits.h>
11948 #else
11949 # include <assert.h>
11950 #endif
11951
11952 #undef $ac_func
11953
11954 /* Override any GCC internal prototype to avoid an error.
11955    Use char because int might match the return type of a GCC
11956    builtin and then its argument prototype would still apply.  */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 char $ac_func ();
11961 /* The GNU C library defines this for functions which it implements
11962     to always fail with ENOSYS.  Some functions are actually named
11963     something starting with __ and the normal name is an alias.  */
11964 #if defined __stub_$ac_func || defined __stub___$ac_func
11965 choke me
11966 #endif
11967
11968 int
11969 main ()
11970 {
11971 return $ac_func ();
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (ac_try="$ac_link"
11978 case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_link") 2>conftest.er1
11984   ac_status=$?
11985   grep -v '^ *+' conftest.er1 >conftest.err
11986   rm -f conftest.er1
11987   cat conftest.err >&5
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991   { (case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996   (eval "$ac_try") 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; } &&
12000          { ac_try='test -s conftest$ac_exeext'
12001   { (case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_try") 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; }; then
12010   eval "$as_ac_var=yes"
12011 else
12012   echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015         eval "$as_ac_var=no"
12016 fi
12017
12018 rm -f core conftest.err conftest.$ac_objext \
12019       conftest$ac_exeext conftest.$ac_ext
12020 fi
12021 ac_res=`eval echo '${'$as_ac_var'}'`
12022                { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12024 if test `eval echo '${'$as_ac_var'}'` = yes; then
12025   cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12027 _ACEOF
12028  break
12029 fi
12030 done
12031
12032
12033
12034 for ac_func in memmove strcmp
12035 do
12036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h.  */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h.  */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12050 #define $ac_func innocuous_$ac_func
12051
12052 /* System header to define __stub macros and hopefully few prototypes,
12053     which can conflict with char $ac_func (); below.
12054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055     <limits.h> exists even on freestanding compilers.  */
12056
12057 #ifdef __STDC__
12058 # include <limits.h>
12059 #else
12060 # include <assert.h>
12061 #endif
12062
12063 #undef $ac_func
12064
12065 /* Override any GCC internal prototype to avoid an error.
12066    Use char because int might match the return type of a GCC
12067    builtin and then its argument prototype would still apply.  */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char $ac_func ();
12072 /* The GNU C library defines this for functions which it implements
12073     to always fail with ENOSYS.  Some functions are actually named
12074     something starting with __ and the normal name is an alias.  */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 choke me
12077 #endif
12078
12079 int
12080 main ()
12081 {
12082 return $ac_func ();
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091   *) ac_try_echo=$ac_try;;
12092 esac
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094   (eval "$ac_link") 2>conftest.er1
12095   ac_status=$?
12096   grep -v '^ *+' conftest.er1 >conftest.err
12097   rm -f conftest.er1
12098   cat conftest.err >&5
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } &&
12101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12102   { (case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_try") 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; } &&
12111          { ac_try='test -s conftest$ac_exeext'
12112   { (case "(($ac_try" in
12113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114   *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117   (eval "$ac_try") 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; }; then
12121   eval "$as_ac_var=yes"
12122 else
12123   echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126         eval "$as_ac_var=no"
12127 fi
12128
12129 rm -f core conftest.err conftest.$ac_objext \
12130       conftest$ac_exeext conftest.$ac_ext
12131 fi
12132 ac_res=`eval echo '${'$as_ac_var'}'`
12133                { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136   cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12138 _ACEOF
12139
12140 fi
12141 done
12142
12143
12144
12145
12146 for ac_func in closedir opendir readdir
12147 do
12148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12162 #define $ac_func innocuous_$ac_func
12163
12164 /* System header to define __stub macros and hopefully few prototypes,
12165     which can conflict with char $ac_func (); below.
12166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167     <limits.h> exists even on freestanding compilers.  */
12168
12169 #ifdef __STDC__
12170 # include <limits.h>
12171 #else
12172 # include <assert.h>
12173 #endif
12174
12175 #undef $ac_func
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178    Use char because int might match the return type of a GCC
12179    builtin and then its argument prototype would still apply.  */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char $ac_func ();
12184 /* The GNU C library defines this for functions which it implements
12185     to always fail with ENOSYS.  Some functions are actually named
12186     something starting with __ and the normal name is an alias.  */
12187 #if defined __stub_$ac_func || defined __stub___$ac_func
12188 choke me
12189 #endif
12190
12191 int
12192 main ()
12193 {
12194 return $ac_func ();
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_link") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } &&
12213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214   { (case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_try") 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (case "(($ac_try" in
12225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226   *) ac_try_echo=$ac_try;;
12227 esac
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229   (eval "$ac_try") 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; }; then
12233   eval "$as_ac_var=yes"
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238         eval "$as_ac_var=no"
12239 fi
12240
12241 rm -f core conftest.err conftest.$ac_objext \
12242       conftest$ac_exeext conftest.$ac_ext
12243 fi
12244 ac_res=`eval echo '${'$as_ac_var'}'`
12245                { echo "$as_me:$LINENO: result: $ac_res" >&5
12246 echo "${ECHO_T}$ac_res" >&6; }
12247 if test `eval echo '${'$as_ac_var'}'` = yes; then
12248   cat >>confdefs.h <<_ACEOF
12249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12250 _ACEOF
12251
12252 fi
12253 done
12254
12255
12256 # Check whether --enable-shared was given.
12257 if test "${enable_shared+set}" = set; then
12258   enableval=$enable_shared; p=${PACKAGE-default}
12259     case $enableval in
12260     yes) enable_shared=yes ;;
12261     no) enable_shared=no ;;
12262     *)
12263       enable_shared=no
12264       # Look at the argument we got.  We use all the common list separators.
12265       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266       for pkg in $enableval; do
12267         IFS="$lt_save_ifs"
12268         if test "X$pkg" = "X$p"; then
12269           enable_shared=yes
12270         fi
12271       done
12272       IFS="$lt_save_ifs"
12273       ;;
12274     esac
12275 else
12276   enable_shared=yes
12277 fi
12278
12279
12280 # Check whether --enable-static was given.
12281 if test "${enable_static+set}" = set; then
12282   enableval=$enable_static; p=${PACKAGE-default}
12283     case $enableval in
12284     yes) enable_static=yes ;;
12285     no) enable_static=no ;;
12286     *)
12287      enable_static=no
12288       # Look at the argument we got.  We use all the common list separators.
12289       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290       for pkg in $enableval; do
12291         IFS="$lt_save_ifs"
12292         if test "X$pkg" = "X$p"; then
12293           enable_static=yes
12294         fi
12295       done
12296       IFS="$lt_save_ifs"
12297       ;;
12298     esac
12299 else
12300   enable_static=yes
12301 fi
12302
12303
12304 # Check whether --enable-fast-install was given.
12305 if test "${enable_fast_install+set}" = set; then
12306   enableval=$enable_fast_install; p=${PACKAGE-default}
12307     case $enableval in
12308     yes) enable_fast_install=yes ;;
12309     no) enable_fast_install=no ;;
12310     *)
12311       enable_fast_install=no
12312       # Look at the argument we got.  We use all the common list separators.
12313       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12314       for pkg in $enableval; do
12315         IFS="$lt_save_ifs"
12316         if test "X$pkg" = "X$p"; then
12317           enable_fast_install=yes
12318         fi
12319       done
12320       IFS="$lt_save_ifs"
12321       ;;
12322     esac
12323 else
12324   enable_fast_install=yes
12325 fi
12326
12327
12328 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12329 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12330 if test "${lt_cv_path_SED+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   # Loop through the user's path and test for sed and gsed.
12334 # Then use that list of sed's as ones to test for truncation.
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338   IFS=$as_save_IFS
12339   test -z "$as_dir" && as_dir=.
12340   for lt_ac_prog in sed gsed; do
12341     for ac_exec_ext in '' $ac_executable_extensions; do
12342       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12343         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12344       fi
12345     done
12346   done
12347 done
12348 lt_ac_max=0
12349 lt_ac_count=0
12350 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12351 # along with /bin/sed that truncates output.
12352 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12353   test ! -f $lt_ac_sed && continue
12354   cat /dev/null > conftest.in
12355   lt_ac_count=0
12356   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12357   # Check for GNU sed and select it if it is found.
12358   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12359     lt_cv_path_SED=$lt_ac_sed
12360     break
12361   fi
12362   while true; do
12363     cat conftest.in conftest.in >conftest.tmp
12364     mv conftest.tmp conftest.in
12365     cp conftest.in conftest.nl
12366     echo >>conftest.nl
12367     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12368     cmp -s conftest.out conftest.nl || break
12369     # 10000 chars as input seems more than enough
12370     test $lt_ac_count -gt 10 && break
12371     lt_ac_count=`expr $lt_ac_count + 1`
12372     if test $lt_ac_count -gt $lt_ac_max; then
12373       lt_ac_max=$lt_ac_count
12374       lt_cv_path_SED=$lt_ac_sed
12375     fi
12376   done
12377 done
12378
12379 fi
12380
12381 SED=$lt_cv_path_SED
12382 { echo "$as_me:$LINENO: result: $SED" >&5
12383 echo "${ECHO_T}$SED" >&6; }
12384
12385
12386 # Check whether --with-gnu-ld was given.
12387 if test "${with_gnu_ld+set}" = set; then
12388   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12389 else
12390   with_gnu_ld=no
12391 fi
12392
12393 ac_prog=ld
12394 if test "$GCC" = yes; then
12395   # Check if gcc -print-prog-name=ld gives a path.
12396   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12397 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12398   case $host in
12399   *-*-mingw*)
12400     # gcc leaves a trailing carriage return which upsets mingw
12401     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12402   *)
12403     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12404   esac
12405   case $ac_prog in
12406     # Accept absolute paths.
12407     [\\/]* | ?:[\\/]*)
12408       re_direlt='/[^/][^/]*/\.\./'
12409       # Canonicalize the pathname of ld
12410       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12411       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12412         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12413       done
12414       test -z "$LD" && LD="$ac_prog"
12415       ;;
12416   "")
12417     # If it fails, then pretend we aren't using GCC.
12418     ac_prog=ld
12419     ;;
12420   *)
12421     # If it is relative, then search for the first ld in PATH.
12422     with_gnu_ld=unknown
12423     ;;
12424   esac
12425 elif test "$with_gnu_ld" = yes; then
12426   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12427 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12428 else
12429   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12430 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12431 fi
12432 if test "${lt_cv_path_LD+set}" = set; then
12433   echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435   if test -z "$LD"; then
12436   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12437   for ac_dir in $PATH; do
12438     IFS="$lt_save_ifs"
12439     test -z "$ac_dir" && ac_dir=.
12440     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12441       lt_cv_path_LD="$ac_dir/$ac_prog"
12442       # Check to see if the program is GNU ld.  I'd rather use --version,
12443       # but apparently some variants of GNU ld only accept -v.
12444       # Break only if it was the GNU/non-GNU ld that we prefer.
12445       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12446       *GNU* | *'with BFD'*)
12447         test "$with_gnu_ld" != no && break
12448         ;;
12449       *)
12450         test "$with_gnu_ld" != yes && break
12451         ;;
12452       esac
12453     fi
12454   done
12455   IFS="$lt_save_ifs"
12456 else
12457   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12458 fi
12459 fi
12460
12461 LD="$lt_cv_path_LD"
12462 if test -n "$LD"; then
12463   { echo "$as_me:$LINENO: result: $LD" >&5
12464 echo "${ECHO_T}$LD" >&6; }
12465 else
12466   { echo "$as_me:$LINENO: result: no" >&5
12467 echo "${ECHO_T}no" >&6; }
12468 fi
12469 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12470 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12471    { (exit 1); exit 1; }; }
12472 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12473 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12474 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12478 case `$LD -v 2>&1 </dev/null` in
12479 *GNU* | *'with BFD'*)
12480   lt_cv_prog_gnu_ld=yes
12481   ;;
12482 *)
12483   lt_cv_prog_gnu_ld=no
12484   ;;
12485 esac
12486 fi
12487 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12488 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12489 with_gnu_ld=$lt_cv_prog_gnu_ld
12490
12491
12492 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12493 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12494 if test "${lt_cv_ld_reload_flag+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   lt_cv_ld_reload_flag='-r'
12498 fi
12499 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12500 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12501 reload_flag=$lt_cv_ld_reload_flag
12502 case $reload_flag in
12503 "" | " "*) ;;
12504 *) reload_flag=" $reload_flag" ;;
12505 esac
12506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12507 case $host_os in
12508   darwin*)
12509     if test "$GCC" = yes; then
12510       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12511     else
12512       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12513     fi
12514     ;;
12515 esac
12516
12517 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12518 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12519 if test "${lt_cv_deplibs_check_method+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   lt_cv_file_magic_cmd='$MAGIC_CMD'
12523 lt_cv_file_magic_test_file=
12524 lt_cv_deplibs_check_method='unknown'
12525 # Need to set the preceding variable on all platforms that support
12526 # interlibrary dependencies.
12527 # 'none' -- dependencies not supported.
12528 # `unknown' -- same as none, but documents that we really don't know.
12529 # 'pass_all' -- all dependencies passed with no checks.
12530 # 'test_compile' -- check by making test program.
12531 # 'file_magic [[regex]]' -- check by looking for files in library path
12532 # which responds to the $file_magic_cmd with a given extended regex.
12533 # If you have `file' or equivalent on your system and you're not sure
12534 # whether `pass_all' will *always* work, you probably want this one.
12535
12536 case $host_os in
12537 aix4* | aix5*)
12538   lt_cv_deplibs_check_method=pass_all
12539   ;;
12540
12541 beos*)
12542   lt_cv_deplibs_check_method=pass_all
12543   ;;
12544
12545 bsdi[45]*)
12546   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12547   lt_cv_file_magic_cmd='/usr/bin/file -L'
12548   lt_cv_file_magic_test_file=/shlib/libc.so
12549   ;;
12550
12551 cygwin*)
12552   # func_win32_libid is a shell function defined in ltmain.sh
12553   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12554   lt_cv_file_magic_cmd='func_win32_libid'
12555   ;;
12556
12557 mingw* | pw32*)
12558   # Base MSYS/MinGW do not provide the 'file' command needed by
12559   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12560   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12561   lt_cv_file_magic_cmd='$OBJDUMP -f'
12562   ;;
12563
12564 darwin* | rhapsody*)
12565   lt_cv_deplibs_check_method=pass_all
12566   ;;
12567
12568 freebsd* | kfreebsd*-gnu | dragonfly*)
12569   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12570     case $host_cpu in
12571     i*86 )
12572       # Not sure whether the presence of OpenBSD here was a mistake.
12573       # Let's accept both of them until this is cleared up.
12574       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12575       lt_cv_file_magic_cmd=/usr/bin/file
12576       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12577       ;;
12578     esac
12579   else
12580     lt_cv_deplibs_check_method=pass_all
12581   fi
12582   ;;
12583
12584 gnu*)
12585   lt_cv_deplibs_check_method=pass_all
12586   ;;
12587
12588 hpux10.20* | hpux11*)
12589   lt_cv_file_magic_cmd=/usr/bin/file
12590   case $host_cpu in
12591   ia64*)
12592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12593     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12594     ;;
12595   hppa*64*)
12596     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]'
12597     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12598     ;;
12599   *)
12600     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12601     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12602     ;;
12603   esac
12604   ;;
12605
12606 interix3*)
12607   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12608   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12609   ;;
12610
12611 irix5* | irix6* | nonstopux*)
12612   case $LD in
12613   *-32|*"-32 ") libmagic=32-bit;;
12614   *-n32|*"-n32 ") libmagic=N32;;
12615   *-64|*"-64 ") libmagic=64-bit;;
12616   *) libmagic=never-match;;
12617   esac
12618   lt_cv_deplibs_check_method=pass_all
12619   ;;
12620
12621 # This must be Linux ELF.
12622 linux*)
12623   lt_cv_deplibs_check_method=pass_all
12624   ;;
12625
12626 netbsd*)
12627   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12628     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12629   else
12630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12631   fi
12632   ;;
12633
12634 newos6*)
12635   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12636   lt_cv_file_magic_cmd=/usr/bin/file
12637   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12638   ;;
12639
12640 nto-qnx*)
12641   lt_cv_deplibs_check_method=unknown
12642   ;;
12643
12644 openbsd*)
12645   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12646     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12647   else
12648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12649   fi
12650   ;;
12651
12652 osf3* | osf4* | osf5*)
12653   lt_cv_deplibs_check_method=pass_all
12654   ;;
12655
12656 solaris*)
12657   lt_cv_deplibs_check_method=pass_all
12658   ;;
12659
12660 sysv4 | sysv4.3*)
12661   case $host_vendor in
12662   motorola)
12663     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]'
12664     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12665     ;;
12666   ncr)
12667     lt_cv_deplibs_check_method=pass_all
12668     ;;
12669   sequent)
12670     lt_cv_file_magic_cmd='/bin/file'
12671     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12672     ;;
12673   sni)
12674     lt_cv_file_magic_cmd='/bin/file'
12675     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12676     lt_cv_file_magic_test_file=/lib/libc.so
12677     ;;
12678   siemens)
12679     lt_cv_deplibs_check_method=pass_all
12680     ;;
12681   pc)
12682     lt_cv_deplibs_check_method=pass_all
12683     ;;
12684   esac
12685   ;;
12686
12687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12688   lt_cv_deplibs_check_method=pass_all
12689   ;;
12690 esac
12691
12692 fi
12693 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12694 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12695 file_magic_cmd=$lt_cv_file_magic_cmd
12696 deplibs_check_method=$lt_cv_deplibs_check_method
12697 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12698
12699
12700
12701 # If no C compiler was specified, use CC.
12702 LTCC=${LTCC-"$CC"}
12703
12704 # If no C compiler flags were specified, use CFLAGS.
12705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12706
12707 # Allow CC to be a program name with arguments.
12708 compiler=$CC
12709
12710 # Check whether --enable-libtool-lock was given.
12711 if test "${enable_libtool_lock+set}" = set; then
12712   enableval=$enable_libtool_lock;
12713 fi
12714
12715 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12716
12717 # Some flags need to be propagated to the compiler or linker for good
12718 # libtool support.
12719 case $host in
12720 ia64-*-hpux*)
12721   # Find out which ABI we are using.
12722   echo 'int i;' > conftest.$ac_ext
12723   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724   (eval $ac_compile) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; then
12728     case `/usr/bin/file conftest.$ac_objext` in
12729     *ELF-32*)
12730       HPUX_IA64_MODE="32"
12731       ;;
12732     *ELF-64*)
12733       HPUX_IA64_MODE="64"
12734       ;;
12735     esac
12736   fi
12737   rm -rf conftest*
12738   ;;
12739 *-*-irix6*)
12740   # Find out which ABI we are using.
12741   echo '#line 12741 "configure"' > conftest.$ac_ext
12742   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743   (eval $ac_compile) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); }; then
12747    if test "$lt_cv_prog_gnu_ld" = yes; then
12748     case `/usr/bin/file conftest.$ac_objext` in
12749     *32-bit*)
12750       LD="${LD-ld} -melf32bsmip"
12751       ;;
12752     *N32*)
12753       LD="${LD-ld} -melf32bmipn32"
12754       ;;
12755     *64-bit*)
12756       LD="${LD-ld} -melf64bmip"
12757       ;;
12758     esac
12759    else
12760     case `/usr/bin/file conftest.$ac_objext` in
12761     *32-bit*)
12762       LD="${LD-ld} -32"
12763       ;;
12764     *N32*)
12765       LD="${LD-ld} -n32"
12766       ;;
12767     *64-bit*)
12768       LD="${LD-ld} -64"
12769       ;;
12770     esac
12771    fi
12772   fi
12773   rm -rf conftest*
12774   ;;
12775
12776 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12777   # Find out which ABI we are using.
12778   echo 'int i;' > conftest.$ac_ext
12779   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780   (eval $ac_compile) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; then
12784     case `/usr/bin/file conftest.o` in
12785     *32-bit*)
12786       case $host in
12787         x86_64-*linux*)
12788           LD="${LD-ld} -m elf_i386"
12789           ;;
12790         ppc64-*linux*|powerpc64-*linux*)
12791           LD="${LD-ld} -m elf32ppclinux"
12792           ;;
12793         s390x-*linux*)
12794           LD="${LD-ld} -m elf_s390"
12795           ;;
12796         sparc64-*linux*)
12797           LD="${LD-ld} -m elf32_sparc"
12798           ;;
12799       esac
12800       ;;
12801     *64-bit*)
12802       case $host in
12803         x86_64-*linux*)
12804           LD="${LD-ld} -m elf_x86_64"
12805           ;;
12806         ppc*-*linux*|powerpc*-*linux*)
12807           LD="${LD-ld} -m elf64ppc"
12808           ;;
12809         s390*-*linux*)
12810           LD="${LD-ld} -m elf64_s390"
12811           ;;
12812         sparc*-*linux*)
12813           LD="${LD-ld} -m elf64_sparc"
12814           ;;
12815       esac
12816       ;;
12817     esac
12818   fi
12819   rm -rf conftest*
12820   ;;
12821
12822 *-*-sco3.2v5*)
12823   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12824   SAVE_CFLAGS="$CFLAGS"
12825   CFLAGS="$CFLAGS -belf"
12826   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12827 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12828 if test "${lt_cv_cc_needs_belf+set}" = set; then
12829   echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831   ac_ext=c
12832 ac_cpp='$CPP $CPPFLAGS'
12833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12836
12837      cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 int
12845 main ()
12846 {
12847
12848   ;
12849   return 0;
12850 }
12851 _ACEOF
12852 rm -f conftest.$ac_objext conftest$ac_exeext
12853 if { (ac_try="$ac_link"
12854 case "(($ac_try" in
12855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856   *) ac_try_echo=$ac_try;;
12857 esac
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859   (eval "$ac_link") 2>conftest.er1
12860   ac_status=$?
12861   grep -v '^ *+' conftest.er1 >conftest.err
12862   rm -f conftest.er1
12863   cat conftest.err >&5
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } &&
12866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12867   { (case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_try") 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; } &&
12876          { ac_try='test -s conftest$ac_exeext'
12877   { (case "(($ac_try" in
12878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879   *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882   (eval "$ac_try") 2>&5
12883   ac_status=$?
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); }; }; then
12886   lt_cv_cc_needs_belf=yes
12887 else
12888   echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891         lt_cv_cc_needs_belf=no
12892 fi
12893
12894 rm -f core conftest.err conftest.$ac_objext \
12895       conftest$ac_exeext conftest.$ac_ext
12896      ac_ext=c
12897 ac_cpp='$CPP $CPPFLAGS'
12898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12901
12902 fi
12903 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12904 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12905   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12906     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12907     CFLAGS="$SAVE_CFLAGS"
12908   fi
12909   ;;
12910 sparc*-*solaris*)
12911   # Find out which ABI we are using.
12912   echo 'int i;' > conftest.$ac_ext
12913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914   (eval $ac_compile) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; then
12918     case `/usr/bin/file conftest.o` in
12919     *64-bit*)
12920       case $lt_cv_prog_gnu_ld in
12921       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12922       *)    LD="${LD-ld} -64" ;;
12923       esac
12924       ;;
12925     esac
12926   fi
12927   rm -rf conftest*
12928   ;;
12929
12930
12931 esac
12932
12933 need_locks="$enable_libtool_lock"
12934
12935
12936
12937
12938 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12939     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12940     (test "X$CXX" != "Xg++"))) ; then
12941   ac_ext=cpp
12942 ac_cpp='$CXXCPP $CPPFLAGS'
12943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12946 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12947 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12948 if test -z "$CXXCPP"; then
12949   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12950   echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952       # Double quotes because CXXCPP needs to be expanded
12953     for CXXCPP in "$CXX -E" "/lib/cpp"
12954     do
12955       ac_preproc_ok=false
12956 for ac_cxx_preproc_warn_flag in '' yes
12957 do
12958   # Use a header file that comes with gcc, so configuring glibc
12959   # with a fresh cross-compiler works.
12960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12961   # <limits.h> exists even on freestanding compilers.
12962   # On the NeXT, cc -E runs the code through the compiler's parser,
12963   # not just through cpp. "Syntax error" is here to catch this case.
12964   cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h.  */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h.  */
12970 #ifdef __STDC__
12971 # include <limits.h>
12972 #else
12973 # include <assert.h>
12974 #endif
12975                      Syntax error
12976 _ACEOF
12977 if { (ac_try="$ac_cpp conftest.$ac_ext"
12978 case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } >/dev/null; then
12990   if test -s conftest.err; then
12991     ac_cpp_err=$ac_cxx_preproc_warn_flag
12992     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12993   else
12994     ac_cpp_err=
12995   fi
12996 else
12997   ac_cpp_err=yes
12998 fi
12999 if test -z "$ac_cpp_err"; then
13000   :
13001 else
13002   echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005   # Broken: fails on valid input.
13006 continue
13007 fi
13008
13009 rm -f conftest.err conftest.$ac_ext
13010
13011   # OK, works on sane cases.  Now check whether nonexistent headers
13012   # can be detected and how.
13013   cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h.  */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h.  */
13019 #include <ac_nonexistent.h>
13020 _ACEOF
13021 if { (ac_try="$ac_cpp conftest.$ac_ext"
13022 case "(($ac_try" in
13023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024   *) ac_try_echo=$ac_try;;
13025 esac
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13028   ac_status=$?
13029   grep -v '^ *+' conftest.er1 >conftest.err
13030   rm -f conftest.er1
13031   cat conftest.err >&5
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } >/dev/null; then
13034   if test -s conftest.err; then
13035     ac_cpp_err=$ac_cxx_preproc_warn_flag
13036     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13037   else
13038     ac_cpp_err=
13039   fi
13040 else
13041   ac_cpp_err=yes
13042 fi
13043 if test -z "$ac_cpp_err"; then
13044   # Broken: success on invalid input.
13045 continue
13046 else
13047   echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050   # Passes both tests.
13051 ac_preproc_ok=:
13052 break
13053 fi
13054
13055 rm -f conftest.err conftest.$ac_ext
13056
13057 done
13058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13059 rm -f conftest.err conftest.$ac_ext
13060 if $ac_preproc_ok; then
13061   break
13062 fi
13063
13064     done
13065     ac_cv_prog_CXXCPP=$CXXCPP
13066
13067 fi
13068   CXXCPP=$ac_cv_prog_CXXCPP
13069 else
13070   ac_cv_prog_CXXCPP=$CXXCPP
13071 fi
13072 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13073 echo "${ECHO_T}$CXXCPP" >&6; }
13074 ac_preproc_ok=false
13075 for ac_cxx_preproc_warn_flag in '' yes
13076 do
13077   # Use a header file that comes with gcc, so configuring glibc
13078   # with a fresh cross-compiler works.
13079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13080   # <limits.h> exists even on freestanding compilers.
13081   # On the NeXT, cc -E runs the code through the compiler's parser,
13082   # not just through cpp. "Syntax error" is here to catch this case.
13083   cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089 #ifdef __STDC__
13090 # include <limits.h>
13091 #else
13092 # include <assert.h>
13093 #endif
13094                      Syntax error
13095 _ACEOF
13096 if { (ac_try="$ac_cpp conftest.$ac_ext"
13097 case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } >/dev/null; then
13109   if test -s conftest.err; then
13110     ac_cpp_err=$ac_cxx_preproc_warn_flag
13111     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13112   else
13113     ac_cpp_err=
13114   fi
13115 else
13116   ac_cpp_err=yes
13117 fi
13118 if test -z "$ac_cpp_err"; then
13119   :
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124   # Broken: fails on valid input.
13125 continue
13126 fi
13127
13128 rm -f conftest.err conftest.$ac_ext
13129
13130   # OK, works on sane cases.  Now check whether nonexistent headers
13131   # can be detected and how.
13132   cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138 #include <ac_nonexistent.h>
13139 _ACEOF
13140 if { (ac_try="$ac_cpp conftest.$ac_ext"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13147   ac_status=$?
13148   grep -v '^ *+' conftest.er1 >conftest.err
13149   rm -f conftest.er1
13150   cat conftest.err >&5
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } >/dev/null; then
13153   if test -s conftest.err; then
13154     ac_cpp_err=$ac_cxx_preproc_warn_flag
13155     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13156   else
13157     ac_cpp_err=
13158   fi
13159 else
13160   ac_cpp_err=yes
13161 fi
13162 if test -z "$ac_cpp_err"; then
13163   # Broken: success on invalid input.
13164 continue
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169   # Passes both tests.
13170 ac_preproc_ok=:
13171 break
13172 fi
13173
13174 rm -f conftest.err conftest.$ac_ext
13175
13176 done
13177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13178 rm -f conftest.err conftest.$ac_ext
13179 if $ac_preproc_ok; then
13180   :
13181 else
13182   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13183 See \`config.log' for more details." >&5
13184 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13185 See \`config.log' for more details." >&2;}
13186    { (exit 1); exit 1; }; }
13187 fi
13188
13189 ac_ext=cpp
13190 ac_cpp='$CXXCPP $CPPFLAGS'
13191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194
13195 fi
13196
13197
13198 ac_ext=f
13199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13202 if test -n "$ac_tool_prefix"; then
13203   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
13204   do
13205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13209 if test "${ac_cv_prog_F77+set}" = set; then
13210   echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212   if test -n "$F77"; then
13213   ac_cv_prog_F77="$F77" # Let the user override the test.
13214 else
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13217 do
13218   IFS=$as_save_IFS
13219   test -z "$as_dir" && as_dir=.
13220   for ac_exec_ext in '' $ac_executable_extensions; do
13221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13222     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13224     break 2
13225   fi
13226 done
13227 done
13228 IFS=$as_save_IFS
13229
13230 fi
13231 fi
13232 F77=$ac_cv_prog_F77
13233 if test -n "$F77"; then
13234   { echo "$as_me:$LINENO: result: $F77" >&5
13235 echo "${ECHO_T}$F77" >&6; }
13236 else
13237   { echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6; }
13239 fi
13240
13241
13242     test -n "$F77" && break
13243   done
13244 fi
13245 if test -z "$F77"; then
13246   ac_ct_F77=$F77
13247   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
13248 do
13249   # Extract the first word of "$ac_prog", so it can be a program name with args.
13250 set dummy $ac_prog; ac_word=$2
13251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256   if test -n "$ac_ct_F77"; then
13257   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262   IFS=$as_save_IFS
13263   test -z "$as_dir" && as_dir=.
13264   for ac_exec_ext in '' $ac_executable_extensions; do
13265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13266     ac_cv_prog_ac_ct_F77="$ac_prog"
13267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13268     break 2
13269   fi
13270 done
13271 done
13272 IFS=$as_save_IFS
13273
13274 fi
13275 fi
13276 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13277 if test -n "$ac_ct_F77"; then
13278   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13279 echo "${ECHO_T}$ac_ct_F77" >&6; }
13280 else
13281   { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13283 fi
13284
13285
13286   test -n "$ac_ct_F77" && break
13287 done
13288
13289   if test "x$ac_ct_F77" = x; then
13290     F77=""
13291   else
13292     case $cross_compiling:$ac_tool_warned in
13293 yes:)
13294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13295 whose name does not start with the host triplet.  If you think this
13296 configuration is useful to you, please write to autoconf@gnu.org." >&5
13297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13298 whose name does not start with the host triplet.  If you think this
13299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13300 ac_tool_warned=yes ;;
13301 esac
13302     F77=$ac_ct_F77
13303   fi
13304 fi
13305
13306
13307 # Provide some information about the compiler.
13308 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13309 ac_compiler=`set X $ac_compile; echo $2`
13310 { (ac_try="$ac_compiler --version >&5"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_compiler --version >&5") 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }
13320 { (ac_try="$ac_compiler -v >&5"
13321 case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_compiler -v >&5") 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }
13330 { (ac_try="$ac_compiler -V >&5"
13331 case "(($ac_try" in
13332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333   *) ac_try_echo=$ac_try;;
13334 esac
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336   (eval "$ac_compiler -V >&5") 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }
13340 rm -f a.out
13341
13342 # If we don't use `.F' as extension, the preprocessor is not run on the
13343 # input file.  (Note that this only needs to work for GNU compilers.)
13344 ac_save_ext=$ac_ext
13345 ac_ext=F
13346 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13347 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13348 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352       program main
13353 #ifndef __GNUC__
13354        choke me
13355 #endif
13356
13357       end
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363   *) ac_try_echo=$ac_try;;
13364 esac
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366   (eval "$ac_compile") 2>conftest.er1
13367   ac_status=$?
13368   grep -v '^ *+' conftest.er1 >conftest.err
13369   rm -f conftest.er1
13370   cat conftest.err >&5
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } &&
13373          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13374   { (case "(($ac_try" in
13375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376   *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379   (eval "$ac_try") 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; } &&
13383          { ac_try='test -s conftest.$ac_objext'
13384   { (case "(($ac_try" in
13385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386   *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389   (eval "$ac_try") 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393   ac_compiler_gnu=yes
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398         ac_compiler_gnu=no
13399 fi
13400
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13403
13404 fi
13405 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13406 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13407 ac_ext=$ac_save_ext
13408 ac_test_FFLAGS=${FFLAGS+set}
13409 ac_save_FFLAGS=$FFLAGS
13410 FFLAGS=
13411 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13412 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13413 if test "${ac_cv_prog_f77_g+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   FFLAGS=-g
13417 cat >conftest.$ac_ext <<_ACEOF
13418       program main
13419
13420       end
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426   *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429   (eval "$ac_compile") 2>conftest.er1
13430   ac_status=$?
13431   grep -v '^ *+' conftest.er1 >conftest.err
13432   rm -f conftest.er1
13433   cat conftest.err >&5
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } &&
13436          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; } &&
13446          { ac_try='test -s conftest.$ac_objext'
13447   { (case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_try") 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; }; then
13456   ac_cv_prog_f77_g=yes
13457 else
13458   echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461         ac_cv_prog_f77_g=no
13462 fi
13463
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465
13466 fi
13467 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13468 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13469 if test "$ac_test_FFLAGS" = set; then
13470   FFLAGS=$ac_save_FFLAGS
13471 elif test $ac_cv_prog_f77_g = yes; then
13472   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13473     FFLAGS="-g -O2"
13474   else
13475     FFLAGS="-g"
13476   fi
13477 else
13478   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13479     FFLAGS="-O2"
13480   else
13481     FFLAGS=
13482   fi
13483 fi
13484
13485 G77=`test $ac_compiler_gnu = yes && echo yes`
13486 ac_ext=c
13487 ac_cpp='$CPP $CPPFLAGS'
13488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13491
13492
13493
13494 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13495
13496 # find the maximum length of command line arguments
13497 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13498 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13499 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13500   echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502     i=0
13503   teststring="ABCD"
13504
13505   case $build_os in
13506   msdosdjgpp*)
13507     # On DJGPP, this test can blow up pretty badly due to problems in libc
13508     # (any single argument exceeding 2000 bytes causes a buffer overrun
13509     # during glob expansion).  Even if it were fixed, the result of this
13510     # check would be larger than it should be.
13511     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13512     ;;
13513
13514   gnu*)
13515     # Under GNU Hurd, this test is not required because there is
13516     # no limit to the length of command line arguments.
13517     # Libtool will interpret -1 as no limit whatsoever
13518     lt_cv_sys_max_cmd_len=-1;
13519     ;;
13520
13521   cygwin* | mingw*)
13522     # On Win9x/ME, this test blows up -- it succeeds, but takes
13523     # about 5 minutes as the teststring grows exponentially.
13524     # Worse, since 9x/ME are not pre-emptively multitasking,
13525     # you end up with a "frozen" computer, even though with patience
13526     # the test eventually succeeds (with a max line length of 256k).
13527     # Instead, let's just punt: use the minimum linelength reported by
13528     # all of the supported platforms: 8192 (on NT/2K/XP).
13529     lt_cv_sys_max_cmd_len=8192;
13530     ;;
13531
13532   amigaos*)
13533     # On AmigaOS with pdksh, this test takes hours, literally.
13534     # So we just punt and use a minimum line length of 8192.
13535     lt_cv_sys_max_cmd_len=8192;
13536     ;;
13537
13538   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13539     # This has been around since 386BSD, at least.  Likely further.
13540     if test -x /sbin/sysctl; then
13541       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13542     elif test -x /usr/sbin/sysctl; then
13543       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13544     else
13545       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13546     fi
13547     # And add a safety zone
13548     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13549     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13550     ;;
13551
13552   interix*)
13553     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13554     lt_cv_sys_max_cmd_len=196608
13555     ;;
13556
13557   osf*)
13558     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13559     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13560     # nice to cause kernel panics so lets avoid the loop below.
13561     # First set a reasonable default.
13562     lt_cv_sys_max_cmd_len=16384
13563     #
13564     if test -x /sbin/sysconfig; then
13565       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13566         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13567       esac
13568     fi
13569     ;;
13570   sco3.2v5*)
13571     lt_cv_sys_max_cmd_len=102400
13572     ;;
13573   sysv5* | sco5v6* | sysv4.2uw2*)
13574     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13575     if test -n "$kargmax"; then
13576       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13577     else
13578       lt_cv_sys_max_cmd_len=32768
13579     fi
13580     ;;
13581   *)
13582     # If test is not a shell built-in, we'll probably end up computing a
13583     # maximum length that is only half of the actual maximum length, but
13584     # we can't tell.
13585     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13586     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13587                = "XX$teststring") >/dev/null 2>&1 &&
13588             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13589             lt_cv_sys_max_cmd_len=$new_result &&
13590             test $i != 17 # 1/2 MB should be enough
13591     do
13592       i=`expr $i + 1`
13593       teststring=$teststring$teststring
13594     done
13595     teststring=
13596     # Add a significant safety factor because C++ compilers can tack on massive
13597     # amounts of additional arguments before passing them to the linker.
13598     # It appears as though 1/2 is a usable value.
13599     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13600     ;;
13601   esac
13602
13603 fi
13604
13605 if test -n $lt_cv_sys_max_cmd_len ; then
13606   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13607 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13608 else
13609   { echo "$as_me:$LINENO: result: none" >&5
13610 echo "${ECHO_T}none" >&6; }
13611 fi
13612
13613
13614
13615
13616 # Check for command to grab the raw symbol name followed by C symbol from nm.
13617 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13618 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13619 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622
13623 # These are sane defaults that work on at least a few old systems.
13624 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13625
13626 # Character class describing NM global symbol codes.
13627 symcode='[BCDEGRST]'
13628
13629 # Regexp to match symbols that can be accessed directly from C.
13630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13631
13632 # Transform an extracted symbol line into a proper C declaration
13633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13634
13635 # Transform an extracted symbol line into symbol name and symbol address
13636 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'"
13637
13638 # Define system-specific variables.
13639 case $host_os in
13640 aix*)
13641   symcode='[BCDT]'
13642   ;;
13643 cygwin* | mingw* | pw32*)
13644   symcode='[ABCDGISTW]'
13645   ;;
13646 hpux*) # Its linker distinguishes data from code symbols
13647   if test "$host_cpu" = ia64; then
13648     symcode='[ABCDEGRST]'
13649   fi
13650   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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 linux*)
13654   if test "$host_cpu" = ia64; then
13655     symcode='[ABCDGIRSTW]'
13656     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13657     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'"
13658   fi
13659   ;;
13660 irix* | nonstopux*)
13661   symcode='[BCDEGRST]'
13662   ;;
13663 osf*)
13664   symcode='[BCDEGQRST]'
13665   ;;
13666 solaris*)
13667   symcode='[BDRT]'
13668   ;;
13669 sco3.2v5*)
13670   symcode='[DT]'
13671   ;;
13672 sysv4.2uw2*)
13673   symcode='[DT]'
13674   ;;
13675 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13676   symcode='[ABDT]'
13677   ;;
13678 sysv4)
13679   symcode='[DFNSTU]'
13680   ;;
13681 esac
13682
13683 # Handle CRLF in mingw tool chain
13684 opt_cr=
13685 case $build_os in
13686 mingw*)
13687   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13688   ;;
13689 esac
13690
13691 # If we're using GNU nm, then use its standard symbol codes.
13692 case `$NM -V 2>&1` in
13693 *GNU* | *'with BFD'*)
13694   symcode='[ABCDGIRSTW]' ;;
13695 esac
13696
13697 # Try without a prefix undercore, then with it.
13698 for ac_symprfx in "" "_"; do
13699
13700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13701   symxfrm="\\1 $ac_symprfx\\2 \\2"
13702
13703   # Write the raw and C identifiers.
13704   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13705
13706   # Check to see that the pipe works correctly.
13707   pipe_works=no
13708
13709   rm -f conftest*
13710   cat > conftest.$ac_ext <<EOF
13711 #ifdef __cplusplus
13712 extern "C" {
13713 #endif
13714 char nm_test_var;
13715 void nm_test_func(){}
13716 #ifdef __cplusplus
13717 }
13718 #endif
13719 int main(){nm_test_var='a';nm_test_func();return(0);}
13720 EOF
13721
13722   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723   (eval $ac_compile) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; then
13727     # Now try to grab the symbols.
13728     nlist=conftest.nm
13729     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13730   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } && test -s "$nlist"; then
13734       # Try sorting and uniquifying the output.
13735       if sort "$nlist" | uniq > "$nlist"T; then
13736         mv -f "$nlist"T "$nlist"
13737       else
13738         rm -f "$nlist"T
13739       fi
13740
13741       # Make sure that we snagged all the symbols we need.
13742       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13743         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13744           cat <<EOF > conftest.$ac_ext
13745 #ifdef __cplusplus
13746 extern "C" {
13747 #endif
13748
13749 EOF
13750           # Now generate the symbol file.
13751           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13752
13753           cat <<EOF >> conftest.$ac_ext
13754 #if defined (__STDC__) && __STDC__
13755 # define lt_ptr_t void *
13756 #else
13757 # define lt_ptr_t char *
13758 # define const
13759 #endif
13760
13761 /* The mapping between symbol names and symbols. */
13762 const struct {
13763   const char *name;
13764   lt_ptr_t address;
13765 }
13766 lt_preloaded_symbols[] =
13767 {
13768 EOF
13769           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13770           cat <<\EOF >> conftest.$ac_ext
13771   {0, (lt_ptr_t) 0}
13772 };
13773
13774 #ifdef __cplusplus
13775 }
13776 #endif
13777 EOF
13778           # Now try linking the two files.
13779           mv conftest.$ac_objext conftstm.$ac_objext
13780           lt_save_LIBS="$LIBS"
13781           lt_save_CFLAGS="$CFLAGS"
13782           LIBS="conftstm.$ac_objext"
13783           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13784           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13785   (eval $ac_link) 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13789             pipe_works=yes
13790           fi
13791           LIBS="$lt_save_LIBS"
13792           CFLAGS="$lt_save_CFLAGS"
13793         else
13794           echo "cannot find nm_test_func in $nlist" >&5
13795         fi
13796       else
13797         echo "cannot find nm_test_var in $nlist" >&5
13798       fi
13799     else
13800       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13801     fi
13802   else
13803     echo "$progname: failed program was:" >&5
13804     cat conftest.$ac_ext >&5
13805   fi
13806   rm -f conftest* conftst*
13807
13808   # Do not use the global_symbol_pipe unless it works.
13809   if test "$pipe_works" = yes; then
13810     break
13811   else
13812     lt_cv_sys_global_symbol_pipe=
13813   fi
13814 done
13815
13816 fi
13817
13818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13819   lt_cv_sys_global_symbol_to_cdecl=
13820 fi
13821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13822   { echo "$as_me:$LINENO: result: failed" >&5
13823 echo "${ECHO_T}failed" >&6; }
13824 else
13825   { echo "$as_me:$LINENO: result: ok" >&5
13826 echo "${ECHO_T}ok" >&6; }
13827 fi
13828
13829 { echo "$as_me:$LINENO: checking for objdir" >&5
13830 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13831 if test "${lt_cv_objdir+set}" = set; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834   rm -f .libs 2>/dev/null
13835 mkdir .libs 2>/dev/null
13836 if test -d .libs; then
13837   lt_cv_objdir=.libs
13838 else
13839   # MS-DOS does not allow filenames that begin with a dot.
13840   lt_cv_objdir=_libs
13841 fi
13842 rmdir .libs 2>/dev/null
13843 fi
13844 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13845 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13846 objdir=$lt_cv_objdir
13847
13848
13849
13850
13851
13852 case $host_os in
13853 aix3*)
13854   # AIX sometimes has problems with the GCC collect2 program.  For some
13855   # reason, if we set the COLLECT_NAMES environment variable, the problems
13856   # vanish in a puff of smoke.
13857   if test "X${COLLECT_NAMES+set}" != Xset; then
13858     COLLECT_NAMES=
13859     export COLLECT_NAMES
13860   fi
13861   ;;
13862 esac
13863
13864 # Sed substitution that helps us do robust quoting.  It backslashifies
13865 # metacharacters that are still active within double-quoted strings.
13866 Xsed='sed -e 1s/^X//'
13867 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13868
13869 # Same as above, but do not quote variable references.
13870 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13871
13872 # Sed substitution to delay expansion of an escaped shell variable in a
13873 # double_quote_subst'ed string.
13874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13875
13876 # Sed substitution to avoid accidental globbing in evaled expressions
13877 no_glob_subst='s/\*/\\\*/g'
13878
13879 # Constants:
13880 rm="rm -f"
13881
13882 # Global variables:
13883 default_ofile=mklib
13884 can_build_shared=yes
13885
13886 # All known linkers require a `.a' archive for static linking (except MSVC,
13887 # which needs '.lib').
13888 libext=a
13889 ltmain="$ac_aux_dir/ltmain.sh"
13890 ofile="$default_ofile"
13891 with_gnu_ld="$lt_cv_prog_gnu_ld"
13892
13893 if test -n "$ac_tool_prefix"; then
13894   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13895 set dummy ${ac_tool_prefix}ar; ac_word=$2
13896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13898 if test "${ac_cv_prog_AR+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901   if test -n "$AR"; then
13902   ac_cv_prog_AR="$AR" # Let the user override the test.
13903 else
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907   IFS=$as_save_IFS
13908   test -z "$as_dir" && as_dir=.
13909   for ac_exec_ext in '' $ac_executable_extensions; do
13910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13911     ac_cv_prog_AR="${ac_tool_prefix}ar"
13912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913     break 2
13914   fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 fi
13920 fi
13921 AR=$ac_cv_prog_AR
13922 if test -n "$AR"; then
13923   { echo "$as_me:$LINENO: result: $AR" >&5
13924 echo "${ECHO_T}$AR" >&6; }
13925 else
13926   { echo "$as_me:$LINENO: result: no" >&5
13927 echo "${ECHO_T}no" >&6; }
13928 fi
13929
13930
13931 fi
13932 if test -z "$ac_cv_prog_AR"; then
13933   ac_ct_AR=$AR
13934   # Extract the first word of "ar", so it can be a program name with args.
13935 set dummy ar; ac_word=$2
13936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941   if test -n "$ac_ct_AR"; then
13942   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13943 else
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13946 do
13947   IFS=$as_save_IFS
13948   test -z "$as_dir" && as_dir=.
13949   for ac_exec_ext in '' $ac_executable_extensions; do
13950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13951     ac_cv_prog_ac_ct_AR="ar"
13952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953     break 2
13954   fi
13955 done
13956 done
13957 IFS=$as_save_IFS
13958
13959 fi
13960 fi
13961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13962 if test -n "$ac_ct_AR"; then
13963   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13964 echo "${ECHO_T}$ac_ct_AR" >&6; }
13965 else
13966   { echo "$as_me:$LINENO: result: no" >&5
13967 echo "${ECHO_T}no" >&6; }
13968 fi
13969
13970   if test "x$ac_ct_AR" = x; then
13971     AR="false"
13972   else
13973     case $cross_compiling:$ac_tool_warned in
13974 yes:)
13975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13976 whose name does not start with the host triplet.  If you think this
13977 configuration is useful to you, please write to autoconf@gnu.org." >&5
13978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13979 whose name does not start with the host triplet.  If you think this
13980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13981 ac_tool_warned=yes ;;
13982 esac
13983     AR=$ac_ct_AR
13984   fi
13985 else
13986   AR="$ac_cv_prog_AR"
13987 fi
13988
13989 if test -n "$ac_tool_prefix"; then
13990   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13994 if test "${ac_cv_prog_RANLIB+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   if test -n "$RANLIB"; then
13998   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13999 else
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003   IFS=$as_save_IFS
14004   test -z "$as_dir" && as_dir=.
14005   for ac_exec_ext in '' $ac_executable_extensions; do
14006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14007     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009     break 2
14010   fi
14011 done
14012 done
14013 IFS=$as_save_IFS
14014
14015 fi
14016 fi
14017 RANLIB=$ac_cv_prog_RANLIB
14018 if test -n "$RANLIB"; then
14019   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14020 echo "${ECHO_T}$RANLIB" >&6; }
14021 else
14022   { echo "$as_me:$LINENO: result: no" >&5
14023 echo "${ECHO_T}no" >&6; }
14024 fi
14025
14026
14027 fi
14028 if test -z "$ac_cv_prog_RANLIB"; then
14029   ac_ct_RANLIB=$RANLIB
14030   # Extract the first word of "ranlib", so it can be a program name with args.
14031 set dummy ranlib; ac_word=$2
14032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   if test -n "$ac_ct_RANLIB"; then
14038   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14039 else
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14042 do
14043   IFS=$as_save_IFS
14044   test -z "$as_dir" && as_dir=.
14045   for ac_exec_ext in '' $ac_executable_extensions; do
14046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14047     ac_cv_prog_ac_ct_RANLIB="ranlib"
14048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14049     break 2
14050   fi
14051 done
14052 done
14053 IFS=$as_save_IFS
14054
14055 fi
14056 fi
14057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14058 if test -n "$ac_ct_RANLIB"; then
14059   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14060 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14061 else
14062   { echo "$as_me:$LINENO: result: no" >&5
14063 echo "${ECHO_T}no" >&6; }
14064 fi
14065
14066   if test "x$ac_ct_RANLIB" = x; then
14067     RANLIB=":"
14068   else
14069     case $cross_compiling:$ac_tool_warned in
14070 yes:)
14071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14072 whose name does not start with the host triplet.  If you think this
14073 configuration is useful to you, please write to autoconf@gnu.org." >&5
14074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14075 whose name does not start with the host triplet.  If you think this
14076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14077 ac_tool_warned=yes ;;
14078 esac
14079     RANLIB=$ac_ct_RANLIB
14080   fi
14081 else
14082   RANLIB="$ac_cv_prog_RANLIB"
14083 fi
14084
14085 if test -n "$ac_tool_prefix"; then
14086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14087 set dummy ${ac_tool_prefix}strip; ac_word=$2
14088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14090 if test "${ac_cv_prog_STRIP+set}" = set; then
14091   echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093   if test -n "$STRIP"; then
14094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14095 else
14096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097 for as_dir in $PATH
14098 do
14099   IFS=$as_save_IFS
14100   test -z "$as_dir" && as_dir=.
14101   for ac_exec_ext in '' $ac_executable_extensions; do
14102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14105     break 2
14106   fi
14107 done
14108 done
14109 IFS=$as_save_IFS
14110
14111 fi
14112 fi
14113 STRIP=$ac_cv_prog_STRIP
14114 if test -n "$STRIP"; then
14115   { echo "$as_me:$LINENO: result: $STRIP" >&5
14116 echo "${ECHO_T}$STRIP" >&6; }
14117 else
14118   { echo "$as_me:$LINENO: result: no" >&5
14119 echo "${ECHO_T}no" >&6; }
14120 fi
14121
14122
14123 fi
14124 if test -z "$ac_cv_prog_STRIP"; then
14125   ac_ct_STRIP=$STRIP
14126   # Extract the first word of "strip", so it can be a program name with args.
14127 set dummy strip; ac_word=$2
14128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   if test -n "$ac_ct_STRIP"; then
14134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14135 else
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14138 do
14139   IFS=$as_save_IFS
14140   test -z "$as_dir" && as_dir=.
14141   for ac_exec_ext in '' $ac_executable_extensions; do
14142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14143     ac_cv_prog_ac_ct_STRIP="strip"
14144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14145     break 2
14146   fi
14147 done
14148 done
14149 IFS=$as_save_IFS
14150
14151 fi
14152 fi
14153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14154 if test -n "$ac_ct_STRIP"; then
14155   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14156 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14157 else
14158   { echo "$as_me:$LINENO: result: no" >&5
14159 echo "${ECHO_T}no" >&6; }
14160 fi
14161
14162   if test "x$ac_ct_STRIP" = x; then
14163     STRIP=":"
14164   else
14165     case $cross_compiling:$ac_tool_warned in
14166 yes:)
14167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14168 whose name does not start with the host triplet.  If you think this
14169 configuration is useful to you, please write to autoconf@gnu.org." >&5
14170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14171 whose name does not start with the host triplet.  If you think this
14172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14173 ac_tool_warned=yes ;;
14174 esac
14175     STRIP=$ac_ct_STRIP
14176   fi
14177 else
14178   STRIP="$ac_cv_prog_STRIP"
14179 fi
14180
14181
14182 old_CC="$CC"
14183 old_CFLAGS="$CFLAGS"
14184
14185 # Set sane defaults for various variables
14186 test -z "$AR" && AR=ar
14187 test -z "$AR_FLAGS" && AR_FLAGS=cru
14188 test -z "$AS" && AS=as
14189 test -z "$CC" && CC=cc
14190 test -z "$LTCC" && LTCC=$CC
14191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14192 test -z "$DLLTOOL" && DLLTOOL=dlltool
14193 test -z "$LD" && LD=ld
14194 test -z "$LN_S" && LN_S="ln -s"
14195 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14196 test -z "$NM" && NM=nm
14197 test -z "$SED" && SED=sed
14198 test -z "$OBJDUMP" && OBJDUMP=objdump
14199 test -z "$RANLIB" && RANLIB=:
14200 test -z "$STRIP" && STRIP=:
14201 test -z "$ac_objext" && ac_objext=o
14202
14203 # Determine commands to create old-style static archives.
14204 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14205 old_postinstall_cmds='chmod 644 $oldlib'
14206 old_postuninstall_cmds=
14207
14208 if test -n "$RANLIB"; then
14209   case $host_os in
14210   openbsd*)
14211     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14212     ;;
14213   *)
14214     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14215     ;;
14216   esac
14217   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14218 fi
14219
14220 for cc_temp in $compiler""; do
14221   case $cc_temp in
14222     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14223     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14224     \-*) ;;
14225     *) break;;
14226   esac
14227 done
14228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14229
14230
14231 # Only perform the check for file, if the check method requires it
14232 case $deplibs_check_method in
14233 file_magic*)
14234   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14235     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14236 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   case $MAGIC_CMD in
14241 [\\/*] |  ?:[\\/]*)
14242   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14243   ;;
14244 *)
14245   lt_save_MAGIC_CMD="$MAGIC_CMD"
14246   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14247   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14248   for ac_dir in $ac_dummy; do
14249     IFS="$lt_save_ifs"
14250     test -z "$ac_dir" && ac_dir=.
14251     if test -f $ac_dir/${ac_tool_prefix}file; then
14252       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14253       if test -n "$file_magic_test_file"; then
14254         case $deplibs_check_method in
14255         "file_magic "*)
14256           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14257           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14258           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14259             $EGREP "$file_magic_regex" > /dev/null; then
14260             :
14261           else
14262             cat <<EOF 1>&2
14263
14264 *** Warning: the command libtool uses to detect shared libraries,
14265 *** $file_magic_cmd, produces output that libtool cannot recognize.
14266 *** The result is that libtool may fail to recognize shared libraries
14267 *** as such.  This will affect the creation of libtool libraries that
14268 *** depend on shared libraries, but programs linked with such libtool
14269 *** libraries will work regardless of this problem.  Nevertheless, you
14270 *** may want to report the problem to your system manager and/or to
14271 *** bug-libtool@gnu.org
14272
14273 EOF
14274           fi ;;
14275         esac
14276       fi
14277       break
14278     fi
14279   done
14280   IFS="$lt_save_ifs"
14281   MAGIC_CMD="$lt_save_MAGIC_CMD"
14282   ;;
14283 esac
14284 fi
14285
14286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14287 if test -n "$MAGIC_CMD"; then
14288   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14289 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14290 else
14291   { echo "$as_me:$LINENO: result: no" >&5
14292 echo "${ECHO_T}no" >&6; }
14293 fi
14294
14295 if test -z "$lt_cv_path_MAGIC_CMD"; then
14296   if test -n "$ac_tool_prefix"; then
14297     { echo "$as_me:$LINENO: checking for file" >&5
14298 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14299 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   case $MAGIC_CMD in
14303 [\\/*] |  ?:[\\/]*)
14304   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14305   ;;
14306 *)
14307   lt_save_MAGIC_CMD="$MAGIC_CMD"
14308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14309   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14310   for ac_dir in $ac_dummy; do
14311     IFS="$lt_save_ifs"
14312     test -z "$ac_dir" && ac_dir=.
14313     if test -f $ac_dir/file; then
14314       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14315       if test -n "$file_magic_test_file"; then
14316         case $deplibs_check_method in
14317         "file_magic "*)
14318           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14319           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14320           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14321             $EGREP "$file_magic_regex" > /dev/null; then
14322             :
14323           else
14324             cat <<EOF 1>&2
14325
14326 *** Warning: the command libtool uses to detect shared libraries,
14327 *** $file_magic_cmd, produces output that libtool cannot recognize.
14328 *** The result is that libtool may fail to recognize shared libraries
14329 *** as such.  This will affect the creation of libtool libraries that
14330 *** depend on shared libraries, but programs linked with such libtool
14331 *** libraries will work regardless of this problem.  Nevertheless, you
14332 *** may want to report the problem to your system manager and/or to
14333 *** bug-libtool@gnu.org
14334
14335 EOF
14336           fi ;;
14337         esac
14338       fi
14339       break
14340     fi
14341   done
14342   IFS="$lt_save_ifs"
14343   MAGIC_CMD="$lt_save_MAGIC_CMD"
14344   ;;
14345 esac
14346 fi
14347
14348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14349 if test -n "$MAGIC_CMD"; then
14350   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14351 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14352 else
14353   { echo "$as_me:$LINENO: result: no" >&5
14354 echo "${ECHO_T}no" >&6; }
14355 fi
14356
14357   else
14358     MAGIC_CMD=:
14359   fi
14360 fi
14361
14362   fi
14363   ;;
14364 esac
14365
14366 enable_dlopen=yes
14367 enable_win32_dll=no
14368
14369 # Check whether --enable-libtool-lock was given.
14370 if test "${enable_libtool_lock+set}" = set; then
14371   enableval=$enable_libtool_lock;
14372 fi
14373
14374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14375
14376
14377 # Check whether --with-pic was given.
14378 if test "${with_pic+set}" = set; then
14379   withval=$with_pic; pic_mode="$withval"
14380 else
14381   pic_mode=default
14382 fi
14383
14384 test -z "$pic_mode" && pic_mode=default
14385
14386 # Use C for the default configuration in the libtool script
14387 tagname=
14388 lt_save_CC="$CC"
14389 ac_ext=c
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394
14395
14396 # Source file extension for C test sources.
14397 ac_ext=c
14398
14399 # Object file extension for compiled C test sources.
14400 objext=o
14401 objext=$objext
14402
14403 # Code to be used in simple compile tests
14404 lt_simple_compile_test_code="int some_variable = 0;\n"
14405
14406 # Code to be used in simple link tests
14407 lt_simple_link_test_code='int main(){return(0);}\n'
14408
14409
14410 # If no C compiler was specified, use CC.
14411 LTCC=${LTCC-"$CC"}
14412
14413 # If no C compiler flags were specified, use CFLAGS.
14414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14415
14416 # Allow CC to be a program name with arguments.
14417 compiler=$CC
14418
14419
14420 # save warnings/boilerplate of simple test code
14421 ac_outfile=conftest.$ac_objext
14422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14424 _lt_compiler_boilerplate=`cat conftest.err`
14425 $rm conftest*
14426
14427 ac_outfile=conftest.$ac_objext
14428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14430 _lt_linker_boilerplate=`cat conftest.err`
14431 $rm conftest*
14432
14433
14434
14435 lt_prog_compiler_no_builtin_flag=
14436
14437 if test "$GCC" = yes; then
14438   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14439
14440
14441 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14442 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   lt_cv_prog_compiler_rtti_exceptions=no
14447   ac_outfile=conftest.$ac_objext
14448    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449    lt_compiler_flag="-fno-rtti -fno-exceptions"
14450    # Insert the option either (1) after the last *FLAGS variable, or
14451    # (2) before a word containing "conftest.", or (3) at the end.
14452    # Note that $ac_compile itself does not contain backslashes and begins
14453    # with a dollar sign (not a hyphen), so the echo should work correctly.
14454    # The option is referenced via a variable to avoid confusing sed.
14455    lt_compile=`echo "$ac_compile" | $SED \
14456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458    -e 's:$: $lt_compiler_flag:'`
14459    (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
14460    (eval "$lt_compile" 2>conftest.err)
14461    ac_status=$?
14462    cat conftest.err >&5
14463    echo "$as_me:14463: \$? = $ac_status" >&5
14464    if (exit $ac_status) && test -s "$ac_outfile"; then
14465      # The compiler can only warn and ignore the option if not recognized
14466      # So say no if there are warnings other than the usual output.
14467      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470        lt_cv_prog_compiler_rtti_exceptions=yes
14471      fi
14472    fi
14473    $rm conftest*
14474
14475 fi
14476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14477 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14478
14479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14480     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14481 else
14482     :
14483 fi
14484
14485 fi
14486
14487 lt_prog_compiler_wl=
14488 lt_prog_compiler_pic=
14489 lt_prog_compiler_static=
14490
14491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14493
14494   if test "$GCC" = yes; then
14495     lt_prog_compiler_wl='-Wl,'
14496     lt_prog_compiler_static='-static'
14497
14498     case $host_os in
14499       aix*)
14500       # All AIX code is PIC.
14501       if test "$host_cpu" = ia64; then
14502         # AIX 5 now supports IA64 processor
14503         lt_prog_compiler_static='-Bstatic'
14504       fi
14505       ;;
14506
14507     amigaos*)
14508       # FIXME: we need at least 68020 code to build shared libraries, but
14509       # adding the `-m68020' flag to GCC prevents building anything better,
14510       # like `-m68040'.
14511       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14512       ;;
14513
14514     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14515       # PIC is the default for these OSes.
14516       ;;
14517
14518     mingw* | pw32* | os2*)
14519       # This hack is so that the source file can tell whether it is being
14520       # built for inclusion in a dll (and should export symbols for example).
14521       lt_prog_compiler_pic='-DDLL_EXPORT'
14522       ;;
14523
14524     darwin* | rhapsody*)
14525       # PIC is the default on this platform
14526       # Common symbols not allowed in MH_DYLIB files
14527       lt_prog_compiler_pic='-fno-common'
14528       ;;
14529
14530     interix3*)
14531       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14532       # Instead, we relocate shared libraries at runtime.
14533       ;;
14534
14535     msdosdjgpp*)
14536       # Just because we use GCC doesn't mean we suddenly get shared libraries
14537       # on systems that don't support them.
14538       lt_prog_compiler_can_build_shared=no
14539       enable_shared=no
14540       ;;
14541
14542     sysv4*MP*)
14543       if test -d /usr/nec; then
14544         lt_prog_compiler_pic=-Kconform_pic
14545       fi
14546       ;;
14547
14548     hpux*)
14549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14550       # not for PA HP-UX.
14551       case $host_cpu in
14552       hppa*64*|ia64*)
14553         # +Z the default
14554         ;;
14555       *)
14556         lt_prog_compiler_pic='-fPIC'
14557         ;;
14558       esac
14559       ;;
14560
14561     *)
14562       lt_prog_compiler_pic='-fPIC'
14563       ;;
14564     esac
14565   else
14566     # PORTME Check for flag to pass linker flags through the system compiler.
14567     case $host_os in
14568     aix*)
14569       lt_prog_compiler_wl='-Wl,'
14570       if test "$host_cpu" = ia64; then
14571         # AIX 5 now supports IA64 processor
14572         lt_prog_compiler_static='-Bstatic'
14573       else
14574         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14575       fi
14576       ;;
14577       darwin*)
14578         # PIC is the default on this platform
14579         # Common symbols not allowed in MH_DYLIB files
14580        case $cc_basename in
14581          xlc*)
14582          lt_prog_compiler_pic='-qnocommon'
14583          lt_prog_compiler_wl='-Wl,'
14584          ;;
14585        esac
14586        ;;
14587
14588     mingw* | pw32* | os2*)
14589       # This hack is so that the source file can tell whether it is being
14590       # built for inclusion in a dll (and should export symbols for example).
14591       lt_prog_compiler_pic='-DDLL_EXPORT'
14592       ;;
14593
14594     hpux9* | hpux10* | hpux11*)
14595       lt_prog_compiler_wl='-Wl,'
14596       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597       # not for PA HP-UX.
14598       case $host_cpu in
14599       hppa*64*|ia64*)
14600         # +Z the default
14601         ;;
14602       *)
14603         lt_prog_compiler_pic='+Z'
14604         ;;
14605       esac
14606       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14607       lt_prog_compiler_static='${wl}-a ${wl}archive'
14608       ;;
14609
14610     irix5* | irix6* | nonstopux*)
14611       lt_prog_compiler_wl='-Wl,'
14612       # PIC (with -KPIC) is the default.
14613       lt_prog_compiler_static='-non_shared'
14614       ;;
14615
14616     newsos6)
14617       lt_prog_compiler_pic='-KPIC'
14618       lt_prog_compiler_static='-Bstatic'
14619       ;;
14620
14621     linux*)
14622       case $cc_basename in
14623       icc* | ecc*)
14624         lt_prog_compiler_wl='-Wl,'
14625         lt_prog_compiler_pic='-KPIC'
14626         lt_prog_compiler_static='-static'
14627         ;;
14628       pgcc* | pgf77* | pgf90* | pgf95*)
14629         # Portland Group compilers (*not* the Pentium gcc compiler,
14630         # which looks to be a dead project)
14631         lt_prog_compiler_wl='-Wl,'
14632         lt_prog_compiler_pic='-fpic'
14633         lt_prog_compiler_static='-Bstatic'
14634         ;;
14635       ccc*)
14636         lt_prog_compiler_wl='-Wl,'
14637         # All Alpha code is PIC.
14638         lt_prog_compiler_static='-non_shared'
14639         ;;
14640       esac
14641       ;;
14642
14643     osf3* | osf4* | osf5*)
14644       lt_prog_compiler_wl='-Wl,'
14645       # All OSF/1 code is PIC.
14646       lt_prog_compiler_static='-non_shared'
14647       ;;
14648
14649     solaris*)
14650       lt_prog_compiler_pic='-KPIC'
14651       lt_prog_compiler_static='-Bstatic'
14652       case $cc_basename in
14653       f77* | f90* | f95*)
14654         lt_prog_compiler_wl='-Qoption ld ';;
14655       *)
14656         lt_prog_compiler_wl='-Wl,';;
14657       esac
14658       ;;
14659
14660     sunos4*)
14661       lt_prog_compiler_wl='-Qoption ld '
14662       lt_prog_compiler_pic='-PIC'
14663       lt_prog_compiler_static='-Bstatic'
14664       ;;
14665
14666     sysv4 | sysv4.2uw2* | sysv4.3*)
14667       lt_prog_compiler_wl='-Wl,'
14668       lt_prog_compiler_pic='-KPIC'
14669       lt_prog_compiler_static='-Bstatic'
14670       ;;
14671
14672     sysv4*MP*)
14673       if test -d /usr/nec ;then
14674         lt_prog_compiler_pic='-Kconform_pic'
14675         lt_prog_compiler_static='-Bstatic'
14676       fi
14677       ;;
14678
14679     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14680       lt_prog_compiler_wl='-Wl,'
14681       lt_prog_compiler_pic='-KPIC'
14682       lt_prog_compiler_static='-Bstatic'
14683       ;;
14684
14685     unicos*)
14686       lt_prog_compiler_wl='-Wl,'
14687       lt_prog_compiler_can_build_shared=no
14688       ;;
14689
14690     uts4*)
14691       lt_prog_compiler_pic='-pic'
14692       lt_prog_compiler_static='-Bstatic'
14693       ;;
14694
14695     *)
14696       lt_prog_compiler_can_build_shared=no
14697       ;;
14698     esac
14699   fi
14700
14701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14703
14704 #
14705 # Check to make sure the PIC flag actually works.
14706 #
14707 if test -n "$lt_prog_compiler_pic"; then
14708
14709 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14711 if test "${lt_prog_compiler_pic_works+set}" = set; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   lt_prog_compiler_pic_works=no
14715   ac_outfile=conftest.$ac_objext
14716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14718    # Insert the option either (1) after the last *FLAGS variable, or
14719    # (2) before a word containing "conftest.", or (3) at the end.
14720    # Note that $ac_compile itself does not contain backslashes and begins
14721    # with a dollar sign (not a hyphen), so the echo should work correctly.
14722    # The option is referenced via a variable to avoid confusing sed.
14723    lt_compile=`echo "$ac_compile" | $SED \
14724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726    -e 's:$: $lt_compiler_flag:'`
14727    (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
14728    (eval "$lt_compile" 2>conftest.err)
14729    ac_status=$?
14730    cat conftest.err >&5
14731    echo "$as_me:14731: \$? = $ac_status" >&5
14732    if (exit $ac_status) && test -s "$ac_outfile"; then
14733      # The compiler can only warn and ignore the option if not recognized
14734      # So say no if there are warnings other than the usual output.
14735      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738        lt_prog_compiler_pic_works=yes
14739      fi
14740    fi
14741    $rm conftest*
14742
14743 fi
14744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14746
14747 if test x"$lt_prog_compiler_pic_works" = xyes; then
14748     case $lt_prog_compiler_pic in
14749      "" | " "*) ;;
14750      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14751      esac
14752 else
14753     lt_prog_compiler_pic=
14754      lt_prog_compiler_can_build_shared=no
14755 fi
14756
14757 fi
14758 case $host_os in
14759   # For platforms which do not support PIC, -DPIC is meaningless:
14760   *djgpp*)
14761     lt_prog_compiler_pic=
14762     ;;
14763   *)
14764     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14765     ;;
14766 esac
14767
14768 #
14769 # Check to make sure the static flag actually works.
14770 #
14771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14774 if test "${lt_prog_compiler_static_works+set}" = set; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   lt_prog_compiler_static_works=no
14778    save_LDFLAGS="$LDFLAGS"
14779    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14780    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14781    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14782      # The linker can only warn and ignore the option if not recognized
14783      # So say no if there are warnings
14784      if test -s conftest.err; then
14785        # Append any errors to the config.log.
14786        cat conftest.err 1>&5
14787        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14788        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14789        if diff conftest.exp conftest.er2 >/dev/null; then
14790          lt_prog_compiler_static_works=yes
14791        fi
14792      else
14793        lt_prog_compiler_static_works=yes
14794      fi
14795    fi
14796    $rm conftest*
14797    LDFLAGS="$save_LDFLAGS"
14798
14799 fi
14800 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14801 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14802
14803 if test x"$lt_prog_compiler_static_works" = xyes; then
14804     :
14805 else
14806     lt_prog_compiler_static=
14807 fi
14808
14809
14810 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14812 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   lt_cv_prog_compiler_c_o=no
14816    $rm -r conftest 2>/dev/null
14817    mkdir conftest
14818    cd conftest
14819    mkdir out
14820    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14821
14822    lt_compiler_flag="-o out/conftest2.$ac_objext"
14823    # Insert the option either (1) after the last *FLAGS variable, or
14824    # (2) before a word containing "conftest.", or (3) at the end.
14825    # Note that $ac_compile itself does not contain backslashes and begins
14826    # with a dollar sign (not a hyphen), so the echo should work correctly.
14827    lt_compile=`echo "$ac_compile" | $SED \
14828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14830    -e 's:$: $lt_compiler_flag:'`
14831    (eval echo "\"\$as_me:14831: $lt_compile\"" >&5)
14832    (eval "$lt_compile" 2>out/conftest.err)
14833    ac_status=$?
14834    cat out/conftest.err >&5
14835    echo "$as_me:14835: \$? = $ac_status" >&5
14836    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14837    then
14838      # The compiler can only warn and ignore the option if not recognized
14839      # So say no if there are warnings
14840      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14841      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14842      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14843        lt_cv_prog_compiler_c_o=yes
14844      fi
14845    fi
14846    chmod u+w . 2>&5
14847    $rm conftest*
14848    # SGI C++ compiler will create directory out/ii_files/ for
14849    # template instantiation
14850    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14851    $rm out/* && rmdir out
14852    cd ..
14853    rmdir conftest
14854    $rm conftest*
14855
14856 fi
14857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14859
14860
14861 hard_links="nottested"
14862 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14863   # do not overwrite the value of need_locks provided by the user
14864   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14866   hard_links=yes
14867   $rm conftest*
14868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14869   touch conftest.a
14870   ln conftest.a conftest.b 2>&5 || hard_links=no
14871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14872   { echo "$as_me:$LINENO: result: $hard_links" >&5
14873 echo "${ECHO_T}$hard_links" >&6; }
14874   if test "$hard_links" = no; then
14875     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14877     need_locks=warn
14878   fi
14879 else
14880   need_locks=no
14881 fi
14882
14883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14885
14886   runpath_var=
14887   allow_undefined_flag=
14888   enable_shared_with_static_runtimes=no
14889   archive_cmds=
14890   archive_expsym_cmds=
14891   old_archive_From_new_cmds=
14892   old_archive_from_expsyms_cmds=
14893   export_dynamic_flag_spec=
14894   whole_archive_flag_spec=
14895   thread_safe_flag_spec=
14896   hardcode_libdir_flag_spec=
14897   hardcode_libdir_flag_spec_ld=
14898   hardcode_libdir_separator=
14899   hardcode_direct=no
14900   hardcode_minus_L=no
14901   hardcode_shlibpath_var=unsupported
14902   link_all_deplibs=unknown
14903   hardcode_automatic=no
14904   module_cmds=
14905   module_expsym_cmds=
14906   always_export_symbols=no
14907   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14908   # include_expsyms should be a list of space-separated symbols to be *always*
14909   # included in the symbol list
14910   include_expsyms=
14911   # exclude_expsyms can be an extended regexp of symbols to exclude
14912   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14913   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14914   # as well as any symbol that contains `d'.
14915   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14916   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14917   # platforms (ab)use it in PIC code, but their linkers get confused if
14918   # the symbol is explicitly referenced.  Since portable code cannot
14919   # rely on this symbol name, it's probably fine to never include it in
14920   # preloaded symbol tables.
14921   extract_expsyms_cmds=
14922   # Just being paranoid about ensuring that cc_basename is set.
14923   for cc_temp in $compiler""; do
14924   case $cc_temp in
14925     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14926     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14927     \-*) ;;
14928     *) break;;
14929   esac
14930 done
14931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14932
14933   case $host_os in
14934   cygwin* | mingw* | pw32*)
14935     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14936     # When not using gcc, we currently assume that we are using
14937     # Microsoft Visual C++.
14938     if test "$GCC" != yes; then
14939       with_gnu_ld=no
14940     fi
14941     ;;
14942   interix*)
14943     # we just hope/assume this is gcc and not c89 (= MSVC++)
14944     with_gnu_ld=yes
14945     ;;
14946   openbsd*)
14947     with_gnu_ld=no
14948     ;;
14949   esac
14950
14951   ld_shlibs=yes
14952   if test "$with_gnu_ld" = yes; then
14953     # If archive_cmds runs LD, not CC, wlarc should be empty
14954     wlarc='${wl}'
14955
14956     # Set some defaults for GNU ld with shared library support. These
14957     # are reset later if shared libraries are not supported. Putting them
14958     # here allows them to be overridden if necessary.
14959     runpath_var=LD_RUN_PATH
14960     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14961     export_dynamic_flag_spec='${wl}--export-dynamic'
14962     # ancient GNU ld didn't support --whole-archive et. al.
14963     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14964         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14965       else
14966         whole_archive_flag_spec=
14967     fi
14968     supports_anon_versioning=no
14969     case `$LD -v 2>/dev/null` in
14970       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14971       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14972       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14973       *\ 2.11.*) ;; # other 2.11 versions
14974       *) supports_anon_versioning=yes ;;
14975     esac
14976
14977     # See if GNU ld supports shared libraries.
14978     case $host_os in
14979     aix3* | aix4* | aix5*)
14980       # On AIX/PPC, the GNU linker is very broken
14981       if test "$host_cpu" != ia64; then
14982         ld_shlibs=no
14983         cat <<EOF 1>&2
14984
14985 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14986 *** to be unable to reliably create shared libraries on AIX.
14987 *** Therefore, libtool is disabling shared libraries support.  If you
14988 *** really care for shared libraries, you may want to modify your PATH
14989 *** so that a non-GNU linker is found, and then restart.
14990
14991 EOF
14992       fi
14993       ;;
14994
14995     amigaos*)
14996       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)'
14997       hardcode_libdir_flag_spec='-L$libdir'
14998       hardcode_minus_L=yes
14999
15000       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15001       # that the semantics of dynamic libraries on AmigaOS, at least up
15002       # to version 4, is to share data among multiple programs linked
15003       # with the same dynamic library.  Since this doesn't match the
15004       # behavior of shared libraries on other platforms, we can't use
15005       # them.
15006       ld_shlibs=no
15007       ;;
15008
15009     beos*)
15010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011         allow_undefined_flag=unsupported
15012         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15013         # support --undefined.  This deserves some investigation.  FIXME
15014         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015       else
15016         ld_shlibs=no
15017       fi
15018       ;;
15019
15020     cygwin* | mingw* | pw32*)
15021       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15022       # as there is no search path for DLLs.
15023       hardcode_libdir_flag_spec='-L$libdir'
15024       allow_undefined_flag=unsupported
15025       always_export_symbols=no
15026       enable_shared_with_static_runtimes=yes
15027       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15028
15029       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15030         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15031         # If the export-symbols file already is a .def file (1st line
15032         # is EXPORTS), use it as is; otherwise, prepend...
15033         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15034           cp $export_symbols $output_objdir/$soname.def;
15035         else
15036           echo EXPORTS > $output_objdir/$soname.def;
15037           cat $export_symbols >> $output_objdir/$soname.def;
15038         fi~
15039         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15040       else
15041         ld_shlibs=no
15042       fi
15043       ;;
15044
15045     interix3*)
15046       hardcode_direct=no
15047       hardcode_shlibpath_var=no
15048       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15049       export_dynamic_flag_spec='${wl}-E'
15050       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15051       # Instead, shared libraries are loaded at an image base (0x10000000 by
15052       # default) and relocated if they conflict, which is a slow very memory
15053       # consuming and fragmenting process.  To avoid this, we pick a random,
15054       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15055       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15056       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15057       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'
15058       ;;
15059
15060     linux*)
15061       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15062         tmp_addflag=
15063         case $cc_basename,$host_cpu in
15064         pgcc*)                          # Portland Group C compiler
15065           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'
15066           tmp_addflag=' $pic_flag'
15067           ;;
15068         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15069           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'
15070           tmp_addflag=' $pic_flag -Mnomain' ;;
15071         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15072           tmp_addflag=' -i_dynamic' ;;
15073         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15074           tmp_addflag=' -i_dynamic -nofor_main' ;;
15075         ifc* | ifort*)                  # Intel Fortran compiler
15076           tmp_addflag=' -nofor_main' ;;
15077         esac
15078         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15079
15080         if test $supports_anon_versioning = yes; then
15081           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15082   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15083   $echo "local: *; };" >> $output_objdir/$libname.ver~
15084           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15085         fi
15086       else
15087         ld_shlibs=no
15088       fi
15089       ;;
15090
15091     netbsd*)
15092       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15093         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15094         wlarc=
15095       else
15096         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098       fi
15099       ;;
15100
15101     solaris*)
15102       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15103         ld_shlibs=no
15104         cat <<EOF 1>&2
15105
15106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15107 *** create shared libraries on Solaris systems.  Therefore, libtool
15108 *** is disabling shared libraries support.  We urge you to upgrade GNU
15109 *** binutils to release 2.9.1 or newer.  Another option is to modify
15110 *** your PATH or compiler configuration so that the native linker is
15111 *** used, and then restart.
15112
15113 EOF
15114       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15117       else
15118         ld_shlibs=no
15119       fi
15120       ;;
15121
15122     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15123       case `$LD -v 2>&1` in
15124         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15125         ld_shlibs=no
15126         cat <<_LT_EOF 1>&2
15127
15128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15129 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15130 *** is disabling shared libraries support.  We urge you to upgrade GNU
15131 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15132 *** your PATH or compiler configuration so that the native linker is
15133 *** used, and then restart.
15134
15135 _LT_EOF
15136         ;;
15137         *)
15138           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15140             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15141             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15142           else
15143             ld_shlibs=no
15144           fi
15145         ;;
15146       esac
15147       ;;
15148
15149     sunos4*)
15150       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15151       wlarc=
15152       hardcode_direct=yes
15153       hardcode_shlibpath_var=no
15154       ;;
15155
15156     *)
15157       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15158         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15159         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15160       else
15161         ld_shlibs=no
15162       fi
15163       ;;
15164     esac
15165
15166     if test "$ld_shlibs" = no; then
15167       runpath_var=
15168       hardcode_libdir_flag_spec=
15169       export_dynamic_flag_spec=
15170       whole_archive_flag_spec=
15171     fi
15172   else
15173     # PORTME fill in a description of your system's linker (not GNU ld)
15174     case $host_os in
15175     aix3*)
15176       allow_undefined_flag=unsupported
15177       always_export_symbols=yes
15178       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'
15179       # Note: this linker hardcodes the directories in LIBPATH if there
15180       # are no directories specified by -L.
15181       hardcode_minus_L=yes
15182       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15183         # Neither direct hardcoding nor static linking is supported with a
15184         # broken collect2.
15185         hardcode_direct=unsupported
15186       fi
15187       ;;
15188
15189     aix4* | aix5*)
15190       if test "$host_cpu" = ia64; then
15191         # On IA64, the linker does run time linking by default, so we don't
15192         # have to do anything special.
15193         aix_use_runtimelinking=no
15194         exp_sym_flag='-Bexport'
15195         no_entry_flag=""
15196       else
15197         # If we're using GNU nm, then we don't want the "-C" option.
15198         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15199         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15200           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'
15201         else
15202           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'
15203         fi
15204         aix_use_runtimelinking=no
15205
15206         # Test if we are trying to use run time linking or normal
15207         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15208         # need to do runtime linking.
15209         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15210           for ld_flag in $LDFLAGS; do
15211           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15212             aix_use_runtimelinking=yes
15213             break
15214           fi
15215           done
15216           ;;
15217         esac
15218
15219         exp_sym_flag='-bexport'
15220         no_entry_flag='-bnoentry'
15221       fi
15222
15223       # When large executables or shared objects are built, AIX ld can
15224       # have problems creating the table of contents.  If linking a library
15225       # or program results in "error TOC overflow" add -mminimal-toc to
15226       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15227       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15228
15229       archive_cmds=''
15230       hardcode_direct=yes
15231       hardcode_libdir_separator=':'
15232       link_all_deplibs=yes
15233
15234       if test "$GCC" = yes; then
15235         case $host_os in aix4.[012]|aix4.[012].*)
15236         # We only want to do this on AIX 4.2 and lower, the check
15237         # below for broken collect2 doesn't work under 4.3+
15238           collect2name=`${CC} -print-prog-name=collect2`
15239           if test -f "$collect2name" && \
15240            strings "$collect2name" | grep resolve_lib_name >/dev/null
15241           then
15242           # We have reworked collect2
15243           hardcode_direct=yes
15244           else
15245           # We have old collect2
15246           hardcode_direct=unsupported
15247           # It fails to find uninstalled libraries when the uninstalled
15248           # path is not listed in the libpath.  Setting hardcode_minus_L
15249           # to unsupported forces relinking
15250           hardcode_minus_L=yes
15251           hardcode_libdir_flag_spec='-L$libdir'
15252           hardcode_libdir_separator=
15253           fi
15254           ;;
15255         esac
15256         shared_flag='-shared'
15257         if test "$aix_use_runtimelinking" = yes; then
15258           shared_flag="$shared_flag "'${wl}-G'
15259         fi
15260       else
15261         # not using gcc
15262         if test "$host_cpu" = ia64; then
15263         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15264         # chokes on -Wl,-G. The following line is correct:
15265           shared_flag='-G'
15266         else
15267           if test "$aix_use_runtimelinking" = yes; then
15268             shared_flag='${wl}-G'
15269           else
15270             shared_flag='${wl}-bM:SRE'
15271           fi
15272         fi
15273       fi
15274
15275       # It seems that -bexpall does not export symbols beginning with
15276       # underscore (_), so it is better to generate a list of symbols to export.
15277       always_export_symbols=yes
15278       if test "$aix_use_runtimelinking" = yes; then
15279         # Warning - without using the other runtime loading flags (-brtl),
15280         # -berok will link without error, but may produce a broken library.
15281         allow_undefined_flag='-berok'
15282        # Determine the default libpath from the value encoded in an empty executable.
15283        cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289
15290 int
15291 main ()
15292 {
15293
15294   ;
15295   return 0;
15296 }
15297 _ACEOF
15298 rm -f conftest.$ac_objext conftest$ac_exeext
15299 if { (ac_try="$ac_link"
15300 case "(($ac_try" in
15301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302   *) ac_try_echo=$ac_try;;
15303 esac
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305   (eval "$ac_link") 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } &&
15312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15313   { (case "(($ac_try" in
15314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315   *) ac_try_echo=$ac_try;;
15316 esac
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318   (eval "$ac_try") 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; } &&
15322          { ac_try='test -s conftest$ac_exeext'
15323   { (case "(($ac_try" in
15324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325   *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328   (eval "$ac_try") 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; }; then
15332
15333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15334 }'`
15335 # Check for a 64-bit object if we didn't find anything.
15336 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; }
15337 }'`; fi
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342
15343 fi
15344
15345 rm -f core conftest.err conftest.$ac_objext \
15346       conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15348
15349        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15350         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"
15351        else
15352         if test "$host_cpu" = ia64; then
15353           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15354           allow_undefined_flag="-z nodefs"
15355           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"
15356         else
15357          # Determine the default libpath from the value encoded in an empty executable.
15358          cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364
15365 int
15366 main ()
15367 {
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (ac_try="$ac_link"
15375 case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_link") 2>conftest.er1
15381   ac_status=$?
15382   grep -v '^ *+' conftest.er1 >conftest.err
15383   rm -f conftest.er1
15384   cat conftest.err >&5
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); } &&
15387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388   { (case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393   (eval "$ac_try") 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; } &&
15397          { ac_try='test -s conftest$ac_exeext'
15398   { (case "(($ac_try" in
15399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400   *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403   (eval "$ac_try") 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407
15408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15409 }'`
15410 # Check for a 64-bit object if we didn't find anything.
15411 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; }
15412 }'`; fi
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417
15418 fi
15419
15420 rm -f core conftest.err conftest.$ac_objext \
15421       conftest$ac_exeext conftest.$ac_ext
15422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15423
15424          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15425           # Warning - without using the other run time loading flags,
15426           # -berok will link without error, but may produce a broken library.
15427           no_undefined_flag=' ${wl}-bernotok'
15428           allow_undefined_flag=' ${wl}-berok'
15429           # Exported symbols can be pulled into shared objects from archives
15430           whole_archive_flag_spec='$convenience'
15431           archive_cmds_need_lc=yes
15432           # This is similar to how AIX traditionally builds its shared libraries.
15433           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'
15434         fi
15435       fi
15436       ;;
15437
15438     amigaos*)
15439       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)'
15440       hardcode_libdir_flag_spec='-L$libdir'
15441       hardcode_minus_L=yes
15442       # see comment about different semantics on the GNU ld section
15443       ld_shlibs=no
15444       ;;
15445
15446     bsdi[45]*)
15447       export_dynamic_flag_spec=-rdynamic
15448       ;;
15449
15450     cygwin* | mingw* | pw32*)
15451       # When not using gcc, we currently assume that we are using
15452       # Microsoft Visual C++.
15453       # hardcode_libdir_flag_spec is actually meaningless, as there is
15454       # no search path for DLLs.
15455       hardcode_libdir_flag_spec=' '
15456       allow_undefined_flag=unsupported
15457       # Tell ltmain to make .lib files, not .a files.
15458       libext=lib
15459       # Tell ltmain to make .dll files, not .so files.
15460       shrext_cmds=".dll"
15461       # FIXME: Setting linknames here is a bad hack.
15462       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15463       # The linker will automatically build a .lib file if we build a DLL.
15464       old_archive_From_new_cmds='true'
15465       # FIXME: Should let the user specify the lib program.
15466       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15467       fix_srcfile_path='`cygpath -w "$srcfile"`'
15468       enable_shared_with_static_runtimes=yes
15469       ;;
15470
15471     darwin* | rhapsody*)
15472       case $host_os in
15473         rhapsody* | darwin1.[012])
15474          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15475          ;;
15476        *) # Darwin 1.3 on
15477          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15478            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15479          else
15480            case ${MACOSX_DEPLOYMENT_TARGET} in
15481              10.[012])
15482                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15483                ;;
15484              10.*)
15485                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15486                ;;
15487            esac
15488          fi
15489          ;;
15490       esac
15491       archive_cmds_need_lc=no
15492       hardcode_direct=no
15493       hardcode_automatic=yes
15494       hardcode_shlibpath_var=unsupported
15495       whole_archive_flag_spec=''
15496       link_all_deplibs=yes
15497     if test "$GCC" = yes ; then
15498         output_verbose_link_cmd='echo'
15499         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15500       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15501       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15502       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}'
15503       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}'
15504     else
15505       case $cc_basename in
15506         xlc*)
15507          output_verbose_link_cmd='echo'
15508          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15509          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15510           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15511          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}'
15512           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}'
15513           ;;
15514        *)
15515          ld_shlibs=no
15516           ;;
15517       esac
15518     fi
15519       ;;
15520
15521     dgux*)
15522       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523       hardcode_libdir_flag_spec='-L$libdir'
15524       hardcode_shlibpath_var=no
15525       ;;
15526
15527     freebsd1*)
15528       ld_shlibs=no
15529       ;;
15530
15531     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15532     # support.  Future versions do this automatically, but an explicit c++rt0.o
15533     # does not break anything, and helps significantly (at the cost of a little
15534     # extra space).
15535     freebsd2.2*)
15536       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15537       hardcode_libdir_flag_spec='-R$libdir'
15538       hardcode_direct=yes
15539       hardcode_shlibpath_var=no
15540       ;;
15541
15542     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15543     freebsd2*)
15544       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15545       hardcode_direct=yes
15546       hardcode_minus_L=yes
15547       hardcode_shlibpath_var=no
15548       ;;
15549
15550     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15551     freebsd* | kfreebsd*-gnu | dragonfly*)
15552       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15553       hardcode_libdir_flag_spec='-R$libdir'
15554       hardcode_direct=yes
15555       hardcode_shlibpath_var=no
15556       ;;
15557
15558     hpux9*)
15559       if test "$GCC" = yes; then
15560         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'
15561       else
15562         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'
15563       fi
15564       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15565       hardcode_libdir_separator=:
15566       hardcode_direct=yes
15567
15568       # hardcode_minus_L: Not really in the search PATH,
15569       # but as the default location of the library.
15570       hardcode_minus_L=yes
15571       export_dynamic_flag_spec='${wl}-E'
15572       ;;
15573
15574     hpux10*)
15575       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15576         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15577       else
15578         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15579       fi
15580       if test "$with_gnu_ld" = no; then
15581         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15582         hardcode_libdir_separator=:
15583
15584         hardcode_direct=yes
15585         export_dynamic_flag_spec='${wl}-E'
15586
15587         # hardcode_minus_L: Not really in the search PATH,
15588         # but as the default location of the library.
15589         hardcode_minus_L=yes
15590       fi
15591       ;;
15592
15593     hpux11*)
15594       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15595         case $host_cpu in
15596         hppa*64*)
15597           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598           ;;
15599         ia64*)
15600           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15601           ;;
15602         *)
15603           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15604           ;;
15605         esac
15606       else
15607         case $host_cpu in
15608         hppa*64*)
15609           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610           ;;
15611         ia64*)
15612           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15613           ;;
15614         *)
15615           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15616           ;;
15617         esac
15618       fi
15619       if test "$with_gnu_ld" = no; then
15620         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621         hardcode_libdir_separator=:
15622
15623         case $host_cpu in
15624         hppa*64*|ia64*)
15625           hardcode_libdir_flag_spec_ld='+b $libdir'
15626           hardcode_direct=no
15627           hardcode_shlibpath_var=no
15628           ;;
15629         *)
15630           hardcode_direct=yes
15631           export_dynamic_flag_spec='${wl}-E'
15632
15633           # hardcode_minus_L: Not really in the search PATH,
15634           # but as the default location of the library.
15635           hardcode_minus_L=yes
15636           ;;
15637         esac
15638       fi
15639       ;;
15640
15641     irix5* | irix6* | nonstopux*)
15642       if test "$GCC" = yes; then
15643         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'
15644       else
15645         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'
15646         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15647       fi
15648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15649       hardcode_libdir_separator=:
15650       link_all_deplibs=yes
15651       ;;
15652
15653     netbsd*)
15654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15655         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15656       else
15657         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15658       fi
15659       hardcode_libdir_flag_spec='-R$libdir'
15660       hardcode_direct=yes
15661       hardcode_shlibpath_var=no
15662       ;;
15663
15664     newsos6)
15665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666       hardcode_direct=yes
15667       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15668       hardcode_libdir_separator=:
15669       hardcode_shlibpath_var=no
15670       ;;
15671
15672     openbsd*)
15673       hardcode_direct=yes
15674       hardcode_shlibpath_var=no
15675       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15676         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15677         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15678         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679         export_dynamic_flag_spec='${wl}-E'
15680       else
15681        case $host_os in
15682          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15683            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15684            hardcode_libdir_flag_spec='-R$libdir'
15685            ;;
15686          *)
15687            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15688            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15689            ;;
15690        esac
15691       fi
15692       ;;
15693
15694     os2*)
15695       hardcode_libdir_flag_spec='-L$libdir'
15696       hardcode_minus_L=yes
15697       allow_undefined_flag=unsupported
15698       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'
15699       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15700       ;;
15701
15702     osf3*)
15703       if test "$GCC" = yes; then
15704         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15705         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'
15706       else
15707         allow_undefined_flag=' -expect_unresolved \*'
15708         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'
15709       fi
15710       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15711       hardcode_libdir_separator=:
15712       ;;
15713
15714     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15715       if test "$GCC" = yes; then
15716         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15717         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'
15718         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15719       else
15720         allow_undefined_flag=' -expect_unresolved \*'
15721         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'
15722         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15723         $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'
15724
15725         # Both c and cxx compiler support -rpath directly
15726         hardcode_libdir_flag_spec='-rpath $libdir'
15727       fi
15728       hardcode_libdir_separator=:
15729       ;;
15730
15731     solaris*)
15732       no_undefined_flag=' -z text'
15733       if test "$GCC" = yes; then
15734         wlarc='${wl}'
15735         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15736         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15737           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15738       else
15739         wlarc=''
15740         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15742         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15743       fi
15744       hardcode_libdir_flag_spec='-R$libdir'
15745       hardcode_shlibpath_var=no
15746       case $host_os in
15747       solaris2.[0-5] | solaris2.[0-5].*) ;;
15748       *)
15749         # The compiler driver will combine linker options so we
15750         # cannot just pass the convience library names through
15751         # without $wl, iff we do not link with $LD.
15752         # Luckily, gcc supports the same syntax we need for Sun Studio.
15753         # Supported since Solaris 2.6 (maybe 2.5.1?)
15754         case $wlarc in
15755         '')
15756           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15757         *)
15758           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' ;;
15759         esac ;;
15760       esac
15761       link_all_deplibs=yes
15762       ;;
15763
15764     sunos4*)
15765       if test "x$host_vendor" = xsequent; then
15766         # Use $CC to link under sequent, because it throws in some extra .o
15767         # files that make .init and .fini sections work.
15768         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15769       else
15770         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15771       fi
15772       hardcode_libdir_flag_spec='-L$libdir'
15773       hardcode_direct=yes
15774       hardcode_minus_L=yes
15775       hardcode_shlibpath_var=no
15776       ;;
15777
15778     sysv4)
15779       case $host_vendor in
15780         sni)
15781           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782           hardcode_direct=yes # is this really true???
15783         ;;
15784         siemens)
15785           ## LD is ld it makes a PLAMLIB
15786           ## CC just makes a GrossModule.
15787           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15788           reload_cmds='$CC -r -o $output$reload_objs'
15789           hardcode_direct=no
15790         ;;
15791         motorola)
15792           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15794         ;;
15795       esac
15796       runpath_var='LD_RUN_PATH'
15797       hardcode_shlibpath_var=no
15798       ;;
15799
15800     sysv4.3*)
15801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802       hardcode_shlibpath_var=no
15803       export_dynamic_flag_spec='-Bexport'
15804       ;;
15805
15806     sysv4*MP*)
15807       if test -d /usr/nec; then
15808         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809         hardcode_shlibpath_var=no
15810         runpath_var=LD_RUN_PATH
15811         hardcode_runpath_var=yes
15812         ld_shlibs=yes
15813       fi
15814       ;;
15815
15816     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15817       no_undefined_flag='${wl}-z,text'
15818       archive_cmds_need_lc=no
15819       hardcode_shlibpath_var=no
15820       runpath_var='LD_RUN_PATH'
15821
15822       if test "$GCC" = yes; then
15823         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15824         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15825       else
15826         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15827         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15828       fi
15829       ;;
15830
15831     sysv5* | sco3.2v5* | sco5v6*)
15832       # Note: We can NOT use -z defs as we might desire, because we do not
15833       # link with -lc, and that would cause any symbols used from libc to
15834       # always be unresolved, which means just about no library would
15835       # ever link correctly.  If we're not using GNU ld we use -z text
15836       # though, which does catch some bad symbols but isn't as heavy-handed
15837       # as -z defs.
15838       no_undefined_flag='${wl}-z,text'
15839       allow_undefined_flag='${wl}-z,nodefs'
15840       archive_cmds_need_lc=no
15841       hardcode_shlibpath_var=no
15842       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15843       hardcode_libdir_separator=':'
15844       link_all_deplibs=yes
15845       export_dynamic_flag_spec='${wl}-Bexport'
15846       runpath_var='LD_RUN_PATH'
15847
15848       if test "$GCC" = yes; then
15849         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15850         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15851       else
15852         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15853         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15854       fi
15855       ;;
15856
15857     uts4*)
15858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859       hardcode_libdir_flag_spec='-L$libdir'
15860       hardcode_shlibpath_var=no
15861       ;;
15862
15863     *)
15864       ld_shlibs=no
15865       ;;
15866     esac
15867   fi
15868
15869 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15870 echo "${ECHO_T}$ld_shlibs" >&6; }
15871 test "$ld_shlibs" = no && can_build_shared=no
15872
15873 #
15874 # Do we need to explicitly link libc?
15875 #
15876 case "x$archive_cmds_need_lc" in
15877 x|xyes)
15878   # Assume -lc should be added
15879   archive_cmds_need_lc=yes
15880
15881   if test "$enable_shared" = yes && test "$GCC" = yes; then
15882     case $archive_cmds in
15883     *'~'*)
15884       # FIXME: we may have to deal with multi-command sequences.
15885       ;;
15886     '$CC '*)
15887       # Test whether the compiler implicitly links with -lc since on some
15888       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15889       # to ld, don't add -lc before -lgcc.
15890       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15891 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15892       $rm conftest*
15893       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15894
15895       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896   (eval $ac_compile) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); } 2>conftest.err; then
15900         soname=conftest
15901         lib=conftest
15902         libobjs=conftest.$ac_objext
15903         deplibs=
15904         wl=$lt_prog_compiler_wl
15905         pic_flag=$lt_prog_compiler_pic
15906         compiler_flags=-v
15907         linker_flags=-v
15908         verstring=
15909         output_objdir=.
15910         libname=conftest
15911         lt_save_allow_undefined_flag=$allow_undefined_flag
15912         allow_undefined_flag=
15913         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15914   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }
15918         then
15919           archive_cmds_need_lc=no
15920         else
15921           archive_cmds_need_lc=yes
15922         fi
15923         allow_undefined_flag=$lt_save_allow_undefined_flag
15924       else
15925         cat conftest.err 1>&5
15926       fi
15927       $rm conftest*
15928       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15929 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15930       ;;
15931     esac
15932   fi
15933   ;;
15934 esac
15935
15936 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15938 library_names_spec=
15939 libname_spec='lib$name'
15940 soname_spec=
15941 shrext_cmds=".so"
15942 postinstall_cmds=
15943 postuninstall_cmds=
15944 finish_cmds=
15945 finish_eval=
15946 shlibpath_var=
15947 shlibpath_overrides_runpath=unknown
15948 version_type=none
15949 dynamic_linker="$host_os ld.so"
15950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15951 if test "$GCC" = yes; then
15952   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15953   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15954     # if the path contains ";" then we assume it to be the separator
15955     # otherwise default to the standard path separator (i.e. ":") - it is
15956     # assumed that no part of a normal pathname contains ";" but that should
15957     # okay in the real world where ";" in dirpaths is itself problematic.
15958     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15959   else
15960     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15961   fi
15962 else
15963   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15964 fi
15965 need_lib_prefix=unknown
15966 hardcode_into_libs=no
15967
15968 # when you set need_version to no, make sure it does not cause -set_version
15969 # flags to be left without arguments
15970 need_version=unknown
15971
15972 case $host_os in
15973 aix3*)
15974   version_type=linux
15975   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15976   shlibpath_var=LIBPATH
15977
15978   # AIX 3 has no versioning support, so we append a major version to the name.
15979   soname_spec='${libname}${release}${shared_ext}$major'
15980   ;;
15981
15982 aix4* | aix5*)
15983   version_type=linux
15984   need_lib_prefix=no
15985   need_version=no
15986   hardcode_into_libs=yes
15987   if test "$host_cpu" = ia64; then
15988     # AIX 5 supports IA64
15989     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15990     shlibpath_var=LD_LIBRARY_PATH
15991   else
15992     # With GCC up to 2.95.x, collect2 would create an import file
15993     # for dependence libraries.  The import file would start with
15994     # the line `#! .'.  This would cause the generated library to
15995     # depend on `.', always an invalid library.  This was fixed in
15996     # development snapshots of GCC prior to 3.0.
15997     case $host_os in
15998       aix4 | aix4.[01] | aix4.[01].*)
15999       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16000            echo ' yes '
16001            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16002         :
16003       else
16004         can_build_shared=no
16005       fi
16006       ;;
16007     esac
16008     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16009     # soname into executable. Probably we can add versioning support to
16010     # collect2, so additional links can be useful in future.
16011     if test "$aix_use_runtimelinking" = yes; then
16012       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16013       # instead of lib<name>.a to let people know that these are not
16014       # typical AIX shared libraries.
16015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16016     else
16017       # We preserve .a as extension for shared libraries through AIX4.2
16018       # and later when we are not doing run time linking.
16019       library_names_spec='${libname}${release}.a $libname.a'
16020       soname_spec='${libname}${release}${shared_ext}$major'
16021     fi
16022     shlibpath_var=LIBPATH
16023   fi
16024   ;;
16025
16026 amigaos*)
16027   library_names_spec='$libname.ixlibrary $libname.a'
16028   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16029   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'
16030   ;;
16031
16032 beos*)
16033   library_names_spec='${libname}${shared_ext}'
16034   dynamic_linker="$host_os ld.so"
16035   shlibpath_var=LIBRARY_PATH
16036   ;;
16037
16038 bsdi[45]*)
16039   version_type=linux
16040   need_version=no
16041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042   soname_spec='${libname}${release}${shared_ext}$major'
16043   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16044   shlibpath_var=LD_LIBRARY_PATH
16045   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16046   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16047   # the default ld.so.conf also contains /usr/contrib/lib and
16048   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16049   # libtool to hard-code these into programs
16050   ;;
16051
16052 cygwin* | mingw* | pw32*)
16053   version_type=windows
16054   shrext_cmds=".dll"
16055   need_version=no
16056   need_lib_prefix=no
16057
16058   case $GCC,$host_os in
16059   yes,cygwin* | yes,mingw* | yes,pw32*)
16060     library_names_spec='$libname.dll.a'
16061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16062     postinstall_cmds='base_file=`basename \${file}`~
16063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16064       dldir=$destdir/`dirname \$dlpath`~
16065       test -d \$dldir || mkdir -p \$dldir~
16066       $install_prog $dir/$dlname \$dldir/$dlname~
16067       chmod a+x \$dldir/$dlname'
16068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16069       dlpath=$dir/\$dldll~
16070        $rm \$dlpath'
16071     shlibpath_overrides_runpath=yes
16072
16073     case $host_os in
16074     cygwin*)
16075       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16076       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16078       ;;
16079     mingw*)
16080       # MinGW DLLs use traditional 'lib' prefix
16081       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16082       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16083       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16084         # It is most probably a Windows format PATH printed by
16085         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16086         # path with ; separators, and with drive letters. We can handle the
16087         # drive letters (cygwin fileutils understands them), so leave them,
16088         # especially as we might pass files found there to a mingw objdump,
16089         # which wouldn't understand a cygwinified path. Ahh.
16090         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16091       else
16092         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16093       fi
16094       ;;
16095     pw32*)
16096       # pw32 DLLs use 'pw' prefix rather than 'lib'
16097       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098       ;;
16099     esac
16100     ;;
16101
16102   *)
16103     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16104     ;;
16105   esac
16106   dynamic_linker='Win32 ld.exe'
16107   # FIXME: first we should search . and the directory the executable is in
16108   shlibpath_var=PATH
16109   ;;
16110
16111 darwin* | rhapsody*)
16112   dynamic_linker="$host_os dyld"
16113   version_type=darwin
16114   need_lib_prefix=no
16115   need_version=no
16116   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16117   soname_spec='${libname}${release}${major}$shared_ext'
16118   shlibpath_overrides_runpath=yes
16119   shlibpath_var=DYLD_LIBRARY_PATH
16120   shrext_cmds='.dylib'
16121   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16122   if test "$GCC" = yes; then
16123     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"`
16124   else
16125     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16126   fi
16127   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16128   ;;
16129
16130 dgux*)
16131   version_type=linux
16132   need_lib_prefix=no
16133   need_version=no
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16135   soname_spec='${libname}${release}${shared_ext}$major'
16136   shlibpath_var=LD_LIBRARY_PATH
16137   ;;
16138
16139 freebsd1*)
16140   dynamic_linker=no
16141   ;;
16142
16143 kfreebsd*-gnu)
16144   version_type=linux
16145   need_lib_prefix=no
16146   need_version=no
16147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16148   soname_spec='${libname}${release}${shared_ext}$major'
16149   shlibpath_var=LD_LIBRARY_PATH
16150   shlibpath_overrides_runpath=no
16151   hardcode_into_libs=yes
16152   dynamic_linker='GNU ld.so'
16153   ;;
16154
16155 freebsd* | dragonfly*)
16156   # DragonFly does not have aout.  When/if they implement a new
16157   # versioning mechanism, adjust this.
16158   if test -x /usr/bin/objformat; then
16159     objformat=`/usr/bin/objformat`
16160   else
16161     case $host_os in
16162     freebsd[123]*) objformat=aout ;;
16163     *) objformat=elf ;;
16164     esac
16165   fi
16166   version_type=freebsd-$objformat
16167   case $version_type in
16168     freebsd-elf*)
16169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170       need_version=no
16171       need_lib_prefix=no
16172       ;;
16173     freebsd-*)
16174       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16175       need_version=yes
16176       ;;
16177   esac
16178   shlibpath_var=LD_LIBRARY_PATH
16179   case $host_os in
16180   freebsd2*)
16181     shlibpath_overrides_runpath=yes
16182     ;;
16183   freebsd3.[01]* | freebsdelf3.[01]*)
16184     shlibpath_overrides_runpath=yes
16185     hardcode_into_libs=yes
16186     ;;
16187   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16189     shlibpath_overrides_runpath=no
16190     hardcode_into_libs=yes
16191     ;;
16192   freebsd*) # from 4.6 on
16193     shlibpath_overrides_runpath=yes
16194     hardcode_into_libs=yes
16195     ;;
16196   esac
16197   ;;
16198
16199 gnu*)
16200   version_type=linux
16201   need_lib_prefix=no
16202   need_version=no
16203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   shlibpath_var=LD_LIBRARY_PATH
16206   hardcode_into_libs=yes
16207   ;;
16208
16209 hpux9* | hpux10* | hpux11*)
16210   # Give a soname corresponding to the major version so that dld.sl refuses to
16211   # link against other versions.
16212   version_type=sunos
16213   need_lib_prefix=no
16214   need_version=no
16215   case $host_cpu in
16216   ia64*)
16217     shrext_cmds='.so'
16218     hardcode_into_libs=yes
16219     dynamic_linker="$host_os dld.so"
16220     shlibpath_var=LD_LIBRARY_PATH
16221     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223     soname_spec='${libname}${release}${shared_ext}$major'
16224     if test "X$HPUX_IA64_MODE" = X32; then
16225       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16226     else
16227       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16228     fi
16229     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16230     ;;
16231    hppa*64*)
16232      shrext_cmds='.sl'
16233      hardcode_into_libs=yes
16234      dynamic_linker="$host_os dld.sl"
16235      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16240      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16241      ;;
16242    *)
16243     shrext_cmds='.sl'
16244     dynamic_linker="$host_os dld.sl"
16245     shlibpath_var=SHLIB_PATH
16246     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248     soname_spec='${libname}${release}${shared_ext}$major'
16249     ;;
16250   esac
16251   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16252   postinstall_cmds='chmod 555 $lib'
16253   ;;
16254
16255 interix3*)
16256   version_type=linux
16257   need_lib_prefix=no
16258   need_version=no
16259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16260   soname_spec='${libname}${release}${shared_ext}$major'
16261   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16262   shlibpath_var=LD_LIBRARY_PATH
16263   shlibpath_overrides_runpath=no
16264   hardcode_into_libs=yes
16265   ;;
16266
16267 irix5* | irix6* | nonstopux*)
16268   case $host_os in
16269     nonstopux*) version_type=nonstopux ;;
16270     *)
16271         if test "$lt_cv_prog_gnu_ld" = yes; then
16272                 version_type=linux
16273         else
16274                 version_type=irix
16275         fi ;;
16276   esac
16277   need_lib_prefix=no
16278   need_version=no
16279   soname_spec='${libname}${release}${shared_ext}$major'
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16281   case $host_os in
16282   irix5* | nonstopux*)
16283     libsuff= shlibsuff=
16284     ;;
16285   *)
16286     case $LD in # libtool.m4 will add one of these switches to LD
16287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16288       libsuff= shlibsuff= libmagic=32-bit;;
16289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16290       libsuff=32 shlibsuff=N32 libmagic=N32;;
16291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16293     *) libsuff= shlibsuff= libmagic=never-match;;
16294     esac
16295     ;;
16296   esac
16297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16298   shlibpath_overrides_runpath=no
16299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16301   hardcode_into_libs=yes
16302   ;;
16303
16304 # No shared lib support for Linux oldld, aout, or coff.
16305 linux*oldld* | linux*aout* | linux*coff*)
16306   dynamic_linker=no
16307   ;;
16308
16309 # This must be Linux ELF.
16310 linux*)
16311   version_type=linux
16312   need_lib_prefix=no
16313   need_version=no
16314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315   soname_spec='${libname}${release}${shared_ext}$major'
16316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16317   shlibpath_var=LD_LIBRARY_PATH
16318   shlibpath_overrides_runpath=no
16319   # This implies no fast_install, which is unacceptable.
16320   # Some rework will be needed to allow for fast_install
16321   # before this can be enabled.
16322   hardcode_into_libs=yes
16323
16324   # Append ld.so.conf contents to the search path
16325   if test -f /etc/ld.so.conf; then
16326     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' ' '`
16327     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16328   fi
16329
16330   # We used to test for /lib/ld.so.1 and disable shared libraries on
16331   # powerpc, because MkLinux only supported shared libraries with the
16332   # GNU dynamic linker.  Since this was broken with cross compilers,
16333   # most powerpc-linux boxes support dynamic linking these days and
16334   # people can always --disable-shared, the test was removed, and we
16335   # assume the GNU/Linux dynamic linker is in use.
16336   dynamic_linker='GNU/Linux ld.so'
16337   ;;
16338
16339 knetbsd*-gnu)
16340   version_type=linux
16341   need_lib_prefix=no
16342   need_version=no
16343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16344   soname_spec='${libname}${release}${shared_ext}$major'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   shlibpath_overrides_runpath=no
16347   hardcode_into_libs=yes
16348   dynamic_linker='GNU ld.so'
16349   ;;
16350
16351 netbsd*)
16352   version_type=sunos
16353   need_lib_prefix=no
16354   need_version=no
16355   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16358     dynamic_linker='NetBSD (a.out) ld.so'
16359   else
16360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16361     soname_spec='${libname}${release}${shared_ext}$major'
16362     dynamic_linker='NetBSD ld.elf_so'
16363   fi
16364   shlibpath_var=LD_LIBRARY_PATH
16365   shlibpath_overrides_runpath=yes
16366   hardcode_into_libs=yes
16367   ;;
16368
16369 newsos6)
16370   version_type=linux
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372   shlibpath_var=LD_LIBRARY_PATH
16373   shlibpath_overrides_runpath=yes
16374   ;;
16375
16376 nto-qnx*)
16377   version_type=linux
16378   need_lib_prefix=no
16379   need_version=no
16380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   shlibpath_var=LD_LIBRARY_PATH
16383   shlibpath_overrides_runpath=yes
16384   ;;
16385
16386 openbsd*)
16387   version_type=sunos
16388   sys_lib_dlsearch_path_spec="/usr/lib"
16389   need_lib_prefix=no
16390   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16391   case $host_os in
16392     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16393     *)                         need_version=no  ;;
16394   esac
16395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16399     case $host_os in
16400       openbsd2.[89] | openbsd2.[89].*)
16401         shlibpath_overrides_runpath=no
16402         ;;
16403       *)
16404         shlibpath_overrides_runpath=yes
16405         ;;
16406       esac
16407   else
16408     shlibpath_overrides_runpath=yes
16409   fi
16410   ;;
16411
16412 os2*)
16413   libname_spec='$name'
16414   shrext_cmds=".dll"
16415   need_lib_prefix=no
16416   library_names_spec='$libname${shared_ext} $libname.a'
16417   dynamic_linker='OS/2 ld.exe'
16418   shlibpath_var=LIBPATH
16419   ;;
16420
16421 osf3* | osf4* | osf5*)
16422   version_type=osf
16423   need_lib_prefix=no
16424   need_version=no
16425   soname_spec='${libname}${release}${shared_ext}$major'
16426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427   shlibpath_var=LD_LIBRARY_PATH
16428   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16429   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16430   ;;
16431
16432 solaris*)
16433   version_type=linux
16434   need_lib_prefix=no
16435   need_version=no
16436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437   soname_spec='${libname}${release}${shared_ext}$major'
16438   shlibpath_var=LD_LIBRARY_PATH
16439   shlibpath_overrides_runpath=yes
16440   hardcode_into_libs=yes
16441   # ldd complains unless libraries are executable
16442   postinstall_cmds='chmod +x $lib'
16443   ;;
16444
16445 sunos4*)
16446   version_type=sunos
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   shlibpath_overrides_runpath=yes
16451   if test "$with_gnu_ld" = yes; then
16452     need_lib_prefix=no
16453   fi
16454   need_version=yes
16455   ;;
16456
16457 sysv4 | sysv4.3*)
16458   version_type=linux
16459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460   soname_spec='${libname}${release}${shared_ext}$major'
16461   shlibpath_var=LD_LIBRARY_PATH
16462   case $host_vendor in
16463     sni)
16464       shlibpath_overrides_runpath=no
16465       need_lib_prefix=no
16466       export_dynamic_flag_spec='${wl}-Blargedynsym'
16467       runpath_var=LD_RUN_PATH
16468       ;;
16469     siemens)
16470       need_lib_prefix=no
16471       ;;
16472     motorola)
16473       need_lib_prefix=no
16474       need_version=no
16475       shlibpath_overrides_runpath=no
16476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16477       ;;
16478   esac
16479   ;;
16480
16481 sysv4*MP*)
16482   if test -d /usr/nec ;then
16483     version_type=linux
16484     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16485     soname_spec='$libname${shared_ext}.$major'
16486     shlibpath_var=LD_LIBRARY_PATH
16487   fi
16488   ;;
16489
16490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16491   version_type=freebsd-elf
16492   need_lib_prefix=no
16493   need_version=no
16494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16495   soname_spec='${libname}${release}${shared_ext}$major'
16496   shlibpath_var=LD_LIBRARY_PATH
16497   hardcode_into_libs=yes
16498   if test "$with_gnu_ld" = yes; then
16499     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16500     shlibpath_overrides_runpath=no
16501   else
16502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16503     shlibpath_overrides_runpath=yes
16504     case $host_os in
16505       sco3.2v5*)
16506         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16507         ;;
16508     esac
16509   fi
16510   sys_lib_dlsearch_path_spec='/usr/lib'
16511   ;;
16512
16513 uts4*)
16514   version_type=linux
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   ;;
16519
16520 *)
16521   dynamic_linker=no
16522   ;;
16523 esac
16524 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16525 echo "${ECHO_T}$dynamic_linker" >&6; }
16526 test "$dynamic_linker" = no && can_build_shared=no
16527
16528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16529 if test "$GCC" = yes; then
16530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16531 fi
16532
16533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16535 hardcode_action=
16536 if test -n "$hardcode_libdir_flag_spec" || \
16537    test -n "$runpath_var" || \
16538    test "X$hardcode_automatic" = "Xyes" ; then
16539
16540   # We can hardcode non-existant directories.
16541   if test "$hardcode_direct" != no &&
16542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16543      # have to relink, otherwise we might link with an installed library
16544      # when we should be linking with a yet-to-be-installed one
16545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16546      test "$hardcode_minus_L" != no; then
16547     # Linking always hardcodes the temporary library directory.
16548     hardcode_action=relink
16549   else
16550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16551     hardcode_action=immediate
16552   fi
16553 else
16554   # We cannot hardcode anything, or else we can only hardcode existing
16555   # directories.
16556   hardcode_action=unsupported
16557 fi
16558 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16559 echo "${ECHO_T}$hardcode_action" >&6; }
16560
16561 if test "$hardcode_action" = relink; then
16562   # Fast installation is not supported
16563   enable_fast_install=no
16564 elif test "$shlibpath_overrides_runpath" = yes ||
16565      test "$enable_shared" = no; then
16566   # Fast installation is not necessary
16567   enable_fast_install=needless
16568 fi
16569
16570 striplib=
16571 old_striplib=
16572 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16577   { echo "$as_me:$LINENO: result: yes" >&5
16578 echo "${ECHO_T}yes" >&6; }
16579 else
16580 # FIXME - insert some real tests, host_os isn't really good enough
16581   case $host_os in
16582    darwin*)
16583        if test -n "$STRIP" ; then
16584          striplib="$STRIP -x"
16585          { echo "$as_me:$LINENO: result: yes" >&5
16586 echo "${ECHO_T}yes" >&6; }
16587        else
16588   { echo "$as_me:$LINENO: result: no" >&5
16589 echo "${ECHO_T}no" >&6; }
16590 fi
16591        ;;
16592    *)
16593   { echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6; }
16595     ;;
16596   esac
16597 fi
16598
16599 if test "x$enable_dlopen" != xyes; then
16600   enable_dlopen=unknown
16601   enable_dlopen_self=unknown
16602   enable_dlopen_self_static=unknown
16603 else
16604   lt_cv_dlopen=no
16605   lt_cv_dlopen_libs=
16606
16607   case $host_os in
16608   beos*)
16609     lt_cv_dlopen="load_add_on"
16610     lt_cv_dlopen_libs=
16611     lt_cv_dlopen_self=yes
16612     ;;
16613
16614   mingw* | pw32*)
16615     lt_cv_dlopen="LoadLibrary"
16616     lt_cv_dlopen_libs=
16617    ;;
16618
16619   cygwin*)
16620     lt_cv_dlopen="dlopen"
16621     lt_cv_dlopen_libs=
16622    ;;
16623
16624   darwin*)
16625   # if libdl is installed we need to link against it
16626     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   ac_check_lib_save_LIBS=$LIBS
16632 LIBS="-ldl  $LIBS"
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h.  */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h.  */
16639
16640 /* Override any GCC internal prototype to avoid an error.
16641    Use char because int might match the return type of a GCC
16642    builtin and then its argument prototype would still apply.  */
16643 #ifdef __cplusplus
16644 extern "C"
16645 #endif
16646 char dlopen ();
16647 int
16648 main ()
16649 {
16650 return dlopen ();
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (ac_try="$ac_link"
16657 case "(($ac_try" in
16658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659   *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662   (eval "$ac_link") 2>conftest.er1
16663   ac_status=$?
16664   grep -v '^ *+' conftest.er1 >conftest.err
16665   rm -f conftest.er1
16666   cat conftest.err >&5
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); } &&
16669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16670   { (case "(($ac_try" in
16671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672   *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675   (eval "$ac_try") 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; } &&
16679          { ac_try='test -s conftest$ac_exeext'
16680   { (case "(($ac_try" in
16681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682   *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685   (eval "$ac_try") 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; }; then
16689   ac_cv_lib_dl_dlopen=yes
16690 else
16691   echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694         ac_cv_lib_dl_dlopen=no
16695 fi
16696
16697 rm -f core conftest.err conftest.$ac_objext \
16698       conftest$ac_exeext conftest.$ac_ext
16699 LIBS=$ac_check_lib_save_LIBS
16700 fi
16701 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16703 if test $ac_cv_lib_dl_dlopen = yes; then
16704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16705 else
16706
16707     lt_cv_dlopen="dyld"
16708     lt_cv_dlopen_libs=
16709     lt_cv_dlopen_self=yes
16710
16711 fi
16712
16713    ;;
16714
16715   *)
16716     { echo "$as_me:$LINENO: checking for shl_load" >&5
16717 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16718 if test "${ac_cv_func_shl_load+set}" = set; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16729 #define shl_load innocuous_shl_load
16730
16731 /* System header to define __stub macros and hopefully few prototypes,
16732     which can conflict with char shl_load (); below.
16733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734     <limits.h> exists even on freestanding compilers.  */
16735
16736 #ifdef __STDC__
16737 # include <limits.h>
16738 #else
16739 # include <assert.h>
16740 #endif
16741
16742 #undef shl_load
16743
16744 /* Override any GCC internal prototype to avoid an error.
16745    Use char because int might match the return type of a GCC
16746    builtin and then its argument prototype would still apply.  */
16747 #ifdef __cplusplus
16748 extern "C"
16749 #endif
16750 char shl_load ();
16751 /* The GNU C library defines this for functions which it implements
16752     to always fail with ENOSYS.  Some functions are actually named
16753     something starting with __ and the normal name is an alias.  */
16754 #if defined __stub_shl_load || defined __stub___shl_load
16755 choke me
16756 #endif
16757
16758 int
16759 main ()
16760 {
16761 return shl_load ();
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (ac_try="$ac_link"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_link") 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } &&
16780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781   { (case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_try") 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); }; } &&
16790          { ac_try='test -s conftest$ac_exeext'
16791   { (case "(($ac_try" in
16792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793   *) ac_try_echo=$ac_try;;
16794 esac
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796   (eval "$ac_try") 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); }; }; then
16800   ac_cv_func_shl_load=yes
16801 else
16802   echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805         ac_cv_func_shl_load=no
16806 fi
16807
16808 rm -f core conftest.err conftest.$ac_objext \
16809       conftest$ac_exeext conftest.$ac_ext
16810 fi
16811 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16813 if test $ac_cv_func_shl_load = yes; then
16814   lt_cv_dlopen="shl_load"
16815 else
16816   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821   ac_check_lib_save_LIBS=$LIBS
16822 LIBS="-ldld  $LIBS"
16823 cat >conftest.$ac_ext <<_ACEOF
16824 /* confdefs.h.  */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h.  */
16829
16830 /* Override any GCC internal prototype to avoid an error.
16831    Use char because int might match the return type of a GCC
16832    builtin and then its argument prototype would still apply.  */
16833 #ifdef __cplusplus
16834 extern "C"
16835 #endif
16836 char shl_load ();
16837 int
16838 main ()
16839 {
16840 return shl_load ();
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (ac_try="$ac_link"
16847 case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852   (eval "$ac_link") 2>conftest.er1
16853   ac_status=$?
16854   grep -v '^ *+' conftest.er1 >conftest.err
16855   rm -f conftest.er1
16856   cat conftest.err >&5
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } &&
16859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860   { (case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_try") 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); }; } &&
16869          { ac_try='test -s conftest$ac_exeext'
16870   { (case "(($ac_try" in
16871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872   *) ac_try_echo=$ac_try;;
16873 esac
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875   (eval "$ac_try") 2>&5
16876   ac_status=$?
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); }; }; then
16879   ac_cv_lib_dld_shl_load=yes
16880 else
16881   echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884         ac_cv_lib_dld_shl_load=no
16885 fi
16886
16887 rm -f core conftest.err conftest.$ac_objext \
16888       conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16890 fi
16891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16892 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16893 if test $ac_cv_lib_dld_shl_load = yes; then
16894   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16895 else
16896   { echo "$as_me:$LINENO: checking for dlopen" >&5
16897 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16898 if test "${ac_cv_func_dlopen+set}" = set; then
16899   echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901   cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16909 #define dlopen innocuous_dlopen
16910
16911 /* System header to define __stub macros and hopefully few prototypes,
16912     which can conflict with char dlopen (); below.
16913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16914     <limits.h> exists even on freestanding compilers.  */
16915
16916 #ifdef __STDC__
16917 # include <limits.h>
16918 #else
16919 # include <assert.h>
16920 #endif
16921
16922 #undef dlopen
16923
16924 /* Override any GCC internal prototype to avoid an error.
16925    Use char because int might match the return type of a GCC
16926    builtin and then its argument prototype would still apply.  */
16927 #ifdef __cplusplus
16928 extern "C"
16929 #endif
16930 char dlopen ();
16931 /* The GNU C library defines this for functions which it implements
16932     to always fail with ENOSYS.  Some functions are actually named
16933     something starting with __ and the normal name is an alias.  */
16934 #if defined __stub_dlopen || defined __stub___dlopen
16935 choke me
16936 #endif
16937
16938 int
16939 main ()
16940 {
16941 return dlopen ();
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (ac_try="$ac_link"
16948 case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_link") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } &&
16960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961   { (case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_try") 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; } &&
16970          { ac_try='test -s conftest$ac_exeext'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; }; then
16980   ac_cv_func_dlopen=yes
16981 else
16982   echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985         ac_cv_func_dlopen=no
16986 fi
16987
16988 rm -f core conftest.err conftest.$ac_objext \
16989       conftest$ac_exeext conftest.$ac_ext
16990 fi
16991 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16992 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16993 if test $ac_cv_func_dlopen = yes; then
16994   lt_cv_dlopen="dlopen"
16995 else
16996   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16999   echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001   ac_check_lib_save_LIBS=$LIBS
17002 LIBS="-ldl  $LIBS"
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009
17010 /* Override any GCC internal prototype to avoid an error.
17011    Use char because int might match the return type of a GCC
17012    builtin and then its argument prototype would still apply.  */
17013 #ifdef __cplusplus
17014 extern "C"
17015 #endif
17016 char dlopen ();
17017 int
17018 main ()
17019 {
17020 return dlopen ();
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_link") 2>conftest.er1
17033   ac_status=$?
17034   grep -v '^ *+' conftest.er1 >conftest.err
17035   rm -f conftest.er1
17036   cat conftest.err >&5
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } &&
17039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040   { (case "(($ac_try" in
17041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042   *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045   (eval "$ac_try") 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; } &&
17049          { ac_try='test -s conftest$ac_exeext'
17050   { (case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055   (eval "$ac_try") 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; }; then
17059   ac_cv_lib_dl_dlopen=yes
17060 else
17061   echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17063
17064         ac_cv_lib_dl_dlopen=no
17065 fi
17066
17067 rm -f core conftest.err conftest.$ac_objext \
17068       conftest$ac_exeext conftest.$ac_ext
17069 LIBS=$ac_check_lib_save_LIBS
17070 fi
17071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17072 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17073 if test $ac_cv_lib_dl_dlopen = yes; then
17074   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17075 else
17076   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17077 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17078 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17079   echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081   ac_check_lib_save_LIBS=$LIBS
17082 LIBS="-lsvld  $LIBS"
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h.  */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h.  */
17089
17090 /* Override any GCC internal prototype to avoid an error.
17091    Use char because int might match the return type of a GCC
17092    builtin and then its argument prototype would still apply.  */
17093 #ifdef __cplusplus
17094 extern "C"
17095 #endif
17096 char dlopen ();
17097 int
17098 main ()
17099 {
17100 return dlopen ();
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_link") 2>conftest.er1
17113   ac_status=$?
17114   grep -v '^ *+' conftest.er1 >conftest.err
17115   rm -f conftest.er1
17116   cat conftest.err >&5
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } &&
17119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120   { (case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_try") 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; } &&
17129          { ac_try='test -s conftest$ac_exeext'
17130   { (case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135   (eval "$ac_try") 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; }; then
17139   ac_cv_lib_svld_dlopen=yes
17140 else
17141   echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144         ac_cv_lib_svld_dlopen=no
17145 fi
17146
17147 rm -f core conftest.err conftest.$ac_objext \
17148       conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17150 fi
17151 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17152 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17153 if test $ac_cv_lib_svld_dlopen = yes; then
17154   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17155 else
17156   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17157 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17159   echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161   ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-ldld  $LIBS"
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169
17170 /* Override any GCC internal prototype to avoid an error.
17171    Use char because int might match the return type of a GCC
17172    builtin and then its argument prototype would still apply.  */
17173 #ifdef __cplusplus
17174 extern "C"
17175 #endif
17176 char dld_link ();
17177 int
17178 main ()
17179 {
17180 return dld_link ();
17181   ;
17182   return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (ac_try="$ac_link"
17187 case "(($ac_try" in
17188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189   *) ac_try_echo=$ac_try;;
17190 esac
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192   (eval "$ac_link") 2>conftest.er1
17193   ac_status=$?
17194   grep -v '^ *+' conftest.er1 >conftest.err
17195   rm -f conftest.er1
17196   cat conftest.err >&5
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); } &&
17199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17200   { (case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_try") 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; } &&
17209          { ac_try='test -s conftest$ac_exeext'
17210   { (case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_try") 2>&5
17216   ac_status=$?
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); }; }; then
17219   ac_cv_lib_dld_dld_link=yes
17220 else
17221   echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224         ac_cv_lib_dld_dld_link=no
17225 fi
17226
17227 rm -f core conftest.err conftest.$ac_objext \
17228       conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17230 fi
17231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17233 if test $ac_cv_lib_dld_dld_link = yes; then
17234   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17235 fi
17236
17237
17238 fi
17239
17240
17241 fi
17242
17243
17244 fi
17245
17246
17247 fi
17248
17249
17250 fi
17251
17252     ;;
17253   esac
17254
17255   if test "x$lt_cv_dlopen" != xno; then
17256     enable_dlopen=yes
17257   else
17258     enable_dlopen=no
17259   fi
17260
17261   case $lt_cv_dlopen in
17262   dlopen)
17263     save_CPPFLAGS="$CPPFLAGS"
17264     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17265
17266     save_LDFLAGS="$LDFLAGS"
17267     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17268
17269     save_LIBS="$LIBS"
17270     LIBS="$lt_cv_dlopen_libs $LIBS"
17271
17272     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17273 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17274 if test "${lt_cv_dlopen_self+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277           if test "$cross_compiling" = yes; then :
17278   lt_cv_dlopen_self=cross
17279 else
17280   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17281   lt_status=$lt_dlunknown
17282   cat > conftest.$ac_ext <<EOF
17283 #line 17283 "configure"
17284 #include "confdefs.h"
17285
17286 #if HAVE_DLFCN_H
17287 #include <dlfcn.h>
17288 #endif
17289
17290 #include <stdio.h>
17291
17292 #ifdef RTLD_GLOBAL
17293 #  define LT_DLGLOBAL           RTLD_GLOBAL
17294 #else
17295 #  ifdef DL_GLOBAL
17296 #    define LT_DLGLOBAL         DL_GLOBAL
17297 #  else
17298 #    define LT_DLGLOBAL         0
17299 #  endif
17300 #endif
17301
17302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17303    find out it does not work in some platform. */
17304 #ifndef LT_DLLAZY_OR_NOW
17305 #  ifdef RTLD_LAZY
17306 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17307 #  else
17308 #    ifdef DL_LAZY
17309 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17310 #    else
17311 #      ifdef RTLD_NOW
17312 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17313 #      else
17314 #        ifdef DL_NOW
17315 #          define LT_DLLAZY_OR_NOW      DL_NOW
17316 #        else
17317 #          define LT_DLLAZY_OR_NOW      0
17318 #        endif
17319 #      endif
17320 #    endif
17321 #  endif
17322 #endif
17323
17324 #ifdef __cplusplus
17325 extern "C" void exit (int);
17326 #endif
17327
17328 void fnord() { int i=42;}
17329 int main ()
17330 {
17331   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17332   int status = $lt_dlunknown;
17333
17334   if (self)
17335     {
17336       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17337       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17338       /* dlclose (self); */
17339     }
17340   else
17341     puts (dlerror ());
17342
17343     exit (status);
17344 }
17345 EOF
17346   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347   (eval $ac_link) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17351     (./conftest; exit; ) >&5 2>/dev/null
17352     lt_status=$?
17353     case x$lt_status in
17354       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17355       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17356       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17357     esac
17358   else :
17359     # compilation failed
17360     lt_cv_dlopen_self=no
17361   fi
17362 fi
17363 rm -fr conftest*
17364
17365
17366 fi
17367 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17368 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17369
17370     if test "x$lt_cv_dlopen_self" = xyes; then
17371       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17372       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17373 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17374 if test "${lt_cv_dlopen_self_static+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377           if test "$cross_compiling" = yes; then :
17378   lt_cv_dlopen_self_static=cross
17379 else
17380   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17381   lt_status=$lt_dlunknown
17382   cat > conftest.$ac_ext <<EOF
17383 #line 17383 "configure"
17384 #include "confdefs.h"
17385
17386 #if HAVE_DLFCN_H
17387 #include <dlfcn.h>
17388 #endif
17389
17390 #include <stdio.h>
17391
17392 #ifdef RTLD_GLOBAL
17393 #  define LT_DLGLOBAL           RTLD_GLOBAL
17394 #else
17395 #  ifdef DL_GLOBAL
17396 #    define LT_DLGLOBAL         DL_GLOBAL
17397 #  else
17398 #    define LT_DLGLOBAL         0
17399 #  endif
17400 #endif
17401
17402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17403    find out it does not work in some platform. */
17404 #ifndef LT_DLLAZY_OR_NOW
17405 #  ifdef RTLD_LAZY
17406 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17407 #  else
17408 #    ifdef DL_LAZY
17409 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17410 #    else
17411 #      ifdef RTLD_NOW
17412 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17413 #      else
17414 #        ifdef DL_NOW
17415 #          define LT_DLLAZY_OR_NOW      DL_NOW
17416 #        else
17417 #          define LT_DLLAZY_OR_NOW      0
17418 #        endif
17419 #      endif
17420 #    endif
17421 #  endif
17422 #endif
17423
17424 #ifdef __cplusplus
17425 extern "C" void exit (int);
17426 #endif
17427
17428 void fnord() { int i=42;}
17429 int main ()
17430 {
17431   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17432   int status = $lt_dlunknown;
17433
17434   if (self)
17435     {
17436       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17437       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17438       /* dlclose (self); */
17439     }
17440   else
17441     puts (dlerror ());
17442
17443     exit (status);
17444 }
17445 EOF
17446   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447   (eval $ac_link) 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17451     (./conftest; exit; ) >&5 2>/dev/null
17452     lt_status=$?
17453     case x$lt_status in
17454       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17455       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17456       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17457     esac
17458   else :
17459     # compilation failed
17460     lt_cv_dlopen_self_static=no
17461   fi
17462 fi
17463 rm -fr conftest*
17464
17465
17466 fi
17467 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17468 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17469     fi
17470
17471     CPPFLAGS="$save_CPPFLAGS"
17472     LDFLAGS="$save_LDFLAGS"
17473     LIBS="$save_LIBS"
17474     ;;
17475   esac
17476
17477   case $lt_cv_dlopen_self in
17478   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17479   *) enable_dlopen_self=unknown ;;
17480   esac
17481
17482   case $lt_cv_dlopen_self_static in
17483   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17484   *) enable_dlopen_self_static=unknown ;;
17485   esac
17486 fi
17487
17488
17489 # Report which library types will actually be built
17490 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17491 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17492 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17493 echo "${ECHO_T}$can_build_shared" >&6; }
17494
17495 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17496 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17497 test "$can_build_shared" = "no" && enable_shared=no
17498
17499 # On AIX, shared libraries and static libraries use the same namespace, and
17500 # are all built from PIC.
17501 case $host_os in
17502 aix3*)
17503   test "$enable_shared" = yes && enable_static=no
17504   if test -n "$RANLIB"; then
17505     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17506     postinstall_cmds='$RANLIB $lib'
17507   fi
17508   ;;
17509
17510 aix4* | aix5*)
17511   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17512     test "$enable_shared" = yes && enable_static=no
17513   fi
17514     ;;
17515 esac
17516 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17517 echo "${ECHO_T}$enable_shared" >&6; }
17518
17519 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17520 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17521 # Make sure either enable_shared or enable_static is yes.
17522 test "$enable_shared" = yes || enable_static=yes
17523 { echo "$as_me:$LINENO: result: $enable_static" >&5
17524 echo "${ECHO_T}$enable_static" >&6; }
17525
17526 # The else clause should only fire when bootstrapping the
17527 # libtool distribution, otherwise you forgot to ship ltmain.sh
17528 # with your package, and you will get complaints that there are
17529 # no rules to generate ltmain.sh.
17530 if test -f "$ltmain"; then
17531   # See if we are running on zsh, and set the options which allow our commands through
17532   # without removal of \ escapes.
17533   if test -n "${ZSH_VERSION+set}" ; then
17534     setopt NO_GLOB_SUBST
17535   fi
17536   # Now quote all the things that may contain metacharacters while being
17537   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17538   # variables and quote the copies for generation of the libtool script.
17539   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17540     SED SHELL STRIP \
17541     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17542     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17543     deplibs_check_method reload_flag reload_cmds need_locks \
17544     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17545     lt_cv_sys_global_symbol_to_c_name_address \
17546     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17547     old_postinstall_cmds old_postuninstall_cmds \
17548     compiler \
17549     CC \
17550     LD \
17551     lt_prog_compiler_wl \
17552     lt_prog_compiler_pic \
17553     lt_prog_compiler_static \
17554     lt_prog_compiler_no_builtin_flag \
17555     export_dynamic_flag_spec \
17556     thread_safe_flag_spec \
17557     whole_archive_flag_spec \
17558     enable_shared_with_static_runtimes \
17559     old_archive_cmds \
17560     old_archive_from_new_cmds \
17561     predep_objects \
17562     postdep_objects \
17563     predeps \
17564     postdeps \
17565     compiler_lib_search_path \
17566     archive_cmds \
17567     archive_expsym_cmds \
17568     postinstall_cmds \
17569     postuninstall_cmds \
17570     old_archive_from_expsyms_cmds \
17571     allow_undefined_flag \
17572     no_undefined_flag \
17573     export_symbols_cmds \
17574     hardcode_libdir_flag_spec \
17575     hardcode_libdir_flag_spec_ld \
17576     hardcode_libdir_separator \
17577     hardcode_automatic \
17578     module_cmds \
17579     module_expsym_cmds \
17580     lt_cv_prog_compiler_c_o \
17581     exclude_expsyms \
17582     include_expsyms; do
17583
17584     case $var in
17585     old_archive_cmds | \
17586     old_archive_from_new_cmds | \
17587     archive_cmds | \
17588     archive_expsym_cmds | \
17589     module_cmds | \
17590     module_expsym_cmds | \
17591     old_archive_from_expsyms_cmds | \
17592     export_symbols_cmds | \
17593     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17594     postinstall_cmds | postuninstall_cmds | \
17595     old_postinstall_cmds | old_postuninstall_cmds | \
17596     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17597       # Double-quote double-evaled strings.
17598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17599       ;;
17600     *)
17601       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17602       ;;
17603     esac
17604   done
17605
17606   case $lt_echo in
17607   *'\$0 --fallback-echo"')
17608     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17609     ;;
17610   esac
17611
17612 cfgfile="${ofile}T"
17613   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17614   $rm -f "$cfgfile"
17615   { echo "$as_me:$LINENO: creating $ofile" >&5
17616 echo "$as_me: creating $ofile" >&6;}
17617
17618   cat <<__EOF__ >> "$cfgfile"
17619 #! $SHELL
17620
17621 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17622 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17623 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17624 #
17625 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17626 # Free Software Foundation, Inc.
17627 #
17628 # This file is part of GNU Libtool:
17629 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17630 #
17631 # This program is free software; you can redistribute it and/or modify
17632 # it under the terms of the GNU General Public License as published by
17633 # the Free Software Foundation; either version 2 of the License, or
17634 # (at your option) any later version.
17635 #
17636 # This program is distributed in the hope that it will be useful, but
17637 # WITHOUT ANY WARRANTY; without even the implied warranty of
17638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17639 # General Public License for more details.
17640 #
17641 # You should have received a copy of the GNU General Public License
17642 # along with this program; if not, write to the Free Software
17643 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17644 #
17645 # As a special exception to the GNU General Public License, if you
17646 # distribute this file as part of a program that contains a
17647 # configuration script generated by Autoconf, you may include it under
17648 # the same distribution terms that you use for the rest of that program.
17649
17650 # A sed program that does not truncate output.
17651 SED=$lt_SED
17652
17653 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17654 Xsed="$SED -e 1s/^X//"
17655
17656 # The HP-UX ksh and POSIX shell print the target directory to stdout
17657 # if CDPATH is set.
17658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17659
17660 # The names of the tagged configurations supported by this script.
17661 available_tags=
17662
17663 # ### BEGIN LIBTOOL CONFIG
17664
17665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17666
17667 # Shell to use when invoking shell scripts.
17668 SHELL=$lt_SHELL
17669
17670 # Whether or not to build shared libraries.
17671 build_libtool_libs=$enable_shared
17672
17673 # Whether or not to build static libraries.
17674 build_old_libs=$enable_static
17675
17676 # Whether or not to add -lc for building shared libraries.
17677 build_libtool_need_lc=$archive_cmds_need_lc
17678
17679 # Whether or not to disallow shared libs when runtime libs are static
17680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17681
17682 # Whether or not to optimize for fast installation.
17683 fast_install=$enable_fast_install
17684
17685 # The host system.
17686 host_alias=$host_alias
17687 host=$host
17688 host_os=$host_os
17689
17690 # The build system.
17691 build_alias=$build_alias
17692 build=$build
17693 build_os=$build_os
17694
17695 # An echo program that does not interpret backslashes.
17696 echo=$lt_echo
17697
17698 # The archiver.
17699 AR=$lt_AR
17700 AR_FLAGS=$lt_AR_FLAGS
17701
17702 # A C compiler.
17703 LTCC=$lt_LTCC
17704
17705 # LTCC compiler flags.
17706 LTCFLAGS=$lt_LTCFLAGS
17707
17708 # A language-specific compiler.
17709 CC=$lt_compiler
17710
17711 # Is the compiler the GNU C compiler?
17712 with_gcc=$GCC
17713
17714 # An ERE matcher.
17715 EGREP=$lt_EGREP
17716
17717 # The linker used to build libraries.
17718 LD=$lt_LD
17719
17720 # Whether we need hard or soft links.
17721 LN_S=$lt_LN_S
17722
17723 # A BSD-compatible nm program.
17724 NM=$lt_NM
17725
17726 # A symbol stripping program
17727 STRIP=$lt_STRIP
17728
17729 # Used to examine libraries when file_magic_cmd begins "file"
17730 MAGIC_CMD=$MAGIC_CMD
17731
17732 # Used on cygwin: DLL creation program.
17733 DLLTOOL="$DLLTOOL"
17734
17735 # Used on cygwin: object dumper.
17736 OBJDUMP="$OBJDUMP"
17737
17738 # Used on cygwin: assembler.
17739 AS="$AS"
17740
17741 # The name of the directory that contains temporary libtool files.
17742 objdir=$objdir
17743
17744 # How to create reloadable object files.
17745 reload_flag=$lt_reload_flag
17746 reload_cmds=$lt_reload_cmds
17747
17748 # How to pass a linker flag through the compiler.
17749 wl=$lt_lt_prog_compiler_wl
17750
17751 # Object file suffix (normally "o").
17752 objext="$ac_objext"
17753
17754 # Old archive suffix (normally "a").
17755 libext="$libext"
17756
17757 # Shared library suffix (normally ".so").
17758 shrext_cmds='$shrext_cmds'
17759
17760 # Executable file suffix (normally "").
17761 exeext="$exeext"
17762
17763 # Additional compiler flags for building library objects.
17764 pic_flag=$lt_lt_prog_compiler_pic
17765 pic_mode=$pic_mode
17766
17767 # What is the maximum length of a command?
17768 max_cmd_len=$lt_cv_sys_max_cmd_len
17769
17770 # Does compiler simultaneously support -c and -o options?
17771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17772
17773 # Must we lock files when doing compilation?
17774 need_locks=$lt_need_locks
17775
17776 # Do we need the lib prefix for modules?
17777 need_lib_prefix=$need_lib_prefix
17778
17779 # Do we need a version for libraries?
17780 need_version=$need_version
17781
17782 # Whether dlopen is supported.
17783 dlopen_support=$enable_dlopen
17784
17785 # Whether dlopen of programs is supported.
17786 dlopen_self=$enable_dlopen_self
17787
17788 # Whether dlopen of statically linked programs is supported.
17789 dlopen_self_static=$enable_dlopen_self_static
17790
17791 # Compiler flag to prevent dynamic linking.
17792 link_static_flag=$lt_lt_prog_compiler_static
17793
17794 # Compiler flag to turn off builtin functions.
17795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17796
17797 # Compiler flag to allow reflexive dlopens.
17798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17799
17800 # Compiler flag to generate shared objects directly from archives.
17801 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17802
17803 # Compiler flag to generate thread-safe objects.
17804 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17805
17806 # Library versioning type.
17807 version_type=$version_type
17808
17809 # Format of library name prefix.
17810 libname_spec=$lt_libname_spec
17811
17812 # List of archive names.  First name is the real one, the rest are links.
17813 # The last name is the one that the linker finds with -lNAME.
17814 library_names_spec=$lt_library_names_spec
17815
17816 # The coded name of the library, if different from the real name.
17817 soname_spec=$lt_soname_spec
17818
17819 # Commands used to build and install an old-style archive.
17820 RANLIB=$lt_RANLIB
17821 old_archive_cmds=$lt_old_archive_cmds
17822 old_postinstall_cmds=$lt_old_postinstall_cmds
17823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17824
17825 # Create an old-style archive from a shared archive.
17826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17827
17828 # Create a temporary old-style archive to link instead of a shared archive.
17829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17830
17831 # Commands used to build and install a shared archive.
17832 archive_cmds=$lt_archive_cmds
17833 archive_expsym_cmds=$lt_archive_expsym_cmds
17834 postinstall_cmds=$lt_postinstall_cmds
17835 postuninstall_cmds=$lt_postuninstall_cmds
17836
17837 # Commands used to build a loadable module (assumed same as above if empty)
17838 module_cmds=$lt_module_cmds
17839 module_expsym_cmds=$lt_module_expsym_cmds
17840
17841 # Commands to strip libraries.
17842 old_striplib=$lt_old_striplib
17843 striplib=$lt_striplib
17844
17845 # Dependencies to place before the objects being linked to create a
17846 # shared library.
17847 predep_objects=$lt_predep_objects
17848
17849 # Dependencies to place after the objects being linked to create a
17850 # shared library.
17851 postdep_objects=$lt_postdep_objects
17852
17853 # Dependencies to place before the objects being linked to create a
17854 # shared library.
17855 predeps=$lt_predeps
17856
17857 # Dependencies to place after the objects being linked to create a
17858 # shared library.
17859 postdeps=$lt_postdeps
17860
17861 # The library search path used internally by the compiler when linking
17862 # a shared library.
17863 compiler_lib_search_path=$lt_compiler_lib_search_path
17864
17865 # Method to check whether dependent libraries are shared objects.
17866 deplibs_check_method=$lt_deplibs_check_method
17867
17868 # Command to use when deplibs_check_method == file_magic.
17869 file_magic_cmd=$lt_file_magic_cmd
17870
17871 # Flag that allows shared libraries with undefined symbols to be built.
17872 allow_undefined_flag=$lt_allow_undefined_flag
17873
17874 # Flag that forces no undefined symbols.
17875 no_undefined_flag=$lt_no_undefined_flag
17876
17877 # Commands used to finish a libtool library installation in a directory.
17878 finish_cmds=$lt_finish_cmds
17879
17880 # Same as above, but a single script fragment to be evaled but not shown.
17881 finish_eval=$lt_finish_eval
17882
17883 # Take the output of nm and produce a listing of raw symbols and C names.
17884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17885
17886 # Transform the output of nm in a proper C declaration
17887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17888
17889 # Transform the output of nm in a C name address pair
17890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17891
17892 # This is the shared library runtime path variable.
17893 runpath_var=$runpath_var
17894
17895 # This is the shared library path variable.
17896 shlibpath_var=$shlibpath_var
17897
17898 # Is shlibpath searched before the hard-coded library search path?
17899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17900
17901 # How to hardcode a shared library path into an executable.
17902 hardcode_action=$hardcode_action
17903
17904 # Whether we should hardcode library paths into libraries.
17905 hardcode_into_libs=$hardcode_into_libs
17906
17907 # Flag to hardcode \$libdir into a binary during linking.
17908 # This must work even if \$libdir does not exist.
17909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17910
17911 # If ld is used when linking, flag to hardcode \$libdir into
17912 # a binary during linking. This must work even if \$libdir does
17913 # not exist.
17914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17915
17916 # Whether we need a single -rpath flag with a separated argument.
17917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17918
17919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17920 # resulting binary.
17921 hardcode_direct=$hardcode_direct
17922
17923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17924 # resulting binary.
17925 hardcode_minus_L=$hardcode_minus_L
17926
17927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17928 # the resulting binary.
17929 hardcode_shlibpath_var=$hardcode_shlibpath_var
17930
17931 # Set to yes if building a shared library automatically hardcodes DIR into the library
17932 # and all subsequent libraries and executables linked against it.
17933 hardcode_automatic=$hardcode_automatic
17934
17935 # Variables whose values should be saved in libtool wrapper scripts and
17936 # restored at relink time.
17937 variables_saved_for_relink="$variables_saved_for_relink"
17938
17939 # Whether libtool must link a program against all its dependency libraries.
17940 link_all_deplibs=$link_all_deplibs
17941
17942 # Compile-time system search path for libraries
17943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17944
17945 # Run-time system search path for libraries
17946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17947
17948 # Fix the shell variable \$srcfile for the compiler.
17949 fix_srcfile_path="$fix_srcfile_path"
17950
17951 # Set to yes if exported symbols are required.
17952 always_export_symbols=$always_export_symbols
17953
17954 # The commands to list exported symbols.
17955 export_symbols_cmds=$lt_export_symbols_cmds
17956
17957 # The commands to extract the exported symbol list from a shared archive.
17958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17959
17960 # Symbols that should not be listed in the preloaded symbols.
17961 exclude_expsyms=$lt_exclude_expsyms
17962
17963 # Symbols that must always be exported.
17964 include_expsyms=$lt_include_expsyms
17965
17966 # ### END LIBTOOL CONFIG
17967
17968 __EOF__
17969
17970
17971   case $host_os in
17972   aix3*)
17973     cat <<\EOF >> "$cfgfile"
17974
17975 # AIX sometimes has problems with the GCC collect2 program.  For some
17976 # reason, if we set the COLLECT_NAMES environment variable, the problems
17977 # vanish in a puff of smoke.
17978 if test "X${COLLECT_NAMES+set}" != Xset; then
17979   COLLECT_NAMES=
17980   export COLLECT_NAMES
17981 fi
17982 EOF
17983     ;;
17984   esac
17985
17986   # We use sed instead of cat because bash on DJGPP gets confused if
17987   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17988   # text mode, it properly converts lines to CR/LF.  This bash problem
17989   # is reportedly fixed, but why not run on old versions too?
17990   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17991
17992   mv -f "$cfgfile" "$ofile" || \
17993     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17994   chmod +x "$ofile"
17995
17996 else
17997   # If there is no Makefile yet, we rely on a make rule to execute
17998   # `config.status --recheck' to rerun these tests and create the
17999   # libtool script then.
18000   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18001   if test -f "$ltmain_in"; then
18002     test -f Makefile && make "$ltmain"
18003   fi
18004 fi
18005
18006
18007 ac_ext=c
18008 ac_cpp='$CPP $CPPFLAGS'
18009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18012
18013 CC="$lt_save_CC"
18014
18015
18016 # Check whether --with-tags was given.
18017 if test "${with_tags+set}" = set; then
18018   withval=$with_tags; tagnames="$withval"
18019 fi
18020
18021
18022 if test -f "$ltmain" && test -n "$tagnames"; then
18023   if test ! -f "${ofile}"; then
18024     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18025 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18026   fi
18027
18028   if test -z "$LTCC"; then
18029     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18030     if test -z "$LTCC"; then
18031       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18032 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18033     else
18034       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18035 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18036     fi
18037   fi
18038   if test -z "$LTCFLAGS"; then
18039     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18040   fi
18041
18042   # Extract list of available tagged configurations in $ofile.
18043   # Note that this assumes the entire list is on one line.
18044   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18045
18046   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18047   for tagname in $tagnames; do
18048     IFS="$lt_save_ifs"
18049     # Check whether tagname contains only valid characters
18050     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18051     "") ;;
18052     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18053 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18054    { (exit 1); exit 1; }; }
18055         ;;
18056     esac
18057
18058     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18059     then
18060       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18061 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18062    { (exit 1); exit 1; }; }
18063     fi
18064
18065     # Update the list of available tags.
18066     if test -n "$tagname"; then
18067       echo appending configuration tag \"$tagname\" to $ofile
18068
18069       case $tagname in
18070       CXX)
18071         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18072             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18073             (test "X$CXX" != "Xg++"))) ; then
18074           ac_ext=cpp
18075 ac_cpp='$CXXCPP $CPPFLAGS'
18076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18079
18080
18081
18082
18083 archive_cmds_need_lc_CXX=no
18084 allow_undefined_flag_CXX=
18085 always_export_symbols_CXX=no
18086 archive_expsym_cmds_CXX=
18087 export_dynamic_flag_spec_CXX=
18088 hardcode_direct_CXX=no
18089 hardcode_libdir_flag_spec_CXX=
18090 hardcode_libdir_flag_spec_ld_CXX=
18091 hardcode_libdir_separator_CXX=
18092 hardcode_minus_L_CXX=no
18093 hardcode_shlibpath_var_CXX=unsupported
18094 hardcode_automatic_CXX=no
18095 module_cmds_CXX=
18096 module_expsym_cmds_CXX=
18097 link_all_deplibs_CXX=unknown
18098 old_archive_cmds_CXX=$old_archive_cmds
18099 no_undefined_flag_CXX=
18100 whole_archive_flag_spec_CXX=
18101 enable_shared_with_static_runtimes_CXX=no
18102
18103 # Dependencies to place before and after the object being linked:
18104 predep_objects_CXX=
18105 postdep_objects_CXX=
18106 predeps_CXX=
18107 postdeps_CXX=
18108 compiler_lib_search_path_CXX=
18109
18110 # Source file extension for C++ test sources.
18111 ac_ext=cpp
18112
18113 # Object file extension for compiled C++ test sources.
18114 objext=o
18115 objext_CXX=$objext
18116
18117 # Code to be used in simple compile tests
18118 lt_simple_compile_test_code="int some_variable = 0;\n"
18119
18120 # Code to be used in simple link tests
18121 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18122
18123 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18124
18125 # If no C compiler was specified, use CC.
18126 LTCC=${LTCC-"$CC"}
18127
18128 # If no C compiler flags were specified, use CFLAGS.
18129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18130
18131 # Allow CC to be a program name with arguments.
18132 compiler=$CC
18133
18134
18135 # save warnings/boilerplate of simple test code
18136 ac_outfile=conftest.$ac_objext
18137 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18138 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18139 _lt_compiler_boilerplate=`cat conftest.err`
18140 $rm conftest*
18141
18142 ac_outfile=conftest.$ac_objext
18143 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18144 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18145 _lt_linker_boilerplate=`cat conftest.err`
18146 $rm conftest*
18147
18148
18149 # Allow CC to be a program name with arguments.
18150 lt_save_CC=$CC
18151 lt_save_LD=$LD
18152 lt_save_GCC=$GCC
18153 GCC=$GXX
18154 lt_save_with_gnu_ld=$with_gnu_ld
18155 lt_save_path_LD=$lt_cv_path_LD
18156 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18157   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18158 else
18159   $as_unset lt_cv_prog_gnu_ld
18160 fi
18161 if test -n "${lt_cv_path_LDCXX+set}"; then
18162   lt_cv_path_LD=$lt_cv_path_LDCXX
18163 else
18164   $as_unset lt_cv_path_LD
18165 fi
18166 test -z "${LDCXX+set}" || LD=$LDCXX
18167 CC=${CXX-"c++"}
18168 compiler=$CC
18169 compiler_CXX=$CC
18170 for cc_temp in $compiler""; do
18171   case $cc_temp in
18172     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18173     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18174     \-*) ;;
18175     *) break;;
18176   esac
18177 done
18178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18179
18180
18181 # We don't want -fno-exception wen compiling C++ code, so set the
18182 # no_builtin_flag separately
18183 if test "$GXX" = yes; then
18184   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18185 else
18186   lt_prog_compiler_no_builtin_flag_CXX=
18187 fi
18188
18189 if test "$GXX" = yes; then
18190   # Set up default GNU C++ configuration
18191
18192
18193 # Check whether --with-gnu-ld was given.
18194 if test "${with_gnu_ld+set}" = set; then
18195   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18196 else
18197   with_gnu_ld=no
18198 fi
18199
18200 ac_prog=ld
18201 if test "$GCC" = yes; then
18202   # Check if gcc -print-prog-name=ld gives a path.
18203   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18204 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18205   case $host in
18206   *-*-mingw*)
18207     # gcc leaves a trailing carriage return which upsets mingw
18208     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18209   *)
18210     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18211   esac
18212   case $ac_prog in
18213     # Accept absolute paths.
18214     [\\/]* | ?:[\\/]*)
18215       re_direlt='/[^/][^/]*/\.\./'
18216       # Canonicalize the pathname of ld
18217       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18218       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18219         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18220       done
18221       test -z "$LD" && LD="$ac_prog"
18222       ;;
18223   "")
18224     # If it fails, then pretend we aren't using GCC.
18225     ac_prog=ld
18226     ;;
18227   *)
18228     # If it is relative, then search for the first ld in PATH.
18229     with_gnu_ld=unknown
18230     ;;
18231   esac
18232 elif test "$with_gnu_ld" = yes; then
18233   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18234 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18235 else
18236   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18237 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18238 fi
18239 if test "${lt_cv_path_LD+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   if test -z "$LD"; then
18243   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18244   for ac_dir in $PATH; do
18245     IFS="$lt_save_ifs"
18246     test -z "$ac_dir" && ac_dir=.
18247     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18248       lt_cv_path_LD="$ac_dir/$ac_prog"
18249       # Check to see if the program is GNU ld.  I'd rather use --version,
18250       # but apparently some variants of GNU ld only accept -v.
18251       # Break only if it was the GNU/non-GNU ld that we prefer.
18252       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18253       *GNU* | *'with BFD'*)
18254         test "$with_gnu_ld" != no && break
18255         ;;
18256       *)
18257         test "$with_gnu_ld" != yes && break
18258         ;;
18259       esac
18260     fi
18261   done
18262   IFS="$lt_save_ifs"
18263 else
18264   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18265 fi
18266 fi
18267
18268 LD="$lt_cv_path_LD"
18269 if test -n "$LD"; then
18270   { echo "$as_me:$LINENO: result: $LD" >&5
18271 echo "${ECHO_T}$LD" >&6; }
18272 else
18273   { echo "$as_me:$LINENO: result: no" >&5
18274 echo "${ECHO_T}no" >&6; }
18275 fi
18276 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18277 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18278    { (exit 1); exit 1; }; }
18279 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18280 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18281 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18282   echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18285 case `$LD -v 2>&1 </dev/null` in
18286 *GNU* | *'with BFD'*)
18287   lt_cv_prog_gnu_ld=yes
18288   ;;
18289 *)
18290   lt_cv_prog_gnu_ld=no
18291   ;;
18292 esac
18293 fi
18294 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18295 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18296 with_gnu_ld=$lt_cv_prog_gnu_ld
18297
18298
18299
18300   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18301   # archiving commands below assume that GNU ld is being used.
18302   if test "$with_gnu_ld" = yes; then
18303     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18304     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'
18305
18306     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18307     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18308
18309     # If archive_cmds runs LD, not CC, wlarc should be empty
18310     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18311     #     investigate it a little bit more. (MM)
18312     wlarc='${wl}'
18313
18314     # ancient GNU ld didn't support --whole-archive et. al.
18315     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18316         grep 'no-whole-archive' > /dev/null; then
18317       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18318     else
18319       whole_archive_flag_spec_CXX=
18320     fi
18321   else
18322     with_gnu_ld=no
18323     wlarc=
18324
18325     # A generic and very simple default shared library creation
18326     # command for GNU C++ for the case where it uses the native
18327     # linker, instead of GNU ld.  If possible, this setting should
18328     # overridden to take advantage of the native linker features on
18329     # the platform it is being used on.
18330     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18331   fi
18332
18333   # Commands to make compiler produce verbose output that lists
18334   # what "hidden" libraries, object files and flags are used when
18335   # linking a shared library.
18336   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18337
18338 else
18339   GXX=no
18340   with_gnu_ld=no
18341   wlarc=
18342 fi
18343
18344 # PORTME: fill in a description of your system's C++ link characteristics
18345 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18346 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18347 ld_shlibs_CXX=yes
18348 case $host_os in
18349   aix3*)
18350     # FIXME: insert proper C++ library support
18351     ld_shlibs_CXX=no
18352     ;;
18353   aix4* | aix5*)
18354     if test "$host_cpu" = ia64; then
18355       # On IA64, the linker does run time linking by default, so we don't
18356       # have to do anything special.
18357       aix_use_runtimelinking=no
18358       exp_sym_flag='-Bexport'
18359       no_entry_flag=""
18360     else
18361       aix_use_runtimelinking=no
18362
18363       # Test if we are trying to use run time linking or normal
18364       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18365       # need to do runtime linking.
18366       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18367         for ld_flag in $LDFLAGS; do
18368           case $ld_flag in
18369           *-brtl*)
18370             aix_use_runtimelinking=yes
18371             break
18372             ;;
18373           esac
18374         done
18375         ;;
18376       esac
18377
18378       exp_sym_flag='-bexport'
18379       no_entry_flag='-bnoentry'
18380     fi
18381
18382     # When large executables or shared objects are built, AIX ld can
18383     # have problems creating the table of contents.  If linking a library
18384     # or program results in "error TOC overflow" add -mminimal-toc to
18385     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18386     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18387
18388     archive_cmds_CXX=''
18389     hardcode_direct_CXX=yes
18390     hardcode_libdir_separator_CXX=':'
18391     link_all_deplibs_CXX=yes
18392
18393     if test "$GXX" = yes; then
18394       case $host_os in aix4.[012]|aix4.[012].*)
18395       # We only want to do this on AIX 4.2 and lower, the check
18396       # below for broken collect2 doesn't work under 4.3+
18397         collect2name=`${CC} -print-prog-name=collect2`
18398         if test -f "$collect2name" && \
18399            strings "$collect2name" | grep resolve_lib_name >/dev/null
18400         then
18401           # We have reworked collect2
18402           hardcode_direct_CXX=yes
18403         else
18404           # We have old collect2
18405           hardcode_direct_CXX=unsupported
18406           # It fails to find uninstalled libraries when the uninstalled
18407           # path is not listed in the libpath.  Setting hardcode_minus_L
18408           # to unsupported forces relinking
18409           hardcode_minus_L_CXX=yes
18410           hardcode_libdir_flag_spec_CXX='-L$libdir'
18411           hardcode_libdir_separator_CXX=
18412         fi
18413         ;;
18414       esac
18415       shared_flag='-shared'
18416       if test "$aix_use_runtimelinking" = yes; then
18417         shared_flag="$shared_flag "'${wl}-G'
18418       fi
18419     else
18420       # not using gcc
18421       if test "$host_cpu" = ia64; then
18422         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18423         # chokes on -Wl,-G. The following line is correct:
18424         shared_flag='-G'
18425       else
18426         if test "$aix_use_runtimelinking" = yes; then
18427           shared_flag='${wl}-G'
18428         else
18429           shared_flag='${wl}-bM:SRE'
18430         fi
18431       fi
18432     fi
18433
18434     # It seems that -bexpall does not export symbols beginning with
18435     # underscore (_), so it is better to generate a list of symbols to export.
18436     always_export_symbols_CXX=yes
18437     if test "$aix_use_runtimelinking" = yes; then
18438       # Warning - without using the other runtime loading flags (-brtl),
18439       # -berok will link without error, but may produce a broken library.
18440       allow_undefined_flag_CXX='-berok'
18441       # Determine the default libpath from the value encoded in an empty executable.
18442       cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h.  */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h.  */
18448
18449 int
18450 main ()
18451 {
18452
18453   ;
18454   return 0;
18455 }
18456 _ACEOF
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461   *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464   (eval "$ac_link") 2>conftest.er1
18465   ac_status=$?
18466   grep -v '^ *+' conftest.er1 >conftest.err
18467   rm -f conftest.er1
18468   cat conftest.err >&5
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); } &&
18471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18472   { (case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_try") 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); }; } &&
18481          { ac_try='test -s conftest$ac_exeext'
18482   { (case "(($ac_try" in
18483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484   *) ac_try_echo=$ac_try;;
18485 esac
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487   (eval "$ac_try") 2>&5
18488   ac_status=$?
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); }; }; then
18491
18492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18493 }'`
18494 # Check for a 64-bit object if we didn't find anything.
18495 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; }
18496 }'`; fi
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501
18502 fi
18503
18504 rm -f core conftest.err conftest.$ac_objext \
18505       conftest$ac_exeext conftest.$ac_ext
18506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18507
18508       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18509
18510       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"
18511      else
18512       if test "$host_cpu" = ia64; then
18513         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18514         allow_undefined_flag_CXX="-z nodefs"
18515         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"
18516       else
18517         # Determine the default libpath from the value encoded in an empty executable.
18518         cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h.  */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h.  */
18524
18525 int
18526 main ()
18527 {
18528
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (ac_try="$ac_link"
18535 case "(($ac_try" in
18536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537   *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540   (eval "$ac_link") 2>conftest.er1
18541   ac_status=$?
18542   grep -v '^ *+' conftest.er1 >conftest.err
18543   rm -f conftest.er1
18544   cat conftest.err >&5
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); } &&
18547          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; } &&
18557          { ac_try='test -s conftest$ac_exeext'
18558   { (case "(($ac_try" in
18559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560   *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563   (eval "$ac_try") 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; }; then
18567
18568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18569 }'`
18570 # Check for a 64-bit object if we didn't find anything.
18571 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; }
18572 }'`; fi
18573 else
18574   echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577
18578 fi
18579
18580 rm -f core conftest.err conftest.$ac_objext \
18581       conftest$ac_exeext conftest.$ac_ext
18582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18583
18584         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18585         # Warning - without using the other run time loading flags,
18586         # -berok will link without error, but may produce a broken library.
18587         no_undefined_flag_CXX=' ${wl}-bernotok'
18588         allow_undefined_flag_CXX=' ${wl}-berok'
18589         # Exported symbols can be pulled into shared objects from archives
18590         whole_archive_flag_spec_CXX='$convenience'
18591         archive_cmds_need_lc_CXX=yes
18592         # This is similar to how AIX traditionally builds its shared libraries.
18593         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'
18594       fi
18595     fi
18596     ;;
18597
18598   beos*)
18599     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18600       allow_undefined_flag_CXX=unsupported
18601       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18602       # support --undefined.  This deserves some investigation.  FIXME
18603       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18604     else
18605       ld_shlibs_CXX=no
18606     fi
18607     ;;
18608
18609   chorus*)
18610     case $cc_basename in
18611       *)
18612         # FIXME: insert proper C++ library support
18613         ld_shlibs_CXX=no
18614         ;;
18615     esac
18616     ;;
18617
18618   cygwin* | mingw* | pw32*)
18619     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18620     # as there is no search path for DLLs.
18621     hardcode_libdir_flag_spec_CXX='-L$libdir'
18622     allow_undefined_flag_CXX=unsupported
18623     always_export_symbols_CXX=no
18624     enable_shared_with_static_runtimes_CXX=yes
18625
18626     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18627       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'
18628       # If the export-symbols file already is a .def file (1st line
18629       # is EXPORTS), use it as is; otherwise, prepend...
18630       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18631         cp $export_symbols $output_objdir/$soname.def;
18632       else
18633         echo EXPORTS > $output_objdir/$soname.def;
18634         cat $export_symbols >> $output_objdir/$soname.def;
18635       fi~
18636       $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'
18637     else
18638       ld_shlibs_CXX=no
18639     fi
18640   ;;
18641       darwin* | rhapsody*)
18642         case $host_os in
18643         rhapsody* | darwin1.[012])
18644          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18645          ;;
18646        *) # Darwin 1.3 on
18647          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18648            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18649          else
18650            case ${MACOSX_DEPLOYMENT_TARGET} in
18651              10.[012])
18652                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18653                ;;
18654              10.*)
18655                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18656                ;;
18657            esac
18658          fi
18659          ;;
18660         esac
18661       archive_cmds_need_lc_CXX=no
18662       hardcode_direct_CXX=no
18663       hardcode_automatic_CXX=yes
18664       hardcode_shlibpath_var_CXX=unsupported
18665       whole_archive_flag_spec_CXX=''
18666       link_all_deplibs_CXX=yes
18667
18668     if test "$GXX" = yes ; then
18669       lt_int_apple_cc_single_mod=no
18670       output_verbose_link_cmd='echo'
18671       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18672        lt_int_apple_cc_single_mod=yes
18673       fi
18674       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18675        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18676       else
18677           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'
18678         fi
18679         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18680         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18681           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18682             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}'
18683           else
18684             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}'
18685           fi
18686             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}'
18687       else
18688       case $cc_basename in
18689         xlc*)
18690          output_verbose_link_cmd='echo'
18691           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'
18692           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18693           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18694           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}'
18695           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}'
18696           ;;
18697        *)
18698          ld_shlibs_CXX=no
18699           ;;
18700       esac
18701       fi
18702         ;;
18703
18704   dgux*)
18705     case $cc_basename in
18706       ec++*)
18707         # FIXME: insert proper C++ library support
18708         ld_shlibs_CXX=no
18709         ;;
18710       ghcx*)
18711         # Green Hills C++ Compiler
18712         # FIXME: insert proper C++ library support
18713         ld_shlibs_CXX=no
18714         ;;
18715       *)
18716         # FIXME: insert proper C++ library support
18717         ld_shlibs_CXX=no
18718         ;;
18719     esac
18720     ;;
18721   freebsd[12]*)
18722     # C++ shared libraries reported to be fairly broken before switch to ELF
18723     ld_shlibs_CXX=no
18724     ;;
18725   freebsd-elf*)
18726     archive_cmds_need_lc_CXX=no
18727     ;;
18728   freebsd* | kfreebsd*-gnu | dragonfly*)
18729     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18730     # conventions
18731     ld_shlibs_CXX=yes
18732     ;;
18733   gnu*)
18734     ;;
18735   hpux9*)
18736     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18737     hardcode_libdir_separator_CXX=:
18738     export_dynamic_flag_spec_CXX='${wl}-E'
18739     hardcode_direct_CXX=yes
18740     hardcode_minus_L_CXX=yes # Not in the search PATH,
18741                                 # but as the default
18742                                 # location of the library.
18743
18744     case $cc_basename in
18745     CC*)
18746       # FIXME: insert proper C++ library support
18747       ld_shlibs_CXX=no
18748       ;;
18749     aCC*)
18750       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'
18751       # Commands to make compiler produce verbose output that lists
18752       # what "hidden" libraries, object files and flags are used when
18753       # linking a shared library.
18754       #
18755       # There doesn't appear to be a way to prevent this compiler from
18756       # explicitly linking system object files so we need to strip them
18757       # from the output so that they don't get included in the library
18758       # dependencies.
18759       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'
18760       ;;
18761     *)
18762       if test "$GXX" = yes; then
18763         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'
18764       else
18765         # FIXME: insert proper C++ library support
18766         ld_shlibs_CXX=no
18767       fi
18768       ;;
18769     esac
18770     ;;
18771   hpux10*|hpux11*)
18772     if test $with_gnu_ld = no; then
18773       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774       hardcode_libdir_separator_CXX=:
18775
18776       case $host_cpu in
18777       hppa*64*|ia64*)
18778         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18779         ;;
18780       *)
18781         export_dynamic_flag_spec_CXX='${wl}-E'
18782         ;;
18783       esac
18784     fi
18785     case $host_cpu in
18786     hppa*64*|ia64*)
18787       hardcode_direct_CXX=no
18788       hardcode_shlibpath_var_CXX=no
18789       ;;
18790     *)
18791       hardcode_direct_CXX=yes
18792       hardcode_minus_L_CXX=yes # Not in the search PATH,
18793                                               # but as the default
18794                                               # location of the library.
18795       ;;
18796     esac
18797
18798     case $cc_basename in
18799       CC*)
18800         # FIXME: insert proper C++ library support
18801         ld_shlibs_CXX=no
18802         ;;
18803       aCC*)
18804         case $host_cpu in
18805         hppa*64*)
18806           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807           ;;
18808         ia64*)
18809           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18810           ;;
18811         *)
18812           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18813           ;;
18814         esac
18815         # Commands to make compiler produce verbose output that lists
18816         # what "hidden" libraries, object files and flags are used when
18817         # linking a shared library.
18818         #
18819         # There doesn't appear to be a way to prevent this compiler from
18820         # explicitly linking system object files so we need to strip them
18821         # from the output so that they don't get included in the library
18822         # dependencies.
18823         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'
18824         ;;
18825       *)
18826         if test "$GXX" = yes; then
18827           if test $with_gnu_ld = no; then
18828             case $host_cpu in
18829             hppa*64*)
18830               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18831               ;;
18832             ia64*)
18833               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18834               ;;
18835             *)
18836               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'
18837               ;;
18838             esac
18839           fi
18840         else
18841           # FIXME: insert proper C++ library support
18842           ld_shlibs_CXX=no
18843         fi
18844         ;;
18845     esac
18846     ;;
18847   interix3*)
18848     hardcode_direct_CXX=no
18849     hardcode_shlibpath_var_CXX=no
18850     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18851     export_dynamic_flag_spec_CXX='${wl}-E'
18852     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18853     # Instead, shared libraries are loaded at an image base (0x10000000 by
18854     # default) and relocated if they conflict, which is a slow very memory
18855     # consuming and fragmenting process.  To avoid this, we pick a random,
18856     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18857     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18858     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'
18859     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'
18860     ;;
18861   irix5* | irix6*)
18862     case $cc_basename in
18863       CC*)
18864         # SGI C++
18865         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'
18866
18867         # Archives containing C++ object files must be created using
18868         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18869         # necessary to make sure instantiated templates are included
18870         # in the archive.
18871         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18872         ;;
18873       *)
18874         if test "$GXX" = yes; then
18875           if test "$with_gnu_ld" = no; then
18876             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'
18877           else
18878             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'
18879           fi
18880         fi
18881         link_all_deplibs_CXX=yes
18882         ;;
18883     esac
18884     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18885     hardcode_libdir_separator_CXX=:
18886     ;;
18887   linux*)
18888     case $cc_basename in
18889       KCC*)
18890         # Kuck and Associates, Inc. (KAI) C++ Compiler
18891
18892         # KCC will only create a shared library if the output file
18893         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18894         # to its proper name (with version) after linking.
18895         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'
18896         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'
18897         # Commands to make compiler produce verbose output that lists
18898         # what "hidden" libraries, object files and flags are used when
18899         # linking a shared library.
18900         #
18901         # There doesn't appear to be a way to prevent this compiler from
18902         # explicitly linking system object files so we need to strip them
18903         # from the output so that they don't get included in the library
18904         # dependencies.
18905         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'
18906
18907         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18908         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18909
18910         # Archives containing C++ object files must be created using
18911         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18912         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18913         ;;
18914       icpc*)
18915         # Intel C++
18916         with_gnu_ld=yes
18917         # version 8.0 and above of icpc choke on multiply defined symbols
18918         # if we add $predep_objects and $postdep_objects, however 7.1 and
18919         # earlier do not add the objects themselves.
18920         case `$CC -V 2>&1` in
18921         *"Version 7."*)
18922           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18923           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'
18924           ;;
18925         *)  # Version 8.0 or newer
18926           tmp_idyn=
18927           case $host_cpu in
18928             ia64*) tmp_idyn=' -i_dynamic';;
18929           esac
18930           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18931           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'
18932           ;;
18933         esac
18934         archive_cmds_need_lc_CXX=no
18935         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18936         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18937         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18938         ;;
18939       pgCC*)
18940         # Portland Group C++ compiler
18941         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18942         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'
18943
18944         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18945         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946         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'
18947         ;;
18948       cxx*)
18949         # Compaq C++
18950         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18951         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'
18952
18953         runpath_var=LD_RUN_PATH
18954         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18955         hardcode_libdir_separator_CXX=:
18956
18957         # Commands to make compiler produce verbose output that lists
18958         # what "hidden" libraries, object files and flags are used when
18959         # linking a shared library.
18960         #
18961         # There doesn't appear to be a way to prevent this compiler from
18962         # explicitly linking system object files so we need to strip them
18963         # from the output so that they don't get included in the library
18964         # dependencies.
18965         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'
18966         ;;
18967     esac
18968     ;;
18969   lynxos*)
18970     # FIXME: insert proper C++ library support
18971     ld_shlibs_CXX=no
18972     ;;
18973   m88k*)
18974     # FIXME: insert proper C++ library support
18975     ld_shlibs_CXX=no
18976     ;;
18977   mvs*)
18978     case $cc_basename in
18979       cxx*)
18980         # FIXME: insert proper C++ library support
18981         ld_shlibs_CXX=no
18982         ;;
18983       *)
18984         # FIXME: insert proper C++ library support
18985         ld_shlibs_CXX=no
18986         ;;
18987     esac
18988     ;;
18989   netbsd*)
18990     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18991       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18992       wlarc=
18993       hardcode_libdir_flag_spec_CXX='-R$libdir'
18994       hardcode_direct_CXX=yes
18995       hardcode_shlibpath_var_CXX=no
18996     fi
18997     # Workaround some broken pre-1.5 toolchains
18998     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18999     ;;
19000   openbsd2*)
19001     # C++ shared libraries are fairly broken
19002     ld_shlibs_CXX=no
19003     ;;
19004   openbsd*)
19005     hardcode_direct_CXX=yes
19006     hardcode_shlibpath_var_CXX=no
19007     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19008     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19009     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19010       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19011       export_dynamic_flag_spec_CXX='${wl}-E'
19012       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19013     fi
19014     output_verbose_link_cmd='echo'
19015     ;;
19016   osf3*)
19017     case $cc_basename in
19018       KCC*)
19019         # Kuck and Associates, Inc. (KAI) C++ Compiler
19020
19021         # KCC will only create a shared library if the output file
19022         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19023         # to its proper name (with version) after linking.
19024         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'
19025
19026         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19027         hardcode_libdir_separator_CXX=:
19028
19029         # Archives containing C++ object files must be created using
19030         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19031         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19032
19033         ;;
19034       RCC*)
19035         # Rational C++ 2.4.1
19036         # FIXME: insert proper C++ library support
19037         ld_shlibs_CXX=no
19038         ;;
19039       cxx*)
19040         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19041         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'
19042
19043         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19044         hardcode_libdir_separator_CXX=:
19045
19046         # Commands to make compiler produce verbose output that lists
19047         # what "hidden" libraries, object files and flags are used when
19048         # linking a shared library.
19049         #
19050         # There doesn't appear to be a way to prevent this compiler from
19051         # explicitly linking system object files so we need to strip them
19052         # from the output so that they don't get included in the library
19053         # dependencies.
19054         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'
19055         ;;
19056       *)
19057         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19058           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19059           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'
19060
19061           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19062           hardcode_libdir_separator_CXX=:
19063
19064           # Commands to make compiler produce verbose output that lists
19065           # what "hidden" libraries, object files and flags are used when
19066           # linking a shared library.
19067           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19068
19069         else
19070           # FIXME: insert proper C++ library support
19071           ld_shlibs_CXX=no
19072         fi
19073         ;;
19074     esac
19075     ;;
19076   osf4* | osf5*)
19077     case $cc_basename in
19078       KCC*)
19079         # Kuck and Associates, Inc. (KAI) C++ Compiler
19080
19081         # KCC will only create a shared library if the output file
19082         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19083         # to its proper name (with version) after linking.
19084         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'
19085
19086         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19087         hardcode_libdir_separator_CXX=:
19088
19089         # Archives containing C++ object files must be created using
19090         # the KAI C++ compiler.
19091         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19092         ;;
19093       RCC*)
19094         # Rational C++ 2.4.1
19095         # FIXME: insert proper C++ library support
19096         ld_shlibs_CXX=no
19097         ;;
19098       cxx*)
19099         allow_undefined_flag_CXX=' -expect_unresolved \*'
19100         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'
19101         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19102           echo "-hidden">> $lib.exp~
19103           $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~
19104           $rm $lib.exp'
19105
19106         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19107         hardcode_libdir_separator_CXX=:
19108
19109         # Commands to make compiler produce verbose output that lists
19110         # what "hidden" libraries, object files and flags are used when
19111         # linking a shared library.
19112         #
19113         # There doesn't appear to be a way to prevent this compiler from
19114         # explicitly linking system object files so we need to strip them
19115         # from the output so that they don't get included in the library
19116         # dependencies.
19117         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'
19118         ;;
19119       *)
19120         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19121           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19122          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'
19123
19124           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19125           hardcode_libdir_separator_CXX=:
19126
19127           # Commands to make compiler produce verbose output that lists
19128           # what "hidden" libraries, object files and flags are used when
19129           # linking a shared library.
19130           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19131
19132         else
19133           # FIXME: insert proper C++ library support
19134           ld_shlibs_CXX=no
19135         fi
19136         ;;
19137     esac
19138     ;;
19139   psos*)
19140     # FIXME: insert proper C++ library support
19141     ld_shlibs_CXX=no
19142     ;;
19143   sunos4*)
19144     case $cc_basename in
19145       CC*)
19146         # Sun C++ 4.x
19147         # FIXME: insert proper C++ library support
19148         ld_shlibs_CXX=no
19149         ;;
19150       lcc*)
19151         # Lucid
19152         # FIXME: insert proper C++ library support
19153         ld_shlibs_CXX=no
19154         ;;
19155       *)
19156         # FIXME: insert proper C++ library support
19157         ld_shlibs_CXX=no
19158         ;;
19159     esac
19160     ;;
19161   solaris*)
19162     case $cc_basename in
19163       CC*)
19164         # Sun C++ 4.2, 5.x and Centerline C++
19165         archive_cmds_need_lc_CXX=yes
19166         no_undefined_flag_CXX=' -zdefs'
19167         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19168         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19169         $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'
19170
19171         hardcode_libdir_flag_spec_CXX='-R$libdir'
19172         hardcode_shlibpath_var_CXX=no
19173         case $host_os in
19174           solaris2.[0-5] | solaris2.[0-5].*) ;;
19175           *)
19176             # The C++ compiler is used as linker so we must use $wl
19177             # flag to pass the commands to the underlying system
19178             # linker. We must also pass each convience library through
19179             # to the system linker between allextract/defaultextract.
19180             # The C++ compiler will combine linker options so we
19181             # cannot just pass the convience library names through
19182             # without $wl.
19183             # Supported since Solaris 2.6 (maybe 2.5.1?)
19184             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'
19185             ;;
19186         esac
19187         link_all_deplibs_CXX=yes
19188
19189         output_verbose_link_cmd='echo'
19190
19191         # Archives containing C++ object files must be created using
19192         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19193         # necessary to make sure instantiated templates are included
19194         # in the archive.
19195         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19196         ;;
19197       gcx*)
19198         # Green Hills C++ Compiler
19199         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19200
19201         # The C++ compiler must be used to create the archive.
19202         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19203         ;;
19204       *)
19205         # GNU C++ compiler with Solaris linker
19206         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19207           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19208           if $CC --version | grep -v '^2\.7' > /dev/null; then
19209             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19210             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19211                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19212
19213             # Commands to make compiler produce verbose output that lists
19214             # what "hidden" libraries, object files and flags are used when
19215             # linking a shared library.
19216             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19217           else
19218             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19219             # platform.
19220             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19221             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19222                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19223
19224             # Commands to make compiler produce verbose output that lists
19225             # what "hidden" libraries, object files and flags are used when
19226             # linking a shared library.
19227             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19228           fi
19229
19230           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19231         fi
19232         ;;
19233     esac
19234     ;;
19235   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19236     no_undefined_flag_CXX='${wl}-z,text'
19237     archive_cmds_need_lc_CXX=no
19238     hardcode_shlibpath_var_CXX=no
19239     runpath_var='LD_RUN_PATH'
19240
19241     case $cc_basename in
19242       CC*)
19243         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19244         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19245         ;;
19246       *)
19247         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19248         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19249         ;;
19250     esac
19251     ;;
19252   sysv5* | sco3.2v5* | sco5v6*)
19253     # Note: We can NOT use -z defs as we might desire, because we do not
19254     # link with -lc, and that would cause any symbols used from libc to
19255     # always be unresolved, which means just about no library would
19256     # ever link correctly.  If we're not using GNU ld we use -z text
19257     # though, which does catch some bad symbols but isn't as heavy-handed
19258     # as -z defs.
19259     # For security reasons, it is highly recommended that you always
19260     # use absolute paths for naming shared libraries, and exclude the
19261     # DT_RUNPATH tag from executables and libraries.  But doing so
19262     # requires that you compile everything twice, which is a pain.
19263     # So that behaviour is only enabled if SCOABSPATH is set to a
19264     # non-empty value in the environment.  Most likely only useful for
19265     # creating official distributions of packages.
19266     # This is a hack until libtool officially supports absolute path
19267     # names for shared libraries.
19268     no_undefined_flag_CXX='${wl}-z,text'
19269     allow_undefined_flag_CXX='${wl}-z,nodefs'
19270     archive_cmds_need_lc_CXX=no
19271     hardcode_shlibpath_var_CXX=no
19272     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19273     hardcode_libdir_separator_CXX=':'
19274     link_all_deplibs_CXX=yes
19275     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19276     runpath_var='LD_RUN_PATH'
19277
19278     case $cc_basename in
19279       CC*)
19280         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19281         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19282         ;;
19283       *)
19284         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19286         ;;
19287     esac
19288     ;;
19289   tandem*)
19290     case $cc_basename in
19291       NCC*)
19292         # NonStop-UX NCC 3.20
19293         # FIXME: insert proper C++ library support
19294         ld_shlibs_CXX=no
19295         ;;
19296       *)
19297         # FIXME: insert proper C++ library support
19298         ld_shlibs_CXX=no
19299         ;;
19300     esac
19301     ;;
19302   vxworks*)
19303     # FIXME: insert proper C++ library support
19304     ld_shlibs_CXX=no
19305     ;;
19306   *)
19307     # FIXME: insert proper C++ library support
19308     ld_shlibs_CXX=no
19309     ;;
19310 esac
19311 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19312 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19313 test "$ld_shlibs_CXX" = no && can_build_shared=no
19314
19315 GCC_CXX="$GXX"
19316 LD_CXX="$LD"
19317
19318
19319 cat > conftest.$ac_ext <<EOF
19320 class Foo
19321 {
19322 public:
19323   Foo (void) { a = 0; }
19324 private:
19325   int a;
19326 };
19327 EOF
19328
19329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19330   (eval $ac_compile) 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; then
19334   # Parse the compiler output and extract the necessary
19335   # objects, libraries and library flags.
19336
19337   # Sentinel used to keep track of whether or not we are before
19338   # the conftest object file.
19339   pre_test_object_deps_done=no
19340
19341   # The `*' in the case matches for architectures that use `case' in
19342   # $output_verbose_cmd can trigger glob expansion during the loop
19343   # eval without this substitution.
19344   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19345
19346   for p in `eval $output_verbose_link_cmd`; do
19347     case $p in
19348
19349     -L* | -R* | -l*)
19350        # Some compilers place space between "-{L,R}" and the path.
19351        # Remove the space.
19352        if test $p = "-L" \
19353           || test $p = "-R"; then
19354          prev=$p
19355          continue
19356        else
19357          prev=
19358        fi
19359
19360        if test "$pre_test_object_deps_done" = no; then
19361          case $p in
19362          -L* | -R*)
19363            # Internal compiler library paths should come after those
19364            # provided the user.  The postdeps already come after the
19365            # user supplied libs so there is no need to process them.
19366            if test -z "$compiler_lib_search_path_CXX"; then
19367              compiler_lib_search_path_CXX="${prev}${p}"
19368            else
19369              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19370            fi
19371            ;;
19372          # The "-l" case would never come before the object being
19373          # linked, so don't bother handling this case.
19374          esac
19375        else
19376          if test -z "$postdeps_CXX"; then
19377            postdeps_CXX="${prev}${p}"
19378          else
19379            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19380          fi
19381        fi
19382        ;;
19383
19384     *.$objext)
19385        # This assumes that the test object file only shows up
19386        # once in the compiler output.
19387        if test "$p" = "conftest.$objext"; then
19388          pre_test_object_deps_done=yes
19389          continue
19390        fi
19391
19392        if test "$pre_test_object_deps_done" = no; then
19393          if test -z "$predep_objects_CXX"; then
19394            predep_objects_CXX="$p"
19395          else
19396            predep_objects_CXX="$predep_objects_CXX $p"
19397          fi
19398        else
19399          if test -z "$postdep_objects_CXX"; then
19400            postdep_objects_CXX="$p"
19401          else
19402            postdep_objects_CXX="$postdep_objects_CXX $p"
19403          fi
19404        fi
19405        ;;
19406
19407     *) ;; # Ignore the rest.
19408
19409     esac
19410   done
19411
19412   # Clean up.
19413   rm -f a.out a.exe
19414 else
19415   echo "libtool.m4: error: problem compiling CXX test program"
19416 fi
19417
19418 $rm -f confest.$objext
19419
19420 # PORTME: override above test on systems where it is broken
19421 case $host_os in
19422 interix3*)
19423   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19424   # hack all around it, let's just trust "g++" to DTRT.
19425   predep_objects_CXX=
19426   postdep_objects_CXX=
19427   postdeps_CXX=
19428   ;;
19429
19430 solaris*)
19431   case $cc_basename in
19432   CC*)
19433     # Adding this requires a known-good setup of shared libraries for
19434     # Sun compiler versions before 5.6, else PIC objects from an old
19435     # archive will be linked into the output, leading to subtle bugs.
19436     postdeps_CXX='-lCstd -lCrun'
19437     ;;
19438   esac
19439   ;;
19440 esac
19441
19442
19443 case " $postdeps_CXX " in
19444 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19445 esac
19446
19447 lt_prog_compiler_wl_CXX=
19448 lt_prog_compiler_pic_CXX=
19449 lt_prog_compiler_static_CXX=
19450
19451 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19453
19454   # C++ specific cases for pic, static, wl, etc.
19455   if test "$GXX" = yes; then
19456     lt_prog_compiler_wl_CXX='-Wl,'
19457     lt_prog_compiler_static_CXX='-static'
19458
19459     case $host_os in
19460     aix*)
19461       # All AIX code is PIC.
19462       if test "$host_cpu" = ia64; then
19463         # AIX 5 now supports IA64 processor
19464         lt_prog_compiler_static_CXX='-Bstatic'
19465       fi
19466       ;;
19467     amigaos*)
19468       # FIXME: we need at least 68020 code to build shared libraries, but
19469       # adding the `-m68020' flag to GCC prevents building anything better,
19470       # like `-m68040'.
19471       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19472       ;;
19473     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19474       # PIC is the default for these OSes.
19475       ;;
19476     mingw* | os2* | pw32*)
19477       # This hack is so that the source file can tell whether it is being
19478       # built for inclusion in a dll (and should export symbols for example).
19479       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19480       ;;
19481     darwin* | rhapsody*)
19482       # PIC is the default on this platform
19483       # Common symbols not allowed in MH_DYLIB files
19484       lt_prog_compiler_pic_CXX='-fno-common'
19485       ;;
19486     *djgpp*)
19487       # DJGPP does not support shared libraries at all
19488       lt_prog_compiler_pic_CXX=
19489       ;;
19490     interix3*)
19491       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19492       # Instead, we relocate shared libraries at runtime.
19493       ;;
19494     sysv4*MP*)
19495       if test -d /usr/nec; then
19496         lt_prog_compiler_pic_CXX=-Kconform_pic
19497       fi
19498       ;;
19499     hpux*)
19500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19501       # not for PA HP-UX.
19502       case $host_cpu in
19503       hppa*64*|ia64*)
19504         ;;
19505       *)
19506         lt_prog_compiler_pic_CXX='-fPIC'
19507         ;;
19508       esac
19509       ;;
19510     *)
19511       lt_prog_compiler_pic_CXX='-fPIC'
19512       ;;
19513     esac
19514   else
19515     case $host_os in
19516       aix4* | aix5*)
19517         # All AIX code is PIC.
19518         if test "$host_cpu" = ia64; then
19519           # AIX 5 now supports IA64 processor
19520           lt_prog_compiler_static_CXX='-Bstatic'
19521         else
19522           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19523         fi
19524         ;;
19525       chorus*)
19526         case $cc_basename in
19527         cxch68*)
19528           # Green Hills C++ Compiler
19529           # _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"
19530           ;;
19531         esac
19532         ;;
19533        darwin*)
19534          # PIC is the default on this platform
19535          # Common symbols not allowed in MH_DYLIB files
19536          case $cc_basename in
19537            xlc*)
19538            lt_prog_compiler_pic_CXX='-qnocommon'
19539            lt_prog_compiler_wl_CXX='-Wl,'
19540            ;;
19541          esac
19542        ;;
19543       dgux*)
19544         case $cc_basename in
19545           ec++*)
19546             lt_prog_compiler_pic_CXX='-KPIC'
19547             ;;
19548           ghcx*)
19549             # Green Hills C++ Compiler
19550             lt_prog_compiler_pic_CXX='-pic'
19551             ;;
19552           *)
19553             ;;
19554         esac
19555         ;;
19556       freebsd* | kfreebsd*-gnu | dragonfly*)
19557         # FreeBSD uses GNU C++
19558         ;;
19559       hpux9* | hpux10* | hpux11*)
19560         case $cc_basename in
19561           CC*)
19562             lt_prog_compiler_wl_CXX='-Wl,'
19563             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19564             if test "$host_cpu" != ia64; then
19565               lt_prog_compiler_pic_CXX='+Z'
19566             fi
19567             ;;
19568           aCC*)
19569             lt_prog_compiler_wl_CXX='-Wl,'
19570             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19571             case $host_cpu in
19572             hppa*64*|ia64*)
19573               # +Z the default
19574               ;;
19575             *)
19576               lt_prog_compiler_pic_CXX='+Z'
19577               ;;
19578             esac
19579             ;;
19580           *)
19581             ;;
19582         esac
19583         ;;
19584       interix*)
19585         # This is c89, which is MS Visual C++ (no shared libs)
19586         # Anyone wants to do a port?
19587         ;;
19588       irix5* | irix6* | nonstopux*)
19589         case $cc_basename in
19590           CC*)
19591             lt_prog_compiler_wl_CXX='-Wl,'
19592             lt_prog_compiler_static_CXX='-non_shared'
19593             # CC pic flag -KPIC is the default.
19594             ;;
19595           *)
19596             ;;
19597         esac
19598         ;;
19599       linux*)
19600         case $cc_basename in
19601           KCC*)
19602             # KAI C++ Compiler
19603             lt_prog_compiler_wl_CXX='--backend -Wl,'
19604             lt_prog_compiler_pic_CXX='-fPIC'
19605             ;;
19606           icpc* | ecpc*)
19607             # Intel C++
19608             lt_prog_compiler_wl_CXX='-Wl,'
19609             lt_prog_compiler_pic_CXX='-KPIC'
19610             lt_prog_compiler_static_CXX='-static'
19611             ;;
19612           pgCC*)
19613             # Portland Group C++ compiler.
19614             lt_prog_compiler_wl_CXX='-Wl,'
19615             lt_prog_compiler_pic_CXX='-fpic'
19616             lt_prog_compiler_static_CXX='-Bstatic'
19617             ;;
19618           cxx*)
19619             # Compaq C++
19620             # Make sure the PIC flag is empty.  It appears that all Alpha
19621             # Linux and Compaq Tru64 Unix objects are PIC.
19622             lt_prog_compiler_pic_CXX=
19623             lt_prog_compiler_static_CXX='-non_shared'
19624             ;;
19625           *)
19626             ;;
19627         esac
19628         ;;
19629       lynxos*)
19630         ;;
19631       m88k*)
19632         ;;
19633       mvs*)
19634         case $cc_basename in
19635           cxx*)
19636             lt_prog_compiler_pic_CXX='-W c,exportall'
19637             ;;
19638           *)
19639             ;;
19640         esac
19641         ;;
19642       netbsd*)
19643         ;;
19644       osf3* | osf4* | osf5*)
19645         case $cc_basename in
19646           KCC*)
19647             lt_prog_compiler_wl_CXX='--backend -Wl,'
19648             ;;
19649           RCC*)
19650             # Rational C++ 2.4.1
19651             lt_prog_compiler_pic_CXX='-pic'
19652             ;;
19653           cxx*)
19654             # Digital/Compaq C++
19655             lt_prog_compiler_wl_CXX='-Wl,'
19656             # Make sure the PIC flag is empty.  It appears that all Alpha
19657             # Linux and Compaq Tru64 Unix objects are PIC.
19658             lt_prog_compiler_pic_CXX=
19659             lt_prog_compiler_static_CXX='-non_shared'
19660             ;;
19661           *)
19662             ;;
19663         esac
19664         ;;
19665       psos*)
19666         ;;
19667       solaris*)
19668         case $cc_basename in
19669           CC*)
19670             # Sun C++ 4.2, 5.x and Centerline C++
19671             lt_prog_compiler_pic_CXX='-KPIC'
19672             lt_prog_compiler_static_CXX='-Bstatic'
19673             lt_prog_compiler_wl_CXX='-Qoption ld '
19674             ;;
19675           gcx*)
19676             # Green Hills C++ Compiler
19677             lt_prog_compiler_pic_CXX='-PIC'
19678             ;;
19679           *)
19680             ;;
19681         esac
19682         ;;
19683       sunos4*)
19684         case $cc_basename in
19685           CC*)
19686             # Sun C++ 4.x
19687             lt_prog_compiler_pic_CXX='-pic'
19688             lt_prog_compiler_static_CXX='-Bstatic'
19689             ;;
19690           lcc*)
19691             # Lucid
19692             lt_prog_compiler_pic_CXX='-pic'
19693             ;;
19694           *)
19695             ;;
19696         esac
19697         ;;
19698       tandem*)
19699         case $cc_basename in
19700           NCC*)
19701             # NonStop-UX NCC 3.20
19702             lt_prog_compiler_pic_CXX='-KPIC'
19703             ;;
19704           *)
19705             ;;
19706         esac
19707         ;;
19708       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19709         case $cc_basename in
19710           CC*)
19711             lt_prog_compiler_wl_CXX='-Wl,'
19712             lt_prog_compiler_pic_CXX='-KPIC'
19713             lt_prog_compiler_static_CXX='-Bstatic'
19714             ;;
19715         esac
19716         ;;
19717       vxworks*)
19718         ;;
19719       *)
19720         lt_prog_compiler_can_build_shared_CXX=no
19721         ;;
19722     esac
19723   fi
19724
19725 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19726 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19727
19728 #
19729 # Check to make sure the PIC flag actually works.
19730 #
19731 if test -n "$lt_prog_compiler_pic_CXX"; then
19732
19733 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19735 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19736   echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738   lt_prog_compiler_pic_works_CXX=no
19739   ac_outfile=conftest.$ac_objext
19740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19741    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19742    # Insert the option either (1) after the last *FLAGS variable, or
19743    # (2) before a word containing "conftest.", or (3) at the end.
19744    # Note that $ac_compile itself does not contain backslashes and begins
19745    # with a dollar sign (not a hyphen), so the echo should work correctly.
19746    # The option is referenced via a variable to avoid confusing sed.
19747    lt_compile=`echo "$ac_compile" | $SED \
19748    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19750    -e 's:$: $lt_compiler_flag:'`
19751    (eval echo "\"\$as_me:19751: $lt_compile\"" >&5)
19752    (eval "$lt_compile" 2>conftest.err)
19753    ac_status=$?
19754    cat conftest.err >&5
19755    echo "$as_me:19755: \$? = $ac_status" >&5
19756    if (exit $ac_status) && test -s "$ac_outfile"; then
19757      # The compiler can only warn and ignore the option if not recognized
19758      # So say no if there are warnings other than the usual output.
19759      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19760      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19761      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19762        lt_prog_compiler_pic_works_CXX=yes
19763      fi
19764    fi
19765    $rm conftest*
19766
19767 fi
19768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19769 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19770
19771 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19772     case $lt_prog_compiler_pic_CXX in
19773      "" | " "*) ;;
19774      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19775      esac
19776 else
19777     lt_prog_compiler_pic_CXX=
19778      lt_prog_compiler_can_build_shared_CXX=no
19779 fi
19780
19781 fi
19782 case $host_os in
19783   # For platforms which do not support PIC, -DPIC is meaningless:
19784   *djgpp*)
19785     lt_prog_compiler_pic_CXX=
19786     ;;
19787   *)
19788     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19789     ;;
19790 esac
19791
19792 #
19793 # Check to make sure the static flag actually works.
19794 #
19795 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19796 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19797 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19798 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   lt_prog_compiler_static_works_CXX=no
19802    save_LDFLAGS="$LDFLAGS"
19803    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19804    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19805    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19806      # The linker can only warn and ignore the option if not recognized
19807      # So say no if there are warnings
19808      if test -s conftest.err; then
19809        # Append any errors to the config.log.
19810        cat conftest.err 1>&5
19811        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19812        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19813        if diff conftest.exp conftest.er2 >/dev/null; then
19814          lt_prog_compiler_static_works_CXX=yes
19815        fi
19816      else
19817        lt_prog_compiler_static_works_CXX=yes
19818      fi
19819    fi
19820    $rm conftest*
19821    LDFLAGS="$save_LDFLAGS"
19822
19823 fi
19824 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19825 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19826
19827 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19828     :
19829 else
19830     lt_prog_compiler_static_CXX=
19831 fi
19832
19833
19834 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19835 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19836 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839   lt_cv_prog_compiler_c_o_CXX=no
19840    $rm -r conftest 2>/dev/null
19841    mkdir conftest
19842    cd conftest
19843    mkdir out
19844    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19845
19846    lt_compiler_flag="-o out/conftest2.$ac_objext"
19847    # Insert the option either (1) after the last *FLAGS variable, or
19848    # (2) before a word containing "conftest.", or (3) at the end.
19849    # Note that $ac_compile itself does not contain backslashes and begins
19850    # with a dollar sign (not a hyphen), so the echo should work correctly.
19851    lt_compile=`echo "$ac_compile" | $SED \
19852    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19853    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19854    -e 's:$: $lt_compiler_flag:'`
19855    (eval echo "\"\$as_me:19855: $lt_compile\"" >&5)
19856    (eval "$lt_compile" 2>out/conftest.err)
19857    ac_status=$?
19858    cat out/conftest.err >&5
19859    echo "$as_me:19859: \$? = $ac_status" >&5
19860    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19861    then
19862      # The compiler can only warn and ignore the option if not recognized
19863      # So say no if there are warnings
19864      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19865      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19866      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19867        lt_cv_prog_compiler_c_o_CXX=yes
19868      fi
19869    fi
19870    chmod u+w . 2>&5
19871    $rm conftest*
19872    # SGI C++ compiler will create directory out/ii_files/ for
19873    # template instantiation
19874    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19875    $rm out/* && rmdir out
19876    cd ..
19877    rmdir conftest
19878    $rm conftest*
19879
19880 fi
19881 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19882 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19883
19884
19885 hard_links="nottested"
19886 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19887   # do not overwrite the value of need_locks provided by the user
19888   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19889 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19890   hard_links=yes
19891   $rm conftest*
19892   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19893   touch conftest.a
19894   ln conftest.a conftest.b 2>&5 || hard_links=no
19895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19896   { echo "$as_me:$LINENO: result: $hard_links" >&5
19897 echo "${ECHO_T}$hard_links" >&6; }
19898   if test "$hard_links" = no; then
19899     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19900 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19901     need_locks=warn
19902   fi
19903 else
19904   need_locks=no
19905 fi
19906
19907 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19908 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19909
19910   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19911   case $host_os in
19912   aix4* | aix5*)
19913     # If we're using GNU nm, then we don't want the "-C" option.
19914     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19915     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19916       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'
19917     else
19918       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'
19919     fi
19920     ;;
19921   pw32*)
19922     export_symbols_cmds_CXX="$ltdll_cmds"
19923   ;;
19924   cygwin* | mingw*)
19925     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'
19926   ;;
19927   *)
19928     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19929   ;;
19930   esac
19931
19932 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19933 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19934 test "$ld_shlibs_CXX" = no && can_build_shared=no
19935
19936 #
19937 # Do we need to explicitly link libc?
19938 #
19939 case "x$archive_cmds_need_lc_CXX" in
19940 x|xyes)
19941   # Assume -lc should be added
19942   archive_cmds_need_lc_CXX=yes
19943
19944   if test "$enable_shared" = yes && test "$GCC" = yes; then
19945     case $archive_cmds_CXX in
19946     *'~'*)
19947       # FIXME: we may have to deal with multi-command sequences.
19948       ;;
19949     '$CC '*)
19950       # Test whether the compiler implicitly links with -lc since on some
19951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19952       # to ld, don't add -lc before -lgcc.
19953       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19955       $rm conftest*
19956       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19957
19958       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959   (eval $ac_compile) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } 2>conftest.err; then
19963         soname=conftest
19964         lib=conftest
19965         libobjs=conftest.$ac_objext
19966         deplibs=
19967         wl=$lt_prog_compiler_wl_CXX
19968         pic_flag=$lt_prog_compiler_pic_CXX
19969         compiler_flags=-v
19970         linker_flags=-v
19971         verstring=
19972         output_objdir=.
19973         libname=conftest
19974         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19975         allow_undefined_flag_CXX=
19976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19977   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }
19981         then
19982           archive_cmds_need_lc_CXX=no
19983         else
19984           archive_cmds_need_lc_CXX=yes
19985         fi
19986         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19987       else
19988         cat conftest.err 1>&5
19989       fi
19990       $rm conftest*
19991       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19992 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19993       ;;
19994     esac
19995   fi
19996   ;;
19997 esac
19998
19999 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20001 library_names_spec=
20002 libname_spec='lib$name'
20003 soname_spec=
20004 shrext_cmds=".so"
20005 postinstall_cmds=
20006 postuninstall_cmds=
20007 finish_cmds=
20008 finish_eval=
20009 shlibpath_var=
20010 shlibpath_overrides_runpath=unknown
20011 version_type=none
20012 dynamic_linker="$host_os ld.so"
20013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20014 if test "$GCC" = yes; then
20015   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20016   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20017     # if the path contains ";" then we assume it to be the separator
20018     # otherwise default to the standard path separator (i.e. ":") - it is
20019     # assumed that no part of a normal pathname contains ";" but that should
20020     # okay in the real world where ";" in dirpaths is itself problematic.
20021     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022   else
20023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20024   fi
20025 else
20026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20027 fi
20028 need_lib_prefix=unknown
20029 hardcode_into_libs=no
20030
20031 # when you set need_version to no, make sure it does not cause -set_version
20032 # flags to be left without arguments
20033 need_version=unknown
20034
20035 case $host_os in
20036 aix3*)
20037   version_type=linux
20038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20039   shlibpath_var=LIBPATH
20040
20041   # AIX 3 has no versioning support, so we append a major version to the name.
20042   soname_spec='${libname}${release}${shared_ext}$major'
20043   ;;
20044
20045 aix4* | aix5*)
20046   version_type=linux
20047   need_lib_prefix=no
20048   need_version=no
20049   hardcode_into_libs=yes
20050   if test "$host_cpu" = ia64; then
20051     # AIX 5 supports IA64
20052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20053     shlibpath_var=LD_LIBRARY_PATH
20054   else
20055     # With GCC up to 2.95.x, collect2 would create an import file
20056     # for dependence libraries.  The import file would start with
20057     # the line `#! .'.  This would cause the generated library to
20058     # depend on `.', always an invalid library.  This was fixed in
20059     # development snapshots of GCC prior to 3.0.
20060     case $host_os in
20061       aix4 | aix4.[01] | aix4.[01].*)
20062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20063            echo ' yes '
20064            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20065         :
20066       else
20067         can_build_shared=no
20068       fi
20069       ;;
20070     esac
20071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20072     # soname into executable. Probably we can add versioning support to
20073     # collect2, so additional links can be useful in future.
20074     if test "$aix_use_runtimelinking" = yes; then
20075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20076       # instead of lib<name>.a to let people know that these are not
20077       # typical AIX shared libraries.
20078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20079     else
20080       # We preserve .a as extension for shared libraries through AIX4.2
20081       # and later when we are not doing run time linking.
20082       library_names_spec='${libname}${release}.a $libname.a'
20083       soname_spec='${libname}${release}${shared_ext}$major'
20084     fi
20085     shlibpath_var=LIBPATH
20086   fi
20087   ;;
20088
20089 amigaos*)
20090   library_names_spec='$libname.ixlibrary $libname.a'
20091   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20092   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'
20093   ;;
20094
20095 beos*)
20096   library_names_spec='${libname}${shared_ext}'
20097   dynamic_linker="$host_os ld.so"
20098   shlibpath_var=LIBRARY_PATH
20099   ;;
20100
20101 bsdi[45]*)
20102   version_type=linux
20103   need_version=no
20104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20105   soname_spec='${libname}${release}${shared_ext}$major'
20106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20107   shlibpath_var=LD_LIBRARY_PATH
20108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20110   # the default ld.so.conf also contains /usr/contrib/lib and
20111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20112   # libtool to hard-code these into programs
20113   ;;
20114
20115 cygwin* | mingw* | pw32*)
20116   version_type=windows
20117   shrext_cmds=".dll"
20118   need_version=no
20119   need_lib_prefix=no
20120
20121   case $GCC,$host_os in
20122   yes,cygwin* | yes,mingw* | yes,pw32*)
20123     library_names_spec='$libname.dll.a'
20124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20125     postinstall_cmds='base_file=`basename \${file}`~
20126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20127       dldir=$destdir/`dirname \$dlpath`~
20128       test -d \$dldir || mkdir -p \$dldir~
20129       $install_prog $dir/$dlname \$dldir/$dlname~
20130       chmod a+x \$dldir/$dlname'
20131     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20132       dlpath=$dir/\$dldll~
20133        $rm \$dlpath'
20134     shlibpath_overrides_runpath=yes
20135
20136     case $host_os in
20137     cygwin*)
20138       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20139       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20140       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20141       ;;
20142     mingw*)
20143       # MinGW DLLs use traditional 'lib' prefix
20144       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20145       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20146       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20147         # It is most probably a Windows format PATH printed by
20148         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20149         # path with ; separators, and with drive letters. We can handle the
20150         # drive letters (cygwin fileutils understands them), so leave them,
20151         # especially as we might pass files found there to a mingw objdump,
20152         # which wouldn't understand a cygwinified path. Ahh.
20153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20154       else
20155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20156       fi
20157       ;;
20158     pw32*)
20159       # pw32 DLLs use 'pw' prefix rather than 'lib'
20160       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20161       ;;
20162     esac
20163     ;;
20164
20165   *)
20166     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20167     ;;
20168   esac
20169   dynamic_linker='Win32 ld.exe'
20170   # FIXME: first we should search . and the directory the executable is in
20171   shlibpath_var=PATH
20172   ;;
20173
20174 darwin* | rhapsody*)
20175   dynamic_linker="$host_os dyld"
20176   version_type=darwin
20177   need_lib_prefix=no
20178   need_version=no
20179   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20180   soname_spec='${libname}${release}${major}$shared_ext'
20181   shlibpath_overrides_runpath=yes
20182   shlibpath_var=DYLD_LIBRARY_PATH
20183   shrext_cmds='.dylib'
20184   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20185   if test "$GCC" = yes; then
20186     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"`
20187   else
20188     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20189   fi
20190   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20191   ;;
20192
20193 dgux*)
20194   version_type=linux
20195   need_lib_prefix=no
20196   need_version=no
20197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20198   soname_spec='${libname}${release}${shared_ext}$major'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   ;;
20201
20202 freebsd1*)
20203   dynamic_linker=no
20204   ;;
20205
20206 kfreebsd*-gnu)
20207   version_type=linux
20208   need_lib_prefix=no
20209   need_version=no
20210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20211   soname_spec='${libname}${release}${shared_ext}$major'
20212   shlibpath_var=LD_LIBRARY_PATH
20213   shlibpath_overrides_runpath=no
20214   hardcode_into_libs=yes
20215   dynamic_linker='GNU ld.so'
20216   ;;
20217
20218 freebsd* | dragonfly*)
20219   # DragonFly does not have aout.  When/if they implement a new
20220   # versioning mechanism, adjust this.
20221   if test -x /usr/bin/objformat; then
20222     objformat=`/usr/bin/objformat`
20223   else
20224     case $host_os in
20225     freebsd[123]*) objformat=aout ;;
20226     *) objformat=elf ;;
20227     esac
20228   fi
20229   version_type=freebsd-$objformat
20230   case $version_type in
20231     freebsd-elf*)
20232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20233       need_version=no
20234       need_lib_prefix=no
20235       ;;
20236     freebsd-*)
20237       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20238       need_version=yes
20239       ;;
20240   esac
20241   shlibpath_var=LD_LIBRARY_PATH
20242   case $host_os in
20243   freebsd2*)
20244     shlibpath_overrides_runpath=yes
20245     ;;
20246   freebsd3.[01]* | freebsdelf3.[01]*)
20247     shlibpath_overrides_runpath=yes
20248     hardcode_into_libs=yes
20249     ;;
20250   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20251   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20252     shlibpath_overrides_runpath=no
20253     hardcode_into_libs=yes
20254     ;;
20255   freebsd*) # from 4.6 on
20256     shlibpath_overrides_runpath=yes
20257     hardcode_into_libs=yes
20258     ;;
20259   esac
20260   ;;
20261
20262 gnu*)
20263   version_type=linux
20264   need_lib_prefix=no
20265   need_version=no
20266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20267   soname_spec='${libname}${release}${shared_ext}$major'
20268   shlibpath_var=LD_LIBRARY_PATH
20269   hardcode_into_libs=yes
20270   ;;
20271
20272 hpux9* | hpux10* | hpux11*)
20273   # Give a soname corresponding to the major version so that dld.sl refuses to
20274   # link against other versions.
20275   version_type=sunos
20276   need_lib_prefix=no
20277   need_version=no
20278   case $host_cpu in
20279   ia64*)
20280     shrext_cmds='.so'
20281     hardcode_into_libs=yes
20282     dynamic_linker="$host_os dld.so"
20283     shlibpath_var=LD_LIBRARY_PATH
20284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286     soname_spec='${libname}${release}${shared_ext}$major'
20287     if test "X$HPUX_IA64_MODE" = X32; then
20288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20289     else
20290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20291     fi
20292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20293     ;;
20294    hppa*64*)
20295      shrext_cmds='.sl'
20296      hardcode_into_libs=yes
20297      dynamic_linker="$host_os dld.sl"
20298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20304      ;;
20305    *)
20306     shrext_cmds='.sl'
20307     dynamic_linker="$host_os dld.sl"
20308     shlibpath_var=SHLIB_PATH
20309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311     soname_spec='${libname}${release}${shared_ext}$major'
20312     ;;
20313   esac
20314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20315   postinstall_cmds='chmod 555 $lib'
20316   ;;
20317
20318 interix3*)
20319   version_type=linux
20320   need_lib_prefix=no
20321   need_version=no
20322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20323   soname_spec='${libname}${release}${shared_ext}$major'
20324   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20325   shlibpath_var=LD_LIBRARY_PATH
20326   shlibpath_overrides_runpath=no
20327   hardcode_into_libs=yes
20328   ;;
20329
20330 irix5* | irix6* | nonstopux*)
20331   case $host_os in
20332     nonstopux*) version_type=nonstopux ;;
20333     *)
20334         if test "$lt_cv_prog_gnu_ld" = yes; then
20335                 version_type=linux
20336         else
20337                 version_type=irix
20338         fi ;;
20339   esac
20340   need_lib_prefix=no
20341   need_version=no
20342   soname_spec='${libname}${release}${shared_ext}$major'
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20344   case $host_os in
20345   irix5* | nonstopux*)
20346     libsuff= shlibsuff=
20347     ;;
20348   *)
20349     case $LD in # libtool.m4 will add one of these switches to LD
20350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20351       libsuff= shlibsuff= libmagic=32-bit;;
20352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20353       libsuff=32 shlibsuff=N32 libmagic=N32;;
20354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20356     *) libsuff= shlibsuff= libmagic=never-match;;
20357     esac
20358     ;;
20359   esac
20360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20361   shlibpath_overrides_runpath=no
20362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20364   hardcode_into_libs=yes
20365   ;;
20366
20367 # No shared lib support for Linux oldld, aout, or coff.
20368 linux*oldld* | linux*aout* | linux*coff*)
20369   dynamic_linker=no
20370   ;;
20371
20372 # This must be Linux ELF.
20373 linux*)
20374   version_type=linux
20375   need_lib_prefix=no
20376   need_version=no
20377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378   soname_spec='${libname}${release}${shared_ext}$major'
20379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20380   shlibpath_var=LD_LIBRARY_PATH
20381   shlibpath_overrides_runpath=no
20382   # This implies no fast_install, which is unacceptable.
20383   # Some rework will be needed to allow for fast_install
20384   # before this can be enabled.
20385   hardcode_into_libs=yes
20386
20387   # Append ld.so.conf contents to the search path
20388   if test -f /etc/ld.so.conf; then
20389     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' ' '`
20390     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20391   fi
20392
20393   # We used to test for /lib/ld.so.1 and disable shared libraries on
20394   # powerpc, because MkLinux only supported shared libraries with the
20395   # GNU dynamic linker.  Since this was broken with cross compilers,
20396   # most powerpc-linux boxes support dynamic linking these days and
20397   # people can always --disable-shared, the test was removed, and we
20398   # assume the GNU/Linux dynamic linker is in use.
20399   dynamic_linker='GNU/Linux ld.so'
20400   ;;
20401
20402 knetbsd*-gnu)
20403   version_type=linux
20404   need_lib_prefix=no
20405   need_version=no
20406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20407   soname_spec='${libname}${release}${shared_ext}$major'
20408   shlibpath_var=LD_LIBRARY_PATH
20409   shlibpath_overrides_runpath=no
20410   hardcode_into_libs=yes
20411   dynamic_linker='GNU ld.so'
20412   ;;
20413
20414 netbsd*)
20415   version_type=sunos
20416   need_lib_prefix=no
20417   need_version=no
20418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20421     dynamic_linker='NetBSD (a.out) ld.so'
20422   else
20423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20424     soname_spec='${libname}${release}${shared_ext}$major'
20425     dynamic_linker='NetBSD ld.elf_so'
20426   fi
20427   shlibpath_var=LD_LIBRARY_PATH
20428   shlibpath_overrides_runpath=yes
20429   hardcode_into_libs=yes
20430   ;;
20431
20432 newsos6)
20433   version_type=linux
20434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435   shlibpath_var=LD_LIBRARY_PATH
20436   shlibpath_overrides_runpath=yes
20437   ;;
20438
20439 nto-qnx*)
20440   version_type=linux
20441   need_lib_prefix=no
20442   need_version=no
20443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20444   soname_spec='${libname}${release}${shared_ext}$major'
20445   shlibpath_var=LD_LIBRARY_PATH
20446   shlibpath_overrides_runpath=yes
20447   ;;
20448
20449 openbsd*)
20450   version_type=sunos
20451   sys_lib_dlsearch_path_spec="/usr/lib"
20452   need_lib_prefix=no
20453   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20454   case $host_os in
20455     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20456     *)                         need_version=no  ;;
20457   esac
20458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460   shlibpath_var=LD_LIBRARY_PATH
20461   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20462     case $host_os in
20463       openbsd2.[89] | openbsd2.[89].*)
20464         shlibpath_overrides_runpath=no
20465         ;;
20466       *)
20467         shlibpath_overrides_runpath=yes
20468         ;;
20469       esac
20470   else
20471     shlibpath_overrides_runpath=yes
20472   fi
20473   ;;
20474
20475 os2*)
20476   libname_spec='$name'
20477   shrext_cmds=".dll"
20478   need_lib_prefix=no
20479   library_names_spec='$libname${shared_ext} $libname.a'
20480   dynamic_linker='OS/2 ld.exe'
20481   shlibpath_var=LIBPATH
20482   ;;
20483
20484 osf3* | osf4* | osf5*)
20485   version_type=osf
20486   need_lib_prefix=no
20487   need_version=no
20488   soname_spec='${libname}${release}${shared_ext}$major'
20489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490   shlibpath_var=LD_LIBRARY_PATH
20491   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20492   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20493   ;;
20494
20495 solaris*)
20496   version_type=linux
20497   need_lib_prefix=no
20498   need_version=no
20499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500   soname_spec='${libname}${release}${shared_ext}$major'
20501   shlibpath_var=LD_LIBRARY_PATH
20502   shlibpath_overrides_runpath=yes
20503   hardcode_into_libs=yes
20504   # ldd complains unless libraries are executable
20505   postinstall_cmds='chmod +x $lib'
20506   ;;
20507
20508 sunos4*)
20509   version_type=sunos
20510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20511   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20512   shlibpath_var=LD_LIBRARY_PATH
20513   shlibpath_overrides_runpath=yes
20514   if test "$with_gnu_ld" = yes; then
20515     need_lib_prefix=no
20516   fi
20517   need_version=yes
20518   ;;
20519
20520 sysv4 | sysv4.3*)
20521   version_type=linux
20522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523   soname_spec='${libname}${release}${shared_ext}$major'
20524   shlibpath_var=LD_LIBRARY_PATH
20525   case $host_vendor in
20526     sni)
20527       shlibpath_overrides_runpath=no
20528       need_lib_prefix=no
20529       export_dynamic_flag_spec='${wl}-Blargedynsym'
20530       runpath_var=LD_RUN_PATH
20531       ;;
20532     siemens)
20533       need_lib_prefix=no
20534       ;;
20535     motorola)
20536       need_lib_prefix=no
20537       need_version=no
20538       shlibpath_overrides_runpath=no
20539       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20540       ;;
20541   esac
20542   ;;
20543
20544 sysv4*MP*)
20545   if test -d /usr/nec ;then
20546     version_type=linux
20547     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20548     soname_spec='$libname${shared_ext}.$major'
20549     shlibpath_var=LD_LIBRARY_PATH
20550   fi
20551   ;;
20552
20553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20554   version_type=freebsd-elf
20555   need_lib_prefix=no
20556   need_version=no
20557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20558   soname_spec='${libname}${release}${shared_ext}$major'
20559   shlibpath_var=LD_LIBRARY_PATH
20560   hardcode_into_libs=yes
20561   if test "$with_gnu_ld" = yes; then
20562     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20563     shlibpath_overrides_runpath=no
20564   else
20565     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20566     shlibpath_overrides_runpath=yes
20567     case $host_os in
20568       sco3.2v5*)
20569         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20570         ;;
20571     esac
20572   fi
20573   sys_lib_dlsearch_path_spec='/usr/lib'
20574   ;;
20575
20576 uts4*)
20577   version_type=linux
20578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579   soname_spec='${libname}${release}${shared_ext}$major'
20580   shlibpath_var=LD_LIBRARY_PATH
20581   ;;
20582
20583 *)
20584   dynamic_linker=no
20585   ;;
20586 esac
20587 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20588 echo "${ECHO_T}$dynamic_linker" >&6; }
20589 test "$dynamic_linker" = no && can_build_shared=no
20590
20591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20592 if test "$GCC" = yes; then
20593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20594 fi
20595
20596 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20598 hardcode_action_CXX=
20599 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20600    test -n "$runpath_var_CXX" || \
20601    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20602
20603   # We can hardcode non-existant directories.
20604   if test "$hardcode_direct_CXX" != no &&
20605      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20606      # have to relink, otherwise we might link with an installed library
20607      # when we should be linking with a yet-to-be-installed one
20608      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20609      test "$hardcode_minus_L_CXX" != no; then
20610     # Linking always hardcodes the temporary library directory.
20611     hardcode_action_CXX=relink
20612   else
20613     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20614     hardcode_action_CXX=immediate
20615   fi
20616 else
20617   # We cannot hardcode anything, or else we can only hardcode existing
20618   # directories.
20619   hardcode_action_CXX=unsupported
20620 fi
20621 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20622 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20623
20624 if test "$hardcode_action_CXX" = relink; then
20625   # Fast installation is not supported
20626   enable_fast_install=no
20627 elif test "$shlibpath_overrides_runpath" = yes ||
20628      test "$enable_shared" = no; then
20629   # Fast installation is not necessary
20630   enable_fast_install=needless
20631 fi
20632
20633
20634 # The else clause should only fire when bootstrapping the
20635 # libtool distribution, otherwise you forgot to ship ltmain.sh
20636 # with your package, and you will get complaints that there are
20637 # no rules to generate ltmain.sh.
20638 if test -f "$ltmain"; then
20639   # See if we are running on zsh, and set the options which allow our commands through
20640   # without removal of \ escapes.
20641   if test -n "${ZSH_VERSION+set}" ; then
20642     setopt NO_GLOB_SUBST
20643   fi
20644   # Now quote all the things that may contain metacharacters while being
20645   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20646   # variables and quote the copies for generation of the libtool script.
20647   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20648     SED SHELL STRIP \
20649     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20650     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20651     deplibs_check_method reload_flag reload_cmds need_locks \
20652     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20653     lt_cv_sys_global_symbol_to_c_name_address \
20654     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20655     old_postinstall_cmds old_postuninstall_cmds \
20656     compiler_CXX \
20657     CC_CXX \
20658     LD_CXX \
20659     lt_prog_compiler_wl_CXX \
20660     lt_prog_compiler_pic_CXX \
20661     lt_prog_compiler_static_CXX \
20662     lt_prog_compiler_no_builtin_flag_CXX \
20663     export_dynamic_flag_spec_CXX \
20664     thread_safe_flag_spec_CXX \
20665     whole_archive_flag_spec_CXX \
20666     enable_shared_with_static_runtimes_CXX \
20667     old_archive_cmds_CXX \
20668     old_archive_from_new_cmds_CXX \
20669     predep_objects_CXX \
20670     postdep_objects_CXX \
20671     predeps_CXX \
20672     postdeps_CXX \
20673     compiler_lib_search_path_CXX \
20674     archive_cmds_CXX \
20675     archive_expsym_cmds_CXX \
20676     postinstall_cmds_CXX \
20677     postuninstall_cmds_CXX \
20678     old_archive_from_expsyms_cmds_CXX \
20679     allow_undefined_flag_CXX \
20680     no_undefined_flag_CXX \
20681     export_symbols_cmds_CXX \
20682     hardcode_libdir_flag_spec_CXX \
20683     hardcode_libdir_flag_spec_ld_CXX \
20684     hardcode_libdir_separator_CXX \
20685     hardcode_automatic_CXX \
20686     module_cmds_CXX \
20687     module_expsym_cmds_CXX \
20688     lt_cv_prog_compiler_c_o_CXX \
20689     exclude_expsyms_CXX \
20690     include_expsyms_CXX; do
20691
20692     case $var in
20693     old_archive_cmds_CXX | \
20694     old_archive_from_new_cmds_CXX | \
20695     archive_cmds_CXX | \
20696     archive_expsym_cmds_CXX | \
20697     module_cmds_CXX | \
20698     module_expsym_cmds_CXX | \
20699     old_archive_from_expsyms_cmds_CXX | \
20700     export_symbols_cmds_CXX | \
20701     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20702     postinstall_cmds | postuninstall_cmds | \
20703     old_postinstall_cmds | old_postuninstall_cmds | \
20704     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20705       # Double-quote double-evaled strings.
20706       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20707       ;;
20708     *)
20709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20710       ;;
20711     esac
20712   done
20713
20714   case $lt_echo in
20715   *'\$0 --fallback-echo"')
20716     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20717     ;;
20718   esac
20719
20720 cfgfile="$ofile"
20721
20722   cat <<__EOF__ >> "$cfgfile"
20723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20724
20725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20726
20727 # Shell to use when invoking shell scripts.
20728 SHELL=$lt_SHELL
20729
20730 # Whether or not to build shared libraries.
20731 build_libtool_libs=$enable_shared
20732
20733 # Whether or not to build static libraries.
20734 build_old_libs=$enable_static
20735
20736 # Whether or not to add -lc for building shared libraries.
20737 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20738
20739 # Whether or not to disallow shared libs when runtime libs are static
20740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20741
20742 # Whether or not to optimize for fast installation.
20743 fast_install=$enable_fast_install
20744
20745 # The host system.
20746 host_alias=$host_alias
20747 host=$host
20748 host_os=$host_os
20749
20750 # The build system.
20751 build_alias=$build_alias
20752 build=$build
20753 build_os=$build_os
20754
20755 # An echo program that does not interpret backslashes.
20756 echo=$lt_echo
20757
20758 # The archiver.
20759 AR=$lt_AR
20760 AR_FLAGS=$lt_AR_FLAGS
20761
20762 # A C compiler.
20763 LTCC=$lt_LTCC
20764
20765 # LTCC compiler flags.
20766 LTCFLAGS=$lt_LTCFLAGS
20767
20768 # A language-specific compiler.
20769 CC=$lt_compiler_CXX
20770
20771 # Is the compiler the GNU C compiler?
20772 with_gcc=$GCC_CXX
20773
20774 # An ERE matcher.
20775 EGREP=$lt_EGREP
20776
20777 # The linker used to build libraries.
20778 LD=$lt_LD_CXX
20779
20780 # Whether we need hard or soft links.
20781 LN_S=$lt_LN_S
20782
20783 # A BSD-compatible nm program.
20784 NM=$lt_NM
20785
20786 # A symbol stripping program
20787 STRIP=$lt_STRIP
20788
20789 # Used to examine libraries when file_magic_cmd begins "file"
20790 MAGIC_CMD=$MAGIC_CMD
20791
20792 # Used on cygwin: DLL creation program.
20793 DLLTOOL="$DLLTOOL"
20794
20795 # Used on cygwin: object dumper.
20796 OBJDUMP="$OBJDUMP"
20797
20798 # Used on cygwin: assembler.
20799 AS="$AS"
20800
20801 # The name of the directory that contains temporary libtool files.
20802 objdir=$objdir
20803
20804 # How to create reloadable object files.
20805 reload_flag=$lt_reload_flag
20806 reload_cmds=$lt_reload_cmds
20807
20808 # How to pass a linker flag through the compiler.
20809 wl=$lt_lt_prog_compiler_wl_CXX
20810
20811 # Object file suffix (normally "o").
20812 objext="$ac_objext"
20813
20814 # Old archive suffix (normally "a").
20815 libext="$libext"
20816
20817 # Shared library suffix (normally ".so").
20818 shrext_cmds='$shrext_cmds'
20819
20820 # Executable file suffix (normally "").
20821 exeext="$exeext"
20822
20823 # Additional compiler flags for building library objects.
20824 pic_flag=$lt_lt_prog_compiler_pic_CXX
20825 pic_mode=$pic_mode
20826
20827 # What is the maximum length of a command?
20828 max_cmd_len=$lt_cv_sys_max_cmd_len
20829
20830 # Does compiler simultaneously support -c and -o options?
20831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20832
20833 # Must we lock files when doing compilation?
20834 need_locks=$lt_need_locks
20835
20836 # Do we need the lib prefix for modules?
20837 need_lib_prefix=$need_lib_prefix
20838
20839 # Do we need a version for libraries?
20840 need_version=$need_version
20841
20842 # Whether dlopen is supported.
20843 dlopen_support=$enable_dlopen
20844
20845 # Whether dlopen of programs is supported.
20846 dlopen_self=$enable_dlopen_self
20847
20848 # Whether dlopen of statically linked programs is supported.
20849 dlopen_self_static=$enable_dlopen_self_static
20850
20851 # Compiler flag to prevent dynamic linking.
20852 link_static_flag=$lt_lt_prog_compiler_static_CXX
20853
20854 # Compiler flag to turn off builtin functions.
20855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20856
20857 # Compiler flag to allow reflexive dlopens.
20858 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20859
20860 # Compiler flag to generate shared objects directly from archives.
20861 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20862
20863 # Compiler flag to generate thread-safe objects.
20864 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20865
20866 # Library versioning type.
20867 version_type=$version_type
20868
20869 # Format of library name prefix.
20870 libname_spec=$lt_libname_spec
20871
20872 # List of archive names.  First name is the real one, the rest are links.
20873 # The last name is the one that the linker finds with -lNAME.
20874 library_names_spec=$lt_library_names_spec
20875
20876 # The coded name of the library, if different from the real name.
20877 soname_spec=$lt_soname_spec
20878
20879 # Commands used to build and install an old-style archive.
20880 RANLIB=$lt_RANLIB
20881 old_archive_cmds=$lt_old_archive_cmds_CXX
20882 old_postinstall_cmds=$lt_old_postinstall_cmds
20883 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20884
20885 # Create an old-style archive from a shared archive.
20886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20887
20888 # Create a temporary old-style archive to link instead of a shared archive.
20889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20890
20891 # Commands used to build and install a shared archive.
20892 archive_cmds=$lt_archive_cmds_CXX
20893 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20894 postinstall_cmds=$lt_postinstall_cmds
20895 postuninstall_cmds=$lt_postuninstall_cmds
20896
20897 # Commands used to build a loadable module (assumed same as above if empty)
20898 module_cmds=$lt_module_cmds_CXX
20899 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20900
20901 # Commands to strip libraries.
20902 old_striplib=$lt_old_striplib
20903 striplib=$lt_striplib
20904
20905 # Dependencies to place before the objects being linked to create a
20906 # shared library.
20907 predep_objects=$lt_predep_objects_CXX
20908
20909 # Dependencies to place after the objects being linked to create a
20910 # shared library.
20911 postdep_objects=$lt_postdep_objects_CXX
20912
20913 # Dependencies to place before the objects being linked to create a
20914 # shared library.
20915 predeps=$lt_predeps_CXX
20916
20917 # Dependencies to place after the objects being linked to create a
20918 # shared library.
20919 postdeps=$lt_postdeps_CXX
20920
20921 # The library search path used internally by the compiler when linking
20922 # a shared library.
20923 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20924
20925 # Method to check whether dependent libraries are shared objects.
20926 deplibs_check_method=$lt_deplibs_check_method
20927
20928 # Command to use when deplibs_check_method == file_magic.
20929 file_magic_cmd=$lt_file_magic_cmd
20930
20931 # Flag that allows shared libraries with undefined symbols to be built.
20932 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20933
20934 # Flag that forces no undefined symbols.
20935 no_undefined_flag=$lt_no_undefined_flag_CXX
20936
20937 # Commands used to finish a libtool library installation in a directory.
20938 finish_cmds=$lt_finish_cmds
20939
20940 # Same as above, but a single script fragment to be evaled but not shown.
20941 finish_eval=$lt_finish_eval
20942
20943 # Take the output of nm and produce a listing of raw symbols and C names.
20944 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20945
20946 # Transform the output of nm in a proper C declaration
20947 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20948
20949 # Transform the output of nm in a C name address pair
20950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20951
20952 # This is the shared library runtime path variable.
20953 runpath_var=$runpath_var
20954
20955 # This is the shared library path variable.
20956 shlibpath_var=$shlibpath_var
20957
20958 # Is shlibpath searched before the hard-coded library search path?
20959 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20960
20961 # How to hardcode a shared library path into an executable.
20962 hardcode_action=$hardcode_action_CXX
20963
20964 # Whether we should hardcode library paths into libraries.
20965 hardcode_into_libs=$hardcode_into_libs
20966
20967 # Flag to hardcode \$libdir into a binary during linking.
20968 # This must work even if \$libdir does not exist.
20969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20970
20971 # If ld is used when linking, flag to hardcode \$libdir into
20972 # a binary during linking. This must work even if \$libdir does
20973 # not exist.
20974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20975
20976 # Whether we need a single -rpath flag with a separated argument.
20977 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20978
20979 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20980 # resulting binary.
20981 hardcode_direct=$hardcode_direct_CXX
20982
20983 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20984 # resulting binary.
20985 hardcode_minus_L=$hardcode_minus_L_CXX
20986
20987 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20988 # the resulting binary.
20989 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20990
20991 # Set to yes if building a shared library automatically hardcodes DIR into the library
20992 # and all subsequent libraries and executables linked against it.
20993 hardcode_automatic=$hardcode_automatic_CXX
20994
20995 # Variables whose values should be saved in libtool wrapper scripts and
20996 # restored at relink time.
20997 variables_saved_for_relink="$variables_saved_for_relink"
20998
20999 # Whether libtool must link a program against all its dependency libraries.
21000 link_all_deplibs=$link_all_deplibs_CXX
21001
21002 # Compile-time system search path for libraries
21003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21004
21005 # Run-time system search path for libraries
21006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21007
21008 # Fix the shell variable \$srcfile for the compiler.
21009 fix_srcfile_path="$fix_srcfile_path_CXX"
21010
21011 # Set to yes if exported symbols are required.
21012 always_export_symbols=$always_export_symbols_CXX
21013
21014 # The commands to list exported symbols.
21015 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21016
21017 # The commands to extract the exported symbol list from a shared archive.
21018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21019
21020 # Symbols that should not be listed in the preloaded symbols.
21021 exclude_expsyms=$lt_exclude_expsyms_CXX
21022
21023 # Symbols that must always be exported.
21024 include_expsyms=$lt_include_expsyms_CXX
21025
21026 # ### END LIBTOOL TAG CONFIG: $tagname
21027
21028 __EOF__
21029
21030
21031 else
21032   # If there is no Makefile yet, we rely on a make rule to execute
21033   # `config.status --recheck' to rerun these tests and create the
21034   # libtool script then.
21035   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21036   if test -f "$ltmain_in"; then
21037     test -f Makefile && make "$ltmain"
21038   fi
21039 fi
21040
21041
21042 ac_ext=c
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047
21048 CC=$lt_save_CC
21049 LDCXX=$LD
21050 LD=$lt_save_LD
21051 GCC=$lt_save_GCC
21052 with_gnu_ldcxx=$with_gnu_ld
21053 with_gnu_ld=$lt_save_with_gnu_ld
21054 lt_cv_path_LDCXX=$lt_cv_path_LD
21055 lt_cv_path_LD=$lt_save_path_LD
21056 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21057 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21058
21059         else
21060           tagname=""
21061         fi
21062         ;;
21063
21064       F77)
21065         if test -n "$F77" && test "X$F77" != "Xno"; then
21066
21067 ac_ext=f
21068 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21069 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21071
21072
21073 archive_cmds_need_lc_F77=no
21074 allow_undefined_flag_F77=
21075 always_export_symbols_F77=no
21076 archive_expsym_cmds_F77=
21077 export_dynamic_flag_spec_F77=
21078 hardcode_direct_F77=no
21079 hardcode_libdir_flag_spec_F77=
21080 hardcode_libdir_flag_spec_ld_F77=
21081 hardcode_libdir_separator_F77=
21082 hardcode_minus_L_F77=no
21083 hardcode_automatic_F77=no
21084 module_cmds_F77=
21085 module_expsym_cmds_F77=
21086 link_all_deplibs_F77=unknown
21087 old_archive_cmds_F77=$old_archive_cmds
21088 no_undefined_flag_F77=
21089 whole_archive_flag_spec_F77=
21090 enable_shared_with_static_runtimes_F77=no
21091
21092 # Source file extension for f77 test sources.
21093 ac_ext=f
21094
21095 # Object file extension for compiled f77 test sources.
21096 objext=o
21097 objext_F77=$objext
21098
21099 # Code to be used in simple compile tests
21100 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21101
21102 # Code to be used in simple link tests
21103 lt_simple_link_test_code="      program t\n      end\n"
21104
21105 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21106
21107 # If no C compiler was specified, use CC.
21108 LTCC=${LTCC-"$CC"}
21109
21110 # If no C compiler flags were specified, use CFLAGS.
21111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21112
21113 # Allow CC to be a program name with arguments.
21114 compiler=$CC
21115
21116
21117 # save warnings/boilerplate of simple test code
21118 ac_outfile=conftest.$ac_objext
21119 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21120 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21121 _lt_compiler_boilerplate=`cat conftest.err`
21122 $rm conftest*
21123
21124 ac_outfile=conftest.$ac_objext
21125 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21126 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21127 _lt_linker_boilerplate=`cat conftest.err`
21128 $rm conftest*
21129
21130
21131 # Allow CC to be a program name with arguments.
21132 lt_save_CC="$CC"
21133 CC=${F77-"f77"}
21134 compiler=$CC
21135 compiler_F77=$CC
21136 for cc_temp in $compiler""; do
21137   case $cc_temp in
21138     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21139     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21140     \-*) ;;
21141     *) break;;
21142   esac
21143 done
21144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21145
21146
21147 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21148 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21149 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21150 echo "${ECHO_T}$can_build_shared" >&6; }
21151
21152 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21153 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21154 test "$can_build_shared" = "no" && enable_shared=no
21155
21156 # On AIX, shared libraries and static libraries use the same namespace, and
21157 # are all built from PIC.
21158 case $host_os in
21159 aix3*)
21160   test "$enable_shared" = yes && enable_static=no
21161   if test -n "$RANLIB"; then
21162     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21163     postinstall_cmds='$RANLIB $lib'
21164   fi
21165   ;;
21166 aix4* | aix5*)
21167   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21168     test "$enable_shared" = yes && enable_static=no
21169   fi
21170   ;;
21171 esac
21172 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21173 echo "${ECHO_T}$enable_shared" >&6; }
21174
21175 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21176 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21177 # Make sure either enable_shared or enable_static is yes.
21178 test "$enable_shared" = yes || enable_static=yes
21179 { echo "$as_me:$LINENO: result: $enable_static" >&5
21180 echo "${ECHO_T}$enable_static" >&6; }
21181
21182 GCC_F77="$G77"
21183 LD_F77="$LD"
21184
21185 lt_prog_compiler_wl_F77=
21186 lt_prog_compiler_pic_F77=
21187 lt_prog_compiler_static_F77=
21188
21189 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21190 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21191
21192   if test "$GCC" = yes; then
21193     lt_prog_compiler_wl_F77='-Wl,'
21194     lt_prog_compiler_static_F77='-static'
21195
21196     case $host_os in
21197       aix*)
21198       # All AIX code is PIC.
21199       if test "$host_cpu" = ia64; then
21200         # AIX 5 now supports IA64 processor
21201         lt_prog_compiler_static_F77='-Bstatic'
21202       fi
21203       ;;
21204
21205     amigaos*)
21206       # FIXME: we need at least 68020 code to build shared libraries, but
21207       # adding the `-m68020' flag to GCC prevents building anything better,
21208       # like `-m68040'.
21209       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21210       ;;
21211
21212     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21213       # PIC is the default for these OSes.
21214       ;;
21215
21216     mingw* | pw32* | os2*)
21217       # This hack is so that the source file can tell whether it is being
21218       # built for inclusion in a dll (and should export symbols for example).
21219       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21220       ;;
21221
21222     darwin* | rhapsody*)
21223       # PIC is the default on this platform
21224       # Common symbols not allowed in MH_DYLIB files
21225       lt_prog_compiler_pic_F77='-fno-common'
21226       ;;
21227
21228     interix3*)
21229       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21230       # Instead, we relocate shared libraries at runtime.
21231       ;;
21232
21233     msdosdjgpp*)
21234       # Just because we use GCC doesn't mean we suddenly get shared libraries
21235       # on systems that don't support them.
21236       lt_prog_compiler_can_build_shared_F77=no
21237       enable_shared=no
21238       ;;
21239
21240     sysv4*MP*)
21241       if test -d /usr/nec; then
21242         lt_prog_compiler_pic_F77=-Kconform_pic
21243       fi
21244       ;;
21245
21246     hpux*)
21247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21248       # not for PA HP-UX.
21249       case $host_cpu in
21250       hppa*64*|ia64*)
21251         # +Z the default
21252         ;;
21253       *)
21254         lt_prog_compiler_pic_F77='-fPIC'
21255         ;;
21256       esac
21257       ;;
21258
21259     *)
21260       lt_prog_compiler_pic_F77='-fPIC'
21261       ;;
21262     esac
21263   else
21264     # PORTME Check for flag to pass linker flags through the system compiler.
21265     case $host_os in
21266     aix*)
21267       lt_prog_compiler_wl_F77='-Wl,'
21268       if test "$host_cpu" = ia64; then
21269         # AIX 5 now supports IA64 processor
21270         lt_prog_compiler_static_F77='-Bstatic'
21271       else
21272         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21273       fi
21274       ;;
21275       darwin*)
21276         # PIC is the default on this platform
21277         # Common symbols not allowed in MH_DYLIB files
21278        case $cc_basename in
21279          xlc*)
21280          lt_prog_compiler_pic_F77='-qnocommon'
21281          lt_prog_compiler_wl_F77='-Wl,'
21282          ;;
21283        esac
21284        ;;
21285
21286     mingw* | pw32* | os2*)
21287       # This hack is so that the source file can tell whether it is being
21288       # built for inclusion in a dll (and should export symbols for example).
21289       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21290       ;;
21291
21292     hpux9* | hpux10* | hpux11*)
21293       lt_prog_compiler_wl_F77='-Wl,'
21294       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21295       # not for PA HP-UX.
21296       case $host_cpu in
21297       hppa*64*|ia64*)
21298         # +Z the default
21299         ;;
21300       *)
21301         lt_prog_compiler_pic_F77='+Z'
21302         ;;
21303       esac
21304       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21305       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21306       ;;
21307
21308     irix5* | irix6* | nonstopux*)
21309       lt_prog_compiler_wl_F77='-Wl,'
21310       # PIC (with -KPIC) is the default.
21311       lt_prog_compiler_static_F77='-non_shared'
21312       ;;
21313
21314     newsos6)
21315       lt_prog_compiler_pic_F77='-KPIC'
21316       lt_prog_compiler_static_F77='-Bstatic'
21317       ;;
21318
21319     linux*)
21320       case $cc_basename in
21321       icc* | ecc*)
21322         lt_prog_compiler_wl_F77='-Wl,'
21323         lt_prog_compiler_pic_F77='-KPIC'
21324         lt_prog_compiler_static_F77='-static'
21325         ;;
21326       pgcc* | pgf77* | pgf90* | pgf95*)
21327         # Portland Group compilers (*not* the Pentium gcc compiler,
21328         # which looks to be a dead project)
21329         lt_prog_compiler_wl_F77='-Wl,'
21330         lt_prog_compiler_pic_F77='-fpic'
21331         lt_prog_compiler_static_F77='-Bstatic'
21332         ;;
21333       ccc*)
21334         lt_prog_compiler_wl_F77='-Wl,'
21335         # All Alpha code is PIC.
21336         lt_prog_compiler_static_F77='-non_shared'
21337         ;;
21338       esac
21339       ;;
21340
21341     osf3* | osf4* | osf5*)
21342       lt_prog_compiler_wl_F77='-Wl,'
21343       # All OSF/1 code is PIC.
21344       lt_prog_compiler_static_F77='-non_shared'
21345       ;;
21346
21347     solaris*)
21348       lt_prog_compiler_pic_F77='-KPIC'
21349       lt_prog_compiler_static_F77='-Bstatic'
21350       case $cc_basename in
21351       f77* | f90* | f95*)
21352         lt_prog_compiler_wl_F77='-Qoption ld ';;
21353       *)
21354         lt_prog_compiler_wl_F77='-Wl,';;
21355       esac
21356       ;;
21357
21358     sunos4*)
21359       lt_prog_compiler_wl_F77='-Qoption ld '
21360       lt_prog_compiler_pic_F77='-PIC'
21361       lt_prog_compiler_static_F77='-Bstatic'
21362       ;;
21363
21364     sysv4 | sysv4.2uw2* | sysv4.3*)
21365       lt_prog_compiler_wl_F77='-Wl,'
21366       lt_prog_compiler_pic_F77='-KPIC'
21367       lt_prog_compiler_static_F77='-Bstatic'
21368       ;;
21369
21370     sysv4*MP*)
21371       if test -d /usr/nec ;then
21372         lt_prog_compiler_pic_F77='-Kconform_pic'
21373         lt_prog_compiler_static_F77='-Bstatic'
21374       fi
21375       ;;
21376
21377     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21378       lt_prog_compiler_wl_F77='-Wl,'
21379       lt_prog_compiler_pic_F77='-KPIC'
21380       lt_prog_compiler_static_F77='-Bstatic'
21381       ;;
21382
21383     unicos*)
21384       lt_prog_compiler_wl_F77='-Wl,'
21385       lt_prog_compiler_can_build_shared_F77=no
21386       ;;
21387
21388     uts4*)
21389       lt_prog_compiler_pic_F77='-pic'
21390       lt_prog_compiler_static_F77='-Bstatic'
21391       ;;
21392
21393     *)
21394       lt_prog_compiler_can_build_shared_F77=no
21395       ;;
21396     esac
21397   fi
21398
21399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21400 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21401
21402 #
21403 # Check to make sure the PIC flag actually works.
21404 #
21405 if test -n "$lt_prog_compiler_pic_F77"; then
21406
21407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21409 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21410   echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412   lt_prog_compiler_pic_works_F77=no
21413   ac_outfile=conftest.$ac_objext
21414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21415    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21416    # Insert the option either (1) after the last *FLAGS variable, or
21417    # (2) before a word containing "conftest.", or (3) at the end.
21418    # Note that $ac_compile itself does not contain backslashes and begins
21419    # with a dollar sign (not a hyphen), so the echo should work correctly.
21420    # The option is referenced via a variable to avoid confusing sed.
21421    lt_compile=`echo "$ac_compile" | $SED \
21422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21424    -e 's:$: $lt_compiler_flag:'`
21425    (eval echo "\"\$as_me:21425: $lt_compile\"" >&5)
21426    (eval "$lt_compile" 2>conftest.err)
21427    ac_status=$?
21428    cat conftest.err >&5
21429    echo "$as_me:21429: \$? = $ac_status" >&5
21430    if (exit $ac_status) && test -s "$ac_outfile"; then
21431      # The compiler can only warn and ignore the option if not recognized
21432      # So say no if there are warnings other than the usual output.
21433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21436        lt_prog_compiler_pic_works_F77=yes
21437      fi
21438    fi
21439    $rm conftest*
21440
21441 fi
21442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21443 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21444
21445 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21446     case $lt_prog_compiler_pic_F77 in
21447      "" | " "*) ;;
21448      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21449      esac
21450 else
21451     lt_prog_compiler_pic_F77=
21452      lt_prog_compiler_can_build_shared_F77=no
21453 fi
21454
21455 fi
21456 case $host_os in
21457   # For platforms which do not support PIC, -DPIC is meaningless:
21458   *djgpp*)
21459     lt_prog_compiler_pic_F77=
21460     ;;
21461   *)
21462     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21463     ;;
21464 esac
21465
21466 #
21467 # Check to make sure the static flag actually works.
21468 #
21469 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21472 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21473   echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475   lt_prog_compiler_static_works_F77=no
21476    save_LDFLAGS="$LDFLAGS"
21477    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21478    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21480      # The linker can only warn and ignore the option if not recognized
21481      # So say no if there are warnings
21482      if test -s conftest.err; then
21483        # Append any errors to the config.log.
21484        cat conftest.err 1>&5
21485        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21486        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21487        if diff conftest.exp conftest.er2 >/dev/null; then
21488          lt_prog_compiler_static_works_F77=yes
21489        fi
21490      else
21491        lt_prog_compiler_static_works_F77=yes
21492      fi
21493    fi
21494    $rm conftest*
21495    LDFLAGS="$save_LDFLAGS"
21496
21497 fi
21498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21499 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21500
21501 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21502     :
21503 else
21504     lt_prog_compiler_static_F77=
21505 fi
21506
21507
21508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21510 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21511   echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513   lt_cv_prog_compiler_c_o_F77=no
21514    $rm -r conftest 2>/dev/null
21515    mkdir conftest
21516    cd conftest
21517    mkdir out
21518    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21519
21520    lt_compiler_flag="-o out/conftest2.$ac_objext"
21521    # Insert the option either (1) after the last *FLAGS variable, or
21522    # (2) before a word containing "conftest.", or (3) at the end.
21523    # Note that $ac_compile itself does not contain backslashes and begins
21524    # with a dollar sign (not a hyphen), so the echo should work correctly.
21525    lt_compile=`echo "$ac_compile" | $SED \
21526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21528    -e 's:$: $lt_compiler_flag:'`
21529    (eval echo "\"\$as_me:21529: $lt_compile\"" >&5)
21530    (eval "$lt_compile" 2>out/conftest.err)
21531    ac_status=$?
21532    cat out/conftest.err >&5
21533    echo "$as_me:21533: \$? = $ac_status" >&5
21534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21535    then
21536      # The compiler can only warn and ignore the option if not recognized
21537      # So say no if there are warnings
21538      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21539      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21540      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21541        lt_cv_prog_compiler_c_o_F77=yes
21542      fi
21543    fi
21544    chmod u+w . 2>&5
21545    $rm conftest*
21546    # SGI C++ compiler will create directory out/ii_files/ for
21547    # template instantiation
21548    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21549    $rm out/* && rmdir out
21550    cd ..
21551    rmdir conftest
21552    $rm conftest*
21553
21554 fi
21555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21557
21558
21559 hard_links="nottested"
21560 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21561   # do not overwrite the value of need_locks provided by the user
21562   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21564   hard_links=yes
21565   $rm conftest*
21566   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21567   touch conftest.a
21568   ln conftest.a conftest.b 2>&5 || hard_links=no
21569   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21570   { echo "$as_me:$LINENO: result: $hard_links" >&5
21571 echo "${ECHO_T}$hard_links" >&6; }
21572   if test "$hard_links" = no; then
21573     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21575     need_locks=warn
21576   fi
21577 else
21578   need_locks=no
21579 fi
21580
21581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21583
21584   runpath_var=
21585   allow_undefined_flag_F77=
21586   enable_shared_with_static_runtimes_F77=no
21587   archive_cmds_F77=
21588   archive_expsym_cmds_F77=
21589   old_archive_From_new_cmds_F77=
21590   old_archive_from_expsyms_cmds_F77=
21591   export_dynamic_flag_spec_F77=
21592   whole_archive_flag_spec_F77=
21593   thread_safe_flag_spec_F77=
21594   hardcode_libdir_flag_spec_F77=
21595   hardcode_libdir_flag_spec_ld_F77=
21596   hardcode_libdir_separator_F77=
21597   hardcode_direct_F77=no
21598   hardcode_minus_L_F77=no
21599   hardcode_shlibpath_var_F77=unsupported
21600   link_all_deplibs_F77=unknown
21601   hardcode_automatic_F77=no
21602   module_cmds_F77=
21603   module_expsym_cmds_F77=
21604   always_export_symbols_F77=no
21605   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21606   # include_expsyms should be a list of space-separated symbols to be *always*
21607   # included in the symbol list
21608   include_expsyms_F77=
21609   # exclude_expsyms can be an extended regexp of symbols to exclude
21610   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21611   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21612   # as well as any symbol that contains `d'.
21613   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21614   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21615   # platforms (ab)use it in PIC code, but their linkers get confused if
21616   # the symbol is explicitly referenced.  Since portable code cannot
21617   # rely on this symbol name, it's probably fine to never include it in
21618   # preloaded symbol tables.
21619   extract_expsyms_cmds=
21620   # Just being paranoid about ensuring that cc_basename is set.
21621   for cc_temp in $compiler""; do
21622   case $cc_temp in
21623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21625     \-*) ;;
21626     *) break;;
21627   esac
21628 done
21629 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21630
21631   case $host_os in
21632   cygwin* | mingw* | pw32*)
21633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634     # When not using gcc, we currently assume that we are using
21635     # Microsoft Visual C++.
21636     if test "$GCC" != yes; then
21637       with_gnu_ld=no
21638     fi
21639     ;;
21640   interix*)
21641     # we just hope/assume this is gcc and not c89 (= MSVC++)
21642     with_gnu_ld=yes
21643     ;;
21644   openbsd*)
21645     with_gnu_ld=no
21646     ;;
21647   esac
21648
21649   ld_shlibs_F77=yes
21650   if test "$with_gnu_ld" = yes; then
21651     # If archive_cmds runs LD, not CC, wlarc should be empty
21652     wlarc='${wl}'
21653
21654     # Set some defaults for GNU ld with shared library support. These
21655     # are reset later if shared libraries are not supported. Putting them
21656     # here allows them to be overridden if necessary.
21657     runpath_var=LD_RUN_PATH
21658     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21659     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21660     # ancient GNU ld didn't support --whole-archive et. al.
21661     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21662         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21663       else
21664         whole_archive_flag_spec_F77=
21665     fi
21666     supports_anon_versioning=no
21667     case `$LD -v 2>/dev/null` in
21668       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21669       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21670       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21671       *\ 2.11.*) ;; # other 2.11 versions
21672       *) supports_anon_versioning=yes ;;
21673     esac
21674
21675     # See if GNU ld supports shared libraries.
21676     case $host_os in
21677     aix3* | aix4* | aix5*)
21678       # On AIX/PPC, the GNU linker is very broken
21679       if test "$host_cpu" != ia64; then
21680         ld_shlibs_F77=no
21681         cat <<EOF 1>&2
21682
21683 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21684 *** to be unable to reliably create shared libraries on AIX.
21685 *** Therefore, libtool is disabling shared libraries support.  If you
21686 *** really care for shared libraries, you may want to modify your PATH
21687 *** so that a non-GNU linker is found, and then restart.
21688
21689 EOF
21690       fi
21691       ;;
21692
21693     amigaos*)
21694       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)'
21695       hardcode_libdir_flag_spec_F77='-L$libdir'
21696       hardcode_minus_L_F77=yes
21697
21698       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21699       # that the semantics of dynamic libraries on AmigaOS, at least up
21700       # to version 4, is to share data among multiple programs linked
21701       # with the same dynamic library.  Since this doesn't match the
21702       # behavior of shared libraries on other platforms, we can't use
21703       # them.
21704       ld_shlibs_F77=no
21705       ;;
21706
21707     beos*)
21708       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21709         allow_undefined_flag_F77=unsupported
21710         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21711         # support --undefined.  This deserves some investigation.  FIXME
21712         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21713       else
21714         ld_shlibs_F77=no
21715       fi
21716       ;;
21717
21718     cygwin* | mingw* | pw32*)
21719       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21720       # as there is no search path for DLLs.
21721       hardcode_libdir_flag_spec_F77='-L$libdir'
21722       allow_undefined_flag_F77=unsupported
21723       always_export_symbols_F77=no
21724       enable_shared_with_static_runtimes_F77=yes
21725       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21726
21727       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21728         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21729         # If the export-symbols file already is a .def file (1st line
21730         # is EXPORTS), use it as is; otherwise, prepend...
21731         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21732           cp $export_symbols $output_objdir/$soname.def;
21733         else
21734           echo EXPORTS > $output_objdir/$soname.def;
21735           cat $export_symbols >> $output_objdir/$soname.def;
21736         fi~
21737         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21738       else
21739         ld_shlibs_F77=no
21740       fi
21741       ;;
21742
21743     interix3*)
21744       hardcode_direct_F77=no
21745       hardcode_shlibpath_var_F77=no
21746       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21747       export_dynamic_flag_spec_F77='${wl}-E'
21748       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21749       # Instead, shared libraries are loaded at an image base (0x10000000 by
21750       # default) and relocated if they conflict, which is a slow very memory
21751       # consuming and fragmenting process.  To avoid this, we pick a random,
21752       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21753       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21754       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'
21755       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'
21756       ;;
21757
21758     linux*)
21759       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21760         tmp_addflag=
21761         case $cc_basename,$host_cpu in
21762         pgcc*)                          # Portland Group C compiler
21763           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'
21764           tmp_addflag=' $pic_flag'
21765           ;;
21766         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21767           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'
21768           tmp_addflag=' $pic_flag -Mnomain' ;;
21769         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21770           tmp_addflag=' -i_dynamic' ;;
21771         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21772           tmp_addflag=' -i_dynamic -nofor_main' ;;
21773         ifc* | ifort*)                  # Intel Fortran compiler
21774           tmp_addflag=' -nofor_main' ;;
21775         esac
21776         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21777
21778         if test $supports_anon_versioning = yes; then
21779           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21780   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21781   $echo "local: *; };" >> $output_objdir/$libname.ver~
21782           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21783         fi
21784       else
21785         ld_shlibs_F77=no
21786       fi
21787       ;;
21788
21789     netbsd*)
21790       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21791         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21792         wlarc=
21793       else
21794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21795         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21796       fi
21797       ;;
21798
21799     solaris*)
21800       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21801         ld_shlibs_F77=no
21802         cat <<EOF 1>&2
21803
21804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21805 *** create shared libraries on Solaris systems.  Therefore, libtool
21806 *** is disabling shared libraries support.  We urge you to upgrade GNU
21807 *** binutils to release 2.9.1 or newer.  Another option is to modify
21808 *** your PATH or compiler configuration so that the native linker is
21809 *** used, and then restart.
21810
21811 EOF
21812       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21814         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21815       else
21816         ld_shlibs_F77=no
21817       fi
21818       ;;
21819
21820     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21821       case `$LD -v 2>&1` in
21822         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21823         ld_shlibs_F77=no
21824         cat <<_LT_EOF 1>&2
21825
21826 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21827 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21828 *** is disabling shared libraries support.  We urge you to upgrade GNU
21829 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21830 *** your PATH or compiler configuration so that the native linker is
21831 *** used, and then restart.
21832
21833 _LT_EOF
21834         ;;
21835         *)
21836           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21838             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21839             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21840           else
21841             ld_shlibs_F77=no
21842           fi
21843         ;;
21844       esac
21845       ;;
21846
21847     sunos4*)
21848       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21849       wlarc=
21850       hardcode_direct_F77=yes
21851       hardcode_shlibpath_var_F77=no
21852       ;;
21853
21854     *)
21855       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21856         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21857         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21858       else
21859         ld_shlibs_F77=no
21860       fi
21861       ;;
21862     esac
21863
21864     if test "$ld_shlibs_F77" = no; then
21865       runpath_var=
21866       hardcode_libdir_flag_spec_F77=
21867       export_dynamic_flag_spec_F77=
21868       whole_archive_flag_spec_F77=
21869     fi
21870   else
21871     # PORTME fill in a description of your system's linker (not GNU ld)
21872     case $host_os in
21873     aix3*)
21874       allow_undefined_flag_F77=unsupported
21875       always_export_symbols_F77=yes
21876       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'
21877       # Note: this linker hardcodes the directories in LIBPATH if there
21878       # are no directories specified by -L.
21879       hardcode_minus_L_F77=yes
21880       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21881         # Neither direct hardcoding nor static linking is supported with a
21882         # broken collect2.
21883         hardcode_direct_F77=unsupported
21884       fi
21885       ;;
21886
21887     aix4* | aix5*)
21888       if test "$host_cpu" = ia64; then
21889         # On IA64, the linker does run time linking by default, so we don't
21890         # have to do anything special.
21891         aix_use_runtimelinking=no
21892         exp_sym_flag='-Bexport'
21893         no_entry_flag=""
21894       else
21895         # If we're using GNU nm, then we don't want the "-C" option.
21896         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21897         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21898           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'
21899         else
21900           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'
21901         fi
21902         aix_use_runtimelinking=no
21903
21904         # Test if we are trying to use run time linking or normal
21905         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21906         # need to do runtime linking.
21907         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21908           for ld_flag in $LDFLAGS; do
21909           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21910             aix_use_runtimelinking=yes
21911             break
21912           fi
21913           done
21914           ;;
21915         esac
21916
21917         exp_sym_flag='-bexport'
21918         no_entry_flag='-bnoentry'
21919       fi
21920
21921       # When large executables or shared objects are built, AIX ld can
21922       # have problems creating the table of contents.  If linking a library
21923       # or program results in "error TOC overflow" add -mminimal-toc to
21924       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21925       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21926
21927       archive_cmds_F77=''
21928       hardcode_direct_F77=yes
21929       hardcode_libdir_separator_F77=':'
21930       link_all_deplibs_F77=yes
21931
21932       if test "$GCC" = yes; then
21933         case $host_os in aix4.[012]|aix4.[012].*)
21934         # We only want to do this on AIX 4.2 and lower, the check
21935         # below for broken collect2 doesn't work under 4.3+
21936           collect2name=`${CC} -print-prog-name=collect2`
21937           if test -f "$collect2name" && \
21938            strings "$collect2name" | grep resolve_lib_name >/dev/null
21939           then
21940           # We have reworked collect2
21941           hardcode_direct_F77=yes
21942           else
21943           # We have old collect2
21944           hardcode_direct_F77=unsupported
21945           # It fails to find uninstalled libraries when the uninstalled
21946           # path is not listed in the libpath.  Setting hardcode_minus_L
21947           # to unsupported forces relinking
21948           hardcode_minus_L_F77=yes
21949           hardcode_libdir_flag_spec_F77='-L$libdir'
21950           hardcode_libdir_separator_F77=
21951           fi
21952           ;;
21953         esac
21954         shared_flag='-shared'
21955         if test "$aix_use_runtimelinking" = yes; then
21956           shared_flag="$shared_flag "'${wl}-G'
21957         fi
21958       else
21959         # not using gcc
21960         if test "$host_cpu" = ia64; then
21961         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21962         # chokes on -Wl,-G. The following line is correct:
21963           shared_flag='-G'
21964         else
21965           if test "$aix_use_runtimelinking" = yes; then
21966             shared_flag='${wl}-G'
21967           else
21968             shared_flag='${wl}-bM:SRE'
21969           fi
21970         fi
21971       fi
21972
21973       # It seems that -bexpall does not export symbols beginning with
21974       # underscore (_), so it is better to generate a list of symbols to export.
21975       always_export_symbols_F77=yes
21976       if test "$aix_use_runtimelinking" = yes; then
21977         # Warning - without using the other runtime loading flags (-brtl),
21978         # -berok will link without error, but may produce a broken library.
21979         allow_undefined_flag_F77='-berok'
21980        # Determine the default libpath from the value encoded in an empty executable.
21981        cat >conftest.$ac_ext <<_ACEOF
21982       program main
21983
21984       end
21985 _ACEOF
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (ac_try="$ac_link"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_link") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22001   { (case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_try") 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; } &&
22010          { ac_try='test -s conftest$ac_exeext'
22011   { (case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_try") 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020
22021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22022 }'`
22023 # Check for a 64-bit object if we didn't find anything.
22024 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; }
22025 }'`; fi
22026 else
22027   echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22029
22030
22031 fi
22032
22033 rm -f core conftest.err conftest.$ac_objext \
22034       conftest$ac_exeext conftest.$ac_ext
22035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22036
22037        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22038         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"
22039        else
22040         if test "$host_cpu" = ia64; then
22041           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22042           allow_undefined_flag_F77="-z nodefs"
22043           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"
22044         else
22045          # Determine the default libpath from the value encoded in an empty executable.
22046          cat >conftest.$ac_ext <<_ACEOF
22047       program main
22048
22049       end
22050 _ACEOF
22051 rm -f conftest.$ac_objext conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_link") 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } &&
22065          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22066   { (case "(($ac_try" in
22067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068   *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071   (eval "$ac_try") 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; } &&
22075          { ac_try='test -s conftest$ac_exeext'
22076   { (case "(($ac_try" in
22077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078   *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081   (eval "$ac_try") 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); }; }; then
22085
22086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22087 }'`
22088 # Check for a 64-bit object if we didn't find anything.
22089 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; }
22090 }'`; fi
22091 else
22092   echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095
22096 fi
22097
22098 rm -f core conftest.err conftest.$ac_objext \
22099       conftest$ac_exeext conftest.$ac_ext
22100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22101
22102          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22103           # Warning - without using the other run time loading flags,
22104           # -berok will link without error, but may produce a broken library.
22105           no_undefined_flag_F77=' ${wl}-bernotok'
22106           allow_undefined_flag_F77=' ${wl}-berok'
22107           # Exported symbols can be pulled into shared objects from archives
22108           whole_archive_flag_spec_F77='$convenience'
22109           archive_cmds_need_lc_F77=yes
22110           # This is similar to how AIX traditionally builds its shared libraries.
22111           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'
22112         fi
22113       fi
22114       ;;
22115
22116     amigaos*)
22117       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)'
22118       hardcode_libdir_flag_spec_F77='-L$libdir'
22119       hardcode_minus_L_F77=yes
22120       # see comment about different semantics on the GNU ld section
22121       ld_shlibs_F77=no
22122       ;;
22123
22124     bsdi[45]*)
22125       export_dynamic_flag_spec_F77=-rdynamic
22126       ;;
22127
22128     cygwin* | mingw* | pw32*)
22129       # When not using gcc, we currently assume that we are using
22130       # Microsoft Visual C++.
22131       # hardcode_libdir_flag_spec is actually meaningless, as there is
22132       # no search path for DLLs.
22133       hardcode_libdir_flag_spec_F77=' '
22134       allow_undefined_flag_F77=unsupported
22135       # Tell ltmain to make .lib files, not .a files.
22136       libext=lib
22137       # Tell ltmain to make .dll files, not .so files.
22138       shrext_cmds=".dll"
22139       # FIXME: Setting linknames here is a bad hack.
22140       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22141       # The linker will automatically build a .lib file if we build a DLL.
22142       old_archive_From_new_cmds_F77='true'
22143       # FIXME: Should let the user specify the lib program.
22144       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22145       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22146       enable_shared_with_static_runtimes_F77=yes
22147       ;;
22148
22149     darwin* | rhapsody*)
22150       case $host_os in
22151         rhapsody* | darwin1.[012])
22152          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22153          ;;
22154        *) # Darwin 1.3 on
22155          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22156            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22157          else
22158            case ${MACOSX_DEPLOYMENT_TARGET} in
22159              10.[012])
22160                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22161                ;;
22162              10.*)
22163                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22164                ;;
22165            esac
22166          fi
22167          ;;
22168       esac
22169       archive_cmds_need_lc_F77=no
22170       hardcode_direct_F77=no
22171       hardcode_automatic_F77=yes
22172       hardcode_shlibpath_var_F77=unsupported
22173       whole_archive_flag_spec_F77=''
22174       link_all_deplibs_F77=yes
22175     if test "$GCC" = yes ; then
22176         output_verbose_link_cmd='echo'
22177         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22178       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22179       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22180       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}'
22181       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}'
22182     else
22183       case $cc_basename in
22184         xlc*)
22185          output_verbose_link_cmd='echo'
22186          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22187          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22188           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22189          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}'
22190           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}'
22191           ;;
22192        *)
22193          ld_shlibs_F77=no
22194           ;;
22195       esac
22196     fi
22197       ;;
22198
22199     dgux*)
22200       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22201       hardcode_libdir_flag_spec_F77='-L$libdir'
22202       hardcode_shlibpath_var_F77=no
22203       ;;
22204
22205     freebsd1*)
22206       ld_shlibs_F77=no
22207       ;;
22208
22209     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22210     # support.  Future versions do this automatically, but an explicit c++rt0.o
22211     # does not break anything, and helps significantly (at the cost of a little
22212     # extra space).
22213     freebsd2.2*)
22214       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22215       hardcode_libdir_flag_spec_F77='-R$libdir'
22216       hardcode_direct_F77=yes
22217       hardcode_shlibpath_var_F77=no
22218       ;;
22219
22220     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22221     freebsd2*)
22222       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22223       hardcode_direct_F77=yes
22224       hardcode_minus_L_F77=yes
22225       hardcode_shlibpath_var_F77=no
22226       ;;
22227
22228     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22229     freebsd* | kfreebsd*-gnu | dragonfly*)
22230       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22231       hardcode_libdir_flag_spec_F77='-R$libdir'
22232       hardcode_direct_F77=yes
22233       hardcode_shlibpath_var_F77=no
22234       ;;
22235
22236     hpux9*)
22237       if test "$GCC" = yes; then
22238         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'
22239       else
22240         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'
22241       fi
22242       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22243       hardcode_libdir_separator_F77=:
22244       hardcode_direct_F77=yes
22245
22246       # hardcode_minus_L: Not really in the search PATH,
22247       # but as the default location of the library.
22248       hardcode_minus_L_F77=yes
22249       export_dynamic_flag_spec_F77='${wl}-E'
22250       ;;
22251
22252     hpux10*)
22253       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22254         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22255       else
22256         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22257       fi
22258       if test "$with_gnu_ld" = no; then
22259         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22260         hardcode_libdir_separator_F77=:
22261
22262         hardcode_direct_F77=yes
22263         export_dynamic_flag_spec_F77='${wl}-E'
22264
22265         # hardcode_minus_L: Not really in the search PATH,
22266         # but as the default location of the library.
22267         hardcode_minus_L_F77=yes
22268       fi
22269       ;;
22270
22271     hpux11*)
22272       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22273         case $host_cpu in
22274         hppa*64*)
22275           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276           ;;
22277         ia64*)
22278           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22279           ;;
22280         *)
22281           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22282           ;;
22283         esac
22284       else
22285         case $host_cpu in
22286         hppa*64*)
22287           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22288           ;;
22289         ia64*)
22290           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22291           ;;
22292         *)
22293           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22294           ;;
22295         esac
22296       fi
22297       if test "$with_gnu_ld" = no; then
22298         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299         hardcode_libdir_separator_F77=:
22300
22301         case $host_cpu in
22302         hppa*64*|ia64*)
22303           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22304           hardcode_direct_F77=no
22305           hardcode_shlibpath_var_F77=no
22306           ;;
22307         *)
22308           hardcode_direct_F77=yes
22309           export_dynamic_flag_spec_F77='${wl}-E'
22310
22311           # hardcode_minus_L: Not really in the search PATH,
22312           # but as the default location of the library.
22313           hardcode_minus_L_F77=yes
22314           ;;
22315         esac
22316       fi
22317       ;;
22318
22319     irix5* | irix6* | nonstopux*)
22320       if test "$GCC" = yes; then
22321         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'
22322       else
22323         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'
22324         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22325       fi
22326       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22327       hardcode_libdir_separator_F77=:
22328       link_all_deplibs_F77=yes
22329       ;;
22330
22331     netbsd*)
22332       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22333         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22334       else
22335         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22336       fi
22337       hardcode_libdir_flag_spec_F77='-R$libdir'
22338       hardcode_direct_F77=yes
22339       hardcode_shlibpath_var_F77=no
22340       ;;
22341
22342     newsos6)
22343       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344       hardcode_direct_F77=yes
22345       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22346       hardcode_libdir_separator_F77=:
22347       hardcode_shlibpath_var_F77=no
22348       ;;
22349
22350     openbsd*)
22351       hardcode_direct_F77=yes
22352       hardcode_shlibpath_var_F77=no
22353       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22354         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22355         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22356         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22357         export_dynamic_flag_spec_F77='${wl}-E'
22358       else
22359        case $host_os in
22360          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22361            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22362            hardcode_libdir_flag_spec_F77='-R$libdir'
22363            ;;
22364          *)
22365            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22366            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22367            ;;
22368        esac
22369       fi
22370       ;;
22371
22372     os2*)
22373       hardcode_libdir_flag_spec_F77='-L$libdir'
22374       hardcode_minus_L_F77=yes
22375       allow_undefined_flag_F77=unsupported
22376       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'
22377       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22378       ;;
22379
22380     osf3*)
22381       if test "$GCC" = yes; then
22382         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22383         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'
22384       else
22385         allow_undefined_flag_F77=' -expect_unresolved \*'
22386         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'
22387       fi
22388       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22389       hardcode_libdir_separator_F77=:
22390       ;;
22391
22392     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22393       if test "$GCC" = yes; then
22394         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22395         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'
22396         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22397       else
22398         allow_undefined_flag_F77=' -expect_unresolved \*'
22399         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'
22400         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~
22401         $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'
22402
22403         # Both c and cxx compiler support -rpath directly
22404         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22405       fi
22406       hardcode_libdir_separator_F77=:
22407       ;;
22408
22409     solaris*)
22410       no_undefined_flag_F77=' -z text'
22411       if test "$GCC" = yes; then
22412         wlarc='${wl}'
22413         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22414         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22415           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22416       else
22417         wlarc=''
22418         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22419         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22420         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22421       fi
22422       hardcode_libdir_flag_spec_F77='-R$libdir'
22423       hardcode_shlibpath_var_F77=no
22424       case $host_os in
22425       solaris2.[0-5] | solaris2.[0-5].*) ;;
22426       *)
22427         # The compiler driver will combine linker options so we
22428         # cannot just pass the convience library names through
22429         # without $wl, iff we do not link with $LD.
22430         # Luckily, gcc supports the same syntax we need for Sun Studio.
22431         # Supported since Solaris 2.6 (maybe 2.5.1?)
22432         case $wlarc in
22433         '')
22434           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22435         *)
22436           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' ;;
22437         esac ;;
22438       esac
22439       link_all_deplibs_F77=yes
22440       ;;
22441
22442     sunos4*)
22443       if test "x$host_vendor" = xsequent; then
22444         # Use $CC to link under sequent, because it throws in some extra .o
22445         # files that make .init and .fini sections work.
22446         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22447       else
22448         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22449       fi
22450       hardcode_libdir_flag_spec_F77='-L$libdir'
22451       hardcode_direct_F77=yes
22452       hardcode_minus_L_F77=yes
22453       hardcode_shlibpath_var_F77=no
22454       ;;
22455
22456     sysv4)
22457       case $host_vendor in
22458         sni)
22459           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460           hardcode_direct_F77=yes # is this really true???
22461         ;;
22462         siemens)
22463           ## LD is ld it makes a PLAMLIB
22464           ## CC just makes a GrossModule.
22465           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22466           reload_cmds_F77='$CC -r -o $output$reload_objs'
22467           hardcode_direct_F77=no
22468         ;;
22469         motorola)
22470           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22472         ;;
22473       esac
22474       runpath_var='LD_RUN_PATH'
22475       hardcode_shlibpath_var_F77=no
22476       ;;
22477
22478     sysv4.3*)
22479       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22480       hardcode_shlibpath_var_F77=no
22481       export_dynamic_flag_spec_F77='-Bexport'
22482       ;;
22483
22484     sysv4*MP*)
22485       if test -d /usr/nec; then
22486         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22487         hardcode_shlibpath_var_F77=no
22488         runpath_var=LD_RUN_PATH
22489         hardcode_runpath_var=yes
22490         ld_shlibs_F77=yes
22491       fi
22492       ;;
22493
22494     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22495       no_undefined_flag_F77='${wl}-z,text'
22496       archive_cmds_need_lc_F77=no
22497       hardcode_shlibpath_var_F77=no
22498       runpath_var='LD_RUN_PATH'
22499
22500       if test "$GCC" = yes; then
22501         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22502         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22503       else
22504         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22505         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22506       fi
22507       ;;
22508
22509     sysv5* | sco3.2v5* | sco5v6*)
22510       # Note: We can NOT use -z defs as we might desire, because we do not
22511       # link with -lc, and that would cause any symbols used from libc to
22512       # always be unresolved, which means just about no library would
22513       # ever link correctly.  If we're not using GNU ld we use -z text
22514       # though, which does catch some bad symbols but isn't as heavy-handed
22515       # as -z defs.
22516       no_undefined_flag_F77='${wl}-z,text'
22517       allow_undefined_flag_F77='${wl}-z,nodefs'
22518       archive_cmds_need_lc_F77=no
22519       hardcode_shlibpath_var_F77=no
22520       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22521       hardcode_libdir_separator_F77=':'
22522       link_all_deplibs_F77=yes
22523       export_dynamic_flag_spec_F77='${wl}-Bexport'
22524       runpath_var='LD_RUN_PATH'
22525
22526       if test "$GCC" = yes; then
22527         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22528         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22529       else
22530         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22531         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22532       fi
22533       ;;
22534
22535     uts4*)
22536       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537       hardcode_libdir_flag_spec_F77='-L$libdir'
22538       hardcode_shlibpath_var_F77=no
22539       ;;
22540
22541     *)
22542       ld_shlibs_F77=no
22543       ;;
22544     esac
22545   fi
22546
22547 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22548 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22549 test "$ld_shlibs_F77" = no && can_build_shared=no
22550
22551 #
22552 # Do we need to explicitly link libc?
22553 #
22554 case "x$archive_cmds_need_lc_F77" in
22555 x|xyes)
22556   # Assume -lc should be added
22557   archive_cmds_need_lc_F77=yes
22558
22559   if test "$enable_shared" = yes && test "$GCC" = yes; then
22560     case $archive_cmds_F77 in
22561     *'~'*)
22562       # FIXME: we may have to deal with multi-command sequences.
22563       ;;
22564     '$CC '*)
22565       # Test whether the compiler implicitly links with -lc since on some
22566       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22567       # to ld, don't add -lc before -lgcc.
22568       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22570       $rm conftest*
22571       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22572
22573       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22574   (eval $ac_compile) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } 2>conftest.err; then
22578         soname=conftest
22579         lib=conftest
22580         libobjs=conftest.$ac_objext
22581         deplibs=
22582         wl=$lt_prog_compiler_wl_F77
22583         pic_flag=$lt_prog_compiler_pic_F77
22584         compiler_flags=-v
22585         linker_flags=-v
22586         verstring=
22587         output_objdir=.
22588         libname=conftest
22589         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22590         allow_undefined_flag_F77=
22591         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22592   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22593   ac_status=$?
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); }
22596         then
22597           archive_cmds_need_lc_F77=no
22598         else
22599           archive_cmds_need_lc_F77=yes
22600         fi
22601         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22602       else
22603         cat conftest.err 1>&5
22604       fi
22605       $rm conftest*
22606       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22607 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22608       ;;
22609     esac
22610   fi
22611   ;;
22612 esac
22613
22614 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22615 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22616 library_names_spec=
22617 libname_spec='lib$name'
22618 soname_spec=
22619 shrext_cmds=".so"
22620 postinstall_cmds=
22621 postuninstall_cmds=
22622 finish_cmds=
22623 finish_eval=
22624 shlibpath_var=
22625 shlibpath_overrides_runpath=unknown
22626 version_type=none
22627 dynamic_linker="$host_os ld.so"
22628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22629 if test "$GCC" = yes; then
22630   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22631   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22632     # if the path contains ";" then we assume it to be the separator
22633     # otherwise default to the standard path separator (i.e. ":") - it is
22634     # assumed that no part of a normal pathname contains ";" but that should
22635     # okay in the real world where ";" in dirpaths is itself problematic.
22636     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22637   else
22638     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22639   fi
22640 else
22641   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22642 fi
22643 need_lib_prefix=unknown
22644 hardcode_into_libs=no
22645
22646 # when you set need_version to no, make sure it does not cause -set_version
22647 # flags to be left without arguments
22648 need_version=unknown
22649
22650 case $host_os in
22651 aix3*)
22652   version_type=linux
22653   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22654   shlibpath_var=LIBPATH
22655
22656   # AIX 3 has no versioning support, so we append a major version to the name.
22657   soname_spec='${libname}${release}${shared_ext}$major'
22658   ;;
22659
22660 aix4* | aix5*)
22661   version_type=linux
22662   need_lib_prefix=no
22663   need_version=no
22664   hardcode_into_libs=yes
22665   if test "$host_cpu" = ia64; then
22666     # AIX 5 supports IA64
22667     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22668     shlibpath_var=LD_LIBRARY_PATH
22669   else
22670     # With GCC up to 2.95.x, collect2 would create an import file
22671     # for dependence libraries.  The import file would start with
22672     # the line `#! .'.  This would cause the generated library to
22673     # depend on `.', always an invalid library.  This was fixed in
22674     # development snapshots of GCC prior to 3.0.
22675     case $host_os in
22676       aix4 | aix4.[01] | aix4.[01].*)
22677       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22678            echo ' yes '
22679            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22680         :
22681       else
22682         can_build_shared=no
22683       fi
22684       ;;
22685     esac
22686     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22687     # soname into executable. Probably we can add versioning support to
22688     # collect2, so additional links can be useful in future.
22689     if test "$aix_use_runtimelinking" = yes; then
22690       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22691       # instead of lib<name>.a to let people know that these are not
22692       # typical AIX shared libraries.
22693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694     else
22695       # We preserve .a as extension for shared libraries through AIX4.2
22696       # and later when we are not doing run time linking.
22697       library_names_spec='${libname}${release}.a $libname.a'
22698       soname_spec='${libname}${release}${shared_ext}$major'
22699     fi
22700     shlibpath_var=LIBPATH
22701   fi
22702   ;;
22703
22704 amigaos*)
22705   library_names_spec='$libname.ixlibrary $libname.a'
22706   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22707   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'
22708   ;;
22709
22710 beos*)
22711   library_names_spec='${libname}${shared_ext}'
22712   dynamic_linker="$host_os ld.so"
22713   shlibpath_var=LIBRARY_PATH
22714   ;;
22715
22716 bsdi[45]*)
22717   version_type=linux
22718   need_version=no
22719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22720   soname_spec='${libname}${release}${shared_ext}$major'
22721   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22722   shlibpath_var=LD_LIBRARY_PATH
22723   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22724   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22725   # the default ld.so.conf also contains /usr/contrib/lib and
22726   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22727   # libtool to hard-code these into programs
22728   ;;
22729
22730 cygwin* | mingw* | pw32*)
22731   version_type=windows
22732   shrext_cmds=".dll"
22733   need_version=no
22734   need_lib_prefix=no
22735
22736   case $GCC,$host_os in
22737   yes,cygwin* | yes,mingw* | yes,pw32*)
22738     library_names_spec='$libname.dll.a'
22739     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22740     postinstall_cmds='base_file=`basename \${file}`~
22741       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22742       dldir=$destdir/`dirname \$dlpath`~
22743       test -d \$dldir || mkdir -p \$dldir~
22744       $install_prog $dir/$dlname \$dldir/$dlname~
22745       chmod a+x \$dldir/$dlname'
22746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22747       dlpath=$dir/\$dldll~
22748        $rm \$dlpath'
22749     shlibpath_overrides_runpath=yes
22750
22751     case $host_os in
22752     cygwin*)
22753       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22754       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22755       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22756       ;;
22757     mingw*)
22758       # MinGW DLLs use traditional 'lib' prefix
22759       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22760       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22761       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22762         # It is most probably a Windows format PATH printed by
22763         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22764         # path with ; separators, and with drive letters. We can handle the
22765         # drive letters (cygwin fileutils understands them), so leave them,
22766         # especially as we might pass files found there to a mingw objdump,
22767         # which wouldn't understand a cygwinified path. Ahh.
22768         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22769       else
22770         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22771       fi
22772       ;;
22773     pw32*)
22774       # pw32 DLLs use 'pw' prefix rather than 'lib'
22775       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22776       ;;
22777     esac
22778     ;;
22779
22780   *)
22781     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22782     ;;
22783   esac
22784   dynamic_linker='Win32 ld.exe'
22785   # FIXME: first we should search . and the directory the executable is in
22786   shlibpath_var=PATH
22787   ;;
22788
22789 darwin* | rhapsody*)
22790   dynamic_linker="$host_os dyld"
22791   version_type=darwin
22792   need_lib_prefix=no
22793   need_version=no
22794   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22795   soname_spec='${libname}${release}${major}$shared_ext'
22796   shlibpath_overrides_runpath=yes
22797   shlibpath_var=DYLD_LIBRARY_PATH
22798   shrext_cmds='.dylib'
22799   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22800   if test "$GCC" = yes; then
22801     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"`
22802   else
22803     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22804   fi
22805   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22806   ;;
22807
22808 dgux*)
22809   version_type=linux
22810   need_lib_prefix=no
22811   need_version=no
22812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22813   soname_spec='${libname}${release}${shared_ext}$major'
22814   shlibpath_var=LD_LIBRARY_PATH
22815   ;;
22816
22817 freebsd1*)
22818   dynamic_linker=no
22819   ;;
22820
22821 kfreebsd*-gnu)
22822   version_type=linux
22823   need_lib_prefix=no
22824   need_version=no
22825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22826   soname_spec='${libname}${release}${shared_ext}$major'
22827   shlibpath_var=LD_LIBRARY_PATH
22828   shlibpath_overrides_runpath=no
22829   hardcode_into_libs=yes
22830   dynamic_linker='GNU ld.so'
22831   ;;
22832
22833 freebsd* | dragonfly*)
22834   # DragonFly does not have aout.  When/if they implement a new
22835   # versioning mechanism, adjust this.
22836   if test -x /usr/bin/objformat; then
22837     objformat=`/usr/bin/objformat`
22838   else
22839     case $host_os in
22840     freebsd[123]*) objformat=aout ;;
22841     *) objformat=elf ;;
22842     esac
22843   fi
22844   version_type=freebsd-$objformat
22845   case $version_type in
22846     freebsd-elf*)
22847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22848       need_version=no
22849       need_lib_prefix=no
22850       ;;
22851     freebsd-*)
22852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22853       need_version=yes
22854       ;;
22855   esac
22856   shlibpath_var=LD_LIBRARY_PATH
22857   case $host_os in
22858   freebsd2*)
22859     shlibpath_overrides_runpath=yes
22860     ;;
22861   freebsd3.[01]* | freebsdelf3.[01]*)
22862     shlibpath_overrides_runpath=yes
22863     hardcode_into_libs=yes
22864     ;;
22865   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22866   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22867     shlibpath_overrides_runpath=no
22868     hardcode_into_libs=yes
22869     ;;
22870   freebsd*) # from 4.6 on
22871     shlibpath_overrides_runpath=yes
22872     hardcode_into_libs=yes
22873     ;;
22874   esac
22875   ;;
22876
22877 gnu*)
22878   version_type=linux
22879   need_lib_prefix=no
22880   need_version=no
22881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22882   soname_spec='${libname}${release}${shared_ext}$major'
22883   shlibpath_var=LD_LIBRARY_PATH
22884   hardcode_into_libs=yes
22885   ;;
22886
22887 hpux9* | hpux10* | hpux11*)
22888   # Give a soname corresponding to the major version so that dld.sl refuses to
22889   # link against other versions.
22890   version_type=sunos
22891   need_lib_prefix=no
22892   need_version=no
22893   case $host_cpu in
22894   ia64*)
22895     shrext_cmds='.so'
22896     hardcode_into_libs=yes
22897     dynamic_linker="$host_os dld.so"
22898     shlibpath_var=LD_LIBRARY_PATH
22899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901     soname_spec='${libname}${release}${shared_ext}$major'
22902     if test "X$HPUX_IA64_MODE" = X32; then
22903       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22904     else
22905       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22906     fi
22907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22908     ;;
22909    hppa*64*)
22910      shrext_cmds='.sl'
22911      hardcode_into_libs=yes
22912      dynamic_linker="$host_os dld.sl"
22913      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22918      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22919      ;;
22920    *)
22921     shrext_cmds='.sl'
22922     dynamic_linker="$host_os dld.sl"
22923     shlibpath_var=SHLIB_PATH
22924     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926     soname_spec='${libname}${release}${shared_ext}$major'
22927     ;;
22928   esac
22929   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22930   postinstall_cmds='chmod 555 $lib'
22931   ;;
22932
22933 interix3*)
22934   version_type=linux
22935   need_lib_prefix=no
22936   need_version=no
22937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22938   soname_spec='${libname}${release}${shared_ext}$major'
22939   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22940   shlibpath_var=LD_LIBRARY_PATH
22941   shlibpath_overrides_runpath=no
22942   hardcode_into_libs=yes
22943   ;;
22944
22945 irix5* | irix6* | nonstopux*)
22946   case $host_os in
22947     nonstopux*) version_type=nonstopux ;;
22948     *)
22949         if test "$lt_cv_prog_gnu_ld" = yes; then
22950                 version_type=linux
22951         else
22952                 version_type=irix
22953         fi ;;
22954   esac
22955   need_lib_prefix=no
22956   need_version=no
22957   soname_spec='${libname}${release}${shared_ext}$major'
22958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22959   case $host_os in
22960   irix5* | nonstopux*)
22961     libsuff= shlibsuff=
22962     ;;
22963   *)
22964     case $LD in # libtool.m4 will add one of these switches to LD
22965     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22966       libsuff= shlibsuff= libmagic=32-bit;;
22967     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22968       libsuff=32 shlibsuff=N32 libmagic=N32;;
22969     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22970       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22971     *) libsuff= shlibsuff= libmagic=never-match;;
22972     esac
22973     ;;
22974   esac
22975   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22976   shlibpath_overrides_runpath=no
22977   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22978   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22979   hardcode_into_libs=yes
22980   ;;
22981
22982 # No shared lib support for Linux oldld, aout, or coff.
22983 linux*oldld* | linux*aout* | linux*coff*)
22984   dynamic_linker=no
22985   ;;
22986
22987 # This must be Linux ELF.
22988 linux*)
22989   version_type=linux
22990   need_lib_prefix=no
22991   need_version=no
22992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22993   soname_spec='${libname}${release}${shared_ext}$major'
22994   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22995   shlibpath_var=LD_LIBRARY_PATH
22996   shlibpath_overrides_runpath=no
22997   # This implies no fast_install, which is unacceptable.
22998   # Some rework will be needed to allow for fast_install
22999   # before this can be enabled.
23000   hardcode_into_libs=yes
23001
23002   # Append ld.so.conf contents to the search path
23003   if test -f /etc/ld.so.conf; then
23004     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' ' '`
23005     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23006   fi
23007
23008   # We used to test for /lib/ld.so.1 and disable shared libraries on
23009   # powerpc, because MkLinux only supported shared libraries with the
23010   # GNU dynamic linker.  Since this was broken with cross compilers,
23011   # most powerpc-linux boxes support dynamic linking these days and
23012   # people can always --disable-shared, the test was removed, and we
23013   # assume the GNU/Linux dynamic linker is in use.
23014   dynamic_linker='GNU/Linux ld.so'
23015   ;;
23016
23017 knetbsd*-gnu)
23018   version_type=linux
23019   need_lib_prefix=no
23020   need_version=no
23021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23022   soname_spec='${libname}${release}${shared_ext}$major'
23023   shlibpath_var=LD_LIBRARY_PATH
23024   shlibpath_overrides_runpath=no
23025   hardcode_into_libs=yes
23026   dynamic_linker='GNU ld.so'
23027   ;;
23028
23029 netbsd*)
23030   version_type=sunos
23031   need_lib_prefix=no
23032   need_version=no
23033   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23035     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23036     dynamic_linker='NetBSD (a.out) ld.so'
23037   else
23038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23039     soname_spec='${libname}${release}${shared_ext}$major'
23040     dynamic_linker='NetBSD ld.elf_so'
23041   fi
23042   shlibpath_var=LD_LIBRARY_PATH
23043   shlibpath_overrides_runpath=yes
23044   hardcode_into_libs=yes
23045   ;;
23046
23047 newsos6)
23048   version_type=linux
23049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23050   shlibpath_var=LD_LIBRARY_PATH
23051   shlibpath_overrides_runpath=yes
23052   ;;
23053
23054 nto-qnx*)
23055   version_type=linux
23056   need_lib_prefix=no
23057   need_version=no
23058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23059   soname_spec='${libname}${release}${shared_ext}$major'
23060   shlibpath_var=LD_LIBRARY_PATH
23061   shlibpath_overrides_runpath=yes
23062   ;;
23063
23064 openbsd*)
23065   version_type=sunos
23066   sys_lib_dlsearch_path_spec="/usr/lib"
23067   need_lib_prefix=no
23068   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23069   case $host_os in
23070     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23071     *)                         need_version=no  ;;
23072   esac
23073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075   shlibpath_var=LD_LIBRARY_PATH
23076   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23077     case $host_os in
23078       openbsd2.[89] | openbsd2.[89].*)
23079         shlibpath_overrides_runpath=no
23080         ;;
23081       *)
23082         shlibpath_overrides_runpath=yes
23083         ;;
23084       esac
23085   else
23086     shlibpath_overrides_runpath=yes
23087   fi
23088   ;;
23089
23090 os2*)
23091   libname_spec='$name'
23092   shrext_cmds=".dll"
23093   need_lib_prefix=no
23094   library_names_spec='$libname${shared_ext} $libname.a'
23095   dynamic_linker='OS/2 ld.exe'
23096   shlibpath_var=LIBPATH
23097   ;;
23098
23099 osf3* | osf4* | osf5*)
23100   version_type=osf
23101   need_lib_prefix=no
23102   need_version=no
23103   soname_spec='${libname}${release}${shared_ext}$major'
23104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23105   shlibpath_var=LD_LIBRARY_PATH
23106   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23107   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23108   ;;
23109
23110 solaris*)
23111   version_type=linux
23112   need_lib_prefix=no
23113   need_version=no
23114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23115   soname_spec='${libname}${release}${shared_ext}$major'
23116   shlibpath_var=LD_LIBRARY_PATH
23117   shlibpath_overrides_runpath=yes
23118   hardcode_into_libs=yes
23119   # ldd complains unless libraries are executable
23120   postinstall_cmds='chmod +x $lib'
23121   ;;
23122
23123 sunos4*)
23124   version_type=sunos
23125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23126   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23127   shlibpath_var=LD_LIBRARY_PATH
23128   shlibpath_overrides_runpath=yes
23129   if test "$with_gnu_ld" = yes; then
23130     need_lib_prefix=no
23131   fi
23132   need_version=yes
23133   ;;
23134
23135 sysv4 | sysv4.3*)
23136   version_type=linux
23137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23138   soname_spec='${libname}${release}${shared_ext}$major'
23139   shlibpath_var=LD_LIBRARY_PATH
23140   case $host_vendor in
23141     sni)
23142       shlibpath_overrides_runpath=no
23143       need_lib_prefix=no
23144       export_dynamic_flag_spec='${wl}-Blargedynsym'
23145       runpath_var=LD_RUN_PATH
23146       ;;
23147     siemens)
23148       need_lib_prefix=no
23149       ;;
23150     motorola)
23151       need_lib_prefix=no
23152       need_version=no
23153       shlibpath_overrides_runpath=no
23154       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23155       ;;
23156   esac
23157   ;;
23158
23159 sysv4*MP*)
23160   if test -d /usr/nec ;then
23161     version_type=linux
23162     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23163     soname_spec='$libname${shared_ext}.$major'
23164     shlibpath_var=LD_LIBRARY_PATH
23165   fi
23166   ;;
23167
23168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23169   version_type=freebsd-elf
23170   need_lib_prefix=no
23171   need_version=no
23172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23173   soname_spec='${libname}${release}${shared_ext}$major'
23174   shlibpath_var=LD_LIBRARY_PATH
23175   hardcode_into_libs=yes
23176   if test "$with_gnu_ld" = yes; then
23177     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23178     shlibpath_overrides_runpath=no
23179   else
23180     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23181     shlibpath_overrides_runpath=yes
23182     case $host_os in
23183       sco3.2v5*)
23184         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23185         ;;
23186     esac
23187   fi
23188   sys_lib_dlsearch_path_spec='/usr/lib'
23189   ;;
23190
23191 uts4*)
23192   version_type=linux
23193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194   soname_spec='${libname}${release}${shared_ext}$major'
23195   shlibpath_var=LD_LIBRARY_PATH
23196   ;;
23197
23198 *)
23199   dynamic_linker=no
23200   ;;
23201 esac
23202 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23203 echo "${ECHO_T}$dynamic_linker" >&6; }
23204 test "$dynamic_linker" = no && can_build_shared=no
23205
23206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23207 if test "$GCC" = yes; then
23208   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23209 fi
23210
23211 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23212 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23213 hardcode_action_F77=
23214 if test -n "$hardcode_libdir_flag_spec_F77" || \
23215    test -n "$runpath_var_F77" || \
23216    test "X$hardcode_automatic_F77" = "Xyes" ; then
23217
23218   # We can hardcode non-existant directories.
23219   if test "$hardcode_direct_F77" != no &&
23220      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23221      # have to relink, otherwise we might link with an installed library
23222      # when we should be linking with a yet-to-be-installed one
23223      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23224      test "$hardcode_minus_L_F77" != no; then
23225     # Linking always hardcodes the temporary library directory.
23226     hardcode_action_F77=relink
23227   else
23228     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23229     hardcode_action_F77=immediate
23230   fi
23231 else
23232   # We cannot hardcode anything, or else we can only hardcode existing
23233   # directories.
23234   hardcode_action_F77=unsupported
23235 fi
23236 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23237 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23238
23239 if test "$hardcode_action_F77" = relink; then
23240   # Fast installation is not supported
23241   enable_fast_install=no
23242 elif test "$shlibpath_overrides_runpath" = yes ||
23243      test "$enable_shared" = no; then
23244   # Fast installation is not necessary
23245   enable_fast_install=needless
23246 fi
23247
23248
23249 # The else clause should only fire when bootstrapping the
23250 # libtool distribution, otherwise you forgot to ship ltmain.sh
23251 # with your package, and you will get complaints that there are
23252 # no rules to generate ltmain.sh.
23253 if test -f "$ltmain"; then
23254   # See if we are running on zsh, and set the options which allow our commands through
23255   # without removal of \ escapes.
23256   if test -n "${ZSH_VERSION+set}" ; then
23257     setopt NO_GLOB_SUBST
23258   fi
23259   # Now quote all the things that may contain metacharacters while being
23260   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23261   # variables and quote the copies for generation of the libtool script.
23262   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23263     SED SHELL STRIP \
23264     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23265     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23266     deplibs_check_method reload_flag reload_cmds need_locks \
23267     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23268     lt_cv_sys_global_symbol_to_c_name_address \
23269     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23270     old_postinstall_cmds old_postuninstall_cmds \
23271     compiler_F77 \
23272     CC_F77 \
23273     LD_F77 \
23274     lt_prog_compiler_wl_F77 \
23275     lt_prog_compiler_pic_F77 \
23276     lt_prog_compiler_static_F77 \
23277     lt_prog_compiler_no_builtin_flag_F77 \
23278     export_dynamic_flag_spec_F77 \
23279     thread_safe_flag_spec_F77 \
23280     whole_archive_flag_spec_F77 \
23281     enable_shared_with_static_runtimes_F77 \
23282     old_archive_cmds_F77 \
23283     old_archive_from_new_cmds_F77 \
23284     predep_objects_F77 \
23285     postdep_objects_F77 \
23286     predeps_F77 \
23287     postdeps_F77 \
23288     compiler_lib_search_path_F77 \
23289     archive_cmds_F77 \
23290     archive_expsym_cmds_F77 \
23291     postinstall_cmds_F77 \
23292     postuninstall_cmds_F77 \
23293     old_archive_from_expsyms_cmds_F77 \
23294     allow_undefined_flag_F77 \
23295     no_undefined_flag_F77 \
23296     export_symbols_cmds_F77 \
23297     hardcode_libdir_flag_spec_F77 \
23298     hardcode_libdir_flag_spec_ld_F77 \
23299     hardcode_libdir_separator_F77 \
23300     hardcode_automatic_F77 \
23301     module_cmds_F77 \
23302     module_expsym_cmds_F77 \
23303     lt_cv_prog_compiler_c_o_F77 \
23304     exclude_expsyms_F77 \
23305     include_expsyms_F77; do
23306
23307     case $var in
23308     old_archive_cmds_F77 | \
23309     old_archive_from_new_cmds_F77 | \
23310     archive_cmds_F77 | \
23311     archive_expsym_cmds_F77 | \
23312     module_cmds_F77 | \
23313     module_expsym_cmds_F77 | \
23314     old_archive_from_expsyms_cmds_F77 | \
23315     export_symbols_cmds_F77 | \
23316     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23317     postinstall_cmds | postuninstall_cmds | \
23318     old_postinstall_cmds | old_postuninstall_cmds | \
23319     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23320       # Double-quote double-evaled strings.
23321       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23322       ;;
23323     *)
23324       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23325       ;;
23326     esac
23327   done
23328
23329   case $lt_echo in
23330   *'\$0 --fallback-echo"')
23331     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23332     ;;
23333   esac
23334
23335 cfgfile="$ofile"
23336
23337   cat <<__EOF__ >> "$cfgfile"
23338 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23339
23340 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23341
23342 # Shell to use when invoking shell scripts.
23343 SHELL=$lt_SHELL
23344
23345 # Whether or not to build shared libraries.
23346 build_libtool_libs=$enable_shared
23347
23348 # Whether or not to build static libraries.
23349 build_old_libs=$enable_static
23350
23351 # Whether or not to add -lc for building shared libraries.
23352 build_libtool_need_lc=$archive_cmds_need_lc_F77
23353
23354 # Whether or not to disallow shared libs when runtime libs are static
23355 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23356
23357 # Whether or not to optimize for fast installation.
23358 fast_install=$enable_fast_install
23359
23360 # The host system.
23361 host_alias=$host_alias
23362 host=$host
23363 host_os=$host_os
23364
23365 # The build system.
23366 build_alias=$build_alias
23367 build=$build
23368 build_os=$build_os
23369
23370 # An echo program that does not interpret backslashes.
23371 echo=$lt_echo
23372
23373 # The archiver.
23374 AR=$lt_AR
23375 AR_FLAGS=$lt_AR_FLAGS
23376
23377 # A C compiler.
23378 LTCC=$lt_LTCC
23379
23380 # LTCC compiler flags.
23381 LTCFLAGS=$lt_LTCFLAGS
23382
23383 # A language-specific compiler.
23384 CC=$lt_compiler_F77
23385
23386 # Is the compiler the GNU C compiler?
23387 with_gcc=$GCC_F77
23388
23389 # An ERE matcher.
23390 EGREP=$lt_EGREP
23391
23392 # The linker used to build libraries.
23393 LD=$lt_LD_F77
23394
23395 # Whether we need hard or soft links.
23396 LN_S=$lt_LN_S
23397
23398 # A BSD-compatible nm program.
23399 NM=$lt_NM
23400
23401 # A symbol stripping program
23402 STRIP=$lt_STRIP
23403
23404 # Used to examine libraries when file_magic_cmd begins "file"
23405 MAGIC_CMD=$MAGIC_CMD
23406
23407 # Used on cygwin: DLL creation program.
23408 DLLTOOL="$DLLTOOL"
23409
23410 # Used on cygwin: object dumper.
23411 OBJDUMP="$OBJDUMP"
23412
23413 # Used on cygwin: assembler.
23414 AS="$AS"
23415
23416 # The name of the directory that contains temporary libtool files.
23417 objdir=$objdir
23418
23419 # How to create reloadable object files.
23420 reload_flag=$lt_reload_flag
23421 reload_cmds=$lt_reload_cmds
23422
23423 # How to pass a linker flag through the compiler.
23424 wl=$lt_lt_prog_compiler_wl_F77
23425
23426 # Object file suffix (normally "o").
23427 objext="$ac_objext"
23428
23429 # Old archive suffix (normally "a").
23430 libext="$libext"
23431
23432 # Shared library suffix (normally ".so").
23433 shrext_cmds='$shrext_cmds'
23434
23435 # Executable file suffix (normally "").
23436 exeext="$exeext"
23437
23438 # Additional compiler flags for building library objects.
23439 pic_flag=$lt_lt_prog_compiler_pic_F77
23440 pic_mode=$pic_mode
23441
23442 # What is the maximum length of a command?
23443 max_cmd_len=$lt_cv_sys_max_cmd_len
23444
23445 # Does compiler simultaneously support -c and -o options?
23446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23447
23448 # Must we lock files when doing compilation?
23449 need_locks=$lt_need_locks
23450
23451 # Do we need the lib prefix for modules?
23452 need_lib_prefix=$need_lib_prefix
23453
23454 # Do we need a version for libraries?
23455 need_version=$need_version
23456
23457 # Whether dlopen is supported.
23458 dlopen_support=$enable_dlopen
23459
23460 # Whether dlopen of programs is supported.
23461 dlopen_self=$enable_dlopen_self
23462
23463 # Whether dlopen of statically linked programs is supported.
23464 dlopen_self_static=$enable_dlopen_self_static
23465
23466 # Compiler flag to prevent dynamic linking.
23467 link_static_flag=$lt_lt_prog_compiler_static_F77
23468
23469 # Compiler flag to turn off builtin functions.
23470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23471
23472 # Compiler flag to allow reflexive dlopens.
23473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23474
23475 # Compiler flag to generate shared objects directly from archives.
23476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23477
23478 # Compiler flag to generate thread-safe objects.
23479 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23480
23481 # Library versioning type.
23482 version_type=$version_type
23483
23484 # Format of library name prefix.
23485 libname_spec=$lt_libname_spec
23486
23487 # List of archive names.  First name is the real one, the rest are links.
23488 # The last name is the one that the linker finds with -lNAME.
23489 library_names_spec=$lt_library_names_spec
23490
23491 # The coded name of the library, if different from the real name.
23492 soname_spec=$lt_soname_spec
23493
23494 # Commands used to build and install an old-style archive.
23495 RANLIB=$lt_RANLIB
23496 old_archive_cmds=$lt_old_archive_cmds_F77
23497 old_postinstall_cmds=$lt_old_postinstall_cmds
23498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23499
23500 # Create an old-style archive from a shared archive.
23501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23502
23503 # Create a temporary old-style archive to link instead of a shared archive.
23504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23505
23506 # Commands used to build and install a shared archive.
23507 archive_cmds=$lt_archive_cmds_F77
23508 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23509 postinstall_cmds=$lt_postinstall_cmds
23510 postuninstall_cmds=$lt_postuninstall_cmds
23511
23512 # Commands used to build a loadable module (assumed same as above if empty)
23513 module_cmds=$lt_module_cmds_F77
23514 module_expsym_cmds=$lt_module_expsym_cmds_F77
23515
23516 # Commands to strip libraries.
23517 old_striplib=$lt_old_striplib
23518 striplib=$lt_striplib
23519
23520 # Dependencies to place before the objects being linked to create a
23521 # shared library.
23522 predep_objects=$lt_predep_objects_F77
23523
23524 # Dependencies to place after the objects being linked to create a
23525 # shared library.
23526 postdep_objects=$lt_postdep_objects_F77
23527
23528 # Dependencies to place before the objects being linked to create a
23529 # shared library.
23530 predeps=$lt_predeps_F77
23531
23532 # Dependencies to place after the objects being linked to create a
23533 # shared library.
23534 postdeps=$lt_postdeps_F77
23535
23536 # The library search path used internally by the compiler when linking
23537 # a shared library.
23538 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23539
23540 # Method to check whether dependent libraries are shared objects.
23541 deplibs_check_method=$lt_deplibs_check_method
23542
23543 # Command to use when deplibs_check_method == file_magic.
23544 file_magic_cmd=$lt_file_magic_cmd
23545
23546 # Flag that allows shared libraries with undefined symbols to be built.
23547 allow_undefined_flag=$lt_allow_undefined_flag_F77
23548
23549 # Flag that forces no undefined symbols.
23550 no_undefined_flag=$lt_no_undefined_flag_F77
23551
23552 # Commands used to finish a libtool library installation in a directory.
23553 finish_cmds=$lt_finish_cmds
23554
23555 # Same as above, but a single script fragment to be evaled but not shown.
23556 finish_eval=$lt_finish_eval
23557
23558 # Take the output of nm and produce a listing of raw symbols and C names.
23559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23560
23561 # Transform the output of nm in a proper C declaration
23562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23563
23564 # Transform the output of nm in a C name address pair
23565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23566
23567 # This is the shared library runtime path variable.
23568 runpath_var=$runpath_var
23569
23570 # This is the shared library path variable.
23571 shlibpath_var=$shlibpath_var
23572
23573 # Is shlibpath searched before the hard-coded library search path?
23574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23575
23576 # How to hardcode a shared library path into an executable.
23577 hardcode_action=$hardcode_action_F77
23578
23579 # Whether we should hardcode library paths into libraries.
23580 hardcode_into_libs=$hardcode_into_libs
23581
23582 # Flag to hardcode \$libdir into a binary during linking.
23583 # This must work even if \$libdir does not exist.
23584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23585
23586 # If ld is used when linking, flag to hardcode \$libdir into
23587 # a binary during linking. This must work even if \$libdir does
23588 # not exist.
23589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23590
23591 # Whether we need a single -rpath flag with a separated argument.
23592 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23593
23594 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23595 # resulting binary.
23596 hardcode_direct=$hardcode_direct_F77
23597
23598 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23599 # resulting binary.
23600 hardcode_minus_L=$hardcode_minus_L_F77
23601
23602 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23603 # the resulting binary.
23604 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23605
23606 # Set to yes if building a shared library automatically hardcodes DIR into the library
23607 # and all subsequent libraries and executables linked against it.
23608 hardcode_automatic=$hardcode_automatic_F77
23609
23610 # Variables whose values should be saved in libtool wrapper scripts and
23611 # restored at relink time.
23612 variables_saved_for_relink="$variables_saved_for_relink"
23613
23614 # Whether libtool must link a program against all its dependency libraries.
23615 link_all_deplibs=$link_all_deplibs_F77
23616
23617 # Compile-time system search path for libraries
23618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23619
23620 # Run-time system search path for libraries
23621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23622
23623 # Fix the shell variable \$srcfile for the compiler.
23624 fix_srcfile_path="$fix_srcfile_path_F77"
23625
23626 # Set to yes if exported symbols are required.
23627 always_export_symbols=$always_export_symbols_F77
23628
23629 # The commands to list exported symbols.
23630 export_symbols_cmds=$lt_export_symbols_cmds_F77
23631
23632 # The commands to extract the exported symbol list from a shared archive.
23633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23634
23635 # Symbols that should not be listed in the preloaded symbols.
23636 exclude_expsyms=$lt_exclude_expsyms_F77
23637
23638 # Symbols that must always be exported.
23639 include_expsyms=$lt_include_expsyms_F77
23640
23641 # ### END LIBTOOL TAG CONFIG: $tagname
23642
23643 __EOF__
23644
23645
23646 else
23647   # If there is no Makefile yet, we rely on a make rule to execute
23648   # `config.status --recheck' to rerun these tests and create the
23649   # libtool script then.
23650   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23651   if test -f "$ltmain_in"; then
23652     test -f Makefile && make "$ltmain"
23653   fi
23654 fi
23655
23656
23657 ac_ext=c
23658 ac_cpp='$CPP $CPPFLAGS'
23659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23662
23663 CC="$lt_save_CC"
23664
23665         else
23666           tagname=""
23667         fi
23668         ;;
23669
23670       GCJ)
23671         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
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
23679 # Source file extension for Java test sources.
23680 ac_ext=java
23681
23682 # Object file extension for compiled Java test sources.
23683 objext=o
23684 objext_GCJ=$objext
23685
23686 # Code to be used in simple compile tests
23687 lt_simple_compile_test_code="class foo {}\n"
23688
23689 # Code to be used in simple link tests
23690 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23691
23692 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23693
23694 # If no C compiler was specified, use CC.
23695 LTCC=${LTCC-"$CC"}
23696
23697 # If no C compiler flags were specified, use CFLAGS.
23698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23699
23700 # Allow CC to be a program name with arguments.
23701 compiler=$CC
23702
23703
23704 # save warnings/boilerplate of simple test code
23705 ac_outfile=conftest.$ac_objext
23706 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23708 _lt_compiler_boilerplate=`cat conftest.err`
23709 $rm conftest*
23710
23711 ac_outfile=conftest.$ac_objext
23712 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23714 _lt_linker_boilerplate=`cat conftest.err`
23715 $rm conftest*
23716
23717
23718 # Allow CC to be a program name with arguments.
23719 lt_save_CC="$CC"
23720 CC=${GCJ-"gcj"}
23721 compiler=$CC
23722 compiler_GCJ=$CC
23723 for cc_temp in $compiler""; do
23724   case $cc_temp in
23725     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23726     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23727     \-*) ;;
23728     *) break;;
23729   esac
23730 done
23731 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23732
23733
23734 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23735 archive_cmds_need_lc_GCJ=no
23736
23737 old_archive_cmds_GCJ=$old_archive_cmds
23738
23739
23740 lt_prog_compiler_no_builtin_flag_GCJ=
23741
23742 if test "$GCC" = yes; then
23743   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23744
23745
23746 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23747 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23748 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23749   echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751   lt_cv_prog_compiler_rtti_exceptions=no
23752   ac_outfile=conftest.$ac_objext
23753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754    lt_compiler_flag="-fno-rtti -fno-exceptions"
23755    # Insert the option either (1) after the last *FLAGS variable, or
23756    # (2) before a word containing "conftest.", or (3) at the end.
23757    # Note that $ac_compile itself does not contain backslashes and begins
23758    # with a dollar sign (not a hyphen), so the echo should work correctly.
23759    # The option is referenced via a variable to avoid confusing sed.
23760    lt_compile=`echo "$ac_compile" | $SED \
23761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763    -e 's:$: $lt_compiler_flag:'`
23764    (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
23765    (eval "$lt_compile" 2>conftest.err)
23766    ac_status=$?
23767    cat conftest.err >&5
23768    echo "$as_me:23768: \$? = $ac_status" >&5
23769    if (exit $ac_status) && test -s "$ac_outfile"; then
23770      # The compiler can only warn and ignore the option if not recognized
23771      # So say no if there are warnings other than the usual output.
23772      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23775        lt_cv_prog_compiler_rtti_exceptions=yes
23776      fi
23777    fi
23778    $rm conftest*
23779
23780 fi
23781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23782 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23783
23784 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23785     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23786 else
23787     :
23788 fi
23789
23790 fi
23791
23792 lt_prog_compiler_wl_GCJ=
23793 lt_prog_compiler_pic_GCJ=
23794 lt_prog_compiler_static_GCJ=
23795
23796 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23798
23799   if test "$GCC" = yes; then
23800     lt_prog_compiler_wl_GCJ='-Wl,'
23801     lt_prog_compiler_static_GCJ='-static'
23802
23803     case $host_os in
23804       aix*)
23805       # All AIX code is PIC.
23806       if test "$host_cpu" = ia64; then
23807         # AIX 5 now supports IA64 processor
23808         lt_prog_compiler_static_GCJ='-Bstatic'
23809       fi
23810       ;;
23811
23812     amigaos*)
23813       # FIXME: we need at least 68020 code to build shared libraries, but
23814       # adding the `-m68020' flag to GCC prevents building anything better,
23815       # like `-m68040'.
23816       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23817       ;;
23818
23819     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23820       # PIC is the default for these OSes.
23821       ;;
23822
23823     mingw* | pw32* | os2*)
23824       # This hack is so that the source file can tell whether it is being
23825       # built for inclusion in a dll (and should export symbols for example).
23826       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23827       ;;
23828
23829     darwin* | rhapsody*)
23830       # PIC is the default on this platform
23831       # Common symbols not allowed in MH_DYLIB files
23832       lt_prog_compiler_pic_GCJ='-fno-common'
23833       ;;
23834
23835     interix3*)
23836       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23837       # Instead, we relocate shared libraries at runtime.
23838       ;;
23839
23840     msdosdjgpp*)
23841       # Just because we use GCC doesn't mean we suddenly get shared libraries
23842       # on systems that don't support them.
23843       lt_prog_compiler_can_build_shared_GCJ=no
23844       enable_shared=no
23845       ;;
23846
23847     sysv4*MP*)
23848       if test -d /usr/nec; then
23849         lt_prog_compiler_pic_GCJ=-Kconform_pic
23850       fi
23851       ;;
23852
23853     hpux*)
23854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23855       # not for PA HP-UX.
23856       case $host_cpu in
23857       hppa*64*|ia64*)
23858         # +Z the default
23859         ;;
23860       *)
23861         lt_prog_compiler_pic_GCJ='-fPIC'
23862         ;;
23863       esac
23864       ;;
23865
23866     *)
23867       lt_prog_compiler_pic_GCJ='-fPIC'
23868       ;;
23869     esac
23870   else
23871     # PORTME Check for flag to pass linker flags through the system compiler.
23872     case $host_os in
23873     aix*)
23874       lt_prog_compiler_wl_GCJ='-Wl,'
23875       if test "$host_cpu" = ia64; then
23876         # AIX 5 now supports IA64 processor
23877         lt_prog_compiler_static_GCJ='-Bstatic'
23878       else
23879         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23880       fi
23881       ;;
23882       darwin*)
23883         # PIC is the default on this platform
23884         # Common symbols not allowed in MH_DYLIB files
23885        case $cc_basename in
23886          xlc*)
23887          lt_prog_compiler_pic_GCJ='-qnocommon'
23888          lt_prog_compiler_wl_GCJ='-Wl,'
23889          ;;
23890        esac
23891        ;;
23892
23893     mingw* | pw32* | os2*)
23894       # This hack is so that the source file can tell whether it is being
23895       # built for inclusion in a dll (and should export symbols for example).
23896       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23897       ;;
23898
23899     hpux9* | hpux10* | hpux11*)
23900       lt_prog_compiler_wl_GCJ='-Wl,'
23901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23902       # not for PA HP-UX.
23903       case $host_cpu in
23904       hppa*64*|ia64*)
23905         # +Z the default
23906         ;;
23907       *)
23908         lt_prog_compiler_pic_GCJ='+Z'
23909         ;;
23910       esac
23911       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23912       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23913       ;;
23914
23915     irix5* | irix6* | nonstopux*)
23916       lt_prog_compiler_wl_GCJ='-Wl,'
23917       # PIC (with -KPIC) is the default.
23918       lt_prog_compiler_static_GCJ='-non_shared'
23919       ;;
23920
23921     newsos6)
23922       lt_prog_compiler_pic_GCJ='-KPIC'
23923       lt_prog_compiler_static_GCJ='-Bstatic'
23924       ;;
23925
23926     linux*)
23927       case $cc_basename in
23928       icc* | ecc*)
23929         lt_prog_compiler_wl_GCJ='-Wl,'
23930         lt_prog_compiler_pic_GCJ='-KPIC'
23931         lt_prog_compiler_static_GCJ='-static'
23932         ;;
23933       pgcc* | pgf77* | pgf90* | pgf95*)
23934         # Portland Group compilers (*not* the Pentium gcc compiler,
23935         # which looks to be a dead project)
23936         lt_prog_compiler_wl_GCJ='-Wl,'
23937         lt_prog_compiler_pic_GCJ='-fpic'
23938         lt_prog_compiler_static_GCJ='-Bstatic'
23939         ;;
23940       ccc*)
23941         lt_prog_compiler_wl_GCJ='-Wl,'
23942         # All Alpha code is PIC.
23943         lt_prog_compiler_static_GCJ='-non_shared'
23944         ;;
23945       esac
23946       ;;
23947
23948     osf3* | osf4* | osf5*)
23949       lt_prog_compiler_wl_GCJ='-Wl,'
23950       # All OSF/1 code is PIC.
23951       lt_prog_compiler_static_GCJ='-non_shared'
23952       ;;
23953
23954     solaris*)
23955       lt_prog_compiler_pic_GCJ='-KPIC'
23956       lt_prog_compiler_static_GCJ='-Bstatic'
23957       case $cc_basename in
23958       f77* | f90* | f95*)
23959         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23960       *)
23961         lt_prog_compiler_wl_GCJ='-Wl,';;
23962       esac
23963       ;;
23964
23965     sunos4*)
23966       lt_prog_compiler_wl_GCJ='-Qoption ld '
23967       lt_prog_compiler_pic_GCJ='-PIC'
23968       lt_prog_compiler_static_GCJ='-Bstatic'
23969       ;;
23970
23971     sysv4 | sysv4.2uw2* | sysv4.3*)
23972       lt_prog_compiler_wl_GCJ='-Wl,'
23973       lt_prog_compiler_pic_GCJ='-KPIC'
23974       lt_prog_compiler_static_GCJ='-Bstatic'
23975       ;;
23976
23977     sysv4*MP*)
23978       if test -d /usr/nec ;then
23979         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23980         lt_prog_compiler_static_GCJ='-Bstatic'
23981       fi
23982       ;;
23983
23984     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23985       lt_prog_compiler_wl_GCJ='-Wl,'
23986       lt_prog_compiler_pic_GCJ='-KPIC'
23987       lt_prog_compiler_static_GCJ='-Bstatic'
23988       ;;
23989
23990     unicos*)
23991       lt_prog_compiler_wl_GCJ='-Wl,'
23992       lt_prog_compiler_can_build_shared_GCJ=no
23993       ;;
23994
23995     uts4*)
23996       lt_prog_compiler_pic_GCJ='-pic'
23997       lt_prog_compiler_static_GCJ='-Bstatic'
23998       ;;
23999
24000     *)
24001       lt_prog_compiler_can_build_shared_GCJ=no
24002       ;;
24003     esac
24004   fi
24005
24006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24007 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24008
24009 #
24010 # Check to make sure the PIC flag actually works.
24011 #
24012 if test -n "$lt_prog_compiler_pic_GCJ"; then
24013
24014 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24016 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24017   echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019   lt_prog_compiler_pic_works_GCJ=no
24020   ac_outfile=conftest.$ac_objext
24021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24023    # Insert the option either (1) after the last *FLAGS variable, or
24024    # (2) before a word containing "conftest.", or (3) at the end.
24025    # Note that $ac_compile itself does not contain backslashes and begins
24026    # with a dollar sign (not a hyphen), so the echo should work correctly.
24027    # The option is referenced via a variable to avoid confusing sed.
24028    lt_compile=`echo "$ac_compile" | $SED \
24029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031    -e 's:$: $lt_compiler_flag:'`
24032    (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
24033    (eval "$lt_compile" 2>conftest.err)
24034    ac_status=$?
24035    cat conftest.err >&5
24036    echo "$as_me:24036: \$? = $ac_status" >&5
24037    if (exit $ac_status) && test -s "$ac_outfile"; then
24038      # The compiler can only warn and ignore the option if not recognized
24039      # So say no if there are warnings other than the usual output.
24040      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24043        lt_prog_compiler_pic_works_GCJ=yes
24044      fi
24045    fi
24046    $rm conftest*
24047
24048 fi
24049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24050 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24051
24052 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24053     case $lt_prog_compiler_pic_GCJ in
24054      "" | " "*) ;;
24055      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24056      esac
24057 else
24058     lt_prog_compiler_pic_GCJ=
24059      lt_prog_compiler_can_build_shared_GCJ=no
24060 fi
24061
24062 fi
24063 case $host_os in
24064   # For platforms which do not support PIC, -DPIC is meaningless:
24065   *djgpp*)
24066     lt_prog_compiler_pic_GCJ=
24067     ;;
24068   *)
24069     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24070     ;;
24071 esac
24072
24073 #
24074 # Check to make sure the static flag actually works.
24075 #
24076 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24077 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24078 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24079 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24080   echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082   lt_prog_compiler_static_works_GCJ=no
24083    save_LDFLAGS="$LDFLAGS"
24084    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24085    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24086    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24087      # The linker can only warn and ignore the option if not recognized
24088      # So say no if there are warnings
24089      if test -s conftest.err; then
24090        # Append any errors to the config.log.
24091        cat conftest.err 1>&5
24092        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24093        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24094        if diff conftest.exp conftest.er2 >/dev/null; then
24095          lt_prog_compiler_static_works_GCJ=yes
24096        fi
24097      else
24098        lt_prog_compiler_static_works_GCJ=yes
24099      fi
24100    fi
24101    $rm conftest*
24102    LDFLAGS="$save_LDFLAGS"
24103
24104 fi
24105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24106 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24107
24108 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24109     :
24110 else
24111     lt_prog_compiler_static_GCJ=
24112 fi
24113
24114
24115 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24117 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24118   echo $ECHO_N "(cached) $ECHO_C" >&6
24119 else
24120   lt_cv_prog_compiler_c_o_GCJ=no
24121    $rm -r conftest 2>/dev/null
24122    mkdir conftest
24123    cd conftest
24124    mkdir out
24125    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24126
24127    lt_compiler_flag="-o out/conftest2.$ac_objext"
24128    # Insert the option either (1) after the last *FLAGS variable, or
24129    # (2) before a word containing "conftest.", or (3) at the end.
24130    # Note that $ac_compile itself does not contain backslashes and begins
24131    # with a dollar sign (not a hyphen), so the echo should work correctly.
24132    lt_compile=`echo "$ac_compile" | $SED \
24133    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24135    -e 's:$: $lt_compiler_flag:'`
24136    (eval echo "\"\$as_me:24136: $lt_compile\"" >&5)
24137    (eval "$lt_compile" 2>out/conftest.err)
24138    ac_status=$?
24139    cat out/conftest.err >&5
24140    echo "$as_me:24140: \$? = $ac_status" >&5
24141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24142    then
24143      # The compiler can only warn and ignore the option if not recognized
24144      # So say no if there are warnings
24145      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24146      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24147      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24148        lt_cv_prog_compiler_c_o_GCJ=yes
24149      fi
24150    fi
24151    chmod u+w . 2>&5
24152    $rm conftest*
24153    # SGI C++ compiler will create directory out/ii_files/ for
24154    # template instantiation
24155    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24156    $rm out/* && rmdir out
24157    cd ..
24158    rmdir conftest
24159    $rm conftest*
24160
24161 fi
24162 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24163 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24164
24165
24166 hard_links="nottested"
24167 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24168   # do not overwrite the value of need_locks provided by the user
24169   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24170 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24171   hard_links=yes
24172   $rm conftest*
24173   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24174   touch conftest.a
24175   ln conftest.a conftest.b 2>&5 || hard_links=no
24176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24177   { echo "$as_me:$LINENO: result: $hard_links" >&5
24178 echo "${ECHO_T}$hard_links" >&6; }
24179   if test "$hard_links" = no; then
24180     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24181 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24182     need_locks=warn
24183   fi
24184 else
24185   need_locks=no
24186 fi
24187
24188 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24189 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24190
24191   runpath_var=
24192   allow_undefined_flag_GCJ=
24193   enable_shared_with_static_runtimes_GCJ=no
24194   archive_cmds_GCJ=
24195   archive_expsym_cmds_GCJ=
24196   old_archive_From_new_cmds_GCJ=
24197   old_archive_from_expsyms_cmds_GCJ=
24198   export_dynamic_flag_spec_GCJ=
24199   whole_archive_flag_spec_GCJ=
24200   thread_safe_flag_spec_GCJ=
24201   hardcode_libdir_flag_spec_GCJ=
24202   hardcode_libdir_flag_spec_ld_GCJ=
24203   hardcode_libdir_separator_GCJ=
24204   hardcode_direct_GCJ=no
24205   hardcode_minus_L_GCJ=no
24206   hardcode_shlibpath_var_GCJ=unsupported
24207   link_all_deplibs_GCJ=unknown
24208   hardcode_automatic_GCJ=no
24209   module_cmds_GCJ=
24210   module_expsym_cmds_GCJ=
24211   always_export_symbols_GCJ=no
24212   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24213   # include_expsyms should be a list of space-separated symbols to be *always*
24214   # included in the symbol list
24215   include_expsyms_GCJ=
24216   # exclude_expsyms can be an extended regexp of symbols to exclude
24217   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24218   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24219   # as well as any symbol that contains `d'.
24220   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24221   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24222   # platforms (ab)use it in PIC code, but their linkers get confused if
24223   # the symbol is explicitly referenced.  Since portable code cannot
24224   # rely on this symbol name, it's probably fine to never include it in
24225   # preloaded symbol tables.
24226   extract_expsyms_cmds=
24227   # Just being paranoid about ensuring that cc_basename is set.
24228   for cc_temp in $compiler""; do
24229   case $cc_temp in
24230     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24231     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24232     \-*) ;;
24233     *) break;;
24234   esac
24235 done
24236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24237
24238   case $host_os in
24239   cygwin* | mingw* | pw32*)
24240     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24241     # When not using gcc, we currently assume that we are using
24242     # Microsoft Visual C++.
24243     if test "$GCC" != yes; then
24244       with_gnu_ld=no
24245     fi
24246     ;;
24247   interix*)
24248     # we just hope/assume this is gcc and not c89 (= MSVC++)
24249     with_gnu_ld=yes
24250     ;;
24251   openbsd*)
24252     with_gnu_ld=no
24253     ;;
24254   esac
24255
24256   ld_shlibs_GCJ=yes
24257   if test "$with_gnu_ld" = yes; then
24258     # If archive_cmds runs LD, not CC, wlarc should be empty
24259     wlarc='${wl}'
24260
24261     # Set some defaults for GNU ld with shared library support. These
24262     # are reset later if shared libraries are not supported. Putting them
24263     # here allows them to be overridden if necessary.
24264     runpath_var=LD_RUN_PATH
24265     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24266     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24267     # ancient GNU ld didn't support --whole-archive et. al.
24268     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24269         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24270       else
24271         whole_archive_flag_spec_GCJ=
24272     fi
24273     supports_anon_versioning=no
24274     case `$LD -v 2>/dev/null` in
24275       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24276       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24277       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24278       *\ 2.11.*) ;; # other 2.11 versions
24279       *) supports_anon_versioning=yes ;;
24280     esac
24281
24282     # See if GNU ld supports shared libraries.
24283     case $host_os in
24284     aix3* | aix4* | aix5*)
24285       # On AIX/PPC, the GNU linker is very broken
24286       if test "$host_cpu" != ia64; then
24287         ld_shlibs_GCJ=no
24288         cat <<EOF 1>&2
24289
24290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24291 *** to be unable to reliably create shared libraries on AIX.
24292 *** Therefore, libtool is disabling shared libraries support.  If you
24293 *** really care for shared libraries, you may want to modify your PATH
24294 *** so that a non-GNU linker is found, and then restart.
24295
24296 EOF
24297       fi
24298       ;;
24299
24300     amigaos*)
24301       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)'
24302       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24303       hardcode_minus_L_GCJ=yes
24304
24305       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24306       # that the semantics of dynamic libraries on AmigaOS, at least up
24307       # to version 4, is to share data among multiple programs linked
24308       # with the same dynamic library.  Since this doesn't match the
24309       # behavior of shared libraries on other platforms, we can't use
24310       # them.
24311       ld_shlibs_GCJ=no
24312       ;;
24313
24314     beos*)
24315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24316         allow_undefined_flag_GCJ=unsupported
24317         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24318         # support --undefined.  This deserves some investigation.  FIXME
24319         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24320       else
24321         ld_shlibs_GCJ=no
24322       fi
24323       ;;
24324
24325     cygwin* | mingw* | pw32*)
24326       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24327       # as there is no search path for DLLs.
24328       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24329       allow_undefined_flag_GCJ=unsupported
24330       always_export_symbols_GCJ=no
24331       enable_shared_with_static_runtimes_GCJ=yes
24332       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24333
24334       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24335         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24336         # If the export-symbols file already is a .def file (1st line
24337         # is EXPORTS), use it as is; otherwise, prepend...
24338         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24339           cp $export_symbols $output_objdir/$soname.def;
24340         else
24341           echo EXPORTS > $output_objdir/$soname.def;
24342           cat $export_symbols >> $output_objdir/$soname.def;
24343         fi~
24344         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24345       else
24346         ld_shlibs_GCJ=no
24347       fi
24348       ;;
24349
24350     interix3*)
24351       hardcode_direct_GCJ=no
24352       hardcode_shlibpath_var_GCJ=no
24353       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24354       export_dynamic_flag_spec_GCJ='${wl}-E'
24355       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24356       # Instead, shared libraries are loaded at an image base (0x10000000 by
24357       # default) and relocated if they conflict, which is a slow very memory
24358       # consuming and fragmenting process.  To avoid this, we pick a random,
24359       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24360       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24361       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'
24362       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'
24363       ;;
24364
24365     linux*)
24366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24367         tmp_addflag=
24368         case $cc_basename,$host_cpu in
24369         pgcc*)                          # Portland Group C compiler
24370           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'
24371           tmp_addflag=' $pic_flag'
24372           ;;
24373         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24374           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'
24375           tmp_addflag=' $pic_flag -Mnomain' ;;
24376         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24377           tmp_addflag=' -i_dynamic' ;;
24378         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24379           tmp_addflag=' -i_dynamic -nofor_main' ;;
24380         ifc* | ifort*)                  # Intel Fortran compiler
24381           tmp_addflag=' -nofor_main' ;;
24382         esac
24383         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24384
24385         if test $supports_anon_versioning = yes; then
24386           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24387   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24388   $echo "local: *; };" >> $output_objdir/$libname.ver~
24389           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24390         fi
24391       else
24392         ld_shlibs_GCJ=no
24393       fi
24394       ;;
24395
24396     netbsd*)
24397       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24398         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24399         wlarc=
24400       else
24401         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24402         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24403       fi
24404       ;;
24405
24406     solaris*)
24407       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24408         ld_shlibs_GCJ=no
24409         cat <<EOF 1>&2
24410
24411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24412 *** create shared libraries on Solaris systems.  Therefore, libtool
24413 *** is disabling shared libraries support.  We urge you to upgrade GNU
24414 *** binutils to release 2.9.1 or newer.  Another option is to modify
24415 *** your PATH or compiler configuration so that the native linker is
24416 *** used, and then restart.
24417
24418 EOF
24419       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24421         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24422       else
24423         ld_shlibs_GCJ=no
24424       fi
24425       ;;
24426
24427     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24428       case `$LD -v 2>&1` in
24429         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24430         ld_shlibs_GCJ=no
24431         cat <<_LT_EOF 1>&2
24432
24433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24434 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24435 *** is disabling shared libraries support.  We urge you to upgrade GNU
24436 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24437 *** your PATH or compiler configuration so that the native linker is
24438 *** used, and then restart.
24439
24440 _LT_EOF
24441         ;;
24442         *)
24443           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24445             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24446             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24447           else
24448             ld_shlibs_GCJ=no
24449           fi
24450         ;;
24451       esac
24452       ;;
24453
24454     sunos4*)
24455       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24456       wlarc=
24457       hardcode_direct_GCJ=yes
24458       hardcode_shlibpath_var_GCJ=no
24459       ;;
24460
24461     *)
24462       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24463         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24464         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24465       else
24466         ld_shlibs_GCJ=no
24467       fi
24468       ;;
24469     esac
24470
24471     if test "$ld_shlibs_GCJ" = no; then
24472       runpath_var=
24473       hardcode_libdir_flag_spec_GCJ=
24474       export_dynamic_flag_spec_GCJ=
24475       whole_archive_flag_spec_GCJ=
24476     fi
24477   else
24478     # PORTME fill in a description of your system's linker (not GNU ld)
24479     case $host_os in
24480     aix3*)
24481       allow_undefined_flag_GCJ=unsupported
24482       always_export_symbols_GCJ=yes
24483       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'
24484       # Note: this linker hardcodes the directories in LIBPATH if there
24485       # are no directories specified by -L.
24486       hardcode_minus_L_GCJ=yes
24487       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24488         # Neither direct hardcoding nor static linking is supported with a
24489         # broken collect2.
24490         hardcode_direct_GCJ=unsupported
24491       fi
24492       ;;
24493
24494     aix4* | aix5*)
24495       if test "$host_cpu" = ia64; then
24496         # On IA64, the linker does run time linking by default, so we don't
24497         # have to do anything special.
24498         aix_use_runtimelinking=no
24499         exp_sym_flag='-Bexport'
24500         no_entry_flag=""
24501       else
24502         # If we're using GNU nm, then we don't want the "-C" option.
24503         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24504         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24505           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'
24506         else
24507           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'
24508         fi
24509         aix_use_runtimelinking=no
24510
24511         # Test if we are trying to use run time linking or normal
24512         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24513         # need to do runtime linking.
24514         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24515           for ld_flag in $LDFLAGS; do
24516           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24517             aix_use_runtimelinking=yes
24518             break
24519           fi
24520           done
24521           ;;
24522         esac
24523
24524         exp_sym_flag='-bexport'
24525         no_entry_flag='-bnoentry'
24526       fi
24527
24528       # When large executables or shared objects are built, AIX ld can
24529       # have problems creating the table of contents.  If linking a library
24530       # or program results in "error TOC overflow" add -mminimal-toc to
24531       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24532       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24533
24534       archive_cmds_GCJ=''
24535       hardcode_direct_GCJ=yes
24536       hardcode_libdir_separator_GCJ=':'
24537       link_all_deplibs_GCJ=yes
24538
24539       if test "$GCC" = yes; then
24540         case $host_os in aix4.[012]|aix4.[012].*)
24541         # We only want to do this on AIX 4.2 and lower, the check
24542         # below for broken collect2 doesn't work under 4.3+
24543           collect2name=`${CC} -print-prog-name=collect2`
24544           if test -f "$collect2name" && \
24545            strings "$collect2name" | grep resolve_lib_name >/dev/null
24546           then
24547           # We have reworked collect2
24548           hardcode_direct_GCJ=yes
24549           else
24550           # We have old collect2
24551           hardcode_direct_GCJ=unsupported
24552           # It fails to find uninstalled libraries when the uninstalled
24553           # path is not listed in the libpath.  Setting hardcode_minus_L
24554           # to unsupported forces relinking
24555           hardcode_minus_L_GCJ=yes
24556           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24557           hardcode_libdir_separator_GCJ=
24558           fi
24559           ;;
24560         esac
24561         shared_flag='-shared'
24562         if test "$aix_use_runtimelinking" = yes; then
24563           shared_flag="$shared_flag "'${wl}-G'
24564         fi
24565       else
24566         # not using gcc
24567         if test "$host_cpu" = ia64; then
24568         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24569         # chokes on -Wl,-G. The following line is correct:
24570           shared_flag='-G'
24571         else
24572           if test "$aix_use_runtimelinking" = yes; then
24573             shared_flag='${wl}-G'
24574           else
24575             shared_flag='${wl}-bM:SRE'
24576           fi
24577         fi
24578       fi
24579
24580       # It seems that -bexpall does not export symbols beginning with
24581       # underscore (_), so it is better to generate a list of symbols to export.
24582       always_export_symbols_GCJ=yes
24583       if test "$aix_use_runtimelinking" = yes; then
24584         # Warning - without using the other runtime loading flags (-brtl),
24585         # -berok will link without error, but may produce a broken library.
24586         allow_undefined_flag_GCJ='-berok'
24587        # Determine the default libpath from the value encoded in an empty executable.
24588        cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h.  */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h.  */
24594
24595 int
24596 main ()
24597 {
24598
24599   ;
24600   return 0;
24601 }
24602 _ACEOF
24603 rm -f conftest.$ac_objext conftest$ac_exeext
24604 if { (ac_try="$ac_link"
24605 case "(($ac_try" in
24606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607   *) ac_try_echo=$ac_try;;
24608 esac
24609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610   (eval "$ac_link") 2>conftest.er1
24611   ac_status=$?
24612   grep -v '^ *+' conftest.er1 >conftest.err
24613   rm -f conftest.er1
24614   cat conftest.err >&5
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); } &&
24617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24618   { (case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623   (eval "$ac_try") 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; } &&
24627          { ac_try='test -s conftest$ac_exeext'
24628   { (case "(($ac_try" in
24629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630   *) ac_try_echo=$ac_try;;
24631 esac
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633   (eval "$ac_try") 2>&5
24634   ac_status=$?
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); }; }; then
24637
24638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24639 }'`
24640 # Check for a 64-bit object if we didn't find anything.
24641 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; }
24642 }'`; fi
24643 else
24644   echo "$as_me: failed program was:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24646
24647
24648 fi
24649
24650 rm -f core conftest.err conftest.$ac_objext \
24651       conftest$ac_exeext conftest.$ac_ext
24652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24653
24654        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24655         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"
24656        else
24657         if test "$host_cpu" = ia64; then
24658           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24659           allow_undefined_flag_GCJ="-z nodefs"
24660           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"
24661         else
24662          # Determine the default libpath from the value encoded in an empty executable.
24663          cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669
24670 int
24671 main ()
24672 {
24673
24674   ;
24675   return 0;
24676 }
24677 _ACEOF
24678 rm -f conftest.$ac_objext conftest$ac_exeext
24679 if { (ac_try="$ac_link"
24680 case "(($ac_try" in
24681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682   *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685   (eval "$ac_link") 2>conftest.er1
24686   ac_status=$?
24687   grep -v '^ *+' conftest.er1 >conftest.err
24688   rm -f conftest.er1
24689   cat conftest.err >&5
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); } &&
24692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24693   { (case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_try") 2>&5
24699   ac_status=$?
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); }; } &&
24702          { ac_try='test -s conftest$ac_exeext'
24703   { (case "(($ac_try" in
24704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705   *) ac_try_echo=$ac_try;;
24706 esac
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708   (eval "$ac_try") 2>&5
24709   ac_status=$?
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); }; }; then
24712
24713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24714 }'`
24715 # Check for a 64-bit object if we didn't find anything.
24716 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; }
24717 }'`; fi
24718 else
24719   echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24721
24722
24723 fi
24724
24725 rm -f core conftest.err conftest.$ac_objext \
24726       conftest$ac_exeext conftest.$ac_ext
24727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24728
24729          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24730           # Warning - without using the other run time loading flags,
24731           # -berok will link without error, but may produce a broken library.
24732           no_undefined_flag_GCJ=' ${wl}-bernotok'
24733           allow_undefined_flag_GCJ=' ${wl}-berok'
24734           # Exported symbols can be pulled into shared objects from archives
24735           whole_archive_flag_spec_GCJ='$convenience'
24736           archive_cmds_need_lc_GCJ=yes
24737           # This is similar to how AIX traditionally builds its shared libraries.
24738           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'
24739         fi
24740       fi
24741       ;;
24742
24743     amigaos*)
24744       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)'
24745       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24746       hardcode_minus_L_GCJ=yes
24747       # see comment about different semantics on the GNU ld section
24748       ld_shlibs_GCJ=no
24749       ;;
24750
24751     bsdi[45]*)
24752       export_dynamic_flag_spec_GCJ=-rdynamic
24753       ;;
24754
24755     cygwin* | mingw* | pw32*)
24756       # When not using gcc, we currently assume that we are using
24757       # Microsoft Visual C++.
24758       # hardcode_libdir_flag_spec is actually meaningless, as there is
24759       # no search path for DLLs.
24760       hardcode_libdir_flag_spec_GCJ=' '
24761       allow_undefined_flag_GCJ=unsupported
24762       # Tell ltmain to make .lib files, not .a files.
24763       libext=lib
24764       # Tell ltmain to make .dll files, not .so files.
24765       shrext_cmds=".dll"
24766       # FIXME: Setting linknames here is a bad hack.
24767       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24768       # The linker will automatically build a .lib file if we build a DLL.
24769       old_archive_From_new_cmds_GCJ='true'
24770       # FIXME: Should let the user specify the lib program.
24771       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24772       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24773       enable_shared_with_static_runtimes_GCJ=yes
24774       ;;
24775
24776     darwin* | rhapsody*)
24777       case $host_os in
24778         rhapsody* | darwin1.[012])
24779          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24780          ;;
24781        *) # Darwin 1.3 on
24782          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24783            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24784          else
24785            case ${MACOSX_DEPLOYMENT_TARGET} in
24786              10.[012])
24787                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24788                ;;
24789              10.*)
24790                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24791                ;;
24792            esac
24793          fi
24794          ;;
24795       esac
24796       archive_cmds_need_lc_GCJ=no
24797       hardcode_direct_GCJ=no
24798       hardcode_automatic_GCJ=yes
24799       hardcode_shlibpath_var_GCJ=unsupported
24800       whole_archive_flag_spec_GCJ=''
24801       link_all_deplibs_GCJ=yes
24802     if test "$GCC" = yes ; then
24803         output_verbose_link_cmd='echo'
24804         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24805       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24806       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24807       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}'
24808       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}'
24809     else
24810       case $cc_basename in
24811         xlc*)
24812          output_verbose_link_cmd='echo'
24813          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24814          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24815           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24816          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}'
24817           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}'
24818           ;;
24819        *)
24820          ld_shlibs_GCJ=no
24821           ;;
24822       esac
24823     fi
24824       ;;
24825
24826     dgux*)
24827       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24828       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829       hardcode_shlibpath_var_GCJ=no
24830       ;;
24831
24832     freebsd1*)
24833       ld_shlibs_GCJ=no
24834       ;;
24835
24836     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24837     # support.  Future versions do this automatically, but an explicit c++rt0.o
24838     # does not break anything, and helps significantly (at the cost of a little
24839     # extra space).
24840     freebsd2.2*)
24841       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24842       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24843       hardcode_direct_GCJ=yes
24844       hardcode_shlibpath_var_GCJ=no
24845       ;;
24846
24847     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24848     freebsd2*)
24849       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24850       hardcode_direct_GCJ=yes
24851       hardcode_minus_L_GCJ=yes
24852       hardcode_shlibpath_var_GCJ=no
24853       ;;
24854
24855     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24856     freebsd* | kfreebsd*-gnu | dragonfly*)
24857       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24858       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24859       hardcode_direct_GCJ=yes
24860       hardcode_shlibpath_var_GCJ=no
24861       ;;
24862
24863     hpux9*)
24864       if test "$GCC" = yes; then
24865         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'
24866       else
24867         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'
24868       fi
24869       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24870       hardcode_libdir_separator_GCJ=:
24871       hardcode_direct_GCJ=yes
24872
24873       # hardcode_minus_L: Not really in the search PATH,
24874       # but as the default location of the library.
24875       hardcode_minus_L_GCJ=yes
24876       export_dynamic_flag_spec_GCJ='${wl}-E'
24877       ;;
24878
24879     hpux10*)
24880       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24881         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24882       else
24883         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24884       fi
24885       if test "$with_gnu_ld" = no; then
24886         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24887         hardcode_libdir_separator_GCJ=:
24888
24889         hardcode_direct_GCJ=yes
24890         export_dynamic_flag_spec_GCJ='${wl}-E'
24891
24892         # hardcode_minus_L: Not really in the search PATH,
24893         # but as the default location of the library.
24894         hardcode_minus_L_GCJ=yes
24895       fi
24896       ;;
24897
24898     hpux11*)
24899       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24900         case $host_cpu in
24901         hppa*64*)
24902           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24903           ;;
24904         ia64*)
24905           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24906           ;;
24907         *)
24908           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24909           ;;
24910         esac
24911       else
24912         case $host_cpu in
24913         hppa*64*)
24914           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24915           ;;
24916         ia64*)
24917           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24918           ;;
24919         *)
24920           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24921           ;;
24922         esac
24923       fi
24924       if test "$with_gnu_ld" = no; then
24925         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926         hardcode_libdir_separator_GCJ=:
24927
24928         case $host_cpu in
24929         hppa*64*|ia64*)
24930           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24931           hardcode_direct_GCJ=no
24932           hardcode_shlibpath_var_GCJ=no
24933           ;;
24934         *)
24935           hardcode_direct_GCJ=yes
24936           export_dynamic_flag_spec_GCJ='${wl}-E'
24937
24938           # hardcode_minus_L: Not really in the search PATH,
24939           # but as the default location of the library.
24940           hardcode_minus_L_GCJ=yes
24941           ;;
24942         esac
24943       fi
24944       ;;
24945
24946     irix5* | irix6* | nonstopux*)
24947       if test "$GCC" = yes; then
24948         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'
24949       else
24950         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'
24951         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24952       fi
24953       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24954       hardcode_libdir_separator_GCJ=:
24955       link_all_deplibs_GCJ=yes
24956       ;;
24957
24958     netbsd*)
24959       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24960         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24961       else
24962         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24963       fi
24964       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24965       hardcode_direct_GCJ=yes
24966       hardcode_shlibpath_var_GCJ=no
24967       ;;
24968
24969     newsos6)
24970       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971       hardcode_direct_GCJ=yes
24972       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24973       hardcode_libdir_separator_GCJ=:
24974       hardcode_shlibpath_var_GCJ=no
24975       ;;
24976
24977     openbsd*)
24978       hardcode_direct_GCJ=yes
24979       hardcode_shlibpath_var_GCJ=no
24980       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24981         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24982         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24983         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24984         export_dynamic_flag_spec_GCJ='${wl}-E'
24985       else
24986        case $host_os in
24987          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24988            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24989            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24990            ;;
24991          *)
24992            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24993            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24994            ;;
24995        esac
24996       fi
24997       ;;
24998
24999     os2*)
25000       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25001       hardcode_minus_L_GCJ=yes
25002       allow_undefined_flag_GCJ=unsupported
25003       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'
25004       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25005       ;;
25006
25007     osf3*)
25008       if test "$GCC" = yes; then
25009         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25010         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'
25011       else
25012         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25013         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'
25014       fi
25015       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25016       hardcode_libdir_separator_GCJ=:
25017       ;;
25018
25019     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25020       if test "$GCC" = yes; then
25021         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25022         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'
25023         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25024       else
25025         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25026         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'
25027         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~
25028         $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'
25029
25030         # Both c and cxx compiler support -rpath directly
25031         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25032       fi
25033       hardcode_libdir_separator_GCJ=:
25034       ;;
25035
25036     solaris*)
25037       no_undefined_flag_GCJ=' -z text'
25038       if test "$GCC" = yes; then
25039         wlarc='${wl}'
25040         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25041         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25042           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25043       else
25044         wlarc=''
25045         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25046         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25047         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25048       fi
25049       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25050       hardcode_shlibpath_var_GCJ=no
25051       case $host_os in
25052       solaris2.[0-5] | solaris2.[0-5].*) ;;
25053       *)
25054         # The compiler driver will combine linker options so we
25055         # cannot just pass the convience library names through
25056         # without $wl, iff we do not link with $LD.
25057         # Luckily, gcc supports the same syntax we need for Sun Studio.
25058         # Supported since Solaris 2.6 (maybe 2.5.1?)
25059         case $wlarc in
25060         '')
25061           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25062         *)
25063           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' ;;
25064         esac ;;
25065       esac
25066       link_all_deplibs_GCJ=yes
25067       ;;
25068
25069     sunos4*)
25070       if test "x$host_vendor" = xsequent; then
25071         # Use $CC to link under sequent, because it throws in some extra .o
25072         # files that make .init and .fini sections work.
25073         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25074       else
25075         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25076       fi
25077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25078       hardcode_direct_GCJ=yes
25079       hardcode_minus_L_GCJ=yes
25080       hardcode_shlibpath_var_GCJ=no
25081       ;;
25082
25083     sysv4)
25084       case $host_vendor in
25085         sni)
25086           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25087           hardcode_direct_GCJ=yes # is this really true???
25088         ;;
25089         siemens)
25090           ## LD is ld it makes a PLAMLIB
25091           ## CC just makes a GrossModule.
25092           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25093           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25094           hardcode_direct_GCJ=no
25095         ;;
25096         motorola)
25097           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25098           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25099         ;;
25100       esac
25101       runpath_var='LD_RUN_PATH'
25102       hardcode_shlibpath_var_GCJ=no
25103       ;;
25104
25105     sysv4.3*)
25106       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25107       hardcode_shlibpath_var_GCJ=no
25108       export_dynamic_flag_spec_GCJ='-Bexport'
25109       ;;
25110
25111     sysv4*MP*)
25112       if test -d /usr/nec; then
25113         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25114         hardcode_shlibpath_var_GCJ=no
25115         runpath_var=LD_RUN_PATH
25116         hardcode_runpath_var=yes
25117         ld_shlibs_GCJ=yes
25118       fi
25119       ;;
25120
25121     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25122       no_undefined_flag_GCJ='${wl}-z,text'
25123       archive_cmds_need_lc_GCJ=no
25124       hardcode_shlibpath_var_GCJ=no
25125       runpath_var='LD_RUN_PATH'
25126
25127       if test "$GCC" = yes; then
25128         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25129         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25130       else
25131         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25132         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25133       fi
25134       ;;
25135
25136     sysv5* | sco3.2v5* | sco5v6*)
25137       # Note: We can NOT use -z defs as we might desire, because we do not
25138       # link with -lc, and that would cause any symbols used from libc to
25139       # always be unresolved, which means just about no library would
25140       # ever link correctly.  If we're not using GNU ld we use -z text
25141       # though, which does catch some bad symbols but isn't as heavy-handed
25142       # as -z defs.
25143       no_undefined_flag_GCJ='${wl}-z,text'
25144       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25145       archive_cmds_need_lc_GCJ=no
25146       hardcode_shlibpath_var_GCJ=no
25147       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25148       hardcode_libdir_separator_GCJ=':'
25149       link_all_deplibs_GCJ=yes
25150       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25151       runpath_var='LD_RUN_PATH'
25152
25153       if test "$GCC" = yes; then
25154         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25155         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25156       else
25157         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25158         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25159       fi
25160       ;;
25161
25162     uts4*)
25163       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25164       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25165       hardcode_shlibpath_var_GCJ=no
25166       ;;
25167
25168     *)
25169       ld_shlibs_GCJ=no
25170       ;;
25171     esac
25172   fi
25173
25174 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25175 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25176 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25177
25178 #
25179 # Do we need to explicitly link libc?
25180 #
25181 case "x$archive_cmds_need_lc_GCJ" in
25182 x|xyes)
25183   # Assume -lc should be added
25184   archive_cmds_need_lc_GCJ=yes
25185
25186   if test "$enable_shared" = yes && test "$GCC" = yes; then
25187     case $archive_cmds_GCJ in
25188     *'~'*)
25189       # FIXME: we may have to deal with multi-command sequences.
25190       ;;
25191     '$CC '*)
25192       # Test whether the compiler implicitly links with -lc since on some
25193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25194       # to ld, don't add -lc before -lgcc.
25195       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25197       $rm conftest*
25198       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25199
25200       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201   (eval $ac_compile) 2>&5
25202   ac_status=$?
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } 2>conftest.err; then
25205         soname=conftest
25206         lib=conftest
25207         libobjs=conftest.$ac_objext
25208         deplibs=
25209         wl=$lt_prog_compiler_wl_GCJ
25210         pic_flag=$lt_prog_compiler_pic_GCJ
25211         compiler_flags=-v
25212         linker_flags=-v
25213         verstring=
25214         output_objdir=.
25215         libname=conftest
25216         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25217         allow_undefined_flag_GCJ=
25218         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25219   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }
25223         then
25224           archive_cmds_need_lc_GCJ=no
25225         else
25226           archive_cmds_need_lc_GCJ=yes
25227         fi
25228         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25229       else
25230         cat conftest.err 1>&5
25231       fi
25232       $rm conftest*
25233       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25234 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25235       ;;
25236     esac
25237   fi
25238   ;;
25239 esac
25240
25241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25243 library_names_spec=
25244 libname_spec='lib$name'
25245 soname_spec=
25246 shrext_cmds=".so"
25247 postinstall_cmds=
25248 postuninstall_cmds=
25249 finish_cmds=
25250 finish_eval=
25251 shlibpath_var=
25252 shlibpath_overrides_runpath=unknown
25253 version_type=none
25254 dynamic_linker="$host_os ld.so"
25255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25256 if test "$GCC" = yes; then
25257   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25258   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25259     # if the path contains ";" then we assume it to be the separator
25260     # otherwise default to the standard path separator (i.e. ":") - it is
25261     # assumed that no part of a normal pathname contains ";" but that should
25262     # okay in the real world where ";" in dirpaths is itself problematic.
25263     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25264   else
25265     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25266   fi
25267 else
25268   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25269 fi
25270 need_lib_prefix=unknown
25271 hardcode_into_libs=no
25272
25273 # when you set need_version to no, make sure it does not cause -set_version
25274 # flags to be left without arguments
25275 need_version=unknown
25276
25277 case $host_os in
25278 aix3*)
25279   version_type=linux
25280   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25281   shlibpath_var=LIBPATH
25282
25283   # AIX 3 has no versioning support, so we append a major version to the name.
25284   soname_spec='${libname}${release}${shared_ext}$major'
25285   ;;
25286
25287 aix4* | aix5*)
25288   version_type=linux
25289   need_lib_prefix=no
25290   need_version=no
25291   hardcode_into_libs=yes
25292   if test "$host_cpu" = ia64; then
25293     # AIX 5 supports IA64
25294     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25295     shlibpath_var=LD_LIBRARY_PATH
25296   else
25297     # With GCC up to 2.95.x, collect2 would create an import file
25298     # for dependence libraries.  The import file would start with
25299     # the line `#! .'.  This would cause the generated library to
25300     # depend on `.', always an invalid library.  This was fixed in
25301     # development snapshots of GCC prior to 3.0.
25302     case $host_os in
25303       aix4 | aix4.[01] | aix4.[01].*)
25304       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25305            echo ' yes '
25306            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25307         :
25308       else
25309         can_build_shared=no
25310       fi
25311       ;;
25312     esac
25313     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25314     # soname into executable. Probably we can add versioning support to
25315     # collect2, so additional links can be useful in future.
25316     if test "$aix_use_runtimelinking" = yes; then
25317       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25318       # instead of lib<name>.a to let people know that these are not
25319       # typical AIX shared libraries.
25320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25321     else
25322       # We preserve .a as extension for shared libraries through AIX4.2
25323       # and later when we are not doing run time linking.
25324       library_names_spec='${libname}${release}.a $libname.a'
25325       soname_spec='${libname}${release}${shared_ext}$major'
25326     fi
25327     shlibpath_var=LIBPATH
25328   fi
25329   ;;
25330
25331 amigaos*)
25332   library_names_spec='$libname.ixlibrary $libname.a'
25333   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25334   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'
25335   ;;
25336
25337 beos*)
25338   library_names_spec='${libname}${shared_ext}'
25339   dynamic_linker="$host_os ld.so"
25340   shlibpath_var=LIBRARY_PATH
25341   ;;
25342
25343 bsdi[45]*)
25344   version_type=linux
25345   need_version=no
25346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25347   soname_spec='${libname}${release}${shared_ext}$major'
25348   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25349   shlibpath_var=LD_LIBRARY_PATH
25350   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25351   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25352   # the default ld.so.conf also contains /usr/contrib/lib and
25353   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25354   # libtool to hard-code these into programs
25355   ;;
25356
25357 cygwin* | mingw* | pw32*)
25358   version_type=windows
25359   shrext_cmds=".dll"
25360   need_version=no
25361   need_lib_prefix=no
25362
25363   case $GCC,$host_os in
25364   yes,cygwin* | yes,mingw* | yes,pw32*)
25365     library_names_spec='$libname.dll.a'
25366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25367     postinstall_cmds='base_file=`basename \${file}`~
25368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25369       dldir=$destdir/`dirname \$dlpath`~
25370       test -d \$dldir || mkdir -p \$dldir~
25371       $install_prog $dir/$dlname \$dldir/$dlname~
25372       chmod a+x \$dldir/$dlname'
25373     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25374       dlpath=$dir/\$dldll~
25375        $rm \$dlpath'
25376     shlibpath_overrides_runpath=yes
25377
25378     case $host_os in
25379     cygwin*)
25380       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25381       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25382       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25383       ;;
25384     mingw*)
25385       # MinGW DLLs use traditional 'lib' prefix
25386       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25387       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25388       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25389         # It is most probably a Windows format PATH printed by
25390         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25391         # path with ; separators, and with drive letters. We can handle the
25392         # drive letters (cygwin fileutils understands them), so leave them,
25393         # especially as we might pass files found there to a mingw objdump,
25394         # which wouldn't understand a cygwinified path. Ahh.
25395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25396       else
25397         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25398       fi
25399       ;;
25400     pw32*)
25401       # pw32 DLLs use 'pw' prefix rather than 'lib'
25402       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25403       ;;
25404     esac
25405     ;;
25406
25407   *)
25408     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25409     ;;
25410   esac
25411   dynamic_linker='Win32 ld.exe'
25412   # FIXME: first we should search . and the directory the executable is in
25413   shlibpath_var=PATH
25414   ;;
25415
25416 darwin* | rhapsody*)
25417   dynamic_linker="$host_os dyld"
25418   version_type=darwin
25419   need_lib_prefix=no
25420   need_version=no
25421   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25422   soname_spec='${libname}${release}${major}$shared_ext'
25423   shlibpath_overrides_runpath=yes
25424   shlibpath_var=DYLD_LIBRARY_PATH
25425   shrext_cmds='.dylib'
25426   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25427   if test "$GCC" = yes; then
25428     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"`
25429   else
25430     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25431   fi
25432   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25433   ;;
25434
25435 dgux*)
25436   version_type=linux
25437   need_lib_prefix=no
25438   need_version=no
25439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25440   soname_spec='${libname}${release}${shared_ext}$major'
25441   shlibpath_var=LD_LIBRARY_PATH
25442   ;;
25443
25444 freebsd1*)
25445   dynamic_linker=no
25446   ;;
25447
25448 kfreebsd*-gnu)
25449   version_type=linux
25450   need_lib_prefix=no
25451   need_version=no
25452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25453   soname_spec='${libname}${release}${shared_ext}$major'
25454   shlibpath_var=LD_LIBRARY_PATH
25455   shlibpath_overrides_runpath=no
25456   hardcode_into_libs=yes
25457   dynamic_linker='GNU ld.so'
25458   ;;
25459
25460 freebsd* | dragonfly*)
25461   # DragonFly does not have aout.  When/if they implement a new
25462   # versioning mechanism, adjust this.
25463   if test -x /usr/bin/objformat; then
25464     objformat=`/usr/bin/objformat`
25465   else
25466     case $host_os in
25467     freebsd[123]*) objformat=aout ;;
25468     *) objformat=elf ;;
25469     esac
25470   fi
25471   version_type=freebsd-$objformat
25472   case $version_type in
25473     freebsd-elf*)
25474       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25475       need_version=no
25476       need_lib_prefix=no
25477       ;;
25478     freebsd-*)
25479       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25480       need_version=yes
25481       ;;
25482   esac
25483   shlibpath_var=LD_LIBRARY_PATH
25484   case $host_os in
25485   freebsd2*)
25486     shlibpath_overrides_runpath=yes
25487     ;;
25488   freebsd3.[01]* | freebsdelf3.[01]*)
25489     shlibpath_overrides_runpath=yes
25490     hardcode_into_libs=yes
25491     ;;
25492   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25493   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25494     shlibpath_overrides_runpath=no
25495     hardcode_into_libs=yes
25496     ;;
25497   freebsd*) # from 4.6 on
25498     shlibpath_overrides_runpath=yes
25499     hardcode_into_libs=yes
25500     ;;
25501   esac
25502   ;;
25503
25504 gnu*)
25505   version_type=linux
25506   need_lib_prefix=no
25507   need_version=no
25508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25509   soname_spec='${libname}${release}${shared_ext}$major'
25510   shlibpath_var=LD_LIBRARY_PATH
25511   hardcode_into_libs=yes
25512   ;;
25513
25514 hpux9* | hpux10* | hpux11*)
25515   # Give a soname corresponding to the major version so that dld.sl refuses to
25516   # link against other versions.
25517   version_type=sunos
25518   need_lib_prefix=no
25519   need_version=no
25520   case $host_cpu in
25521   ia64*)
25522     shrext_cmds='.so'
25523     hardcode_into_libs=yes
25524     dynamic_linker="$host_os dld.so"
25525     shlibpath_var=LD_LIBRARY_PATH
25526     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25528     soname_spec='${libname}${release}${shared_ext}$major'
25529     if test "X$HPUX_IA64_MODE" = X32; then
25530       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25531     else
25532       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25533     fi
25534     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25535     ;;
25536    hppa*64*)
25537      shrext_cmds='.sl'
25538      hardcode_into_libs=yes
25539      dynamic_linker="$host_os dld.sl"
25540      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25545      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25546      ;;
25547    *)
25548     shrext_cmds='.sl'
25549     dynamic_linker="$host_os dld.sl"
25550     shlibpath_var=SHLIB_PATH
25551     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553     soname_spec='${libname}${release}${shared_ext}$major'
25554     ;;
25555   esac
25556   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25557   postinstall_cmds='chmod 555 $lib'
25558   ;;
25559
25560 interix3*)
25561   version_type=linux
25562   need_lib_prefix=no
25563   need_version=no
25564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25565   soname_spec='${libname}${release}${shared_ext}$major'
25566   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25567   shlibpath_var=LD_LIBRARY_PATH
25568   shlibpath_overrides_runpath=no
25569   hardcode_into_libs=yes
25570   ;;
25571
25572 irix5* | irix6* | nonstopux*)
25573   case $host_os in
25574     nonstopux*) version_type=nonstopux ;;
25575     *)
25576         if test "$lt_cv_prog_gnu_ld" = yes; then
25577                 version_type=linux
25578         else
25579                 version_type=irix
25580         fi ;;
25581   esac
25582   need_lib_prefix=no
25583   need_version=no
25584   soname_spec='${libname}${release}${shared_ext}$major'
25585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25586   case $host_os in
25587   irix5* | nonstopux*)
25588     libsuff= shlibsuff=
25589     ;;
25590   *)
25591     case $LD in # libtool.m4 will add one of these switches to LD
25592     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25593       libsuff= shlibsuff= libmagic=32-bit;;
25594     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25595       libsuff=32 shlibsuff=N32 libmagic=N32;;
25596     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25597       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25598     *) libsuff= shlibsuff= libmagic=never-match;;
25599     esac
25600     ;;
25601   esac
25602   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25603   shlibpath_overrides_runpath=no
25604   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25605   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25606   hardcode_into_libs=yes
25607   ;;
25608
25609 # No shared lib support for Linux oldld, aout, or coff.
25610 linux*oldld* | linux*aout* | linux*coff*)
25611   dynamic_linker=no
25612   ;;
25613
25614 # This must be Linux ELF.
25615 linux*)
25616   version_type=linux
25617   need_lib_prefix=no
25618   need_version=no
25619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25620   soname_spec='${libname}${release}${shared_ext}$major'
25621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25622   shlibpath_var=LD_LIBRARY_PATH
25623   shlibpath_overrides_runpath=no
25624   # This implies no fast_install, which is unacceptable.
25625   # Some rework will be needed to allow for fast_install
25626   # before this can be enabled.
25627   hardcode_into_libs=yes
25628
25629   # Append ld.so.conf contents to the search path
25630   if test -f /etc/ld.so.conf; then
25631     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' ' '`
25632     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25633   fi
25634
25635   # We used to test for /lib/ld.so.1 and disable shared libraries on
25636   # powerpc, because MkLinux only supported shared libraries with the
25637   # GNU dynamic linker.  Since this was broken with cross compilers,
25638   # most powerpc-linux boxes support dynamic linking these days and
25639   # people can always --disable-shared, the test was removed, and we
25640   # assume the GNU/Linux dynamic linker is in use.
25641   dynamic_linker='GNU/Linux ld.so'
25642   ;;
25643
25644 knetbsd*-gnu)
25645   version_type=linux
25646   need_lib_prefix=no
25647   need_version=no
25648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25649   soname_spec='${libname}${release}${shared_ext}$major'
25650   shlibpath_var=LD_LIBRARY_PATH
25651   shlibpath_overrides_runpath=no
25652   hardcode_into_libs=yes
25653   dynamic_linker='GNU ld.so'
25654   ;;
25655
25656 netbsd*)
25657   version_type=sunos
25658   need_lib_prefix=no
25659   need_version=no
25660   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25662     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25663     dynamic_linker='NetBSD (a.out) ld.so'
25664   else
25665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25666     soname_spec='${libname}${release}${shared_ext}$major'
25667     dynamic_linker='NetBSD ld.elf_so'
25668   fi
25669   shlibpath_var=LD_LIBRARY_PATH
25670   shlibpath_overrides_runpath=yes
25671   hardcode_into_libs=yes
25672   ;;
25673
25674 newsos6)
25675   version_type=linux
25676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25677   shlibpath_var=LD_LIBRARY_PATH
25678   shlibpath_overrides_runpath=yes
25679   ;;
25680
25681 nto-qnx*)
25682   version_type=linux
25683   need_lib_prefix=no
25684   need_version=no
25685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25686   soname_spec='${libname}${release}${shared_ext}$major'
25687   shlibpath_var=LD_LIBRARY_PATH
25688   shlibpath_overrides_runpath=yes
25689   ;;
25690
25691 openbsd*)
25692   version_type=sunos
25693   sys_lib_dlsearch_path_spec="/usr/lib"
25694   need_lib_prefix=no
25695   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25696   case $host_os in
25697     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25698     *)                         need_version=no  ;;
25699   esac
25700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702   shlibpath_var=LD_LIBRARY_PATH
25703   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25704     case $host_os in
25705       openbsd2.[89] | openbsd2.[89].*)
25706         shlibpath_overrides_runpath=no
25707         ;;
25708       *)
25709         shlibpath_overrides_runpath=yes
25710         ;;
25711       esac
25712   else
25713     shlibpath_overrides_runpath=yes
25714   fi
25715   ;;
25716
25717 os2*)
25718   libname_spec='$name'
25719   shrext_cmds=".dll"
25720   need_lib_prefix=no
25721   library_names_spec='$libname${shared_ext} $libname.a'
25722   dynamic_linker='OS/2 ld.exe'
25723   shlibpath_var=LIBPATH
25724   ;;
25725
25726 osf3* | osf4* | osf5*)
25727   version_type=osf
25728   need_lib_prefix=no
25729   need_version=no
25730   soname_spec='${libname}${release}${shared_ext}$major'
25731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732   shlibpath_var=LD_LIBRARY_PATH
25733   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25734   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25735   ;;
25736
25737 solaris*)
25738   version_type=linux
25739   need_lib_prefix=no
25740   need_version=no
25741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25742   soname_spec='${libname}${release}${shared_ext}$major'
25743   shlibpath_var=LD_LIBRARY_PATH
25744   shlibpath_overrides_runpath=yes
25745   hardcode_into_libs=yes
25746   # ldd complains unless libraries are executable
25747   postinstall_cmds='chmod +x $lib'
25748   ;;
25749
25750 sunos4*)
25751   version_type=sunos
25752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25753   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25754   shlibpath_var=LD_LIBRARY_PATH
25755   shlibpath_overrides_runpath=yes
25756   if test "$with_gnu_ld" = yes; then
25757     need_lib_prefix=no
25758   fi
25759   need_version=yes
25760   ;;
25761
25762 sysv4 | sysv4.3*)
25763   version_type=linux
25764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25765   soname_spec='${libname}${release}${shared_ext}$major'
25766   shlibpath_var=LD_LIBRARY_PATH
25767   case $host_vendor in
25768     sni)
25769       shlibpath_overrides_runpath=no
25770       need_lib_prefix=no
25771       export_dynamic_flag_spec='${wl}-Blargedynsym'
25772       runpath_var=LD_RUN_PATH
25773       ;;
25774     siemens)
25775       need_lib_prefix=no
25776       ;;
25777     motorola)
25778       need_lib_prefix=no
25779       need_version=no
25780       shlibpath_overrides_runpath=no
25781       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25782       ;;
25783   esac
25784   ;;
25785
25786 sysv4*MP*)
25787   if test -d /usr/nec ;then
25788     version_type=linux
25789     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25790     soname_spec='$libname${shared_ext}.$major'
25791     shlibpath_var=LD_LIBRARY_PATH
25792   fi
25793   ;;
25794
25795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25796   version_type=freebsd-elf
25797   need_lib_prefix=no
25798   need_version=no
25799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25800   soname_spec='${libname}${release}${shared_ext}$major'
25801   shlibpath_var=LD_LIBRARY_PATH
25802   hardcode_into_libs=yes
25803   if test "$with_gnu_ld" = yes; then
25804     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25805     shlibpath_overrides_runpath=no
25806   else
25807     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25808     shlibpath_overrides_runpath=yes
25809     case $host_os in
25810       sco3.2v5*)
25811         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25812         ;;
25813     esac
25814   fi
25815   sys_lib_dlsearch_path_spec='/usr/lib'
25816   ;;
25817
25818 uts4*)
25819   version_type=linux
25820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821   soname_spec='${libname}${release}${shared_ext}$major'
25822   shlibpath_var=LD_LIBRARY_PATH
25823   ;;
25824
25825 *)
25826   dynamic_linker=no
25827   ;;
25828 esac
25829 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25830 echo "${ECHO_T}$dynamic_linker" >&6; }
25831 test "$dynamic_linker" = no && can_build_shared=no
25832
25833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25834 if test "$GCC" = yes; then
25835   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25836 fi
25837
25838 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25840 hardcode_action_GCJ=
25841 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25842    test -n "$runpath_var_GCJ" || \
25843    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25844
25845   # We can hardcode non-existant directories.
25846   if test "$hardcode_direct_GCJ" != no &&
25847      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25848      # have to relink, otherwise we might link with an installed library
25849      # when we should be linking with a yet-to-be-installed one
25850      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25851      test "$hardcode_minus_L_GCJ" != no; then
25852     # Linking always hardcodes the temporary library directory.
25853     hardcode_action_GCJ=relink
25854   else
25855     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25856     hardcode_action_GCJ=immediate
25857   fi
25858 else
25859   # We cannot hardcode anything, or else we can only hardcode existing
25860   # directories.
25861   hardcode_action_GCJ=unsupported
25862 fi
25863 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25864 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25865
25866 if test "$hardcode_action_GCJ" = relink; then
25867   # Fast installation is not supported
25868   enable_fast_install=no
25869 elif test "$shlibpath_overrides_runpath" = yes ||
25870      test "$enable_shared" = no; then
25871   # Fast installation is not necessary
25872   enable_fast_install=needless
25873 fi
25874
25875
25876 # The else clause should only fire when bootstrapping the
25877 # libtool distribution, otherwise you forgot to ship ltmain.sh
25878 # with your package, and you will get complaints that there are
25879 # no rules to generate ltmain.sh.
25880 if test -f "$ltmain"; then
25881   # See if we are running on zsh, and set the options which allow our commands through
25882   # without removal of \ escapes.
25883   if test -n "${ZSH_VERSION+set}" ; then
25884     setopt NO_GLOB_SUBST
25885   fi
25886   # Now quote all the things that may contain metacharacters while being
25887   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25888   # variables and quote the copies for generation of the libtool script.
25889   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25890     SED SHELL STRIP \
25891     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25892     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25893     deplibs_check_method reload_flag reload_cmds need_locks \
25894     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25895     lt_cv_sys_global_symbol_to_c_name_address \
25896     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25897     old_postinstall_cmds old_postuninstall_cmds \
25898     compiler_GCJ \
25899     CC_GCJ \
25900     LD_GCJ \
25901     lt_prog_compiler_wl_GCJ \
25902     lt_prog_compiler_pic_GCJ \
25903     lt_prog_compiler_static_GCJ \
25904     lt_prog_compiler_no_builtin_flag_GCJ \
25905     export_dynamic_flag_spec_GCJ \
25906     thread_safe_flag_spec_GCJ \
25907     whole_archive_flag_spec_GCJ \
25908     enable_shared_with_static_runtimes_GCJ \
25909     old_archive_cmds_GCJ \
25910     old_archive_from_new_cmds_GCJ \
25911     predep_objects_GCJ \
25912     postdep_objects_GCJ \
25913     predeps_GCJ \
25914     postdeps_GCJ \
25915     compiler_lib_search_path_GCJ \
25916     archive_cmds_GCJ \
25917     archive_expsym_cmds_GCJ \
25918     postinstall_cmds_GCJ \
25919     postuninstall_cmds_GCJ \
25920     old_archive_from_expsyms_cmds_GCJ \
25921     allow_undefined_flag_GCJ \
25922     no_undefined_flag_GCJ \
25923     export_symbols_cmds_GCJ \
25924     hardcode_libdir_flag_spec_GCJ \
25925     hardcode_libdir_flag_spec_ld_GCJ \
25926     hardcode_libdir_separator_GCJ \
25927     hardcode_automatic_GCJ \
25928     module_cmds_GCJ \
25929     module_expsym_cmds_GCJ \
25930     lt_cv_prog_compiler_c_o_GCJ \
25931     exclude_expsyms_GCJ \
25932     include_expsyms_GCJ; do
25933
25934     case $var in
25935     old_archive_cmds_GCJ | \
25936     old_archive_from_new_cmds_GCJ | \
25937     archive_cmds_GCJ | \
25938     archive_expsym_cmds_GCJ | \
25939     module_cmds_GCJ | \
25940     module_expsym_cmds_GCJ | \
25941     old_archive_from_expsyms_cmds_GCJ | \
25942     export_symbols_cmds_GCJ | \
25943     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25944     postinstall_cmds | postuninstall_cmds | \
25945     old_postinstall_cmds | old_postuninstall_cmds | \
25946     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25947       # Double-quote double-evaled strings.
25948       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25949       ;;
25950     *)
25951       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25952       ;;
25953     esac
25954   done
25955
25956   case $lt_echo in
25957   *'\$0 --fallback-echo"')
25958     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25959     ;;
25960   esac
25961
25962 cfgfile="$ofile"
25963
25964   cat <<__EOF__ >> "$cfgfile"
25965 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25966
25967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25968
25969 # Shell to use when invoking shell scripts.
25970 SHELL=$lt_SHELL
25971
25972 # Whether or not to build shared libraries.
25973 build_libtool_libs=$enable_shared
25974
25975 # Whether or not to build static libraries.
25976 build_old_libs=$enable_static
25977
25978 # Whether or not to add -lc for building shared libraries.
25979 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25980
25981 # Whether or not to disallow shared libs when runtime libs are static
25982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25983
25984 # Whether or not to optimize for fast installation.
25985 fast_install=$enable_fast_install
25986
25987 # The host system.
25988 host_alias=$host_alias
25989 host=$host
25990 host_os=$host_os
25991
25992 # The build system.
25993 build_alias=$build_alias
25994 build=$build
25995 build_os=$build_os
25996
25997 # An echo program that does not interpret backslashes.
25998 echo=$lt_echo
25999
26000 # The archiver.
26001 AR=$lt_AR
26002 AR_FLAGS=$lt_AR_FLAGS
26003
26004 # A C compiler.
26005 LTCC=$lt_LTCC
26006
26007 # LTCC compiler flags.
26008 LTCFLAGS=$lt_LTCFLAGS
26009
26010 # A language-specific compiler.
26011 CC=$lt_compiler_GCJ
26012
26013 # Is the compiler the GNU C compiler?
26014 with_gcc=$GCC_GCJ
26015
26016 # An ERE matcher.
26017 EGREP=$lt_EGREP
26018
26019 # The linker used to build libraries.
26020 LD=$lt_LD_GCJ
26021
26022 # Whether we need hard or soft links.
26023 LN_S=$lt_LN_S
26024
26025 # A BSD-compatible nm program.
26026 NM=$lt_NM
26027
26028 # A symbol stripping program
26029 STRIP=$lt_STRIP
26030
26031 # Used to examine libraries when file_magic_cmd begins "file"
26032 MAGIC_CMD=$MAGIC_CMD
26033
26034 # Used on cygwin: DLL creation program.
26035 DLLTOOL="$DLLTOOL"
26036
26037 # Used on cygwin: object dumper.
26038 OBJDUMP="$OBJDUMP"
26039
26040 # Used on cygwin: assembler.
26041 AS="$AS"
26042
26043 # The name of the directory that contains temporary libtool files.
26044 objdir=$objdir
26045
26046 # How to create reloadable object files.
26047 reload_flag=$lt_reload_flag
26048 reload_cmds=$lt_reload_cmds
26049
26050 # How to pass a linker flag through the compiler.
26051 wl=$lt_lt_prog_compiler_wl_GCJ
26052
26053 # Object file suffix (normally "o").
26054 objext="$ac_objext"
26055
26056 # Old archive suffix (normally "a").
26057 libext="$libext"
26058
26059 # Shared library suffix (normally ".so").
26060 shrext_cmds='$shrext_cmds'
26061
26062 # Executable file suffix (normally "").
26063 exeext="$exeext"
26064
26065 # Additional compiler flags for building library objects.
26066 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26067 pic_mode=$pic_mode
26068
26069 # What is the maximum length of a command?
26070 max_cmd_len=$lt_cv_sys_max_cmd_len
26071
26072 # Does compiler simultaneously support -c and -o options?
26073 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26074
26075 # Must we lock files when doing compilation?
26076 need_locks=$lt_need_locks
26077
26078 # Do we need the lib prefix for modules?
26079 need_lib_prefix=$need_lib_prefix
26080
26081 # Do we need a version for libraries?
26082 need_version=$need_version
26083
26084 # Whether dlopen is supported.
26085 dlopen_support=$enable_dlopen
26086
26087 # Whether dlopen of programs is supported.
26088 dlopen_self=$enable_dlopen_self
26089
26090 # Whether dlopen of statically linked programs is supported.
26091 dlopen_self_static=$enable_dlopen_self_static
26092
26093 # Compiler flag to prevent dynamic linking.
26094 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26095
26096 # Compiler flag to turn off builtin functions.
26097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26098
26099 # Compiler flag to allow reflexive dlopens.
26100 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26101
26102 # Compiler flag to generate shared objects directly from archives.
26103 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26104
26105 # Compiler flag to generate thread-safe objects.
26106 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26107
26108 # Library versioning type.
26109 version_type=$version_type
26110
26111 # Format of library name prefix.
26112 libname_spec=$lt_libname_spec
26113
26114 # List of archive names.  First name is the real one, the rest are links.
26115 # The last name is the one that the linker finds with -lNAME.
26116 library_names_spec=$lt_library_names_spec
26117
26118 # The coded name of the library, if different from the real name.
26119 soname_spec=$lt_soname_spec
26120
26121 # Commands used to build and install an old-style archive.
26122 RANLIB=$lt_RANLIB
26123 old_archive_cmds=$lt_old_archive_cmds_GCJ
26124 old_postinstall_cmds=$lt_old_postinstall_cmds
26125 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26126
26127 # Create an old-style archive from a shared archive.
26128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26129
26130 # Create a temporary old-style archive to link instead of a shared archive.
26131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26132
26133 # Commands used to build and install a shared archive.
26134 archive_cmds=$lt_archive_cmds_GCJ
26135 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26136 postinstall_cmds=$lt_postinstall_cmds
26137 postuninstall_cmds=$lt_postuninstall_cmds
26138
26139 # Commands used to build a loadable module (assumed same as above if empty)
26140 module_cmds=$lt_module_cmds_GCJ
26141 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26142
26143 # Commands to strip libraries.
26144 old_striplib=$lt_old_striplib
26145 striplib=$lt_striplib
26146
26147 # Dependencies to place before the objects being linked to create a
26148 # shared library.
26149 predep_objects=$lt_predep_objects_GCJ
26150
26151 # Dependencies to place after the objects being linked to create a
26152 # shared library.
26153 postdep_objects=$lt_postdep_objects_GCJ
26154
26155 # Dependencies to place before the objects being linked to create a
26156 # shared library.
26157 predeps=$lt_predeps_GCJ
26158
26159 # Dependencies to place after the objects being linked to create a
26160 # shared library.
26161 postdeps=$lt_postdeps_GCJ
26162
26163 # The library search path used internally by the compiler when linking
26164 # a shared library.
26165 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26166
26167 # Method to check whether dependent libraries are shared objects.
26168 deplibs_check_method=$lt_deplibs_check_method
26169
26170 # Command to use when deplibs_check_method == file_magic.
26171 file_magic_cmd=$lt_file_magic_cmd
26172
26173 # Flag that allows shared libraries with undefined symbols to be built.
26174 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26175
26176 # Flag that forces no undefined symbols.
26177 no_undefined_flag=$lt_no_undefined_flag_GCJ
26178
26179 # Commands used to finish a libtool library installation in a directory.
26180 finish_cmds=$lt_finish_cmds
26181
26182 # Same as above, but a single script fragment to be evaled but not shown.
26183 finish_eval=$lt_finish_eval
26184
26185 # Take the output of nm and produce a listing of raw symbols and C names.
26186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26187
26188 # Transform the output of nm in a proper C declaration
26189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26190
26191 # Transform the output of nm in a C name address pair
26192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26193
26194 # This is the shared library runtime path variable.
26195 runpath_var=$runpath_var
26196
26197 # This is the shared library path variable.
26198 shlibpath_var=$shlibpath_var
26199
26200 # Is shlibpath searched before the hard-coded library search path?
26201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26202
26203 # How to hardcode a shared library path into an executable.
26204 hardcode_action=$hardcode_action_GCJ
26205
26206 # Whether we should hardcode library paths into libraries.
26207 hardcode_into_libs=$hardcode_into_libs
26208
26209 # Flag to hardcode \$libdir into a binary during linking.
26210 # This must work even if \$libdir does not exist.
26211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26212
26213 # If ld is used when linking, flag to hardcode \$libdir into
26214 # a binary during linking. This must work even if \$libdir does
26215 # not exist.
26216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26217
26218 # Whether we need a single -rpath flag with a separated argument.
26219 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26220
26221 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26222 # resulting binary.
26223 hardcode_direct=$hardcode_direct_GCJ
26224
26225 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26226 # resulting binary.
26227 hardcode_minus_L=$hardcode_minus_L_GCJ
26228
26229 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26230 # the resulting binary.
26231 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26232
26233 # Set to yes if building a shared library automatically hardcodes DIR into the library
26234 # and all subsequent libraries and executables linked against it.
26235 hardcode_automatic=$hardcode_automatic_GCJ
26236
26237 # Variables whose values should be saved in libtool wrapper scripts and
26238 # restored at relink time.
26239 variables_saved_for_relink="$variables_saved_for_relink"
26240
26241 # Whether libtool must link a program against all its dependency libraries.
26242 link_all_deplibs=$link_all_deplibs_GCJ
26243
26244 # Compile-time system search path for libraries
26245 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26246
26247 # Run-time system search path for libraries
26248 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26249
26250 # Fix the shell variable \$srcfile for the compiler.
26251 fix_srcfile_path="$fix_srcfile_path_GCJ"
26252
26253 # Set to yes if exported symbols are required.
26254 always_export_symbols=$always_export_symbols_GCJ
26255
26256 # The commands to list exported symbols.
26257 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26258
26259 # The commands to extract the exported symbol list from a shared archive.
26260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26261
26262 # Symbols that should not be listed in the preloaded symbols.
26263 exclude_expsyms=$lt_exclude_expsyms_GCJ
26264
26265 # Symbols that must always be exported.
26266 include_expsyms=$lt_include_expsyms_GCJ
26267
26268 # ### END LIBTOOL TAG CONFIG: $tagname
26269
26270 __EOF__
26271
26272
26273 else
26274   # If there is no Makefile yet, we rely on a make rule to execute
26275   # `config.status --recheck' to rerun these tests and create the
26276   # libtool script then.
26277   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26278   if test -f "$ltmain_in"; then
26279     test -f Makefile && make "$ltmain"
26280   fi
26281 fi
26282
26283
26284 ac_ext=c
26285 ac_cpp='$CPP $CPPFLAGS'
26286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26289
26290 CC="$lt_save_CC"
26291
26292         else
26293           tagname=""
26294         fi
26295         ;;
26296
26297       RC)
26298         ac_ext=c
26299 ac_cpp='$CPP $CPPFLAGS'
26300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26303
26304
26305 # Source file extension for RC test sources.
26306 ac_ext=rc
26307
26308 # Object file extension for compiled RC test sources.
26309 objext=o
26310 objext_RC=$objext
26311
26312 # Code to be used in simple compile tests
26313 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26314
26315 # Code to be used in simple link tests
26316 lt_simple_link_test_code="$lt_simple_compile_test_code"
26317
26318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26319
26320 # If no C compiler was specified, use CC.
26321 LTCC=${LTCC-"$CC"}
26322
26323 # If no C compiler flags were specified, use CFLAGS.
26324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26325
26326 # Allow CC to be a program name with arguments.
26327 compiler=$CC
26328
26329
26330 # save warnings/boilerplate of simple test code
26331 ac_outfile=conftest.$ac_objext
26332 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26334 _lt_compiler_boilerplate=`cat conftest.err`
26335 $rm conftest*
26336
26337 ac_outfile=conftest.$ac_objext
26338 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26340 _lt_linker_boilerplate=`cat conftest.err`
26341 $rm conftest*
26342
26343
26344 # Allow CC to be a program name with arguments.
26345 lt_save_CC="$CC"
26346 CC=${RC-"windres"}
26347 compiler=$CC
26348 compiler_RC=$CC
26349 for cc_temp in $compiler""; do
26350   case $cc_temp in
26351     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26352     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26353     \-*) ;;
26354     *) break;;
26355   esac
26356 done
26357 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26358
26359 lt_cv_prog_compiler_c_o_RC=yes
26360
26361 # The else clause should only fire when bootstrapping the
26362 # libtool distribution, otherwise you forgot to ship ltmain.sh
26363 # with your package, and you will get complaints that there are
26364 # no rules to generate ltmain.sh.
26365 if test -f "$ltmain"; then
26366   # See if we are running on zsh, and set the options which allow our commands through
26367   # without removal of \ escapes.
26368   if test -n "${ZSH_VERSION+set}" ; then
26369     setopt NO_GLOB_SUBST
26370   fi
26371   # Now quote all the things that may contain metacharacters while being
26372   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26373   # variables and quote the copies for generation of the libtool script.
26374   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26375     SED SHELL STRIP \
26376     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26377     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26378     deplibs_check_method reload_flag reload_cmds need_locks \
26379     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26380     lt_cv_sys_global_symbol_to_c_name_address \
26381     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26382     old_postinstall_cmds old_postuninstall_cmds \
26383     compiler_RC \
26384     CC_RC \
26385     LD_RC \
26386     lt_prog_compiler_wl_RC \
26387     lt_prog_compiler_pic_RC \
26388     lt_prog_compiler_static_RC \
26389     lt_prog_compiler_no_builtin_flag_RC \
26390     export_dynamic_flag_spec_RC \
26391     thread_safe_flag_spec_RC \
26392     whole_archive_flag_spec_RC \
26393     enable_shared_with_static_runtimes_RC \
26394     old_archive_cmds_RC \
26395     old_archive_from_new_cmds_RC \
26396     predep_objects_RC \
26397     postdep_objects_RC \
26398     predeps_RC \
26399     postdeps_RC \
26400     compiler_lib_search_path_RC \
26401     archive_cmds_RC \
26402     archive_expsym_cmds_RC \
26403     postinstall_cmds_RC \
26404     postuninstall_cmds_RC \
26405     old_archive_from_expsyms_cmds_RC \
26406     allow_undefined_flag_RC \
26407     no_undefined_flag_RC \
26408     export_symbols_cmds_RC \
26409     hardcode_libdir_flag_spec_RC \
26410     hardcode_libdir_flag_spec_ld_RC \
26411     hardcode_libdir_separator_RC \
26412     hardcode_automatic_RC \
26413     module_cmds_RC \
26414     module_expsym_cmds_RC \
26415     lt_cv_prog_compiler_c_o_RC \
26416     exclude_expsyms_RC \
26417     include_expsyms_RC; do
26418
26419     case $var in
26420     old_archive_cmds_RC | \
26421     old_archive_from_new_cmds_RC | \
26422     archive_cmds_RC | \
26423     archive_expsym_cmds_RC | \
26424     module_cmds_RC | \
26425     module_expsym_cmds_RC | \
26426     old_archive_from_expsyms_cmds_RC | \
26427     export_symbols_cmds_RC | \
26428     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26429     postinstall_cmds | postuninstall_cmds | \
26430     old_postinstall_cmds | old_postuninstall_cmds | \
26431     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26432       # Double-quote double-evaled strings.
26433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26434       ;;
26435     *)
26436       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26437       ;;
26438     esac
26439   done
26440
26441   case $lt_echo in
26442   *'\$0 --fallback-echo"')
26443     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26444     ;;
26445   esac
26446
26447 cfgfile="$ofile"
26448
26449   cat <<__EOF__ >> "$cfgfile"
26450 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26451
26452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26453
26454 # Shell to use when invoking shell scripts.
26455 SHELL=$lt_SHELL
26456
26457 # Whether or not to build shared libraries.
26458 build_libtool_libs=$enable_shared
26459
26460 # Whether or not to build static libraries.
26461 build_old_libs=$enable_static
26462
26463 # Whether or not to add -lc for building shared libraries.
26464 build_libtool_need_lc=$archive_cmds_need_lc_RC
26465
26466 # Whether or not to disallow shared libs when runtime libs are static
26467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26468
26469 # Whether or not to optimize for fast installation.
26470 fast_install=$enable_fast_install
26471
26472 # The host system.
26473 host_alias=$host_alias
26474 host=$host
26475 host_os=$host_os
26476
26477 # The build system.
26478 build_alias=$build_alias
26479 build=$build
26480 build_os=$build_os
26481
26482 # An echo program that does not interpret backslashes.
26483 echo=$lt_echo
26484
26485 # The archiver.
26486 AR=$lt_AR
26487 AR_FLAGS=$lt_AR_FLAGS
26488
26489 # A C compiler.
26490 LTCC=$lt_LTCC
26491
26492 # LTCC compiler flags.
26493 LTCFLAGS=$lt_LTCFLAGS
26494
26495 # A language-specific compiler.
26496 CC=$lt_compiler_RC
26497
26498 # Is the compiler the GNU C compiler?
26499 with_gcc=$GCC_RC
26500
26501 # An ERE matcher.
26502 EGREP=$lt_EGREP
26503
26504 # The linker used to build libraries.
26505 LD=$lt_LD_RC
26506
26507 # Whether we need hard or soft links.
26508 LN_S=$lt_LN_S
26509
26510 # A BSD-compatible nm program.
26511 NM=$lt_NM
26512
26513 # A symbol stripping program
26514 STRIP=$lt_STRIP
26515
26516 # Used to examine libraries when file_magic_cmd begins "file"
26517 MAGIC_CMD=$MAGIC_CMD
26518
26519 # Used on cygwin: DLL creation program.
26520 DLLTOOL="$DLLTOOL"
26521
26522 # Used on cygwin: object dumper.
26523 OBJDUMP="$OBJDUMP"
26524
26525 # Used on cygwin: assembler.
26526 AS="$AS"
26527
26528 # The name of the directory that contains temporary libtool files.
26529 objdir=$objdir
26530
26531 # How to create reloadable object files.
26532 reload_flag=$lt_reload_flag
26533 reload_cmds=$lt_reload_cmds
26534
26535 # How to pass a linker flag through the compiler.
26536 wl=$lt_lt_prog_compiler_wl_RC
26537
26538 # Object file suffix (normally "o").
26539 objext="$ac_objext"
26540
26541 # Old archive suffix (normally "a").
26542 libext="$libext"
26543
26544 # Shared library suffix (normally ".so").
26545 shrext_cmds='$shrext_cmds'
26546
26547 # Executable file suffix (normally "").
26548 exeext="$exeext"
26549
26550 # Additional compiler flags for building library objects.
26551 pic_flag=$lt_lt_prog_compiler_pic_RC
26552 pic_mode=$pic_mode
26553
26554 # What is the maximum length of a command?
26555 max_cmd_len=$lt_cv_sys_max_cmd_len
26556
26557 # Does compiler simultaneously support -c and -o options?
26558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26559
26560 # Must we lock files when doing compilation?
26561 need_locks=$lt_need_locks
26562
26563 # Do we need the lib prefix for modules?
26564 need_lib_prefix=$need_lib_prefix
26565
26566 # Do we need a version for libraries?
26567 need_version=$need_version
26568
26569 # Whether dlopen is supported.
26570 dlopen_support=$enable_dlopen
26571
26572 # Whether dlopen of programs is supported.
26573 dlopen_self=$enable_dlopen_self
26574
26575 # Whether dlopen of statically linked programs is supported.
26576 dlopen_self_static=$enable_dlopen_self_static
26577
26578 # Compiler flag to prevent dynamic linking.
26579 link_static_flag=$lt_lt_prog_compiler_static_RC
26580
26581 # Compiler flag to turn off builtin functions.
26582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26583
26584 # Compiler flag to allow reflexive dlopens.
26585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26586
26587 # Compiler flag to generate shared objects directly from archives.
26588 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26589
26590 # Compiler flag to generate thread-safe objects.
26591 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26592
26593 # Library versioning type.
26594 version_type=$version_type
26595
26596 # Format of library name prefix.
26597 libname_spec=$lt_libname_spec
26598
26599 # List of archive names.  First name is the real one, the rest are links.
26600 # The last name is the one that the linker finds with -lNAME.
26601 library_names_spec=$lt_library_names_spec
26602
26603 # The coded name of the library, if different from the real name.
26604 soname_spec=$lt_soname_spec
26605
26606 # Commands used to build and install an old-style archive.
26607 RANLIB=$lt_RANLIB
26608 old_archive_cmds=$lt_old_archive_cmds_RC
26609 old_postinstall_cmds=$lt_old_postinstall_cmds
26610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26611
26612 # Create an old-style archive from a shared archive.
26613 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26614
26615 # Create a temporary old-style archive to link instead of a shared archive.
26616 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26617
26618 # Commands used to build and install a shared archive.
26619 archive_cmds=$lt_archive_cmds_RC
26620 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26621 postinstall_cmds=$lt_postinstall_cmds
26622 postuninstall_cmds=$lt_postuninstall_cmds
26623
26624 # Commands used to build a loadable module (assumed same as above if empty)
26625 module_cmds=$lt_module_cmds_RC
26626 module_expsym_cmds=$lt_module_expsym_cmds_RC
26627
26628 # Commands to strip libraries.
26629 old_striplib=$lt_old_striplib
26630 striplib=$lt_striplib
26631
26632 # Dependencies to place before the objects being linked to create a
26633 # shared library.
26634 predep_objects=$lt_predep_objects_RC
26635
26636 # Dependencies to place after the objects being linked to create a
26637 # shared library.
26638 postdep_objects=$lt_postdep_objects_RC
26639
26640 # Dependencies to place before the objects being linked to create a
26641 # shared library.
26642 predeps=$lt_predeps_RC
26643
26644 # Dependencies to place after the objects being linked to create a
26645 # shared library.
26646 postdeps=$lt_postdeps_RC
26647
26648 # The library search path used internally by the compiler when linking
26649 # a shared library.
26650 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26651
26652 # Method to check whether dependent libraries are shared objects.
26653 deplibs_check_method=$lt_deplibs_check_method
26654
26655 # Command to use when deplibs_check_method == file_magic.
26656 file_magic_cmd=$lt_file_magic_cmd
26657
26658 # Flag that allows shared libraries with undefined symbols to be built.
26659 allow_undefined_flag=$lt_allow_undefined_flag_RC
26660
26661 # Flag that forces no undefined symbols.
26662 no_undefined_flag=$lt_no_undefined_flag_RC
26663
26664 # Commands used to finish a libtool library installation in a directory.
26665 finish_cmds=$lt_finish_cmds
26666
26667 # Same as above, but a single script fragment to be evaled but not shown.
26668 finish_eval=$lt_finish_eval
26669
26670 # Take the output of nm and produce a listing of raw symbols and C names.
26671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26672
26673 # Transform the output of nm in a proper C declaration
26674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26675
26676 # Transform the output of nm in a C name address pair
26677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26678
26679 # This is the shared library runtime path variable.
26680 runpath_var=$runpath_var
26681
26682 # This is the shared library path variable.
26683 shlibpath_var=$shlibpath_var
26684
26685 # Is shlibpath searched before the hard-coded library search path?
26686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26687
26688 # How to hardcode a shared library path into an executable.
26689 hardcode_action=$hardcode_action_RC
26690
26691 # Whether we should hardcode library paths into libraries.
26692 hardcode_into_libs=$hardcode_into_libs
26693
26694 # Flag to hardcode \$libdir into a binary during linking.
26695 # This must work even if \$libdir does not exist.
26696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26697
26698 # If ld is used when linking, flag to hardcode \$libdir into
26699 # a binary during linking. This must work even if \$libdir does
26700 # not exist.
26701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26702
26703 # Whether we need a single -rpath flag with a separated argument.
26704 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26705
26706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26707 # resulting binary.
26708 hardcode_direct=$hardcode_direct_RC
26709
26710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26711 # resulting binary.
26712 hardcode_minus_L=$hardcode_minus_L_RC
26713
26714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26715 # the resulting binary.
26716 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26717
26718 # Set to yes if building a shared library automatically hardcodes DIR into the library
26719 # and all subsequent libraries and executables linked against it.
26720 hardcode_automatic=$hardcode_automatic_RC
26721
26722 # Variables whose values should be saved in libtool wrapper scripts and
26723 # restored at relink time.
26724 variables_saved_for_relink="$variables_saved_for_relink"
26725
26726 # Whether libtool must link a program against all its dependency libraries.
26727 link_all_deplibs=$link_all_deplibs_RC
26728
26729 # Compile-time system search path for libraries
26730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26731
26732 # Run-time system search path for libraries
26733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26734
26735 # Fix the shell variable \$srcfile for the compiler.
26736 fix_srcfile_path="$fix_srcfile_path_RC"
26737
26738 # Set to yes if exported symbols are required.
26739 always_export_symbols=$always_export_symbols_RC
26740
26741 # The commands to list exported symbols.
26742 export_symbols_cmds=$lt_export_symbols_cmds_RC
26743
26744 # The commands to extract the exported symbol list from a shared archive.
26745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26746
26747 # Symbols that should not be listed in the preloaded symbols.
26748 exclude_expsyms=$lt_exclude_expsyms_RC
26749
26750 # Symbols that must always be exported.
26751 include_expsyms=$lt_include_expsyms_RC
26752
26753 # ### END LIBTOOL TAG CONFIG: $tagname
26754
26755 __EOF__
26756
26757
26758 else
26759   # If there is no Makefile yet, we rely on a make rule to execute
26760   # `config.status --recheck' to rerun these tests and create the
26761   # libtool script then.
26762   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26763   if test -f "$ltmain_in"; then
26764     test -f Makefile && make "$ltmain"
26765   fi
26766 fi
26767
26768
26769 ac_ext=c
26770 ac_cpp='$CPP $CPPFLAGS'
26771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26774
26775 CC="$lt_save_CC"
26776
26777         ;;
26778
26779       *)
26780         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26781 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26782    { (exit 1); exit 1; }; }
26783         ;;
26784       esac
26785
26786       # Append the new tag name to the list of available tags.
26787       if test -n "$tagname" ; then
26788       available_tags="$available_tags $tagname"
26789     fi
26790     fi
26791   done
26792   IFS="$lt_save_ifs"
26793
26794   # Now substitute the updated list of available tags.
26795   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26796     mv "${ofile}T" "$ofile"
26797     chmod +x "$ofile"
26798   else
26799     rm -f "${ofile}T"
26800     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26801 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26802    { (exit 1); exit 1; }; }
26803   fi
26804 fi
26805
26806
26807
26808 # This can be used to rebuild libtool when needed
26809 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26810
26811 # Always use our own libtool.
26812 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26813
26814 # Prevent multiple expansion
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836 if test "$lt_cv_dlopen_self" = "yes" ; then
26837
26838 cat >>confdefs.h <<\_ACEOF
26839 #define CAN_DLOPEN_SELF 1
26840 _ACEOF
26841
26842 fi
26843
26844
26845 if test "$WITH_LLVMGCCDIR" = "default" ; then
26846   LLVMGCC="llvm-gcc${EXEEXT}"
26847   LLVMGXX="llvm-g++${EXEEXT}"
26848   LLVMGCCCOMMAND="$LLVMGCC"
26849   LLVMGXXCOMMAND="$LLVMGXX"
26850   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26851
26852   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26853
26854   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26855 set dummy $LLVMGCC; ac_word=$2
26856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26858 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26859   echo $ECHO_N "(cached) $ECHO_C" >&6
26860 else
26861   case $LLVMGCC in
26862   [\\/]* | ?:[\\/]*)
26863   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26864   ;;
26865   *)
26866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26867 for as_dir in $PATH
26868 do
26869   IFS=$as_save_IFS
26870   test -z "$as_dir" && as_dir=.
26871   for ac_exec_ext in '' $ac_executable_extensions; do
26872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26873     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26875     break 2
26876   fi
26877 done
26878 done
26879 IFS=$as_save_IFS
26880
26881   ;;
26882 esac
26883 fi
26884 LLVMGCC=$ac_cv_path_LLVMGCC
26885 if test -n "$LLVMGCC"; then
26886   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26887 echo "${ECHO_T}$LLVMGCC" >&6; }
26888 else
26889   { echo "$as_me:$LINENO: result: no" >&5
26890 echo "${ECHO_T}no" >&6; }
26891 fi
26892
26893
26894   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26895 set dummy $LLVMGXX; ac_word=$2
26896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26898 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26899   echo $ECHO_N "(cached) $ECHO_C" >&6
26900 else
26901   case $LLVMGXX in
26902   [\\/]* | ?:[\\/]*)
26903   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26904   ;;
26905   *)
26906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26908 do
26909   IFS=$as_save_IFS
26910   test -z "$as_dir" && as_dir=.
26911   for ac_exec_ext in '' $ac_executable_extensions; do
26912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26913     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26915     break 2
26916   fi
26917 done
26918 done
26919 IFS=$as_save_IFS
26920
26921   ;;
26922 esac
26923 fi
26924 LLVMGXX=$ac_cv_path_LLVMGXX
26925 if test -n "$LLVMGXX"; then
26926   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26927 echo "${ECHO_T}$LLVMGXX" >&6; }
26928 else
26929   { echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6; }
26931 fi
26932
26933
26934 else
26935   if test -z "$LLVMGCC"; then
26936     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26937     LLVMGCCCOMMAND="$LLVMGCC"
26938   fi
26939   if test -z "$LLVMGXX"; then
26940     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26941     LLVMGXXCOMMAND="$LLVMGXX"
26942   fi
26943
26944   LLVMGCC=$LLVMGCC
26945
26946   LLVMGXX=$LLVMGXX
26947
26948   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26949
26950   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26951
26952 fi
26953
26954
26955 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26956 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26957
26958 ICC=no
26959 IXX=no
26960 case $CC in
26961   icc*|icpc*)
26962     ICC=yes
26963     IXX=yes
26964     ;;
26965    *)
26966     ;;
26967 esac
26968
26969 if test "$GCC" != "yes" && test "$ICC" != "yes"
26970 then
26971   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26972 echo "$as_me: error: gcc|icc required but not found" >&2;}
26973    { (exit 1); exit 1; }; }
26974 fi
26975
26976 if test "$GXX" != "yes" && test "$IXX" != "yes"
26977 then
26978   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26979 echo "$as_me: error: g++|icc required but not found" >&2;}
26980    { (exit 1); exit 1; }; }
26981 fi
26982
26983 if test "$GCC" = "yes"
26984 then
26985   cat >conftest.$ac_ext <<_ACEOF
26986 #if !defined(__GNUC__) || __GNUC__ < 3
26987 #error Unsupported GCC version
26988 #endif
26989
26990 _ACEOF
26991 rm -f conftest.$ac_objext
26992 if { (ac_try="$ac_compile"
26993 case "(($ac_try" in
26994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26995   *) ac_try_echo=$ac_try;;
26996 esac
26997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26998   (eval "$ac_compile") 2>conftest.er1
26999   ac_status=$?
27000   grep -v '^ *+' conftest.er1 >conftest.err
27001   rm -f conftest.er1
27002   cat conftest.err >&5
27003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004   (exit $ac_status); } &&
27005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27006   { (case "(($ac_try" in
27007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008   *) ac_try_echo=$ac_try;;
27009 esac
27010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27011   (eval "$ac_try") 2>&5
27012   ac_status=$?
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); }; } &&
27015          { ac_try='test -s conftest.$ac_objext'
27016   { (case "(($ac_try" in
27017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018   *) ac_try_echo=$ac_try;;
27019 esac
27020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021   (eval "$ac_try") 2>&5
27022   ac_status=$?
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); }; }; then
27025   :
27026 else
27027   echo "$as_me: failed program was:" >&5
27028 sed 's/^/| /' conftest.$ac_ext >&5
27029
27030         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27031 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27032    { (exit 1); exit 1; }; }
27033 fi
27034
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27036 fi
27037
27038 if test -z "$llvm_cv_gnu_make_command"
27039 then
27040   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27041 echo "$as_me: error: GNU Make required but not found" >&2;}
27042    { (exit 1); exit 1; }; }
27043 fi
27044
27045 { echo "$as_me:$LINENO: result: ok" >&5
27046 echo "${ECHO_T}ok" >&6; }
27047
27048
27049
27050 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27051 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27052 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27053   echo $ECHO_N "(cached) $ECHO_C" >&6
27054 else
27055   ac_check_lib_save_LIBS=$LIBS
27056 LIBS="-lelf  $LIBS"
27057 cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h.  */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h.  */
27063
27064 /* Override any GCC internal prototype to avoid an error.
27065    Use char because int might match the return type of a GCC
27066    builtin and then its argument prototype would still apply.  */
27067 #ifdef __cplusplus
27068 extern "C"
27069 #endif
27070 char elf_begin ();
27071 int
27072 main ()
27073 {
27074 return elf_begin ();
27075   ;
27076   return 0;
27077 }
27078 _ACEOF
27079 rm -f conftest.$ac_objext conftest$ac_exeext
27080 if { (ac_try="$ac_link"
27081 case "(($ac_try" in
27082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083   *) ac_try_echo=$ac_try;;
27084 esac
27085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086   (eval "$ac_link") 2>conftest.er1
27087   ac_status=$?
27088   grep -v '^ *+' conftest.er1 >conftest.err
27089   rm -f conftest.er1
27090   cat conftest.err >&5
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); } &&
27093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27094   { (case "(($ac_try" in
27095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27096   *) ac_try_echo=$ac_try;;
27097 esac
27098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27099   (eval "$ac_try") 2>&5
27100   ac_status=$?
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); }; } &&
27103          { ac_try='test -s conftest$ac_exeext'
27104   { (case "(($ac_try" in
27105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106   *) ac_try_echo=$ac_try;;
27107 esac
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109   (eval "$ac_try") 2>&5
27110   ac_status=$?
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); }; }; then
27113   ac_cv_lib_elf_elf_begin=yes
27114 else
27115   echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27117
27118         ac_cv_lib_elf_elf_begin=no
27119 fi
27120
27121 rm -f core conftest.err conftest.$ac_objext \
27122       conftest$ac_exeext conftest.$ac_ext
27123 LIBS=$ac_check_lib_save_LIBS
27124 fi
27125 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27126 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27127 if test $ac_cv_lib_elf_elf_begin = yes; then
27128   cat >>confdefs.h <<_ACEOF
27129 #define HAVE_LIBELF 1
27130 _ACEOF
27131
27132   LIBS="-lelf $LIBS"
27133
27134 fi
27135
27136
27137 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27138 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27139 if test "${ac_cv_lib_m_sin+set}" = set; then
27140   echo $ECHO_N "(cached) $ECHO_C" >&6
27141 else
27142   ac_check_lib_save_LIBS=$LIBS
27143 LIBS="-lm  $LIBS"
27144 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h.  */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h.  */
27150
27151 /* Override any GCC internal prototype to avoid an error.
27152    Use char because int might match the return type of a GCC
27153    builtin and then its argument prototype would still apply.  */
27154 #ifdef __cplusplus
27155 extern "C"
27156 #endif
27157 char sin ();
27158 int
27159 main ()
27160 {
27161 return sin ();
27162   ;
27163   return 0;
27164 }
27165 _ACEOF
27166 rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (ac_try="$ac_link"
27168 case "(($ac_try" in
27169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170   *) ac_try_echo=$ac_try;;
27171 esac
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173   (eval "$ac_link") 2>conftest.er1
27174   ac_status=$?
27175   grep -v '^ *+' conftest.er1 >conftest.err
27176   rm -f conftest.er1
27177   cat conftest.err >&5
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); } &&
27180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27181   { (case "(($ac_try" in
27182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183   *) ac_try_echo=$ac_try;;
27184 esac
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186   (eval "$ac_try") 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; } &&
27190          { ac_try='test -s conftest$ac_exeext'
27191   { (case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_try") 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); }; }; then
27200   ac_cv_lib_m_sin=yes
27201 else
27202   echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205         ac_cv_lib_m_sin=no
27206 fi
27207
27208 rm -f core conftest.err conftest.$ac_objext \
27209       conftest$ac_exeext conftest.$ac_ext
27210 LIBS=$ac_check_lib_save_LIBS
27211 fi
27212 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27213 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27214 if test $ac_cv_lib_m_sin = yes; then
27215   cat >>confdefs.h <<_ACEOF
27216 #define HAVE_LIBM 1
27217 _ACEOF
27218
27219   LIBS="-lm $LIBS"
27220
27221 fi
27222
27223 if test "$llvm_cv_os_type" = "MingW" ; then
27224
27225 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27226 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27227 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27228   echo $ECHO_N "(cached) $ECHO_C" >&6
27229 else
27230   ac_check_lib_save_LIBS=$LIBS
27231 LIBS="-limagehlp  $LIBS"
27232 cat >conftest.$ac_ext <<_ACEOF
27233 /* confdefs.h.  */
27234 _ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h.  */
27238
27239
27240 int
27241 main ()
27242 {
27243 return main ();
27244   ;
27245   return 0;
27246 }
27247 _ACEOF
27248 rm -f conftest.$ac_objext conftest$ac_exeext
27249 if { (ac_try="$ac_link"
27250 case "(($ac_try" in
27251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252   *) ac_try_echo=$ac_try;;
27253 esac
27254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27255   (eval "$ac_link") 2>conftest.er1
27256   ac_status=$?
27257   grep -v '^ *+' conftest.er1 >conftest.err
27258   rm -f conftest.er1
27259   cat conftest.err >&5
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); } &&
27262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27263   { (case "(($ac_try" in
27264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27265   *) ac_try_echo=$ac_try;;
27266 esac
27267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27268   (eval "$ac_try") 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; } &&
27272          { ac_try='test -s conftest$ac_exeext'
27273   { (case "(($ac_try" in
27274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275   *) ac_try_echo=$ac_try;;
27276 esac
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278   (eval "$ac_try") 2>&5
27279   ac_status=$?
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); }; }; then
27282   ac_cv_lib_imagehlp_main=yes
27283 else
27284   echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27286
27287         ac_cv_lib_imagehlp_main=no
27288 fi
27289
27290 rm -f core conftest.err conftest.$ac_objext \
27291       conftest$ac_exeext conftest.$ac_ext
27292 LIBS=$ac_check_lib_save_LIBS
27293 fi
27294 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27295 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27296 if test $ac_cv_lib_imagehlp_main = yes; then
27297   cat >>confdefs.h <<_ACEOF
27298 #define HAVE_LIBIMAGEHLP 1
27299 _ACEOF
27300
27301   LIBS="-limagehlp $LIBS"
27302
27303 fi
27304
27305
27306 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27307 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27308 if test "${ac_cv_lib_psapi_main+set}" = set; then
27309   echo $ECHO_N "(cached) $ECHO_C" >&6
27310 else
27311   ac_check_lib_save_LIBS=$LIBS
27312 LIBS="-lpsapi  $LIBS"
27313 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h.  */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h.  */
27319
27320
27321 int
27322 main ()
27323 {
27324 return main ();
27325   ;
27326   return 0;
27327 }
27328 _ACEOF
27329 rm -f conftest.$ac_objext conftest$ac_exeext
27330 if { (ac_try="$ac_link"
27331 case "(($ac_try" in
27332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27333   *) ac_try_echo=$ac_try;;
27334 esac
27335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27336   (eval "$ac_link") 2>conftest.er1
27337   ac_status=$?
27338   grep -v '^ *+' conftest.er1 >conftest.err
27339   rm -f conftest.er1
27340   cat conftest.err >&5
27341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342   (exit $ac_status); } &&
27343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27344   { (case "(($ac_try" in
27345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346   *) ac_try_echo=$ac_try;;
27347 esac
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349   (eval "$ac_try") 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; } &&
27353          { ac_try='test -s conftest$ac_exeext'
27354   { (case "(($ac_try" in
27355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356   *) ac_try_echo=$ac_try;;
27357 esac
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359   (eval "$ac_try") 2>&5
27360   ac_status=$?
27361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); }; }; then
27363   ac_cv_lib_psapi_main=yes
27364 else
27365   echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27367
27368         ac_cv_lib_psapi_main=no
27369 fi
27370
27371 rm -f core conftest.err conftest.$ac_objext \
27372       conftest$ac_exeext conftest.$ac_ext
27373 LIBS=$ac_check_lib_save_LIBS
27374 fi
27375 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27376 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27377 if test $ac_cv_lib_psapi_main = yes; then
27378   cat >>confdefs.h <<_ACEOF
27379 #define HAVE_LIBPSAPI 1
27380 _ACEOF
27381
27382   LIBS="-lpsapi $LIBS"
27383
27384 fi
27385
27386 fi
27387
27388 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27389 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27390 if test "${ac_cv_search_dlopen+set}" = set; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   ac_func_search_save_LIBS=$LIBS
27394 cat >conftest.$ac_ext <<_ACEOF
27395 /* confdefs.h.  */
27396 _ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h.  */
27400
27401 /* Override any GCC internal prototype to avoid an error.
27402    Use char because int might match the return type of a GCC
27403    builtin and then its argument prototype would still apply.  */
27404 #ifdef __cplusplus
27405 extern "C"
27406 #endif
27407 char dlopen ();
27408 int
27409 main ()
27410 {
27411 return dlopen ();
27412   ;
27413   return 0;
27414 }
27415 _ACEOF
27416 for ac_lib in '' dl; do
27417   if test -z "$ac_lib"; then
27418     ac_res="none required"
27419   else
27420     ac_res=-l$ac_lib
27421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27422   fi
27423   rm -f conftest.$ac_objext conftest$ac_exeext
27424 if { (ac_try="$ac_link"
27425 case "(($ac_try" in
27426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427   *) ac_try_echo=$ac_try;;
27428 esac
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430   (eval "$ac_link") 2>conftest.er1
27431   ac_status=$?
27432   grep -v '^ *+' conftest.er1 >conftest.err
27433   rm -f conftest.er1
27434   cat conftest.err >&5
27435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436   (exit $ac_status); } &&
27437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27438   { (case "(($ac_try" in
27439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440   *) ac_try_echo=$ac_try;;
27441 esac
27442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443   (eval "$ac_try") 2>&5
27444   ac_status=$?
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); }; } &&
27447          { ac_try='test -s conftest$ac_exeext'
27448   { (case "(($ac_try" in
27449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450   *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453   (eval "$ac_try") 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; }; then
27457   ac_cv_search_dlopen=$ac_res
27458 else
27459   echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27461
27462
27463 fi
27464
27465 rm -f core conftest.err conftest.$ac_objext \
27466       conftest$ac_exeext
27467   if test "${ac_cv_search_dlopen+set}" = set; then
27468   break
27469 fi
27470 done
27471 if test "${ac_cv_search_dlopen+set}" = set; then
27472   :
27473 else
27474   ac_cv_search_dlopen=no
27475 fi
27476 rm conftest.$ac_ext
27477 LIBS=$ac_func_search_save_LIBS
27478 fi
27479 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27480 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27481 ac_res=$ac_cv_search_dlopen
27482 if test "$ac_res" != no; then
27483   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27484
27485 cat >>confdefs.h <<\_ACEOF
27486 #define HAVE_DLOPEN 1
27487 _ACEOF
27488
27489 else
27490   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27491 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27492 fi
27493
27494
27495 if test "$llvm_cv_enable_libffi" = "yes" ; then
27496   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27497 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27498 if test "${ac_cv_search_ffi_call+set}" = set; then
27499   echo $ECHO_N "(cached) $ECHO_C" >&6
27500 else
27501   ac_func_search_save_LIBS=$LIBS
27502 cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508
27509 /* Override any GCC internal prototype to avoid an error.
27510    Use char because int might match the return type of a GCC
27511    builtin and then its argument prototype would still apply.  */
27512 #ifdef __cplusplus
27513 extern "C"
27514 #endif
27515 char ffi_call ();
27516 int
27517 main ()
27518 {
27519 return ffi_call ();
27520   ;
27521   return 0;
27522 }
27523 _ACEOF
27524 for ac_lib in '' ffi; do
27525   if test -z "$ac_lib"; then
27526     ac_res="none required"
27527   else
27528     ac_res=-l$ac_lib
27529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27530   fi
27531   rm -f conftest.$ac_objext conftest$ac_exeext
27532 if { (ac_try="$ac_link"
27533 case "(($ac_try" in
27534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535   *) ac_try_echo=$ac_try;;
27536 esac
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538   (eval "$ac_link") 2>conftest.er1
27539   ac_status=$?
27540   grep -v '^ *+' conftest.er1 >conftest.err
27541   rm -f conftest.er1
27542   cat conftest.err >&5
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); } &&
27545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27546   { (case "(($ac_try" in
27547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548   *) ac_try_echo=$ac_try;;
27549 esac
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551   (eval "$ac_try") 2>&5
27552   ac_status=$?
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); }; } &&
27555          { ac_try='test -s conftest$ac_exeext'
27556   { (case "(($ac_try" in
27557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558   *) ac_try_echo=$ac_try;;
27559 esac
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561   (eval "$ac_try") 2>&5
27562   ac_status=$?
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); }; }; then
27565   ac_cv_search_ffi_call=$ac_res
27566 else
27567   echo "$as_me: failed program was:" >&5
27568 sed 's/^/| /' conftest.$ac_ext >&5
27569
27570
27571 fi
27572
27573 rm -f core conftest.err conftest.$ac_objext \
27574       conftest$ac_exeext
27575   if test "${ac_cv_search_ffi_call+set}" = set; then
27576   break
27577 fi
27578 done
27579 if test "${ac_cv_search_ffi_call+set}" = set; then
27580   :
27581 else
27582   ac_cv_search_ffi_call=no
27583 fi
27584 rm conftest.$ac_ext
27585 LIBS=$ac_func_search_save_LIBS
27586 fi
27587 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27588 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27589 ac_res=$ac_cv_search_ffi_call
27590 if test "$ac_res" != no; then
27591   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27592
27593 cat >>confdefs.h <<\_ACEOF
27594 #define HAVE_FFI_CALL 1
27595 _ACEOF
27596
27597 else
27598   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27599 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27600 fi
27601
27602 fi
27603
27604 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27605 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27606 if test "${ac_cv_search_mallinfo+set}" = set; then
27607   echo $ECHO_N "(cached) $ECHO_C" >&6
27608 else
27609   ac_func_search_save_LIBS=$LIBS
27610 cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h.  */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h.  */
27616
27617 /* Override any GCC internal prototype to avoid an error.
27618    Use char because int might match the return type of a GCC
27619    builtin and then its argument prototype would still apply.  */
27620 #ifdef __cplusplus
27621 extern "C"
27622 #endif
27623 char mallinfo ();
27624 int
27625 main ()
27626 {
27627 return mallinfo ();
27628   ;
27629   return 0;
27630 }
27631 _ACEOF
27632 for ac_lib in '' malloc; do
27633   if test -z "$ac_lib"; then
27634     ac_res="none required"
27635   else
27636     ac_res=-l$ac_lib
27637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27638   fi
27639   rm -f conftest.$ac_objext conftest$ac_exeext
27640 if { (ac_try="$ac_link"
27641 case "(($ac_try" in
27642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643   *) ac_try_echo=$ac_try;;
27644 esac
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646   (eval "$ac_link") 2>conftest.er1
27647   ac_status=$?
27648   grep -v '^ *+' conftest.er1 >conftest.err
27649   rm -f conftest.er1
27650   cat conftest.err >&5
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); } &&
27653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654   { (case "(($ac_try" in
27655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656   *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659   (eval "$ac_try") 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; } &&
27663          { ac_try='test -s conftest$ac_exeext'
27664   { (case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_try") 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; }; then
27673   ac_cv_search_mallinfo=$ac_res
27674 else
27675   echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27677
27678
27679 fi
27680
27681 rm -f core conftest.err conftest.$ac_objext \
27682       conftest$ac_exeext
27683   if test "${ac_cv_search_mallinfo+set}" = set; then
27684   break
27685 fi
27686 done
27687 if test "${ac_cv_search_mallinfo+set}" = set; then
27688   :
27689 else
27690   ac_cv_search_mallinfo=no
27691 fi
27692 rm conftest.$ac_ext
27693 LIBS=$ac_func_search_save_LIBS
27694 fi
27695 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27696 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27697 ac_res=$ac_cv_search_mallinfo
27698 if test "$ac_res" != no; then
27699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27700
27701 cat >>confdefs.h <<\_ACEOF
27702 #define HAVE_MALLINFO 1
27703 _ACEOF
27704
27705 fi
27706
27707
27708 if test "$ENABLE_THREADS" -eq 1 ; then
27709
27710 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27711 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27712 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27713   echo $ECHO_N "(cached) $ECHO_C" >&6
27714 else
27715   ac_check_lib_save_LIBS=$LIBS
27716 LIBS="-lpthread  $LIBS"
27717 cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723
27724 /* Override any GCC internal prototype to avoid an error.
27725    Use char because int might match the return type of a GCC
27726    builtin and then its argument prototype would still apply.  */
27727 #ifdef __cplusplus
27728 extern "C"
27729 #endif
27730 char pthread_mutex_init ();
27731 int
27732 main ()
27733 {
27734 return pthread_mutex_init ();
27735   ;
27736   return 0;
27737 }
27738 _ACEOF
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746   (eval "$ac_link") 2>conftest.er1
27747   ac_status=$?
27748   grep -v '^ *+' conftest.er1 >conftest.err
27749   rm -f conftest.er1
27750   cat conftest.err >&5
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); } &&
27753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754   { (case "(($ac_try" in
27755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756   *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759   (eval "$ac_try") 2>&5
27760   ac_status=$?
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); }; } &&
27763          { ac_try='test -s conftest$ac_exeext'
27764   { (case "(($ac_try" in
27765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766   *) ac_try_echo=$ac_try;;
27767 esac
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769   (eval "$ac_try") 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); }; }; then
27773   ac_cv_lib_pthread_pthread_mutex_init=yes
27774 else
27775   echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27777
27778         ac_cv_lib_pthread_pthread_mutex_init=no
27779 fi
27780
27781 rm -f core conftest.err conftest.$ac_objext \
27782       conftest$ac_exeext conftest.$ac_ext
27783 LIBS=$ac_check_lib_save_LIBS
27784 fi
27785 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27786 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27787 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27788   cat >>confdefs.h <<_ACEOF
27789 #define HAVE_LIBPTHREAD 1
27790 _ACEOF
27791
27792   LIBS="-lpthread $LIBS"
27793
27794 fi
27795
27796   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27797 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   ac_func_search_save_LIBS=$LIBS
27802 cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808
27809 /* Override any GCC internal prototype to avoid an error.
27810    Use char because int might match the return type of a GCC
27811    builtin and then its argument prototype would still apply.  */
27812 #ifdef __cplusplus
27813 extern "C"
27814 #endif
27815 char pthread_mutex_lock ();
27816 int
27817 main ()
27818 {
27819 return pthread_mutex_lock ();
27820   ;
27821   return 0;
27822 }
27823 _ACEOF
27824 for ac_lib in '' pthread; do
27825   if test -z "$ac_lib"; then
27826     ac_res="none required"
27827   else
27828     ac_res=-l$ac_lib
27829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27830   fi
27831   rm -f conftest.$ac_objext conftest$ac_exeext
27832 if { (ac_try="$ac_link"
27833 case "(($ac_try" in
27834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835   *) ac_try_echo=$ac_try;;
27836 esac
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838   (eval "$ac_link") 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } &&
27845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846   { (case "(($ac_try" in
27847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848   *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851   (eval "$ac_try") 2>&5
27852   ac_status=$?
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); }; } &&
27855          { ac_try='test -s conftest$ac_exeext'
27856   { (case "(($ac_try" in
27857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858   *) ac_try_echo=$ac_try;;
27859 esac
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861   (eval "$ac_try") 2>&5
27862   ac_status=$?
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); }; }; then
27865   ac_cv_search_pthread_mutex_lock=$ac_res
27866 else
27867   echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870
27871 fi
27872
27873 rm -f core conftest.err conftest.$ac_objext \
27874       conftest$ac_exeext
27875   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876   break
27877 fi
27878 done
27879 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27880   :
27881 else
27882   ac_cv_search_pthread_mutex_lock=no
27883 fi
27884 rm conftest.$ac_ext
27885 LIBS=$ac_func_search_save_LIBS
27886 fi
27887 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27888 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27889 ac_res=$ac_cv_search_pthread_mutex_lock
27890 if test "$ac_res" != no; then
27891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27892
27893 cat >>confdefs.h <<\_ACEOF
27894 #define HAVE_PTHREAD_MUTEX_LOCK 1
27895 _ACEOF
27896
27897 fi
27898
27899   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27900 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27901 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27902   echo $ECHO_N "(cached) $ECHO_C" >&6
27903 else
27904   ac_func_search_save_LIBS=$LIBS
27905 cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h.  */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h.  */
27911
27912 /* Override any GCC internal prototype to avoid an error.
27913    Use char because int might match the return type of a GCC
27914    builtin and then its argument prototype would still apply.  */
27915 #ifdef __cplusplus
27916 extern "C"
27917 #endif
27918 char pthread_rwlock_init ();
27919 int
27920 main ()
27921 {
27922 return pthread_rwlock_init ();
27923   ;
27924   return 0;
27925 }
27926 _ACEOF
27927 for ac_lib in '' pthread; do
27928   if test -z "$ac_lib"; then
27929     ac_res="none required"
27930   else
27931     ac_res=-l$ac_lib
27932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27933   fi
27934   rm -f conftest.$ac_objext conftest$ac_exeext
27935 if { (ac_try="$ac_link"
27936 case "(($ac_try" in
27937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938   *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941   (eval "$ac_link") 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } &&
27948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27949   { (case "(($ac_try" in
27950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951   *) ac_try_echo=$ac_try;;
27952 esac
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954   (eval "$ac_try") 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; } &&
27958          { ac_try='test -s conftest$ac_exeext'
27959   { (case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_try") 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; }; then
27968   ac_cv_search_pthread_rwlock_init=$ac_res
27969 else
27970   echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27972
27973
27974 fi
27975
27976 rm -f core conftest.err conftest.$ac_objext \
27977       conftest$ac_exeext
27978   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27979   break
27980 fi
27981 done
27982 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27983   :
27984 else
27985   ac_cv_search_pthread_rwlock_init=no
27986 fi
27987 rm conftest.$ac_ext
27988 LIBS=$ac_func_search_save_LIBS
27989 fi
27990 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
27991 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
27992 ac_res=$ac_cv_search_pthread_rwlock_init
27993 if test "$ac_res" != no; then
27994   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27995
27996 cat >>confdefs.h <<\_ACEOF
27997 #define HAVE_PTHREAD_RWLOCK_INIT 1
27998 _ACEOF
27999
28000 fi
28001
28002 fi
28003
28004
28005 # Check whether --with-udis86 was given.
28006 if test "${with_udis86+set}" = set; then
28007   withval=$with_udis86;
28008       USE_UDIS86=1
28009
28010       case "$withval" in
28011         /usr/lib|yes) ;;
28012         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28013       esac
28014
28015 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28016 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28017 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   ac_check_lib_save_LIBS=$LIBS
28021 LIBS="-ludis86  $LIBS"
28022 cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028
28029 /* Override any GCC internal prototype to avoid an error.
28030    Use char because int might match the return type of a GCC
28031    builtin and then its argument prototype would still apply.  */
28032 #ifdef __cplusplus
28033 extern "C"
28034 #endif
28035 char ud_init ();
28036 int
28037 main ()
28038 {
28039 return ud_init ();
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 rm -f conftest.$ac_objext conftest$ac_exeext
28045 if { (ac_try="$ac_link"
28046 case "(($ac_try" in
28047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048   *) ac_try_echo=$ac_try;;
28049 esac
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051   (eval "$ac_link") 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } &&
28058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28059   { (case "(($ac_try" in
28060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061   *) ac_try_echo=$ac_try;;
28062 esac
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064   (eval "$ac_try") 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; } &&
28068          { ac_try='test -s conftest$ac_exeext'
28069   { (case "(($ac_try" in
28070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071   *) ac_try_echo=$ac_try;;
28072 esac
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074   (eval "$ac_try") 2>&5
28075   ac_status=$?
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); }; }; then
28078   ac_cv_lib_udis86_ud_init=yes
28079 else
28080   echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28082
28083         ac_cv_lib_udis86_ud_init=no
28084 fi
28085
28086 rm -f core conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28089 fi
28090 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28091 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28092 if test $ac_cv_lib_udis86_ud_init = yes; then
28093   cat >>confdefs.h <<_ACEOF
28094 #define HAVE_LIBUDIS86 1
28095 _ACEOF
28096
28097   LIBS="-ludis86 $LIBS"
28098
28099 else
28100
28101         echo "Error! You need to have libudis86 around."
28102         exit -1
28103
28104 fi
28105
28106
28107 else
28108   USE_UDIS86=0
28109
28110 fi
28111
28112
28113 cat >>confdefs.h <<_ACEOF
28114 #define USE_UDIS86 $USE_UDIS86
28115 _ACEOF
28116
28117
28118
28119
28120
28121
28122
28123
28124 ac_header_dirent=no
28125 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28126   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28127 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28128 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28130   echo $ECHO_N "(cached) $ECHO_C" >&6
28131 else
28132   cat >conftest.$ac_ext <<_ACEOF
28133 /* confdefs.h.  */
28134 _ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h.  */
28138 #include <sys/types.h>
28139 #include <$ac_hdr>
28140
28141 int
28142 main ()
28143 {
28144 if ((DIR *) 0)
28145 return 0;
28146   ;
28147   return 0;
28148 }
28149 _ACEOF
28150 rm -f conftest.$ac_objext
28151 if { (ac_try="$ac_compile"
28152 case "(($ac_try" in
28153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154   *) ac_try_echo=$ac_try;;
28155 esac
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157   (eval "$ac_compile") 2>conftest.er1
28158   ac_status=$?
28159   grep -v '^ *+' conftest.er1 >conftest.err
28160   rm -f conftest.er1
28161   cat conftest.err >&5
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); } &&
28164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28165   { (case "(($ac_try" in
28166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167   *) ac_try_echo=$ac_try;;
28168 esac
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170   (eval "$ac_try") 2>&5
28171   ac_status=$?
28172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173   (exit $ac_status); }; } &&
28174          { ac_try='test -s conftest.$ac_objext'
28175   { (case "(($ac_try" in
28176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177   *) ac_try_echo=$ac_try;;
28178 esac
28179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180   (eval "$ac_try") 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; }; then
28184   eval "$as_ac_Header=yes"
28185 else
28186   echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28188
28189         eval "$as_ac_Header=no"
28190 fi
28191
28192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28193 fi
28194 ac_res=`eval echo '${'$as_ac_Header'}'`
28195                { echo "$as_me:$LINENO: result: $ac_res" >&5
28196 echo "${ECHO_T}$ac_res" >&6; }
28197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28198   cat >>confdefs.h <<_ACEOF
28199 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28200 _ACEOF
28201
28202 ac_header_dirent=$ac_hdr; break
28203 fi
28204
28205 done
28206 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28207 if test $ac_header_dirent = dirent.h; then
28208   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28209 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28210 if test "${ac_cv_search_opendir+set}" = set; then
28211   echo $ECHO_N "(cached) $ECHO_C" >&6
28212 else
28213   ac_func_search_save_LIBS=$LIBS
28214 cat >conftest.$ac_ext <<_ACEOF
28215 /* confdefs.h.  */
28216 _ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h.  */
28220
28221 /* Override any GCC internal prototype to avoid an error.
28222    Use char because int might match the return type of a GCC
28223    builtin and then its argument prototype would still apply.  */
28224 #ifdef __cplusplus
28225 extern "C"
28226 #endif
28227 char opendir ();
28228 int
28229 main ()
28230 {
28231 return opendir ();
28232   ;
28233   return 0;
28234 }
28235 _ACEOF
28236 for ac_lib in '' dir; do
28237   if test -z "$ac_lib"; then
28238     ac_res="none required"
28239   else
28240     ac_res=-l$ac_lib
28241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28242   fi
28243   rm -f conftest.$ac_objext conftest$ac_exeext
28244 if { (ac_try="$ac_link"
28245 case "(($ac_try" in
28246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28247   *) ac_try_echo=$ac_try;;
28248 esac
28249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28250   (eval "$ac_link") 2>conftest.er1
28251   ac_status=$?
28252   grep -v '^ *+' conftest.er1 >conftest.err
28253   rm -f conftest.er1
28254   cat conftest.err >&5
28255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); } &&
28257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28258   { (case "(($ac_try" in
28259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260   *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263   (eval "$ac_try") 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; } &&
28267          { ac_try='test -s conftest$ac_exeext'
28268   { (case "(($ac_try" in
28269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270   *) ac_try_echo=$ac_try;;
28271 esac
28272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28273   (eval "$ac_try") 2>&5
28274   ac_status=$?
28275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); }; }; then
28277   ac_cv_search_opendir=$ac_res
28278 else
28279   echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28281
28282
28283 fi
28284
28285 rm -f core conftest.err conftest.$ac_objext \
28286       conftest$ac_exeext
28287   if test "${ac_cv_search_opendir+set}" = set; then
28288   break
28289 fi
28290 done
28291 if test "${ac_cv_search_opendir+set}" = set; then
28292   :
28293 else
28294   ac_cv_search_opendir=no
28295 fi
28296 rm conftest.$ac_ext
28297 LIBS=$ac_func_search_save_LIBS
28298 fi
28299 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28300 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28301 ac_res=$ac_cv_search_opendir
28302 if test "$ac_res" != no; then
28303   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28304
28305 fi
28306
28307 else
28308   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28309 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28310 if test "${ac_cv_search_opendir+set}" = set; then
28311   echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313   ac_func_search_save_LIBS=$LIBS
28314 cat >conftest.$ac_ext <<_ACEOF
28315 /* confdefs.h.  */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h.  */
28320
28321 /* Override any GCC internal prototype to avoid an error.
28322    Use char because int might match the return type of a GCC
28323    builtin and then its argument prototype would still apply.  */
28324 #ifdef __cplusplus
28325 extern "C"
28326 #endif
28327 char opendir ();
28328 int
28329 main ()
28330 {
28331 return opendir ();
28332   ;
28333   return 0;
28334 }
28335 _ACEOF
28336 for ac_lib in '' x; do
28337   if test -z "$ac_lib"; then
28338     ac_res="none required"
28339   else
28340     ac_res=-l$ac_lib
28341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28342   fi
28343   rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (ac_try="$ac_link"
28345 case "(($ac_try" in
28346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347   *) ac_try_echo=$ac_try;;
28348 esac
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350   (eval "$ac_link") 2>conftest.er1
28351   ac_status=$?
28352   grep -v '^ *+' conftest.er1 >conftest.err
28353   rm -f conftest.er1
28354   cat conftest.err >&5
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); } &&
28357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28358   { (case "(($ac_try" in
28359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360   *) ac_try_echo=$ac_try;;
28361 esac
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363   (eval "$ac_try") 2>&5
28364   ac_status=$?
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); }; } &&
28367          { ac_try='test -s conftest$ac_exeext'
28368   { (case "(($ac_try" in
28369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370   *) ac_try_echo=$ac_try;;
28371 esac
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373   (eval "$ac_try") 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; }; then
28377   ac_cv_search_opendir=$ac_res
28378 else
28379   echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28381
28382
28383 fi
28384
28385 rm -f core conftest.err conftest.$ac_objext \
28386       conftest$ac_exeext
28387   if test "${ac_cv_search_opendir+set}" = set; then
28388   break
28389 fi
28390 done
28391 if test "${ac_cv_search_opendir+set}" = set; then
28392   :
28393 else
28394   ac_cv_search_opendir=no
28395 fi
28396 rm conftest.$ac_ext
28397 LIBS=$ac_func_search_save_LIBS
28398 fi
28399 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28400 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28401 ac_res=$ac_cv_search_opendir
28402 if test "$ac_res" != no; then
28403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28404
28405 fi
28406
28407 fi
28408
28409 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28410 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28411 if test "${ac_cv_header_mmap_anon+set}" = set; then
28412   echo $ECHO_N "(cached) $ECHO_C" >&6
28413 else
28414    ac_ext=c
28415 ac_cpp='$CPP $CPPFLAGS'
28416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28419
28420   cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426 #include <sys/mman.h>
28427 #include <unistd.h>
28428 #include <fcntl.h>
28429 int
28430 main ()
28431 {
28432 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28433   ;
28434   return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext
28438 if { (ac_try="$ac_compile"
28439 case "(($ac_try" in
28440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441   *) ac_try_echo=$ac_try;;
28442 esac
28443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444   (eval "$ac_compile") 2>conftest.er1
28445   ac_status=$?
28446   grep -v '^ *+' conftest.er1 >conftest.err
28447   rm -f conftest.er1
28448   cat conftest.err >&5
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); } &&
28451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28452   { (case "(($ac_try" in
28453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454   *) ac_try_echo=$ac_try;;
28455 esac
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457   (eval "$ac_try") 2>&5
28458   ac_status=$?
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); }; } &&
28461          { ac_try='test -s conftest.$ac_objext'
28462   { (case "(($ac_try" in
28463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464   *) ac_try_echo=$ac_try;;
28465 esac
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467   (eval "$ac_try") 2>&5
28468   ac_status=$?
28469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470   (exit $ac_status); }; }; then
28471   ac_cv_header_mmap_anon=yes
28472 else
28473   echo "$as_me: failed program was:" >&5
28474 sed 's/^/| /' conftest.$ac_ext >&5
28475
28476         ac_cv_header_mmap_anon=no
28477 fi
28478
28479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28480   ac_ext=c
28481 ac_cpp='$CPP $CPPFLAGS'
28482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28485
28486
28487 fi
28488 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28489 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28490 if test "$ac_cv_header_mmap_anon" = yes; then
28491
28492 cat >>confdefs.h <<\_ACEOF
28493 #define HAVE_MMAP_ANONYMOUS 1
28494 _ACEOF
28495
28496 fi
28497
28498 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28499 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28500 if test "${ac_cv_header_stat_broken+set}" = set; then
28501   echo $ECHO_N "(cached) $ECHO_C" >&6
28502 else
28503   cat >conftest.$ac_ext <<_ACEOF
28504 /* confdefs.h.  */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h.  */
28509 #include <sys/types.h>
28510 #include <sys/stat.h>
28511
28512 #if defined S_ISBLK && defined S_IFDIR
28513 # if S_ISBLK (S_IFDIR)
28514 You lose.
28515 # endif
28516 #endif
28517
28518 #if defined S_ISBLK && defined S_IFCHR
28519 # if S_ISBLK (S_IFCHR)
28520 You lose.
28521 # endif
28522 #endif
28523
28524 #if defined S_ISLNK && defined S_IFREG
28525 # if S_ISLNK (S_IFREG)
28526 You lose.
28527 # endif
28528 #endif
28529
28530 #if defined S_ISSOCK && defined S_IFREG
28531 # if S_ISSOCK (S_IFREG)
28532 You lose.
28533 # endif
28534 #endif
28535
28536 _ACEOF
28537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28538   $EGREP "You lose" >/dev/null 2>&1; then
28539   ac_cv_header_stat_broken=yes
28540 else
28541   ac_cv_header_stat_broken=no
28542 fi
28543 rm -f conftest*
28544
28545 fi
28546 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28547 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28548 if test $ac_cv_header_stat_broken = yes; then
28549
28550 cat >>confdefs.h <<\_ACEOF
28551 #define STAT_MACROS_BROKEN 1
28552 _ACEOF
28553
28554 fi
28555
28556 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28557 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28558 if test "${ac_cv_header_stdc+set}" = set; then
28559   echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561   cat >conftest.$ac_ext <<_ACEOF
28562 /* confdefs.h.  */
28563 _ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h.  */
28567 #include <stdlib.h>
28568 #include <stdarg.h>
28569 #include <string.h>
28570 #include <float.h>
28571
28572 int
28573 main ()
28574 {
28575
28576   ;
28577   return 0;
28578 }
28579 _ACEOF
28580 rm -f conftest.$ac_objext
28581 if { (ac_try="$ac_compile"
28582 case "(($ac_try" in
28583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584   *) ac_try_echo=$ac_try;;
28585 esac
28586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587   (eval "$ac_compile") 2>conftest.er1
28588   ac_status=$?
28589   grep -v '^ *+' conftest.er1 >conftest.err
28590   rm -f conftest.er1
28591   cat conftest.err >&5
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); } &&
28594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28595   { (case "(($ac_try" in
28596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597   *) ac_try_echo=$ac_try;;
28598 esac
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600   (eval "$ac_try") 2>&5
28601   ac_status=$?
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); }; } &&
28604          { ac_try='test -s conftest.$ac_objext'
28605   { (case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_try") 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; }; then
28614   ac_cv_header_stdc=yes
28615 else
28616   echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28618
28619         ac_cv_header_stdc=no
28620 fi
28621
28622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28623
28624 if test $ac_cv_header_stdc = yes; then
28625   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28626   cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h.  */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h.  */
28632 #include <string.h>
28633
28634 _ACEOF
28635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28636   $EGREP "memchr" >/dev/null 2>&1; then
28637   :
28638 else
28639   ac_cv_header_stdc=no
28640 fi
28641 rm -f conftest*
28642
28643 fi
28644
28645 if test $ac_cv_header_stdc = yes; then
28646   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28647   cat >conftest.$ac_ext <<_ACEOF
28648 /* confdefs.h.  */
28649 _ACEOF
28650 cat confdefs.h >>conftest.$ac_ext
28651 cat >>conftest.$ac_ext <<_ACEOF
28652 /* end confdefs.h.  */
28653 #include <stdlib.h>
28654
28655 _ACEOF
28656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28657   $EGREP "free" >/dev/null 2>&1; then
28658   :
28659 else
28660   ac_cv_header_stdc=no
28661 fi
28662 rm -f conftest*
28663
28664 fi
28665
28666 if test $ac_cv_header_stdc = yes; then
28667   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28668   if test "$cross_compiling" = yes; then
28669   :
28670 else
28671   cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677 #include <ctype.h>
28678 #include <stdlib.h>
28679 #if ((' ' & 0x0FF) == 0x020)
28680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28682 #else
28683 # define ISLOWER(c) \
28684                    (('a' <= (c) && (c) <= 'i') \
28685                      || ('j' <= (c) && (c) <= 'r') \
28686                      || ('s' <= (c) && (c) <= 'z'))
28687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28688 #endif
28689
28690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28691 int
28692 main ()
28693 {
28694   int i;
28695   for (i = 0; i < 256; i++)
28696     if (XOR (islower (i), ISLOWER (i))
28697         || toupper (i) != TOUPPER (i))
28698       return 2;
28699   return 0;
28700 }
28701 _ACEOF
28702 rm -f conftest$ac_exeext
28703 if { (ac_try="$ac_link"
28704 case "(($ac_try" in
28705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706   *) ac_try_echo=$ac_try;;
28707 esac
28708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709   (eval "$ac_link") 2>&5
28710   ac_status=$?
28711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28713   { (case "(($ac_try" in
28714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715   *) ac_try_echo=$ac_try;;
28716 esac
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718   (eval "$ac_try") 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; }; then
28722   :
28723 else
28724   echo "$as_me: program exited with status $ac_status" >&5
28725 echo "$as_me: failed program was:" >&5
28726 sed 's/^/| /' conftest.$ac_ext >&5
28727
28728 ( exit $ac_status )
28729 ac_cv_header_stdc=no
28730 fi
28731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28732 fi
28733
28734
28735 fi
28736 fi
28737 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28738 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28739 if test $ac_cv_header_stdc = yes; then
28740
28741 cat >>confdefs.h <<\_ACEOF
28742 #define STDC_HEADERS 1
28743 _ACEOF
28744
28745 fi
28746
28747 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28750   echo $ECHO_N "(cached) $ECHO_C" >&6
28751 else
28752   cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h.  */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h.  */
28758 #include <sys/types.h>
28759 #include <sys/wait.h>
28760 #ifndef WEXITSTATUS
28761 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28762 #endif
28763 #ifndef WIFEXITED
28764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28765 #endif
28766
28767 int
28768 main ()
28769 {
28770   int s;
28771   wait (&s);
28772   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28773   ;
28774   return 0;
28775 }
28776 _ACEOF
28777 rm -f conftest.$ac_objext
28778 if { (ac_try="$ac_compile"
28779 case "(($ac_try" in
28780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781   *) ac_try_echo=$ac_try;;
28782 esac
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784   (eval "$ac_compile") 2>conftest.er1
28785   ac_status=$?
28786   grep -v '^ *+' conftest.er1 >conftest.err
28787   rm -f conftest.er1
28788   cat conftest.err >&5
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); } &&
28791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28792   { (case "(($ac_try" in
28793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794   *) ac_try_echo=$ac_try;;
28795 esac
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797   (eval "$ac_try") 2>&5
28798   ac_status=$?
28799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800   (exit $ac_status); }; } &&
28801          { ac_try='test -s conftest.$ac_objext'
28802   { (case "(($ac_try" in
28803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804   *) ac_try_echo=$ac_try;;
28805 esac
28806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807   (eval "$ac_try") 2>&5
28808   ac_status=$?
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); }; }; then
28811   ac_cv_header_sys_wait_h=yes
28812 else
28813   echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28815
28816         ac_cv_header_sys_wait_h=no
28817 fi
28818
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28820 fi
28821 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28822 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28823 if test $ac_cv_header_sys_wait_h = yes; then
28824
28825 cat >>confdefs.h <<\_ACEOF
28826 #define HAVE_SYS_WAIT_H 1
28827 _ACEOF
28828
28829 fi
28830
28831 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28832 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28833 if test "${ac_cv_header_time+set}" = set; then
28834   echo $ECHO_N "(cached) $ECHO_C" >&6
28835 else
28836   cat >conftest.$ac_ext <<_ACEOF
28837 /* confdefs.h.  */
28838 _ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h.  */
28842 #include <sys/types.h>
28843 #include <sys/time.h>
28844 #include <time.h>
28845
28846 int
28847 main ()
28848 {
28849 if ((struct tm *) 0)
28850 return 0;
28851   ;
28852   return 0;
28853 }
28854 _ACEOF
28855 rm -f conftest.$ac_objext
28856 if { (ac_try="$ac_compile"
28857 case "(($ac_try" in
28858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859   *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862   (eval "$ac_compile") 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } &&
28869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28870   { (case "(($ac_try" in
28871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872   *) ac_try_echo=$ac_try;;
28873 esac
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875   (eval "$ac_try") 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; } &&
28879          { ac_try='test -s conftest.$ac_objext'
28880   { (case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_try") 2>&5
28886   ac_status=$?
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); }; }; then
28889   ac_cv_header_time=yes
28890 else
28891   echo "$as_me: failed program was:" >&5
28892 sed 's/^/| /' conftest.$ac_ext >&5
28893
28894         ac_cv_header_time=no
28895 fi
28896
28897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898 fi
28899 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28900 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28901 if test $ac_cv_header_time = yes; then
28902
28903 cat >>confdefs.h <<\_ACEOF
28904 #define TIME_WITH_SYS_TIME 1
28905 _ACEOF
28906
28907 fi
28908
28909
28910
28911
28912
28913
28914
28915
28916 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28917 do
28918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923   echo $ECHO_N "(cached) $ECHO_C" >&6
28924 fi
28925 ac_res=`eval echo '${'$as_ac_Header'}'`
28926                { echo "$as_me:$LINENO: result: $ac_res" >&5
28927 echo "${ECHO_T}$ac_res" >&6; }
28928 else
28929   # Is the header compilable?
28930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28932 cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h.  */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h.  */
28938 $ac_includes_default
28939 #include <$ac_header>
28940 _ACEOF
28941 rm -f conftest.$ac_objext
28942 if { (ac_try="$ac_compile"
28943 case "(($ac_try" in
28944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945   *) ac_try_echo=$ac_try;;
28946 esac
28947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948   (eval "$ac_compile") 2>conftest.er1
28949   ac_status=$?
28950   grep -v '^ *+' conftest.er1 >conftest.err
28951   rm -f conftest.er1
28952   cat conftest.err >&5
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); } &&
28955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28956   { (case "(($ac_try" in
28957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958   *) ac_try_echo=$ac_try;;
28959 esac
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961   (eval "$ac_try") 2>&5
28962   ac_status=$?
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); }; } &&
28965          { ac_try='test -s conftest.$ac_objext'
28966   { (case "(($ac_try" in
28967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968   *) ac_try_echo=$ac_try;;
28969 esac
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971   (eval "$ac_try") 2>&5
28972   ac_status=$?
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); }; }; then
28975   ac_header_compiler=yes
28976 else
28977   echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28979
28980         ac_header_compiler=no
28981 fi
28982
28983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28985 echo "${ECHO_T}$ac_header_compiler" >&6; }
28986
28987 # Is the header present?
28988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28990 cat >conftest.$ac_ext <<_ACEOF
28991 /* confdefs.h.  */
28992 _ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h.  */
28996 #include <$ac_header>
28997 _ACEOF
28998 if { (ac_try="$ac_cpp conftest.$ac_ext"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29005   ac_status=$?
29006   grep -v '^ *+' conftest.er1 >conftest.err
29007   rm -f conftest.er1
29008   cat conftest.err >&5
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); } >/dev/null; then
29011   if test -s conftest.err; then
29012     ac_cpp_err=$ac_c_preproc_warn_flag
29013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014   else
29015     ac_cpp_err=
29016   fi
29017 else
29018   ac_cpp_err=yes
29019 fi
29020 if test -z "$ac_cpp_err"; then
29021   ac_header_preproc=yes
29022 else
29023   echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29025
29026   ac_header_preproc=no
29027 fi
29028
29029 rm -f conftest.err conftest.$ac_ext
29030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29031 echo "${ECHO_T}$ac_header_preproc" >&6; }
29032
29033 # So?  What about this header?
29034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29035   yes:no: )
29036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29040     ac_header_preproc=yes
29041     ;;
29042   no:yes:* )
29043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29055     ( cat <<\_ASBOX
29056 ## ----------------------------------- ##
29057 ## Report this to llvmbugs@cs.uiuc.edu ##
29058 ## ----------------------------------- ##
29059 _ASBOX
29060      ) | sed "s/^/$as_me: WARNING:     /" >&2
29061     ;;
29062 esac
29063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068   eval "$as_ac_Header=\$ac_header_preproc"
29069 fi
29070 ac_res=`eval echo '${'$as_ac_Header'}'`
29071                { echo "$as_me:$LINENO: result: $ac_res" >&5
29072 echo "${ECHO_T}$ac_res" >&6; }
29073
29074 fi
29075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076   cat >>confdefs.h <<_ACEOF
29077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29078 _ACEOF
29079
29080 fi
29081
29082 done
29083
29084
29085
29086
29087
29088
29089
29090 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29091 do
29092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29094   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29097   echo $ECHO_N "(cached) $ECHO_C" >&6
29098 fi
29099 ac_res=`eval echo '${'$as_ac_Header'}'`
29100                { echo "$as_me:$LINENO: result: $ac_res" >&5
29101 echo "${ECHO_T}$ac_res" >&6; }
29102 else
29103   # Is the header compilable?
29104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29106 cat >conftest.$ac_ext <<_ACEOF
29107 /* confdefs.h.  */
29108 _ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h.  */
29112 $ac_includes_default
29113 #include <$ac_header>
29114 _ACEOF
29115 rm -f conftest.$ac_objext
29116 if { (ac_try="$ac_compile"
29117 case "(($ac_try" in
29118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119   *) ac_try_echo=$ac_try;;
29120 esac
29121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122   (eval "$ac_compile") 2>conftest.er1
29123   ac_status=$?
29124   grep -v '^ *+' conftest.er1 >conftest.err
29125   rm -f conftest.er1
29126   cat conftest.err >&5
29127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128   (exit $ac_status); } &&
29129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29130   { (case "(($ac_try" in
29131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132   *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135   (eval "$ac_try") 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; } &&
29139          { ac_try='test -s conftest.$ac_objext'
29140   { (case "(($ac_try" in
29141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142   *) ac_try_echo=$ac_try;;
29143 esac
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145   (eval "$ac_try") 2>&5
29146   ac_status=$?
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); }; }; then
29149   ac_header_compiler=yes
29150 else
29151   echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29153
29154         ac_header_compiler=no
29155 fi
29156
29157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29159 echo "${ECHO_T}$ac_header_compiler" >&6; }
29160
29161 # Is the header present?
29162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29164 cat >conftest.$ac_ext <<_ACEOF
29165 /* confdefs.h.  */
29166 _ACEOF
29167 cat confdefs.h >>conftest.$ac_ext
29168 cat >>conftest.$ac_ext <<_ACEOF
29169 /* end confdefs.h.  */
29170 #include <$ac_header>
29171 _ACEOF
29172 if { (ac_try="$ac_cpp conftest.$ac_ext"
29173 case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } >/dev/null; then
29185   if test -s conftest.err; then
29186     ac_cpp_err=$ac_c_preproc_warn_flag
29187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29188   else
29189     ac_cpp_err=
29190   fi
29191 else
29192   ac_cpp_err=yes
29193 fi
29194 if test -z "$ac_cpp_err"; then
29195   ac_header_preproc=yes
29196 else
29197   echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29199
29200   ac_header_preproc=no
29201 fi
29202
29203 rm -f conftest.err conftest.$ac_ext
29204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29205 echo "${ECHO_T}$ac_header_preproc" >&6; }
29206
29207 # So?  What about this header?
29208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29209   yes:no: )
29210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29214     ac_header_preproc=yes
29215     ;;
29216   no:yes:* )
29217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29229     ( cat <<\_ASBOX
29230 ## ----------------------------------- ##
29231 ## Report this to llvmbugs@cs.uiuc.edu ##
29232 ## ----------------------------------- ##
29233 _ASBOX
29234      ) | sed "s/^/$as_me: WARNING:     /" >&2
29235     ;;
29236 esac
29237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29240   echo $ECHO_N "(cached) $ECHO_C" >&6
29241 else
29242   eval "$as_ac_Header=\$ac_header_preproc"
29243 fi
29244 ac_res=`eval echo '${'$as_ac_Header'}'`
29245                { echo "$as_me:$LINENO: result: $ac_res" >&5
29246 echo "${ECHO_T}$ac_res" >&6; }
29247
29248 fi
29249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29250   cat >>confdefs.h <<_ACEOF
29251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29252 _ACEOF
29253
29254 fi
29255
29256 done
29257
29258
29259
29260 for ac_header in utime.h windows.h
29261 do
29262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267   echo $ECHO_N "(cached) $ECHO_C" >&6
29268 fi
29269 ac_res=`eval echo '${'$as_ac_Header'}'`
29270                { echo "$as_me:$LINENO: result: $ac_res" >&5
29271 echo "${ECHO_T}$ac_res" >&6; }
29272 else
29273   # Is the header compilable?
29274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29276 cat >conftest.$ac_ext <<_ACEOF
29277 /* confdefs.h.  */
29278 _ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h.  */
29282 $ac_includes_default
29283 #include <$ac_header>
29284 _ACEOF
29285 rm -f conftest.$ac_objext
29286 if { (ac_try="$ac_compile"
29287 case "(($ac_try" in
29288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289   *) ac_try_echo=$ac_try;;
29290 esac
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292   (eval "$ac_compile") 2>conftest.er1
29293   ac_status=$?
29294   grep -v '^ *+' conftest.er1 >conftest.err
29295   rm -f conftest.er1
29296   cat conftest.err >&5
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); } &&
29299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29300   { (case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_try") 2>&5
29306   ac_status=$?
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); }; } &&
29309          { ac_try='test -s conftest.$ac_objext'
29310   { (case "(($ac_try" in
29311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312   *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315   (eval "$ac_try") 2>&5
29316   ac_status=$?
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); }; }; then
29319   ac_header_compiler=yes
29320 else
29321   echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29323
29324         ac_header_compiler=no
29325 fi
29326
29327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29329 echo "${ECHO_T}$ac_header_compiler" >&6; }
29330
29331 # Is the header present?
29332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29334 cat >conftest.$ac_ext <<_ACEOF
29335 /* confdefs.h.  */
29336 _ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h.  */
29340 #include <$ac_header>
29341 _ACEOF
29342 if { (ac_try="$ac_cpp conftest.$ac_ext"
29343 case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29349   ac_status=$?
29350   grep -v '^ *+' conftest.er1 >conftest.err
29351   rm -f conftest.er1
29352   cat conftest.err >&5
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } >/dev/null; then
29355   if test -s conftest.err; then
29356     ac_cpp_err=$ac_c_preproc_warn_flag
29357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29358   else
29359     ac_cpp_err=
29360   fi
29361 else
29362   ac_cpp_err=yes
29363 fi
29364 if test -z "$ac_cpp_err"; then
29365   ac_header_preproc=yes
29366 else
29367   echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29369
29370   ac_header_preproc=no
29371 fi
29372
29373 rm -f conftest.err conftest.$ac_ext
29374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375 echo "${ECHO_T}$ac_header_preproc" >&6; }
29376
29377 # So?  What about this header?
29378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29379   yes:no: )
29380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29384     ac_header_preproc=yes
29385     ;;
29386   no:yes:* )
29387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29399     ( cat <<\_ASBOX
29400 ## ----------------------------------- ##
29401 ## Report this to llvmbugs@cs.uiuc.edu ##
29402 ## ----------------------------------- ##
29403 _ASBOX
29404      ) | sed "s/^/$as_me: WARNING:     /" >&2
29405     ;;
29406 esac
29407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29410   echo $ECHO_N "(cached) $ECHO_C" >&6
29411 else
29412   eval "$as_ac_Header=\$ac_header_preproc"
29413 fi
29414 ac_res=`eval echo '${'$as_ac_Header'}'`
29415                { echo "$as_me:$LINENO: result: $ac_res" >&5
29416 echo "${ECHO_T}$ac_res" >&6; }
29417
29418 fi
29419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29420   cat >>confdefs.h <<_ACEOF
29421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29422 _ACEOF
29423
29424 fi
29425
29426 done
29427
29428
29429
29430
29431
29432 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29433 do
29434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29436   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29439   echo $ECHO_N "(cached) $ECHO_C" >&6
29440 fi
29441 ac_res=`eval echo '${'$as_ac_Header'}'`
29442                { echo "$as_me:$LINENO: result: $ac_res" >&5
29443 echo "${ECHO_T}$ac_res" >&6; }
29444 else
29445   # Is the header compilable?
29446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29448 cat >conftest.$ac_ext <<_ACEOF
29449 /* confdefs.h.  */
29450 _ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h.  */
29454 $ac_includes_default
29455 #include <$ac_header>
29456 _ACEOF
29457 rm -f conftest.$ac_objext
29458 if { (ac_try="$ac_compile"
29459 case "(($ac_try" in
29460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461   *) ac_try_echo=$ac_try;;
29462 esac
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464   (eval "$ac_compile") 2>conftest.er1
29465   ac_status=$?
29466   grep -v '^ *+' conftest.er1 >conftest.err
29467   rm -f conftest.er1
29468   cat conftest.err >&5
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); } &&
29471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29472   { (case "(($ac_try" in
29473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474   *) ac_try_echo=$ac_try;;
29475 esac
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477   (eval "$ac_try") 2>&5
29478   ac_status=$?
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); }; } &&
29481          { ac_try='test -s conftest.$ac_objext'
29482   { (case "(($ac_try" in
29483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484   *) ac_try_echo=$ac_try;;
29485 esac
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487   (eval "$ac_try") 2>&5
29488   ac_status=$?
29489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490   (exit $ac_status); }; }; then
29491   ac_header_compiler=yes
29492 else
29493   echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29495
29496         ac_header_compiler=no
29497 fi
29498
29499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501 echo "${ECHO_T}$ac_header_compiler" >&6; }
29502
29503 # Is the header present?
29504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h.  */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h.  */
29512 #include <$ac_header>
29513 _ACEOF
29514 if { (ac_try="$ac_cpp conftest.$ac_ext"
29515 case "(($ac_try" in
29516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517   *) ac_try_echo=$ac_try;;
29518 esac
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29521   ac_status=$?
29522   grep -v '^ *+' conftest.er1 >conftest.err
29523   rm -f conftest.er1
29524   cat conftest.err >&5
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); } >/dev/null; then
29527   if test -s conftest.err; then
29528     ac_cpp_err=$ac_c_preproc_warn_flag
29529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29530   else
29531     ac_cpp_err=
29532   fi
29533 else
29534   ac_cpp_err=yes
29535 fi
29536 if test -z "$ac_cpp_err"; then
29537   ac_header_preproc=yes
29538 else
29539   echo "$as_me: failed program was:" >&5
29540 sed 's/^/| /' conftest.$ac_ext >&5
29541
29542   ac_header_preproc=no
29543 fi
29544
29545 rm -f conftest.err conftest.$ac_ext
29546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29547 echo "${ECHO_T}$ac_header_preproc" >&6; }
29548
29549 # So?  What about this header?
29550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29551   yes:no: )
29552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29556     ac_header_preproc=yes
29557     ;;
29558   no:yes:* )
29559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29571     ( cat <<\_ASBOX
29572 ## ----------------------------------- ##
29573 ## Report this to llvmbugs@cs.uiuc.edu ##
29574 ## ----------------------------------- ##
29575 _ASBOX
29576      ) | sed "s/^/$as_me: WARNING:     /" >&2
29577     ;;
29578 esac
29579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584   eval "$as_ac_Header=\$ac_header_preproc"
29585 fi
29586 ac_res=`eval echo '${'$as_ac_Header'}'`
29587                { echo "$as_me:$LINENO: result: $ac_res" >&5
29588 echo "${ECHO_T}$ac_res" >&6; }
29589
29590 fi
29591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29592   cat >>confdefs.h <<_ACEOF
29593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29594 _ACEOF
29595
29596 fi
29597
29598 done
29599
29600
29601
29602
29603
29604 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29605 do
29606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29608   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29611   echo $ECHO_N "(cached) $ECHO_C" >&6
29612 fi
29613 ac_res=`eval echo '${'$as_ac_Header'}'`
29614                { echo "$as_me:$LINENO: result: $ac_res" >&5
29615 echo "${ECHO_T}$ac_res" >&6; }
29616 else
29617   # Is the header compilable?
29618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29620 cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h.  */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h.  */
29626 $ac_includes_default
29627 #include <$ac_header>
29628 _ACEOF
29629 rm -f conftest.$ac_objext
29630 if { (ac_try="$ac_compile"
29631 case "(($ac_try" in
29632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633   *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636   (eval "$ac_compile") 2>conftest.er1
29637   ac_status=$?
29638   grep -v '^ *+' conftest.er1 >conftest.err
29639   rm -f conftest.er1
29640   cat conftest.err >&5
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); } &&
29643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29644   { (case "(($ac_try" in
29645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646   *) ac_try_echo=$ac_try;;
29647 esac
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649   (eval "$ac_try") 2>&5
29650   ac_status=$?
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); }; } &&
29653          { ac_try='test -s conftest.$ac_objext'
29654   { (case "(($ac_try" in
29655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656   *) ac_try_echo=$ac_try;;
29657 esac
29658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659   (eval "$ac_try") 2>&5
29660   ac_status=$?
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); }; }; then
29663   ac_header_compiler=yes
29664 else
29665   echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29667
29668         ac_header_compiler=no
29669 fi
29670
29671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29673 echo "${ECHO_T}$ac_header_compiler" >&6; }
29674
29675 # Is the header present?
29676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29678 cat >conftest.$ac_ext <<_ACEOF
29679 /* confdefs.h.  */
29680 _ACEOF
29681 cat confdefs.h >>conftest.$ac_ext
29682 cat >>conftest.$ac_ext <<_ACEOF
29683 /* end confdefs.h.  */
29684 #include <$ac_header>
29685 _ACEOF
29686 if { (ac_try="$ac_cpp conftest.$ac_ext"
29687 case "(($ac_try" in
29688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689   *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29693   ac_status=$?
29694   grep -v '^ *+' conftest.er1 >conftest.err
29695   rm -f conftest.er1
29696   cat conftest.err >&5
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); } >/dev/null; then
29699   if test -s conftest.err; then
29700     ac_cpp_err=$ac_c_preproc_warn_flag
29701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29702   else
29703     ac_cpp_err=
29704   fi
29705 else
29706   ac_cpp_err=yes
29707 fi
29708 if test -z "$ac_cpp_err"; then
29709   ac_header_preproc=yes
29710 else
29711   echo "$as_me: failed program was:" >&5
29712 sed 's/^/| /' conftest.$ac_ext >&5
29713
29714   ac_header_preproc=no
29715 fi
29716
29717 rm -f conftest.err conftest.$ac_ext
29718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29719 echo "${ECHO_T}$ac_header_preproc" >&6; }
29720
29721 # So?  What about this header?
29722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29723   yes:no: )
29724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29728     ac_header_preproc=yes
29729     ;;
29730   no:yes:* )
29731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29743     ( cat <<\_ASBOX
29744 ## ----------------------------------- ##
29745 ## Report this to llvmbugs@cs.uiuc.edu ##
29746 ## ----------------------------------- ##
29747 _ASBOX
29748      ) | sed "s/^/$as_me: WARNING:     /" >&2
29749     ;;
29750 esac
29751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756   eval "$as_ac_Header=\$ac_header_preproc"
29757 fi
29758 ac_res=`eval echo '${'$as_ac_Header'}'`
29759                { echo "$as_me:$LINENO: result: $ac_res" >&5
29760 echo "${ECHO_T}$ac_res" >&6; }
29761
29762 fi
29763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29764   cat >>confdefs.h <<_ACEOF
29765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29766 _ACEOF
29767
29768 fi
29769
29770 done
29771
29772 if test "$ENABLE_THREADS" -eq 1 ; then
29773
29774 for ac_header in pthread.h
29775 do
29776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29778   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29781   echo $ECHO_N "(cached) $ECHO_C" >&6
29782 fi
29783 ac_res=`eval echo '${'$as_ac_Header'}'`
29784                { echo "$as_me:$LINENO: result: $ac_res" >&5
29785 echo "${ECHO_T}$ac_res" >&6; }
29786 else
29787   # Is the header compilable?
29788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29790 cat >conftest.$ac_ext <<_ACEOF
29791 /* confdefs.h.  */
29792 _ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h.  */
29796 $ac_includes_default
29797 #include <$ac_header>
29798 _ACEOF
29799 rm -f conftest.$ac_objext
29800 if { (ac_try="$ac_compile"
29801 case "(($ac_try" in
29802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803   *) ac_try_echo=$ac_try;;
29804 esac
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806   (eval "$ac_compile") 2>conftest.er1
29807   ac_status=$?
29808   grep -v '^ *+' conftest.er1 >conftest.err
29809   rm -f conftest.er1
29810   cat conftest.err >&5
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); } &&
29813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814   { (case "(($ac_try" in
29815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816   *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819   (eval "$ac_try") 2>&5
29820   ac_status=$?
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); }; } &&
29823          { ac_try='test -s conftest.$ac_objext'
29824   { (case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_try") 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; }; then
29833   ac_header_compiler=yes
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838         ac_header_compiler=no
29839 fi
29840
29841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29843 echo "${ECHO_T}$ac_header_compiler" >&6; }
29844
29845 # Is the header present?
29846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29848 cat >conftest.$ac_ext <<_ACEOF
29849 /* confdefs.h.  */
29850 _ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h.  */
29854 #include <$ac_header>
29855 _ACEOF
29856 if { (ac_try="$ac_cpp conftest.$ac_ext"
29857 case "(($ac_try" in
29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859   *) ac_try_echo=$ac_try;;
29860 esac
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } >/dev/null; then
29869   if test -s conftest.err; then
29870     ac_cpp_err=$ac_c_preproc_warn_flag
29871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29872   else
29873     ac_cpp_err=
29874   fi
29875 else
29876   ac_cpp_err=yes
29877 fi
29878 if test -z "$ac_cpp_err"; then
29879   ac_header_preproc=yes
29880 else
29881   echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.$ac_ext >&5
29883
29884   ac_header_preproc=no
29885 fi
29886
29887 rm -f conftest.err conftest.$ac_ext
29888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29889 echo "${ECHO_T}$ac_header_preproc" >&6; }
29890
29891 # So?  What about this header?
29892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29893   yes:no: )
29894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29898     ac_header_preproc=yes
29899     ;;
29900   no:yes:* )
29901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29913     ( cat <<\_ASBOX
29914 ## ----------------------------------- ##
29915 ## Report this to llvmbugs@cs.uiuc.edu ##
29916 ## ----------------------------------- ##
29917 _ASBOX
29918      ) | sed "s/^/$as_me: WARNING:     /" >&2
29919     ;;
29920 esac
29921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29924   echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926   eval "$as_ac_Header=\$ac_header_preproc"
29927 fi
29928 ac_res=`eval echo '${'$as_ac_Header'}'`
29929                { echo "$as_me:$LINENO: result: $ac_res" >&5
29930 echo "${ECHO_T}$ac_res" >&6; }
29931
29932 fi
29933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29934   cat >>confdefs.h <<_ACEOF
29935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29936 _ACEOF
29937  HAVE_PTHREAD=1
29938
29939 else
29940   HAVE_PTHREAD=0
29941
29942 fi
29943
29944 done
29945
29946 else
29947   HAVE_PTHREAD=0
29948
29949 fi
29950
29951 if test "$llvm_cv_enable_libffi" = "yes" ; then
29952
29953
29954 for ac_header in ffi.h ffi/ffi.h
29955 do
29956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 fi
29963 ac_res=`eval echo '${'$as_ac_Header'}'`
29964                { echo "$as_me:$LINENO: result: $ac_res" >&5
29965 echo "${ECHO_T}$ac_res" >&6; }
29966 else
29967   # Is the header compilable?
29968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29970 cat >conftest.$ac_ext <<_ACEOF
29971 /* confdefs.h.  */
29972 _ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h.  */
29976 $ac_includes_default
29977 #include <$ac_header>
29978 _ACEOF
29979 rm -f conftest.$ac_objext
29980 if { (ac_try="$ac_compile"
29981 case "(($ac_try" in
29982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983   *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986   (eval "$ac_compile") 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994   { (case "(($ac_try" in
29995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996   *) ac_try_echo=$ac_try;;
29997 esac
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999   (eval "$ac_try") 2>&5
30000   ac_status=$?
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); }; } &&
30003          { ac_try='test -s conftest.$ac_objext'
30004   { (case "(($ac_try" in
30005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006   *) ac_try_echo=$ac_try;;
30007 esac
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009   (eval "$ac_try") 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; }; then
30013   ac_header_compiler=yes
30014 else
30015   echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018         ac_header_compiler=no
30019 fi
30020
30021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023 echo "${ECHO_T}$ac_header_compiler" >&6; }
30024
30025 # Is the header present?
30026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034 #include <$ac_header>
30035 _ACEOF
30036 if { (ac_try="$ac_cpp conftest.$ac_ext"
30037 case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } >/dev/null; then
30049   if test -s conftest.err; then
30050     ac_cpp_err=$ac_c_preproc_warn_flag
30051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30052   else
30053     ac_cpp_err=
30054   fi
30055 else
30056   ac_cpp_err=yes
30057 fi
30058 if test -z "$ac_cpp_err"; then
30059   ac_header_preproc=yes
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064   ac_header_preproc=no
30065 fi
30066
30067 rm -f conftest.err conftest.$ac_ext
30068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30069 echo "${ECHO_T}$ac_header_preproc" >&6; }
30070
30071 # So?  What about this header?
30072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30073   yes:no: )
30074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30078     ac_header_preproc=yes
30079     ;;
30080   no:yes:* )
30081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30093     ( cat <<\_ASBOX
30094 ## ----------------------------------- ##
30095 ## Report this to llvmbugs@cs.uiuc.edu ##
30096 ## ----------------------------------- ##
30097 _ASBOX
30098      ) | sed "s/^/$as_me: WARNING:     /" >&2
30099     ;;
30100 esac
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104   echo $ECHO_N "(cached) $ECHO_C" >&6
30105 else
30106   eval "$as_ac_Header=\$ac_header_preproc"
30107 fi
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109                { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30111
30112 fi
30113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114   cat >>confdefs.h <<_ACEOF
30115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30116 _ACEOF
30117
30118 fi
30119
30120 done
30121
30122 fi
30123
30124
30125
30126   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30127 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30128 if test "${ac_cv_huge_val_sanity+set}" = set; then
30129   echo $ECHO_N "(cached) $ECHO_C" >&6
30130 else
30131
30132     ac_ext=cpp
30133 ac_cpp='$CXXCPP $CPPFLAGS'
30134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30137
30138     CXXFLAGS=-pedantic
30139     if test "$cross_compiling" = yes; then
30140   ac_cv_huge_val_sanity=yes
30141 else
30142   cat >conftest.$ac_ext <<_ACEOF
30143 /* confdefs.h.  */
30144 _ACEOF
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h.  */
30148 #include <math.h>
30149 int
30150 main ()
30151 {
30152 double x = HUGE_VAL; return x != x;
30153   ;
30154   return 0;
30155 }
30156 _ACEOF
30157 rm -f conftest$ac_exeext
30158 if { (ac_try="$ac_link"
30159 case "(($ac_try" in
30160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161   *) ac_try_echo=$ac_try;;
30162 esac
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164   (eval "$ac_link") 2>&5
30165   ac_status=$?
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30168   { (case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_try") 2>&5
30174   ac_status=$?
30175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176   (exit $ac_status); }; }; then
30177   ac_cv_huge_val_sanity=yes
30178 else
30179   echo "$as_me: program exited with status $ac_status" >&5
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30182
30183 ( exit $ac_status )
30184 ac_cv_huge_val_sanity=no
30185 fi
30186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30187 fi
30188
30189
30190     ac_ext=c
30191 ac_cpp='$CPP $CPPFLAGS'
30192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30195
30196
30197 fi
30198 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30199 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30200   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30201
30202
30203 { echo "$as_me:$LINENO: checking for pid_t" >&5
30204 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30205 if test "${ac_cv_type_pid_t+set}" = set; then
30206   echo $ECHO_N "(cached) $ECHO_C" >&6
30207 else
30208   cat >conftest.$ac_ext <<_ACEOF
30209 /* confdefs.h.  */
30210 _ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h.  */
30214 $ac_includes_default
30215 typedef pid_t ac__type_new_;
30216 int
30217 main ()
30218 {
30219 if ((ac__type_new_ *) 0)
30220   return 0;
30221 if (sizeof (ac__type_new_))
30222   return 0;
30223   ;
30224   return 0;
30225 }
30226 _ACEOF
30227 rm -f conftest.$ac_objext
30228 if { (ac_try="$ac_compile"
30229 case "(($ac_try" in
30230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231   *) ac_try_echo=$ac_try;;
30232 esac
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234   (eval "$ac_compile") 2>conftest.er1
30235   ac_status=$?
30236   grep -v '^ *+' conftest.er1 >conftest.err
30237   rm -f conftest.er1
30238   cat conftest.err >&5
30239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240   (exit $ac_status); } &&
30241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30242   { (case "(($ac_try" in
30243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244   *) ac_try_echo=$ac_try;;
30245 esac
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247   (eval "$ac_try") 2>&5
30248   ac_status=$?
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); }; } &&
30251          { ac_try='test -s conftest.$ac_objext'
30252   { (case "(($ac_try" in
30253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254   *) ac_try_echo=$ac_try;;
30255 esac
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257   (eval "$ac_try") 2>&5
30258   ac_status=$?
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); }; }; then
30261   ac_cv_type_pid_t=yes
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         ac_cv_type_pid_t=no
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30270 fi
30271 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30272 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30273 if test $ac_cv_type_pid_t = yes; then
30274   :
30275 else
30276
30277 cat >>confdefs.h <<_ACEOF
30278 #define pid_t int
30279 _ACEOF
30280
30281 fi
30282
30283 { echo "$as_me:$LINENO: checking for size_t" >&5
30284 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30285 if test "${ac_cv_type_size_t+set}" = set; then
30286   echo $ECHO_N "(cached) $ECHO_C" >&6
30287 else
30288   cat >conftest.$ac_ext <<_ACEOF
30289 /* confdefs.h.  */
30290 _ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h.  */
30294 $ac_includes_default
30295 typedef size_t ac__type_new_;
30296 int
30297 main ()
30298 {
30299 if ((ac__type_new_ *) 0)
30300   return 0;
30301 if (sizeof (ac__type_new_))
30302   return 0;
30303   ;
30304   return 0;
30305 }
30306 _ACEOF
30307 rm -f conftest.$ac_objext
30308 if { (ac_try="$ac_compile"
30309 case "(($ac_try" in
30310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311   *) ac_try_echo=$ac_try;;
30312 esac
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314   (eval "$ac_compile") 2>conftest.er1
30315   ac_status=$?
30316   grep -v '^ *+' conftest.er1 >conftest.err
30317   rm -f conftest.er1
30318   cat conftest.err >&5
30319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320   (exit $ac_status); } &&
30321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30322   { (case "(($ac_try" in
30323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324   *) ac_try_echo=$ac_try;;
30325 esac
30326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327   (eval "$ac_try") 2>&5
30328   ac_status=$?
30329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330   (exit $ac_status); }; } &&
30331          { ac_try='test -s conftest.$ac_objext'
30332   { (case "(($ac_try" in
30333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334   *) ac_try_echo=$ac_try;;
30335 esac
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337   (eval "$ac_try") 2>&5
30338   ac_status=$?
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); }; }; then
30341   ac_cv_type_size_t=yes
30342 else
30343   echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30345
30346         ac_cv_type_size_t=no
30347 fi
30348
30349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30350 fi
30351 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30352 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30353 if test $ac_cv_type_size_t = yes; then
30354   :
30355 else
30356
30357 cat >>confdefs.h <<_ACEOF
30358 #define size_t unsigned int
30359 _ACEOF
30360
30361 fi
30362
30363 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30364 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30365 if test "${ac_cv_type_signal+set}" = set; then
30366   echo $ECHO_N "(cached) $ECHO_C" >&6
30367 else
30368   cat >conftest.$ac_ext <<_ACEOF
30369 /* confdefs.h.  */
30370 _ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h.  */
30374 #include <sys/types.h>
30375 #include <signal.h>
30376
30377 int
30378 main ()
30379 {
30380 return *(signal (0, 0)) (0) == 1;
30381   ;
30382   return 0;
30383 }
30384 _ACEOF
30385 rm -f conftest.$ac_objext
30386 if { (ac_try="$ac_compile"
30387 case "(($ac_try" in
30388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389   *) ac_try_echo=$ac_try;;
30390 esac
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392   (eval "$ac_compile") 2>conftest.er1
30393   ac_status=$?
30394   grep -v '^ *+' conftest.er1 >conftest.err
30395   rm -f conftest.er1
30396   cat conftest.err >&5
30397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398   (exit $ac_status); } &&
30399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30400   { (case "(($ac_try" in
30401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402   *) ac_try_echo=$ac_try;;
30403 esac
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405   (eval "$ac_try") 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; } &&
30409          { ac_try='test -s conftest.$ac_objext'
30410   { (case "(($ac_try" in
30411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412   *) ac_try_echo=$ac_try;;
30413 esac
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415   (eval "$ac_try") 2>&5
30416   ac_status=$?
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); }; }; then
30419   ac_cv_type_signal=int
30420 else
30421   echo "$as_me: failed program was:" >&5
30422 sed 's/^/| /' conftest.$ac_ext >&5
30423
30424         ac_cv_type_signal=void
30425 fi
30426
30427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30428 fi
30429 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30430 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30431
30432 cat >>confdefs.h <<_ACEOF
30433 #define RETSIGTYPE $ac_cv_type_signal
30434 _ACEOF
30435
30436
30437 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30438 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30439 if test "${ac_cv_struct_tm+set}" = set; then
30440   echo $ECHO_N "(cached) $ECHO_C" >&6
30441 else
30442   cat >conftest.$ac_ext <<_ACEOF
30443 /* confdefs.h.  */
30444 _ACEOF
30445 cat confdefs.h >>conftest.$ac_ext
30446 cat >>conftest.$ac_ext <<_ACEOF
30447 /* end confdefs.h.  */
30448 #include <sys/types.h>
30449 #include <time.h>
30450
30451 int
30452 main ()
30453 {
30454 struct tm *tp; tp->tm_sec;
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest.$ac_objext
30460 if { (ac_try="$ac_compile"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_compile") 2>conftest.er1
30467   ac_status=$?
30468   grep -v '^ *+' conftest.er1 >conftest.err
30469   rm -f conftest.er1
30470   cat conftest.err >&5
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); } &&
30473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30474   { (case "(($ac_try" in
30475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476   *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479   (eval "$ac_try") 2>&5
30480   ac_status=$?
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); }; } &&
30483          { ac_try='test -s conftest.$ac_objext'
30484   { (case "(($ac_try" in
30485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30486   *) ac_try_echo=$ac_try;;
30487 esac
30488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30489   (eval "$ac_try") 2>&5
30490   ac_status=$?
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); }; }; then
30493   ac_cv_struct_tm=time.h
30494 else
30495   echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30497
30498         ac_cv_struct_tm=sys/time.h
30499 fi
30500
30501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30502 fi
30503 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30504 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30505 if test $ac_cv_struct_tm = sys/time.h; then
30506
30507 cat >>confdefs.h <<\_ACEOF
30508 #define TM_IN_SYS_TIME 1
30509 _ACEOF
30510
30511 fi
30512
30513 { echo "$as_me:$LINENO: checking for int64_t" >&5
30514 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30515 if test "${ac_cv_type_int64_t+set}" = set; then
30516   echo $ECHO_N "(cached) $ECHO_C" >&6
30517 else
30518   cat >conftest.$ac_ext <<_ACEOF
30519 /* confdefs.h.  */
30520 _ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h.  */
30524 $ac_includes_default
30525 typedef int64_t ac__type_new_;
30526 int
30527 main ()
30528 {
30529 if ((ac__type_new_ *) 0)
30530   return 0;
30531 if (sizeof (ac__type_new_))
30532   return 0;
30533   ;
30534   return 0;
30535 }
30536 _ACEOF
30537 rm -f conftest.$ac_objext
30538 if { (ac_try="$ac_compile"
30539 case "(($ac_try" in
30540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541   *) ac_try_echo=$ac_try;;
30542 esac
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544   (eval "$ac_compile") 2>conftest.er1
30545   ac_status=$?
30546   grep -v '^ *+' conftest.er1 >conftest.err
30547   rm -f conftest.er1
30548   cat conftest.err >&5
30549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550   (exit $ac_status); } &&
30551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30552   { (case "(($ac_try" in
30553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554   *) ac_try_echo=$ac_try;;
30555 esac
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557   (eval "$ac_try") 2>&5
30558   ac_status=$?
30559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560   (exit $ac_status); }; } &&
30561          { ac_try='test -s conftest.$ac_objext'
30562   { (case "(($ac_try" in
30563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564   *) ac_try_echo=$ac_try;;
30565 esac
30566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567   (eval "$ac_try") 2>&5
30568   ac_status=$?
30569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); }; }; then
30571   ac_cv_type_int64_t=yes
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576         ac_cv_type_int64_t=no
30577 fi
30578
30579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30580 fi
30581 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30582 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30583 if test $ac_cv_type_int64_t = yes; then
30584
30585 cat >>confdefs.h <<_ACEOF
30586 #define HAVE_INT64_T 1
30587 _ACEOF
30588
30589
30590 else
30591   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30592 echo "$as_me: error: Type int64_t required but not found" >&2;}
30593    { (exit 1); exit 1; }; }
30594 fi
30595
30596 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30597 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30598 if test "${ac_cv_type_uint64_t+set}" = set; then
30599   echo $ECHO_N "(cached) $ECHO_C" >&6
30600 else
30601   cat >conftest.$ac_ext <<_ACEOF
30602 /* confdefs.h.  */
30603 _ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h.  */
30607 $ac_includes_default
30608 typedef uint64_t ac__type_new_;
30609 int
30610 main ()
30611 {
30612 if ((ac__type_new_ *) 0)
30613   return 0;
30614 if (sizeof (ac__type_new_))
30615   return 0;
30616   ;
30617   return 0;
30618 }
30619 _ACEOF
30620 rm -f conftest.$ac_objext
30621 if { (ac_try="$ac_compile"
30622 case "(($ac_try" in
30623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624   *) ac_try_echo=$ac_try;;
30625 esac
30626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627   (eval "$ac_compile") 2>conftest.er1
30628   ac_status=$?
30629   grep -v '^ *+' conftest.er1 >conftest.err
30630   rm -f conftest.er1
30631   cat conftest.err >&5
30632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633   (exit $ac_status); } &&
30634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30635   { (case "(($ac_try" in
30636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30637   *) ac_try_echo=$ac_try;;
30638 esac
30639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30640   (eval "$ac_try") 2>&5
30641   ac_status=$?
30642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643   (exit $ac_status); }; } &&
30644          { ac_try='test -s conftest.$ac_objext'
30645   { (case "(($ac_try" in
30646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647   *) ac_try_echo=$ac_try;;
30648 esac
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650   (eval "$ac_try") 2>&5
30651   ac_status=$?
30652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653   (exit $ac_status); }; }; then
30654   ac_cv_type_uint64_t=yes
30655 else
30656   echo "$as_me: failed program was:" >&5
30657 sed 's/^/| /' conftest.$ac_ext >&5
30658
30659         ac_cv_type_uint64_t=no
30660 fi
30661
30662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30663 fi
30664 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30665 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30666 if test $ac_cv_type_uint64_t = yes; then
30667
30668 cat >>confdefs.h <<_ACEOF
30669 #define HAVE_UINT64_T 1
30670 _ACEOF
30671
30672
30673 else
30674   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30675 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30676 if test "${ac_cv_type_u_int64_t+set}" = set; then
30677   echo $ECHO_N "(cached) $ECHO_C" >&6
30678 else
30679   cat >conftest.$ac_ext <<_ACEOF
30680 /* confdefs.h.  */
30681 _ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h.  */
30685 $ac_includes_default
30686 typedef u_int64_t ac__type_new_;
30687 int
30688 main ()
30689 {
30690 if ((ac__type_new_ *) 0)
30691   return 0;
30692 if (sizeof (ac__type_new_))
30693   return 0;
30694   ;
30695   return 0;
30696 }
30697 _ACEOF
30698 rm -f conftest.$ac_objext
30699 if { (ac_try="$ac_compile"
30700 case "(($ac_try" in
30701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702   *) ac_try_echo=$ac_try;;
30703 esac
30704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705   (eval "$ac_compile") 2>conftest.er1
30706   ac_status=$?
30707   grep -v '^ *+' conftest.er1 >conftest.err
30708   rm -f conftest.er1
30709   cat conftest.err >&5
30710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711   (exit $ac_status); } &&
30712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30713   { (case "(($ac_try" in
30714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715   *) ac_try_echo=$ac_try;;
30716 esac
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718   (eval "$ac_try") 2>&5
30719   ac_status=$?
30720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721   (exit $ac_status); }; } &&
30722          { ac_try='test -s conftest.$ac_objext'
30723   { (case "(($ac_try" in
30724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725   *) ac_try_echo=$ac_try;;
30726 esac
30727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728   (eval "$ac_try") 2>&5
30729   ac_status=$?
30730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731   (exit $ac_status); }; }; then
30732   ac_cv_type_u_int64_t=yes
30733 else
30734   echo "$as_me: failed program was:" >&5
30735 sed 's/^/| /' conftest.$ac_ext >&5
30736
30737         ac_cv_type_u_int64_t=no
30738 fi
30739
30740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30741 fi
30742 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30743 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30744 if test $ac_cv_type_u_int64_t = yes; then
30745
30746 cat >>confdefs.h <<_ACEOF
30747 #define HAVE_U_INT64_T 1
30748 _ACEOF
30749
30750
30751 else
30752   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30753 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30754    { (exit 1); exit 1; }; }
30755 fi
30756
30757 fi
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30769 do
30770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30774   echo $ECHO_N "(cached) $ECHO_C" >&6
30775 else
30776   cat >conftest.$ac_ext <<_ACEOF
30777 /* confdefs.h.  */
30778 _ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h.  */
30782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30784 #define $ac_func innocuous_$ac_func
30785
30786 /* System header to define __stub macros and hopefully few prototypes,
30787     which can conflict with char $ac_func (); below.
30788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30789     <limits.h> exists even on freestanding compilers.  */
30790
30791 #ifdef __STDC__
30792 # include <limits.h>
30793 #else
30794 # include <assert.h>
30795 #endif
30796
30797 #undef $ac_func
30798
30799 /* Override any GCC internal prototype to avoid an error.
30800    Use char because int might match the return type of a GCC
30801    builtin and then its argument prototype would still apply.  */
30802 #ifdef __cplusplus
30803 extern "C"
30804 #endif
30805 char $ac_func ();
30806 /* The GNU C library defines this for functions which it implements
30807     to always fail with ENOSYS.  Some functions are actually named
30808     something starting with __ and the normal name is an alias.  */
30809 #if defined __stub_$ac_func || defined __stub___$ac_func
30810 choke me
30811 #endif
30812
30813 int
30814 main ()
30815 {
30816 return $ac_func ();
30817   ;
30818   return 0;
30819 }
30820 _ACEOF
30821 rm -f conftest.$ac_objext conftest$ac_exeext
30822 if { (ac_try="$ac_link"
30823 case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828   (eval "$ac_link") 2>conftest.er1
30829   ac_status=$?
30830   grep -v '^ *+' conftest.er1 >conftest.err
30831   rm -f conftest.er1
30832   cat conftest.err >&5
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); } &&
30835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30836   { (case "(($ac_try" in
30837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838   *) ac_try_echo=$ac_try;;
30839 esac
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841   (eval "$ac_try") 2>&5
30842   ac_status=$?
30843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); }; } &&
30845          { ac_try='test -s conftest$ac_exeext'
30846   { (case "(($ac_try" in
30847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30848   *) ac_try_echo=$ac_try;;
30849 esac
30850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851   (eval "$ac_try") 2>&5
30852   ac_status=$?
30853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854   (exit $ac_status); }; }; then
30855   eval "$as_ac_var=yes"
30856 else
30857   echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30859
30860         eval "$as_ac_var=no"
30861 fi
30862
30863 rm -f core conftest.err conftest.$ac_objext \
30864       conftest$ac_exeext conftest.$ac_ext
30865 fi
30866 ac_res=`eval echo '${'$as_ac_var'}'`
30867                { echo "$as_me:$LINENO: result: $ac_res" >&5
30868 echo "${ECHO_T}$ac_res" >&6; }
30869 if test `eval echo '${'$as_ac_var'}'` = yes; then
30870   cat >>confdefs.h <<_ACEOF
30871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30872 _ACEOF
30873
30874 fi
30875 done
30876
30877
30878
30879
30880
30881 for ac_func in powf fmodf strtof round
30882 do
30883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30887   echo $ECHO_N "(cached) $ECHO_C" >&6
30888 else
30889   cat >conftest.$ac_ext <<_ACEOF
30890 /* confdefs.h.  */
30891 _ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h.  */
30895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30897 #define $ac_func innocuous_$ac_func
30898
30899 /* System header to define __stub macros and hopefully few prototypes,
30900     which can conflict with char $ac_func (); below.
30901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30902     <limits.h> exists even on freestanding compilers.  */
30903
30904 #ifdef __STDC__
30905 # include <limits.h>
30906 #else
30907 # include <assert.h>
30908 #endif
30909
30910 #undef $ac_func
30911
30912 /* Override any GCC internal prototype to avoid an error.
30913    Use char because int might match the return type of a GCC
30914    builtin and then its argument prototype would still apply.  */
30915 #ifdef __cplusplus
30916 extern "C"
30917 #endif
30918 char $ac_func ();
30919 /* The GNU C library defines this for functions which it implements
30920     to always fail with ENOSYS.  Some functions are actually named
30921     something starting with __ and the normal name is an alias.  */
30922 #if defined __stub_$ac_func || defined __stub___$ac_func
30923 choke me
30924 #endif
30925
30926 int
30927 main ()
30928 {
30929 return $ac_func ();
30930   ;
30931   return 0;
30932 }
30933 _ACEOF
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
30936 case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_link") 2>conftest.er1
30942   ac_status=$?
30943   grep -v '^ *+' conftest.er1 >conftest.err
30944   rm -f conftest.er1
30945   cat conftest.err >&5
30946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947   (exit $ac_status); } &&
30948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30949   { (case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_try") 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; } &&
30958          { ac_try='test -s conftest$ac_exeext'
30959   { (case "(($ac_try" in
30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961   *) ac_try_echo=$ac_try;;
30962 esac
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964   (eval "$ac_try") 2>&5
30965   ac_status=$?
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); }; }; then
30968   eval "$as_ac_var=yes"
30969 else
30970   echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30972
30973         eval "$as_ac_var=no"
30974 fi
30975
30976 rm -f core conftest.err conftest.$ac_objext \
30977       conftest$ac_exeext conftest.$ac_ext
30978 fi
30979 ac_res=`eval echo '${'$as_ac_var'}'`
30980                { echo "$as_me:$LINENO: result: $ac_res" >&5
30981 echo "${ECHO_T}$ac_res" >&6; }
30982 if test `eval echo '${'$as_ac_var'}'` = yes; then
30983   cat >>confdefs.h <<_ACEOF
30984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30985 _ACEOF
30986
30987 fi
30988 done
30989
30990
30991
30992
30993
30994
30995 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30996 do
30997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31001   echo $ECHO_N "(cached) $ECHO_C" >&6
31002 else
31003   cat >conftest.$ac_ext <<_ACEOF
31004 /* confdefs.h.  */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h.  */
31009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31011 #define $ac_func innocuous_$ac_func
31012
31013 /* System header to define __stub macros and hopefully few prototypes,
31014     which can conflict with char $ac_func (); below.
31015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31016     <limits.h> exists even on freestanding compilers.  */
31017
31018 #ifdef __STDC__
31019 # include <limits.h>
31020 #else
31021 # include <assert.h>
31022 #endif
31023
31024 #undef $ac_func
31025
31026 /* Override any GCC internal prototype to avoid an error.
31027    Use char because int might match the return type of a GCC
31028    builtin and then its argument prototype would still apply.  */
31029 #ifdef __cplusplus
31030 extern "C"
31031 #endif
31032 char $ac_func ();
31033 /* The GNU C library defines this for functions which it implements
31034     to always fail with ENOSYS.  Some functions are actually named
31035     something starting with __ and the normal name is an alias.  */
31036 #if defined __stub_$ac_func || defined __stub___$ac_func
31037 choke me
31038 #endif
31039
31040 int
31041 main ()
31042 {
31043 return $ac_func ();
31044   ;
31045   return 0;
31046 }
31047 _ACEOF
31048 rm -f conftest.$ac_objext conftest$ac_exeext
31049 if { (ac_try="$ac_link"
31050 case "(($ac_try" in
31051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052   *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055   (eval "$ac_link") 2>conftest.er1
31056   ac_status=$?
31057   grep -v '^ *+' conftest.er1 >conftest.err
31058   rm -f conftest.er1
31059   cat conftest.err >&5
31060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061   (exit $ac_status); } &&
31062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31063   { (case "(($ac_try" in
31064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065   *) ac_try_echo=$ac_try;;
31066 esac
31067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068   (eval "$ac_try") 2>&5
31069   ac_status=$?
31070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071   (exit $ac_status); }; } &&
31072          { ac_try='test -s conftest$ac_exeext'
31073   { (case "(($ac_try" in
31074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075   *) ac_try_echo=$ac_try;;
31076 esac
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078   (eval "$ac_try") 2>&5
31079   ac_status=$?
31080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081   (exit $ac_status); }; }; then
31082   eval "$as_ac_var=yes"
31083 else
31084   echo "$as_me: failed program was:" >&5
31085 sed 's/^/| /' conftest.$ac_ext >&5
31086
31087         eval "$as_ac_var=no"
31088 fi
31089
31090 rm -f core conftest.err conftest.$ac_objext \
31091       conftest$ac_exeext conftest.$ac_ext
31092 fi
31093 ac_res=`eval echo '${'$as_ac_var'}'`
31094                { echo "$as_me:$LINENO: result: $ac_res" >&5
31095 echo "${ECHO_T}$ac_res" >&6; }
31096 if test `eval echo '${'$as_ac_var'}'` = yes; then
31097   cat >>confdefs.h <<_ACEOF
31098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31099 _ACEOF
31100
31101 fi
31102 done
31103
31104
31105
31106
31107 for ac_func in isatty mkdtemp mkstemp
31108 do
31109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31113   echo $ECHO_N "(cached) $ECHO_C" >&6
31114 else
31115   cat >conftest.$ac_ext <<_ACEOF
31116 /* confdefs.h.  */
31117 _ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h.  */
31121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31123 #define $ac_func innocuous_$ac_func
31124
31125 /* System header to define __stub macros and hopefully few prototypes,
31126     which can conflict with char $ac_func (); below.
31127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31128     <limits.h> exists even on freestanding compilers.  */
31129
31130 #ifdef __STDC__
31131 # include <limits.h>
31132 #else
31133 # include <assert.h>
31134 #endif
31135
31136 #undef $ac_func
31137
31138 /* Override any GCC internal prototype to avoid an error.
31139    Use char because int might match the return type of a GCC
31140    builtin and then its argument prototype would still apply.  */
31141 #ifdef __cplusplus
31142 extern "C"
31143 #endif
31144 char $ac_func ();
31145 /* The GNU C library defines this for functions which it implements
31146     to always fail with ENOSYS.  Some functions are actually named
31147     something starting with __ and the normal name is an alias.  */
31148 #if defined __stub_$ac_func || defined __stub___$ac_func
31149 choke me
31150 #endif
31151
31152 int
31153 main ()
31154 {
31155 return $ac_func ();
31156   ;
31157   return 0;
31158 }
31159 _ACEOF
31160 rm -f conftest.$ac_objext conftest$ac_exeext
31161 if { (ac_try="$ac_link"
31162 case "(($ac_try" in
31163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164   *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167   (eval "$ac_link") 2>conftest.er1
31168   ac_status=$?
31169   grep -v '^ *+' conftest.er1 >conftest.err
31170   rm -f conftest.er1
31171   cat conftest.err >&5
31172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173   (exit $ac_status); } &&
31174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31175   { (case "(($ac_try" in
31176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177   *) ac_try_echo=$ac_try;;
31178 esac
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180   (eval "$ac_try") 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; } &&
31184          { ac_try='test -s conftest$ac_exeext'
31185   { (case "(($ac_try" in
31186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187   *) ac_try_echo=$ac_try;;
31188 esac
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190   (eval "$ac_try") 2>&5
31191   ac_status=$?
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); }; }; then
31194   eval "$as_ac_var=yes"
31195 else
31196   echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31198
31199         eval "$as_ac_var=no"
31200 fi
31201
31202 rm -f core conftest.err conftest.$ac_objext \
31203       conftest$ac_exeext conftest.$ac_ext
31204 fi
31205 ac_res=`eval echo '${'$as_ac_var'}'`
31206                { echo "$as_me:$LINENO: result: $ac_res" >&5
31207 echo "${ECHO_T}$ac_res" >&6; }
31208 if test `eval echo '${'$as_ac_var'}'` = yes; then
31209   cat >>confdefs.h <<_ACEOF
31210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31211 _ACEOF
31212
31213 fi
31214 done
31215
31216
31217
31218
31219
31220
31221
31222
31223 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31224 do
31225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31229   echo $ECHO_N "(cached) $ECHO_C" >&6
31230 else
31231   cat >conftest.$ac_ext <<_ACEOF
31232 /* confdefs.h.  */
31233 _ACEOF
31234 cat confdefs.h >>conftest.$ac_ext
31235 cat >>conftest.$ac_ext <<_ACEOF
31236 /* end confdefs.h.  */
31237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31239 #define $ac_func innocuous_$ac_func
31240
31241 /* System header to define __stub macros and hopefully few prototypes,
31242     which can conflict with char $ac_func (); below.
31243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31244     <limits.h> exists even on freestanding compilers.  */
31245
31246 #ifdef __STDC__
31247 # include <limits.h>
31248 #else
31249 # include <assert.h>
31250 #endif
31251
31252 #undef $ac_func
31253
31254 /* Override any GCC internal prototype to avoid an error.
31255    Use char because int might match the return type of a GCC
31256    builtin and then its argument prototype would still apply.  */
31257 #ifdef __cplusplus
31258 extern "C"
31259 #endif
31260 char $ac_func ();
31261 /* The GNU C library defines this for functions which it implements
31262     to always fail with ENOSYS.  Some functions are actually named
31263     something starting with __ and the normal name is an alias.  */
31264 #if defined __stub_$ac_func || defined __stub___$ac_func
31265 choke me
31266 #endif
31267
31268 int
31269 main ()
31270 {
31271 return $ac_func ();
31272   ;
31273   return 0;
31274 }
31275 _ACEOF
31276 rm -f conftest.$ac_objext conftest$ac_exeext
31277 if { (ac_try="$ac_link"
31278 case "(($ac_try" in
31279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280   *) ac_try_echo=$ac_try;;
31281 esac
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283   (eval "$ac_link") 2>conftest.er1
31284   ac_status=$?
31285   grep -v '^ *+' conftest.er1 >conftest.err
31286   rm -f conftest.er1
31287   cat conftest.err >&5
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); } &&
31290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31291   { (case "(($ac_try" in
31292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293   *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296   (eval "$ac_try") 2>&5
31297   ac_status=$?
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); }; } &&
31300          { ac_try='test -s conftest$ac_exeext'
31301   { (case "(($ac_try" in
31302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303   *) ac_try_echo=$ac_try;;
31304 esac
31305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306   (eval "$ac_try") 2>&5
31307   ac_status=$?
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); }; }; then
31310   eval "$as_ac_var=yes"
31311 else
31312   echo "$as_me: failed program was:" >&5
31313 sed 's/^/| /' conftest.$ac_ext >&5
31314
31315         eval "$as_ac_var=no"
31316 fi
31317
31318 rm -f core conftest.err conftest.$ac_objext \
31319       conftest$ac_exeext conftest.$ac_ext
31320 fi
31321 ac_res=`eval echo '${'$as_ac_var'}'`
31322                { echo "$as_me:$LINENO: result: $ac_res" >&5
31323 echo "${ECHO_T}$ac_res" >&6; }
31324 if test `eval echo '${'$as_ac_var'}'` = yes; then
31325   cat >>confdefs.h <<_ACEOF
31326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31327 _ACEOF
31328
31329 fi
31330 done
31331
31332
31333
31334
31335
31336 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31337 do
31338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31342   echo $ECHO_N "(cached) $ECHO_C" >&6
31343 else
31344   cat >conftest.$ac_ext <<_ACEOF
31345 /* confdefs.h.  */
31346 _ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h.  */
31350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31352 #define $ac_func innocuous_$ac_func
31353
31354 /* System header to define __stub macros and hopefully few prototypes,
31355     which can conflict with char $ac_func (); below.
31356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31357     <limits.h> exists even on freestanding compilers.  */
31358
31359 #ifdef __STDC__
31360 # include <limits.h>
31361 #else
31362 # include <assert.h>
31363 #endif
31364
31365 #undef $ac_func
31366
31367 /* Override any GCC internal prototype to avoid an error.
31368    Use char because int might match the return type of a GCC
31369    builtin and then its argument prototype would still apply.  */
31370 #ifdef __cplusplus
31371 extern "C"
31372 #endif
31373 char $ac_func ();
31374 /* The GNU C library defines this for functions which it implements
31375     to always fail with ENOSYS.  Some functions are actually named
31376     something starting with __ and the normal name is an alias.  */
31377 #if defined __stub_$ac_func || defined __stub___$ac_func
31378 choke me
31379 #endif
31380
31381 int
31382 main ()
31383 {
31384 return $ac_func ();
31385   ;
31386   return 0;
31387 }
31388 _ACEOF
31389 rm -f conftest.$ac_objext conftest$ac_exeext
31390 if { (ac_try="$ac_link"
31391 case "(($ac_try" in
31392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393   *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396   (eval "$ac_link") 2>conftest.er1
31397   ac_status=$?
31398   grep -v '^ *+' conftest.er1 >conftest.err
31399   rm -f conftest.er1
31400   cat conftest.err >&5
31401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402   (exit $ac_status); } &&
31403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31404   { (case "(($ac_try" in
31405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406   *) ac_try_echo=$ac_try;;
31407 esac
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409   (eval "$ac_try") 2>&5
31410   ac_status=$?
31411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412   (exit $ac_status); }; } &&
31413          { ac_try='test -s conftest$ac_exeext'
31414   { (case "(($ac_try" in
31415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416   *) ac_try_echo=$ac_try;;
31417 esac
31418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419   (eval "$ac_try") 2>&5
31420   ac_status=$?
31421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422   (exit $ac_status); }; }; then
31423   eval "$as_ac_var=yes"
31424 else
31425   echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31427
31428         eval "$as_ac_var=no"
31429 fi
31430
31431 rm -f core conftest.err conftest.$ac_objext \
31432       conftest$ac_exeext conftest.$ac_ext
31433 fi
31434 ac_res=`eval echo '${'$as_ac_var'}'`
31435                { echo "$as_me:$LINENO: result: $ac_res" >&5
31436 echo "${ECHO_T}$ac_res" >&6; }
31437 if test `eval echo '${'$as_ac_var'}'` = yes; then
31438   cat >>confdefs.h <<_ACEOF
31439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31440 _ACEOF
31441
31442 fi
31443 done
31444
31445
31446
31447
31448
31449 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31450 do
31451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31455   echo $ECHO_N "(cached) $ECHO_C" >&6
31456 else
31457   cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31465 #define $ac_func innocuous_$ac_func
31466
31467 /* System header to define __stub macros and hopefully few prototypes,
31468     which can conflict with char $ac_func (); below.
31469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31470     <limits.h> exists even on freestanding compilers.  */
31471
31472 #ifdef __STDC__
31473 # include <limits.h>
31474 #else
31475 # include <assert.h>
31476 #endif
31477
31478 #undef $ac_func
31479
31480 /* Override any GCC internal prototype to avoid an error.
31481    Use char because int might match the return type of a GCC
31482    builtin and then its argument prototype would still apply.  */
31483 #ifdef __cplusplus
31484 extern "C"
31485 #endif
31486 char $ac_func ();
31487 /* The GNU C library defines this for functions which it implements
31488     to always fail with ENOSYS.  Some functions are actually named
31489     something starting with __ and the normal name is an alias.  */
31490 #if defined __stub_$ac_func || defined __stub___$ac_func
31491 choke me
31492 #endif
31493
31494 int
31495 main ()
31496 {
31497 return $ac_func ();
31498   ;
31499   return 0;
31500 }
31501 _ACEOF
31502 rm -f conftest.$ac_objext conftest$ac_exeext
31503 if { (ac_try="$ac_link"
31504 case "(($ac_try" in
31505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31506   *) ac_try_echo=$ac_try;;
31507 esac
31508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31509   (eval "$ac_link") 2>conftest.er1
31510   ac_status=$?
31511   grep -v '^ *+' conftest.er1 >conftest.err
31512   rm -f conftest.er1
31513   cat conftest.err >&5
31514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515   (exit $ac_status); } &&
31516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31517   { (case "(($ac_try" in
31518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519   *) ac_try_echo=$ac_try;;
31520 esac
31521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522   (eval "$ac_try") 2>&5
31523   ac_status=$?
31524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525   (exit $ac_status); }; } &&
31526          { ac_try='test -s conftest$ac_exeext'
31527   { (case "(($ac_try" in
31528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529   *) ac_try_echo=$ac_try;;
31530 esac
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532   (eval "$ac_try") 2>&5
31533   ac_status=$?
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); }; }; then
31536   eval "$as_ac_var=yes"
31537 else
31538   echo "$as_me: failed program was:" >&5
31539 sed 's/^/| /' conftest.$ac_ext >&5
31540
31541         eval "$as_ac_var=no"
31542 fi
31543
31544 rm -f core conftest.err conftest.$ac_objext \
31545       conftest$ac_exeext conftest.$ac_ext
31546 fi
31547 ac_res=`eval echo '${'$as_ac_var'}'`
31548                { echo "$as_me:$LINENO: result: $ac_res" >&5
31549 echo "${ECHO_T}$ac_res" >&6; }
31550 if test `eval echo '${'$as_ac_var'}'` = yes; then
31551   cat >>confdefs.h <<_ACEOF
31552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31553 _ACEOF
31554
31555 fi
31556 done
31557
31558 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31559 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31560 if test "${llvm_cv_c_printf_a+set}" = set; then
31561   echo $ECHO_N "(cached) $ECHO_C" >&6
31562 else
31563   ac_ext=c
31564 ac_cpp='$CPP $CPPFLAGS'
31565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31568
31569  if test "$cross_compiling" = yes; then
31570   llvmac_cv_c_printf_a=no
31571 else
31572   cat >conftest.$ac_ext <<_ACEOF
31573
31574   /* confdefs.h.  */
31575 _ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h.  */
31579
31580 #include <stdio.h>
31581 #include <stdlib.h>
31582
31583 int
31584 main ()
31585 {
31586
31587 volatile double A, B;
31588 char Buffer[100];
31589 A = 1;
31590 A /= 10.0;
31591 sprintf(Buffer, "%a", A);
31592 B = atof(Buffer);
31593 if (A != B)
31594   return (1);
31595 if (A != 0x1.999999999999ap-4)
31596   return (1);
31597 return (0);
31598   ;
31599   return 0;
31600 }
31601 _ACEOF
31602 rm -f conftest$ac_exeext
31603 if { (ac_try="$ac_link"
31604 case "(($ac_try" in
31605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606   *) ac_try_echo=$ac_try;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609   (eval "$ac_link") 2>&5
31610   ac_status=$?
31611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31613   { (case "(($ac_try" in
31614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615   *) ac_try_echo=$ac_try;;
31616 esac
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618   (eval "$ac_try") 2>&5
31619   ac_status=$?
31620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621   (exit $ac_status); }; }; then
31622   llvm_cv_c_printf_a=yes
31623 else
31624   echo "$as_me: program exited with status $ac_status" >&5
31625 echo "$as_me: failed program was:" >&5
31626 sed 's/^/| /' conftest.$ac_ext >&5
31627
31628 ( exit $ac_status )
31629 llvmac_cv_c_printf_a=no
31630 fi
31631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31632 fi
31633
31634
31635  ac_ext=c
31636 ac_cpp='$CPP $CPPFLAGS'
31637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31640
31641 fi
31642 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31643 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31644  if test "$llvm_cv_c_printf_a" = "yes"; then
31645
31646 cat >>confdefs.h <<\_ACEOF
31647 #define HAVE_PRINTF_A 1
31648 _ACEOF
31649
31650  fi
31651
31652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31653 # for constant arguments.  Useless!
31654 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31655 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31656 if test "${ac_cv_working_alloca_h+set}" = set; then
31657   echo $ECHO_N "(cached) $ECHO_C" >&6
31658 else
31659   cat >conftest.$ac_ext <<_ACEOF
31660 /* confdefs.h.  */
31661 _ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h.  */
31665 #include <alloca.h>
31666 int
31667 main ()
31668 {
31669 char *p = (char *) alloca (2 * sizeof (int));
31670                           if (p) return 0;
31671   ;
31672   return 0;
31673 }
31674 _ACEOF
31675 rm -f conftest.$ac_objext conftest$ac_exeext
31676 if { (ac_try="$ac_link"
31677 case "(($ac_try" in
31678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679   *) ac_try_echo=$ac_try;;
31680 esac
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682   (eval "$ac_link") 2>conftest.er1
31683   ac_status=$?
31684   grep -v '^ *+' conftest.er1 >conftest.err
31685   rm -f conftest.er1
31686   cat conftest.err >&5
31687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688   (exit $ac_status); } &&
31689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31690   { (case "(($ac_try" in
31691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692   *) ac_try_echo=$ac_try;;
31693 esac
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695   (eval "$ac_try") 2>&5
31696   ac_status=$?
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); }; } &&
31699          { ac_try='test -s conftest$ac_exeext'
31700   { (case "(($ac_try" in
31701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702   *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705   (eval "$ac_try") 2>&5
31706   ac_status=$?
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); }; }; then
31709   ac_cv_working_alloca_h=yes
31710 else
31711   echo "$as_me: failed program was:" >&5
31712 sed 's/^/| /' conftest.$ac_ext >&5
31713
31714         ac_cv_working_alloca_h=no
31715 fi
31716
31717 rm -f core conftest.err conftest.$ac_objext \
31718       conftest$ac_exeext conftest.$ac_ext
31719 fi
31720 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31721 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31722 if test $ac_cv_working_alloca_h = yes; then
31723
31724 cat >>confdefs.h <<\_ACEOF
31725 #define HAVE_ALLOCA_H 1
31726 _ACEOF
31727
31728 fi
31729
31730 { echo "$as_me:$LINENO: checking for alloca" >&5
31731 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31732 if test "${ac_cv_func_alloca_works+set}" = set; then
31733   echo $ECHO_N "(cached) $ECHO_C" >&6
31734 else
31735   cat >conftest.$ac_ext <<_ACEOF
31736 /* confdefs.h.  */
31737 _ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h.  */
31741 #ifdef __GNUC__
31742 # define alloca __builtin_alloca
31743 #else
31744 # ifdef _MSC_VER
31745 #  include <malloc.h>
31746 #  define alloca _alloca
31747 # else
31748 #  if HAVE_ALLOCA_H
31749 #   include <alloca.h>
31750 #  else
31751 #   ifdef _AIX
31752  #pragma alloca
31753 #   else
31754 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31755 char *alloca ();
31756 #    endif
31757 #   endif
31758 #  endif
31759 # endif
31760 #endif
31761
31762 int
31763 main ()
31764 {
31765 char *p = (char *) alloca (1);
31766                                     if (p) return 0;
31767   ;
31768   return 0;
31769 }
31770 _ACEOF
31771 rm -f conftest.$ac_objext conftest$ac_exeext
31772 if { (ac_try="$ac_link"
31773 case "(($ac_try" in
31774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775   *) ac_try_echo=$ac_try;;
31776 esac
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778   (eval "$ac_link") 2>conftest.er1
31779   ac_status=$?
31780   grep -v '^ *+' conftest.er1 >conftest.err
31781   rm -f conftest.er1
31782   cat conftest.err >&5
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); } &&
31785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31786   { (case "(($ac_try" in
31787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788   *) ac_try_echo=$ac_try;;
31789 esac
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791   (eval "$ac_try") 2>&5
31792   ac_status=$?
31793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794   (exit $ac_status); }; } &&
31795          { ac_try='test -s conftest$ac_exeext'
31796   { (case "(($ac_try" in
31797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798   *) ac_try_echo=$ac_try;;
31799 esac
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801   (eval "$ac_try") 2>&5
31802   ac_status=$?
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); }; }; then
31805   ac_cv_func_alloca_works=yes
31806 else
31807   echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31809
31810         ac_cv_func_alloca_works=no
31811 fi
31812
31813 rm -f core conftest.err conftest.$ac_objext \
31814       conftest$ac_exeext conftest.$ac_ext
31815 fi
31816 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31818
31819 if test $ac_cv_func_alloca_works = yes; then
31820
31821 cat >>confdefs.h <<\_ACEOF
31822 #define HAVE_ALLOCA 1
31823 _ACEOF
31824
31825 else
31826   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31827 # that cause trouble.  Some versions do not even contain alloca or
31828 # contain a buggy version.  If you still want to use their alloca,
31829 # use ar to extract alloca.o from them instead of compiling alloca.c.
31830
31831 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31832
31833 cat >>confdefs.h <<\_ACEOF
31834 #define C_ALLOCA 1
31835 _ACEOF
31836
31837
31838 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31840 if test "${ac_cv_os_cray+set}" = set; then
31841   echo $ECHO_N "(cached) $ECHO_C" >&6
31842 else
31843   cat >conftest.$ac_ext <<_ACEOF
31844 /* confdefs.h.  */
31845 _ACEOF
31846 cat confdefs.h >>conftest.$ac_ext
31847 cat >>conftest.$ac_ext <<_ACEOF
31848 /* end confdefs.h.  */
31849 #if defined CRAY && ! defined CRAY2
31850 webecray
31851 #else
31852 wenotbecray
31853 #endif
31854
31855 _ACEOF
31856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31857   $EGREP "webecray" >/dev/null 2>&1; then
31858   ac_cv_os_cray=yes
31859 else
31860   ac_cv_os_cray=no
31861 fi
31862 rm -f conftest*
31863
31864 fi
31865 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31866 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31867 if test $ac_cv_os_cray = yes; then
31868   for ac_func in _getb67 GETB67 getb67; do
31869     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31873   echo $ECHO_N "(cached) $ECHO_C" >&6
31874 else
31875   cat >conftest.$ac_ext <<_ACEOF
31876 /* confdefs.h.  */
31877 _ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h.  */
31881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31883 #define $ac_func innocuous_$ac_func
31884
31885 /* System header to define __stub macros and hopefully few prototypes,
31886     which can conflict with char $ac_func (); below.
31887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888     <limits.h> exists even on freestanding compilers.  */
31889
31890 #ifdef __STDC__
31891 # include <limits.h>
31892 #else
31893 # include <assert.h>
31894 #endif
31895
31896 #undef $ac_func
31897
31898 /* Override any GCC internal prototype to avoid an error.
31899    Use char because int might match the return type of a GCC
31900    builtin and then its argument prototype would still apply.  */
31901 #ifdef __cplusplus
31902 extern "C"
31903 #endif
31904 char $ac_func ();
31905 /* The GNU C library defines this for functions which it implements
31906     to always fail with ENOSYS.  Some functions are actually named
31907     something starting with __ and the normal name is an alias.  */
31908 #if defined __stub_$ac_func || defined __stub___$ac_func
31909 choke me
31910 #endif
31911
31912 int
31913 main ()
31914 {
31915 return $ac_func ();
31916   ;
31917   return 0;
31918 }
31919 _ACEOF
31920 rm -f conftest.$ac_objext conftest$ac_exeext
31921 if { (ac_try="$ac_link"
31922 case "(($ac_try" in
31923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924   *) ac_try_echo=$ac_try;;
31925 esac
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927   (eval "$ac_link") 2>conftest.er1
31928   ac_status=$?
31929   grep -v '^ *+' conftest.er1 >conftest.err
31930   rm -f conftest.er1
31931   cat conftest.err >&5
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); } &&
31934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31935   { (case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_try") 2>&5
31941   ac_status=$?
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); }; } &&
31944          { ac_try='test -s conftest$ac_exeext'
31945   { (case "(($ac_try" in
31946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947   *) ac_try_echo=$ac_try;;
31948 esac
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950   (eval "$ac_try") 2>&5
31951   ac_status=$?
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); }; }; then
31954   eval "$as_ac_var=yes"
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959         eval "$as_ac_var=no"
31960 fi
31961
31962 rm -f core conftest.err conftest.$ac_objext \
31963       conftest$ac_exeext conftest.$ac_ext
31964 fi
31965 ac_res=`eval echo '${'$as_ac_var'}'`
31966                { echo "$as_me:$LINENO: result: $ac_res" >&5
31967 echo "${ECHO_T}$ac_res" >&6; }
31968 if test `eval echo '${'$as_ac_var'}'` = yes; then
31969
31970 cat >>confdefs.h <<_ACEOF
31971 #define CRAY_STACKSEG_END $ac_func
31972 _ACEOF
31973
31974     break
31975 fi
31976
31977   done
31978 fi
31979
31980 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31981 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31982 if test "${ac_cv_c_stack_direction+set}" = set; then
31983   echo $ECHO_N "(cached) $ECHO_C" >&6
31984 else
31985   if test "$cross_compiling" = yes; then
31986   ac_cv_c_stack_direction=0
31987 else
31988   cat >conftest.$ac_ext <<_ACEOF
31989 /* confdefs.h.  */
31990 _ACEOF
31991 cat confdefs.h >>conftest.$ac_ext
31992 cat >>conftest.$ac_ext <<_ACEOF
31993 /* end confdefs.h.  */
31994 $ac_includes_default
31995 int
31996 find_stack_direction ()
31997 {
31998   static char *addr = 0;
31999   auto char dummy;
32000   if (addr == 0)
32001     {
32002       addr = &dummy;
32003       return find_stack_direction ();
32004     }
32005   else
32006     return (&dummy > addr) ? 1 : -1;
32007 }
32008
32009 int
32010 main ()
32011 {
32012   return find_stack_direction () < 0;
32013 }
32014 _ACEOF
32015 rm -f conftest$ac_exeext
32016 if { (ac_try="$ac_link"
32017 case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_link") 2>&5
32023   ac_status=$?
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32026   { (case "(($ac_try" in
32027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32028   *) ac_try_echo=$ac_try;;
32029 esac
32030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32031   (eval "$ac_try") 2>&5
32032   ac_status=$?
32033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034   (exit $ac_status); }; }; then
32035   ac_cv_c_stack_direction=1
32036 else
32037   echo "$as_me: program exited with status $ac_status" >&5
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32040
32041 ( exit $ac_status )
32042 ac_cv_c_stack_direction=-1
32043 fi
32044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32045 fi
32046
32047
32048 fi
32049 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32050 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32051
32052 cat >>confdefs.h <<_ACEOF
32053 #define STACK_DIRECTION $ac_cv_c_stack_direction
32054 _ACEOF
32055
32056
32057 fi
32058
32059
32060 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32061 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32062 if test "${ac_cv_func_rand48+set}" = set; then
32063   echo $ECHO_N "(cached) $ECHO_C" >&6
32064 else
32065   ac_ext=cpp
32066 ac_cpp='$CXXCPP $CPPFLAGS'
32067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32070
32071    cat >conftest.$ac_ext <<_ACEOF
32072 /* confdefs.h.  */
32073 _ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h.  */
32077 #include <stdlib.h>
32078 int
32079 main ()
32080 {
32081 srand48(0);lrand48();drand48();
32082   ;
32083   return 0;
32084 }
32085 _ACEOF
32086 rm -f conftest.$ac_objext
32087 if { (ac_try="$ac_compile"
32088 case "(($ac_try" in
32089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32090   *) ac_try_echo=$ac_try;;
32091 esac
32092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32093   (eval "$ac_compile") 2>conftest.er1
32094   ac_status=$?
32095   grep -v '^ *+' conftest.er1 >conftest.err
32096   rm -f conftest.er1
32097   cat conftest.err >&5
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); } &&
32100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32101   { (case "(($ac_try" in
32102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103   *) ac_try_echo=$ac_try;;
32104 esac
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106   (eval "$ac_try") 2>&5
32107   ac_status=$?
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); }; } &&
32110          { ac_try='test -s conftest.$ac_objext'
32111   { (case "(($ac_try" in
32112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113   *) ac_try_echo=$ac_try;;
32114 esac
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116   (eval "$ac_try") 2>&5
32117   ac_status=$?
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); }; }; then
32120   ac_cv_func_rand48=yes
32121 else
32122   echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32124
32125         ac_cv_func_rand48=no
32126 fi
32127
32128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32129   ac_ext=c
32130 ac_cpp='$CPP $CPPFLAGS'
32131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32134
32135 fi
32136 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32137 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32138
32139 if test "$ac_cv_func_rand48" = "yes" ; then
32140
32141 cat >>confdefs.h <<\_ACEOF
32142 #define HAVE_RAND48 1
32143 _ACEOF
32144
32145 fi
32146
32147
32148 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32149 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32150 if test "${ac_cv_cxx_namespaces+set}" = set; then
32151   echo $ECHO_N "(cached) $ECHO_C" >&6
32152 else
32153   ac_ext=cpp
32154 ac_cpp='$CXXCPP $CPPFLAGS'
32155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32158
32159  cat >conftest.$ac_ext <<_ACEOF
32160 /* confdefs.h.  */
32161 _ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h.  */
32165 namespace Outer { namespace Inner { int i = 0; }}
32166 int
32167 main ()
32168 {
32169 using namespace Outer::Inner; return i;
32170   ;
32171   return 0;
32172 }
32173 _ACEOF
32174 rm -f conftest.$ac_objext
32175 if { (ac_try="$ac_compile"
32176 case "(($ac_try" in
32177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178   *) ac_try_echo=$ac_try;;
32179 esac
32180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181   (eval "$ac_compile") 2>conftest.er1
32182   ac_status=$?
32183   grep -v '^ *+' conftest.er1 >conftest.err
32184   rm -f conftest.er1
32185   cat conftest.err >&5
32186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187   (exit $ac_status); } &&
32188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32189   { (case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194   (eval "$ac_try") 2>&5
32195   ac_status=$?
32196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197   (exit $ac_status); }; } &&
32198          { ac_try='test -s conftest.$ac_objext'
32199   { (case "(($ac_try" in
32200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32201   *) ac_try_echo=$ac_try;;
32202 esac
32203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204   (eval "$ac_try") 2>&5
32205   ac_status=$?
32206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207   (exit $ac_status); }; }; then
32208   ac_cv_cxx_namespaces=yes
32209 else
32210   echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.$ac_ext >&5
32212
32213         ac_cv_cxx_namespaces=no
32214 fi
32215
32216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32217  ac_ext=c
32218 ac_cpp='$CPP $CPPFLAGS'
32219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32222
32223
32224 fi
32225 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32226 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32227 if test "$ac_cv_cxx_namespaces" = yes; then
32228
32229 cat >>confdefs.h <<\_ACEOF
32230 #define HAVE_NAMESPACES
32231 _ACEOF
32232
32233 fi
32234
32235 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32236 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32237 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32238   echo $ECHO_N "(cached) $ECHO_C" >&6
32239 else
32240
32241   ac_ext=cpp
32242 ac_cpp='$CXXCPP $CPPFLAGS'
32243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32246
32247   cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h.  */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h.  */
32253 #include <iterator>
32254 #ifdef HAVE_NAMESPACES
32255 using namespace std;
32256 #endif
32257 int
32258 main ()
32259 {
32260 iterator<int,int,int> t; return 0;
32261   ;
32262   return 0;
32263 }
32264 _ACEOF
32265 rm -f conftest.$ac_objext
32266 if { (ac_try="$ac_compile"
32267 case "(($ac_try" in
32268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269   *) ac_try_echo=$ac_try;;
32270 esac
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272   (eval "$ac_compile") 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } &&
32279          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32280   { (case "(($ac_try" in
32281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282   *) ac_try_echo=$ac_try;;
32283 esac
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285   (eval "$ac_try") 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); }; } &&
32289          { ac_try='test -s conftest.$ac_objext'
32290   { (case "(($ac_try" in
32291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32292   *) ac_try_echo=$ac_try;;
32293 esac
32294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32295   (eval "$ac_try") 2>&5
32296   ac_status=$?
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); }; }; then
32299   ac_cv_cxx_have_std_iterator=yes
32300 else
32301   echo "$as_me: failed program was:" >&5
32302 sed 's/^/| /' conftest.$ac_ext >&5
32303
32304         ac_cv_cxx_have_std_iterator=no
32305 fi
32306
32307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32308   ac_ext=c
32309 ac_cpp='$CPP $CPPFLAGS'
32310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32313
32314
32315 fi
32316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32317 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32318 if test "$ac_cv_cxx_have_std_iterator" = yes
32319 then
32320
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_STD_ITERATOR 1
32323 _ACEOF
32324
32325 else
32326
32327 cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_STD_ITERATOR 0
32329 _ACEOF
32330
32331 fi
32332
32333 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32334 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32335 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32336   echo $ECHO_N "(cached) $ECHO_C" >&6
32337 else
32338
32339   ac_ext=cpp
32340 ac_cpp='$CXXCPP $CPPFLAGS'
32341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32344
32345   cat >conftest.$ac_ext <<_ACEOF
32346 /* confdefs.h.  */
32347 _ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h.  */
32351 #include <iterator>
32352 #ifdef HAVE_NAMESPACES
32353 using namespace std;
32354 #endif
32355 int
32356 main ()
32357 {
32358 bidirectional_iterator<int,int> t; return 0;
32359   ;
32360   return 0;
32361 }
32362 _ACEOF
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367   *) ac_try_echo=$ac_try;;
32368 esac
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370   (eval "$ac_compile") 2>conftest.er1
32371   ac_status=$?
32372   grep -v '^ *+' conftest.er1 >conftest.err
32373   rm -f conftest.er1
32374   cat conftest.err >&5
32375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376   (exit $ac_status); } &&
32377          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378   { (case "(($ac_try" in
32379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380   *) ac_try_echo=$ac_try;;
32381 esac
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383   (eval "$ac_try") 2>&5
32384   ac_status=$?
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); }; } &&
32387          { ac_try='test -s conftest.$ac_objext'
32388   { (case "(($ac_try" in
32389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390   *) ac_try_echo=$ac_try;;
32391 esac
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393   (eval "$ac_try") 2>&5
32394   ac_status=$?
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); }; }; then
32397   ac_cv_cxx_have_bi_iterator=yes
32398 else
32399   echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32401
32402         ac_cv_cxx_have_bi_iterator=no
32403 fi
32404
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406   ac_ext=c
32407 ac_cpp='$CPP $CPPFLAGS'
32408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412
32413 fi
32414 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32415 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32416 if test "$ac_cv_cxx_have_bi_iterator" = yes
32417 then
32418
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_BI_ITERATOR 1
32421 _ACEOF
32422
32423 else
32424
32425 cat >>confdefs.h <<\_ACEOF
32426 #define HAVE_BI_ITERATOR 0
32427 _ACEOF
32428
32429 fi
32430
32431 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32432 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32433 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32434   echo $ECHO_N "(cached) $ECHO_C" >&6
32435 else
32436
32437   ac_ext=cpp
32438 ac_cpp='$CXXCPP $CPPFLAGS'
32439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32442
32443   cat >conftest.$ac_ext <<_ACEOF
32444 /* confdefs.h.  */
32445 _ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h.  */
32449 #include <iterator>
32450 #ifdef HAVE_NAMESPACES
32451 using namespace std;
32452 #endif
32453 int
32454 main ()
32455 {
32456 forward_iterator<int,int> t; return 0;
32457   ;
32458   return 0;
32459 }
32460 _ACEOF
32461 rm -f conftest.$ac_objext
32462 if { (ac_try="$ac_compile"
32463 case "(($ac_try" in
32464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465   *) ac_try_echo=$ac_try;;
32466 esac
32467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468   (eval "$ac_compile") 2>conftest.er1
32469   ac_status=$?
32470   grep -v '^ *+' conftest.er1 >conftest.err
32471   rm -f conftest.er1
32472   cat conftest.err >&5
32473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474   (exit $ac_status); } &&
32475          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32476   { (case "(($ac_try" in
32477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478   *) ac_try_echo=$ac_try;;
32479 esac
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481   (eval "$ac_try") 2>&5
32482   ac_status=$?
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); }; } &&
32485          { ac_try='test -s conftest.$ac_objext'
32486   { (case "(($ac_try" in
32487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488   *) ac_try_echo=$ac_try;;
32489 esac
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491   (eval "$ac_try") 2>&5
32492   ac_status=$?
32493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494   (exit $ac_status); }; }; then
32495   ac_cv_cxx_have_fwd_iterator=yes
32496 else
32497   echo "$as_me: failed program was:" >&5
32498 sed 's/^/| /' conftest.$ac_ext >&5
32499
32500         ac_cv_cxx_have_fwd_iterator=no
32501 fi
32502
32503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32504   ac_ext=c
32505 ac_cpp='$CPP $CPPFLAGS'
32506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32509
32510
32511 fi
32512 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32513 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32514 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32515 then
32516
32517 cat >>confdefs.h <<\_ACEOF
32518 #define HAVE_FWD_ITERATOR 1
32519 _ACEOF
32520
32521 else
32522
32523 cat >>confdefs.h <<\_ACEOF
32524 #define HAVE_FWD_ITERATOR 0
32525 _ACEOF
32526
32527 fi
32528
32529
32530 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32531 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32532 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32533   echo $ECHO_N "(cached) $ECHO_C" >&6
32534 else
32535   ac_ext=cpp
32536 ac_cpp='$CXXCPP $CPPFLAGS'
32537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540
32541    cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 #include <math.h>
32548 int
32549 main ()
32550 {
32551 float f; isnan(f);
32552   ;
32553   return 0;
32554 }
32555 _ACEOF
32556 rm -f conftest.$ac_objext
32557 if { (ac_try="$ac_compile"
32558 case "(($ac_try" in
32559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560   *) ac_try_echo=$ac_try;;
32561 esac
32562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563   (eval "$ac_compile") 2>conftest.er1
32564   ac_status=$?
32565   grep -v '^ *+' conftest.er1 >conftest.err
32566   rm -f conftest.er1
32567   cat conftest.err >&5
32568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569   (exit $ac_status); } &&
32570          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32571   { (case "(($ac_try" in
32572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573   *) ac_try_echo=$ac_try;;
32574 esac
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576   (eval "$ac_try") 2>&5
32577   ac_status=$?
32578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579   (exit $ac_status); }; } &&
32580          { ac_try='test -s conftest.$ac_objext'
32581   { (case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586   (eval "$ac_try") 2>&5
32587   ac_status=$?
32588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589   (exit $ac_status); }; }; then
32590   ac_cv_func_isnan_in_math_h=yes
32591 else
32592   echo "$as_me: failed program was:" >&5
32593 sed 's/^/| /' conftest.$ac_ext >&5
32594
32595         ac_cv_func_isnan_in_math_h=no
32596 fi
32597
32598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599   ac_ext=c
32600 ac_cpp='$CPP $CPPFLAGS'
32601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32604
32605 fi
32606 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32607 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32608
32609
32610 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32611
32612 cat >>confdefs.h <<\_ACEOF
32613 #define HAVE_ISNAN_IN_MATH_H 1
32614 _ACEOF
32615
32616 fi
32617
32618 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32619 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32620 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32621   echo $ECHO_N "(cached) $ECHO_C" >&6
32622 else
32623   ac_ext=cpp
32624 ac_cpp='$CXXCPP $CPPFLAGS'
32625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
32629    cat >conftest.$ac_ext <<_ACEOF
32630 /* confdefs.h.  */
32631 _ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h.  */
32635 #include <cmath>
32636 int
32637 main ()
32638 {
32639 float f; isnan(f);
32640   ;
32641   return 0;
32642 }
32643 _ACEOF
32644 rm -f conftest.$ac_objext
32645 if { (ac_try="$ac_compile"
32646 case "(($ac_try" in
32647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648   *) ac_try_echo=$ac_try;;
32649 esac
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651   (eval "$ac_compile") 2>conftest.er1
32652   ac_status=$?
32653   grep -v '^ *+' conftest.er1 >conftest.err
32654   rm -f conftest.er1
32655   cat conftest.err >&5
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); } &&
32658          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32659   { (case "(($ac_try" in
32660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661   *) ac_try_echo=$ac_try;;
32662 esac
32663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664   (eval "$ac_try") 2>&5
32665   ac_status=$?
32666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667   (exit $ac_status); }; } &&
32668          { ac_try='test -s conftest.$ac_objext'
32669   { (case "(($ac_try" in
32670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671   *) ac_try_echo=$ac_try;;
32672 esac
32673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674   (eval "$ac_try") 2>&5
32675   ac_status=$?
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); }; }; then
32678   ac_cv_func_isnan_in_cmath=yes
32679 else
32680   echo "$as_me: failed program was:" >&5
32681 sed 's/^/| /' conftest.$ac_ext >&5
32682
32683         ac_cv_func_isnan_in_cmath=no
32684 fi
32685
32686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687   ac_ext=c
32688 ac_cpp='$CPP $CPPFLAGS'
32689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32692
32693 fi
32694 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32695 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32696
32697 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32698
32699 cat >>confdefs.h <<\_ACEOF
32700 #define HAVE_ISNAN_IN_CMATH 1
32701 _ACEOF
32702
32703 fi
32704
32705 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32706 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32707 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32708   echo $ECHO_N "(cached) $ECHO_C" >&6
32709 else
32710   ac_ext=cpp
32711 ac_cpp='$CXXCPP $CPPFLAGS'
32712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32715
32716    cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h.  */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h.  */
32722 #include <cmath>
32723 int
32724 main ()
32725 {
32726 float f; std::isnan(f);
32727   ;
32728   return 0;
32729 }
32730 _ACEOF
32731 rm -f conftest.$ac_objext
32732 if { (ac_try="$ac_compile"
32733 case "(($ac_try" in
32734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735   *) ac_try_echo=$ac_try;;
32736 esac
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738   (eval "$ac_compile") 2>conftest.er1
32739   ac_status=$?
32740   grep -v '^ *+' conftest.er1 >conftest.err
32741   rm -f conftest.er1
32742   cat conftest.err >&5
32743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744   (exit $ac_status); } &&
32745          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32746   { (case "(($ac_try" in
32747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748   *) ac_try_echo=$ac_try;;
32749 esac
32750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751   (eval "$ac_try") 2>&5
32752   ac_status=$?
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); }; } &&
32755          { ac_try='test -s conftest.$ac_objext'
32756   { (case "(($ac_try" in
32757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758   *) ac_try_echo=$ac_try;;
32759 esac
32760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761   (eval "$ac_try") 2>&5
32762   ac_status=$?
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); }; }; then
32765   ac_cv_func_std_isnan_in_cmath=yes
32766 else
32767   echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32769
32770         ac_cv_func_std_isnan_in_cmath=no
32771 fi
32772
32773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32774   ac_ext=c
32775 ac_cpp='$CPP $CPPFLAGS'
32776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32779
32780 fi
32781 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32782 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32783
32784 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32785
32786 cat >>confdefs.h <<\_ACEOF
32787 #define HAVE_STD_ISNAN_IN_CMATH 1
32788 _ACEOF
32789
32790 fi
32791
32792
32793 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32794 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32795 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32796   echo $ECHO_N "(cached) $ECHO_C" >&6
32797 else
32798   ac_ext=cpp
32799 ac_cpp='$CXXCPP $CPPFLAGS'
32800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32803
32804    cat >conftest.$ac_ext <<_ACEOF
32805 /* confdefs.h.  */
32806 _ACEOF
32807 cat confdefs.h >>conftest.$ac_ext
32808 cat >>conftest.$ac_ext <<_ACEOF
32809 /* end confdefs.h.  */
32810 #include <math.h>
32811 int
32812 main ()
32813 {
32814 float f; isinf(f);
32815   ;
32816   return 0;
32817 }
32818 _ACEOF
32819 rm -f conftest.$ac_objext
32820 if { (ac_try="$ac_compile"
32821 case "(($ac_try" in
32822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32823   *) ac_try_echo=$ac_try;;
32824 esac
32825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32826   (eval "$ac_compile") 2>conftest.er1
32827   ac_status=$?
32828   grep -v '^ *+' conftest.er1 >conftest.err
32829   rm -f conftest.er1
32830   cat conftest.err >&5
32831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832   (exit $ac_status); } &&
32833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32834   { (case "(($ac_try" in
32835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836   *) ac_try_echo=$ac_try;;
32837 esac
32838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839   (eval "$ac_try") 2>&5
32840   ac_status=$?
32841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); }; } &&
32843          { ac_try='test -s conftest.$ac_objext'
32844   { (case "(($ac_try" in
32845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846   *) ac_try_echo=$ac_try;;
32847 esac
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849   (eval "$ac_try") 2>&5
32850   ac_status=$?
32851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852   (exit $ac_status); }; }; then
32853   ac_cv_func_isinf_in_math_h=yes
32854 else
32855   echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32857
32858         ac_cv_func_isinf_in_math_h=no
32859 fi
32860
32861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32862   ac_ext=c
32863 ac_cpp='$CPP $CPPFLAGS'
32864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32867
32868 fi
32869 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32870 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32871
32872 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32873
32874 cat >>confdefs.h <<\_ACEOF
32875 #define HAVE_ISINF_IN_MATH_H 1
32876 _ACEOF
32877
32878 fi
32879
32880 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32881 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32882 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32883   echo $ECHO_N "(cached) $ECHO_C" >&6
32884 else
32885   ac_ext=cpp
32886 ac_cpp='$CXXCPP $CPPFLAGS'
32887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32890
32891    cat >conftest.$ac_ext <<_ACEOF
32892 /* confdefs.h.  */
32893 _ACEOF
32894 cat confdefs.h >>conftest.$ac_ext
32895 cat >>conftest.$ac_ext <<_ACEOF
32896 /* end confdefs.h.  */
32897 #include <cmath>
32898 int
32899 main ()
32900 {
32901 float f; isinf(f);
32902   ;
32903   return 0;
32904 }
32905 _ACEOF
32906 rm -f conftest.$ac_objext
32907 if { (ac_try="$ac_compile"
32908 case "(($ac_try" in
32909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910   *) ac_try_echo=$ac_try;;
32911 esac
32912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32913   (eval "$ac_compile") 2>conftest.er1
32914   ac_status=$?
32915   grep -v '^ *+' conftest.er1 >conftest.err
32916   rm -f conftest.er1
32917   cat conftest.err >&5
32918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919   (exit $ac_status); } &&
32920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32921   { (case "(($ac_try" in
32922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923   *) ac_try_echo=$ac_try;;
32924 esac
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926   (eval "$ac_try") 2>&5
32927   ac_status=$?
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); }; } &&
32930          { ac_try='test -s conftest.$ac_objext'
32931   { (case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_try") 2>&5
32937   ac_status=$?
32938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939   (exit $ac_status); }; }; then
32940   ac_cv_func_isinf_in_cmath=yes
32941 else
32942   echo "$as_me: failed program was:" >&5
32943 sed 's/^/| /' conftest.$ac_ext >&5
32944
32945         ac_cv_func_isinf_in_cmath=no
32946 fi
32947
32948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32949   ac_ext=c
32950 ac_cpp='$CPP $CPPFLAGS'
32951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32954
32955 fi
32956 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32957 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32958
32959 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32960
32961 cat >>confdefs.h <<\_ACEOF
32962 #define HAVE_ISINF_IN_CMATH 1
32963 _ACEOF
32964
32965 fi
32966
32967 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32968 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32969 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32970   echo $ECHO_N "(cached) $ECHO_C" >&6
32971 else
32972   ac_ext=cpp
32973 ac_cpp='$CXXCPP $CPPFLAGS'
32974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32977
32978    cat >conftest.$ac_ext <<_ACEOF
32979 /* confdefs.h.  */
32980 _ACEOF
32981 cat confdefs.h >>conftest.$ac_ext
32982 cat >>conftest.$ac_ext <<_ACEOF
32983 /* end confdefs.h.  */
32984 #include <cmath>
32985 int
32986 main ()
32987 {
32988 float f; std::isinf(f)}
32989   ;
32990   return 0;
32991 }
32992 _ACEOF
32993 rm -f conftest.$ac_objext
32994 if { (ac_try="$ac_compile"
32995 case "(($ac_try" in
32996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997   *) ac_try_echo=$ac_try;;
32998 esac
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000   (eval "$ac_compile") 2>conftest.er1
33001   ac_status=$?
33002   grep -v '^ *+' conftest.er1 >conftest.err
33003   rm -f conftest.er1
33004   cat conftest.err >&5
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); } &&
33007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33008   { (case "(($ac_try" in
33009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010   *) ac_try_echo=$ac_try;;
33011 esac
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013   (eval "$ac_try") 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; } &&
33017          { ac_try='test -s conftest.$ac_objext'
33018   { (case "(($ac_try" in
33019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020   *) ac_try_echo=$ac_try;;
33021 esac
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023   (eval "$ac_try") 2>&5
33024   ac_status=$?
33025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026   (exit $ac_status); }; }; then
33027   ac_cv_func_std_isinf_in_cmath=yes
33028 else
33029   echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33031
33032         ac_cv_func_std_isinf_in_cmath=no
33033 fi
33034
33035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33036   ac_ext=c
33037 ac_cpp='$CPP $CPPFLAGS'
33038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33041
33042 fi
33043 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33044 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33045
33046 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33047
33048 cat >>confdefs.h <<\_ACEOF
33049 #define HAVE_STD_ISINF_IN_CMATH 1
33050 _ACEOF
33051
33052 fi
33053
33054 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33055 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33056 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33057   echo $ECHO_N "(cached) $ECHO_C" >&6
33058 else
33059   ac_ext=cpp
33060 ac_cpp='$CXXCPP $CPPFLAGS'
33061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33064
33065    cat >conftest.$ac_ext <<_ACEOF
33066 /* confdefs.h.  */
33067 _ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h.  */
33071 #include <ieeefp.h>
33072 int
33073 main ()
33074 {
33075 float f; finite(f);
33076   ;
33077   return 0;
33078 }
33079 _ACEOF
33080 rm -f conftest.$ac_objext
33081 if { (ac_try="$ac_compile"
33082 case "(($ac_try" in
33083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084   *) ac_try_echo=$ac_try;;
33085 esac
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087   (eval "$ac_compile") 2>conftest.er1
33088   ac_status=$?
33089   grep -v '^ *+' conftest.er1 >conftest.err
33090   rm -f conftest.er1
33091   cat conftest.err >&5
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); } &&
33094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33095   { (case "(($ac_try" in
33096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097   *) ac_try_echo=$ac_try;;
33098 esac
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100   (eval "$ac_try") 2>&5
33101   ac_status=$?
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); }; } &&
33104          { ac_try='test -s conftest.$ac_objext'
33105   { (case "(($ac_try" in
33106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33107   *) ac_try_echo=$ac_try;;
33108 esac
33109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33110   (eval "$ac_try") 2>&5
33111   ac_status=$?
33112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113   (exit $ac_status); }; }; then
33114   ac_cv_func_finite_in_ieeefp_h=yes
33115 else
33116   echo "$as_me: failed program was:" >&5
33117 sed 's/^/| /' conftest.$ac_ext >&5
33118
33119         ac_cv_func_finite_in_ieeefp_h=no
33120 fi
33121
33122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33123   ac_ext=c
33124 ac_cpp='$CPP $CPPFLAGS'
33125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33128
33129 fi
33130 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33131 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33132
33133 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33134
33135 cat >>confdefs.h <<\_ACEOF
33136 #define HAVE_FINITE_IN_IEEEFP_H 1
33137 _ACEOF
33138
33139 fi
33140
33141
33142
33143 if test "$llvm_cv_platform_type" = "Unix" ; then
33144
33145
33146 for ac_header in stdlib.h unistd.h
33147 do
33148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33153   echo $ECHO_N "(cached) $ECHO_C" >&6
33154 fi
33155 ac_res=`eval echo '${'$as_ac_Header'}'`
33156                { echo "$as_me:$LINENO: result: $ac_res" >&5
33157 echo "${ECHO_T}$ac_res" >&6; }
33158 else
33159   # Is the header compilable?
33160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33162 cat >conftest.$ac_ext <<_ACEOF
33163 /* confdefs.h.  */
33164 _ACEOF
33165 cat confdefs.h >>conftest.$ac_ext
33166 cat >>conftest.$ac_ext <<_ACEOF
33167 /* end confdefs.h.  */
33168 $ac_includes_default
33169 #include <$ac_header>
33170 _ACEOF
33171 rm -f conftest.$ac_objext
33172 if { (ac_try="$ac_compile"
33173 case "(($ac_try" in
33174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175   *) ac_try_echo=$ac_try;;
33176 esac
33177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33178   (eval "$ac_compile") 2>conftest.er1
33179   ac_status=$?
33180   grep -v '^ *+' conftest.er1 >conftest.err
33181   rm -f conftest.er1
33182   cat conftest.err >&5
33183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184   (exit $ac_status); } &&
33185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33186   { (case "(($ac_try" in
33187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188   *) ac_try_echo=$ac_try;;
33189 esac
33190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191   (eval "$ac_try") 2>&5
33192   ac_status=$?
33193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194   (exit $ac_status); }; } &&
33195          { ac_try='test -s conftest.$ac_objext'
33196   { (case "(($ac_try" in
33197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198   *) ac_try_echo=$ac_try;;
33199 esac
33200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201   (eval "$ac_try") 2>&5
33202   ac_status=$?
33203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204   (exit $ac_status); }; }; then
33205   ac_header_compiler=yes
33206 else
33207   echo "$as_me: failed program was:" >&5
33208 sed 's/^/| /' conftest.$ac_ext >&5
33209
33210         ac_header_compiler=no
33211 fi
33212
33213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33215 echo "${ECHO_T}$ac_header_compiler" >&6; }
33216
33217 # Is the header present?
33218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33220 cat >conftest.$ac_ext <<_ACEOF
33221 /* confdefs.h.  */
33222 _ACEOF
33223 cat confdefs.h >>conftest.$ac_ext
33224 cat >>conftest.$ac_ext <<_ACEOF
33225 /* end confdefs.h.  */
33226 #include <$ac_header>
33227 _ACEOF
33228 if { (ac_try="$ac_cpp conftest.$ac_ext"
33229 case "(($ac_try" in
33230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231   *) ac_try_echo=$ac_try;;
33232 esac
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33235   ac_status=$?
33236   grep -v '^ *+' conftest.er1 >conftest.err
33237   rm -f conftest.er1
33238   cat conftest.err >&5
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); } >/dev/null; then
33241   if test -s conftest.err; then
33242     ac_cpp_err=$ac_c_preproc_warn_flag
33243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33244   else
33245     ac_cpp_err=
33246   fi
33247 else
33248   ac_cpp_err=yes
33249 fi
33250 if test -z "$ac_cpp_err"; then
33251   ac_header_preproc=yes
33252 else
33253   echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33255
33256   ac_header_preproc=no
33257 fi
33258
33259 rm -f conftest.err conftest.$ac_ext
33260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33261 echo "${ECHO_T}$ac_header_preproc" >&6; }
33262
33263 # So?  What about this header?
33264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33265   yes:no: )
33266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33270     ac_header_preproc=yes
33271     ;;
33272   no:yes:* )
33273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33285     ( cat <<\_ASBOX
33286 ## ----------------------------------- ##
33287 ## Report this to llvmbugs@cs.uiuc.edu ##
33288 ## ----------------------------------- ##
33289 _ASBOX
33290      ) | sed "s/^/$as_me: WARNING:     /" >&2
33291     ;;
33292 esac
33293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33296   echo $ECHO_N "(cached) $ECHO_C" >&6
33297 else
33298   eval "$as_ac_Header=\$ac_header_preproc"
33299 fi
33300 ac_res=`eval echo '${'$as_ac_Header'}'`
33301                { echo "$as_me:$LINENO: result: $ac_res" >&5
33302 echo "${ECHO_T}$ac_res" >&6; }
33303
33304 fi
33305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33306   cat >>confdefs.h <<_ACEOF
33307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33308 _ACEOF
33309
33310 fi
33311
33312 done
33313
33314
33315 for ac_func in getpagesize
33316 do
33317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33321   echo $ECHO_N "(cached) $ECHO_C" >&6
33322 else
33323   cat >conftest.$ac_ext <<_ACEOF
33324 /* confdefs.h.  */
33325 _ACEOF
33326 cat confdefs.h >>conftest.$ac_ext
33327 cat >>conftest.$ac_ext <<_ACEOF
33328 /* end confdefs.h.  */
33329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33331 #define $ac_func innocuous_$ac_func
33332
33333 /* System header to define __stub macros and hopefully few prototypes,
33334     which can conflict with char $ac_func (); below.
33335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33336     <limits.h> exists even on freestanding compilers.  */
33337
33338 #ifdef __STDC__
33339 # include <limits.h>
33340 #else
33341 # include <assert.h>
33342 #endif
33343
33344 #undef $ac_func
33345
33346 /* Override any GCC internal prototype to avoid an error.
33347    Use char because int might match the return type of a GCC
33348    builtin and then its argument prototype would still apply.  */
33349 #ifdef __cplusplus
33350 extern "C"
33351 #endif
33352 char $ac_func ();
33353 /* The GNU C library defines this for functions which it implements
33354     to always fail with ENOSYS.  Some functions are actually named
33355     something starting with __ and the normal name is an alias.  */
33356 #if defined __stub_$ac_func || defined __stub___$ac_func
33357 choke me
33358 #endif
33359
33360 int
33361 main ()
33362 {
33363 return $ac_func ();
33364   ;
33365   return 0;
33366 }
33367 _ACEOF
33368 rm -f conftest.$ac_objext conftest$ac_exeext
33369 if { (ac_try="$ac_link"
33370 case "(($ac_try" in
33371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372   *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375   (eval "$ac_link") 2>conftest.er1
33376   ac_status=$?
33377   grep -v '^ *+' conftest.er1 >conftest.err
33378   rm -f conftest.er1
33379   cat conftest.err >&5
33380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381   (exit $ac_status); } &&
33382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33383   { (case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_try") 2>&5
33389   ac_status=$?
33390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391   (exit $ac_status); }; } &&
33392          { ac_try='test -s conftest$ac_exeext'
33393   { (case "(($ac_try" in
33394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395   *) ac_try_echo=$ac_try;;
33396 esac
33397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398   (eval "$ac_try") 2>&5
33399   ac_status=$?
33400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401   (exit $ac_status); }; }; then
33402   eval "$as_ac_var=yes"
33403 else
33404   echo "$as_me: failed program was:" >&5
33405 sed 's/^/| /' conftest.$ac_ext >&5
33406
33407         eval "$as_ac_var=no"
33408 fi
33409
33410 rm -f core conftest.err conftest.$ac_objext \
33411       conftest$ac_exeext conftest.$ac_ext
33412 fi
33413 ac_res=`eval echo '${'$as_ac_var'}'`
33414                { echo "$as_me:$LINENO: result: $ac_res" >&5
33415 echo "${ECHO_T}$ac_res" >&6; }
33416 if test `eval echo '${'$as_ac_var'}'` = yes; then
33417   cat >>confdefs.h <<_ACEOF
33418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33419 _ACEOF
33420
33421 fi
33422 done
33423
33424 { echo "$as_me:$LINENO: checking for working mmap" >&5
33425 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33426 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33427   echo $ECHO_N "(cached) $ECHO_C" >&6
33428 else
33429   if test "$cross_compiling" = yes; then
33430   ac_cv_func_mmap_fixed_mapped=no
33431 else
33432   cat >conftest.$ac_ext <<_ACEOF
33433 /* confdefs.h.  */
33434 _ACEOF
33435 cat confdefs.h >>conftest.$ac_ext
33436 cat >>conftest.$ac_ext <<_ACEOF
33437 /* end confdefs.h.  */
33438 $ac_includes_default
33439 /* malloc might have been renamed as rpl_malloc. */
33440 #undef malloc
33441
33442 /* Thanks to Mike Haertel and Jim Avera for this test.
33443    Here is a matrix of mmap possibilities:
33444         mmap private not fixed
33445         mmap private fixed at somewhere currently unmapped
33446         mmap private fixed at somewhere already mapped
33447         mmap shared not fixed
33448         mmap shared fixed at somewhere currently unmapped
33449         mmap shared fixed at somewhere already mapped
33450    For private mappings, we should verify that changes cannot be read()
33451    back from the file, nor mmap's back from the file at a different
33452    address.  (There have been systems where private was not correctly
33453    implemented like the infamous i386 svr4.0, and systems where the
33454    VM page cache was not coherent with the file system buffer cache
33455    like early versions of FreeBSD and possibly contemporary NetBSD.)
33456    For shared mappings, we should conversely verify that changes get
33457    propagated back to all the places they're supposed to be.
33458
33459    Grep wants private fixed already mapped.
33460    The main things grep needs to know about mmap are:
33461    * does it exist and is it safe to write into the mmap'd area
33462    * how to use it (BSD variants)  */
33463
33464 #include <fcntl.h>
33465 #include <sys/mman.h>
33466
33467 #if !STDC_HEADERS && !HAVE_STDLIB_H
33468 char *malloc ();
33469 #endif
33470
33471 /* This mess was copied from the GNU getpagesize.h.  */
33472 #if !HAVE_GETPAGESIZE
33473 /* Assume that all systems that can run configure have sys/param.h.  */
33474 # if !HAVE_SYS_PARAM_H
33475 #  define HAVE_SYS_PARAM_H 1
33476 # endif
33477
33478 # ifdef _SC_PAGESIZE
33479 #  define getpagesize() sysconf(_SC_PAGESIZE)
33480 # else /* no _SC_PAGESIZE */
33481 #  if HAVE_SYS_PARAM_H
33482 #   include <sys/param.h>
33483 #   ifdef EXEC_PAGESIZE
33484 #    define getpagesize() EXEC_PAGESIZE
33485 #   else /* no EXEC_PAGESIZE */
33486 #    ifdef NBPG
33487 #     define getpagesize() NBPG * CLSIZE
33488 #     ifndef CLSIZE
33489 #      define CLSIZE 1
33490 #     endif /* no CLSIZE */
33491 #    else /* no NBPG */
33492 #     ifdef NBPC
33493 #      define getpagesize() NBPC
33494 #     else /* no NBPC */
33495 #      ifdef PAGESIZE
33496 #       define getpagesize() PAGESIZE
33497 #      endif /* PAGESIZE */
33498 #     endif /* no NBPC */
33499 #    endif /* no NBPG */
33500 #   endif /* no EXEC_PAGESIZE */
33501 #  else /* no HAVE_SYS_PARAM_H */
33502 #   define getpagesize() 8192   /* punt totally */
33503 #  endif /* no HAVE_SYS_PARAM_H */
33504 # endif /* no _SC_PAGESIZE */
33505
33506 #endif /* no HAVE_GETPAGESIZE */
33507
33508 int
33509 main ()
33510 {
33511   char *data, *data2, *data3;
33512   int i, pagesize;
33513   int fd;
33514
33515   pagesize = getpagesize ();
33516
33517   /* First, make a file with some known garbage in it. */
33518   data = (char *) malloc (pagesize);
33519   if (!data)
33520     return 1;
33521   for (i = 0; i < pagesize; ++i)
33522     *(data + i) = rand ();
33523   umask (0);
33524   fd = creat ("conftest.mmap", 0600);
33525   if (fd < 0)
33526     return 1;
33527   if (write (fd, data, pagesize) != pagesize)
33528     return 1;
33529   close (fd);
33530
33531   /* Next, try to mmap the file at a fixed address which already has
33532      something else allocated at it.  If we can, also make sure that
33533      we see the same garbage.  */
33534   fd = open ("conftest.mmap", O_RDWR);
33535   if (fd < 0)
33536     return 1;
33537   data2 = (char *) malloc (2 * pagesize);
33538   if (!data2)
33539     return 1;
33540   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33541   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33542                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33543     return 1;
33544   for (i = 0; i < pagesize; ++i)
33545     if (*(data + i) != *(data2 + i))
33546       return 1;
33547
33548   /* Finally, make sure that changes to the mapped area do not
33549      percolate back to the file as seen by read().  (This is a bug on
33550      some variants of i386 svr4.0.)  */
33551   for (i = 0; i < pagesize; ++i)
33552     *(data2 + i) = *(data2 + i) + 1;
33553   data3 = (char *) malloc (pagesize);
33554   if (!data3)
33555     return 1;
33556   if (read (fd, data3, pagesize) != pagesize)
33557     return 1;
33558   for (i = 0; i < pagesize; ++i)
33559     if (*(data + i) != *(data3 + i))
33560       return 1;
33561   close (fd);
33562   return 0;
33563 }
33564 _ACEOF
33565 rm -f conftest$ac_exeext
33566 if { (ac_try="$ac_link"
33567 case "(($ac_try" in
33568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569   *) ac_try_echo=$ac_try;;
33570 esac
33571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572   (eval "$ac_link") 2>&5
33573   ac_status=$?
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33576   { (case "(($ac_try" in
33577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578   *) ac_try_echo=$ac_try;;
33579 esac
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581   (eval "$ac_try") 2>&5
33582   ac_status=$?
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); }; }; then
33585   ac_cv_func_mmap_fixed_mapped=yes
33586 else
33587   echo "$as_me: program exited with status $ac_status" >&5
33588 echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33590
33591 ( exit $ac_status )
33592 ac_cv_func_mmap_fixed_mapped=no
33593 fi
33594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33595 fi
33596
33597
33598 fi
33599 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33600 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33602
33603 cat >>confdefs.h <<\_ACEOF
33604 #define HAVE_MMAP 1
33605 _ACEOF
33606
33607 fi
33608 rm -f conftest.mmap
33609
33610   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33611 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33612 if test "${ac_cv_func_mmap_file+set}" = set; then
33613   echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615    ac_ext=c
33616 ac_cpp='$CPP $CPPFLAGS'
33617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33620
33621   if test "$cross_compiling" = yes; then
33622   ac_cv_func_mmap_file=no
33623 else
33624   cat >conftest.$ac_ext <<_ACEOF
33625
33626     /* confdefs.h.  */
33627 _ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h.  */
33631
33632 #include <sys/types.h>
33633 #include <sys/mman.h>
33634 #include <fcntl.h>
33635
33636 int
33637 main ()
33638 {
33639
33640   int fd;
33641   fd = creat ("foo",0777);
33642   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33643   unlink ("foo");
33644   return (fd != (int) MAP_FAILED);
33645   ;
33646   return 0;
33647 }
33648 _ACEOF
33649 rm -f conftest$ac_exeext
33650 if { (ac_try="$ac_link"
33651 case "(($ac_try" in
33652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653   *) ac_try_echo=$ac_try;;
33654 esac
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656   (eval "$ac_link") 2>&5
33657   ac_status=$?
33658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33660   { (case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_try") 2>&5
33666   ac_status=$?
33667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668   (exit $ac_status); }; }; then
33669   ac_cv_func_mmap_file=yes
33670 else
33671   echo "$as_me: program exited with status $ac_status" >&5
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33674
33675 ( exit $ac_status )
33676 ac_cv_func_mmap_file=no
33677 fi
33678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33679 fi
33680
33681
33682   ac_ext=c
33683 ac_cpp='$CPP $CPPFLAGS'
33684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33687
33688
33689 fi
33690 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33691 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33692 if test "$ac_cv_func_mmap_file" = yes; then
33693
33694 cat >>confdefs.h <<\_ACEOF
33695 #define HAVE_MMAP_FILE
33696 _ACEOF
33697
33698    MMAP_FILE=yes
33699
33700 fi
33701
33702   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33703 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33704 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33705   echo $ECHO_N "(cached) $ECHO_C" >&6
33706 else
33707   if test "$llvm_cv_os_type" = "Interix" ; then
33708    ac_cv_need_dev_zero_for_mmap=yes
33709  else
33710    ac_cv_need_dev_zero_for_mmap=no
33711  fi
33712
33713 fi
33714 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33715 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33716 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33717
33718 cat >>confdefs.h <<\_ACEOF
33719 #define NEED_DEV_ZERO_FOR_MMAP 1
33720 _ACEOF
33721
33722 fi
33723
33724   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33725   then
33726     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33727 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33728   fi
33729   if test "$ac_cv_func_mmap_file" = "no"
33730   then
33731     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33732 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33733   fi
33734 fi
33735
33736 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33737 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33738 cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h.  */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h.  */
33744 int main() {
33745         volatile unsigned long val = 1;
33746         __sync_synchronize();
33747         __sync_val_compare_and_swap(&val, 1, 0);
33748         return 0;
33749       }
33750
33751 _ACEOF
33752 rm -f conftest.$ac_objext conftest$ac_exeext
33753 if { (ac_try="$ac_link"
33754 case "(($ac_try" in
33755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756   *) ac_try_echo=$ac_try;;
33757 esac
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759   (eval "$ac_link") 2>conftest.er1
33760   ac_status=$?
33761   grep -v '^ *+' conftest.er1 >conftest.err
33762   rm -f conftest.er1
33763   cat conftest.err >&5
33764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765   (exit $ac_status); } &&
33766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33767   { (case "(($ac_try" in
33768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769   *) ac_try_echo=$ac_try;;
33770 esac
33771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33772   (eval "$ac_try") 2>&5
33773   ac_status=$?
33774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775   (exit $ac_status); }; } &&
33776          { ac_try='test -s conftest$ac_exeext'
33777   { (case "(($ac_try" in
33778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779   *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782   (eval "$ac_try") 2>&5
33783   ac_status=$?
33784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785   (exit $ac_status); }; }; then
33786   { echo "$as_me:$LINENO: result: yes" >&5
33787 echo "${ECHO_T}yes" >&6; }
33788
33789 cat >>confdefs.h <<\_ACEOF
33790 #define LLVM_MULTITHREADED 1
33791 _ACEOF
33792
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797         { echo "$as_me:$LINENO: result: no" >&5
33798 echo "${ECHO_T}no" >&6; }
33799
33800 cat >>confdefs.h <<\_ACEOF
33801 #define LLVM_MULTITHREADED 0
33802 _ACEOF
33803
33804   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33805 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
33806 fi
33807
33808 rm -f core conftest.err conftest.$ac_objext \
33809       conftest$ac_exeext conftest.$ac_ext
33810
33811
33812
33813
33814 for ac_func in __dso_handle
33815 do
33816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33820   echo $ECHO_N "(cached) $ECHO_C" >&6
33821 else
33822   cat >conftest.$ac_ext <<_ACEOF
33823 /* confdefs.h.  */
33824 _ACEOF
33825 cat confdefs.h >>conftest.$ac_ext
33826 cat >>conftest.$ac_ext <<_ACEOF
33827 /* end confdefs.h.  */
33828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33830 #define $ac_func innocuous_$ac_func
33831
33832 /* System header to define __stub macros and hopefully few prototypes,
33833     which can conflict with char $ac_func (); below.
33834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33835     <limits.h> exists even on freestanding compilers.  */
33836
33837 #ifdef __STDC__
33838 # include <limits.h>
33839 #else
33840 # include <assert.h>
33841 #endif
33842
33843 #undef $ac_func
33844
33845 /* Override any GCC internal prototype to avoid an error.
33846    Use char because int might match the return type of a GCC
33847    builtin and then its argument prototype would still apply.  */
33848 #ifdef __cplusplus
33849 extern "C"
33850 #endif
33851 char $ac_func ();
33852 /* The GNU C library defines this for functions which it implements
33853     to always fail with ENOSYS.  Some functions are actually named
33854     something starting with __ and the normal name is an alias.  */
33855 #if defined __stub_$ac_func || defined __stub___$ac_func
33856 choke me
33857 #endif
33858
33859 int
33860 main ()
33861 {
33862 return $ac_func ();
33863   ;
33864   return 0;
33865 }
33866 _ACEOF
33867 rm -f conftest.$ac_objext conftest$ac_exeext
33868 if { (ac_try="$ac_link"
33869 case "(($ac_try" in
33870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871   *) ac_try_echo=$ac_try;;
33872 esac
33873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874   (eval "$ac_link") 2>conftest.er1
33875   ac_status=$?
33876   grep -v '^ *+' conftest.er1 >conftest.err
33877   rm -f conftest.er1
33878   cat conftest.err >&5
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); } &&
33881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33882   { (case "(($ac_try" in
33883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884   *) ac_try_echo=$ac_try;;
33885 esac
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887   (eval "$ac_try") 2>&5
33888   ac_status=$?
33889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890   (exit $ac_status); }; } &&
33891          { ac_try='test -s conftest$ac_exeext'
33892   { (case "(($ac_try" in
33893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894   *) ac_try_echo=$ac_try;;
33895 esac
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897   (eval "$ac_try") 2>&5
33898   ac_status=$?
33899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900   (exit $ac_status); }; }; then
33901   eval "$as_ac_var=yes"
33902 else
33903   echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33905
33906         eval "$as_ac_var=no"
33907 fi
33908
33909 rm -f core conftest.err conftest.$ac_objext \
33910       conftest$ac_exeext conftest.$ac_ext
33911 fi
33912 ac_res=`eval echo '${'$as_ac_var'}'`
33913                { echo "$as_me:$LINENO: result: $ac_res" >&5
33914 echo "${ECHO_T}$ac_res" >&6; }
33915 if test `eval echo '${'$as_ac_var'}'` = yes; then
33916   cat >>confdefs.h <<_ACEOF
33917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33918 _ACEOF
33919
33920 fi
33921 done
33922
33923
33924 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33925 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33926 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33927   echo $ECHO_N "(cached) $ECHO_C" >&6
33928 else
33929   llvm_cv_llvmgcc_sanity="no"
33930 if test -x "$LLVMGCC" ; then
33931   cp /dev/null conftest.c
33932   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33933       grep 'target datalayout =' > /dev/null 2>&1
33934   if test $? -eq 0 ; then
33935     llvm_cv_llvmgcc_sanity="yes"
33936   fi
33937   rm conftest.c
33938 fi
33939 fi
33940 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33941 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33942
33943 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33944   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33945 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33946   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33947   LLVMCC1=$llvmcc1path
33948
33949   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33950   LLVMCC1PLUS=$llvmcc1pluspath
33951
33952   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33953   LLVMGCCDIR=$llvmgccdir
33954
33955   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33956   LLVMGCCLIBEXEC=$llvmgcclibexec
33957
33958   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33959   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33960   LLVMGCC_VERSION=$llvmgccversion
33961
33962   LLVMGCC_MAJVERS=$llvmgccmajvers
33963
33964   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33965   LLVMGCC_LANGS=$llvmgcclangs
33966
33967   { echo "$as_me:$LINENO: result: ok" >&5
33968 echo "${ECHO_T}ok" >&6; }
33969 fi
33970
33971 SHLIBEXT=$libltdl_cv_shlibext
33972
33973
33974 # Translate the various configuration directories and other basic
33975 # information into substitutions that will end up in Makefile.config.in
33976 # that these configured values can be used by the makefiles
33977 if test "${prefix}" = "NONE" ; then
33978   prefix="/usr/local"
33979 fi
33980 eval LLVM_PREFIX="${prefix}";
33981 eval LLVM_BINDIR="${prefix}/bin";
33982 eval LLVM_LIBDIR="${prefix}/lib";
33983 eval LLVM_DATADIR="${prefix}/share/llvm";
33984 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33985 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33986 eval LLVM_INCLUDEDIR="${prefix}/include";
33987 eval LLVM_INFODIR="${prefix}/info";
33988 eval LLVM_MANDIR="${prefix}/man";
33989 LLVM_CONFIGTIME=`date`
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001 # Place the various directores into the config.h file as #defines so that we
34002 # can know about the installation paths within LLVM.
34003
34004 cat >>confdefs.h <<_ACEOF
34005 #define LLVM_PREFIX "$LLVM_PREFIX"
34006 _ACEOF
34007
34008
34009 cat >>confdefs.h <<_ACEOF
34010 #define LLVM_BINDIR "$LLVM_BINDIR"
34011 _ACEOF
34012
34013
34014 cat >>confdefs.h <<_ACEOF
34015 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34016 _ACEOF
34017
34018
34019 cat >>confdefs.h <<_ACEOF
34020 #define LLVM_DATADIR "$LLVM_DATADIR"
34021 _ACEOF
34022
34023
34024 cat >>confdefs.h <<_ACEOF
34025 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34026 _ACEOF
34027
34028
34029 cat >>confdefs.h <<_ACEOF
34030 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34031 _ACEOF
34032
34033
34034 cat >>confdefs.h <<_ACEOF
34035 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34036 _ACEOF
34037
34038
34039 cat >>confdefs.h <<_ACEOF
34040 #define LLVM_INFODIR "$LLVM_INFODIR"
34041 _ACEOF
34042
34043
34044 cat >>confdefs.h <<_ACEOF
34045 #define LLVM_MANDIR "$LLVM_MANDIR"
34046 _ACEOF
34047
34048
34049 cat >>confdefs.h <<_ACEOF
34050 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34051 _ACEOF
34052
34053
34054 cat >>confdefs.h <<_ACEOF
34055 #define LLVM_HOSTTRIPLE "$host"
34056 _ACEOF
34057
34058
34059 # Determine which bindings to build.
34060 if test "$BINDINGS_TO_BUILD" = auto ; then
34061   BINDINGS_TO_BUILD=""
34062   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34063     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34064   fi
34065 fi
34066 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34067
34068
34069 # This isn't really configurey, but it avoids having to repeat the list in
34070 # other files.
34071 ALL_BINDINGS=ocaml
34072
34073
34074 # Do any work necessary to ensure that bindings have what they need.
34075 binding_prereqs_failed=0
34076 for a_binding in $BINDINGS_TO_BUILD ; do
34077   case "$a_binding" in
34078   ocaml)
34079     if test "x$OCAMLC" = x ; then
34080       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34081 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34082       binding_prereqs_failed=1
34083     fi
34084     if test "x$OCAMLDEP" = x ; then
34085       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34086 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34087       binding_prereqs_failed=1
34088     fi
34089     if test "x$OCAMLOPT" = x ; then
34090       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34091 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34092           fi
34093     if test "x$with_ocaml_libdir" != xauto ; then
34094       OCAML_LIBDIR=$with_ocaml_libdir
34095
34096     else
34097       ocaml_stdlib="`"$OCAMLC" -where`"
34098       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34099       then
34100         # ocaml stdlib is beneath our prefix; use stdlib
34101         OCAML_LIBDIR=$ocaml_stdlib
34102
34103       else
34104         # ocaml stdlib is outside our prefix; use libdir/ocaml
34105         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34106
34107       fi
34108     fi
34109     ;;
34110   esac
34111 done
34112 if test "$binding_prereqs_failed" = 1 ; then
34113   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34114 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34115    { (exit 1); exit 1; }; }
34116 fi
34117
34118 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34119 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34120 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34121   echo $ECHO_N "(cached) $ECHO_C" >&6
34122 else
34123    ac_ext=cpp
34124 ac_cpp='$CXXCPP $CPPFLAGS'
34125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34128
34129   oldcxxflags="$CXXFLAGS"
34130   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34131   cat >conftest.$ac_ext <<_ACEOF
34132 /* confdefs.h.  */
34133 _ACEOF
34134 cat confdefs.h >>conftest.$ac_ext
34135 cat >>conftest.$ac_ext <<_ACEOF
34136 /* end confdefs.h.  */
34137
34138 int
34139 main ()
34140 {
34141
34142   ;
34143   return 0;
34144 }
34145 _ACEOF
34146 rm -f conftest.$ac_objext
34147 if { (ac_try="$ac_compile"
34148 case "(($ac_try" in
34149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150   *) ac_try_echo=$ac_try;;
34151 esac
34152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34153   (eval "$ac_compile") 2>conftest.er1
34154   ac_status=$?
34155   grep -v '^ *+' conftest.er1 >conftest.err
34156   rm -f conftest.er1
34157   cat conftest.err >&5
34158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159   (exit $ac_status); } &&
34160          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34161   { (case "(($ac_try" in
34162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34163   *) ac_try_echo=$ac_try;;
34164 esac
34165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34166   (eval "$ac_try") 2>&5
34167   ac_status=$?
34168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169   (exit $ac_status); }; } &&
34170          { ac_try='test -s conftest.$ac_objext'
34171   { (case "(($ac_try" in
34172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34173   *) ac_try_echo=$ac_try;;
34174 esac
34175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34176   (eval "$ac_try") 2>&5
34177   ac_status=$?
34178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179   (exit $ac_status); }; }; then
34180   llvm_cv_cxx_visibility_inlines_hidden=yes
34181 else
34182   echo "$as_me: failed program was:" >&5
34183 sed 's/^/| /' conftest.$ac_ext >&5
34184
34185         llvm_cv_cxx_visibility_inlines_hidden=no
34186 fi
34187
34188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34189   CXXFLAGS="$oldcxxflags"
34190   ac_ext=c
34191 ac_cpp='$CPP $CPPFLAGS'
34192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34195
34196
34197 fi
34198 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34199 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34200 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34201   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34202
34203 else
34204   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34205
34206 fi
34207
34208
34209 if test "$llvm_cv_link_use_r" = "yes" ; then
34210   RPATH="-Wl,-R"
34211 else
34212   RPATH="-Wl,-rpath"
34213 fi
34214
34215
34216 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34217   RDYNAMIC="-Wl,-export-dynamic"
34218 else
34219   RDYNAMIC=""
34220 fi
34221
34222
34223
34224 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34225
34226 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34227
34228 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34229
34230
34231 ac_config_files="$ac_config_files Makefile.config"
34232
34233
34234 ac_config_files="$ac_config_files llvm.spec"
34235
34236
34237 ac_config_files="$ac_config_files docs/doxygen.cfg"
34238
34239
34240 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34241
34242
34243 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34244
34245
34246 ac_config_commands="$ac_config_commands setup"
34247
34248 ac_config_commands="$ac_config_commands Makefile"
34249
34250
34251 ac_config_commands="$ac_config_commands Makefile.common"
34252
34253
34254 ac_config_commands="$ac_config_commands examples/Makefile"
34255
34256
34257 ac_config_commands="$ac_config_commands lib/Makefile"
34258
34259
34260 ac_config_commands="$ac_config_commands runtime/Makefile"
34261
34262
34263 ac_config_commands="$ac_config_commands test/Makefile"
34264
34265
34266 ac_config_commands="$ac_config_commands test/Makefile.tests"
34267
34268
34269 ac_config_commands="$ac_config_commands unittests/Makefile"
34270
34271
34272 ac_config_commands="$ac_config_commands tools/Makefile"
34273
34274
34275 ac_config_commands="$ac_config_commands utils/Makefile"
34276
34277
34278 ac_config_commands="$ac_config_commands projects/Makefile"
34279
34280
34281 ac_config_commands="$ac_config_commands bindings/Makefile"
34282
34283
34284 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34285
34286
34287
34288 cat >confcache <<\_ACEOF
34289 # This file is a shell script that caches the results of configure
34290 # tests run on this system so they can be shared between configure
34291 # scripts and configure runs, see configure's option --config-cache.
34292 # It is not useful on other systems.  If it contains results you don't
34293 # want to keep, you may remove or edit it.
34294 #
34295 # config.status only pays attention to the cache file if you give it
34296 # the --recheck option to rerun configure.
34297 #
34298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34300 # following values.
34301
34302 _ACEOF
34303
34304 # The following way of writing the cache mishandles newlines in values,
34305 # but we know of no workaround that is simple, portable, and efficient.
34306 # So, we kill variables containing newlines.
34307 # Ultrix sh set writes to stderr and can't be redirected directly,
34308 # and sets the high bit in the cache file unless we assign to the vars.
34309 (
34310   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34311     eval ac_val=\$$ac_var
34312     case $ac_val in #(
34313     *${as_nl}*)
34314       case $ac_var in #(
34315       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34316 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34317       esac
34318       case $ac_var in #(
34319       _ | IFS | as_nl) ;; #(
34320       *) $as_unset $ac_var ;;
34321       esac ;;
34322     esac
34323   done
34324
34325   (set) 2>&1 |
34326     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34327     *${as_nl}ac_space=\ *)
34328       # `set' does not quote correctly, so add quotes (double-quote
34329       # substitution turns \\\\ into \\, and sed turns \\ into \).
34330       sed -n \
34331         "s/'/'\\\\''/g;
34332           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34333       ;; #(
34334     *)
34335       # `set' quotes correctly as required by POSIX, so do not add quotes.
34336       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34337       ;;
34338     esac |
34339     sort
34340 ) |
34341   sed '
34342      /^ac_cv_env_/b end
34343      t clear
34344      :clear
34345      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34346      t end
34347      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34348      :end' >>confcache
34349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34350   if test -w "$cache_file"; then
34351     test "x$cache_file" != "x/dev/null" &&
34352       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34353 echo "$as_me: updating cache $cache_file" >&6;}
34354     cat confcache >$cache_file
34355   else
34356     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34357 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34358   fi
34359 fi
34360 rm -f confcache
34361
34362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34363 # Let make expand exec_prefix.
34364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34365
34366 DEFS=-DHAVE_CONFIG_H
34367
34368 ac_libobjs=
34369 ac_ltlibobjs=
34370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34371   # 1. Remove the extension, and $U if already installed.
34372   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34373   ac_i=`echo "$ac_i" | sed "$ac_script"`
34374   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34375   #    will be set to the directory where LIBOBJS objects are built.
34376   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34377   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34378 done
34379 LIBOBJS=$ac_libobjs
34380
34381 LTLIBOBJS=$ac_ltlibobjs
34382
34383
34384 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34385   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34386 Usually this means the macro was only invoked conditionally." >&5
34387 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34388 Usually this means the macro was only invoked conditionally." >&2;}
34389    { (exit 1); exit 1; }; }
34390 fi
34391 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34392   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34393 Usually this means the macro was only invoked conditionally." >&5
34394 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34395 Usually this means the macro was only invoked conditionally." >&2;}
34396    { (exit 1); exit 1; }; }
34397 fi
34398
34399 : ${CONFIG_STATUS=./config.status}
34400 ac_clean_files_save=$ac_clean_files
34401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34402 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34403 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34404 cat >$CONFIG_STATUS <<_ACEOF
34405 #! $SHELL
34406 # Generated by $as_me.
34407 # Run this file to recreate the current configuration.
34408 # Compiler output produced by configure, useful for debugging
34409 # configure, is in config.log if it exists.
34410
34411 debug=false
34412 ac_cs_recheck=false
34413 ac_cs_silent=false
34414 SHELL=\${CONFIG_SHELL-$SHELL}
34415 _ACEOF
34416
34417 cat >>$CONFIG_STATUS <<\_ACEOF
34418 ## --------------------- ##
34419 ## M4sh Initialization.  ##
34420 ## --------------------- ##
34421
34422 # Be Bourne compatible
34423 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34424   emulate sh
34425   NULLCMD=:
34426   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34427   # is contrary to our usage.  Disable this feature.
34428   alias -g '${1+"$@"}'='"$@"'
34429   setopt NO_GLOB_SUBST
34430 else
34431   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34432 fi
34433 BIN_SH=xpg4; export BIN_SH # for Tru64
34434 DUALCASE=1; export DUALCASE # for MKS sh
34435
34436
34437 # PATH needs CR
34438 # Avoid depending upon Character Ranges.
34439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34442 as_cr_digits='0123456789'
34443 as_cr_alnum=$as_cr_Letters$as_cr_digits
34444
34445 # The user is always right.
34446 if test "${PATH_SEPARATOR+set}" != set; then
34447   echo "#! /bin/sh" >conf$$.sh
34448   echo  "exit 0"   >>conf$$.sh
34449   chmod +x conf$$.sh
34450   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34451     PATH_SEPARATOR=';'
34452   else
34453     PATH_SEPARATOR=:
34454   fi
34455   rm -f conf$$.sh
34456 fi
34457
34458 # Support unset when possible.
34459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34460   as_unset=unset
34461 else
34462   as_unset=false
34463 fi
34464
34465
34466 # IFS
34467 # We need space, tab and new line, in precisely that order.  Quoting is
34468 # there to prevent editors from complaining about space-tab.
34469 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34470 # splitting by setting IFS to empty value.)
34471 as_nl='
34472 '
34473 IFS=" ""        $as_nl"
34474
34475 # Find who we are.  Look in the path if we contain no directory separator.
34476 case $0 in
34477   *[\\/]* ) as_myself=$0 ;;
34478   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34479 for as_dir in $PATH
34480 do
34481   IFS=$as_save_IFS
34482   test -z "$as_dir" && as_dir=.
34483   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34484 done
34485 IFS=$as_save_IFS
34486
34487      ;;
34488 esac
34489 # We did not find ourselves, most probably we were run as `sh COMMAND'
34490 # in which case we are not to be found in the path.
34491 if test "x$as_myself" = x; then
34492   as_myself=$0
34493 fi
34494 if test ! -f "$as_myself"; then
34495   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34496   { (exit 1); exit 1; }
34497 fi
34498
34499 # Work around bugs in pre-3.0 UWIN ksh.
34500 for as_var in ENV MAIL MAILPATH
34501 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34502 done
34503 PS1='$ '
34504 PS2='> '
34505 PS4='+ '
34506
34507 # NLS nuisances.
34508 for as_var in \
34509   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34510   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34511   LC_TELEPHONE LC_TIME
34512 do
34513   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34514     eval $as_var=C; export $as_var
34515   else
34516     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34517   fi
34518 done
34519
34520 # Required to use basename.
34521 if expr a : '\(a\)' >/dev/null 2>&1 &&
34522    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34523   as_expr=expr
34524 else
34525   as_expr=false
34526 fi
34527
34528 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34529   as_basename=basename
34530 else
34531   as_basename=false
34532 fi
34533
34534
34535 # Name of the executable.
34536 as_me=`$as_basename -- "$0" ||
34537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34538          X"$0" : 'X\(//\)$' \| \
34539          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34540 echo X/"$0" |
34541     sed '/^.*\/\([^/][^/]*\)\/*$/{
34542             s//\1/
34543             q
34544           }
34545           /^X\/\(\/\/\)$/{
34546             s//\1/
34547             q
34548           }
34549           /^X\/\(\/\).*/{
34550             s//\1/
34551             q
34552           }
34553           s/.*/./; q'`
34554
34555 # CDPATH.
34556 $as_unset CDPATH
34557
34558
34559
34560   as_lineno_1=$LINENO
34561   as_lineno_2=$LINENO
34562   test "x$as_lineno_1" != "x$as_lineno_2" &&
34563   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34564
34565   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34566   # uniformly replaced by the line number.  The first 'sed' inserts a
34567   # line-number line after each line using $LINENO; the second 'sed'
34568   # does the real work.  The second script uses 'N' to pair each
34569   # line-number line with the line containing $LINENO, and appends
34570   # trailing '-' during substitution so that $LINENO is not a special
34571   # case at line end.
34572   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34573   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34574   # E. McMahon (1931-1989) for sed's syntax.  :-)
34575   sed -n '
34576     p
34577     /[$]LINENO/=
34578   ' <$as_myself |
34579     sed '
34580       s/[$]LINENO.*/&-/
34581       t lineno
34582       b
34583       :lineno
34584       N
34585       :loop
34586       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34587       t loop
34588       s/-\n.*//
34589     ' >$as_me.lineno &&
34590   chmod +x "$as_me.lineno" ||
34591     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34592    { (exit 1); exit 1; }; }
34593
34594   # Don't try to exec as it changes $[0], causing all sort of problems
34595   # (the dirname of $[0] is not the place where we might find the
34596   # original and so on.  Autoconf is especially sensitive to this).
34597   . "./$as_me.lineno"
34598   # Exit status is that of the last command.
34599   exit
34600 }
34601
34602
34603 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34604   as_dirname=dirname
34605 else
34606   as_dirname=false
34607 fi
34608
34609 ECHO_C= ECHO_N= ECHO_T=
34610 case `echo -n x` in
34611 -n*)
34612   case `echo 'x\c'` in
34613   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34614   *)   ECHO_C='\c';;
34615   esac;;
34616 *)
34617   ECHO_N='-n';;
34618 esac
34619
34620 if expr a : '\(a\)' >/dev/null 2>&1 &&
34621    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34622   as_expr=expr
34623 else
34624   as_expr=false
34625 fi
34626
34627 rm -f conf$$ conf$$.exe conf$$.file
34628 if test -d conf$$.dir; then
34629   rm -f conf$$.dir/conf$$.file
34630 else
34631   rm -f conf$$.dir
34632   mkdir conf$$.dir
34633 fi
34634 echo >conf$$.file
34635 if ln -s conf$$.file conf$$ 2>/dev/null; then
34636   as_ln_s='ln -s'
34637   # ... but there are two gotchas:
34638   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34639   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34640   # In both cases, we have to default to `cp -p'.
34641   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34642     as_ln_s='cp -p'
34643 elif ln conf$$.file conf$$ 2>/dev/null; then
34644   as_ln_s=ln
34645 else
34646   as_ln_s='cp -p'
34647 fi
34648 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34649 rmdir conf$$.dir 2>/dev/null
34650
34651 if mkdir -p . 2>/dev/null; then
34652   as_mkdir_p=:
34653 else
34654   test -d ./-p && rmdir ./-p
34655   as_mkdir_p=false
34656 fi
34657
34658 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34659 # systems may use methods other than mode bits to determine executability.
34660 cat >conf$$.file <<_ASEOF
34661 #! /bin/sh
34662 exit 0
34663 _ASEOF
34664 chmod +x conf$$.file
34665 if test -x conf$$.file >/dev/null 2>&1; then
34666   as_executable_p="test -x"
34667 else
34668   as_executable_p=:
34669 fi
34670 rm -f conf$$.file
34671
34672 # Sed expression to map a string onto a valid CPP name.
34673 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34674
34675 # Sed expression to map a string onto a valid variable name.
34676 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34677
34678
34679 exec 6>&1
34680
34681 # Save the log message, to keep $[0] and so on meaningful, and to
34682 # report actual input values of CONFIG_FILES etc. instead of their
34683 # values after options handling.
34684 ac_log="
34685 This file was extended by llvm $as_me 2.6svn, which was
34686 generated by GNU Autoconf 2.60.  Invocation command line was
34687
34688   CONFIG_FILES    = $CONFIG_FILES
34689   CONFIG_HEADERS  = $CONFIG_HEADERS
34690   CONFIG_LINKS    = $CONFIG_LINKS
34691   CONFIG_COMMANDS = $CONFIG_COMMANDS
34692   $ $0 $@
34693
34694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34695 "
34696
34697 _ACEOF
34698
34699 cat >>$CONFIG_STATUS <<_ACEOF
34700 # Files that config.status was made for.
34701 config_files="$ac_config_files"
34702 config_headers="$ac_config_headers"
34703 config_commands="$ac_config_commands"
34704
34705 _ACEOF
34706
34707 cat >>$CONFIG_STATUS <<\_ACEOF
34708 ac_cs_usage="\
34709 \`$as_me' instantiates files from templates according to the
34710 current configuration.
34711
34712 Usage: $0 [OPTIONS] [FILE]...
34713
34714   -h, --help       print this help, then exit
34715   -V, --version    print version number, then exit
34716   -q, --quiet      do not print progress messages
34717   -d, --debug      don't remove temporary files
34718       --recheck    update $as_me by reconfiguring in the same conditions
34719   --file=FILE[:TEMPLATE]
34720                    instantiate the configuration file FILE
34721   --header=FILE[:TEMPLATE]
34722                    instantiate the configuration header FILE
34723
34724 Configuration files:
34725 $config_files
34726
34727 Configuration headers:
34728 $config_headers
34729
34730 Configuration commands:
34731 $config_commands
34732
34733 Report bugs to <bug-autoconf@gnu.org>."
34734
34735 _ACEOF
34736 cat >>$CONFIG_STATUS <<_ACEOF
34737 ac_cs_version="\\
34738 llvm config.status 2.6svn
34739 configured by $0, generated by GNU Autoconf 2.60,
34740   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34741
34742 Copyright (C) 2006 Free Software Foundation, Inc.
34743 This config.status script is free software; the Free Software Foundation
34744 gives unlimited permission to copy, distribute and modify it."
34745
34746 ac_pwd='$ac_pwd'
34747 srcdir='$srcdir'
34748 INSTALL='$INSTALL'
34749 _ACEOF
34750
34751 cat >>$CONFIG_STATUS <<\_ACEOF
34752 # If no file are specified by the user, then we need to provide default
34753 # value.  By we need to know if files were specified by the user.
34754 ac_need_defaults=:
34755 while test $# != 0
34756 do
34757   case $1 in
34758   --*=*)
34759     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34760     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34761     ac_shift=:
34762     ;;
34763   *)
34764     ac_option=$1
34765     ac_optarg=$2
34766     ac_shift=shift
34767     ;;
34768   esac
34769
34770   case $ac_option in
34771   # Handling of the options.
34772   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34773     ac_cs_recheck=: ;;
34774   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34775     echo "$ac_cs_version"; exit ;;
34776   --debug | --debu | --deb | --de | --d | -d )
34777     debug=: ;;
34778   --file | --fil | --fi | --f )
34779     $ac_shift
34780     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34781     ac_need_defaults=false;;
34782   --header | --heade | --head | --hea )
34783     $ac_shift
34784     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34785     ac_need_defaults=false;;
34786   --he | --h)
34787     # Conflict between --help and --header
34788     { echo "$as_me: error: ambiguous option: $1
34789 Try \`$0 --help' for more information." >&2
34790    { (exit 1); exit 1; }; };;
34791   --help | --hel | -h )
34792     echo "$ac_cs_usage"; exit ;;
34793   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34794   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34795     ac_cs_silent=: ;;
34796
34797   # This is an error.
34798   -*) { echo "$as_me: error: unrecognized option: $1
34799 Try \`$0 --help' for more information." >&2
34800    { (exit 1); exit 1; }; } ;;
34801
34802   *) ac_config_targets="$ac_config_targets $1"
34803      ac_need_defaults=false ;;
34804
34805   esac
34806   shift
34807 done
34808
34809 ac_configure_extra_args=
34810
34811 if $ac_cs_silent; then
34812   exec 6>/dev/null
34813   ac_configure_extra_args="$ac_configure_extra_args --silent"
34814 fi
34815
34816 _ACEOF
34817 cat >>$CONFIG_STATUS <<_ACEOF
34818 if \$ac_cs_recheck; then
34819   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34820   CONFIG_SHELL=$SHELL
34821   export CONFIG_SHELL
34822   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34823 fi
34824
34825 _ACEOF
34826 cat >>$CONFIG_STATUS <<\_ACEOF
34827 exec 5>>config.log
34828 {
34829   echo
34830   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34831 ## Running $as_me. ##
34832 _ASBOX
34833   echo "$ac_log"
34834 } >&5
34835
34836 _ACEOF
34837 cat >>$CONFIG_STATUS <<_ACEOF
34838 #
34839 # INIT-COMMANDS
34840 #
34841 llvm_src="${srcdir}"
34842
34843 _ACEOF
34844
34845 cat >>$CONFIG_STATUS <<\_ACEOF
34846
34847 # Handling of arguments.
34848 for ac_config_target in $ac_config_targets
34849 do
34850   case $ac_config_target in
34851     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34852     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34853     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34854     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34855     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34856     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34857     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34858     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34859     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34860     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34861     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34862     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34863     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34864     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34865     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34866     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34867     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34868     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34869     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34870     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34871     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34872     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34873
34874   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34875 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34876    { (exit 1); exit 1; }; };;
34877   esac
34878 done
34879
34880
34881 # If the user did not use the arguments to specify the items to instantiate,
34882 # then the envvar interface is used.  Set only those that are not.
34883 # We use the long form for the default assignment because of an extremely
34884 # bizarre bug on SunOS 4.1.3.
34885 if $ac_need_defaults; then
34886   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34887   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34888   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34889 fi
34890
34891 # Have a temporary directory for convenience.  Make it in the build tree
34892 # simply because there is no reason against having it here, and in addition,
34893 # creating and moving files from /tmp can sometimes cause problems.
34894 # Hook for its removal unless debugging.
34895 # Note that there is a small window in which the directory will not be cleaned:
34896 # after its creation but before its name has been assigned to `$tmp'.
34897 $debug ||
34898 {
34899   tmp=
34900   trap 'exit_status=$?
34901   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34902 ' 0
34903   trap '{ (exit 1); exit 1; }' 1 2 13 15
34904 }
34905 # Create a (secure) tmp directory for tmp files.
34906
34907 {
34908   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34909   test -n "$tmp" && test -d "$tmp"
34910 }  ||
34911 {
34912   tmp=./conf$$-$RANDOM
34913   (umask 077 && mkdir "$tmp")
34914 } ||
34915 {
34916    echo "$me: cannot create a temporary directory in ." >&2
34917    { (exit 1); exit 1; }
34918 }
34919
34920 #
34921 # Set up the sed scripts for CONFIG_FILES section.
34922 #
34923
34924 # No need to generate the scripts if there are no CONFIG_FILES.
34925 # This happens for instance when ./config.status config.h
34926 if test -n "$CONFIG_FILES"; then
34927
34928 _ACEOF
34929
34930
34931
34932 ac_delim='%!_!# '
34933 for ac_last_try in false false false false false :; do
34934   cat >conf$$subs.sed <<_ACEOF
34935 SHELL!$SHELL$ac_delim
34936 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34937 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34938 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34939 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34940 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34941 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34942 exec_prefix!$exec_prefix$ac_delim
34943 prefix!$prefix$ac_delim
34944 program_transform_name!$program_transform_name$ac_delim
34945 bindir!$bindir$ac_delim
34946 sbindir!$sbindir$ac_delim
34947 libexecdir!$libexecdir$ac_delim
34948 datarootdir!$datarootdir$ac_delim
34949 datadir!$datadir$ac_delim
34950 sysconfdir!$sysconfdir$ac_delim
34951 sharedstatedir!$sharedstatedir$ac_delim
34952 localstatedir!$localstatedir$ac_delim
34953 includedir!$includedir$ac_delim
34954 oldincludedir!$oldincludedir$ac_delim
34955 docdir!$docdir$ac_delim
34956 infodir!$infodir$ac_delim
34957 htmldir!$htmldir$ac_delim
34958 dvidir!$dvidir$ac_delim
34959 pdfdir!$pdfdir$ac_delim
34960 psdir!$psdir$ac_delim
34961 libdir!$libdir$ac_delim
34962 localedir!$localedir$ac_delim
34963 mandir!$mandir$ac_delim
34964 DEFS!$DEFS$ac_delim
34965 ECHO_C!$ECHO_C$ac_delim
34966 ECHO_N!$ECHO_N$ac_delim
34967 ECHO_T!$ECHO_T$ac_delim
34968 LIBS!$LIBS$ac_delim
34969 build_alias!$build_alias$ac_delim
34970 host_alias!$host_alias$ac_delim
34971 target_alias!$target_alias$ac_delim
34972 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34973 subdirs!$subdirs$ac_delim
34974 build!$build$ac_delim
34975 build_cpu!$build_cpu$ac_delim
34976 build_vendor!$build_vendor$ac_delim
34977 build_os!$build_os$ac_delim
34978 host!$host$ac_delim
34979 host_cpu!$host_cpu$ac_delim
34980 host_vendor!$host_vendor$ac_delim
34981 host_os!$host_os$ac_delim
34982 target!$target$ac_delim
34983 target_cpu!$target_cpu$ac_delim
34984 target_vendor!$target_vendor$ac_delim
34985 target_os!$target_os$ac_delim
34986 OS!$OS$ac_delim
34987 LINKALL!$LINKALL$ac_delim
34988 NOLINKALL!$NOLINKALL$ac_delim
34989 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34990 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34991 ARCH!$ARCH$ac_delim
34992 ENDIAN!$ENDIAN$ac_delim
34993 CC!$CC$ac_delim
34994 CFLAGS!$CFLAGS$ac_delim
34995 LDFLAGS!$LDFLAGS$ac_delim
34996 CPPFLAGS!$CPPFLAGS$ac_delim
34997 ac_ct_CC!$ac_ct_CC$ac_delim
34998 EXEEXT!$EXEEXT$ac_delim
34999 OBJEXT!$OBJEXT$ac_delim
35000 CPP!$CPP$ac_delim
35001 GREP!$GREP$ac_delim
35002 EGREP!$EGREP$ac_delim
35003 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35004 BUILD_CC!$BUILD_CC$ac_delim
35005 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35006 BUILD_CXX!$BUILD_CXX$ac_delim
35007 CVSBUILD!$CVSBUILD$ac_delim
35008 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35009 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35010 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35011 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35012 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35013 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35014 JIT!$JIT$ac_delim
35015 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35016 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35017 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35018 ENABLE_PIC!$ENABLE_PIC$ac_delim
35019 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35020 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35021 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35022 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35023 CXX!$CXX$ac_delim
35024 CXXFLAGS!$CXXFLAGS$ac_delim
35025 ac_ct_CXX!$ac_ct_CXX$ac_delim
35026 NM!$NM$ac_delim
35027 ifGNUmake!$ifGNUmake$ac_delim
35028 LN_S!$LN_S$ac_delim
35029 CMP!$CMP$ac_delim
35030 CP!$CP$ac_delim
35031 DATE!$DATE$ac_delim
35032 _ACEOF
35033
35034   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35035     break
35036   elif $ac_last_try; then
35037     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35038 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35039    { (exit 1); exit 1; }; }
35040   else
35041     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35042   fi
35043 done
35044
35045 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35046 if test -n "$ac_eof"; then
35047   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35048   ac_eof=`expr $ac_eof + 1`
35049 fi
35050
35051 cat >>$CONFIG_STATUS <<_ACEOF
35052 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35054 _ACEOF
35055 sed '
35056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35057 s/^/s,@/; s/!/@,|#_!!_#|/
35058 :n
35059 t n
35060 s/'"$ac_delim"'$/,g/; t
35061 s/$/\\/; p
35062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35063 ' >>$CONFIG_STATUS <conf$$subs.sed
35064 rm -f conf$$subs.sed
35065 cat >>$CONFIG_STATUS <<_ACEOF
35066 CEOF$ac_eof
35067 _ACEOF
35068
35069
35070 ac_delim='%!_!# '
35071 for ac_last_try in false false false false false :; do
35072   cat >conf$$subs.sed <<_ACEOF
35073 FIND!$FIND$ac_delim
35074 MKDIR!$MKDIR$ac_delim
35075 MV!$MV$ac_delim
35076 RANLIB!$RANLIB$ac_delim
35077 RM!$RM$ac_delim
35078 SED!$SED$ac_delim
35079 TAR!$TAR$ac_delim
35080 BINPWD!$BINPWD$ac_delim
35081 GRAPHVIZ!$GRAPHVIZ$ac_delim
35082 DOT!$DOT$ac_delim
35083 GV!$GV$ac_delim
35084 DOTTY!$DOTTY$ac_delim
35085 PERL!$PERL$ac_delim
35086 HAVE_PERL!$HAVE_PERL$ac_delim
35087 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35088 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35089 INSTALL_DATA!$INSTALL_DATA$ac_delim
35090 BZIP2!$BZIP2$ac_delim
35091 DOXYGEN!$DOXYGEN$ac_delim
35092 GROFF!$GROFF$ac_delim
35093 GZIP!$GZIP$ac_delim
35094 POD2HTML!$POD2HTML$ac_delim
35095 POD2MAN!$POD2MAN$ac_delim
35096 RUNTEST!$RUNTEST$ac_delim
35097 TCLSH!$TCLSH$ac_delim
35098 ZIP!$ZIP$ac_delim
35099 OCAMLC!$OCAMLC$ac_delim
35100 OCAMLOPT!$OCAMLOPT$ac_delim
35101 OCAMLDEP!$OCAMLDEP$ac_delim
35102 OCAMLDOC!$OCAMLDOC$ac_delim
35103 GAS!$GAS$ac_delim
35104 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35105 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35106 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35107 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35108 LIBADD_DL!$LIBADD_DL$ac_delim
35109 ECHO!$ECHO$ac_delim
35110 AR!$AR$ac_delim
35111 STRIP!$STRIP$ac_delim
35112 CXXCPP!$CXXCPP$ac_delim
35113 F77!$F77$ac_delim
35114 FFLAGS!$FFLAGS$ac_delim
35115 ac_ct_F77!$ac_ct_F77$ac_delim
35116 LIBTOOL!$LIBTOOL$ac_delim
35117 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35118 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35119 LLVMGCC!$LLVMGCC$ac_delim
35120 LLVMGXX!$LLVMGXX$ac_delim
35121 USE_UDIS86!$USE_UDIS86$ac_delim
35122 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35123 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35124 ALLOCA!$ALLOCA$ac_delim
35125 MMAP_FILE!$MMAP_FILE$ac_delim
35126 LLVMCC1!$LLVMCC1$ac_delim
35127 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35128 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35129 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35130 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35131 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35132 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35133 SHLIBEXT!$SHLIBEXT$ac_delim
35134 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35135 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35136 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35137 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35138 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35139 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35140 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35141 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35142 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35143 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35144 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35145 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35146 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35147 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35148 RPATH!$RPATH$ac_delim
35149 RDYNAMIC!$RDYNAMIC$ac_delim
35150 LIBOBJS!$LIBOBJS$ac_delim
35151 LTLIBOBJS!$LTLIBOBJS$ac_delim
35152 _ACEOF
35153
35154   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35155     break
35156   elif $ac_last_try; then
35157     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35159    { (exit 1); exit 1; }; }
35160   else
35161     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35162   fi
35163 done
35164
35165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35166 if test -n "$ac_eof"; then
35167   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35168   ac_eof=`expr $ac_eof + 1`
35169 fi
35170
35171 cat >>$CONFIG_STATUS <<_ACEOF
35172 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35174 _ACEOF
35175 sed '
35176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35177 s/^/s,@/; s/!/@,|#_!!_#|/
35178 :n
35179 t n
35180 s/'"$ac_delim"'$/,g/; t
35181 s/$/\\/; p
35182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35183 ' >>$CONFIG_STATUS <conf$$subs.sed
35184 rm -f conf$$subs.sed
35185 cat >>$CONFIG_STATUS <<_ACEOF
35186 :end
35187 s/|#_!!_#|//g
35188 CEOF$ac_eof
35189 _ACEOF
35190
35191
35192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35194 # trailing colons and then remove the whole line if VPATH becomes empty
35195 # (actually we leave an empty line to preserve line numbers).
35196 if test "x$srcdir" = x.; then
35197   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35198 s/:*\$(srcdir):*/:/
35199 s/:*\${srcdir}:*/:/
35200 s/:*@srcdir@:*/:/
35201 s/^\([^=]*=[     ]*\):*/\1/
35202 s/:*$//
35203 s/^[^=]*=[       ]*$//
35204 }'
35205 fi
35206
35207 cat >>$CONFIG_STATUS <<\_ACEOF
35208 fi # test -n "$CONFIG_FILES"
35209
35210
35211 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35212 do
35213   case $ac_tag in
35214   :[FHLC]) ac_mode=$ac_tag; continue;;
35215   esac
35216   case $ac_mode$ac_tag in
35217   :[FHL]*:*);;
35218   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35219 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35220    { (exit 1); exit 1; }; };;
35221   :[FH]-) ac_tag=-:-;;
35222   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35223   esac
35224   ac_save_IFS=$IFS
35225   IFS=:
35226   set x $ac_tag
35227   IFS=$ac_save_IFS
35228   shift
35229   ac_file=$1
35230   shift
35231
35232   case $ac_mode in
35233   :L) ac_source=$1;;
35234   :[FH])
35235     ac_file_inputs=
35236     for ac_f
35237     do
35238       case $ac_f in
35239       -) ac_f="$tmp/stdin";;
35240       *) # Look for the file first in the build tree, then in the source tree
35241          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35242          # because $ac_f cannot contain `:'.
35243          test -f "$ac_f" ||
35244            case $ac_f in
35245            [\\/$]*) false;;
35246            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35247            esac ||
35248            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35249 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35250    { (exit 1); exit 1; }; };;
35251       esac
35252       ac_file_inputs="$ac_file_inputs $ac_f"
35253     done
35254
35255     # Let's still pretend it is `configure' which instantiates (i.e., don't
35256     # use $as_me), people would be surprised to read:
35257     #    /* config.h.  Generated by config.status.  */
35258     configure_input="Generated from "`IFS=:
35259           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35260     if test x"$ac_file" != x-; then
35261       configure_input="$ac_file.  $configure_input"
35262       { echo "$as_me:$LINENO: creating $ac_file" >&5
35263 echo "$as_me: creating $ac_file" >&6;}
35264     fi
35265
35266     case $ac_tag in
35267     *:-:* | *:-) cat >"$tmp/stdin";;
35268     esac
35269     ;;
35270   esac
35271
35272   ac_dir=`$as_dirname -- "$ac_file" ||
35273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35274          X"$ac_file" : 'X\(//\)[^/]' \| \
35275          X"$ac_file" : 'X\(//\)$' \| \
35276          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35277 echo X"$ac_file" |
35278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35279             s//\1/
35280             q
35281           }
35282           /^X\(\/\/\)[^/].*/{
35283             s//\1/
35284             q
35285           }
35286           /^X\(\/\/\)$/{
35287             s//\1/
35288             q
35289           }
35290           /^X\(\/\).*/{
35291             s//\1/
35292             q
35293           }
35294           s/.*/./; q'`
35295   { as_dir="$ac_dir"
35296   case $as_dir in #(
35297   -*) as_dir=./$as_dir;;
35298   esac
35299   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35300     as_dirs=
35301     while :; do
35302       case $as_dir in #(
35303       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35304       *) as_qdir=$as_dir;;
35305       esac
35306       as_dirs="'$as_qdir' $as_dirs"
35307       as_dir=`$as_dirname -- "$as_dir" ||
35308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35309          X"$as_dir" : 'X\(//\)[^/]' \| \
35310          X"$as_dir" : 'X\(//\)$' \| \
35311          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35312 echo X"$as_dir" |
35313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35314             s//\1/
35315             q
35316           }
35317           /^X\(\/\/\)[^/].*/{
35318             s//\1/
35319             q
35320           }
35321           /^X\(\/\/\)$/{
35322             s//\1/
35323             q
35324           }
35325           /^X\(\/\).*/{
35326             s//\1/
35327             q
35328           }
35329           s/.*/./; q'`
35330       test -d "$as_dir" && break
35331     done
35332     test -z "$as_dirs" || eval "mkdir $as_dirs"
35333   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35334 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35335    { (exit 1); exit 1; }; }; }
35336   ac_builddir=.
35337
35338 case "$ac_dir" in
35339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35340 *)
35341   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35342   # A ".." for each directory in $ac_dir_suffix.
35343   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35344   case $ac_top_builddir_sub in
35345   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35346   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35347   esac ;;
35348 esac
35349 ac_abs_top_builddir=$ac_pwd
35350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35351 # for backward compatibility:
35352 ac_top_builddir=$ac_top_build_prefix
35353
35354 case $srcdir in
35355   .)  # We are building in place.
35356     ac_srcdir=.
35357     ac_top_srcdir=$ac_top_builddir_sub
35358     ac_abs_top_srcdir=$ac_pwd ;;
35359   [\\/]* | ?:[\\/]* )  # Absolute name.
35360     ac_srcdir=$srcdir$ac_dir_suffix;
35361     ac_top_srcdir=$srcdir
35362     ac_abs_top_srcdir=$srcdir ;;
35363   *) # Relative name.
35364     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35365     ac_top_srcdir=$ac_top_build_prefix$srcdir
35366     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35367 esac
35368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35369
35370
35371   case $ac_mode in
35372   :F)
35373   #
35374   # CONFIG_FILE
35375   #
35376
35377   case $INSTALL in
35378   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35379   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35380   esac
35381 _ACEOF
35382
35383 cat >>$CONFIG_STATUS <<\_ACEOF
35384 # If the template does not know about datarootdir, expand it.
35385 # FIXME: This hack should be removed a few years after 2.60.
35386 ac_datarootdir_hack=; ac_datarootdir_seen=
35387
35388 case `sed -n '/datarootdir/ {
35389   p
35390   q
35391 }
35392 /@datadir@/p
35393 /@docdir@/p
35394 /@infodir@/p
35395 /@localedir@/p
35396 /@mandir@/p
35397 ' $ac_file_inputs` in
35398 *datarootdir*) ac_datarootdir_seen=yes;;
35399 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35400   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35401 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35402 _ACEOF
35403 cat >>$CONFIG_STATUS <<_ACEOF
35404   ac_datarootdir_hack='
35405   s&@datadir@&$datadir&g
35406   s&@docdir@&$docdir&g
35407   s&@infodir@&$infodir&g
35408   s&@localedir@&$localedir&g
35409   s&@mandir@&$mandir&g
35410     s&\\\${datarootdir}&$datarootdir&g' ;;
35411 esac
35412 _ACEOF
35413
35414 # Neutralize VPATH when `$srcdir' = `.'.
35415 # Shell code in configure.ac might set extrasub.
35416 # FIXME: do we really want to maintain this feature?
35417 cat >>$CONFIG_STATUS <<_ACEOF
35418   sed "$ac_vpsub
35419 $extrasub
35420 _ACEOF
35421 cat >>$CONFIG_STATUS <<\_ACEOF
35422 :t
35423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35424 s&@configure_input@&$configure_input&;t t
35425 s&@top_builddir@&$ac_top_builddir_sub&;t t
35426 s&@srcdir@&$ac_srcdir&;t t
35427 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35428 s&@top_srcdir@&$ac_top_srcdir&;t t
35429 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35430 s&@builddir@&$ac_builddir&;t t
35431 s&@abs_builddir@&$ac_abs_builddir&;t t
35432 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35433 s&@INSTALL@&$ac_INSTALL&;t t
35434 $ac_datarootdir_hack
35435 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35436
35437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35438   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35439   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35440   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35441 which seems to be undefined.  Please make sure it is defined." >&5
35442 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35443 which seems to be undefined.  Please make sure it is defined." >&2;}
35444
35445   rm -f "$tmp/stdin"
35446   case $ac_file in
35447   -) cat "$tmp/out"; rm -f "$tmp/out";;
35448   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35449   esac
35450  ;;
35451   :H)
35452   #
35453   # CONFIG_HEADER
35454   #
35455 _ACEOF
35456
35457 # Transform confdefs.h into a sed script `conftest.defines', that
35458 # substitutes the proper values into config.h.in to produce config.h.
35459 rm -f conftest.defines conftest.tail
35460 # First, append a space to every undef/define line, to ease matching.
35461 echo 's/$/ /' >conftest.defines
35462 # Then, protect against being on the right side of a sed subst, or in
35463 # an unquoted here document, in config.status.  If some macros were
35464 # called several times there might be several #defines for the same
35465 # symbol, which is useless.  But do not sort them, since the last
35466 # AC_DEFINE must be honored.
35467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35468 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35469 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35470 # PARAMS is the parameter list in the macro definition--in most cases, it's
35471 # just an empty string.
35472 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35473 ac_dB='\\)[      (].*,\\1define\\2'
35474 ac_dC=' '
35475 ac_dD=' ,'
35476
35477 uniq confdefs.h |
35478   sed -n '
35479         t rset
35480         :rset
35481         s/^[     ]*#[    ]*define[       ][      ]*//
35482         t ok
35483         d
35484         :ok
35485         s/[\\&,]/\\&/g
35486         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35487         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35488   ' >>conftest.defines
35489
35490 # Remove the space that was appended to ease matching.
35491 # Then replace #undef with comments.  This is necessary, for
35492 # example, in the case of _POSIX_SOURCE, which is predefined and required
35493 # on some systems where configure will not decide to define it.
35494 # (The regexp can be short, since the line contains either #define or #undef.)
35495 echo 's/ $//
35496 s,^[     #]*u.*,/* & */,' >>conftest.defines
35497
35498 # Break up conftest.defines:
35499 ac_max_sed_lines=50
35500
35501 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35502 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35503 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35504 # et cetera.
35505 ac_in='$ac_file_inputs'
35506 ac_out='"$tmp/out1"'
35507 ac_nxt='"$tmp/out2"'
35508
35509 while :
35510 do
35511   # Write a here document:
35512     cat >>$CONFIG_STATUS <<_ACEOF
35513     # First, check the format of the line:
35514     cat >"\$tmp/defines.sed" <<\\CEOF
35515 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35516 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35517 b
35518 :def
35519 _ACEOF
35520   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35521   echo 'CEOF
35522     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35523   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35524   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35525   grep . conftest.tail >/dev/null || break
35526   rm -f conftest.defines
35527   mv conftest.tail conftest.defines
35528 done
35529 rm -f conftest.defines conftest.tail
35530
35531 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35532 cat >>$CONFIG_STATUS <<\_ACEOF
35533   if test x"$ac_file" != x-; then
35534     echo "/* $configure_input  */" >"$tmp/config.h"
35535     cat "$ac_result" >>"$tmp/config.h"
35536     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35537       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35538 echo "$as_me: $ac_file is unchanged" >&6;}
35539     else
35540       rm -f $ac_file
35541       mv "$tmp/config.h" $ac_file
35542     fi
35543   else
35544     echo "/* $configure_input  */"
35545     cat "$ac_result"
35546   fi
35547   rm -f "$tmp/out12"
35548  ;;
35549
35550   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35551 echo "$as_me: executing $ac_file commands" >&6;}
35552  ;;
35553   esac
35554
35555
35556   case $ac_file$ac_mode in
35557     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35558    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35559     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35560    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35561     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35562    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35563     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35564    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35565     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35566    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35567     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35568    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35569     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35570    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35571     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35572    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35573     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35574    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35575     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35576    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35577     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35578    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35579     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35580    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35581     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35582    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35583
35584   esac
35585 done # for ac_tag
35586
35587
35588 { (exit 0); exit 0; }
35589 _ACEOF
35590 chmod +x $CONFIG_STATUS
35591 ac_clean_files=$ac_clean_files_save
35592
35593
35594 # configure is writing to config.log, and then calls config.status.
35595 # config.status does its own redirection, appending to config.log.
35596 # Unfortunately, on DOS this fails, as config.log is still kept open
35597 # by configure, so config.status won't be able to write to it; its
35598 # output is simply discarded.  So we exec the FD to /dev/null,
35599 # effectively closing config.log, so it can be properly (re)opened and
35600 # appended to by config.status.  When coming back to configure, we
35601 # need to make the FD available again.
35602 if test "$no_create" != yes; then
35603   ac_cs_success=:
35604   ac_config_status_args=
35605   test "$silent" = yes &&
35606     ac_config_status_args="$ac_config_status_args --quiet"
35607   exec 5>/dev/null
35608   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35609   exec 5>>config.log
35610   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35611   # would make configure fail if this is the last instruction.
35612   $ac_cs_success || { (exit 1); exit 1; }
35613 fi
35614
35615 #
35616 # CONFIG_SUBDIRS section.
35617 #
35618 if test "$no_recursion" != yes; then
35619
35620   # Remove --cache-file and --srcdir arguments so they do not pile up.
35621   ac_sub_configure_args=
35622   ac_prev=
35623   eval "set x $ac_configure_args"
35624   shift
35625   for ac_arg
35626   do
35627     if test -n "$ac_prev"; then
35628       ac_prev=
35629       continue
35630     fi
35631     case $ac_arg in
35632     -cache-file | --cache-file | --cache-fil | --cache-fi \
35633     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35634       ac_prev=cache_file ;;
35635     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35636     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35637     | --c=*)
35638       ;;
35639     --config-cache | -C)
35640       ;;
35641     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35642       ac_prev=srcdir ;;
35643     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35644       ;;
35645     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35646       ac_prev=prefix ;;
35647     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35648       ;;
35649     *)
35650       case $ac_arg in
35651       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35652       esac
35653       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35654     esac
35655   done
35656
35657   # Always prepend --prefix to ensure using the same prefix
35658   # in subdir configurations.
35659   ac_arg="--prefix=$prefix"
35660   case $ac_arg in
35661   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35662   esac
35663   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35664
35665   ac_popdir=`pwd`
35666   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35667
35668     # Do not complain, so a configure script can configure whichever
35669     # parts of a large source tree are present.
35670     test -d "$srcdir/$ac_dir" || continue
35671
35672     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35673     echo "$as_me:$LINENO: $ac_msg" >&5
35674     echo "$ac_msg" >&6
35675     { as_dir="$ac_dir"
35676   case $as_dir in #(
35677   -*) as_dir=./$as_dir;;
35678   esac
35679   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35680     as_dirs=
35681     while :; do
35682       case $as_dir in #(
35683       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35684       *) as_qdir=$as_dir;;
35685       esac
35686       as_dirs="'$as_qdir' $as_dirs"
35687       as_dir=`$as_dirname -- "$as_dir" ||
35688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35689          X"$as_dir" : 'X\(//\)[^/]' \| \
35690          X"$as_dir" : 'X\(//\)$' \| \
35691          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35692 echo X"$as_dir" |
35693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35694             s//\1/
35695             q
35696           }
35697           /^X\(\/\/\)[^/].*/{
35698             s//\1/
35699             q
35700           }
35701           /^X\(\/\/\)$/{
35702             s//\1/
35703             q
35704           }
35705           /^X\(\/\).*/{
35706             s//\1/
35707             q
35708           }
35709           s/.*/./; q'`
35710       test -d "$as_dir" && break
35711     done
35712     test -z "$as_dirs" || eval "mkdir $as_dirs"
35713   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35714 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35715    { (exit 1); exit 1; }; }; }
35716     ac_builddir=.
35717
35718 case "$ac_dir" in
35719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35720 *)
35721   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35722   # A ".." for each directory in $ac_dir_suffix.
35723   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35724   case $ac_top_builddir_sub in
35725   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35726   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35727   esac ;;
35728 esac
35729 ac_abs_top_builddir=$ac_pwd
35730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35731 # for backward compatibility:
35732 ac_top_builddir=$ac_top_build_prefix
35733
35734 case $srcdir in
35735   .)  # We are building in place.
35736     ac_srcdir=.
35737     ac_top_srcdir=$ac_top_builddir_sub
35738     ac_abs_top_srcdir=$ac_pwd ;;
35739   [\\/]* | ?:[\\/]* )  # Absolute name.
35740     ac_srcdir=$srcdir$ac_dir_suffix;
35741     ac_top_srcdir=$srcdir
35742     ac_abs_top_srcdir=$srcdir ;;
35743   *) # Relative name.
35744     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35745     ac_top_srcdir=$ac_top_build_prefix$srcdir
35746     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35747 esac
35748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35749
35750
35751     cd "$ac_dir"
35752
35753     # Check for guested configure; otherwise get Cygnus style configure.
35754     if test -f "$ac_srcdir/configure.gnu"; then
35755       ac_sub_configure=$ac_srcdir/configure.gnu
35756     elif test -f "$ac_srcdir/configure"; then
35757       ac_sub_configure=$ac_srcdir/configure
35758     elif test -f "$ac_srcdir/configure.in"; then
35759       # This should be Cygnus configure.
35760       ac_sub_configure=$ac_aux_dir/configure
35761     else
35762       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35763 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35764       ac_sub_configure=
35765     fi
35766
35767     # The recursion is here.
35768     if test -n "$ac_sub_configure"; then
35769       # Make the cache file name correct relative to the subdirectory.
35770       case $cache_file in
35771       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35772       *) # Relative name.
35773         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35774       esac
35775
35776       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35777 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35778       # The eval makes quoting arguments work.
35779       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35780            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35781         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35782 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35783    { (exit 1); exit 1; }; }
35784     fi
35785
35786     cd "$ac_popdir"
35787   done
35788 fi
35789