Fix configure issue where configure
[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.5svn.
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.5svn'
719 PACKAGE_STRING='llvm 2.5svn'
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 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 CXX
846 CXXFLAGS
847 ac_ct_CXX
848 LEX
849 LEXLIB
850 LEX_OUTPUT_ROOT
851 FLEX
852 YACC
853 YFLAGS
854 BISON
855 NM
856 ifGNUmake
857 LN_S
858 CMP
859 CP
860 DATE
861 FIND
862 MKDIR
863 MV
864 RANLIB
865 RM
866 SED
867 TAR
868 BINPWD
869 GRAPHVIZ
870 DOT
871 GV
872 DOTTY
873 PERL
874 HAVE_PERL
875 INSTALL_PROGRAM
876 INSTALL_SCRIPT
877 INSTALL_DATA
878 BZIP2
879 DOXYGEN
880 GROFF
881 GZIP
882 POD2HTML
883 POD2MAN
884 RUNTEST
885 TCLSH
886 ZIP
887 OCAMLC
888 OCAMLOPT
889 OCAMLDEP
890 OCAMLDOC
891 INSTALL_LTDL_TRUE
892 INSTALL_LTDL_FALSE
893 CONVENIENCE_LTDL_TRUE
894 CONVENIENCE_LTDL_FALSE
895 LIBADD_DL
896 ECHO
897 AR
898 STRIP
899 CXXCPP
900 F77
901 FFLAGS
902 ac_ct_F77
903 LIBTOOL
904 LLVMGCC
905 LLVMGXX
906 USE_UDIS86
907 HAVE_PTHREAD
908 HUGE_VAL_SANITY
909 ALLOCA
910 MMAP_FILE
911 LLVMCC1
912 LLVMCC1PLUS
913 LLVMGCCDIR
914 LLVMGCCLIBEXEC
915 LLVMGCC_VERSION
916 LLVMGCC_MAJVERS
917 LLVMGCC_LANGS
918 SHLIBEXT
919 LLVM_PREFIX
920 LLVM_BINDIR
921 LLVM_LIBDIR
922 LLVM_DATADIR
923 LLVM_DOCSDIR
924 LLVM_ETCDIR
925 LLVM_INCLUDEDIR
926 LLVM_INFODIR
927 LLVM_MANDIR
928 LLVM_CONFIGTIME
929 BINDINGS_TO_BUILD
930 ALL_BINDINGS
931 OCAML_LIBDIR
932 ENABLE_VISIBILITY_INLINES_HIDDEN
933 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 YACC
948 YFLAGS
949 CXXCPP
950 F77
951 FFLAGS'
952 ac_subdirs_all='projects/sample
953 projects/privbracket
954 projects/llvm-stacker
955 projects/llvm-test
956 projects/test-suite
957 projects/llvm-reopt
958 projects/llvm-gcc
959 projects/llvm-java
960 projects/llvm-tv
961 projects/llvm-poolalloc
962 projects/poolalloc
963 projects/llvm-kernel'
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *)    ac_optarg=yes ;;
1025   esac
1026
1027   # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072     eval enable_$ac_feature=no ;;
1073
1074   -docdir | --docdir | --docdi | --doc | --do)
1075     ac_prev=docdir ;;
1076   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077     docdir=$ac_optarg ;;
1078
1079   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080     ac_prev=dvidir ;;
1081   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082     dvidir=$ac_optarg ;;
1083
1084   -enable-* | --enable-*)
1085     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089    { (exit 1); exit 1; }; }
1090     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091     eval enable_$ac_feature=\$ac_optarg ;;
1092
1093   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095   | --exec | --exe | --ex)
1096     ac_prev=exec_prefix ;;
1097   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099   | --exec=* | --exe=* | --ex=*)
1100     exec_prefix=$ac_optarg ;;
1101
1102   -gas | --gas | --ga | --g)
1103     # Obsolete; use --with-gas.
1104     with_gas=yes ;;
1105
1106   -help | --help | --hel | --he | -h)
1107     ac_init_help=long ;;
1108   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109     ac_init_help=recursive ;;
1110   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111     ac_init_help=short ;;
1112
1113   -host | --host | --hos | --ho)
1114     ac_prev=host_alias ;;
1115   -host=* | --host=* | --hos=* | --ho=*)
1116     host_alias=$ac_optarg ;;
1117
1118   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119     ac_prev=htmldir ;;
1120   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121   | --ht=*)
1122     htmldir=$ac_optarg ;;
1123
1124   -includedir | --includedir | --includedi | --included | --include \
1125   | --includ | --inclu | --incl | --inc)
1126     ac_prev=includedir ;;
1127   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128   | --includ=* | --inclu=* | --incl=* | --inc=*)
1129     includedir=$ac_optarg ;;
1130
1131   -infodir | --infodir | --infodi | --infod | --info | --inf)
1132     ac_prev=infodir ;;
1133   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134     infodir=$ac_optarg ;;
1135
1136   -libdir | --libdir | --libdi | --libd)
1137     ac_prev=libdir ;;
1138   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139     libdir=$ac_optarg ;;
1140
1141   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142   | --libexe | --libex | --libe)
1143     ac_prev=libexecdir ;;
1144   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145   | --libexe=* | --libex=* | --libe=*)
1146     libexecdir=$ac_optarg ;;
1147
1148   -localedir | --localedir | --localedi | --localed | --locale)
1149     ac_prev=localedir ;;
1150   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151     localedir=$ac_optarg ;;
1152
1153   -localstatedir | --localstatedir | --localstatedi | --localstated \
1154   | --localstate | --localstat | --localsta | --localst | --locals)
1155     ac_prev=localstatedir ;;
1156   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158     localstatedir=$ac_optarg ;;
1159
1160   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161     ac_prev=mandir ;;
1162   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163     mandir=$ac_optarg ;;
1164
1165   -nfp | --nfp | --nf)
1166     # Obsolete; use --without-fp.
1167     with_fp=no ;;
1168
1169   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170   | --no-cr | --no-c | -n)
1171     no_create=yes ;;
1172
1173   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175     no_recursion=yes ;;
1176
1177   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179   | --oldin | --oldi | --old | --ol | --o)
1180     ac_prev=oldincludedir ;;
1181   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184     oldincludedir=$ac_optarg ;;
1185
1186   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187     ac_prev=prefix ;;
1188   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189     prefix=$ac_optarg ;;
1190
1191   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192   | --program-pre | --program-pr | --program-p)
1193     ac_prev=program_prefix ;;
1194   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196     program_prefix=$ac_optarg ;;
1197
1198   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199   | --program-suf | --program-su | --program-s)
1200     ac_prev=program_suffix ;;
1201   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203     program_suffix=$ac_optarg ;;
1204
1205   -program-transform-name | --program-transform-name \
1206   | --program-transform-nam | --program-transform-na \
1207   | --program-transform-n | --program-transform- \
1208   | --program-transform | --program-transfor \
1209   | --program-transfo | --program-transf \
1210   | --program-trans | --program-tran \
1211   | --progr-tra | --program-tr | --program-t)
1212     ac_prev=program_transform_name ;;
1213   -program-transform-name=* | --program-transform-name=* \
1214   | --program-transform-nam=* | --program-transform-na=* \
1215   | --program-transform-n=* | --program-transform-=* \
1216   | --program-transform=* | --program-transfor=* \
1217   | --program-transfo=* | --program-transf=* \
1218   | --program-trans=* | --program-tran=* \
1219   | --progr-tra=* | --program-tr=* | --program-t=*)
1220     program_transform_name=$ac_optarg ;;
1221
1222   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223     ac_prev=pdfdir ;;
1224   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225     pdfdir=$ac_optarg ;;
1226
1227   -psdir | --psdir | --psdi | --psd | --ps)
1228     ac_prev=psdir ;;
1229   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230     psdir=$ac_optarg ;;
1231
1232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233   | -silent | --silent | --silen | --sile | --sil)
1234     silent=yes ;;
1235
1236   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237     ac_prev=sbindir ;;
1238   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239   | --sbi=* | --sb=*)
1240     sbindir=$ac_optarg ;;
1241
1242   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244   | --sharedst | --shareds | --shared | --share | --shar \
1245   | --sha | --sh)
1246     ac_prev=sharedstatedir ;;
1247   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250   | --sha=* | --sh=*)
1251     sharedstatedir=$ac_optarg ;;
1252
1253   -site | --site | --sit)
1254     ac_prev=site ;;
1255   -site=* | --site=* | --sit=*)
1256     site=$ac_optarg ;;
1257
1258   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259     ac_prev=srcdir ;;
1260   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261     srcdir=$ac_optarg ;;
1262
1263   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264   | --syscon | --sysco | --sysc | --sys | --sy)
1265     ac_prev=sysconfdir ;;
1266   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268     sysconfdir=$ac_optarg ;;
1269
1270   -target | --target | --targe | --targ | --tar | --ta | --t)
1271     ac_prev=target_alias ;;
1272   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273     target_alias=$ac_optarg ;;
1274
1275   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276     verbose=yes ;;
1277
1278   -version | --version | --versio | --versi | --vers | -V)
1279     ac_init_version=: ;;
1280
1281   -with-* | --with-*)
1282     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid package name: $ac_package" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_package=`echo $ac_package| sed 's/-/_/g'`
1288     eval with_$ac_package=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package | sed 's/-/_/g'`
1297     eval with_$ac_package=no ;;
1298
1299   --x)
1300     # Obsolete; use --with-x.
1301     with_x=yes ;;
1302
1303   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304   | --x-incl | --x-inc | --x-in | --x-i)
1305     ac_prev=x_includes ;;
1306   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308     x_includes=$ac_optarg ;;
1309
1310   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312     ac_prev=x_libraries ;;
1313   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315     x_libraries=$ac_optarg ;;
1316
1317   -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319    { (exit 1); exit 1; }; }
1320     ;;
1321
1322   *=*)
1323     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327    { (exit 1); exit 1; }; }
1328     eval $ac_envvar=\$ac_optarg
1329     export $ac_envvar ;;
1330
1331   *)
1332     # FIXME: should be removed in autoconf 3.0.
1333     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337     ;;
1338
1339   esac
1340 done
1341
1342 if test -n "$ac_prev"; then
1343   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344   { echo "$as_me: error: missing argument to $ac_option" >&2
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 # Be sure to have absolute directory names.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   case $ac_val in
1356     [\\/$]* | ?:[\\/]* )  continue;;
1357     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358   esac
1359   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360    { (exit 1); exit 1; }; }
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372   if test "x$build_alias" = x; then
1373     cross_compiling=maybe
1374     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375     If a cross compiler is detected then cross compile mode will be used." >&2
1376   elif test "x$build_alias" != "x$host_alias"; then
1377     cross_compiling=yes
1378   fi
1379 fi
1380
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384 test "$silent" = yes && exec 6>/dev/null
1385
1386
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390   { echo "$as_me: error: Working directory cannot be determined" >&2
1391    { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393   { echo "$as_me: error: pwd does not report name of working directory" >&2
1394    { (exit 1); exit 1; }; }
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$0" : 'X\(//\)[^/]' \| \
1404          X"$0" : 'X\(//\)$' \| \
1405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1406 echo X"$0" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434    { (exit 1); exit 1; }; }
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439    { (exit 1); exit 1; }; }
1440         pwd)`
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443   srcdir=.
1444 fi
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1448 case $srcdir in
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 esac
1451 for ac_var in $ac_precious_vars; do
1452   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_env_${ac_var}_value=\$${ac_var}
1454   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1457
1458 #
1459 # Report the --help message.
1460 #
1461 if test "$ac_init_help" = "long"; then
1462   # Omit some internal or obsolete options to make the list less imposing.
1463   # This message is too long to be a string in the A/UX 3.1 sh.
1464   cat <<_ACEOF
1465 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1466
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472 Defaults for the options are specified in brackets.
1473
1474 Configuration:
1475   -h, --help              display this help and exit
1476       --help=short        display options specific to this package
1477       --help=recursive    display the short help of all the included packages
1478   -V, --version           display version information and exit
1479   -q, --quiet, --silent   do not print \`checking...' messages
1480       --cache-file=FILE   cache test results in FILE [disabled]
1481   -C, --config-cache      alias for \`--cache-file=config.cache'
1482   -n, --no-create         do not create output files
1483       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485 Installation directories:
1486   --prefix=PREFIX         install architecture-independent files in PREFIX
1487                           [$ac_default_prefix]
1488   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                           [PREFIX]
1490
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1495
1496 For better control, use the options below.
1497
1498 Fine tuning of the installation directories:
1499   --bindir=DIR           user executables [EPREFIX/bin]
1500   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1501   --libexecdir=DIR       program executables [EPREFIX/libexec]
1502   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1503   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1504   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1505   --libdir=DIR           object code libraries [EPREFIX/lib]
1506   --includedir=DIR       C header files [PREFIX/include]
1507   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1508   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1509   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1510   --infodir=DIR          info documentation [DATAROOTDIR/info]
1511   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1512   --mandir=DIR           man documentation [DATAROOTDIR/man]
1513   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1514   --htmldir=DIR          html documentation [DOCDIR]
1515   --dvidir=DIR           dvi documentation [DOCDIR]
1516   --pdfdir=DIR           pdf documentation [DOCDIR]
1517   --psdir=DIR            ps documentation [DOCDIR]
1518 _ACEOF
1519
1520   cat <<\_ACEOF
1521
1522 System types:
1523   --build=BUILD     configure for building on BUILD [guessed]
1524   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525   --target=TARGET   configure for building compilers for TARGET [HOST]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530   case $ac_init_help in
1531      short | recursive ) echo "Configuration of llvm 2.5svn:";;
1532    esac
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538   --enable-optimized
1539   --enable-assertions
1540   --enable-expensive-checks
1541
1542   --enable-debug-runtime
1543   --enable-jit            Enable Just In Time Compiling (default is YES)
1544   --enable-doxygen        Build doxygen documentation (default is NO)
1545   --enable-threads        Use threads if available (default is YES)
1546   --enable-pic            Build LLVM with Position Independent Code (default
1547                           is NO)
1548   --enable-targets        Build specific host targets:
1549                           all,host-only,{target-name} (default=all)
1550   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1551                           %a (default is YES)
1552   --enable-bindings       Build specific language bindings:
1553                           all,auto,none,{binding-name} (default=auto)
1554   --enable-ltdl-install   install libltdl
1555   --enable-shared[=PKGS]  build shared libraries
1556                           [default=yes]
1557   --enable-static[=PKGS]  build static libraries
1558                           [default=yes]
1559   --enable-fast-install[=PKGS]
1560                           optimize for fast installation
1561                           [default=yes]
1562   --disable-libtool-lock  avoid locking (might break parallel builds)
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1568                           searches PATH)
1569   --with-llvmgcc          Specify location of llvm-gcc driver (default
1570                           searches PATH)
1571   --with-llvmgxx          Specify location of llvm-g++ driver (default
1572                           searches PATH)
1573   --with-extra-options    Specify addtional options to compile LLVM with
1574   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1575                           is stdlib)
1576   --with-tclinclude       directory where tcl headers are
1577   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578   --with-pic              try to use only PIC/non-PIC objects [default=use
1579                           both]
1580   --with-tags[=TAGS]      include additional configurations [automatic]
1581   --with-udis86=<path>    Use udis86 external x86 disassembler library
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589               you have headers in a nonstandard directory <include dir>
1590   CPP         C preprocessor
1591   CXX         C++ compiler command
1592   CXXFLAGS    C++ compiler flags
1593   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1594               the first program found out of: `bison -y', `byacc', `yacc'.
1595   YFLAGS      The list of arguments that will be passed by default to $YACC.
1596               This script will default YFLAGS to the empty string to avoid a
1597               default value of `-d' given by some make applications.
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.5svn
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.5svn, 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   *)                      llvm_cv_target_arch="Unknown" ;;
2392 esac
2393 fi
2394 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2395 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2396
2397 if test "$llvm_cv_target_arch" = "Unknown" ; then
2398   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2399 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400 fi
2401
2402 ARCH=$llvm_cv_target_arch
2403
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   if test -n "$CC"; then
2419   ac_cv_prog_CC="$CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2428     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 CC=$ac_cv_prog_CC
2439 if test -n "$CC"; then
2440   { echo "$as_me:$LINENO: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6; }
2442 else
2443   { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2445 fi
2446
2447
2448 fi
2449 if test -z "$ac_cv_prog_CC"; then
2450   ac_ct_CC=$CC
2451   # Extract the first word of "gcc", so it can be a program name with args.
2452 set dummy gcc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$ac_ct_CC"; then
2459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2468     ac_cv_prog_ac_ct_CC="gcc"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481 echo "${ECHO_T}$ac_ct_CC" >&6; }
2482 else
2483   { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487   if test "x$ac_ct_CC" = x; then
2488     CC=""
2489   else
2490     case $cross_compiling:$ac_tool_warned in
2491 yes:)
2492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet.  If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet.  If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2499 esac
2500     CC=$ac_ct_CC
2501   fi
2502 else
2503   CC="$ac_cv_prog_CC"
2504 fi
2505
2506 if test -z "$CC"; then
2507           if test -n "$ac_tool_prefix"; then
2508     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}cc; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   if test -n "$CC"; then
2516   ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521   IFS=$as_save_IFS
2522   test -z "$as_dir" && as_dir=.
2523   for ac_exec_ext in '' $ac_executable_extensions; do
2524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2525     ac_cv_prog_CC="${ac_tool_prefix}cc"
2526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527     break 2
2528   fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537   { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2539 else
2540   { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544
2545   fi
2546 fi
2547 if test -z "$CC"; then
2548   # Extract the first word of "cc", so it can be a program name with args.
2549 set dummy cc; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   if test -n "$CC"; then
2556   ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558   ac_prog_rejected=no
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567        ac_prog_rejected=yes
2568        continue
2569      fi
2570     ac_cv_prog_CC="cc"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 if test $ac_prog_rejected = yes; then
2579   # We found a bogon in the path, so make sure we never use it.
2580   set dummy $ac_cv_prog_CC
2581   shift
2582   if test $# != 0; then
2583     # We chose a different compiler from the bogus one.
2584     # However, it has the same basename, so the bogon will be chosen
2585     # first if we set CC to just the basename; use the full file name.
2586     shift
2587     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588   fi
2589 fi
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594   { echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6; }
2596 else
2597   { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2599 fi
2600
2601
2602 fi
2603 if test -z "$CC"; then
2604   if test -n "$ac_tool_prefix"; then
2605   for ac_prog in cl.exe
2606   do
2607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   if test -n "$CC"; then
2615   ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622   for ac_exec_ext in '' $ac_executable_extensions; do
2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2624     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636   { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2638 else
2639   { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2641 fi
2642
2643
2644     test -n "$CC" && break
2645   done
2646 fi
2647 if test -z "$CC"; then
2648   ac_ct_CC=$CC
2649   for ac_prog in cl.exe
2650 do
2651   # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if test -n "$ac_ct_CC"; then
2659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666   for ac_exec_ext in '' $ac_executable_extensions; do
2667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2668     ac_cv_prog_ac_ct_CC="$ac_prog"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6; }
2682 else
2683   { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2685 fi
2686
2687
2688   test -n "$ac_ct_CC" && break
2689 done
2690
2691   if test "x$ac_ct_CC" = x; then
2692     CC=""
2693   else
2694     case $cross_compiling:$ac_tool_warned in
2695 yes:)
2696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697 whose name does not start with the host triplet.  If you think this
2698 configuration is useful to you, please write to autoconf@gnu.org." >&5
2699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet.  If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704     CC=$ac_ct_CC
2705   fi
2706 fi
2707
2708 fi
2709
2710
2711 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&2;}
2715    { (exit 1); exit 1; }; }
2716
2717 # Provide some information about the compiler.
2718 echo "$as_me:$LINENO: checking for C compiler version" >&5
2719 ac_compiler=`set X $ac_compile; echo $2`
2720 { (ac_try="$ac_compiler --version >&5"
2721 case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_compiler --version >&5") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }
2730 { (ac_try="$ac_compiler -v >&5"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compiler -v >&5") 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }
2740 { (ac_try="$ac_compiler -V >&5"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_compiler -V >&5") 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }
2750
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 ac_clean_files_save=$ac_clean_files
2767 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2768 # Try to create an executable without -o first, disregard a.out.
2769 # It will help us diagnose broken compilers, and finding out an intuition
2770 # of exeext.
2771 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2773 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2774 #
2775 # List of possible output files, starting from the most likely.
2776 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2777 # only as a last resort.  b.out is created by i960 compilers.
2778 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2779 #
2780 # The IRIX 6 linker writes into existing files which may not be
2781 # executable, retaining their permissions.  Remove them first so a
2782 # subsequent execution test works.
2783 ac_rmfiles=
2784 for ac_file in $ac_files
2785 do
2786   case $ac_file in
2787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2788     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789   esac
2790 done
2791 rm -f $ac_rmfiles
2792
2793 if { (ac_try="$ac_link_default"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_link_default") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; then
2803   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2804 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2805 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2806 # so that the user can short-circuit this test for compilers unknown to
2807 # Autoconf.
2808 for ac_file in $ac_files
2809 do
2810   test -f "$ac_file" || continue
2811   case $ac_file in
2812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2813         ;;
2814     [ab].out )
2815         # We found the default executable, but exeext='' is most
2816         # certainly right.
2817         break;;
2818     *.* )
2819         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2820         then :; else
2821            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822         fi
2823         # We set ac_cv_exeext here because the later test for it is not
2824         # safe: cross compilers may not add the suffix if given an `-o'
2825         # argument, so we may need to know it at that point already.
2826         # Even if this section looks crufty: it has the advantage of
2827         # actually working.
2828         break;;
2829     * )
2830         break;;
2831   esac
2832 done
2833 test "$ac_cv_exeext" = no && ac_cv_exeext=
2834
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&5
2841 echo "$as_me: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&2;}
2843    { (exit 77); exit 77; }; }
2844 fi
2845
2846 ac_exeext=$ac_cv_exeext
2847 { echo "$as_me:$LINENO: result: $ac_file" >&5
2848 echo "${ECHO_T}$ac_file" >&6; }
2849
2850 # Check that the compiler produces executables we can run.  If not, either
2851 # the compiler is broken, or we cross compile.
2852 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2853 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2854 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2855 # If not cross compiling, check that we can run a simple program.
2856 if test "$cross_compiling" != yes; then
2857   if { ac_try='./$ac_file'
2858   { (case "(($ac_try" in
2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860   *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863   (eval "$ac_try") 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; }; then
2867     cross_compiling=no
2868   else
2869     if test "$cross_compiling" = maybe; then
2870         cross_compiling=yes
2871     else
2872         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2873 If you meant to cross compile, use \`--host'.
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot run C compiled programs.
2876 If you meant to cross compile, use \`--host'.
2877 See \`config.log' for more details." >&2;}
2878    { (exit 1); exit 1; }; }
2879     fi
2880   fi
2881 fi
2882 { echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6; }
2884
2885 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2886 ac_clean_files=$ac_clean_files_save
2887 # Check that the compiler produces executables we can run.  If not, either
2888 # the compiler is broken, or we cross compile.
2889 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2890 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2891 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2892 echo "${ECHO_T}$cross_compiling" >&6; }
2893
2894 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2895 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2896 if { (ac_try="$ac_link"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_link") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; then
2906   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2908 # work properly (i.e., refer to `conftest.exe'), while it won't with
2909 # `rm'.
2910 for ac_file in conftest.exe conftest conftest.*; do
2911   test -f "$ac_file" || continue
2912   case $ac_file in
2913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2914     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915           break;;
2916     * ) break;;
2917   esac
2918 done
2919 else
2920   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }
2925 fi
2926
2927 rm -f conftest$ac_cv_exeext
2928 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2930
2931 rm -f conftest.$ac_ext
2932 EXEEXT=$ac_cv_exeext
2933 ac_exeext=$EXEEXT
2934 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2936 if test "${ac_cv_objext+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 rm -f conftest.o conftest.obj
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961   (eval "$ac_compile") 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; then
2965   for ac_file in conftest.o conftest.obj conftest.*; do
2966   test -f "$ac_file" || continue;
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2969     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2970        break;;
2971   esac
2972 done
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details." >&2;}
2981    { (exit 1); exit 1; }; }
2982 fi
2983
2984 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985 fi
2986 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2987 echo "${ECHO_T}$ac_cv_objext" >&6; }
2988 OBJEXT=$ac_cv_objext
2989 ac_objext=$OBJEXT
2990 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2991 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2992 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005 #ifndef __GNUC__
3006        choke me
3007 #endif
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_compile") 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028   { (case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_try") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   ac_compiler_gnu=yes
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052         ac_compiler_gnu=no
3053 fi
3054
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058 fi
3059 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3061 GCC=`test $ac_compiler_gnu = yes && echo yes`
3062 ac_test_CFLAGS=${CFLAGS+set}
3063 ac_save_CFLAGS=$CFLAGS
3064 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3066 if test "${ac_cv_prog_cc_g+set}" = set; then
3067   echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069   ac_save_c_werror_flag=$ac_c_werror_flag
3070    ac_c_werror_flag=yes
3071    ac_cv_prog_cc_g=no
3072    CFLAGS="-g"
3073    cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079
3080 int
3081 main ()
3082 {
3083
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_compile") 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } &&
3102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3103   { (case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_try") 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; } &&
3112          { ac_try='test -s conftest.$ac_objext'
3113   { (case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_try") 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; }; then
3122   ac_cv_prog_cc_g=yes
3123 else
3124   echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127         CFLAGS=""
3128       cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } &&
3157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3158   { (case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_try") 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; } &&
3167          { ac_try='test -s conftest.$ac_objext'
3168   { (case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   :
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182         ac_c_werror_flag=$ac_save_c_werror_flag
3183          CFLAGS="-g"
3184          cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190
3191 int
3192 main ()
3193 {
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compile") 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3214   { (case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219   (eval "$ac_try") 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229   (eval "$ac_try") 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; }; then
3233   ac_cv_prog_cc_g=yes
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248    ac_c_werror_flag=$ac_save_c_werror_flag
3249 fi
3250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3252 if test "$ac_test_CFLAGS" = set; then
3253   CFLAGS=$ac_save_CFLAGS
3254 elif test $ac_cv_prog_cc_g = yes; then
3255   if test "$GCC" = yes; then
3256     CFLAGS="-g -O2"
3257   else
3258     CFLAGS="-g"
3259   fi
3260 else
3261   if test "$GCC" = yes; then
3262     CFLAGS="-O2"
3263   else
3264     CFLAGS=
3265   fi
3266 fi
3267 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_c89+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_cv_prog_cc_c89=no
3273 ac_save_CC=$CC
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <stdarg.h>
3281 #include <stdio.h>
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3288      char **p;
3289      int i;
3290 {
3291   return p[i];
3292 }
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3294 {
3295   char *s;
3296   va_list v;
3297   va_start (v,p);
3298   s = g (p, va_arg (v,int));
3299   va_end (v);
3300   return s;
3301 }
3302
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3304    function prototypes and stuff, but not '\xHH' hex character constants.
3305    These don't provoke an error unfortunately, instead are silently treated
3306    as 'x'.  The following induces an error, until -std is added to get
3307    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3308    array size at least.  It's necessary to write '\x00'==0 to get something
3309    that's true only with -std.  */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313    inside strings and character constants.  */
3314 #define FOO(x) 'x'
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3323 int
3324 main ()
3325 {
3326 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 do
3334   CC="$ac_save_CC $ac_arg"
3335   rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_compile") 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3350   { (case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_try") 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; } &&
3359          { ac_try='test -s conftest.$ac_objext'
3360   { (case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365   (eval "$ac_try") 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369   ac_cv_prog_cc_c89=$ac_arg
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374
3375 fi
3376
3377 rm -f core conftest.err conftest.$ac_objext
3378   test "x$ac_cv_prog_cc_c89" != "xno" && break
3379 done
3380 rm -f conftest.$ac_ext
3381 CC=$ac_save_CC
3382
3383 fi
3384 # AC_CACHE_VAL
3385 case "x$ac_cv_prog_cc_c89" in
3386   x)
3387     { echo "$as_me:$LINENO: result: none needed" >&5
3388 echo "${ECHO_T}none needed" >&6; } ;;
3389   xno)
3390     { echo "$as_me:$LINENO: result: unsupported" >&5
3391 echo "${ECHO_T}unsupported" >&6; } ;;
3392   *)
3393     CC="$CC $ac_cv_prog_cc_c89"
3394     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3396 esac
3397
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3412 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3413 # On Suns, sometimes $CPP names a directory.
3414 if test -n "$CPP" && test -d "$CPP"; then
3415   CPP=
3416 fi
3417 if test -z "$CPP"; then
3418   if test "${ac_cv_prog_CPP+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421       # Double quotes because CPP needs to be expanded
3422     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423     do
3424       ac_preproc_ok=false
3425 for ac_c_preproc_warn_flag in '' yes
3426 do
3427   # Use a header file that comes with gcc, so configuring glibc
3428   # with a fresh cross-compiler works.
3429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430   # <limits.h> exists even on freestanding compilers.
3431   # On the NeXT, cc -E runs the code through the compiler's parser,
3432   # not just through cpp. "Syntax error" is here to catch this case.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444                      Syntax error
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } >/dev/null; then
3459   if test -s conftest.err; then
3460     ac_cpp_err=$ac_c_preproc_warn_flag
3461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462   else
3463     ac_cpp_err=
3464   fi
3465 else
3466   ac_cpp_err=yes
3467 fi
3468 if test -z "$ac_cpp_err"; then
3469   :
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Broken: fails on valid input.
3475 continue
3476 fi
3477
3478 rm -f conftest.err conftest.$ac_ext
3479
3480   # OK, works on sane cases.  Now check whether nonexistent headers
3481   # can be detected and how.
3482   cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488 #include <ac_nonexistent.h>
3489 _ACEOF
3490 if { (ac_try="$ac_cpp conftest.$ac_ext"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497   ac_status=$?
3498   grep -v '^ *+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } >/dev/null; then
3503   if test -s conftest.err; then
3504     ac_cpp_err=$ac_c_preproc_warn_flag
3505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3506   else
3507     ac_cpp_err=
3508   fi
3509 else
3510   ac_cpp_err=yes
3511 fi
3512 if test -z "$ac_cpp_err"; then
3513   # Broken: success on invalid input.
3514 continue
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519   # Passes both tests.
3520 ac_preproc_ok=:
3521 break
3522 fi
3523
3524 rm -f conftest.err conftest.$ac_ext
3525
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then
3530   break
3531 fi
3532
3533     done
3534     ac_cv_prog_CPP=$CPP
3535
3536 fi
3537   CPP=$ac_cv_prog_CPP
3538 else
3539   ac_cv_prog_CPP=$CPP
3540 fi
3541 { echo "$as_me:$LINENO: result: $CPP" >&5
3542 echo "${ECHO_T}$CPP" >&6; }
3543 ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3545 do
3546   # Use a header file that comes with gcc, so configuring glibc
3547   # with a fresh cross-compiler works.
3548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549   # <limits.h> exists even on freestanding compilers.
3550   # On the NeXT, cc -E runs the code through the compiler's parser,
3551   # not just through cpp. "Syntax error" is here to catch this case.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563                      Syntax error
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } >/dev/null; then
3578   if test -s conftest.err; then
3579     ac_cpp_err=$ac_c_preproc_warn_flag
3580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581   else
3582     ac_cpp_err=
3583   fi
3584 else
3585   ac_cpp_err=yes
3586 fi
3587 if test -z "$ac_cpp_err"; then
3588   :
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593   # Broken: fails on valid input.
3594 continue
3595 fi
3596
3597 rm -f conftest.err conftest.$ac_ext
3598
3599   # OK, works on sane cases.  Now check whether nonexistent headers
3600   # can be detected and how.
3601   cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } >/dev/null; then
3622   if test -s conftest.err; then
3623     ac_cpp_err=$ac_c_preproc_warn_flag
3624     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625   else
3626     ac_cpp_err=
3627   fi
3628 else
3629   ac_cpp_err=yes
3630 fi
3631 if test -z "$ac_cpp_err"; then
3632   # Broken: success on invalid input.
3633 continue
3634 else
3635   echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638   # Passes both tests.
3639 ac_preproc_ok=:
3640 break
3641 fi
3642
3643 rm -f conftest.err conftest.$ac_ext
3644
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3649   :
3650 else
3651   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&5
3653 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&2;}
3655    { (exit 1); exit 1; }; }
3656 fi
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
3664
3665 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3666 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3667 if test "${ac_cv_path_GREP+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   # Extract the first word of "grep ggrep" to use in msg output
3671 if test -z "$GREP"; then
3672 set dummy grep ggrep; ac_prog_name=$2
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   ac_path_GREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_prog in grep ggrep; do
3684   for ac_exec_ext in '' $ac_executable_extensions; do
3685     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3686     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3687     # Check for GNU ac_path_GREP and select it if it is found.
3688   # Check for GNU $ac_path_GREP
3689 case `"$ac_path_GREP" --version 2>&1` in
3690 *GNU*)
3691   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692 *)
3693   ac_count=0
3694   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695   while :
3696   do
3697     cat "conftest.in" "conftest.in" >"conftest.tmp"
3698     mv "conftest.tmp" "conftest.in"
3699     cp "conftest.in" "conftest.nl"
3700     echo 'GREP' >> "conftest.nl"
3701     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703     ac_count=`expr $ac_count + 1`
3704     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705       # Best one so far, save it but keep looking for a better one
3706       ac_cv_path_GREP="$ac_path_GREP"
3707       ac_path_GREP_max=$ac_count
3708     fi
3709     # 10*(2^10) chars as input seems more than enough
3710     test $ac_count -gt 10 && break
3711   done
3712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 esac
3714
3715
3716     $ac_path_GREP_found && break 3
3717   done
3718 done
3719
3720 done
3721 IFS=$as_save_IFS
3722
3723
3724 fi
3725
3726 GREP="$ac_cv_path_GREP"
3727 if test -z "$GREP"; then
3728   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730    { (exit 1); exit 1; }; }
3731 fi
3732
3733 else
3734   ac_cv_path_GREP=$GREP
3735 fi
3736
3737
3738 fi
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3741  GREP="$ac_cv_path_GREP"
3742
3743
3744 { echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3746 if test "${ac_cv_path_EGREP+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3750    then ac_cv_path_EGREP="$GREP -E"
3751    else
3752      # Extract the first word of "egrep" to use in msg output
3753 if test -z "$EGREP"; then
3754 set dummy egrep; ac_prog_name=$2
3755 if test "${ac_cv_path_EGREP+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   ac_path_EGREP_found=false
3759 # Loop through the user's path and test for each of PROGNAME-LIST
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_prog in egrep; do
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3768     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3769     # Check for GNU ac_path_EGREP and select it if it is found.
3770   # Check for GNU $ac_path_EGREP
3771 case `"$ac_path_EGREP" --version 2>&1` in
3772 *GNU*)
3773   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774 *)
3775   ac_count=0
3776   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777   while :
3778   do
3779     cat "conftest.in" "conftest.in" >"conftest.tmp"
3780     mv "conftest.tmp" "conftest.in"
3781     cp "conftest.in" "conftest.nl"
3782     echo 'EGREP' >> "conftest.nl"
3783     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785     ac_count=`expr $ac_count + 1`
3786     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3787       # Best one so far, save it but keep looking for a better one
3788       ac_cv_path_EGREP="$ac_path_EGREP"
3789       ac_path_EGREP_max=$ac_count
3790     fi
3791     # 10*(2^10) chars as input seems more than enough
3792     test $ac_count -gt 10 && break
3793   done
3794   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3795 esac
3796
3797
3798     $ac_path_EGREP_found && break 3
3799   done
3800 done
3801
3802 done
3803 IFS=$as_save_IFS
3804
3805
3806 fi
3807
3808 EGREP="$ac_cv_path_EGREP"
3809 if test -z "$EGREP"; then
3810   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3811 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3812    { (exit 1); exit 1; }; }
3813 fi
3814
3815 else
3816   ac_cv_path_EGREP=$EGREP
3817 fi
3818
3819
3820    fi
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3824  EGREP="$ac_cv_path_EGREP"
3825
3826
3827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3829 if test "${ac_cv_header_stdc+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #include <stdlib.h>
3839 #include <stdarg.h>
3840 #include <string.h>
3841 #include <float.h>
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_compile") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866   { (case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871   (eval "$ac_try") 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; } &&
3875          { ac_try='test -s conftest.$ac_objext'
3876   { (case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_try") 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   ac_cv_header_stdc=yes
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890         ac_cv_header_stdc=no
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894
3895 if test $ac_cv_header_stdc = yes; then
3896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <string.h>
3904
3905 _ACEOF
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907   $EGREP "memchr" >/dev/null 2>&1; then
3908   :
3909 else
3910   ac_cv_header_stdc=no
3911 fi
3912 rm -f conftest*
3913
3914 fi
3915
3916 if test $ac_cv_header_stdc = yes; then
3917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918   cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924 #include <stdlib.h>
3925
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928   $EGREP "free" >/dev/null 2>&1; then
3929   :
3930 else
3931   ac_cv_header_stdc=no
3932 fi
3933 rm -f conftest*
3934
3935 fi
3936
3937 if test $ac_cv_header_stdc = yes; then
3938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3939   if test "$cross_compiling" = yes; then
3940   :
3941 else
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <ctype.h>
3949 #include <stdlib.h>
3950 #if ((' ' & 0x0FF) == 0x020)
3951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953 #else
3954 # define ISLOWER(c) \
3955                    (('a' <= (c) && (c) <= 'i') \
3956                      || ('j' <= (c) && (c) <= 'r') \
3957                      || ('s' <= (c) && (c) <= 'z'))
3958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3959 #endif
3960
3961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962 int
3963 main ()
3964 {
3965   int i;
3966   for (i = 0; i < 256; i++)
3967     if (XOR (islower (i), ISLOWER (i))
3968         || toupper (i) != TOUPPER (i))
3969       return 2;
3970   return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest$ac_exeext
3974 if { (ac_try="$ac_link"
3975 case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980   (eval "$ac_link") 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3984   { (case "(($ac_try" in
3985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986   *) ac_try_echo=$ac_try;;
3987 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989   (eval "$ac_try") 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   :
3994 else
3995   echo "$as_me: program exited with status $ac_status" >&5
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 ( exit $ac_status )
4000 ac_cv_header_stdc=no
4001 fi
4002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005
4006 fi
4007 fi
4008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4009 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4010 if test $ac_cv_header_stdc = yes; then
4011
4012 cat >>confdefs.h <<\_ACEOF
4013 #define STDC_HEADERS 1
4014 _ACEOF
4015
4016 fi
4017
4018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4029                   inttypes.h stdint.h unistd.h
4030 do
4031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 $ac_includes_default
4044
4045 #include <$ac_header>
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054   (eval "$ac_compile") 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062   { (case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_try") 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; } &&
4071          { ac_try='test -s conftest.$ac_objext'
4072   { (case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_try") 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   eval "$as_ac_Header=yes"
4082 else
4083   echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086         eval "$as_ac_Header=no"
4087 fi
4088
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 ac_res=`eval echo '${'$as_ac_Header'}'`
4092                { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095   cat >>confdefs.h <<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 _ACEOF
4098
4099 fi
4100
4101 done
4102
4103
4104 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4105 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4106 if test "${ac_cv_c_bigendian+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   # See if sys/param.h defines the BYTE_ORDER macro.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h.  */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h.  */
4116 #include <sys/types.h>
4117 #include <sys/param.h>
4118
4119 int
4120 main ()
4121 {
4122 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4123  bogus endian macros
4124 #endif
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_compile") 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } &&
4144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145   { (case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_try") 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   # It does; now see whether it defined to BIG_ENDIAN or not.
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <sys/types.h>
4172 #include <sys/param.h>
4173
4174 int
4175 main ()
4176 {
4177 #if BYTE_ORDER != BIG_ENDIAN
4178  not big endian
4179 #endif
4180
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (ac_try="$ac_compile"
4187 case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_compile") 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } &&
4199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200   { (case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_try") 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; } &&
4209          { ac_try='test -s conftest.$ac_objext'
4210   { (case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215   (eval "$ac_try") 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }; }; then
4219   ac_cv_c_bigendian=yes
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         ac_cv_c_bigendian=no
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 else
4229   echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232         # It does not; compile a test program.
4233 if test "$cross_compiling" = yes; then
4234   # try to guess the endianness by grepping values into an object file
4235   ac_cv_c_bigendian=unknown
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4243 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4244 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4245 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4246 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4247 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4248 int
4249 main ()
4250 {
4251  _ascii (); _ebcdic ();
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_compile") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } &&
4270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4291   ac_cv_c_bigendian=yes
4292 fi
4293 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4294   if test "$ac_cv_c_bigendian" = unknown; then
4295     ac_cv_c_bigendian=no
4296   else
4297     # finding both strings is unlikely to happen, but who knows?
4298     ac_cv_c_bigendian=unknown
4299   fi
4300 fi
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 else
4310   cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 $ac_includes_default
4317 int
4318 main ()
4319 {
4320
4321   /* Are we little or big endian?  From Harbison&Steele.  */
4322   union
4323   {
4324     long int l;
4325     char c[sizeof (long int)];
4326   } u;
4327   u.l = 1;
4328   return u.c[sizeof (long int) - 1] == 1;
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest$ac_exeext
4335 if { (ac_try="$ac_link"
4336 case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_link") 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4345   { (case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_try") 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; }; then
4354   ac_cv_c_bigendian=no
4355 else
4356   echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ( exit $ac_status )
4361 ac_cv_c_bigendian=yes
4362 fi
4363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4364 fi
4365
4366
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4373 case $ac_cv_c_bigendian in
4374   yes)
4375     ENDIAN=big
4376  ;;
4377   no)
4378     ENDIAN=little
4379  ;;
4380   *)
4381     { { echo "$as_me:$LINENO: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4383 echo "$as_me: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4385    { (exit 1); exit 1; }; } ;;
4386 esac
4387
4388
4389 if test "$cross_compiling" = yes; then
4390   LLVM_CROSS_COMPILING=1
4391
4392
4393 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4394 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4395 if test "${ac_cv_build_exeext+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4399   ac_cv_build_exeext=.exe
4400 else
4401   ac_build_prefix=${build_alias}-
4402
4403   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4404 set dummy ${ac_build_prefix}gcc; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   if test -n "$BUILD_CC"; then
4411   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4420     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 BUILD_CC=$ac_cv_prog_BUILD_CC
4431 if test -n "$BUILD_CC"; then
4432   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4433 echo "${ECHO_T}$BUILD_CC" >&6; }
4434 else
4435   { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4437 fi
4438
4439
4440   if test -z "$BUILD_CC"; then
4441      # Extract the first word of "gcc", so it can be a program name with args.
4442 set dummy gcc; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   if test -n "$BUILD_CC"; then
4449   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456   for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_prog_BUILD_CC="gcc"
4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 BUILD_CC=$ac_cv_prog_BUILD_CC
4469 if test -n "$BUILD_CC"; then
4470   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4471 echo "${ECHO_T}$BUILD_CC" >&6; }
4472 else
4473   { echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6; }
4475 fi
4476
4477
4478      if test -z "$BUILD_CC"; then
4479        # Extract the first word of "cc", so it can be a program name with args.
4480 set dummy cc; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   if test -n "$BUILD_CC"; then
4487   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4488 else
4489   ac_prog_rejected=no
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493   IFS=$as_save_IFS
4494   test -z "$as_dir" && as_dir=.
4495   for ac_exec_ext in '' $ac_executable_extensions; do
4496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4497     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4498        ac_prog_rejected=yes
4499        continue
4500      fi
4501     ac_cv_prog_BUILD_CC="cc"
4502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503     break 2
4504   fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 if test $ac_prog_rejected = yes; then
4510   # We found a bogon in the path, so make sure we never use it.
4511   set dummy $ac_cv_prog_BUILD_CC
4512   shift
4513   if test $# != 0; then
4514     # We chose a different compiler from the bogus one.
4515     # However, it has the same basename, so the bogon will be chosen
4516     # first if we set BUILD_CC to just the basename; use the full file name.
4517     shift
4518     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4519   fi
4520 fi
4521 fi
4522 fi
4523 BUILD_CC=$ac_cv_prog_BUILD_CC
4524 if test -n "$BUILD_CC"; then
4525   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526 echo "${ECHO_T}$BUILD_CC" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532
4533      fi
4534   fi
4535   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4536 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4537    { (exit 1); exit 1; }; }
4538   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4539   rm -f conftest*
4540   echo 'int main () { return 0; }' > conftest.$ac_ext
4541   ac_cv_build_exeext=
4542   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4543   (eval $ac_build_link) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }; then
4547     for file in conftest.*; do
4548       case $file in
4549       *.c | *.o | *.obj | *.dSYM) ;;
4550       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4551       esac
4552     done
4553   else
4554     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4555 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4556    { (exit 1); exit 1; }; }
4557   fi
4558   rm -f conftest*
4559   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4560 fi
4561 fi
4562
4563 BUILD_EXEEXT=""
4564 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4565 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4566 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4567 ac_build_exeext=$BUILD_EXEEXT
4568
4569   ac_build_prefix=${build_alias}-
4570   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4571 set dummy ${ac_build_prefix}g++; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -n "$BUILD_CXX"; then
4578   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4598 if test -n "$BUILD_CXX"; then
4599   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4600 echo "${ECHO_T}$BUILD_CXX" >&6; }
4601 else
4602   { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4604 fi
4605
4606
4607   if test -z "$BUILD_CXX"; then
4608      # Extract the first word of "g++", so it can be a program name with args.
4609 set dummy g++; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   if test -n "$BUILD_CXX"; then
4616   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623   for ac_exec_ext in '' $ac_executable_extensions; do
4624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4625     ac_cv_prog_BUILD_CXX="g++"
4626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627     break 2
4628   fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4636 if test -n "$BUILD_CXX"; then
4637   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4638 echo "${ECHO_T}$BUILD_CXX" >&6; }
4639 else
4640   { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4642 fi
4643
4644
4645      if test -z "$BUILD_CXX"; then
4646        # Extract the first word of "c++", so it can be a program name with args.
4647 set dummy c++; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$BUILD_CXX"; then
4654   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4655 else
4656   ac_prog_rejected=no
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662   for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4665        ac_prog_rejected=yes
4666        continue
4667      fi
4668     ac_cv_prog_BUILD_CXX="c++"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 if test $ac_prog_rejected = yes; then
4677   # We found a bogon in the path, so make sure we never use it.
4678   set dummy $ac_cv_prog_BUILD_CXX
4679   shift
4680   if test $# != 0; then
4681     # We chose a different compiler from the bogus one.
4682     # However, it has the same basename, so the bogon will be chosen
4683     # first if we set BUILD_CXX to just the basename; use the full file name.
4684     shift
4685     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4686   fi
4687 fi
4688 fi
4689 fi
4690 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691 if test -n "$BUILD_CXX"; then
4692   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693 echo "${ECHO_T}$BUILD_CXX" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700      fi
4701   fi
4702 else
4703   LLVM_CROSS_COMPILING=0
4704
4705 fi
4706
4707 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4708   cvsbuild="yes"
4709   optimize="no"
4710   CVSBUILD=CVSBUILD=1
4711
4712 else
4713   cvsbuild="no"
4714   optimize="yes"
4715 fi
4716
4717
4718 # Check whether --enable-optimized was given.
4719 if test "${enable_optimized+set}" = set; then
4720   enableval=$enable_optimized;
4721 else
4722   enableval=$optimize
4723 fi
4724
4725 if test ${enableval} = "no" ; then
4726   ENABLE_OPTIMIZED=
4727
4728 else
4729   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4730
4731 fi
4732
4733 # Check whether --enable-assertions was given.
4734 if test "${enable_assertions+set}" = set; then
4735   enableval=$enable_assertions;
4736 else
4737   enableval="yes"
4738 fi
4739
4740 if test ${enableval} = "yes" ; then
4741   DISABLE_ASSERTIONS=
4742
4743 else
4744   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745
4746 fi
4747
4748 # Check whether --enable-expensive-checks was given.
4749 if test "${enable_expensive_checks+set}" = set; then
4750   enableval=$enable_expensive_checks;
4751 else
4752   enableval="no"
4753 fi
4754
4755 if test ${enableval} = "yes" ; then
4756   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4757
4758   EXPENSIVE_CHECKS=yes
4759
4760 else
4761   ENABLE_EXPENSIVE_CHECKS=
4762
4763   EXPENSIVE_CHECKS=no
4764
4765 fi
4766
4767 # Check whether --enable-debug-runtime was given.
4768 if test "${enable_debug_runtime+set}" = set; then
4769   enableval=$enable_debug_runtime;
4770 else
4771   enableval=no
4772 fi
4773
4774 if test ${enableval} = "no" ; then
4775   DEBUG_RUNTIME=
4776
4777 else
4778   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779
4780 fi
4781
4782 # Check whether --enable-jit was given.
4783 if test "${enable_jit+set}" = set; then
4784   enableval=$enable_jit;
4785 else
4786   enableval=default
4787 fi
4788
4789 if test ${enableval} = "no"
4790 then
4791   JIT=
4792
4793 else
4794   case "$llvm_cv_target_arch" in
4795     x86)     TARGET_HAS_JIT=1
4796  ;;
4797     Sparc)   TARGET_HAS_JIT=0
4798  ;;
4799     PowerPC) TARGET_HAS_JIT=1
4800  ;;
4801     x86_64)  TARGET_HAS_JIT=1
4802  ;;
4803     Alpha)   TARGET_HAS_JIT=1
4804  ;;
4805     IA64)    TARGET_HAS_JIT=0
4806  ;;
4807     ARM)     TARGET_HAS_JIT=0
4808  ;;
4809     Mips)    TARGET_HAS_JIT=0
4810  ;;
4811     PIC16)   TARGET_HAS_JIT=0
4812  ;;
4813     *)       TARGET_HAS_JIT=0
4814  ;;
4815   esac
4816 fi
4817
4818 # Check whether --enable-doxygen was given.
4819 if test "${enable_doxygen+set}" = set; then
4820   enableval=$enable_doxygen;
4821 else
4822   enableval=default
4823 fi
4824
4825 case "$enableval" in
4826   yes) ENABLE_DOXYGEN=1
4827  ;;
4828   no)  ENABLE_DOXYGEN=0
4829  ;;
4830   default) ENABLE_DOXYGEN=0
4831  ;;
4832   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4834    { (exit 1); exit 1; }; } ;;
4835 esac
4836
4837 # Check whether --enable-threads was given.
4838 if test "${enable_threads+set}" = set; then
4839   enableval=$enable_threads;
4840 else
4841   enableval=default
4842 fi
4843
4844 case "$enableval" in
4845   yes) ENABLE_THREADS=1
4846  ;;
4847   no)  ENABLE_THREADS=0
4848  ;;
4849   default) ENABLE_THREADS=1
4850  ;;
4851   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4853    { (exit 1); exit 1; }; } ;;
4854 esac
4855
4856 cat >>confdefs.h <<_ACEOF
4857 #define ENABLE_THREADS $ENABLE_THREADS
4858 _ACEOF
4859
4860
4861 # Check whether --enable-pic was given.
4862 if test "${enable_pic+set}" = set; then
4863   enableval=$enable_pic;
4864 else
4865   enableval=default
4866 fi
4867
4868 case "$enableval" in
4869   yes) ENABLE_PIC=1
4870  ;;
4871   no)  ENABLE_PIC=0
4872  ;;
4873   default) ENABLE_PIC=0
4874  ;;
4875   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4877    { (exit 1); exit 1; }; } ;;
4878 esac
4879
4880 cat >>confdefs.h <<_ACEOF
4881 #define ENABLE_PIC $ENABLE_PIC
4882 _ACEOF
4883
4884
4885 TARGETS_TO_BUILD=""
4886 # Check whether --enable-targets was given.
4887 if test "${enable_targets+set}" = set; then
4888   enableval=$enable_targets;
4889 else
4890   enableval=all
4891 fi
4892
4893 case "$enableval" in
4894   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4895   host-only)
4896     case "$llvm_cv_target_arch" in
4897       x86)     TARGETS_TO_BUILD="X86" ;;
4898       x86_64)  TARGETS_TO_BUILD="X86" ;;
4899       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4900       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4901       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4902       IA64)    TARGETS_TO_BUILD="IA64" ;;
4903       ARM)     TARGETS_TO_BUILD="ARM" ;;
4904       Mips)    TARGETS_TO_BUILD="Mips" ;;
4905       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4906       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4907       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4908 echo "$as_me: error: Can not set target to build" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910     esac
4911     ;;
4912   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4913       case "$a_target" in
4914         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4920         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4921         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4922         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4923         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4924         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4927         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4928 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4929    { (exit 1); exit 1; }; } ;;
4930       esac
4931   done
4932   ;;
4933 esac
4934 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4935
4936
4937 # Check whether --enable-cbe-printf-a was given.
4938 if test "${enable_cbe_printf_a+set}" = set; then
4939   enableval=$enable_cbe_printf_a;
4940 else
4941   enableval=default
4942 fi
4943
4944 case "$enableval" in
4945   yes) ENABLE_CBE_PRINTF_A=1
4946  ;;
4947   no)  ENABLE_CBE_PRINTF_A=0
4948  ;;
4949   default)  ENABLE_CBE_PRINTF_A=1
4950  ;;
4951   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4952 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4953    { (exit 1); exit 1; }; } ;;
4954 esac
4955
4956 cat >>confdefs.h <<_ACEOF
4957 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4958 _ACEOF
4959
4960
4961
4962 # Check whether --with-llvmgccdir was given.
4963 if test "${with_llvmgccdir+set}" = set; then
4964   withval=$with_llvmgccdir;
4965 else
4966   withval=default
4967 fi
4968
4969 case "$withval" in
4970   default) WITH_LLVMGCCDIR=default ;;
4971   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4972   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4973 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4974    { (exit 1); exit 1; }; } ;;
4975 esac
4976
4977
4978 # Check whether --with-llvmgcc was given.
4979 if test "${with_llvmgcc+set}" = set; then
4980   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4981       WITH_LLVMGCCDIR=""
4982 fi
4983
4984
4985
4986 # Check whether --with-llvmgxx was given.
4987 if test "${with_llvmgxx+set}" = set; then
4988   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4989     WITH_LLVMGCCDIR=""
4990 fi
4991
4992
4993 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4994    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4995 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4996    { (exit 1); exit 1; }; };
4997 fi
4998
4999 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5000    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5001 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5002    { (exit 1); exit 1; }; };
5003 fi
5004
5005
5006 # Check whether --with-extra-options was given.
5007 if test "${with_extra_options+set}" = set; then
5008   withval=$with_extra_options;
5009 else
5010   withval=default
5011 fi
5012
5013 case "$withval" in
5014   default) EXTRA_OPTIONS= ;;
5015   *) EXTRA_OPTIONS=$withval ;;
5016 esac
5017 EXTRA_OPTIONS=$EXTRA_OPTIONS
5018
5019
5020 # Check whether --enable-bindings was given.
5021 if test "${enable_bindings+set}" = set; then
5022   enableval=$enable_bindings;
5023 else
5024   enableval=default
5025 fi
5026
5027 BINDINGS_TO_BUILD=""
5028 case "$enableval" in
5029   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5030   all ) BINDINGS_TO_BUILD="ocaml" ;;
5031   none | no) BINDINGS_TO_BUILD="" ;;
5032   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033       case "$a_binding" in
5034         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5035         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5036 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5037    { (exit 1); exit 1; }; } ;;
5038       esac
5039   done
5040   ;;
5041 esac
5042
5043
5044 # Check whether --with-ocaml-libdir was given.
5045 if test "${with_ocaml_libdir+set}" = set; then
5046   withval=$with_ocaml_libdir;
5047 else
5048   withval=auto
5049 fi
5050
5051 case "$withval" in
5052   auto) with_ocaml_libdir="$withval" ;;
5053   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5054   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5055 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5056    { (exit 1); exit 1; }; } ;;
5057 esac
5058
5059
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069   CPP=
5070 fi
5071 if test -z "$CPP"; then
5072   if test "${ac_cv_prog_CPP+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075       # Double quotes because CPP needs to be expanded
5076     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077     do
5078       ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } >/dev/null; then
5113   if test -s conftest.err; then
5114     ac_cpp_err=$ac_c_preproc_warn_flag
5115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5116   else
5117     ac_cpp_err=
5118   fi
5119 else
5120   ac_cpp_err=yes
5121 fi
5122 if test -z "$ac_cpp_err"; then
5123   :
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128   # Broken: fails on valid input.
5129 continue
5130 fi
5131
5132 rm -f conftest.err conftest.$ac_ext
5133
5134   # OK, works on sane cases.  Now check whether nonexistent headers
5135   # can be detected and how.
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <ac_nonexistent.h>
5143 _ACEOF
5144 if { (ac_try="$ac_cpp conftest.$ac_ext"
5145 case "(($ac_try" in
5146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147   *) ac_try_echo=$ac_try;;
5148 esac
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } >/dev/null; then
5157   if test -s conftest.err; then
5158     ac_cpp_err=$ac_c_preproc_warn_flag
5159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160   else
5161     ac_cpp_err=
5162   fi
5163 else
5164   ac_cpp_err=yes
5165 fi
5166 if test -z "$ac_cpp_err"; then
5167   # Broken: success on invalid input.
5168 continue
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173   # Passes both tests.
5174 ac_preproc_ok=:
5175 break
5176 fi
5177
5178 rm -f conftest.err conftest.$ac_ext
5179
5180 done
5181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182 rm -f conftest.err conftest.$ac_ext
5183 if $ac_preproc_ok; then
5184   break
5185 fi
5186
5187     done
5188     ac_cv_prog_CPP=$CPP
5189
5190 fi
5191   CPP=$ac_cv_prog_CPP
5192 else
5193   ac_cv_prog_CPP=$CPP
5194 fi
5195 { echo "$as_me:$LINENO: result: $CPP" >&5
5196 echo "${ECHO_T}$CPP" >&6; }
5197 ac_preproc_ok=false
5198 for ac_c_preproc_warn_flag in '' yes
5199 do
5200   # Use a header file that comes with gcc, so configuring glibc
5201   # with a fresh cross-compiler works.
5202   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203   # <limits.h> exists even on freestanding compilers.
5204   # On the NeXT, cc -E runs the code through the compiler's parser,
5205   # not just through cpp. "Syntax error" is here to catch this case.
5206   cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #ifdef __STDC__
5213 # include <limits.h>
5214 #else
5215 # include <assert.h>
5216 #endif
5217                      Syntax error
5218 _ACEOF
5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
5220 case "(($ac_try" in
5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222   *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226   ac_status=$?
5227   grep -v '^ *+' conftest.er1 >conftest.err
5228   rm -f conftest.er1
5229   cat conftest.err >&5
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } >/dev/null; then
5232   if test -s conftest.err; then
5233     ac_cpp_err=$ac_c_preproc_warn_flag
5234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235   else
5236     ac_cpp_err=
5237   fi
5238 else
5239   ac_cpp_err=yes
5240 fi
5241 if test -z "$ac_cpp_err"; then
5242   :
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247   # Broken: fails on valid input.
5248 continue
5249 fi
5250
5251 rm -f conftest.err conftest.$ac_ext
5252
5253   # OK, works on sane cases.  Now check whether nonexistent headers
5254   # can be detected and how.
5255   cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h.  */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h.  */
5261 #include <ac_nonexistent.h>
5262 _ACEOF
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } >/dev/null; then
5276   if test -s conftest.err; then
5277     ac_cpp_err=$ac_c_preproc_warn_flag
5278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279   else
5280     ac_cpp_err=
5281   fi
5282 else
5283   ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286   # Broken: success on invalid input.
5287 continue
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292   # Passes both tests.
5293 ac_preproc_ok=:
5294 break
5295 fi
5296
5297 rm -f conftest.err conftest.$ac_ext
5298
5299 done
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5303   :
5304 else
5305   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5308 See \`config.log' for more details." >&2;}
5309    { (exit 1); exit 1; }; }
5310 fi
5311
5312 ac_ext=c
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318 ac_ext=c
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323 if test -n "$ac_tool_prefix"; then
5324   for ac_prog in gcc
5325   do
5326     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5330 if test "${ac_cv_prog_CC+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   if test -n "$CC"; then
5334   ac_cv_prog_CC="$CC" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339   IFS=$as_save_IFS
5340   test -z "$as_dir" && as_dir=.
5341   for ac_exec_ext in '' $ac_executable_extensions; do
5342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5343     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345     break 2
5346   fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351 fi
5352 fi
5353 CC=$ac_cv_prog_CC
5354 if test -n "$CC"; then
5355   { echo "$as_me:$LINENO: result: $CC" >&5
5356 echo "${ECHO_T}$CC" >&6; }
5357 else
5358   { echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6; }
5360 fi
5361
5362
5363     test -n "$CC" && break
5364   done
5365 fi
5366 if test -z "$CC"; then
5367   ac_ct_CC=$CC
5368   for ac_prog in gcc
5369 do
5370   # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   if test -n "$ac_ct_CC"; then
5378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385   for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_prog_ac_ct_CC="$ac_prog"
5388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392 done
5393 IFS=$as_save_IFS
5394
5395 fi
5396 fi
5397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5398 if test -n "$ac_ct_CC"; then
5399   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5400 echo "${ECHO_T}$ac_ct_CC" >&6; }
5401 else
5402   { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5404 fi
5405
5406
5407   test -n "$ac_ct_CC" && break
5408 done
5409
5410   if test "x$ac_ct_CC" = x; then
5411     CC=""
5412   else
5413     case $cross_compiling:$ac_tool_warned in
5414 yes:)
5415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5416 whose name does not start with the host triplet.  If you think this
5417 configuration is useful to you, please write to autoconf@gnu.org." >&5
5418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5419 whose name does not start with the host triplet.  If you think this
5420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5421 ac_tool_warned=yes ;;
5422 esac
5423     CC=$ac_ct_CC
5424   fi
5425 fi
5426
5427
5428 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: no acceptable C compiler found in \$PATH
5431 See \`config.log' for more details." >&2;}
5432    { (exit 1); exit 1; }; }
5433
5434 # Provide some information about the compiler.
5435 echo "$as_me:$LINENO: checking for C compiler version" >&5
5436 ac_compiler=`set X $ac_compile; echo $2`
5437 { (ac_try="$ac_compiler --version >&5"
5438 case "(($ac_try" in
5439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440   *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443   (eval "$ac_compiler --version >&5") 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }
5447 { (ac_try="$ac_compiler -v >&5"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453   (eval "$ac_compiler -v >&5") 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }
5457 { (ac_try="$ac_compiler -V >&5"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463   (eval "$ac_compiler -V >&5") 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }
5467
5468 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479
5480 int
5481 main ()
5482 {
5483 #ifndef __GNUC__
5484        choke me
5485 #endif
5486
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compile") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } &&
5505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5506   { (case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511   (eval "$ac_try") 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; } &&
5515          { ac_try='test -s conftest.$ac_objext'
5516   { (case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_try") 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; }; then
5525   ac_compiler_gnu=yes
5526 else
5527   echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530         ac_compiler_gnu=no
5531 fi
5532
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5535
5536 fi
5537 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5538 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5539 GCC=`test $ac_compiler_gnu = yes && echo yes`
5540 ac_test_CFLAGS=${CFLAGS+set}
5541 ac_save_CFLAGS=$CFLAGS
5542 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5544 if test "${ac_cv_prog_cc_g+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   ac_save_c_werror_flag=$ac_c_werror_flag
5548    ac_c_werror_flag=yes
5549    ac_cv_prog_cc_g=no
5550    CFLAGS="-g"
5551    cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557
5558 int
5559 main ()
5560 {
5561
5562   ;
5563   return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570   *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573   (eval "$ac_compile") 2>conftest.er1
5574   ac_status=$?
5575   grep -v '^ *+' conftest.er1 >conftest.err
5576   rm -f conftest.er1
5577   cat conftest.err >&5
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } &&
5580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5581   { (case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_try") 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }; } &&
5590          { ac_try='test -s conftest.$ac_objext'
5591   { (case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_try") 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   ac_cv_prog_cc_g=yes
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605         CFLAGS=""
5606       cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612
5613 int
5614 main ()
5615 {
5616
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_compile") 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636   { (case "(($ac_try" in
5637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638   *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641   (eval "$ac_try") 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; } &&
5645          { ac_try='test -s conftest.$ac_objext'
5646   { (case "(($ac_try" in
5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648   *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651   (eval "$ac_try") 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   :
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660         ac_c_werror_flag=$ac_save_c_werror_flag
5661          CFLAGS="-g"
5662          cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_compile") 2>conftest.er1
5685   ac_status=$?
5686   grep -v '^ *+' conftest.er1 >conftest.err
5687   rm -f conftest.er1
5688   cat conftest.err >&5
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } &&
5691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5692   { (case "(($ac_try" in
5693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694   *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697   (eval "$ac_try") 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; } &&
5701          { ac_try='test -s conftest.$ac_objext'
5702   { (case "(($ac_try" in
5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704   *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707   (eval "$ac_try") 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_cv_prog_cc_g=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716
5717 fi
5718
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726    ac_c_werror_flag=$ac_save_c_werror_flag
5727 fi
5728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5729 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5730 if test "$ac_test_CFLAGS" = set; then
5731   CFLAGS=$ac_save_CFLAGS
5732 elif test $ac_cv_prog_cc_g = yes; then
5733   if test "$GCC" = yes; then
5734     CFLAGS="-g -O2"
5735   else
5736     CFLAGS="-g"
5737   fi
5738 else
5739   if test "$GCC" = yes; then
5740     CFLAGS="-O2"
5741   else
5742     CFLAGS=
5743   fi
5744 fi
5745 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5746 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_cc_c89+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   ac_cv_prog_cc_c89=no
5751 ac_save_CC=$CC
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 #include <stdarg.h>
5759 #include <stdio.h>
5760 #include <sys/types.h>
5761 #include <sys/stat.h>
5762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5763 struct buf { int x; };
5764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5765 static char *e (p, i)
5766      char **p;
5767      int i;
5768 {
5769   return p[i];
5770 }
5771 static char *f (char * (*g) (char **, int), char **p, ...)
5772 {
5773   char *s;
5774   va_list v;
5775   va_start (v,p);
5776   s = g (p, va_arg (v,int));
5777   va_end (v);
5778   return s;
5779 }
5780
5781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5782    function prototypes and stuff, but not '\xHH' hex character constants.
5783    These don't provoke an error unfortunately, instead are silently treated
5784    as 'x'.  The following induces an error, until -std is added to get
5785    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5786    array size at least.  It's necessary to write '\x00'==0 to get something
5787    that's true only with -std.  */
5788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5789
5790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5791    inside strings and character constants.  */
5792 #define FOO(x) 'x'
5793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5794
5795 int test (int i, double x);
5796 struct s1 {int (*f) (int a);};
5797 struct s2 {int (*f) (double a);};
5798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5799 int argc;
5800 char **argv;
5801 int
5802 main ()
5803 {
5804 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5810         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5811 do
5812   CC="$ac_save_CC $ac_arg"
5813   rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_compile") 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828   { (case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_try") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_prog_cc_c89=$ac_arg
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852
5853 fi
5854
5855 rm -f core conftest.err conftest.$ac_objext
5856   test "x$ac_cv_prog_cc_c89" != "xno" && break
5857 done
5858 rm -f conftest.$ac_ext
5859 CC=$ac_save_CC
5860
5861 fi
5862 # AC_CACHE_VAL
5863 case "x$ac_cv_prog_cc_c89" in
5864   x)
5865     { echo "$as_me:$LINENO: result: none needed" >&5
5866 echo "${ECHO_T}none needed" >&6; } ;;
5867   xno)
5868     { echo "$as_me:$LINENO: result: unsupported" >&5
5869 echo "${ECHO_T}unsupported" >&6; } ;;
5870   *)
5871     CC="$CC $ac_cv_prog_cc_c89"
5872     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5874 esac
5875
5876
5877 ac_ext=c
5878 ac_cpp='$CPP $CPPFLAGS'
5879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882
5883 ac_ext=cpp
5884 ac_cpp='$CXXCPP $CPPFLAGS'
5885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888 if test -z "$CXX"; then
5889   if test -n "$CCC"; then
5890     CXX=$CCC
5891   else
5892     if test -n "$ac_tool_prefix"; then
5893   for ac_prog in g++
5894   do
5895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_CXX+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   if test -n "$CXX"; then
5903   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910   for ac_exec_ext in '' $ac_executable_extensions; do
5911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 CXX=$ac_cv_prog_CXX
5923 if test -n "$CXX"; then
5924   { echo "$as_me:$LINENO: result: $CXX" >&5
5925 echo "${ECHO_T}$CXX" >&6; }
5926 else
5927   { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932     test -n "$CXX" && break
5933   done
5934 fi
5935 if test -z "$CXX"; then
5936   ac_ct_CXX=$CXX
5937   for ac_prog in g++
5938 do
5939   # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   if test -n "$ac_ct_CXX"; then
5947   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5956     ac_cv_prog_ac_ct_CXX="$ac_prog"
5957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5967 if test -n "$ac_ct_CXX"; then
5968   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5970 else
5971   { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 fi
5974
5975
5976   test -n "$ac_ct_CXX" && break
5977 done
5978
5979   if test "x$ac_ct_CXX" = x; then
5980     CXX="g++"
5981   else
5982     case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet.  If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet.  If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992     CXX=$ac_ct_CXX
5993   fi
5994 fi
5995
5996   fi
5997 fi
5998 # Provide some information about the compiler.
5999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6000 ac_compiler=`set X $ac_compile; echo $2`
6001 { (ac_try="$ac_compiler --version >&5"
6002 case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_compiler --version >&5") 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }
6011 { (ac_try="$ac_compiler -v >&5"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_compiler -v >&5") 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }
6021 { (ac_try="$ac_compiler -V >&5"
6022 case "(($ac_try" in
6023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024   *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027   (eval "$ac_compiler -V >&5") 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }
6031
6032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043
6044 int
6045 main ()
6046 {
6047 #ifndef __GNUC__
6048        choke me
6049 #endif
6050
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_compile") 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } &&
6069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070   { (case "(($ac_try" in
6071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072   *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075   (eval "$ac_try") 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; } &&
6079          { ac_try='test -s conftest.$ac_objext'
6080   { (case "(($ac_try" in
6081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082   *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085   (eval "$ac_try") 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_compiler_gnu=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         ac_compiler_gnu=no
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6099
6100 fi
6101 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6102 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6103 GXX=`test $ac_compiler_gnu = yes && echo yes`
6104 ac_test_CXXFLAGS=${CXXFLAGS+set}
6105 ac_save_CXXFLAGS=$CXXFLAGS
6106 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_cxx_g+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6112    ac_cxx_werror_flag=yes
6113    ac_cv_prog_cxx_g=no
6114    CXXFLAGS="-g"
6115    cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121
6122 int
6123 main ()
6124 {
6125
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134   *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137   (eval "$ac_compile") 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } &&
6144          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6145   { (case "(($ac_try" in
6146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147   *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150   (eval "$ac_try") 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; } &&
6154          { ac_try='test -s conftest.$ac_objext'
6155   { (case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_try") 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_prog_cxx_g=yes
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169         CXXFLAGS=""
6170       cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176
6177 int
6178 main ()
6179 {
6180
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_compile") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } &&
6199          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200   { (case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205   (eval "$ac_try") 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; } &&
6209          { ac_try='test -s conftest.$ac_objext'
6210   { (case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_try") 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; }; then
6219   :
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6225          CXXFLAGS="-g"
6226          cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232
6233 int
6234 main ()
6235 {
6236
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6243 case "(($ac_try" in
6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245   *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248   (eval "$ac_compile") 2>conftest.er1
6249   ac_status=$?
6250   grep -v '^ *+' conftest.er1 >conftest.err
6251   rm -f conftest.er1
6252   cat conftest.err >&5
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6256   { (case "(($ac_try" in
6257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258   *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261   (eval "$ac_try") 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } &&
6265          { ac_try='test -s conftest.$ac_objext'
6266   { (case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271   (eval "$ac_try") 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_prog_cxx_g=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 fi
6288
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6291 fi
6292 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6293 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6294 if test "$ac_test_CXXFLAGS" = set; then
6295   CXXFLAGS=$ac_save_CXXFLAGS
6296 elif test $ac_cv_prog_cxx_g = yes; then
6297   if test "$GXX" = yes; then
6298     CXXFLAGS="-g -O2"
6299   else
6300     CXXFLAGS="-g"
6301   fi
6302 else
6303   if test "$GXX" = yes; then
6304     CXXFLAGS="-O2"
6305   else
6306     CXXFLAGS=
6307   fi
6308 fi
6309 ac_ext=c
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315 { echo "$as_me:$LINENO: checking " >&5
6316 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6317 if test "${ac_cv_has_flex+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   for ac_prog in flex lex
6321 do
6322   # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_LEX+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   if test -n "$LEX"; then
6330   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_LEX="$ac_prog"
6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 LEX=$ac_cv_prog_LEX
6350 if test -n "$LEX"; then
6351   { echo "$as_me:$LINENO: result: $LEX" >&5
6352 echo "${ECHO_T}$LEX" >&6; }
6353 else
6354   { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359   test -n "$LEX" && break
6360 done
6361 test -n "$LEX" || LEX=":"
6362
6363 if test -z "$LEXLIB"
6364 then
6365   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6366 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6367 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   ac_check_lib_save_LIBS=$LIBS
6371 LIBS="-lfl  $LIBS"
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378
6379 /* Override any GCC internal prototype to avoid an error.
6380    Use char because int might match the return type of a GCC
6381    builtin and then its argument prototype would still apply.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 char yywrap ();
6386 int
6387 main ()
6388 {
6389 return yywrap ();
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_link") 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409   { (case "(($ac_try" in
6410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411   *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414   (eval "$ac_try") 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest$ac_exeext'
6419   { (case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_try") 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_lib_fl_yywrap=yes
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433         ac_cv_lib_fl_yywrap=no
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext \
6437       conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6439 fi
6440 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6441 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6442 if test $ac_cv_lib_fl_yywrap = yes; then
6443   LEXLIB="-lfl"
6444 else
6445   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6446 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6447 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-ll  $LIBS"
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458
6459 /* Override any GCC internal prototype to avoid an error.
6460    Use char because int might match the return type of a GCC
6461    builtin and then its argument prototype would still apply.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 char yywrap ();
6466 int
6467 main ()
6468 {
6469 return yywrap ();
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (ac_try="$ac_link"
6476 case "(($ac_try" in
6477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478   *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481   (eval "$ac_link") 2>conftest.er1
6482   ac_status=$?
6483   grep -v '^ *+' conftest.er1 >conftest.err
6484   rm -f conftest.er1
6485   cat conftest.err >&5
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489   { (case "(($ac_try" in
6490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491   *) ac_try_echo=$ac_try;;
6492 esac
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494   (eval "$ac_try") 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504   (eval "$ac_try") 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   ac_cv_lib_l_yywrap=yes
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513         ac_cv_lib_l_yywrap=no
6514 fi
6515
6516 rm -f core conftest.err conftest.$ac_objext \
6517       conftest$ac_exeext conftest.$ac_ext
6518 LIBS=$ac_check_lib_save_LIBS
6519 fi
6520 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6521 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6522 if test $ac_cv_lib_l_yywrap = yes; then
6523   LEXLIB="-ll"
6524 fi
6525
6526 fi
6527
6528 fi
6529
6530 if test "x$LEX" != "x:"; then
6531   { echo "$as_me:$LINENO: checking lex output file root" >&5
6532 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_lex_root+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   # The minimal lex program is just a single line: %%.  But some broken lexes
6537 # (Solaris, I think it was) want two %% lines, so accommodate them.
6538 cat >conftest.l <<_ACEOF
6539 %%
6540 %%
6541 _ACEOF
6542 { (ac_try="$LEX conftest.l"
6543 case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$LEX conftest.l") 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }
6552 if test -f lex.yy.c; then
6553   ac_cv_prog_lex_root=lex.yy
6554 elif test -f lexyy.c; then
6555   ac_cv_prog_lex_root=lexyy
6556 else
6557   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6558 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6559    { (exit 1); exit 1; }; }
6560 fi
6561 fi
6562 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6563 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6564 rm -f conftest.l
6565 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6566
6567 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6568 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   # POSIX says lex can declare yytext either as a pointer or an array; the
6573 # default is implementation-dependent. Figure out which it is, since
6574 # not all implementations provide the %pointer and %array declarations.
6575 ac_cv_prog_lex_yytext_pointer=no
6576 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6577 ac_save_LIBS=$LIBS
6578 LIBS="$LIBS $LEXLIB"
6579 cat >conftest.$ac_ext <<_ACEOF
6580 `cat $LEX_OUTPUT_ROOT.c`
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (ac_try="$ac_link"
6584 case "(($ac_try" in
6585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586   *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589   (eval "$ac_link") 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597   { (case "(($ac_try" in
6598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599   *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602   (eval "$ac_try") 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (case "(($ac_try" in
6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609   *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612   (eval "$ac_try") 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; }; then
6616   ac_cv_prog_lex_yytext_pointer=yes
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621
6622 fi
6623
6624 rm -f core conftest.err conftest.$ac_objext \
6625       conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_save_LIBS
6627 rm -f "${LEX_OUTPUT_ROOT}.c"
6628
6629 fi
6630 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6631 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6632 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6633
6634 cat >>confdefs.h <<\_ACEOF
6635 #define YYTEXT_POINTER 1
6636 _ACEOF
6637
6638 fi
6639
6640 fi
6641
6642 fi
6643 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6644 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6645 if test "$LEX" != "flex"; then
6646   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6647 echo "$as_me: error: flex not found but required" >&2;}
6648    { (exit 1); exit 1; }; }
6649 else
6650   FLEX=flex
6651
6652 fi
6653
6654 { echo "$as_me:$LINENO: checking " >&5
6655 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6656 if test "${llvm_cv_has_bison+set}" = set; then
6657   echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659   for ac_prog in 'bison -y' byacc
6660 do
6661   # Extract the first word of "$ac_prog", so it can be a program name with args.
6662 set dummy $ac_prog; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_YACC+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   if test -n "$YACC"; then
6669   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_YACC="$ac_prog"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 YACC=$ac_cv_prog_YACC
6689 if test -n "$YACC"; then
6690   { echo "$as_me:$LINENO: result: $YACC" >&5
6691 echo "${ECHO_T}$YACC" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698   test -n "$YACC" && break
6699 done
6700 test -n "$YACC" || YACC="yacc"
6701
6702 fi
6703 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6704 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6705 if test "$YACC" != "bison -y"; then
6706
6707   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6708 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6709 else
6710   BISON=bison
6711
6712 fi
6713
6714 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6715 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6716 if test "${lt_cv_path_NM+set}" = set; then
6717   echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719   if test -n "$NM"; then
6720   # Let the user override the test.
6721   lt_cv_path_NM="$NM"
6722 else
6723   lt_nm_to_check="${ac_tool_prefix}nm"
6724   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6725     lt_nm_to_check="$lt_nm_to_check nm"
6726   fi
6727   for lt_tmp_nm in $lt_nm_to_check; do
6728     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6729     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6730       IFS="$lt_save_ifs"
6731       test -z "$ac_dir" && ac_dir=.
6732       tmp_nm="$ac_dir/$lt_tmp_nm"
6733       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6734         # Check to see if the nm accepts a BSD-compat flag.
6735         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6736         #   nm: unknown option "B" ignored
6737         # Tru64's nm complains that /dev/null is an invalid object file
6738         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6739         */dev/null* | *'Invalid file or object type'*)
6740           lt_cv_path_NM="$tmp_nm -B"
6741           break
6742           ;;
6743         *)
6744           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6745           */dev/null*)
6746             lt_cv_path_NM="$tmp_nm -p"
6747             break
6748             ;;
6749           *)
6750             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6751             continue # so that we can try to find one that supports BSD flags
6752             ;;
6753           esac
6754           ;;
6755         esac
6756       fi
6757     done
6758     IFS="$lt_save_ifs"
6759   done
6760   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6761 fi
6762 fi
6763 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6764 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6765 NM="$lt_cv_path_NM"
6766
6767
6768
6769 { echo "$as_me:$LINENO: checking for GNU make" >&5
6770 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6771 if test "${llvm_cv_gnu_make_command+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   llvm_cv_gnu_make_command=''
6775  for a in "$MAKE" make gmake gnumake ; do
6776   if test -z "$a" ; then continue ; fi ;
6777   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6778   then
6779    llvm_cv_gnu_make_command=$a ;
6780    break;
6781   fi
6782  done
6783 fi
6784 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6785 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6786  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6787    ifGNUmake='' ;
6788  else
6789    ifGNUmake='#' ;
6790    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6791 echo "${ECHO_T}\"Not found\"" >&6; };
6792  fi
6793
6794
6795 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6797 LN_S=$as_ln_s
6798 if test "$LN_S" = "ln -s"; then
6799   { echo "$as_me:$LINENO: result: yes" >&5
6800 echo "${ECHO_T}yes" >&6; }
6801 else
6802   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6803 echo "${ECHO_T}no, using $LN_S" >&6; }
6804 fi
6805
6806 # Extract the first word of "cmp", so it can be a program name with args.
6807 set dummy cmp; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_CMP+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   case $CMP in
6814   [\\/]* | ?:[\\/]*)
6815   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6816   ;;
6817   *)
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6834   ;;
6835 esac
6836 fi
6837 CMP=$ac_cv_path_CMP
6838 if test -n "$CMP"; then
6839   { echo "$as_me:$LINENO: result: $CMP" >&5
6840 echo "${ECHO_T}$CMP" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846
6847 # Extract the first word of "cp", so it can be a program name with args.
6848 set dummy cp; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_CP+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $CP in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6875   ;;
6876 esac
6877 fi
6878 CP=$ac_cv_path_CP
6879 if test -n "$CP"; then
6880   { echo "$as_me:$LINENO: result: $CP" >&5
6881 echo "${ECHO_T}$CP" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 # Extract the first word of "date", so it can be a program name with args.
6889 set dummy date; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_DATE+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   case $DATE in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905   for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6916   ;;
6917 esac
6918 fi
6919 DATE=$ac_cv_path_DATE
6920 if test -n "$DATE"; then
6921   { echo "$as_me:$LINENO: result: $DATE" >&5
6922 echo "${ECHO_T}$DATE" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928
6929 # Extract the first word of "find", so it can be a program name with args.
6930 set dummy find; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_FIND+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   case $FIND in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6957   ;;
6958 esac
6959 fi
6960 FIND=$ac_cv_path_FIND
6961 if test -n "$FIND"; then
6962   { echo "$as_me:$LINENO: result: $FIND" >&5
6963 echo "${ECHO_T}$FIND" >&6; }
6964 else
6965   { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6967 fi
6968
6969
6970 # Extract the first word of "grep", so it can be a program name with args.
6971 set dummy grep; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_GREP+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   case $GREP in
6978   [\\/]* | ?:[\\/]*)
6979   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6980   ;;
6981   *)
6982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6998   ;;
6999 esac
7000 fi
7001 GREP=$ac_cv_path_GREP
7002 if test -n "$GREP"; then
7003   { echo "$as_me:$LINENO: result: $GREP" >&5
7004 echo "${ECHO_T}$GREP" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 # Extract the first word of "mkdir", so it can be a program name with args.
7012 set dummy mkdir; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_MKDIR+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   case $MKDIR in
7019   [\\/]* | ?:[\\/]*)
7020   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7021   ;;
7022   *)
7023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028   for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7039   ;;
7040 esac
7041 fi
7042 MKDIR=$ac_cv_path_MKDIR
7043 if test -n "$MKDIR"; then
7044   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7045 echo "${ECHO_T}$MKDIR" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051
7052 # Extract the first word of "mv", so it can be a program name with args.
7053 set dummy mv; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_MV+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   case $MV in
7060   [\\/]* | ?:[\\/]*)
7061   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7062   ;;
7063   *)
7064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7080   ;;
7081 esac
7082 fi
7083 MV=$ac_cv_path_MV
7084 if test -n "$MV"; then
7085   { echo "$as_me:$LINENO: result: $MV" >&5
7086 echo "${ECHO_T}$MV" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7091
7092
7093 if test -n "$ac_tool_prefix"; then
7094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   if test -n "$RANLIB"; then
7102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124 echo "${ECHO_T}$RANLIB" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133   ac_ct_RANLIB=$RANLIB
7134   # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$ac_ct_RANLIB"; then
7142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_prog_ac_ct_RANLIB="ranlib"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170   if test "x$ac_ct_RANLIB" = x; then
7171     RANLIB=":"
7172   else
7173     case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176 whose name does not start with the host triplet.  If you think this
7177 configuration is useful to you, please write to autoconf@gnu.org." >&5
7178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179 whose name does not start with the host triplet.  If you think this
7180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183     RANLIB=$ac_ct_RANLIB
7184   fi
7185 else
7186   RANLIB="$ac_cv_prog_RANLIB"
7187 fi
7188
7189 # Extract the first word of "rm", so it can be a program name with args.
7190 set dummy rm; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_RM+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $RM in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7217   ;;
7218 esac
7219 fi
7220 RM=$ac_cv_path_RM
7221 if test -n "$RM"; then
7222   { echo "$as_me:$LINENO: result: $RM" >&5
7223 echo "${ECHO_T}$RM" >&6; }
7224 else
7225   { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7227 fi
7228
7229
7230 # Extract the first word of "sed", so it can be a program name with args.
7231 set dummy sed; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_SED+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   case $SED in
7238   [\\/]* | ?:[\\/]*)
7239   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7240   ;;
7241   *)
7242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247   for ac_exec_ext in '' $ac_executable_extensions; do
7248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7258   ;;
7259 esac
7260 fi
7261 SED=$ac_cv_path_SED
7262 if test -n "$SED"; then
7263   { echo "$as_me:$LINENO: result: $SED" >&5
7264 echo "${ECHO_T}$SED" >&6; }
7265 else
7266   { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7268 fi
7269
7270
7271 # Extract the first word of "tar", so it can be a program name with args.
7272 set dummy tar; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_TAR+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   case $TAR in
7279   [\\/]* | ?:[\\/]*)
7280   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7281   ;;
7282   *)
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7299   ;;
7300 esac
7301 fi
7302 TAR=$ac_cv_path_TAR
7303 if test -n "$TAR"; then
7304   { echo "$as_me:$LINENO: result: $TAR" >&5
7305 echo "${ECHO_T}$TAR" >&6; }
7306 else
7307   { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7309 fi
7310
7311
7312 # Extract the first word of "pwd", so it can be a program name with args.
7313 set dummy pwd; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_BINPWD+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   case $BINPWD in
7320   [\\/]* | ?:[\\/]*)
7321   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7322   ;;
7323   *)
7324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329   for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7340   ;;
7341 esac
7342 fi
7343 BINPWD=$ac_cv_path_BINPWD
7344 if test -n "$BINPWD"; then
7345   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7346 echo "${ECHO_T}$BINPWD" >&6; }
7347 else
7348   { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352
7353
7354 # Extract the first word of "Graphviz", so it can be a program name with args.
7355 set dummy Graphviz; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   case $GRAPHVIZ in
7362   [\\/]* | ?:[\\/]*)
7363   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7364   ;;
7365   *)
7366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7382   ;;
7383 esac
7384 fi
7385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7386 if test -n "$GRAPHVIZ"; then
7387   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7389 else
7390   { echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6; }
7392 fi
7393
7394
7395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7396
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_GRAPHVIZ 1
7399 _ACEOF
7400
7401     if test "$llvm_cv_os_type" = "MingW" ; then
7402     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7403   fi
7404
7405 cat >>confdefs.h <<_ACEOF
7406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7407 _ACEOF
7408
7409 fi
7410 # Extract the first word of "dot", so it can be a program name with args.
7411 set dummy dot; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_DOT+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   case $DOT in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7438   ;;
7439 esac
7440 fi
7441 DOT=$ac_cv_path_DOT
7442 if test -n "$DOT"; then
7443   { echo "$as_me:$LINENO: result: $DOT" >&5
7444 echo "${ECHO_T}$DOT" >&6; }
7445 else
7446   { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450
7451 if test "$DOT" != "echo dot" ; then
7452
7453 cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_DOT 1
7455 _ACEOF
7456
7457     if test "$llvm_cv_os_type" = "MingW" ; then
7458     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459   fi
7460
7461 cat >>confdefs.h <<_ACEOF
7462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7463 _ACEOF
7464
7465 fi
7466 for ac_prog in gv gsview32
7467 do
7468   # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy $ac_prog; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_GV+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   case $GV in
7476   [\\/]* | ?:[\\/]*)
7477   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7478   ;;
7479   *)
7480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495   ;;
7496 esac
7497 fi
7498 GV=$ac_cv_path_GV
7499 if test -n "$GV"; then
7500   { echo "$as_me:$LINENO: result: $GV" >&5
7501 echo "${ECHO_T}$GV" >&6; }
7502 else
7503   { echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6; }
7505 fi
7506
7507
7508   test -n "$GV" && break
7509 done
7510 test -n "$GV" || GV="echo gv"
7511
7512 if test "$GV" != "echo gv" ; then
7513
7514 cat >>confdefs.h <<\_ACEOF
7515 #define HAVE_GV 1
7516 _ACEOF
7517
7518     if test "$llvm_cv_os_type" = "MingW" ; then
7519     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7520   fi
7521
7522 cat >>confdefs.h <<_ACEOF
7523 #define LLVM_PATH_GV "$GV${EXEEXT}"
7524 _ACEOF
7525
7526 fi
7527 # Extract the first word of "dotty", so it can be a program name with args.
7528 set dummy dotty; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_DOTTY+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $DOTTY in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7537   ;;
7538   *)
7539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7555   ;;
7556 esac
7557 fi
7558 DOTTY=$ac_cv_path_DOTTY
7559 if test -n "$DOTTY"; then
7560   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7561 echo "${ECHO_T}$DOTTY" >&6; }
7562 else
7563   { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7565 fi
7566
7567
7568 if test "$DOTTY" != "echo dotty" ; then
7569
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_DOTTY 1
7572 _ACEOF
7573
7574     if test "$llvm_cv_os_type" = "MingW" ; then
7575     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576   fi
7577
7578 cat >>confdefs.h <<_ACEOF
7579 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7580 _ACEOF
7581
7582 fi
7583
7584
7585 # Extract the first word of "perl", so it can be a program name with args.
7586 set dummy perl; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_PERL+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $PERL in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7613   ;;
7614 esac
7615 fi
7616 PERL=$ac_cv_path_PERL
7617 if test -n "$PERL"; then
7618   { echo "$as_me:$LINENO: result: $PERL" >&5
7619 echo "${ECHO_T}$PERL" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626 if test "$PERL" != "none"; then
7627   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7628 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7629   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7630     { echo "$as_me:$LINENO: result: yes" >&5
7631 echo "${ECHO_T}yes" >&6; }
7632   else
7633     PERL=none
7634     { echo "$as_me:$LINENO: result: not found" >&5
7635 echo "${ECHO_T}not found" >&6; }
7636   fi
7637 fi
7638
7639
7640 if test x"$PERL" = xnone; then
7641    HAVE_PERL=0
7642
7643    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7644 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7645    { (exit 1); exit 1; }; }
7646 else
7647    HAVE_PERL=1
7648
7649 fi
7650
7651 # Find a good install program.  We prefer a C program (faster),
7652 # so one script is as good as another.  But avoid the broken or
7653 # incompatible versions:
7654 # SysV /etc/install, /usr/sbin/install
7655 # SunOS /usr/etc/install
7656 # IRIX /sbin/install
7657 # AIX /bin/install
7658 # AmigaOS /C/install, which installs bootblocks on floppy discs
7659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662 # OS/2's system install, which has a completely different semantic
7663 # ./install, which can be erroneously created by make from ./install.sh.
7664 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7666 if test -z "$INSTALL"; then
7667 if test "${ac_cv_path_install+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675   # Account for people who put trailing slashes in PATH elements.
7676 case $as_dir/ in
7677   ./ | .// | /cC/* | \
7678   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7679   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7680   /usr/ucb/* ) ;;
7681   *)
7682     # OSF1 and SCO ODT 3.0 have their own names for install.
7683     # Don't use installbsd from OSF since it installs stuff as root
7684     # by default.
7685     for ac_prog in ginstall scoinst install; do
7686       for ac_exec_ext in '' $ac_executable_extensions; do
7687         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7688           if test $ac_prog = install &&
7689             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7690             # AIX install.  It has an incompatible calling convention.
7691             :
7692           elif test $ac_prog = install &&
7693             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7694             # program-specific install script used by HP pwplus--don't use.
7695             :
7696           else
7697             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7698             break 3
7699           fi
7700         fi
7701       done
7702     done
7703     ;;
7704 esac
7705 done
7706 IFS=$as_save_IFS
7707
7708
7709 fi
7710   if test "${ac_cv_path_install+set}" = set; then
7711     INSTALL=$ac_cv_path_install
7712   else
7713     # As a last resort, use the slow shell script.  Don't cache a
7714     # value for INSTALL within a source directory, because that will
7715     # break other packages using the cache if that directory is
7716     # removed, or if the value is a relative name.
7717     INSTALL=$ac_install_sh
7718   fi
7719 fi
7720 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7721 echo "${ECHO_T}$INSTALL" >&6; }
7722
7723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7724 # It thinks the first close brace ends the variable substitution.
7725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7726
7727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7728
7729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7730
7731
7732 # Extract the first word of "bzip2", so it can be a program name with args.
7733 set dummy bzip2; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_path_BZIP2+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   case $BZIP2 in
7740   [\\/]* | ?:[\\/]*)
7741   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7742   ;;
7743   *)
7744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749   for ac_exec_ext in '' $ac_executable_extensions; do
7750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759   ;;
7760 esac
7761 fi
7762 BZIP2=$ac_cv_path_BZIP2
7763 if test -n "$BZIP2"; then
7764   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7765 echo "${ECHO_T}$BZIP2" >&6; }
7766 else
7767   { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7769 fi
7770
7771
7772 # Extract the first word of "doxygen", so it can be a program name with args.
7773 set dummy doxygen; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   case $DOXYGEN in
7780   [\\/]* | ?:[\\/]*)
7781   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7782   ;;
7783   *)
7784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799   ;;
7800 esac
7801 fi
7802 DOXYGEN=$ac_cv_path_DOXYGEN
7803 if test -n "$DOXYGEN"; then
7804   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7805 echo "${ECHO_T}$DOXYGEN" >&6; }
7806 else
7807   { echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6; }
7809 fi
7810
7811
7812 # Extract the first word of "groff", so it can be a program name with args.
7813 set dummy groff; ac_word=$2
7814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816 if test "${ac_cv_path_GROFF+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   case $GROFF in
7820   [\\/]* | ?:[\\/]*)
7821   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7822   ;;
7823   *)
7824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829   for ac_exec_ext in '' $ac_executable_extensions; do
7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839   ;;
7840 esac
7841 fi
7842 GROFF=$ac_cv_path_GROFF
7843 if test -n "$GROFF"; then
7844   { echo "$as_me:$LINENO: result: $GROFF" >&5
7845 echo "${ECHO_T}$GROFF" >&6; }
7846 else
7847   { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7849 fi
7850
7851
7852 # Extract the first word of "gzip", so it can be a program name with args.
7853 set dummy gzip; ac_word=$2
7854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7856 if test "${ac_cv_path_GZIP+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   case $GZIP in
7860   [\\/]* | ?:[\\/]*)
7861   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7862   ;;
7863   *)
7864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869   for ac_exec_ext in '' $ac_executable_extensions; do
7870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7871     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876 done
7877 IFS=$as_save_IFS
7878
7879   ;;
7880 esac
7881 fi
7882 GZIP=$ac_cv_path_GZIP
7883 if test -n "$GZIP"; then
7884   { echo "$as_me:$LINENO: result: $GZIP" >&5
7885 echo "${ECHO_T}$GZIP" >&6; }
7886 else
7887   { echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6; }
7889 fi
7890
7891
7892 # Extract the first word of "pod2html", so it can be a program name with args.
7893 set dummy pod2html; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_path_POD2HTML+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   case $POD2HTML in
7900   [\\/]* | ?:[\\/]*)
7901   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7902   ;;
7903   *)
7904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907   IFS=$as_save_IFS
7908   test -z "$as_dir" && as_dir=.
7909   for ac_exec_ext in '' $ac_executable_extensions; do
7910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7911     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913     break 2
7914   fi
7915 done
7916 done
7917 IFS=$as_save_IFS
7918
7919   ;;
7920 esac
7921 fi
7922 POD2HTML=$ac_cv_path_POD2HTML
7923 if test -n "$POD2HTML"; then
7924   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7925 echo "${ECHO_T}$POD2HTML" >&6; }
7926 else
7927   { echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6; }
7929 fi
7930
7931
7932 # Extract the first word of "pod2man", so it can be a program name with args.
7933 set dummy pod2man; ac_word=$2
7934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936 if test "${ac_cv_path_POD2MAN+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   case $POD2MAN in
7940   [\\/]* | ?:[\\/]*)
7941   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7942   ;;
7943   *)
7944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949   for ac_exec_ext in '' $ac_executable_extensions; do
7950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7951     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956 done
7957 IFS=$as_save_IFS
7958
7959   ;;
7960 esac
7961 fi
7962 POD2MAN=$ac_cv_path_POD2MAN
7963 if test -n "$POD2MAN"; then
7964   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7965 echo "${ECHO_T}$POD2MAN" >&6; }
7966 else
7967   { echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6; }
7969 fi
7970
7971
7972 # Extract the first word of "runtest", so it can be a program name with args.
7973 set dummy runtest; ac_word=$2
7974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7976 if test "${ac_cv_path_RUNTEST+set}" = set; then
7977   echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979   case $RUNTEST in
7980   [\\/]* | ?:[\\/]*)
7981   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7982   ;;
7983   *)
7984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989   for ac_exec_ext in '' $ac_executable_extensions; do
7990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7991     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999   ;;
8000 esac
8001 fi
8002 RUNTEST=$ac_cv_path_RUNTEST
8003 if test -n "$RUNTEST"; then
8004   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8005 echo "${ECHO_T}$RUNTEST" >&6; }
8006 else
8007   { echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6; }
8009 fi
8010
8011
8012
8013 no_itcl=true
8014 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8015 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8016
8017 # Check whether --with-tclinclude was given.
8018 if test "${with_tclinclude+set}" = set; then
8019   withval=$with_tclinclude; with_tclinclude=${withval}
8020 else
8021   with_tclinclude=''
8022 fi
8023
8024 if test "${ac_cv_path_tclsh+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027
8028 if test x"${with_tclinclude}" != x ; then
8029   if test -f ${with_tclinclude}/tclsh ; then
8030     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8031   elif test -f ${with_tclinclude}/src/tclsh ; then
8032     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8033   else
8034     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8035 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8036    { (exit 1); exit 1; }; }
8037   fi
8038 fi
8039
8040 if test x"${ac_cv_path_tclsh}" = x ; then
8041   { echo "$as_me:$LINENO: result: none" >&5
8042 echo "${ECHO_T}none" >&6; }
8043   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
8044 do
8045   # Extract the first word of "$ac_prog", so it can be a program name with args.
8046 set dummy $ac_prog; ac_word=$2
8047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_TCLSH+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   case $TCLSH in
8053   [\\/]* | ?:[\\/]*)
8054   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8055   ;;
8056   *)
8057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060   IFS=$as_save_IFS
8061   test -z "$as_dir" && as_dir=.
8062   for ac_exec_ext in '' $ac_executable_extensions; do
8063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066     break 2
8067   fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072   ;;
8073 esac
8074 fi
8075 TCLSH=$ac_cv_path_TCLSH
8076 if test -n "$TCLSH"; then
8077   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8078 echo "${ECHO_T}$TCLSH" >&6; }
8079 else
8080   { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8082 fi
8083
8084
8085   test -n "$TCLSH" && break
8086 done
8087
8088   if test x"${TCLSH}" = x ; then
8089     ac_cv_path_tclsh='';
8090   else
8091     ac_cv_path_tclsh="${TCLSH}";
8092   fi
8093 else
8094   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8095 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8096   TCLSH="${ac_cv_path_tclsh}"
8097
8098 fi
8099
8100 fi
8101
8102 # Extract the first word of "zip", so it can be a program name with args.
8103 set dummy zip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_path_ZIP+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   case $ZIP in
8110   [\\/]* | ?:[\\/]*)
8111   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8112   ;;
8113   *)
8114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119   for ac_exec_ext in '' $ac_executable_extensions; do
8120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8121     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129   ;;
8130 esac
8131 fi
8132 ZIP=$ac_cv_path_ZIP
8133 if test -n "$ZIP"; then
8134   { echo "$as_me:$LINENO: result: $ZIP" >&5
8135 echo "${ECHO_T}$ZIP" >&6; }
8136 else
8137   { echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6; }
8139 fi
8140
8141
8142 for ac_prog in ocamlc.opt ocamlc
8143 do
8144   # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_path_OCAMLC+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   case $OCAMLC in
8152   [\\/]* | ?:[\\/]*)
8153   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8154   ;;
8155   *)
8156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159   IFS=$as_save_IFS
8160   test -z "$as_dir" && as_dir=.
8161   for ac_exec_ext in '' $ac_executable_extensions; do
8162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8163     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165     break 2
8166   fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171   ;;
8172 esac
8173 fi
8174 OCAMLC=$ac_cv_path_OCAMLC
8175 if test -n "$OCAMLC"; then
8176   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8177 echo "${ECHO_T}$OCAMLC" >&6; }
8178 else
8179   { echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6; }
8181 fi
8182
8183
8184   test -n "$OCAMLC" && break
8185 done
8186
8187 for ac_prog in ocamlopt.opt ocamlopt
8188 do
8189   # Extract the first word of "$ac_prog", so it can be a program name with args.
8190 set dummy $ac_prog; ac_word=$2
8191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   case $OCAMLOPT in
8197   [\\/]* | ?:[\\/]*)
8198   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8199   ;;
8200   *)
8201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206   for ac_exec_ext in '' $ac_executable_extensions; do
8207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8208     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213 done
8214 IFS=$as_save_IFS
8215
8216   ;;
8217 esac
8218 fi
8219 OCAMLOPT=$ac_cv_path_OCAMLOPT
8220 if test -n "$OCAMLOPT"; then
8221   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8222 echo "${ECHO_T}$OCAMLOPT" >&6; }
8223 else
8224   { echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6; }
8226 fi
8227
8228
8229   test -n "$OCAMLOPT" && break
8230 done
8231
8232 for ac_prog in ocamldep.opt ocamldep
8233 do
8234   # Extract the first word of "$ac_prog", so it can be a program name with args.
8235 set dummy $ac_prog; ac_word=$2
8236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   case $OCAMLDEP in
8242   [\\/]* | ?:[\\/]*)
8243   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8244   ;;
8245   *)
8246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249   IFS=$as_save_IFS
8250   test -z "$as_dir" && as_dir=.
8251   for ac_exec_ext in '' $ac_executable_extensions; do
8252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8253     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255     break 2
8256   fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261   ;;
8262 esac
8263 fi
8264 OCAMLDEP=$ac_cv_path_OCAMLDEP
8265 if test -n "$OCAMLDEP"; then
8266   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8267 echo "${ECHO_T}$OCAMLDEP" >&6; }
8268 else
8269   { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8271 fi
8272
8273
8274   test -n "$OCAMLDEP" && break
8275 done
8276
8277 for ac_prog in ocamldoc.opt ocamldoc
8278 do
8279   # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   case $OCAMLDOC in
8287   [\\/]* | ?:[\\/]*)
8288   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8289   ;;
8290   *)
8291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296   for ac_exec_ext in '' $ac_executable_extensions; do
8297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8298     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306   ;;
8307 esac
8308 fi
8309 OCAMLDOC=$ac_cv_path_OCAMLDOC
8310 if test -n "$OCAMLDOC"; then
8311   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8312 echo "${ECHO_T}$OCAMLDOC" >&6; }
8313 else
8314   { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8316 fi
8317
8318
8319   test -n "$OCAMLDOC" && break
8320 done
8321
8322
8323 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8324 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8325 if test "${llvm_cv_link_use_r+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328    ac_ext=c
8329 ac_cpp='$CPP $CPPFLAGS'
8330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8333
8334   oldcflags="$CFLAGS"
8335   CFLAGS="$CFLAGS -Wl,-R."
8336   cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342
8343 int
8344 main ()
8345 {
8346 int main() { return 0; }
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (ac_try="$ac_link"
8353 case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_link") 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; } &&
8375          { ac_try='test -s conftest$ac_exeext'
8376   { (case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_try") 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; }; then
8385   llvm_cv_link_use_r=yes
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         llvm_cv_link_use_r=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext \
8394       conftest$ac_exeext conftest.$ac_ext
8395   CFLAGS="$oldcflags"
8396   ac_ext=c
8397 ac_cpp='$CPP $CPPFLAGS'
8398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402
8403 fi
8404 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8405 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8406 if test "$llvm_cv_link_use_r" = yes ; then
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_LINK_R 1
8410 _ACEOF
8411
8412   fi
8413
8414
8415
8416
8417 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8419 if test "${ac_cv_c_const+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 int
8430 main ()
8431 {
8432 /* FIXME: Include the comments suggested by Paul. */
8433 #ifndef __cplusplus
8434   /* Ultrix mips cc rejects this.  */
8435   typedef int charset[2];
8436   const charset x;
8437   /* SunOS 4.1.1 cc rejects this.  */
8438   char const *const *ccp;
8439   char **p;
8440   /* NEC SVR4.0.2 mips cc rejects this.  */
8441   struct point {int x, y;};
8442   static struct point const zero = {0,0};
8443   /* AIX XL C 1.02.0.0 rejects this.
8444      It does not let you subtract one const X* pointer from another in
8445      an arm of an if-expression whose if-part is not a constant
8446      expression */
8447   const char *g = "string";
8448   ccp = &g + (g ? g-g : 0);
8449   /* HPUX 7.0 cc rejects these. */
8450   ++ccp;
8451   p = (char**) ccp;
8452   ccp = (char const *const *) p;
8453   { /* SCO 3.2v4 cc rejects this.  */
8454     char *t;
8455     char const *s = 0 ? (char *) 0 : (char const *) 0;
8456
8457     *t++ = 0;
8458     if (s) return 0;
8459   }
8460   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8461     int x[] = {25, 17};
8462     const int *foo = &x[0];
8463     ++foo;
8464   }
8465   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8466     typedef const int *iptr;
8467     iptr p = 0;
8468     ++p;
8469   }
8470   { /* AIX XL C 1.02.0.0 rejects this saying
8471        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8472     struct s { int j; const int *ap[3]; };
8473     struct s *b; b->j = 5;
8474   }
8475   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8476     const int foo = 10;
8477     if (!foo) return 0;
8478   }
8479   return !x[0] && !zero.x;
8480 #endif
8481
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490   *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493   (eval "$ac_compile") 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest.$ac_objext'
8511   { (case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_try") 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; }; then
8520   ac_cv_c_const=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525         ac_cv_c_const=no
8526 fi
8527
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 fi
8530 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8531 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8532 if test $ac_cv_c_const = no; then
8533
8534 cat >>confdefs.h <<\_ACEOF
8535 #define const
8536 _ACEOF
8537
8538 fi
8539
8540
8541
8542
8543
8544
8545 ac_header_dirent=no
8546 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8547   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8548 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8549 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559 #include <sys/types.h>
8560 #include <$ac_hdr>
8561
8562 int
8563 main ()
8564 {
8565 if ((DIR *) 0)
8566 return 0;
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_compile") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586   { (case "(($ac_try" in
8587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588   *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591   (eval "$ac_try") 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest.$ac_objext'
8596   { (case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_try") 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   eval "$as_ac_Header=yes"
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610         eval "$as_ac_Header=no"
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 ac_res=`eval echo '${'$as_ac_Header'}'`
8616                { echo "$as_me:$LINENO: result: $ac_res" >&5
8617 echo "${ECHO_T}$ac_res" >&6; }
8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619   cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8621 _ACEOF
8622
8623 ac_header_dirent=$ac_hdr; break
8624 fi
8625
8626 done
8627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628 if test $ac_header_dirent = dirent.h; then
8629   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8631 if test "${ac_cv_search_opendir+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   ac_func_search_save_LIBS=$LIBS
8635 cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641
8642 /* Override any GCC internal prototype to avoid an error.
8643    Use char because int might match the return type of a GCC
8644    builtin and then its argument prototype would still apply.  */
8645 #ifdef __cplusplus
8646 extern "C"
8647 #endif
8648 char opendir ();
8649 int
8650 main ()
8651 {
8652 return opendir ();
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 for ac_lib in '' dir; do
8658   if test -z "$ac_lib"; then
8659     ac_res="none required"
8660   else
8661     ac_res=-l$ac_lib
8662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8663   fi
8664   rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (ac_try="$ac_link"
8666 case "(($ac_try" in
8667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668   *) ac_try_echo=$ac_try;;
8669 esac
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671   (eval "$ac_link") 2>conftest.er1
8672   ac_status=$?
8673   grep -v '^ *+' conftest.er1 >conftest.err
8674   rm -f conftest.er1
8675   cat conftest.err >&5
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); } &&
8678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679   { (case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684   (eval "$ac_try") 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; } &&
8688          { ac_try='test -s conftest$ac_exeext'
8689   { (case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_try") 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; }; then
8698   ac_cv_search_opendir=$ac_res
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext \
8707       conftest$ac_exeext
8708   if test "${ac_cv_search_opendir+set}" = set; then
8709   break
8710 fi
8711 done
8712 if test "${ac_cv_search_opendir+set}" = set; then
8713   :
8714 else
8715   ac_cv_search_opendir=no
8716 fi
8717 rm conftest.$ac_ext
8718 LIBS=$ac_func_search_save_LIBS
8719 fi
8720 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8721 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8722 ac_res=$ac_cv_search_opendir
8723 if test "$ac_res" != no; then
8724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8725
8726 fi
8727
8728 else
8729   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8731 if test "${ac_cv_search_opendir+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   ac_func_search_save_LIBS=$LIBS
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any GCC internal prototype to avoid an error.
8743    Use char because int might match the return type of a GCC
8744    builtin and then its argument prototype would still apply.  */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 char opendir ();
8749 int
8750 main ()
8751 {
8752 return opendir ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 for ac_lib in '' x; do
8758   if test -z "$ac_lib"; then
8759     ac_res="none required"
8760   else
8761     ac_res=-l$ac_lib
8762     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8763   fi
8764   rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (ac_try="$ac_link"
8766 case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771   (eval "$ac_link") 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779   { (case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_try") 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; } &&
8788          { ac_try='test -s conftest$ac_exeext'
8789   { (case "(($ac_try" in
8790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791   *) ac_try_echo=$ac_try;;
8792 esac
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794   (eval "$ac_try") 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_search_opendir=$ac_res
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803
8804 fi
8805
8806 rm -f core conftest.err conftest.$ac_objext \
8807       conftest$ac_exeext
8808   if test "${ac_cv_search_opendir+set}" = set; then
8809   break
8810 fi
8811 done
8812 if test "${ac_cv_search_opendir+set}" = set; then
8813   :
8814 else
8815   ac_cv_search_opendir=no
8816 fi
8817 rm conftest.$ac_ext
8818 LIBS=$ac_func_search_save_LIBS
8819 fi
8820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8822 ac_res=$ac_cv_search_opendir
8823 if test "$ac_res" != no; then
8824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8825
8826 fi
8827
8828 fi
8829
8830
8831 for ac_header in dlfcn.h
8832 do
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 fi
8840 ac_res=`eval echo '${'$as_ac_Header'}'`
8841                { echo "$as_me:$LINENO: result: $ac_res" >&5
8842 echo "${ECHO_T}$ac_res" >&6; }
8843 else
8844   # Is the header compilable?
8845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853 $ac_includes_default
8854 #include <$ac_header>
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8858 case "(($ac_try" in
8859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860   *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863   (eval "$ac_compile") 2>conftest.er1
8864   ac_status=$?
8865   grep -v '^ *+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } &&
8870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871   { (case "(($ac_try" in
8872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873   *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876   (eval "$ac_try") 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; } &&
8880          { ac_try='test -s conftest.$ac_objext'
8881   { (case "(($ac_try" in
8882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883   *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886   (eval "$ac_try") 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); }; }; then
8890   ac_header_compiler=yes
8891 else
8892   echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895         ac_header_compiler=no
8896 fi
8897
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8900 echo "${ECHO_T}$ac_header_compiler" >&6; }
8901
8902 # Is the header present?
8903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 #include <$ac_header>
8912 _ACEOF
8913 if { (ac_try="$ac_cpp conftest.$ac_ext"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } >/dev/null; then
8926   if test -s conftest.err; then
8927     ac_cpp_err=$ac_c_preproc_warn_flag
8928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8929   else
8930     ac_cpp_err=
8931   fi
8932 else
8933   ac_cpp_err=yes
8934 fi
8935 if test -z "$ac_cpp_err"; then
8936   ac_header_preproc=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941   ac_header_preproc=no
8942 fi
8943
8944 rm -f conftest.err conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8946 echo "${ECHO_T}$ac_header_preproc" >&6; }
8947
8948 # So?  What about this header?
8949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8950   yes:no: )
8951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8955     ac_header_preproc=yes
8956     ;;
8957   no:yes:* )
8958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8970     ( cat <<\_ASBOX
8971 ## ----------------------------------- ##
8972 ## Report this to llvmbugs@cs.uiuc.edu ##
8973 ## ----------------------------------- ##
8974 _ASBOX
8975      ) | sed "s/^/$as_me: WARNING:     /" >&2
8976     ;;
8977 esac
8978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   eval "$as_ac_Header=\$ac_header_preproc"
8984 fi
8985 ac_res=`eval echo '${'$as_ac_Header'}'`
8986                { echo "$as_me:$LINENO: result: $ac_res" >&5
8987 echo "${ECHO_T}$ac_res" >&6; }
8988
8989 fi
8990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8991   cat >>confdefs.h <<_ACEOF
8992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993 _ACEOF
8994
8995 fi
8996
8997 done
8998
8999 # Check whether --enable-ltdl-install was given.
9000 if test "${enable_ltdl_install+set}" = set; then
9001   enableval=$enable_ltdl_install;
9002 fi
9003
9004
9005
9006
9007 if test x"${enable_ltdl_install-no}" != xno; then
9008   INSTALL_LTDL_TRUE=
9009   INSTALL_LTDL_FALSE='#'
9010 else
9011   INSTALL_LTDL_TRUE='#'
9012   INSTALL_LTDL_FALSE=
9013 fi
9014
9015
9016
9017 if test x"${enable_ltdl_convenience-no}" != xno; then
9018   CONVENIENCE_LTDL_TRUE=
9019   CONVENIENCE_LTDL_FALSE='#'
9020 else
9021   CONVENIENCE_LTDL_TRUE='#'
9022   CONVENIENCE_LTDL_FALSE=
9023 fi
9024
9025
9026 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9028 library_names_spec=
9029 libname_spec='lib$name'
9030 soname_spec=
9031 shrext_cmds=".so"
9032 postinstall_cmds=
9033 postuninstall_cmds=
9034 finish_cmds=
9035 finish_eval=
9036 shlibpath_var=
9037 shlibpath_overrides_runpath=unknown
9038 version_type=none
9039 dynamic_linker="$host_os ld.so"
9040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9041 if test "$GCC" = yes; then
9042   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9043   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9044     # if the path contains ";" then we assume it to be the separator
9045     # otherwise default to the standard path separator (i.e. ":") - it is
9046     # assumed that no part of a normal pathname contains ";" but that should
9047     # okay in the real world where ";" in dirpaths is itself problematic.
9048     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9049   else
9050     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9051   fi
9052 else
9053   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9054 fi
9055 need_lib_prefix=unknown
9056 hardcode_into_libs=no
9057
9058 # when you set need_version to no, make sure it does not cause -set_version
9059 # flags to be left without arguments
9060 need_version=unknown
9061
9062 case $host_os in
9063 aix3*)
9064   version_type=linux
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9066   shlibpath_var=LIBPATH
9067
9068   # AIX 3 has no versioning support, so we append a major version to the name.
9069   soname_spec='${libname}${release}${shared_ext}$major'
9070   ;;
9071
9072 aix4* | aix5*)
9073   version_type=linux
9074   need_lib_prefix=no
9075   need_version=no
9076   hardcode_into_libs=yes
9077   if test "$host_cpu" = ia64; then
9078     # AIX 5 supports IA64
9079     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9080     shlibpath_var=LD_LIBRARY_PATH
9081   else
9082     # With GCC up to 2.95.x, collect2 would create an import file
9083     # for dependence libraries.  The import file would start with
9084     # the line `#! .'.  This would cause the generated library to
9085     # depend on `.', always an invalid library.  This was fixed in
9086     # development snapshots of GCC prior to 3.0.
9087     case $host_os in
9088       aix4 | aix4.[01] | aix4.[01].*)
9089       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9090            echo ' yes '
9091            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9092         :
9093       else
9094         can_build_shared=no
9095       fi
9096       ;;
9097     esac
9098     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9099     # soname into executable. Probably we can add versioning support to
9100     # collect2, so additional links can be useful in future.
9101     if test "$aix_use_runtimelinking" = yes; then
9102       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9103       # instead of lib<name>.a to let people know that these are not
9104       # typical AIX shared libraries.
9105       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106     else
9107       # We preserve .a as extension for shared libraries through AIX4.2
9108       # and later when we are not doing run time linking.
9109       library_names_spec='${libname}${release}.a $libname.a'
9110       soname_spec='${libname}${release}${shared_ext}$major'
9111     fi
9112     shlibpath_var=LIBPATH
9113   fi
9114   ;;
9115
9116 amigaos*)
9117   library_names_spec='$libname.ixlibrary $libname.a'
9118   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9119   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'
9120   ;;
9121
9122 beos*)
9123   library_names_spec='${libname}${shared_ext}'
9124   dynamic_linker="$host_os ld.so"
9125   shlibpath_var=LIBRARY_PATH
9126   ;;
9127
9128 bsdi[45]*)
9129   version_type=linux
9130   need_version=no
9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132   soname_spec='${libname}${release}${shared_ext}$major'
9133   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9134   shlibpath_var=LD_LIBRARY_PATH
9135   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9136   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9137   # the default ld.so.conf also contains /usr/contrib/lib and
9138   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9139   # libtool to hard-code these into programs
9140   ;;
9141
9142 cygwin* | mingw* | pw32*)
9143   version_type=windows
9144   shrext_cmds=".dll"
9145   need_version=no
9146   need_lib_prefix=no
9147
9148   case $GCC,$host_os in
9149   yes,cygwin* | yes,mingw* | yes,pw32*)
9150     library_names_spec='$libname.dll.a'
9151     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9152     postinstall_cmds='base_file=`basename \${file}`~
9153       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9154       dldir=$destdir/`dirname \$dlpath`~
9155       test -d \$dldir || mkdir -p \$dldir~
9156       $install_prog $dir/$dlname \$dldir/$dlname~
9157       chmod a+x \$dldir/$dlname'
9158     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9159       dlpath=$dir/\$dldll~
9160        $rm \$dlpath'
9161     shlibpath_overrides_runpath=yes
9162
9163     case $host_os in
9164     cygwin*)
9165       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9166       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9167       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9168       ;;
9169     mingw*)
9170       # MinGW DLLs use traditional 'lib' prefix
9171       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9172       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9173       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9174         # It is most probably a Windows format PATH printed by
9175         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9176         # path with ; separators, and with drive letters. We can handle the
9177         # drive letters (cygwin fileutils understands them), so leave them,
9178         # especially as we might pass files found there to a mingw objdump,
9179         # which wouldn't understand a cygwinified path. Ahh.
9180         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9181       else
9182         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9183       fi
9184       ;;
9185     pw32*)
9186       # pw32 DLLs use 'pw' prefix rather than 'lib'
9187       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9188       ;;
9189     esac
9190     ;;
9191
9192   *)
9193     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9194     ;;
9195   esac
9196   dynamic_linker='Win32 ld.exe'
9197   # FIXME: first we should search . and the directory the executable is in
9198   shlibpath_var=PATH
9199   ;;
9200
9201 darwin* | rhapsody*)
9202   dynamic_linker="$host_os dyld"
9203   version_type=darwin
9204   need_lib_prefix=no
9205   need_version=no
9206   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9207   soname_spec='${libname}${release}${major}$shared_ext'
9208   shlibpath_overrides_runpath=yes
9209   shlibpath_var=DYLD_LIBRARY_PATH
9210   shrext_cmds='.dylib'
9211   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9212   if test "$GCC" = yes; then
9213     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"`
9214   else
9215     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9216   fi
9217   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9218   ;;
9219
9220 dgux*)
9221   version_type=linux
9222   need_lib_prefix=no
9223   need_version=no
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   ;;
9228
9229 freebsd1*)
9230   dynamic_linker=no
9231   ;;
9232
9233 kfreebsd*-gnu)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   shlibpath_var=LD_LIBRARY_PATH
9240   shlibpath_overrides_runpath=no
9241   hardcode_into_libs=yes
9242   dynamic_linker='GNU ld.so'
9243   ;;
9244
9245 freebsd* | dragonfly*)
9246   # DragonFly does not have aout.  When/if they implement a new
9247   # versioning mechanism, adjust this.
9248   if test -x /usr/bin/objformat; then
9249     objformat=`/usr/bin/objformat`
9250   else
9251     case $host_os in
9252     freebsd[123]*) objformat=aout ;;
9253     *) objformat=elf ;;
9254     esac
9255   fi
9256   version_type=freebsd-$objformat
9257   case $version_type in
9258     freebsd-elf*)
9259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9260       need_version=no
9261       need_lib_prefix=no
9262       ;;
9263     freebsd-*)
9264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9265       need_version=yes
9266       ;;
9267   esac
9268   shlibpath_var=LD_LIBRARY_PATH
9269   case $host_os in
9270   freebsd2*)
9271     shlibpath_overrides_runpath=yes
9272     ;;
9273   freebsd3.[01]* | freebsdelf3.[01]*)
9274     shlibpath_overrides_runpath=yes
9275     hardcode_into_libs=yes
9276     ;;
9277   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9278   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9279     shlibpath_overrides_runpath=no
9280     hardcode_into_libs=yes
9281     ;;
9282   freebsd*) # from 4.6 on
9283     shlibpath_overrides_runpath=yes
9284     hardcode_into_libs=yes
9285     ;;
9286   esac
9287   ;;
9288
9289 gnu*)
9290   version_type=linux
9291   need_lib_prefix=no
9292   need_version=no
9293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   hardcode_into_libs=yes
9297   ;;
9298
9299 hpux9* | hpux10* | hpux11*)
9300   # Give a soname corresponding to the major version so that dld.sl refuses to
9301   # link against other versions.
9302   version_type=sunos
9303   need_lib_prefix=no
9304   need_version=no
9305   case $host_cpu in
9306   ia64*)
9307     shrext_cmds='.so'
9308     hardcode_into_libs=yes
9309     dynamic_linker="$host_os dld.so"
9310     shlibpath_var=LD_LIBRARY_PATH
9311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313     soname_spec='${libname}${release}${shared_ext}$major'
9314     if test "X$HPUX_IA64_MODE" = X32; then
9315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9316     else
9317       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9318     fi
9319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9320     ;;
9321    hppa*64*)
9322      shrext_cmds='.sl'
9323      hardcode_into_libs=yes
9324      dynamic_linker="$host_os dld.sl"
9325      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9326      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328      soname_spec='${libname}${release}${shared_ext}$major'
9329      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9330      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9331      ;;
9332    *)
9333     shrext_cmds='.sl'
9334     dynamic_linker="$host_os dld.sl"
9335     shlibpath_var=SHLIB_PATH
9336     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338     soname_spec='${libname}${release}${shared_ext}$major'
9339     ;;
9340   esac
9341   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9342   postinstall_cmds='chmod 555 $lib'
9343   ;;
9344
9345 interix3*)
9346   version_type=linux
9347   need_lib_prefix=no
9348   need_version=no
9349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9350   soname_spec='${libname}${release}${shared_ext}$major'
9351   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=no
9354   hardcode_into_libs=yes
9355   ;;
9356
9357 irix5* | irix6* | nonstopux*)
9358   case $host_os in
9359     nonstopux*) version_type=nonstopux ;;
9360     *)
9361         if test "$lt_cv_prog_gnu_ld" = yes; then
9362                 version_type=linux
9363         else
9364                 version_type=irix
9365         fi ;;
9366   esac
9367   need_lib_prefix=no
9368   need_version=no
9369   soname_spec='${libname}${release}${shared_ext}$major'
9370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9371   case $host_os in
9372   irix5* | nonstopux*)
9373     libsuff= shlibsuff=
9374     ;;
9375   *)
9376     case $LD in # libtool.m4 will add one of these switches to LD
9377     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9378       libsuff= shlibsuff= libmagic=32-bit;;
9379     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9380       libsuff=32 shlibsuff=N32 libmagic=N32;;
9381     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9382       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9383     *) libsuff= shlibsuff= libmagic=never-match;;
9384     esac
9385     ;;
9386   esac
9387   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9388   shlibpath_overrides_runpath=no
9389   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9390   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9391   hardcode_into_libs=yes
9392   ;;
9393
9394 # No shared lib support for Linux oldld, aout, or coff.
9395 linux*oldld* | linux*aout* | linux*coff*)
9396   dynamic_linker=no
9397   ;;
9398
9399 # This must be Linux ELF.
9400 linux*)
9401   version_type=linux
9402   need_lib_prefix=no
9403   need_version=no
9404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405   soname_spec='${libname}${release}${shared_ext}$major'
9406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   shlibpath_overrides_runpath=no
9409   # This implies no fast_install, which is unacceptable.
9410   # Some rework will be needed to allow for fast_install
9411   # before this can be enabled.
9412   hardcode_into_libs=yes
9413
9414   # Append ld.so.conf contents to the search path
9415   if test -f /etc/ld.so.conf; then
9416     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' ' '`
9417     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9418   fi
9419
9420   # We used to test for /lib/ld.so.1 and disable shared libraries on
9421   # powerpc, because MkLinux only supported shared libraries with the
9422   # GNU dynamic linker.  Since this was broken with cross compilers,
9423   # most powerpc-linux boxes support dynamic linking these days and
9424   # people can always --disable-shared, the test was removed, and we
9425   # assume the GNU/Linux dynamic linker is in use.
9426   dynamic_linker='GNU/Linux ld.so'
9427   ;;
9428
9429 knetbsd*-gnu)
9430   version_type=linux
9431   need_lib_prefix=no
9432   need_version=no
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9434   soname_spec='${libname}${release}${shared_ext}$major'
9435   shlibpath_var=LD_LIBRARY_PATH
9436   shlibpath_overrides_runpath=no
9437   hardcode_into_libs=yes
9438   dynamic_linker='GNU ld.so'
9439   ;;
9440
9441 netbsd*)
9442   version_type=sunos
9443   need_lib_prefix=no
9444   need_version=no
9445   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9447     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9448     dynamic_linker='NetBSD (a.out) ld.so'
9449   else
9450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451     soname_spec='${libname}${release}${shared_ext}$major'
9452     dynamic_linker='NetBSD ld.elf_so'
9453   fi
9454   shlibpath_var=LD_LIBRARY_PATH
9455   shlibpath_overrides_runpath=yes
9456   hardcode_into_libs=yes
9457   ;;
9458
9459 newsos6)
9460   version_type=linux
9461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   shlibpath_overrides_runpath=yes
9464   ;;
9465
9466 nto-qnx*)
9467   version_type=linux
9468   need_lib_prefix=no
9469   need_version=no
9470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471   soname_spec='${libname}${release}${shared_ext}$major'
9472   shlibpath_var=LD_LIBRARY_PATH
9473   shlibpath_overrides_runpath=yes
9474   ;;
9475
9476 openbsd*)
9477   version_type=sunos
9478   sys_lib_dlsearch_path_spec="/usr/lib"
9479   need_lib_prefix=no
9480   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9481   case $host_os in
9482     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9483     *)                         need_version=no  ;;
9484   esac
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9487   shlibpath_var=LD_LIBRARY_PATH
9488   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9489     case $host_os in
9490       openbsd2.[89] | openbsd2.[89].*)
9491         shlibpath_overrides_runpath=no
9492         ;;
9493       *)
9494         shlibpath_overrides_runpath=yes
9495         ;;
9496       esac
9497   else
9498     shlibpath_overrides_runpath=yes
9499   fi
9500   ;;
9501
9502 os2*)
9503   libname_spec='$name'
9504   shrext_cmds=".dll"
9505   need_lib_prefix=no
9506   library_names_spec='$libname${shared_ext} $libname.a'
9507   dynamic_linker='OS/2 ld.exe'
9508   shlibpath_var=LIBPATH
9509   ;;
9510
9511 osf3* | osf4* | osf5*)
9512   version_type=osf
9513   need_lib_prefix=no
9514   need_version=no
9515   soname_spec='${libname}${release}${shared_ext}$major'
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517   shlibpath_var=LD_LIBRARY_PATH
9518   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9519   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9520   ;;
9521
9522 solaris*)
9523   version_type=linux
9524   need_lib_prefix=no
9525   need_version=no
9526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527   soname_spec='${libname}${release}${shared_ext}$major'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=yes
9530   hardcode_into_libs=yes
9531   # ldd complains unless libraries are executable
9532   postinstall_cmds='chmod +x $lib'
9533   ;;
9534
9535 sunos4*)
9536   version_type=sunos
9537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9538   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9539   shlibpath_var=LD_LIBRARY_PATH
9540   shlibpath_overrides_runpath=yes
9541   if test "$with_gnu_ld" = yes; then
9542     need_lib_prefix=no
9543   fi
9544   need_version=yes
9545   ;;
9546
9547 sysv4 | sysv4.3*)
9548   version_type=linux
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   case $host_vendor in
9553     sni)
9554       shlibpath_overrides_runpath=no
9555       need_lib_prefix=no
9556       export_dynamic_flag_spec='${wl}-Blargedynsym'
9557       runpath_var=LD_RUN_PATH
9558       ;;
9559     siemens)
9560       need_lib_prefix=no
9561       ;;
9562     motorola)
9563       need_lib_prefix=no
9564       need_version=no
9565       shlibpath_overrides_runpath=no
9566       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9567       ;;
9568   esac
9569   ;;
9570
9571 sysv4*MP*)
9572   if test -d /usr/nec ;then
9573     version_type=linux
9574     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9575     soname_spec='$libname${shared_ext}.$major'
9576     shlibpath_var=LD_LIBRARY_PATH
9577   fi
9578   ;;
9579
9580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9581   version_type=freebsd-elf
9582   need_lib_prefix=no
9583   need_version=no
9584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9585   soname_spec='${libname}${release}${shared_ext}$major'
9586   shlibpath_var=LD_LIBRARY_PATH
9587   hardcode_into_libs=yes
9588   if test "$with_gnu_ld" = yes; then
9589     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9590     shlibpath_overrides_runpath=no
9591   else
9592     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9593     shlibpath_overrides_runpath=yes
9594     case $host_os in
9595       sco3.2v5*)
9596         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9597         ;;
9598     esac
9599   fi
9600   sys_lib_dlsearch_path_spec='/usr/lib'
9601   ;;
9602
9603 uts4*)
9604   version_type=linux
9605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606   soname_spec='${libname}${release}${shared_ext}$major'
9607   shlibpath_var=LD_LIBRARY_PATH
9608   ;;
9609
9610 *)
9611   dynamic_linker=no
9612   ;;
9613 esac
9614 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9615 echo "${ECHO_T}$dynamic_linker" >&6; }
9616 test "$dynamic_linker" = no && can_build_shared=no
9617
9618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9619 if test "$GCC" = yes; then
9620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9621 fi
9622
9623
9624 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9625 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9626 if test "${libltdl_cv_shlibext+set}" = set; then
9627   echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629
9630 module=yes
9631 eval libltdl_cv_shlibext=$shrext_cmds
9632
9633 fi
9634 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9635 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9636 if test -n "$libltdl_cv_shlibext"; then
9637
9638 cat >>confdefs.h <<_ACEOF
9639 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9640 _ACEOF
9641
9642 fi
9643
9644
9645 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9646 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9647 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   libltdl_cv_shlibpath_var="$shlibpath_var"
9651 fi
9652 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9653 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9654 if test -n "$libltdl_cv_shlibpath_var"; then
9655
9656 cat >>confdefs.h <<_ACEOF
9657 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9658 _ACEOF
9659
9660 fi
9661
9662
9663 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9664 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9665 if test "${libltdl_cv_sys_search_path+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9669 fi
9670 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9671 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9672 if test -n "$libltdl_cv_sys_search_path"; then
9673   sys_search_path=
9674   for dir in $libltdl_cv_sys_search_path; do
9675     if test -z "$sys_search_path"; then
9676       sys_search_path="$dir"
9677     else
9678       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9679     fi
9680   done
9681
9682 cat >>confdefs.h <<_ACEOF
9683 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9684 _ACEOF
9685
9686 fi
9687
9688 { echo "$as_me:$LINENO: checking for objdir" >&5
9689 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9690 if test "${libltdl_cv_objdir+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   libltdl_cv_objdir="$objdir"
9694   if test -n "$objdir"; then
9695     :
9696   else
9697     rm -f .libs 2>/dev/null
9698     mkdir .libs 2>/dev/null
9699     if test -d .libs; then
9700       libltdl_cv_objdir=.libs
9701     else
9702       # MS-DOS does not allow filenames that begin with a dot.
9703       libltdl_cv_objdir=_libs
9704     fi
9705   rmdir .libs 2>/dev/null
9706   fi
9707
9708 fi
9709 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9710 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9711
9712 cat >>confdefs.h <<_ACEOF
9713 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9714 _ACEOF
9715
9716
9717
9718
9719
9720
9721 # Check for command to grab the raw symbol name followed by C symbol from nm.
9722 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9723 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9724 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727
9728 # These are sane defaults that work on at least a few old systems.
9729 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9730
9731 # Character class describing NM global symbol codes.
9732 symcode='[BCDEGRST]'
9733
9734 # Regexp to match symbols that can be accessed directly from C.
9735 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9736
9737 # Transform an extracted symbol line into a proper C declaration
9738 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9739
9740 # Transform an extracted symbol line into symbol name and symbol address
9741 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'"
9742
9743 # Define system-specific variables.
9744 case $host_os in
9745 aix*)
9746   symcode='[BCDT]'
9747   ;;
9748 cygwin* | mingw* | pw32*)
9749   symcode='[ABCDGISTW]'
9750   ;;
9751 hpux*) # Its linker distinguishes data from code symbols
9752   if test "$host_cpu" = ia64; then
9753     symcode='[ABCDEGRST]'
9754   fi
9755   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9756   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'"
9757   ;;
9758 linux*)
9759   if test "$host_cpu" = ia64; then
9760     symcode='[ABCDGIRSTW]'
9761     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9762     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'"
9763   fi
9764   ;;
9765 irix* | nonstopux*)
9766   symcode='[BCDEGRST]'
9767   ;;
9768 osf*)
9769   symcode='[BCDEGQRST]'
9770   ;;
9771 solaris*)
9772   symcode='[BDRT]'
9773   ;;
9774 sco3.2v5*)
9775   symcode='[DT]'
9776   ;;
9777 sysv4.2uw2*)
9778   symcode='[DT]'
9779   ;;
9780 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9781   symcode='[ABDT]'
9782   ;;
9783 sysv4)
9784   symcode='[DFNSTU]'
9785   ;;
9786 esac
9787
9788 # Handle CRLF in mingw tool chain
9789 opt_cr=
9790 case $build_os in
9791 mingw*)
9792   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9793   ;;
9794 esac
9795
9796 # If we're using GNU nm, then use its standard symbol codes.
9797 case `$NM -V 2>&1` in
9798 *GNU* | *'with BFD'*)
9799   symcode='[ABCDGIRSTW]' ;;
9800 esac
9801
9802 # Try without a prefix undercore, then with it.
9803 for ac_symprfx in "" "_"; do
9804
9805   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9806   symxfrm="\\1 $ac_symprfx\\2 \\2"
9807
9808   # Write the raw and C identifiers.
9809   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9810
9811   # Check to see that the pipe works correctly.
9812   pipe_works=no
9813
9814   rm -f conftest*
9815   cat > conftest.$ac_ext <<EOF
9816 #ifdef __cplusplus
9817 extern "C" {
9818 #endif
9819 char nm_test_var;
9820 void nm_test_func(){}
9821 #ifdef __cplusplus
9822 }
9823 #endif
9824 int main(){nm_test_var='a';nm_test_func();return(0);}
9825 EOF
9826
9827   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828   (eval $ac_compile) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; then
9832     # Now try to grab the symbols.
9833     nlist=conftest.nm
9834     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9835   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } && test -s "$nlist"; then
9839       # Try sorting and uniquifying the output.
9840       if sort "$nlist" | uniq > "$nlist"T; then
9841         mv -f "$nlist"T "$nlist"
9842       else
9843         rm -f "$nlist"T
9844       fi
9845
9846       # Make sure that we snagged all the symbols we need.
9847       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9848         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9849           cat <<EOF > conftest.$ac_ext
9850 #ifdef __cplusplus
9851 extern "C" {
9852 #endif
9853
9854 EOF
9855           # Now generate the symbol file.
9856           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9857
9858           cat <<EOF >> conftest.$ac_ext
9859 #if defined (__STDC__) && __STDC__
9860 # define lt_ptr_t void *
9861 #else
9862 # define lt_ptr_t char *
9863 # define const
9864 #endif
9865
9866 /* The mapping between symbol names and symbols. */
9867 const struct {
9868   const char *name;
9869   lt_ptr_t address;
9870 }
9871 lt_preloaded_symbols[] =
9872 {
9873 EOF
9874           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9875           cat <<\EOF >> conftest.$ac_ext
9876   {0, (lt_ptr_t) 0}
9877 };
9878
9879 #ifdef __cplusplus
9880 }
9881 #endif
9882 EOF
9883           # Now try linking the two files.
9884           mv conftest.$ac_objext conftstm.$ac_objext
9885           lt_save_LIBS="$LIBS"
9886           lt_save_CFLAGS="$CFLAGS"
9887           LIBS="conftstm.$ac_objext"
9888           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9889           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890   (eval $ac_link) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9894             pipe_works=yes
9895           fi
9896           LIBS="$lt_save_LIBS"
9897           CFLAGS="$lt_save_CFLAGS"
9898         else
9899           echo "cannot find nm_test_func in $nlist" >&5
9900         fi
9901       else
9902         echo "cannot find nm_test_var in $nlist" >&5
9903       fi
9904     else
9905       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9906     fi
9907   else
9908     echo "$progname: failed program was:" >&5
9909     cat conftest.$ac_ext >&5
9910   fi
9911   rm -f conftest* conftst*
9912
9913   # Do not use the global_symbol_pipe unless it works.
9914   if test "$pipe_works" = yes; then
9915     break
9916   else
9917     lt_cv_sys_global_symbol_pipe=
9918   fi
9919 done
9920
9921 fi
9922
9923 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9924   lt_cv_sys_global_symbol_to_cdecl=
9925 fi
9926 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9927   { echo "$as_me:$LINENO: result: failed" >&5
9928 echo "${ECHO_T}failed" >&6; }
9929 else
9930   { echo "$as_me:$LINENO: result: ok" >&5
9931 echo "${ECHO_T}ok" >&6; }
9932 fi
9933
9934
9935 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9936 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9937 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9941     libltdl_cv_preloaded_symbols=yes
9942   else
9943     libltdl_cv_preloaded_symbols=no
9944   fi
9945
9946 fi
9947 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9948 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9949 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9950
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_PRELOADED_SYMBOLS 1
9953 _ACEOF
9954
9955 fi
9956
9957 LIBADD_DL=
9958
9959 ac_ext=c
9960 ac_cpp='$CPP $CPPFLAGS'
9961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9964
9965
9966 { echo "$as_me:$LINENO: checking for shl_load" >&5
9967 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9968 if test "${ac_cv_func_shl_load+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9979 #define shl_load innocuous_shl_load
9980
9981 /* System header to define __stub macros and hopefully few prototypes,
9982     which can conflict with char shl_load (); below.
9983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9984     <limits.h> exists even on freestanding compilers.  */
9985
9986 #ifdef __STDC__
9987 # include <limits.h>
9988 #else
9989 # include <assert.h>
9990 #endif
9991
9992 #undef shl_load
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995    Use char because int might match the return type of a GCC
9996    builtin and then its argument prototype would still apply.  */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char shl_load ();
10001 /* The GNU C library defines this for functions which it implements
10002     to always fail with ENOSYS.  Some functions are actually named
10003     something starting with __ and the normal name is an alias.  */
10004 #if defined __stub_shl_load || defined __stub___shl_load
10005 choke me
10006 #endif
10007
10008 int
10009 main ()
10010 {
10011 return shl_load ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_link") 2>conftest.er1
10024   ac_status=$?
10025   grep -v '^ *+' conftest.er1 >conftest.err
10026   rm -f conftest.er1
10027   cat conftest.err >&5
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031   { (case "(($ac_try" in
10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033   *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036   (eval "$ac_try") 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; } &&
10040          { ac_try='test -s conftest$ac_exeext'
10041   { (case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_try") 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050   ac_cv_func_shl_load=yes
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055         ac_cv_func_shl_load=no
10056 fi
10057
10058 rm -f core conftest.err conftest.$ac_objext \
10059       conftest$ac_exeext conftest.$ac_ext
10060 fi
10061 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10062 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10063 if test $ac_cv_func_shl_load = yes; then
10064
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_SHL_LOAD 1
10067 _ACEOF
10068
10069 else
10070   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10071 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10072 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   ac_check_lib_save_LIBS=$LIBS
10076 LIBS="-ldld  $LIBS"
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083
10084 /* Override any GCC internal prototype to avoid an error.
10085    Use char because int might match the return type of a GCC
10086    builtin and then its argument prototype would still apply.  */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char shl_load ();
10091 int
10092 main ()
10093 {
10094 return shl_load ();
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (ac_try="$ac_link"
10101 case "(($ac_try" in
10102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103   *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106   (eval "$ac_link") 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10114   { (case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119   (eval "$ac_try") 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129   (eval "$ac_try") 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   ac_cv_lib_dld_shl_load=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138         ac_cv_lib_dld_shl_load=no
10139 fi
10140
10141 rm -f core conftest.err conftest.$ac_objext \
10142       conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10146 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10147 if test $ac_cv_lib_dld_shl_load = yes; then
10148
10149 cat >>confdefs.h <<\_ACEOF
10150 #define HAVE_SHL_LOAD 1
10151 _ACEOF
10152
10153         LIBADD_DL="$LIBADD_DL -ldld"
10154 else
10155   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10156 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   ac_check_lib_save_LIBS=$LIBS
10161 LIBS="-ldl  $LIBS"
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168
10169 /* Override any GCC internal prototype to avoid an error.
10170    Use char because int might match the return type of a GCC
10171    builtin and then its argument prototype would still apply.  */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 char dlopen ();
10176 int
10177 main ()
10178 {
10179 return dlopen ();
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (ac_try="$ac_link"
10186 case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_link") 2>conftest.er1
10192   ac_status=$?
10193   grep -v '^ *+' conftest.er1 >conftest.err
10194   rm -f conftest.er1
10195   cat conftest.err >&5
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } &&
10198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10199   { (case "(($ac_try" in
10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201   *) ac_try_echo=$ac_try;;
10202 esac
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204   (eval "$ac_try") 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest$ac_exeext'
10209   { (case "(($ac_try" in
10210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211   *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214   (eval "$ac_try") 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; }; then
10218   ac_cv_lib_dl_dlopen=yes
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223         ac_cv_lib_dl_dlopen=no
10224 fi
10225
10226 rm -f core conftest.err conftest.$ac_objext \
10227       conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10232 if test $ac_cv_lib_dl_dlopen = yes; then
10233
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_LIBDL 1
10236 _ACEOF
10237
10238                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10239 else
10240   cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246 #if HAVE_DLFCN_H
10247 #  include <dlfcn.h>
10248 #endif
10249
10250 int
10251 main ()
10252 {
10253 dlopen(0, 0);
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest$ac_exeext'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_LIBDL 1
10295 _ACEOF
10296  libltdl_cv_func_dlopen="yes"
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10302 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-lsvld  $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h.  */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h.  */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316    Use char because int might match the return type of a GCC
10317    builtin and then its argument prototype would still apply.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char dlopen ();
10322 int
10323 main ()
10324 {
10325 return dlopen ();
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334   *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337   (eval "$ac_link") 2>conftest.er1
10338   ac_status=$?
10339   grep -v '^ *+' conftest.er1 >conftest.err
10340   rm -f conftest.er1
10341   cat conftest.err >&5
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } &&
10344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10345   { (case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350   (eval "$ac_try") 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; } &&
10354          { ac_try='test -s conftest$ac_exeext'
10355   { (case "(($ac_try" in
10356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357   *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360   (eval "$ac_try") 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_cv_lib_svld_dlopen=yes
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369         ac_cv_lib_svld_dlopen=no
10370 fi
10371
10372 rm -f core conftest.err conftest.$ac_objext \
10373       conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10375 fi
10376 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10377 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10378 if test $ac_cv_lib_svld_dlopen = yes; then
10379
10380 cat >>confdefs.h <<\_ACEOF
10381 #define HAVE_LIBDL 1
10382 _ACEOF
10383
10384                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10385 else
10386   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10387 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391   ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-ldld  $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399
10400 /* Override any GCC internal prototype to avoid an error.
10401    Use char because int might match the return type of a GCC
10402    builtin and then its argument prototype would still apply.  */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 char dld_link ();
10407 int
10408 main ()
10409 {
10410 return dld_link ();
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419   *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422   (eval "$ac_link") 2>conftest.er1
10423   ac_status=$?
10424   grep -v '^ *+' conftest.er1 >conftest.err
10425   rm -f conftest.er1
10426   cat conftest.err >&5
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } &&
10429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10430   { (case "(($ac_try" in
10431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432   *) ac_try_echo=$ac_try;;
10433 esac
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435   (eval "$ac_try") 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); }; } &&
10439          { ac_try='test -s conftest$ac_exeext'
10440   { (case "(($ac_try" in
10441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442   *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445   (eval "$ac_try") 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; }; then
10449   ac_cv_lib_dld_dld_link=yes
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454         ac_cv_lib_dld_dld_link=no
10455 fi
10456
10457 rm -f core conftest.err conftest.$ac_objext \
10458       conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10460 fi
10461 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10462 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10463 if test $ac_cv_lib_dld_dld_link = yes; then
10464
10465 cat >>confdefs.h <<\_ACEOF
10466 #define HAVE_DLD 1
10467 _ACEOF
10468
10469                 LIBADD_DL="$LIBADD_DL -ldld"
10470 else
10471   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10472 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10473 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h.  */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h.  */
10482 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10484 #define _dyld_func_lookup innocuous__dyld_func_lookup
10485
10486 /* System header to define __stub macros and hopefully few prototypes,
10487     which can conflict with char _dyld_func_lookup (); below.
10488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489     <limits.h> exists even on freestanding compilers.  */
10490
10491 #ifdef __STDC__
10492 # include <limits.h>
10493 #else
10494 # include <assert.h>
10495 #endif
10496
10497 #undef _dyld_func_lookup
10498
10499 /* Override any GCC internal prototype to avoid an error.
10500    Use char because int might match the return type of a GCC
10501    builtin and then its argument prototype would still apply.  */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char _dyld_func_lookup ();
10506 /* The GNU C library defines this for functions which it implements
10507     to always fail with ENOSYS.  Some functions are actually named
10508     something starting with __ and the normal name is an alias.  */
10509 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10510 choke me
10511 #endif
10512
10513 int
10514 main ()
10515 {
10516 return _dyld_func_lookup ();
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525   *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528   (eval "$ac_link") 2>conftest.er1
10529   ac_status=$?
10530   grep -v '^ *+' conftest.er1 >conftest.err
10531   rm -f conftest.er1
10532   cat conftest.err >&5
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } &&
10535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536   { (case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_try") 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; } &&
10545          { ac_try='test -s conftest$ac_exeext'
10546   { (case "(($ac_try" in
10547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548   *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551   (eval "$ac_try") 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; }; then
10555   ac_cv_func__dyld_func_lookup=yes
10556 else
10557   echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10559
10560         ac_cv_func__dyld_func_lookup=no
10561 fi
10562
10563 rm -f core conftest.err conftest.$ac_objext \
10564       conftest$ac_exeext conftest.$ac_ext
10565 fi
10566 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10567 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10568 if test $ac_cv_func__dyld_func_lookup = yes; then
10569
10570 cat >>confdefs.h <<\_ACEOF
10571 #define HAVE_DYLD 1
10572 _ACEOF
10573
10574 fi
10575
10576
10577 fi
10578
10579
10580 fi
10581
10582
10583 fi
10584
10585 rm -f core conftest.err conftest.$ac_objext \
10586       conftest$ac_exeext conftest.$ac_ext
10587
10588 fi
10589
10590
10591 fi
10592
10593
10594 fi
10595
10596
10597 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10598 then
10599   lt_save_LIBS="$LIBS"
10600   LIBS="$LIBS $LIBADD_DL"
10601
10602 for ac_func in dlerror
10603 do
10604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h.  */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h.  */
10616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10618 #define $ac_func innocuous_$ac_func
10619
10620 /* System header to define __stub macros and hopefully few prototypes,
10621     which can conflict with char $ac_func (); below.
10622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623     <limits.h> exists even on freestanding compilers.  */
10624
10625 #ifdef __STDC__
10626 # include <limits.h>
10627 #else
10628 # include <assert.h>
10629 #endif
10630
10631 #undef $ac_func
10632
10633 /* Override any GCC internal prototype to avoid an error.
10634    Use char because int might match the return type of a GCC
10635    builtin and then its argument prototype would still apply.  */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char $ac_func ();
10640 /* The GNU C library defines this for functions which it implements
10641     to always fail with ENOSYS.  Some functions are actually named
10642     something starting with __ and the normal name is an alias.  */
10643 #if defined __stub_$ac_func || defined __stub___$ac_func
10644 choke me
10645 #endif
10646
10647 int
10648 main ()
10649 {
10650 return $ac_func ();
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662   (eval "$ac_link") 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670   { (case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675   (eval "$ac_try") 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; } &&
10679          { ac_try='test -s conftest$ac_exeext'
10680   { (case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685   (eval "$ac_try") 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }; then
10689   eval "$as_ac_var=yes"
10690 else
10691   echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10693
10694         eval "$as_ac_var=no"
10695 fi
10696
10697 rm -f core conftest.err conftest.$ac_objext \
10698       conftest$ac_exeext conftest.$ac_ext
10699 fi
10700 ac_res=`eval echo '${'$as_ac_var'}'`
10701                { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10703 if test `eval echo '${'$as_ac_var'}'` = yes; then
10704   cat >>confdefs.h <<_ACEOF
10705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10706 _ACEOF
10707
10708 fi
10709 done
10710
10711   LIBS="$lt_save_LIBS"
10712 fi
10713 ac_ext=c
10714 ac_cpp='$CPP $CPPFLAGS'
10715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10718
10719
10720
10721 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10722 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10723 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   ac_cv_sys_symbol_underscore=no
10727   cat > conftest.$ac_ext <<EOF
10728 void nm_test_func(){}
10729 int main(){nm_test_func;return 0;}
10730 EOF
10731   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732   (eval $ac_compile) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; then
10736     # Now try to grab the symbols.
10737     ac_nlist=conftest.nm
10738     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10739   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } && test -s "$ac_nlist"; then
10743       # See whether the symbols have a leading underscore.
10744       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10745         ac_cv_sys_symbol_underscore=yes
10746       else
10747         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10748           :
10749         else
10750           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10751         fi
10752       fi
10753     else
10754       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10755     fi
10756   else
10757     echo "configure: failed program was:" >&5
10758     cat conftest.c >&5
10759   fi
10760   rm -rf conftest*
10761
10762 fi
10763 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10764 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10765
10766
10767 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10768   if test x"$libltdl_cv_func_dlopen" = xyes ||
10769      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10770         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10771 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10772 if test "${libltdl_cv_need_uscore+set}" = set; then
10773   echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775   libltdl_cv_need_uscore=unknown
10776           save_LIBS="$LIBS"
10777           LIBS="$LIBS $LIBADD_DL"
10778           if test "$cross_compiling" = yes; then :
10779   libltdl_cv_need_uscore=cross
10780 else
10781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10782   lt_status=$lt_dlunknown
10783   cat > conftest.$ac_ext <<EOF
10784 #line 10784 "configure"
10785 #include "confdefs.h"
10786
10787 #if HAVE_DLFCN_H
10788 #include <dlfcn.h>
10789 #endif
10790
10791 #include <stdio.h>
10792
10793 #ifdef RTLD_GLOBAL
10794 #  define LT_DLGLOBAL           RTLD_GLOBAL
10795 #else
10796 #  ifdef DL_GLOBAL
10797 #    define LT_DLGLOBAL         DL_GLOBAL
10798 #  else
10799 #    define LT_DLGLOBAL         0
10800 #  endif
10801 #endif
10802
10803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10804    find out it does not work in some platform. */
10805 #ifndef LT_DLLAZY_OR_NOW
10806 #  ifdef RTLD_LAZY
10807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10808 #  else
10809 #    ifdef DL_LAZY
10810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10811 #    else
10812 #      ifdef RTLD_NOW
10813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10814 #      else
10815 #        ifdef DL_NOW
10816 #          define LT_DLLAZY_OR_NOW      DL_NOW
10817 #        else
10818 #          define LT_DLLAZY_OR_NOW      0
10819 #        endif
10820 #      endif
10821 #    endif
10822 #  endif
10823 #endif
10824
10825 #ifdef __cplusplus
10826 extern "C" void exit (int);
10827 #endif
10828
10829 void fnord() { int i=42;}
10830 int main ()
10831 {
10832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10833   int status = $lt_dlunknown;
10834
10835   if (self)
10836     {
10837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10838       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10839       /* dlclose (self); */
10840     }
10841   else
10842     puts (dlerror ());
10843
10844     exit (status);
10845 }
10846 EOF
10847   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848   (eval $ac_link) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10852     (./conftest; exit; ) >&5 2>/dev/null
10853     lt_status=$?
10854     case x$lt_status in
10855       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10856       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10857       x$lt_dlunknown|x*)  ;;
10858     esac
10859   else :
10860     # compilation failed
10861
10862   fi
10863 fi
10864 rm -fr conftest*
10865
10866           LIBS="$save_LIBS"
10867
10868 fi
10869 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10870 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10871   fi
10872 fi
10873
10874 if test x"$libltdl_cv_need_uscore" = xyes; then
10875
10876 cat >>confdefs.h <<\_ACEOF
10877 #define NEED_USCORE 1
10878 _ACEOF
10879
10880 fi
10881
10882
10883 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10884 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10885 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10886   echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888   # PORTME does your system automatically load deplibs for dlopen?
10889   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10890   # For now, we just catch OSes we know something about -- in the
10891   # future, we'll try test this programmatically.
10892   libltdl_cv_sys_dlopen_deplibs=unknown
10893   case "$host_os" in
10894   aix3*|aix4.1.*|aix4.2.*)
10895     # Unknown whether this is true for these versions of AIX, but
10896     # we want this `case' here to explicitly catch those versions.
10897     libltdl_cv_sys_dlopen_deplibs=unknown
10898     ;;
10899   aix[45]*)
10900     libltdl_cv_sys_dlopen_deplibs=yes
10901     ;;
10902   darwin*)
10903     # Assuming the user has installed a libdl from somewhere, this is true
10904     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10905     libltdl_cv_sys_dlopen_deplibs=yes
10906     ;;
10907   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10908     # GNU and its variants, using gnu ld.so (Glibc)
10909     libltdl_cv_sys_dlopen_deplibs=yes
10910     ;;
10911   hpux10*|hpux11*)
10912     libltdl_cv_sys_dlopen_deplibs=yes
10913     ;;
10914   interix*)
10915     libltdl_cv_sys_dlopen_deplibs=yes
10916     ;;
10917   irix[12345]*|irix6.[01]*)
10918     # Catch all versions of IRIX before 6.2, and indicate that we don't
10919     # know how it worked for any of those versions.
10920     libltdl_cv_sys_dlopen_deplibs=unknown
10921     ;;
10922   irix*)
10923     # The case above catches anything before 6.2, and it's known that
10924     # at 6.2 and later dlopen does load deplibs.
10925     libltdl_cv_sys_dlopen_deplibs=yes
10926     ;;
10927   netbsd*)
10928     libltdl_cv_sys_dlopen_deplibs=yes
10929     ;;
10930   openbsd*)
10931     libltdl_cv_sys_dlopen_deplibs=yes
10932     ;;
10933   osf[1234]*)
10934     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10935     # it did *not* use an RPATH in a shared library to find objects the
10936     # library depends on, so we explictly say `no'.
10937     libltdl_cv_sys_dlopen_deplibs=no
10938     ;;
10939   osf5.0|osf5.0a|osf5.1)
10940     # dlopen *does* load deplibs and with the right loader patch applied
10941     # it even uses RPATH in a shared library to search for shared objects
10942     # that the library depends on, but there's no easy way to know if that
10943     # patch is installed.  Since this is the case, all we can really
10944     # say is unknown -- it depends on the patch being installed.  If
10945     # it is, this changes to `yes'.  Without it, it would be `no'.
10946     libltdl_cv_sys_dlopen_deplibs=unknown
10947     ;;
10948   osf*)
10949     # the two cases above should catch all versions of osf <= 5.1.  Read
10950     # the comments above for what we know about them.
10951     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10952     # is used to find them so we can finally say `yes'.
10953     libltdl_cv_sys_dlopen_deplibs=yes
10954     ;;
10955   solaris*)
10956     libltdl_cv_sys_dlopen_deplibs=yes
10957     ;;
10958   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10959     libltdl_cv_sys_dlopen_deplibs=yes
10960     ;;
10961   esac
10962
10963 fi
10964 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10965 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10966 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10967
10968 cat >>confdefs.h <<\_ACEOF
10969 #define LTDL_DLOPEN_DEPLIBS 1
10970 _ACEOF
10971
10972 fi
10973
10974
10975 for ac_header in argz.h
10976 do
10977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 fi
10984 ac_res=`eval echo '${'$as_ac_Header'}'`
10985                { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10987 else
10988   # Is the header compilable?
10989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 $ac_includes_default
10998 #include <$ac_header>
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_compile") 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015   { (case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_try") 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; } &&
11024          { ac_try='test -s conftest.$ac_objext'
11025   { (case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_try") 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   ac_header_compiler=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039         ac_header_compiler=no
11040 fi
11041
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11044 echo "${ECHO_T}$ac_header_compiler" >&6; }
11045
11046 # Is the header present?
11047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 #include <$ac_header>
11056 _ACEOF
11057 if { (ac_try="$ac_cpp conftest.$ac_ext"
11058 case "(($ac_try" in
11059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060   *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } >/dev/null; then
11070   if test -s conftest.err; then
11071     ac_cpp_err=$ac_c_preproc_warn_flag
11072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11073   else
11074     ac_cpp_err=
11075   fi
11076 else
11077   ac_cpp_err=yes
11078 fi
11079 if test -z "$ac_cpp_err"; then
11080   ac_header_preproc=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085   ac_header_preproc=no
11086 fi
11087
11088 rm -f conftest.err conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 echo "${ECHO_T}$ac_header_preproc" >&6; }
11091
11092 # So?  What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11094   yes:no: )
11095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099     ac_header_preproc=yes
11100     ;;
11101   no:yes:* )
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11114     ( cat <<\_ASBOX
11115 ## ----------------------------------- ##
11116 ## Report this to llvmbugs@cs.uiuc.edu ##
11117 ## ----------------------------------- ##
11118 _ASBOX
11119      ) | sed "s/^/$as_me: WARNING:     /" >&2
11120     ;;
11121 esac
11122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   eval "$as_ac_Header=\$ac_header_preproc"
11128 fi
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132
11133 fi
11134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135   cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11137 _ACEOF
11138
11139 fi
11140
11141 done
11142
11143
11144 { echo "$as_me:$LINENO: checking for error_t" >&5
11145 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11146 if test "${ac_cv_type_error_t+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155 #if HAVE_ARGZ_H
11156 #  include <argz.h>
11157 #endif
11158
11159 typedef error_t ac__type_new_;
11160 int
11161 main ()
11162 {
11163 if ((ac__type_new_ *) 0)
11164   return 0;
11165 if (sizeof (ac__type_new_))
11166   return 0;
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_compile") 2>conftest.er1
11179   ac_status=$?
11180   grep -v '^ *+' conftest.er1 >conftest.err
11181   rm -f conftest.er1
11182   cat conftest.err >&5
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } &&
11185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186   { (case "(($ac_try" in
11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188   *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191   (eval "$ac_try") 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; } &&
11195          { ac_try='test -s conftest.$ac_objext'
11196   { (case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_try") 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; }; then
11205   ac_cv_type_error_t=yes
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210         ac_cv_type_error_t=no
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 fi
11215 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11216 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11217 if test $ac_cv_type_error_t = yes; then
11218
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_ERROR_T 1
11221 _ACEOF
11222
11223
11224 else
11225
11226 cat >>confdefs.h <<\_ACEOF
11227 #define error_t int
11228 _ACEOF
11229
11230 fi
11231
11232
11233
11234
11235
11236
11237
11238 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11239 do
11240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11244   echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246   cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11254 #define $ac_func innocuous_$ac_func
11255
11256 /* System header to define __stub macros and hopefully few prototypes,
11257     which can conflict with char $ac_func (); below.
11258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11259     <limits.h> exists even on freestanding compilers.  */
11260
11261 #ifdef __STDC__
11262 # include <limits.h>
11263 #else
11264 # include <assert.h>
11265 #endif
11266
11267 #undef $ac_func
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270    Use char because int might match the return type of a GCC
11271    builtin and then its argument prototype would still apply.  */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char $ac_func ();
11276 /* The GNU C library defines this for functions which it implements
11277     to always fail with ENOSYS.  Some functions are actually named
11278     something starting with __ and the normal name is an alias.  */
11279 #if defined __stub_$ac_func || defined __stub___$ac_func
11280 choke me
11281 #endif
11282
11283 int
11284 main ()
11285 {
11286 return $ac_func ();
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (ac_try="$ac_link"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_link") 2>conftest.er1
11299   ac_status=$?
11300   grep -v '^ *+' conftest.er1 >conftest.err
11301   rm -f conftest.er1
11302   cat conftest.err >&5
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306   { (case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_try") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; } &&
11315          { ac_try='test -s conftest$ac_exeext'
11316   { (case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_try") 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); }; }; then
11325   eval "$as_ac_var=yes"
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330         eval "$as_ac_var=no"
11331 fi
11332
11333 rm -f core conftest.err conftest.$ac_objext \
11334       conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 ac_res=`eval echo '${'$as_ac_var'}'`
11337                { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 if test `eval echo '${'$as_ac_var'}'` = yes; then
11340   cat >>confdefs.h <<_ACEOF
11341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11342 _ACEOF
11343
11344 fi
11345 done
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11375                   stdio.h unistd.h
11376 do
11377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387 else
11388   # Is the header compilable?
11389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 $ac_includes_default
11398 #include <$ac_header>
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (ac_try="$ac_compile"
11402 case "(($ac_try" in
11403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404   *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407   (eval "$ac_compile") 2>conftest.er1
11408   ac_status=$?
11409   grep -v '^ *+' conftest.er1 >conftest.err
11410   rm -f conftest.er1
11411   cat conftest.err >&5
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } &&
11414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415   { (case "(($ac_try" in
11416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417   *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420   (eval "$ac_try") 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; } &&
11424          { ac_try='test -s conftest.$ac_objext'
11425   { (case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_try") 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_header_compiler=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439         ac_header_compiler=no
11440 fi
11441
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444 echo "${ECHO_T}$ac_header_compiler" >&6; }
11445
11446 # Is the header present?
11447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 #include <$ac_header>
11456 _ACEOF
11457 if { (ac_try="$ac_cpp conftest.$ac_ext"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11464   ac_status=$?
11465   grep -v '^ *+' conftest.er1 >conftest.err
11466   rm -f conftest.er1
11467   cat conftest.err >&5
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } >/dev/null; then
11470   if test -s conftest.err; then
11471     ac_cpp_err=$ac_c_preproc_warn_flag
11472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11473   else
11474     ac_cpp_err=
11475   fi
11476 else
11477   ac_cpp_err=yes
11478 fi
11479 if test -z "$ac_cpp_err"; then
11480   ac_header_preproc=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485   ac_header_preproc=no
11486 fi
11487
11488 rm -f conftest.err conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490 echo "${ECHO_T}$ac_header_preproc" >&6; }
11491
11492 # So?  What about this header?
11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11494   yes:no: )
11495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11499     ac_header_preproc=yes
11500     ;;
11501   no:yes:* )
11502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11514     ( cat <<\_ASBOX
11515 ## ----------------------------------- ##
11516 ## Report this to llvmbugs@cs.uiuc.edu ##
11517 ## ----------------------------------- ##
11518 _ASBOX
11519      ) | sed "s/^/$as_me: WARNING:     /" >&2
11520     ;;
11521 esac
11522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   eval "$as_ac_Header=\$ac_header_preproc"
11528 fi
11529 ac_res=`eval echo '${'$as_ac_Header'}'`
11530                { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11532
11533 fi
11534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535   cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11537 _ACEOF
11538
11539 fi
11540
11541 done
11542
11543
11544
11545
11546
11547 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11548 do
11549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 fi
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557                { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559 else
11560   # Is the header compilable?
11561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 $ac_includes_default
11570 #include <$ac_header>
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (ac_try="$ac_compile"
11574 case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579   (eval "$ac_compile") 2>conftest.er1
11580   ac_status=$?
11581   grep -v '^ *+' conftest.er1 >conftest.err
11582   rm -f conftest.er1
11583   cat conftest.err >&5
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } &&
11586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11587   { (case "(($ac_try" in
11588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589   *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592   (eval "$ac_try") 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; } &&
11596          { ac_try='test -s conftest.$ac_objext'
11597   { (case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_try") 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; }; then
11606   ac_header_compiler=yes
11607 else
11608   echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11610
11611         ac_header_compiler=no
11612 fi
11613
11614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11616 echo "${ECHO_T}$ac_header_compiler" >&6; }
11617
11618 # Is the header present?
11619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h.  */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h.  */
11627 #include <$ac_header>
11628 _ACEOF
11629 if { (ac_try="$ac_cpp conftest.$ac_ext"
11630 case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } >/dev/null; then
11642   if test -s conftest.err; then
11643     ac_cpp_err=$ac_c_preproc_warn_flag
11644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11645   else
11646     ac_cpp_err=
11647   fi
11648 else
11649   ac_cpp_err=yes
11650 fi
11651 if test -z "$ac_cpp_err"; then
11652   ac_header_preproc=yes
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657   ac_header_preproc=no
11658 fi
11659
11660 rm -f conftest.err conftest.$ac_ext
11661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11662 echo "${ECHO_T}$ac_header_preproc" >&6; }
11663
11664 # So?  What about this header?
11665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11666   yes:no: )
11667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11671     ac_header_preproc=yes
11672     ;;
11673   no:yes:* )
11674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11686     ( cat <<\_ASBOX
11687 ## ----------------------------------- ##
11688 ## Report this to llvmbugs@cs.uiuc.edu ##
11689 ## ----------------------------------- ##
11690 _ASBOX
11691      ) | sed "s/^/$as_me: WARNING:     /" >&2
11692     ;;
11693 esac
11694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   eval "$as_ac_Header=\$ac_header_preproc"
11700 fi
11701 ac_res=`eval echo '${'$as_ac_Header'}'`
11702                { echo "$as_me:$LINENO: result: $ac_res" >&5
11703 echo "${ECHO_T}$ac_res" >&6; }
11704
11705 fi
11706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11707   cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11709 _ACEOF
11710
11711 fi
11712
11713 done
11714
11715
11716
11717 for ac_header in string.h strings.h
11718 do
11719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 fi
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727                { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729 else
11730   # Is the header compilable?
11731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739 $ac_includes_default
11740 #include <$ac_header>
11741 _ACEOF
11742 rm -f conftest.$ac_objext
11743 if { (ac_try="$ac_compile"
11744 case "(($ac_try" in
11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746   *) ac_try_echo=$ac_try;;
11747 esac
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749   (eval "$ac_compile") 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11757   { (case "(($ac_try" in
11758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759   *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762   (eval "$ac_try") 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; } &&
11766          { ac_try='test -s conftest.$ac_objext'
11767   { (case "(($ac_try" in
11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769   *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772   (eval "$ac_try") 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; }; then
11776   ac_header_compiler=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781         ac_header_compiler=no
11782 fi
11783
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786 echo "${ECHO_T}$ac_header_compiler" >&6; }
11787
11788 # Is the header present?
11789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 #include <$ac_header>
11798 _ACEOF
11799 if { (ac_try="$ac_cpp conftest.$ac_ext"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11806   ac_status=$?
11807   grep -v '^ *+' conftest.er1 >conftest.err
11808   rm -f conftest.er1
11809   cat conftest.err >&5
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } >/dev/null; then
11812   if test -s conftest.err; then
11813     ac_cpp_err=$ac_c_preproc_warn_flag
11814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11815   else
11816     ac_cpp_err=
11817   fi
11818 else
11819   ac_cpp_err=yes
11820 fi
11821 if test -z "$ac_cpp_err"; then
11822   ac_header_preproc=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827   ac_header_preproc=no
11828 fi
11829
11830 rm -f conftest.err conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832 echo "${ECHO_T}$ac_header_preproc" >&6; }
11833
11834 # So?  What about this header?
11835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836   yes:no: )
11837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841     ac_header_preproc=yes
11842     ;;
11843   no:yes:* )
11844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11856     ( cat <<\_ASBOX
11857 ## ----------------------------------- ##
11858 ## Report this to llvmbugs@cs.uiuc.edu ##
11859 ## ----------------------------------- ##
11860 _ASBOX
11861      ) | sed "s/^/$as_me: WARNING:     /" >&2
11862     ;;
11863 esac
11864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   eval "$as_ac_Header=\$ac_header_preproc"
11870 fi
11871 ac_res=`eval echo '${'$as_ac_Header'}'`
11872                { echo "$as_me:$LINENO: result: $ac_res" >&5
11873 echo "${ECHO_T}$ac_res" >&6; }
11874
11875 fi
11876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11877   cat >>confdefs.h <<_ACEOF
11878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11879 _ACEOF
11880  break
11881 fi
11882
11883 done
11884
11885
11886
11887
11888 for ac_func in strchr index
11889 do
11890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11904 #define $ac_func innocuous_$ac_func
11905
11906 /* System header to define __stub macros and hopefully few prototypes,
11907     which can conflict with char $ac_func (); below.
11908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11909     <limits.h> exists even on freestanding compilers.  */
11910
11911 #ifdef __STDC__
11912 # include <limits.h>
11913 #else
11914 # include <assert.h>
11915 #endif
11916
11917 #undef $ac_func
11918
11919 /* Override any GCC internal prototype to avoid an error.
11920    Use char because int might match the return type of a GCC
11921    builtin and then its argument prototype would still apply.  */
11922 #ifdef __cplusplus
11923 extern "C"
11924 #endif
11925 char $ac_func ();
11926 /* The GNU C library defines this for functions which it implements
11927     to always fail with ENOSYS.  Some functions are actually named
11928     something starting with __ and the normal name is an alias.  */
11929 #if defined __stub_$ac_func || defined __stub___$ac_func
11930 choke me
11931 #endif
11932
11933 int
11934 main ()
11935 {
11936 return $ac_func ();
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (ac_try="$ac_link"
11943 case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_link") 2>conftest.er1
11949   ac_status=$?
11950   grep -v '^ *+' conftest.er1 >conftest.err
11951   rm -f conftest.er1
11952   cat conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11956   { (case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_try") 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; } &&
11965          { ac_try='test -s conftest$ac_exeext'
11966   { (case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971   (eval "$ac_try") 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   eval "$as_ac_var=yes"
11976 else
11977   echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980         eval "$as_ac_var=no"
11981 fi
11982
11983 rm -f core conftest.err conftest.$ac_objext \
11984       conftest$ac_exeext conftest.$ac_ext
11985 fi
11986 ac_res=`eval echo '${'$as_ac_var'}'`
11987                { echo "$as_me:$LINENO: result: $ac_res" >&5
11988 echo "${ECHO_T}$ac_res" >&6; }
11989 if test `eval echo '${'$as_ac_var'}'` = yes; then
11990   cat >>confdefs.h <<_ACEOF
11991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11992 _ACEOF
11993  break
11994 fi
11995 done
11996
11997
11998
11999 for ac_func in strrchr rindex
12000 do
12001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007   cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12015 #define $ac_func innocuous_$ac_func
12016
12017 /* System header to define __stub macros and hopefully few prototypes,
12018     which can conflict with char $ac_func (); below.
12019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12020     <limits.h> exists even on freestanding compilers.  */
12021
12022 #ifdef __STDC__
12023 # include <limits.h>
12024 #else
12025 # include <assert.h>
12026 #endif
12027
12028 #undef $ac_func
12029
12030 /* Override any GCC internal prototype to avoid an error.
12031    Use char because int might match the return type of a GCC
12032    builtin and then its argument prototype would still apply.  */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 char $ac_func ();
12037 /* The GNU C library defines this for functions which it implements
12038     to always fail with ENOSYS.  Some functions are actually named
12039     something starting with __ and the normal name is an alias.  */
12040 #if defined __stub_$ac_func || defined __stub___$ac_func
12041 choke me
12042 #endif
12043
12044 int
12045 main ()
12046 {
12047 return $ac_func ();
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_link") 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067   { (case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest$ac_exeext'
12077   { (case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_try") 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   eval "$as_ac_var=yes"
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091         eval "$as_ac_var=no"
12092 fi
12093
12094 rm -f core conftest.err conftest.$ac_objext \
12095       conftest$ac_exeext conftest.$ac_ext
12096 fi
12097 ac_res=`eval echo '${'$as_ac_var'}'`
12098                { echo "$as_me:$LINENO: result: $ac_res" >&5
12099 echo "${ECHO_T}$ac_res" >&6; }
12100 if test `eval echo '${'$as_ac_var'}'` = yes; then
12101   cat >>confdefs.h <<_ACEOF
12102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103 _ACEOF
12104  break
12105 fi
12106 done
12107
12108
12109
12110 for ac_func in memcpy bcopy
12111 do
12112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12126 #define $ac_func innocuous_$ac_func
12127
12128 /* System header to define __stub macros and hopefully few prototypes,
12129     which can conflict with char $ac_func (); below.
12130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131     <limits.h> exists even on freestanding compilers.  */
12132
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138
12139 #undef $ac_func
12140
12141 /* Override any GCC internal prototype to avoid an error.
12142    Use char because int might match the return type of a GCC
12143    builtin and then its argument prototype would still apply.  */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 char $ac_func ();
12148 /* The GNU C library defines this for functions which it implements
12149     to always fail with ENOSYS.  Some functions are actually named
12150     something starting with __ and the normal name is an alias.  */
12151 #if defined __stub_$ac_func || defined __stub___$ac_func
12152 choke me
12153 #endif
12154
12155 int
12156 main ()
12157 {
12158 return $ac_func ();
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_link") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178   { (case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_try") 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; } &&
12187          { ac_try='test -s conftest$ac_exeext'
12188   { (case "(($ac_try" in
12189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190   *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193   (eval "$ac_try") 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; }; then
12197   eval "$as_ac_var=yes"
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202         eval "$as_ac_var=no"
12203 fi
12204
12205 rm -f core conftest.err conftest.$ac_objext \
12206       conftest$ac_exeext conftest.$ac_ext
12207 fi
12208 ac_res=`eval echo '${'$as_ac_var'}'`
12209                { echo "$as_me:$LINENO: result: $ac_res" >&5
12210 echo "${ECHO_T}$ac_res" >&6; }
12211 if test `eval echo '${'$as_ac_var'}'` = yes; then
12212   cat >>confdefs.h <<_ACEOF
12213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12214 _ACEOF
12215  break
12216 fi
12217 done
12218
12219
12220
12221 for ac_func in memmove strcmp
12222 do
12223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h.  */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h.  */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12237 #define $ac_func innocuous_$ac_func
12238
12239 /* System header to define __stub macros and hopefully few prototypes,
12240     which can conflict with char $ac_func (); below.
12241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242     <limits.h> exists even on freestanding compilers.  */
12243
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12249
12250 #undef $ac_func
12251
12252 /* Override any GCC internal prototype to avoid an error.
12253    Use char because int might match the return type of a GCC
12254    builtin and then its argument prototype would still apply.  */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12263 choke me
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269 return $ac_func ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_link") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289   { (case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_try") 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_try") 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   eval "$as_ac_var=yes"
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313         eval "$as_ac_var=no"
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext \
12317       conftest$ac_exeext conftest.$ac_ext
12318 fi
12319 ac_res=`eval echo '${'$as_ac_var'}'`
12320                { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12322 if test `eval echo '${'$as_ac_var'}'` = yes; then
12323   cat >>confdefs.h <<_ACEOF
12324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12325 _ACEOF
12326
12327 fi
12328 done
12329
12330
12331
12332
12333 for ac_func in closedir opendir readdir
12334 do
12335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12349 #define $ac_func innocuous_$ac_func
12350
12351 /* System header to define __stub macros and hopefully few prototypes,
12352     which can conflict with char $ac_func (); below.
12353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354     <limits.h> exists even on freestanding compilers.  */
12355
12356 #ifdef __STDC__
12357 # include <limits.h>
12358 #else
12359 # include <assert.h>
12360 #endif
12361
12362 #undef $ac_func
12363
12364 /* Override any GCC internal prototype to avoid an error.
12365    Use char because int might match the return type of a GCC
12366    builtin and then its argument prototype would still apply.  */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char $ac_func ();
12371 /* The GNU C library defines this for functions which it implements
12372     to always fail with ENOSYS.  Some functions are actually named
12373     something starting with __ and the normal name is an alias.  */
12374 #if defined __stub_$ac_func || defined __stub___$ac_func
12375 choke me
12376 #endif
12377
12378 int
12379 main ()
12380 {
12381 return $ac_func ();
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390   *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393   (eval "$ac_link") 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12401   { (case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_try") 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; } &&
12410          { ac_try='test -s conftest$ac_exeext'
12411   { (case "(($ac_try" in
12412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413   *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416   (eval "$ac_try") 2>&5
12417   ac_status=$?
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); }; }; then
12420   eval "$as_ac_var=yes"
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425         eval "$as_ac_var=no"
12426 fi
12427
12428 rm -f core conftest.err conftest.$ac_objext \
12429       conftest$ac_exeext conftest.$ac_ext
12430 fi
12431 ac_res=`eval echo '${'$as_ac_var'}'`
12432                { echo "$as_me:$LINENO: result: $ac_res" >&5
12433 echo "${ECHO_T}$ac_res" >&6; }
12434 if test `eval echo '${'$as_ac_var'}'` = yes; then
12435   cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12437 _ACEOF
12438
12439 fi
12440 done
12441
12442
12443 # Check whether --enable-shared was given.
12444 if test "${enable_shared+set}" = set; then
12445   enableval=$enable_shared; p=${PACKAGE-default}
12446     case $enableval in
12447     yes) enable_shared=yes ;;
12448     no) enable_shared=no ;;
12449     *)
12450       enable_shared=no
12451       # Look at the argument we got.  We use all the common list separators.
12452       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12453       for pkg in $enableval; do
12454         IFS="$lt_save_ifs"
12455         if test "X$pkg" = "X$p"; then
12456           enable_shared=yes
12457         fi
12458       done
12459       IFS="$lt_save_ifs"
12460       ;;
12461     esac
12462 else
12463   enable_shared=yes
12464 fi
12465
12466
12467 # Check whether --enable-static was given.
12468 if test "${enable_static+set}" = set; then
12469   enableval=$enable_static; p=${PACKAGE-default}
12470     case $enableval in
12471     yes) enable_static=yes ;;
12472     no) enable_static=no ;;
12473     *)
12474      enable_static=no
12475       # Look at the argument we got.  We use all the common list separators.
12476       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12477       for pkg in $enableval; do
12478         IFS="$lt_save_ifs"
12479         if test "X$pkg" = "X$p"; then
12480           enable_static=yes
12481         fi
12482       done
12483       IFS="$lt_save_ifs"
12484       ;;
12485     esac
12486 else
12487   enable_static=yes
12488 fi
12489
12490
12491 # Check whether --enable-fast-install was given.
12492 if test "${enable_fast_install+set}" = set; then
12493   enableval=$enable_fast_install; p=${PACKAGE-default}
12494     case $enableval in
12495     yes) enable_fast_install=yes ;;
12496     no) enable_fast_install=no ;;
12497     *)
12498       enable_fast_install=no
12499       # Look at the argument we got.  We use all the common list separators.
12500       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12501       for pkg in $enableval; do
12502         IFS="$lt_save_ifs"
12503         if test "X$pkg" = "X$p"; then
12504           enable_fast_install=yes
12505         fi
12506       done
12507       IFS="$lt_save_ifs"
12508       ;;
12509     esac
12510 else
12511   enable_fast_install=yes
12512 fi
12513
12514
12515 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12516 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12517 if test "${lt_cv_path_SED+set}" = set; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   # Loop through the user's path and test for sed and gsed.
12521 # Then use that list of sed's as ones to test for truncation.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525   IFS=$as_save_IFS
12526   test -z "$as_dir" && as_dir=.
12527   for lt_ac_prog in sed gsed; do
12528     for ac_exec_ext in '' $ac_executable_extensions; do
12529       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12530         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12531       fi
12532     done
12533   done
12534 done
12535 lt_ac_max=0
12536 lt_ac_count=0
12537 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12538 # along with /bin/sed that truncates output.
12539 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12540   test ! -f $lt_ac_sed && continue
12541   cat /dev/null > conftest.in
12542   lt_ac_count=0
12543   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12544   # Check for GNU sed and select it if it is found.
12545   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12546     lt_cv_path_SED=$lt_ac_sed
12547     break
12548   fi
12549   while true; do
12550     cat conftest.in conftest.in >conftest.tmp
12551     mv conftest.tmp conftest.in
12552     cp conftest.in conftest.nl
12553     echo >>conftest.nl
12554     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12555     cmp -s conftest.out conftest.nl || break
12556     # 10000 chars as input seems more than enough
12557     test $lt_ac_count -gt 10 && break
12558     lt_ac_count=`expr $lt_ac_count + 1`
12559     if test $lt_ac_count -gt $lt_ac_max; then
12560       lt_ac_max=$lt_ac_count
12561       lt_cv_path_SED=$lt_ac_sed
12562     fi
12563   done
12564 done
12565
12566 fi
12567
12568 SED=$lt_cv_path_SED
12569 { echo "$as_me:$LINENO: result: $SED" >&5
12570 echo "${ECHO_T}$SED" >&6; }
12571
12572
12573 # Check whether --with-gnu-ld was given.
12574 if test "${with_gnu_ld+set}" = set; then
12575   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12576 else
12577   with_gnu_ld=no
12578 fi
12579
12580 ac_prog=ld
12581 if test "$GCC" = yes; then
12582   # Check if gcc -print-prog-name=ld gives a path.
12583   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12584 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12585   case $host in
12586   *-*-mingw*)
12587     # gcc leaves a trailing carriage return which upsets mingw
12588     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12589   *)
12590     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12591   esac
12592   case $ac_prog in
12593     # Accept absolute paths.
12594     [\\/]* | ?:[\\/]*)
12595       re_direlt='/[^/][^/]*/\.\./'
12596       # Canonicalize the pathname of ld
12597       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12598       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12599         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12600       done
12601       test -z "$LD" && LD="$ac_prog"
12602       ;;
12603   "")
12604     # If it fails, then pretend we aren't using GCC.
12605     ac_prog=ld
12606     ;;
12607   *)
12608     # If it is relative, then search for the first ld in PATH.
12609     with_gnu_ld=unknown
12610     ;;
12611   esac
12612 elif test "$with_gnu_ld" = yes; then
12613   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12614 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12615 else
12616   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12617 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12618 fi
12619 if test "${lt_cv_path_LD+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   if test -z "$LD"; then
12623   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12624   for ac_dir in $PATH; do
12625     IFS="$lt_save_ifs"
12626     test -z "$ac_dir" && ac_dir=.
12627     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12628       lt_cv_path_LD="$ac_dir/$ac_prog"
12629       # Check to see if the program is GNU ld.  I'd rather use --version,
12630       # but apparently some variants of GNU ld only accept -v.
12631       # Break only if it was the GNU/non-GNU ld that we prefer.
12632       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12633       *GNU* | *'with BFD'*)
12634         test "$with_gnu_ld" != no && break
12635         ;;
12636       *)
12637         test "$with_gnu_ld" != yes && break
12638         ;;
12639       esac
12640     fi
12641   done
12642   IFS="$lt_save_ifs"
12643 else
12644   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12645 fi
12646 fi
12647
12648 LD="$lt_cv_path_LD"
12649 if test -n "$LD"; then
12650   { echo "$as_me:$LINENO: result: $LD" >&5
12651 echo "${ECHO_T}$LD" >&6; }
12652 else
12653   { echo "$as_me:$LINENO: result: no" >&5
12654 echo "${ECHO_T}no" >&6; }
12655 fi
12656 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12657 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12658    { (exit 1); exit 1; }; }
12659 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12660 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12661 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12662   echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12665 case `$LD -v 2>&1 </dev/null` in
12666 *GNU* | *'with BFD'*)
12667   lt_cv_prog_gnu_ld=yes
12668   ;;
12669 *)
12670   lt_cv_prog_gnu_ld=no
12671   ;;
12672 esac
12673 fi
12674 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12675 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12676 with_gnu_ld=$lt_cv_prog_gnu_ld
12677
12678
12679 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12680 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12681 if test "${lt_cv_ld_reload_flag+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   lt_cv_ld_reload_flag='-r'
12685 fi
12686 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12687 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12688 reload_flag=$lt_cv_ld_reload_flag
12689 case $reload_flag in
12690 "" | " "*) ;;
12691 *) reload_flag=" $reload_flag" ;;
12692 esac
12693 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12694 case $host_os in
12695   darwin*)
12696     if test "$GCC" = yes; then
12697       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12698     else
12699       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12700     fi
12701     ;;
12702 esac
12703
12704 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12705 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12706 if test "${lt_cv_deplibs_check_method+set}" = set; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   lt_cv_file_magic_cmd='$MAGIC_CMD'
12710 lt_cv_file_magic_test_file=
12711 lt_cv_deplibs_check_method='unknown'
12712 # Need to set the preceding variable on all platforms that support
12713 # interlibrary dependencies.
12714 # 'none' -- dependencies not supported.
12715 # `unknown' -- same as none, but documents that we really don't know.
12716 # 'pass_all' -- all dependencies passed with no checks.
12717 # 'test_compile' -- check by making test program.
12718 # 'file_magic [[regex]]' -- check by looking for files in library path
12719 # which responds to the $file_magic_cmd with a given extended regex.
12720 # If you have `file' or equivalent on your system and you're not sure
12721 # whether `pass_all' will *always* work, you probably want this one.
12722
12723 case $host_os in
12724 aix4* | aix5*)
12725   lt_cv_deplibs_check_method=pass_all
12726   ;;
12727
12728 beos*)
12729   lt_cv_deplibs_check_method=pass_all
12730   ;;
12731
12732 bsdi[45]*)
12733   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12734   lt_cv_file_magic_cmd='/usr/bin/file -L'
12735   lt_cv_file_magic_test_file=/shlib/libc.so
12736   ;;
12737
12738 cygwin*)
12739   # func_win32_libid is a shell function defined in ltmain.sh
12740   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12741   lt_cv_file_magic_cmd='func_win32_libid'
12742   ;;
12743
12744 mingw* | pw32*)
12745   # Base MSYS/MinGW do not provide the 'file' command needed by
12746   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12747   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12748   lt_cv_file_magic_cmd='$OBJDUMP -f'
12749   ;;
12750
12751 darwin* | rhapsody*)
12752   lt_cv_deplibs_check_method=pass_all
12753   ;;
12754
12755 freebsd* | kfreebsd*-gnu | dragonfly*)
12756   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12757     case $host_cpu in
12758     i*86 )
12759       # Not sure whether the presence of OpenBSD here was a mistake.
12760       # Let's accept both of them until this is cleared up.
12761       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12762       lt_cv_file_magic_cmd=/usr/bin/file
12763       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12764       ;;
12765     esac
12766   else
12767     lt_cv_deplibs_check_method=pass_all
12768   fi
12769   ;;
12770
12771 gnu*)
12772   lt_cv_deplibs_check_method=pass_all
12773   ;;
12774
12775 hpux10.20* | hpux11*)
12776   lt_cv_file_magic_cmd=/usr/bin/file
12777   case $host_cpu in
12778   ia64*)
12779     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12780     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12781     ;;
12782   hppa*64*)
12783     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]'
12784     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12785     ;;
12786   *)
12787     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12788     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12789     ;;
12790   esac
12791   ;;
12792
12793 interix3*)
12794   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12795   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12796   ;;
12797
12798 irix5* | irix6* | nonstopux*)
12799   case $LD in
12800   *-32|*"-32 ") libmagic=32-bit;;
12801   *-n32|*"-n32 ") libmagic=N32;;
12802   *-64|*"-64 ") libmagic=64-bit;;
12803   *) libmagic=never-match;;
12804   esac
12805   lt_cv_deplibs_check_method=pass_all
12806   ;;
12807
12808 # This must be Linux ELF.
12809 linux*)
12810   lt_cv_deplibs_check_method=pass_all
12811   ;;
12812
12813 netbsd*)
12814   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12816   else
12817     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12818   fi
12819   ;;
12820
12821 newos6*)
12822   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12823   lt_cv_file_magic_cmd=/usr/bin/file
12824   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12825   ;;
12826
12827 nto-qnx*)
12828   lt_cv_deplibs_check_method=unknown
12829   ;;
12830
12831 openbsd*)
12832   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12833     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12834   else
12835     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12836   fi
12837   ;;
12838
12839 osf3* | osf4* | osf5*)
12840   lt_cv_deplibs_check_method=pass_all
12841   ;;
12842
12843 solaris*)
12844   lt_cv_deplibs_check_method=pass_all
12845   ;;
12846
12847 sysv4 | sysv4.3*)
12848   case $host_vendor in
12849   motorola)
12850     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]'
12851     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12852     ;;
12853   ncr)
12854     lt_cv_deplibs_check_method=pass_all
12855     ;;
12856   sequent)
12857     lt_cv_file_magic_cmd='/bin/file'
12858     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12859     ;;
12860   sni)
12861     lt_cv_file_magic_cmd='/bin/file'
12862     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12863     lt_cv_file_magic_test_file=/lib/libc.so
12864     ;;
12865   siemens)
12866     lt_cv_deplibs_check_method=pass_all
12867     ;;
12868   pc)
12869     lt_cv_deplibs_check_method=pass_all
12870     ;;
12871   esac
12872   ;;
12873
12874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12875   lt_cv_deplibs_check_method=pass_all
12876   ;;
12877 esac
12878
12879 fi
12880 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12881 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12882 file_magic_cmd=$lt_cv_file_magic_cmd
12883 deplibs_check_method=$lt_cv_deplibs_check_method
12884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12885
12886
12887
12888 # If no C compiler was specified, use CC.
12889 LTCC=${LTCC-"$CC"}
12890
12891 # If no C compiler flags were specified, use CFLAGS.
12892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12893
12894 # Allow CC to be a program name with arguments.
12895 compiler=$CC
12896
12897 # Check whether --enable-libtool-lock was given.
12898 if test "${enable_libtool_lock+set}" = set; then
12899   enableval=$enable_libtool_lock;
12900 fi
12901
12902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12903
12904 # Some flags need to be propagated to the compiler or linker for good
12905 # libtool support.
12906 case $host in
12907 ia64-*-hpux*)
12908   # Find out which ABI we are using.
12909   echo 'int i;' > conftest.$ac_ext
12910   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911   (eval $ac_compile) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; then
12915     case `/usr/bin/file conftest.$ac_objext` in
12916     *ELF-32*)
12917       HPUX_IA64_MODE="32"
12918       ;;
12919     *ELF-64*)
12920       HPUX_IA64_MODE="64"
12921       ;;
12922     esac
12923   fi
12924   rm -rf conftest*
12925   ;;
12926 *-*-irix6*)
12927   # Find out which ABI we are using.
12928   echo '#line 12928 "configure"' > conftest.$ac_ext
12929   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930   (eval $ac_compile) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; then
12934    if test "$lt_cv_prog_gnu_ld" = yes; then
12935     case `/usr/bin/file conftest.$ac_objext` in
12936     *32-bit*)
12937       LD="${LD-ld} -melf32bsmip"
12938       ;;
12939     *N32*)
12940       LD="${LD-ld} -melf32bmipn32"
12941       ;;
12942     *64-bit*)
12943       LD="${LD-ld} -melf64bmip"
12944       ;;
12945     esac
12946    else
12947     case `/usr/bin/file conftest.$ac_objext` in
12948     *32-bit*)
12949       LD="${LD-ld} -32"
12950       ;;
12951     *N32*)
12952       LD="${LD-ld} -n32"
12953       ;;
12954     *64-bit*)
12955       LD="${LD-ld} -64"
12956       ;;
12957     esac
12958    fi
12959   fi
12960   rm -rf conftest*
12961   ;;
12962
12963 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12964   # Find out which ABI we are using.
12965   echo 'int i;' > conftest.$ac_ext
12966   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967   (eval $ac_compile) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; then
12971     case `/usr/bin/file conftest.o` in
12972     *32-bit*)
12973       case $host in
12974         x86_64-*linux*)
12975           LD="${LD-ld} -m elf_i386"
12976           ;;
12977         ppc64-*linux*|powerpc64-*linux*)
12978           LD="${LD-ld} -m elf32ppclinux"
12979           ;;
12980         s390x-*linux*)
12981           LD="${LD-ld} -m elf_s390"
12982           ;;
12983         sparc64-*linux*)
12984           LD="${LD-ld} -m elf32_sparc"
12985           ;;
12986       esac
12987       ;;
12988     *64-bit*)
12989       case $host in
12990         x86_64-*linux*)
12991           LD="${LD-ld} -m elf_x86_64"
12992           ;;
12993         ppc*-*linux*|powerpc*-*linux*)
12994           LD="${LD-ld} -m elf64ppc"
12995           ;;
12996         s390*-*linux*)
12997           LD="${LD-ld} -m elf64_s390"
12998           ;;
12999         sparc*-*linux*)
13000           LD="${LD-ld} -m elf64_sparc"
13001           ;;
13002       esac
13003       ;;
13004     esac
13005   fi
13006   rm -rf conftest*
13007   ;;
13008
13009 *-*-sco3.2v5*)
13010   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13011   SAVE_CFLAGS="$CFLAGS"
13012   CFLAGS="$CFLAGS -belf"
13013   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13014 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13015 if test "${lt_cv_cc_needs_belf+set}" = set; then
13016   echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018   ac_ext=c
13019 ac_cpp='$CPP $CPPFLAGS'
13020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023
13024      cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030
13031 int
13032 main ()
13033 {
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (ac_try="$ac_link"
13041 case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_link") 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054   { (case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_try") 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; } &&
13063          { ac_try='test -s conftest$ac_exeext'
13064   { (case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_try") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   lt_cv_cc_needs_belf=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078         lt_cv_cc_needs_belf=no
13079 fi
13080
13081 rm -f core conftest.err conftest.$ac_objext \
13082       conftest$ac_exeext conftest.$ac_ext
13083      ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089 fi
13090 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13091 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13092   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13093     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13094     CFLAGS="$SAVE_CFLAGS"
13095   fi
13096   ;;
13097 sparc*-*solaris*)
13098   # Find out which ABI we are using.
13099   echo 'int i;' > conftest.$ac_ext
13100   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101   (eval $ac_compile) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); }; then
13105     case `/usr/bin/file conftest.o` in
13106     *64-bit*)
13107       case $lt_cv_prog_gnu_ld in
13108       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13109       *)    LD="${LD-ld} -64" ;;
13110       esac
13111       ;;
13112     esac
13113   fi
13114   rm -rf conftest*
13115   ;;
13116
13117
13118 esac
13119
13120 need_locks="$enable_libtool_lock"
13121
13122
13123
13124
13125 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13126     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13127     (test "X$CXX" != "Xg++"))) ; then
13128   ac_ext=cpp
13129 ac_cpp='$CXXCPP $CPPFLAGS'
13130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13133 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13134 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13135 if test -z "$CXXCPP"; then
13136   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139       # Double quotes because CXXCPP needs to be expanded
13140     for CXXCPP in "$CXX -E" "/lib/cpp"
13141     do
13142       ac_preproc_ok=false
13143 for ac_cxx_preproc_warn_flag in '' yes
13144 do
13145   # Use a header file that comes with gcc, so configuring glibc
13146   # with a fresh cross-compiler works.
13147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13148   # <limits.h> exists even on freestanding compilers.
13149   # On the NeXT, cc -E runs the code through the compiler's parser,
13150   # not just through cpp. "Syntax error" is here to catch this case.
13151   cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157 #ifdef __STDC__
13158 # include <limits.h>
13159 #else
13160 # include <assert.h>
13161 #endif
13162                      Syntax error
13163 _ACEOF
13164 if { (ac_try="$ac_cpp conftest.$ac_ext"
13165 case "(($ac_try" in
13166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167   *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13171   ac_status=$?
13172   grep -v '^ *+' conftest.er1 >conftest.err
13173   rm -f conftest.er1
13174   cat conftest.err >&5
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); } >/dev/null; then
13177   if test -s conftest.err; then
13178     ac_cpp_err=$ac_cxx_preproc_warn_flag
13179     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13180   else
13181     ac_cpp_err=
13182   fi
13183 else
13184   ac_cpp_err=yes
13185 fi
13186 if test -z "$ac_cpp_err"; then
13187   :
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192   # Broken: fails on valid input.
13193 continue
13194 fi
13195
13196 rm -f conftest.err conftest.$ac_ext
13197
13198   # OK, works on sane cases.  Now check whether nonexistent headers
13199   # can be detected and how.
13200   cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 #include <ac_nonexistent.h>
13207 _ACEOF
13208 if { (ac_try="$ac_cpp conftest.$ac_ext"
13209 case "(($ac_try" in
13210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211   *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13215   ac_status=$?
13216   grep -v '^ *+' conftest.er1 >conftest.err
13217   rm -f conftest.er1
13218   cat conftest.err >&5
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } >/dev/null; then
13221   if test -s conftest.err; then
13222     ac_cpp_err=$ac_cxx_preproc_warn_flag
13223     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13224   else
13225     ac_cpp_err=
13226   fi
13227 else
13228   ac_cpp_err=yes
13229 fi
13230 if test -z "$ac_cpp_err"; then
13231   # Broken: success on invalid input.
13232 continue
13233 else
13234   echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237   # Passes both tests.
13238 ac_preproc_ok=:
13239 break
13240 fi
13241
13242 rm -f conftest.err conftest.$ac_ext
13243
13244 done
13245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13246 rm -f conftest.err conftest.$ac_ext
13247 if $ac_preproc_ok; then
13248   break
13249 fi
13250
13251     done
13252     ac_cv_prog_CXXCPP=$CXXCPP
13253
13254 fi
13255   CXXCPP=$ac_cv_prog_CXXCPP
13256 else
13257   ac_cv_prog_CXXCPP=$CXXCPP
13258 fi
13259 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13260 echo "${ECHO_T}$CXXCPP" >&6; }
13261 ac_preproc_ok=false
13262 for ac_cxx_preproc_warn_flag in '' yes
13263 do
13264   # Use a header file that comes with gcc, so configuring glibc
13265   # with a fresh cross-compiler works.
13266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267   # <limits.h> exists even on freestanding compilers.
13268   # On the NeXT, cc -E runs the code through the compiler's parser,
13269   # not just through cpp. "Syntax error" is here to catch this case.
13270   cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 #ifdef __STDC__
13277 # include <limits.h>
13278 #else
13279 # include <assert.h>
13280 #endif
13281                      Syntax error
13282 _ACEOF
13283 if { (ac_try="$ac_cpp conftest.$ac_ext"
13284 case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13290   ac_status=$?
13291   grep -v '^ *+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } >/dev/null; then
13296   if test -s conftest.err; then
13297     ac_cpp_err=$ac_cxx_preproc_warn_flag
13298     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13299   else
13300     ac_cpp_err=
13301   fi
13302 else
13303   ac_cpp_err=yes
13304 fi
13305 if test -z "$ac_cpp_err"; then
13306   :
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311   # Broken: fails on valid input.
13312 continue
13313 fi
13314
13315 rm -f conftest.err conftest.$ac_ext
13316
13317   # OK, works on sane cases.  Now check whether nonexistent headers
13318   # can be detected and how.
13319   cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h.  */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h.  */
13325 #include <ac_nonexistent.h>
13326 _ACEOF
13327 if { (ac_try="$ac_cpp conftest.$ac_ext"
13328 case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13334   ac_status=$?
13335   grep -v '^ *+' conftest.er1 >conftest.err
13336   rm -f conftest.er1
13337   cat conftest.err >&5
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } >/dev/null; then
13340   if test -s conftest.err; then
13341     ac_cpp_err=$ac_cxx_preproc_warn_flag
13342     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13343   else
13344     ac_cpp_err=
13345   fi
13346 else
13347   ac_cpp_err=yes
13348 fi
13349 if test -z "$ac_cpp_err"; then
13350   # Broken: success on invalid input.
13351 continue
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356   # Passes both tests.
13357 ac_preproc_ok=:
13358 break
13359 fi
13360
13361 rm -f conftest.err conftest.$ac_ext
13362
13363 done
13364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13365 rm -f conftest.err conftest.$ac_ext
13366 if $ac_preproc_ok; then
13367   :
13368 else
13369   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13370 See \`config.log' for more details." >&5
13371 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13372 See \`config.log' for more details." >&2;}
13373    { (exit 1); exit 1; }; }
13374 fi
13375
13376 ac_ext=cpp
13377 ac_cpp='$CXXCPP $CPPFLAGS'
13378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13381
13382 fi
13383
13384
13385 ac_ext=f
13386 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13387 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13389 if test -n "$ac_tool_prefix"; then
13390   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
13391   do
13392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13396 if test "${ac_cv_prog_F77+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   if test -n "$F77"; then
13400   ac_cv_prog_F77="$F77" # Let the user override the test.
13401 else
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13404 do
13405   IFS=$as_save_IFS
13406   test -z "$as_dir" && as_dir=.
13407   for ac_exec_ext in '' $ac_executable_extensions; do
13408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13409     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13411     break 2
13412   fi
13413 done
13414 done
13415 IFS=$as_save_IFS
13416
13417 fi
13418 fi
13419 F77=$ac_cv_prog_F77
13420 if test -n "$F77"; then
13421   { echo "$as_me:$LINENO: result: $F77" >&5
13422 echo "${ECHO_T}$F77" >&6; }
13423 else
13424   { echo "$as_me:$LINENO: result: no" >&5
13425 echo "${ECHO_T}no" >&6; }
13426 fi
13427
13428
13429     test -n "$F77" && break
13430   done
13431 fi
13432 if test -z "$F77"; then
13433   ac_ct_F77=$F77
13434   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
13435 do
13436   # Extract the first word of "$ac_prog", so it can be a program name with args.
13437 set dummy $ac_prog; ac_word=$2
13438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13440 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13441   echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443   if test -n "$ac_ct_F77"; then
13444   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13445 else
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13448 do
13449   IFS=$as_save_IFS
13450   test -z "$as_dir" && as_dir=.
13451   for ac_exec_ext in '' $ac_executable_extensions; do
13452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13453     ac_cv_prog_ac_ct_F77="$ac_prog"
13454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13455     break 2
13456   fi
13457 done
13458 done
13459 IFS=$as_save_IFS
13460
13461 fi
13462 fi
13463 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13464 if test -n "$ac_ct_F77"; then
13465   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13466 echo "${ECHO_T}$ac_ct_F77" >&6; }
13467 else
13468   { echo "$as_me:$LINENO: result: no" >&5
13469 echo "${ECHO_T}no" >&6; }
13470 fi
13471
13472
13473   test -n "$ac_ct_F77" && break
13474 done
13475
13476   if test "x$ac_ct_F77" = x; then
13477     F77=""
13478   else
13479     case $cross_compiling:$ac_tool_warned in
13480 yes:)
13481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13482 whose name does not start with the host triplet.  If you think this
13483 configuration is useful to you, please write to autoconf@gnu.org." >&5
13484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13485 whose name does not start with the host triplet.  If you think this
13486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13487 ac_tool_warned=yes ;;
13488 esac
13489     F77=$ac_ct_F77
13490   fi
13491 fi
13492
13493
13494 # Provide some information about the compiler.
13495 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13496 ac_compiler=`set X $ac_compile; echo $2`
13497 { (ac_try="$ac_compiler --version >&5"
13498 case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_compiler --version >&5") 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }
13507 { (ac_try="$ac_compiler -v >&5"
13508 case "(($ac_try" in
13509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510   *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513   (eval "$ac_compiler -v >&5") 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }
13517 { (ac_try="$ac_compiler -V >&5"
13518 case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_compiler -V >&5") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }
13527 rm -f a.out
13528
13529 # If we don't use `.F' as extension, the preprocessor is not run on the
13530 # input file.  (Note that this only needs to work for GNU compilers.)
13531 ac_save_ext=$ac_ext
13532 ac_ext=F
13533 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13534 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13535 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   cat >conftest.$ac_ext <<_ACEOF
13539       program main
13540 #ifndef __GNUC__
13541        choke me
13542 #endif
13543
13544       end
13545 _ACEOF
13546 rm -f conftest.$ac_objext
13547 if { (ac_try="$ac_compile"
13548 case "(($ac_try" in
13549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550   *) ac_try_echo=$ac_try;;
13551 esac
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553   (eval "$ac_compile") 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13561   { (case "(($ac_try" in
13562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563   *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566   (eval "$ac_try") 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; } &&
13570          { ac_try='test -s conftest.$ac_objext'
13571   { (case "(($ac_try" in
13572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573   *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576   (eval "$ac_try") 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580   ac_compiler_gnu=yes
13581 else
13582   echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585         ac_compiler_gnu=no
13586 fi
13587
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13590
13591 fi
13592 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13593 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13594 ac_ext=$ac_save_ext
13595 ac_test_FFLAGS=${FFLAGS+set}
13596 ac_save_FFLAGS=$FFLAGS
13597 FFLAGS=
13598 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13599 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13600 if test "${ac_cv_prog_f77_g+set}" = set; then
13601   echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603   FFLAGS=-g
13604 cat >conftest.$ac_ext <<_ACEOF
13605       program main
13606
13607       end
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613   *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616   (eval "$ac_compile") 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } &&
13623          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13624   { (case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_try") 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; } &&
13633          { ac_try='test -s conftest.$ac_objext'
13634   { (case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_try") 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; }; then
13643   ac_cv_prog_f77_g=yes
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648         ac_cv_prog_f77_g=no
13649 fi
13650
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652
13653 fi
13654 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13655 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13656 if test "$ac_test_FFLAGS" = set; then
13657   FFLAGS=$ac_save_FFLAGS
13658 elif test $ac_cv_prog_f77_g = yes; then
13659   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13660     FFLAGS="-g -O2"
13661   else
13662     FFLAGS="-g"
13663   fi
13664 else
13665   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13666     FFLAGS="-O2"
13667   else
13668     FFLAGS=
13669   fi
13670 fi
13671
13672 G77=`test $ac_compiler_gnu = yes && echo yes`
13673 ac_ext=c
13674 ac_cpp='$CPP $CPPFLAGS'
13675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679
13680
13681 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13682
13683 # find the maximum length of command line arguments
13684 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13685 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689     i=0
13690   teststring="ABCD"
13691
13692   case $build_os in
13693   msdosdjgpp*)
13694     # On DJGPP, this test can blow up pretty badly due to problems in libc
13695     # (any single argument exceeding 2000 bytes causes a buffer overrun
13696     # during glob expansion).  Even if it were fixed, the result of this
13697     # check would be larger than it should be.
13698     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13699     ;;
13700
13701   gnu*)
13702     # Under GNU Hurd, this test is not required because there is
13703     # no limit to the length of command line arguments.
13704     # Libtool will interpret -1 as no limit whatsoever
13705     lt_cv_sys_max_cmd_len=-1;
13706     ;;
13707
13708   cygwin* | mingw*)
13709     # On Win9x/ME, this test blows up -- it succeeds, but takes
13710     # about 5 minutes as the teststring grows exponentially.
13711     # Worse, since 9x/ME are not pre-emptively multitasking,
13712     # you end up with a "frozen" computer, even though with patience
13713     # the test eventually succeeds (with a max line length of 256k).
13714     # Instead, let's just punt: use the minimum linelength reported by
13715     # all of the supported platforms: 8192 (on NT/2K/XP).
13716     lt_cv_sys_max_cmd_len=8192;
13717     ;;
13718
13719   amigaos*)
13720     # On AmigaOS with pdksh, this test takes hours, literally.
13721     # So we just punt and use a minimum line length of 8192.
13722     lt_cv_sys_max_cmd_len=8192;
13723     ;;
13724
13725   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13726     # This has been around since 386BSD, at least.  Likely further.
13727     if test -x /sbin/sysctl; then
13728       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13729     elif test -x /usr/sbin/sysctl; then
13730       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13731     else
13732       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13733     fi
13734     # And add a safety zone
13735     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13736     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13737     ;;
13738
13739   interix*)
13740     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13741     lt_cv_sys_max_cmd_len=196608
13742     ;;
13743
13744   osf*)
13745     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13746     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13747     # nice to cause kernel panics so lets avoid the loop below.
13748     # First set a reasonable default.
13749     lt_cv_sys_max_cmd_len=16384
13750     #
13751     if test -x /sbin/sysconfig; then
13752       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13753         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13754       esac
13755     fi
13756     ;;
13757   sco3.2v5*)
13758     lt_cv_sys_max_cmd_len=102400
13759     ;;
13760   sysv5* | sco5v6* | sysv4.2uw2*)
13761     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13762     if test -n "$kargmax"; then
13763       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13764     else
13765       lt_cv_sys_max_cmd_len=32768
13766     fi
13767     ;;
13768   *)
13769     # If test is not a shell built-in, we'll probably end up computing a
13770     # maximum length that is only half of the actual maximum length, but
13771     # we can't tell.
13772     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13773     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13774                = "XX$teststring") >/dev/null 2>&1 &&
13775             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13776             lt_cv_sys_max_cmd_len=$new_result &&
13777             test $i != 17 # 1/2 MB should be enough
13778     do
13779       i=`expr $i + 1`
13780       teststring=$teststring$teststring
13781     done
13782     teststring=
13783     # Add a significant safety factor because C++ compilers can tack on massive
13784     # amounts of additional arguments before passing them to the linker.
13785     # It appears as though 1/2 is a usable value.
13786     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13787     ;;
13788   esac
13789
13790 fi
13791
13792 if test -n $lt_cv_sys_max_cmd_len ; then
13793   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13794 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13795 else
13796   { echo "$as_me:$LINENO: result: none" >&5
13797 echo "${ECHO_T}none" >&6; }
13798 fi
13799
13800
13801
13802
13803 # Check for command to grab the raw symbol name followed by C symbol from nm.
13804 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13805 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13806 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809
13810 # These are sane defaults that work on at least a few old systems.
13811 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13812
13813 # Character class describing NM global symbol codes.
13814 symcode='[BCDEGRST]'
13815
13816 # Regexp to match symbols that can be accessed directly from C.
13817 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13818
13819 # Transform an extracted symbol line into a proper C declaration
13820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13821
13822 # Transform an extracted symbol line into symbol name and symbol address
13823 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'"
13824
13825 # Define system-specific variables.
13826 case $host_os in
13827 aix*)
13828   symcode='[BCDT]'
13829   ;;
13830 cygwin* | mingw* | pw32*)
13831   symcode='[ABCDGISTW]'
13832   ;;
13833 hpux*) # Its linker distinguishes data from code symbols
13834   if test "$host_cpu" = ia64; then
13835     symcode='[ABCDEGRST]'
13836   fi
13837   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13838   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'"
13839   ;;
13840 linux*)
13841   if test "$host_cpu" = ia64; then
13842     symcode='[ABCDGIRSTW]'
13843     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13844     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'"
13845   fi
13846   ;;
13847 irix* | nonstopux*)
13848   symcode='[BCDEGRST]'
13849   ;;
13850 osf*)
13851   symcode='[BCDEGQRST]'
13852   ;;
13853 solaris*)
13854   symcode='[BDRT]'
13855   ;;
13856 sco3.2v5*)
13857   symcode='[DT]'
13858   ;;
13859 sysv4.2uw2*)
13860   symcode='[DT]'
13861   ;;
13862 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13863   symcode='[ABDT]'
13864   ;;
13865 sysv4)
13866   symcode='[DFNSTU]'
13867   ;;
13868 esac
13869
13870 # Handle CRLF in mingw tool chain
13871 opt_cr=
13872 case $build_os in
13873 mingw*)
13874   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13875   ;;
13876 esac
13877
13878 # If we're using GNU nm, then use its standard symbol codes.
13879 case `$NM -V 2>&1` in
13880 *GNU* | *'with BFD'*)
13881   symcode='[ABCDGIRSTW]' ;;
13882 esac
13883
13884 # Try without a prefix undercore, then with it.
13885 for ac_symprfx in "" "_"; do
13886
13887   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13888   symxfrm="\\1 $ac_symprfx\\2 \\2"
13889
13890   # Write the raw and C identifiers.
13891   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13892
13893   # Check to see that the pipe works correctly.
13894   pipe_works=no
13895
13896   rm -f conftest*
13897   cat > conftest.$ac_ext <<EOF
13898 #ifdef __cplusplus
13899 extern "C" {
13900 #endif
13901 char nm_test_var;
13902 void nm_test_func(){}
13903 #ifdef __cplusplus
13904 }
13905 #endif
13906 int main(){nm_test_var='a';nm_test_func();return(0);}
13907 EOF
13908
13909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910   (eval $ac_compile) 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; then
13914     # Now try to grab the symbols.
13915     nlist=conftest.nm
13916     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13917   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13918   ac_status=$?
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); } && test -s "$nlist"; then
13921       # Try sorting and uniquifying the output.
13922       if sort "$nlist" | uniq > "$nlist"T; then
13923         mv -f "$nlist"T "$nlist"
13924       else
13925         rm -f "$nlist"T
13926       fi
13927
13928       # Make sure that we snagged all the symbols we need.
13929       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13930         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13931           cat <<EOF > conftest.$ac_ext
13932 #ifdef __cplusplus
13933 extern "C" {
13934 #endif
13935
13936 EOF
13937           # Now generate the symbol file.
13938           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13939
13940           cat <<EOF >> conftest.$ac_ext
13941 #if defined (__STDC__) && __STDC__
13942 # define lt_ptr_t void *
13943 #else
13944 # define lt_ptr_t char *
13945 # define const
13946 #endif
13947
13948 /* The mapping between symbol names and symbols. */
13949 const struct {
13950   const char *name;
13951   lt_ptr_t address;
13952 }
13953 lt_preloaded_symbols[] =
13954 {
13955 EOF
13956           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13957           cat <<\EOF >> conftest.$ac_ext
13958   {0, (lt_ptr_t) 0}
13959 };
13960
13961 #ifdef __cplusplus
13962 }
13963 #endif
13964 EOF
13965           # Now try linking the two files.
13966           mv conftest.$ac_objext conftstm.$ac_objext
13967           lt_save_LIBS="$LIBS"
13968           lt_save_CFLAGS="$CFLAGS"
13969           LIBS="conftstm.$ac_objext"
13970           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13971           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972   (eval $ac_link) 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13976             pipe_works=yes
13977           fi
13978           LIBS="$lt_save_LIBS"
13979           CFLAGS="$lt_save_CFLAGS"
13980         else
13981           echo "cannot find nm_test_func in $nlist" >&5
13982         fi
13983       else
13984         echo "cannot find nm_test_var in $nlist" >&5
13985       fi
13986     else
13987       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13988     fi
13989   else
13990     echo "$progname: failed program was:" >&5
13991     cat conftest.$ac_ext >&5
13992   fi
13993   rm -f conftest* conftst*
13994
13995   # Do not use the global_symbol_pipe unless it works.
13996   if test "$pipe_works" = yes; then
13997     break
13998   else
13999     lt_cv_sys_global_symbol_pipe=
14000   fi
14001 done
14002
14003 fi
14004
14005 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14006   lt_cv_sys_global_symbol_to_cdecl=
14007 fi
14008 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14009   { echo "$as_me:$LINENO: result: failed" >&5
14010 echo "${ECHO_T}failed" >&6; }
14011 else
14012   { echo "$as_me:$LINENO: result: ok" >&5
14013 echo "${ECHO_T}ok" >&6; }
14014 fi
14015
14016 { echo "$as_me:$LINENO: checking for objdir" >&5
14017 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14018 if test "${lt_cv_objdir+set}" = set; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021   rm -f .libs 2>/dev/null
14022 mkdir .libs 2>/dev/null
14023 if test -d .libs; then
14024   lt_cv_objdir=.libs
14025 else
14026   # MS-DOS does not allow filenames that begin with a dot.
14027   lt_cv_objdir=_libs
14028 fi
14029 rmdir .libs 2>/dev/null
14030 fi
14031 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14032 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14033 objdir=$lt_cv_objdir
14034
14035
14036
14037
14038
14039 case $host_os in
14040 aix3*)
14041   # AIX sometimes has problems with the GCC collect2 program.  For some
14042   # reason, if we set the COLLECT_NAMES environment variable, the problems
14043   # vanish in a puff of smoke.
14044   if test "X${COLLECT_NAMES+set}" != Xset; then
14045     COLLECT_NAMES=
14046     export COLLECT_NAMES
14047   fi
14048   ;;
14049 esac
14050
14051 # Sed substitution that helps us do robust quoting.  It backslashifies
14052 # metacharacters that are still active within double-quoted strings.
14053 Xsed='sed -e 1s/^X//'
14054 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14055
14056 # Same as above, but do not quote variable references.
14057 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14058
14059 # Sed substitution to delay expansion of an escaped shell variable in a
14060 # double_quote_subst'ed string.
14061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14062
14063 # Sed substitution to avoid accidental globbing in evaled expressions
14064 no_glob_subst='s/\*/\\\*/g'
14065
14066 # Constants:
14067 rm="rm -f"
14068
14069 # Global variables:
14070 default_ofile=mklib
14071 can_build_shared=yes
14072
14073 # All known linkers require a `.a' archive for static linking (except MSVC,
14074 # which needs '.lib').
14075 libext=a
14076 ltmain="$ac_aux_dir/ltmain.sh"
14077 ofile="$default_ofile"
14078 with_gnu_ld="$lt_cv_prog_gnu_ld"
14079
14080 if test -n "$ac_tool_prefix"; then
14081   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14082 set dummy ${ac_tool_prefix}ar; ac_word=$2
14083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14085 if test "${ac_cv_prog_AR+set}" = set; then
14086   echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088   if test -n "$AR"; then
14089   ac_cv_prog_AR="$AR" # Let the user override the test.
14090 else
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14093 do
14094   IFS=$as_save_IFS
14095   test -z "$as_dir" && as_dir=.
14096   for ac_exec_ext in '' $ac_executable_extensions; do
14097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14098     ac_cv_prog_AR="${ac_tool_prefix}ar"
14099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14100     break 2
14101   fi
14102 done
14103 done
14104 IFS=$as_save_IFS
14105
14106 fi
14107 fi
14108 AR=$ac_cv_prog_AR
14109 if test -n "$AR"; then
14110   { echo "$as_me:$LINENO: result: $AR" >&5
14111 echo "${ECHO_T}$AR" >&6; }
14112 else
14113   { echo "$as_me:$LINENO: result: no" >&5
14114 echo "${ECHO_T}no" >&6; }
14115 fi
14116
14117
14118 fi
14119 if test -z "$ac_cv_prog_AR"; then
14120   ac_ct_AR=$AR
14121   # Extract the first word of "ar", so it can be a program name with args.
14122 set dummy ar; ac_word=$2
14123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14125 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   if test -n "$ac_ct_AR"; then
14129   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14133 do
14134   IFS=$as_save_IFS
14135   test -z "$as_dir" && as_dir=.
14136   for ac_exec_ext in '' $ac_executable_extensions; do
14137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14138     ac_cv_prog_ac_ct_AR="ar"
14139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14140     break 2
14141   fi
14142 done
14143 done
14144 IFS=$as_save_IFS
14145
14146 fi
14147 fi
14148 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14149 if test -n "$ac_ct_AR"; then
14150   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14151 echo "${ECHO_T}$ac_ct_AR" >&6; }
14152 else
14153   { echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6; }
14155 fi
14156
14157   if test "x$ac_ct_AR" = x; then
14158     AR="false"
14159   else
14160     case $cross_compiling:$ac_tool_warned in
14161 yes:)
14162 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14163 whose name does not start with the host triplet.  If you think this
14164 configuration is useful to you, please write to autoconf@gnu.org." >&5
14165 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14166 whose name does not start with the host triplet.  If you think this
14167 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14168 ac_tool_warned=yes ;;
14169 esac
14170     AR=$ac_ct_AR
14171   fi
14172 else
14173   AR="$ac_cv_prog_AR"
14174 fi
14175
14176 if test -n "$ac_tool_prefix"; then
14177   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14181 if test "${ac_cv_prog_RANLIB+set}" = set; then
14182   echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184   if test -n "$RANLIB"; then
14185   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14186 else
14187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14189 do
14190   IFS=$as_save_IFS
14191   test -z "$as_dir" && as_dir=.
14192   for ac_exec_ext in '' $ac_executable_extensions; do
14193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14194     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14196     break 2
14197   fi
14198 done
14199 done
14200 IFS=$as_save_IFS
14201
14202 fi
14203 fi
14204 RANLIB=$ac_cv_prog_RANLIB
14205 if test -n "$RANLIB"; then
14206   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14207 echo "${ECHO_T}$RANLIB" >&6; }
14208 else
14209   { echo "$as_me:$LINENO: result: no" >&5
14210 echo "${ECHO_T}no" >&6; }
14211 fi
14212
14213
14214 fi
14215 if test -z "$ac_cv_prog_RANLIB"; then
14216   ac_ct_RANLIB=$RANLIB
14217   # Extract the first word of "ranlib", so it can be a program name with args.
14218 set dummy ranlib; ac_word=$2
14219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   if test -n "$ac_ct_RANLIB"; then
14225   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14229 do
14230   IFS=$as_save_IFS
14231   test -z "$as_dir" && as_dir=.
14232   for ac_exec_ext in '' $ac_executable_extensions; do
14233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14234     ac_cv_prog_ac_ct_RANLIB="ranlib"
14235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14236     break 2
14237   fi
14238 done
14239 done
14240 IFS=$as_save_IFS
14241
14242 fi
14243 fi
14244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14245 if test -n "$ac_ct_RANLIB"; then
14246   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14247 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14248 else
14249   { echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6; }
14251 fi
14252
14253   if test "x$ac_ct_RANLIB" = x; then
14254     RANLIB=":"
14255   else
14256     case $cross_compiling:$ac_tool_warned in
14257 yes:)
14258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14259 whose name does not start with the host triplet.  If you think this
14260 configuration is useful to you, please write to autoconf@gnu.org." >&5
14261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14262 whose name does not start with the host triplet.  If you think this
14263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14264 ac_tool_warned=yes ;;
14265 esac
14266     RANLIB=$ac_ct_RANLIB
14267   fi
14268 else
14269   RANLIB="$ac_cv_prog_RANLIB"
14270 fi
14271
14272 if test -n "$ac_tool_prefix"; then
14273   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14274 set dummy ${ac_tool_prefix}strip; ac_word=$2
14275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14277 if test "${ac_cv_prog_STRIP+set}" = set; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280   if test -n "$STRIP"; then
14281   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14282 else
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14285 do
14286   IFS=$as_save_IFS
14287   test -z "$as_dir" && as_dir=.
14288   for ac_exec_ext in '' $ac_executable_extensions; do
14289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14290     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14292     break 2
14293   fi
14294 done
14295 done
14296 IFS=$as_save_IFS
14297
14298 fi
14299 fi
14300 STRIP=$ac_cv_prog_STRIP
14301 if test -n "$STRIP"; then
14302   { echo "$as_me:$LINENO: result: $STRIP" >&5
14303 echo "${ECHO_T}$STRIP" >&6; }
14304 else
14305   { echo "$as_me:$LINENO: result: no" >&5
14306 echo "${ECHO_T}no" >&6; }
14307 fi
14308
14309
14310 fi
14311 if test -z "$ac_cv_prog_STRIP"; then
14312   ac_ct_STRIP=$STRIP
14313   # Extract the first word of "strip", so it can be a program name with args.
14314 set dummy strip; ac_word=$2
14315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14317 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   if test -n "$ac_ct_STRIP"; then
14321   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326   IFS=$as_save_IFS
14327   test -z "$as_dir" && as_dir=.
14328   for ac_exec_ext in '' $ac_executable_extensions; do
14329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14330     ac_cv_prog_ac_ct_STRIP="strip"
14331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332     break 2
14333   fi
14334 done
14335 done
14336 IFS=$as_save_IFS
14337
14338 fi
14339 fi
14340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14341 if test -n "$ac_ct_STRIP"; then
14342   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14343 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14344 else
14345   { echo "$as_me:$LINENO: result: no" >&5
14346 echo "${ECHO_T}no" >&6; }
14347 fi
14348
14349   if test "x$ac_ct_STRIP" = x; then
14350     STRIP=":"
14351   else
14352     case $cross_compiling:$ac_tool_warned in
14353 yes:)
14354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14355 whose name does not start with the host triplet.  If you think this
14356 configuration is useful to you, please write to autoconf@gnu.org." >&5
14357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14358 whose name does not start with the host triplet.  If you think this
14359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14360 ac_tool_warned=yes ;;
14361 esac
14362     STRIP=$ac_ct_STRIP
14363   fi
14364 else
14365   STRIP="$ac_cv_prog_STRIP"
14366 fi
14367
14368
14369 old_CC="$CC"
14370 old_CFLAGS="$CFLAGS"
14371
14372 # Set sane defaults for various variables
14373 test -z "$AR" && AR=ar
14374 test -z "$AR_FLAGS" && AR_FLAGS=cru
14375 test -z "$AS" && AS=as
14376 test -z "$CC" && CC=cc
14377 test -z "$LTCC" && LTCC=$CC
14378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14379 test -z "$DLLTOOL" && DLLTOOL=dlltool
14380 test -z "$LD" && LD=ld
14381 test -z "$LN_S" && LN_S="ln -s"
14382 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14383 test -z "$NM" && NM=nm
14384 test -z "$SED" && SED=sed
14385 test -z "$OBJDUMP" && OBJDUMP=objdump
14386 test -z "$RANLIB" && RANLIB=:
14387 test -z "$STRIP" && STRIP=:
14388 test -z "$ac_objext" && ac_objext=o
14389
14390 # Determine commands to create old-style static archives.
14391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14392 old_postinstall_cmds='chmod 644 $oldlib'
14393 old_postuninstall_cmds=
14394
14395 if test -n "$RANLIB"; then
14396   case $host_os in
14397   openbsd*)
14398     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14399     ;;
14400   *)
14401     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14402     ;;
14403   esac
14404   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14405 fi
14406
14407 for cc_temp in $compiler""; do
14408   case $cc_temp in
14409     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14410     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14411     \-*) ;;
14412     *) break;;
14413   esac
14414 done
14415 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14416
14417
14418 # Only perform the check for file, if the check method requires it
14419 case $deplibs_check_method in
14420 file_magic*)
14421   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14422     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14423 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   case $MAGIC_CMD in
14428 [\\/*] |  ?:[\\/]*)
14429   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14430   ;;
14431 *)
14432   lt_save_MAGIC_CMD="$MAGIC_CMD"
14433   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14434   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14435   for ac_dir in $ac_dummy; do
14436     IFS="$lt_save_ifs"
14437     test -z "$ac_dir" && ac_dir=.
14438     if test -f $ac_dir/${ac_tool_prefix}file; then
14439       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14440       if test -n "$file_magic_test_file"; then
14441         case $deplibs_check_method in
14442         "file_magic "*)
14443           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14444           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14446             $EGREP "$file_magic_regex" > /dev/null; then
14447             :
14448           else
14449             cat <<EOF 1>&2
14450
14451 *** Warning: the command libtool uses to detect shared libraries,
14452 *** $file_magic_cmd, produces output that libtool cannot recognize.
14453 *** The result is that libtool may fail to recognize shared libraries
14454 *** as such.  This will affect the creation of libtool libraries that
14455 *** depend on shared libraries, but programs linked with such libtool
14456 *** libraries will work regardless of this problem.  Nevertheless, you
14457 *** may want to report the problem to your system manager and/or to
14458 *** bug-libtool@gnu.org
14459
14460 EOF
14461           fi ;;
14462         esac
14463       fi
14464       break
14465     fi
14466   done
14467   IFS="$lt_save_ifs"
14468   MAGIC_CMD="$lt_save_MAGIC_CMD"
14469   ;;
14470 esac
14471 fi
14472
14473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14474 if test -n "$MAGIC_CMD"; then
14475   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14476 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14477 else
14478   { echo "$as_me:$LINENO: result: no" >&5
14479 echo "${ECHO_T}no" >&6; }
14480 fi
14481
14482 if test -z "$lt_cv_path_MAGIC_CMD"; then
14483   if test -n "$ac_tool_prefix"; then
14484     { echo "$as_me:$LINENO: checking for file" >&5
14485 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489   case $MAGIC_CMD in
14490 [\\/*] |  ?:[\\/]*)
14491   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14492   ;;
14493 *)
14494   lt_save_MAGIC_CMD="$MAGIC_CMD"
14495   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14496   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14497   for ac_dir in $ac_dummy; do
14498     IFS="$lt_save_ifs"
14499     test -z "$ac_dir" && ac_dir=.
14500     if test -f $ac_dir/file; then
14501       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14502       if test -n "$file_magic_test_file"; then
14503         case $deplibs_check_method in
14504         "file_magic "*)
14505           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14506           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14507           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14508             $EGREP "$file_magic_regex" > /dev/null; then
14509             :
14510           else
14511             cat <<EOF 1>&2
14512
14513 *** Warning: the command libtool uses to detect shared libraries,
14514 *** $file_magic_cmd, produces output that libtool cannot recognize.
14515 *** The result is that libtool may fail to recognize shared libraries
14516 *** as such.  This will affect the creation of libtool libraries that
14517 *** depend on shared libraries, but programs linked with such libtool
14518 *** libraries will work regardless of this problem.  Nevertheless, you
14519 *** may want to report the problem to your system manager and/or to
14520 *** bug-libtool@gnu.org
14521
14522 EOF
14523           fi ;;
14524         esac
14525       fi
14526       break
14527     fi
14528   done
14529   IFS="$lt_save_ifs"
14530   MAGIC_CMD="$lt_save_MAGIC_CMD"
14531   ;;
14532 esac
14533 fi
14534
14535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14536 if test -n "$MAGIC_CMD"; then
14537   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14538 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14539 else
14540   { echo "$as_me:$LINENO: result: no" >&5
14541 echo "${ECHO_T}no" >&6; }
14542 fi
14543
14544   else
14545     MAGIC_CMD=:
14546   fi
14547 fi
14548
14549   fi
14550   ;;
14551 esac
14552
14553 enable_dlopen=yes
14554 enable_win32_dll=no
14555
14556 # Check whether --enable-libtool-lock was given.
14557 if test "${enable_libtool_lock+set}" = set; then
14558   enableval=$enable_libtool_lock;
14559 fi
14560
14561 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14562
14563
14564 # Check whether --with-pic was given.
14565 if test "${with_pic+set}" = set; then
14566   withval=$with_pic; pic_mode="$withval"
14567 else
14568   pic_mode=default
14569 fi
14570
14571 test -z "$pic_mode" && pic_mode=default
14572
14573 # Use C for the default configuration in the libtool script
14574 tagname=
14575 lt_save_CC="$CC"
14576 ac_ext=c
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14581
14582
14583 # Source file extension for C test sources.
14584 ac_ext=c
14585
14586 # Object file extension for compiled C test sources.
14587 objext=o
14588 objext=$objext
14589
14590 # Code to be used in simple compile tests
14591 lt_simple_compile_test_code="int some_variable = 0;\n"
14592
14593 # Code to be used in simple link tests
14594 lt_simple_link_test_code='int main(){return(0);}\n'
14595
14596
14597 # If no C compiler was specified, use CC.
14598 LTCC=${LTCC-"$CC"}
14599
14600 # If no C compiler flags were specified, use CFLAGS.
14601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14602
14603 # Allow CC to be a program name with arguments.
14604 compiler=$CC
14605
14606
14607 # save warnings/boilerplate of simple test code
14608 ac_outfile=conftest.$ac_objext
14609 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14611 _lt_compiler_boilerplate=`cat conftest.err`
14612 $rm conftest*
14613
14614 ac_outfile=conftest.$ac_objext
14615 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14617 _lt_linker_boilerplate=`cat conftest.err`
14618 $rm conftest*
14619
14620
14621
14622 lt_prog_compiler_no_builtin_flag=
14623
14624 if test "$GCC" = yes; then
14625   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14626
14627
14628 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14629 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14630 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14631   echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633   lt_cv_prog_compiler_rtti_exceptions=no
14634   ac_outfile=conftest.$ac_objext
14635    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14636    lt_compiler_flag="-fno-rtti -fno-exceptions"
14637    # Insert the option either (1) after the last *FLAGS variable, or
14638    # (2) before a word containing "conftest.", or (3) at the end.
14639    # Note that $ac_compile itself does not contain backslashes and begins
14640    # with a dollar sign (not a hyphen), so the echo should work correctly.
14641    # The option is referenced via a variable to avoid confusing sed.
14642    lt_compile=`echo "$ac_compile" | $SED \
14643    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14644    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14645    -e 's:$: $lt_compiler_flag:'`
14646    (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
14647    (eval "$lt_compile" 2>conftest.err)
14648    ac_status=$?
14649    cat conftest.err >&5
14650    echo "$as_me:14650: \$? = $ac_status" >&5
14651    if (exit $ac_status) && test -s "$ac_outfile"; then
14652      # The compiler can only warn and ignore the option if not recognized
14653      # So say no if there are warnings other than the usual output.
14654      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14655      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14656      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14657        lt_cv_prog_compiler_rtti_exceptions=yes
14658      fi
14659    fi
14660    $rm conftest*
14661
14662 fi
14663 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14664 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14665
14666 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14667     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14668 else
14669     :
14670 fi
14671
14672 fi
14673
14674 lt_prog_compiler_wl=
14675 lt_prog_compiler_pic=
14676 lt_prog_compiler_static=
14677
14678 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14680
14681   if test "$GCC" = yes; then
14682     lt_prog_compiler_wl='-Wl,'
14683     lt_prog_compiler_static='-static'
14684
14685     case $host_os in
14686       aix*)
14687       # All AIX code is PIC.
14688       if test "$host_cpu" = ia64; then
14689         # AIX 5 now supports IA64 processor
14690         lt_prog_compiler_static='-Bstatic'
14691       fi
14692       ;;
14693
14694     amigaos*)
14695       # FIXME: we need at least 68020 code to build shared libraries, but
14696       # adding the `-m68020' flag to GCC prevents building anything better,
14697       # like `-m68040'.
14698       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14699       ;;
14700
14701     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14702       # PIC is the default for these OSes.
14703       ;;
14704
14705     mingw* | pw32* | os2*)
14706       # This hack is so that the source file can tell whether it is being
14707       # built for inclusion in a dll (and should export symbols for example).
14708       lt_prog_compiler_pic='-DDLL_EXPORT'
14709       ;;
14710
14711     darwin* | rhapsody*)
14712       # PIC is the default on this platform
14713       # Common symbols not allowed in MH_DYLIB files
14714       lt_prog_compiler_pic='-fno-common'
14715       ;;
14716
14717     interix3*)
14718       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14719       # Instead, we relocate shared libraries at runtime.
14720       ;;
14721
14722     msdosdjgpp*)
14723       # Just because we use GCC doesn't mean we suddenly get shared libraries
14724       # on systems that don't support them.
14725       lt_prog_compiler_can_build_shared=no
14726       enable_shared=no
14727       ;;
14728
14729     sysv4*MP*)
14730       if test -d /usr/nec; then
14731         lt_prog_compiler_pic=-Kconform_pic
14732       fi
14733       ;;
14734
14735     hpux*)
14736       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14737       # not for PA HP-UX.
14738       case $host_cpu in
14739       hppa*64*|ia64*)
14740         # +Z the default
14741         ;;
14742       *)
14743         lt_prog_compiler_pic='-fPIC'
14744         ;;
14745       esac
14746       ;;
14747
14748     *)
14749       lt_prog_compiler_pic='-fPIC'
14750       ;;
14751     esac
14752   else
14753     # PORTME Check for flag to pass linker flags through the system compiler.
14754     case $host_os in
14755     aix*)
14756       lt_prog_compiler_wl='-Wl,'
14757       if test "$host_cpu" = ia64; then
14758         # AIX 5 now supports IA64 processor
14759         lt_prog_compiler_static='-Bstatic'
14760       else
14761         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14762       fi
14763       ;;
14764       darwin*)
14765         # PIC is the default on this platform
14766         # Common symbols not allowed in MH_DYLIB files
14767        case $cc_basename in
14768          xlc*)
14769          lt_prog_compiler_pic='-qnocommon'
14770          lt_prog_compiler_wl='-Wl,'
14771          ;;
14772        esac
14773        ;;
14774
14775     mingw* | pw32* | os2*)
14776       # This hack is so that the source file can tell whether it is being
14777       # built for inclusion in a dll (and should export symbols for example).
14778       lt_prog_compiler_pic='-DDLL_EXPORT'
14779       ;;
14780
14781     hpux9* | hpux10* | hpux11*)
14782       lt_prog_compiler_wl='-Wl,'
14783       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784       # not for PA HP-UX.
14785       case $host_cpu in
14786       hppa*64*|ia64*)
14787         # +Z the default
14788         ;;
14789       *)
14790         lt_prog_compiler_pic='+Z'
14791         ;;
14792       esac
14793       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794       lt_prog_compiler_static='${wl}-a ${wl}archive'
14795       ;;
14796
14797     irix5* | irix6* | nonstopux*)
14798       lt_prog_compiler_wl='-Wl,'
14799       # PIC (with -KPIC) is the default.
14800       lt_prog_compiler_static='-non_shared'
14801       ;;
14802
14803     newsos6)
14804       lt_prog_compiler_pic='-KPIC'
14805       lt_prog_compiler_static='-Bstatic'
14806       ;;
14807
14808     linux*)
14809       case $cc_basename in
14810       icc* | ecc*)
14811         lt_prog_compiler_wl='-Wl,'
14812         lt_prog_compiler_pic='-KPIC'
14813         lt_prog_compiler_static='-static'
14814         ;;
14815       pgcc* | pgf77* | pgf90* | pgf95*)
14816         # Portland Group compilers (*not* the Pentium gcc compiler,
14817         # which looks to be a dead project)
14818         lt_prog_compiler_wl='-Wl,'
14819         lt_prog_compiler_pic='-fpic'
14820         lt_prog_compiler_static='-Bstatic'
14821         ;;
14822       ccc*)
14823         lt_prog_compiler_wl='-Wl,'
14824         # All Alpha code is PIC.
14825         lt_prog_compiler_static='-non_shared'
14826         ;;
14827       esac
14828       ;;
14829
14830     osf3* | osf4* | osf5*)
14831       lt_prog_compiler_wl='-Wl,'
14832       # All OSF/1 code is PIC.
14833       lt_prog_compiler_static='-non_shared'
14834       ;;
14835
14836     solaris*)
14837       lt_prog_compiler_pic='-KPIC'
14838       lt_prog_compiler_static='-Bstatic'
14839       case $cc_basename in
14840       f77* | f90* | f95*)
14841         lt_prog_compiler_wl='-Qoption ld ';;
14842       *)
14843         lt_prog_compiler_wl='-Wl,';;
14844       esac
14845       ;;
14846
14847     sunos4*)
14848       lt_prog_compiler_wl='-Qoption ld '
14849       lt_prog_compiler_pic='-PIC'
14850       lt_prog_compiler_static='-Bstatic'
14851       ;;
14852
14853     sysv4 | sysv4.2uw2* | sysv4.3*)
14854       lt_prog_compiler_wl='-Wl,'
14855       lt_prog_compiler_pic='-KPIC'
14856       lt_prog_compiler_static='-Bstatic'
14857       ;;
14858
14859     sysv4*MP*)
14860       if test -d /usr/nec ;then
14861         lt_prog_compiler_pic='-Kconform_pic'
14862         lt_prog_compiler_static='-Bstatic'
14863       fi
14864       ;;
14865
14866     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14867       lt_prog_compiler_wl='-Wl,'
14868       lt_prog_compiler_pic='-KPIC'
14869       lt_prog_compiler_static='-Bstatic'
14870       ;;
14871
14872     unicos*)
14873       lt_prog_compiler_wl='-Wl,'
14874       lt_prog_compiler_can_build_shared=no
14875       ;;
14876
14877     uts4*)
14878       lt_prog_compiler_pic='-pic'
14879       lt_prog_compiler_static='-Bstatic'
14880       ;;
14881
14882     *)
14883       lt_prog_compiler_can_build_shared=no
14884       ;;
14885     esac
14886   fi
14887
14888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14889 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14890
14891 #
14892 # Check to make sure the PIC flag actually works.
14893 #
14894 if test -n "$lt_prog_compiler_pic"; then
14895
14896 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14897 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14898 if test "${lt_prog_compiler_pic_works+set}" = set; then
14899   echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901   lt_prog_compiler_pic_works=no
14902   ac_outfile=conftest.$ac_objext
14903    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14904    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14905    # Insert the option either (1) after the last *FLAGS variable, or
14906    # (2) before a word containing "conftest.", or (3) at the end.
14907    # Note that $ac_compile itself does not contain backslashes and begins
14908    # with a dollar sign (not a hyphen), so the echo should work correctly.
14909    # The option is referenced via a variable to avoid confusing sed.
14910    lt_compile=`echo "$ac_compile" | $SED \
14911    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14912    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14913    -e 's:$: $lt_compiler_flag:'`
14914    (eval echo "\"\$as_me:14914: $lt_compile\"" >&5)
14915    (eval "$lt_compile" 2>conftest.err)
14916    ac_status=$?
14917    cat conftest.err >&5
14918    echo "$as_me:14918: \$? = $ac_status" >&5
14919    if (exit $ac_status) && test -s "$ac_outfile"; then
14920      # The compiler can only warn and ignore the option if not recognized
14921      # So say no if there are warnings other than the usual output.
14922      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14923      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14925        lt_prog_compiler_pic_works=yes
14926      fi
14927    fi
14928    $rm conftest*
14929
14930 fi
14931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14932 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14933
14934 if test x"$lt_prog_compiler_pic_works" = xyes; then
14935     case $lt_prog_compiler_pic in
14936      "" | " "*) ;;
14937      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14938      esac
14939 else
14940     lt_prog_compiler_pic=
14941      lt_prog_compiler_can_build_shared=no
14942 fi
14943
14944 fi
14945 case $host_os in
14946   # For platforms which do not support PIC, -DPIC is meaningless:
14947   *djgpp*)
14948     lt_prog_compiler_pic=
14949     ;;
14950   *)
14951     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14952     ;;
14953 esac
14954
14955 #
14956 # Check to make sure the static flag actually works.
14957 #
14958 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14959 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14960 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14961 if test "${lt_prog_compiler_static_works+set}" = set; then
14962   echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964   lt_prog_compiler_static_works=no
14965    save_LDFLAGS="$LDFLAGS"
14966    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14967    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14968    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14969      # The linker can only warn and ignore the option if not recognized
14970      # So say no if there are warnings
14971      if test -s conftest.err; then
14972        # Append any errors to the config.log.
14973        cat conftest.err 1>&5
14974        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14975        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14976        if diff conftest.exp conftest.er2 >/dev/null; then
14977          lt_prog_compiler_static_works=yes
14978        fi
14979      else
14980        lt_prog_compiler_static_works=yes
14981      fi
14982    fi
14983    $rm conftest*
14984    LDFLAGS="$save_LDFLAGS"
14985
14986 fi
14987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14988 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14989
14990 if test x"$lt_prog_compiler_static_works" = xyes; then
14991     :
14992 else
14993     lt_prog_compiler_static=
14994 fi
14995
14996
14997 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14999 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   lt_cv_prog_compiler_c_o=no
15003    $rm -r conftest 2>/dev/null
15004    mkdir conftest
15005    cd conftest
15006    mkdir out
15007    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009    lt_compiler_flag="-o out/conftest2.$ac_objext"
15010    # Insert the option either (1) after the last *FLAGS variable, or
15011    # (2) before a word containing "conftest.", or (3) at the end.
15012    # Note that $ac_compile itself does not contain backslashes and begins
15013    # with a dollar sign (not a hyphen), so the echo should work correctly.
15014    lt_compile=`echo "$ac_compile" | $SED \
15015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15017    -e 's:$: $lt_compiler_flag:'`
15018    (eval echo "\"\$as_me:15018: $lt_compile\"" >&5)
15019    (eval "$lt_compile" 2>out/conftest.err)
15020    ac_status=$?
15021    cat out/conftest.err >&5
15022    echo "$as_me:15022: \$? = $ac_status" >&5
15023    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15024    then
15025      # The compiler can only warn and ignore the option if not recognized
15026      # So say no if there are warnings
15027      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15028      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15029      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15030        lt_cv_prog_compiler_c_o=yes
15031      fi
15032    fi
15033    chmod u+w . 2>&5
15034    $rm conftest*
15035    # SGI C++ compiler will create directory out/ii_files/ for
15036    # template instantiation
15037    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15038    $rm out/* && rmdir out
15039    cd ..
15040    rmdir conftest
15041    $rm conftest*
15042
15043 fi
15044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15045 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15046
15047
15048 hard_links="nottested"
15049 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15050   # do not overwrite the value of need_locks provided by the user
15051   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15052 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15053   hard_links=yes
15054   $rm conftest*
15055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15056   touch conftest.a
15057   ln conftest.a conftest.b 2>&5 || hard_links=no
15058   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15059   { echo "$as_me:$LINENO: result: $hard_links" >&5
15060 echo "${ECHO_T}$hard_links" >&6; }
15061   if test "$hard_links" = no; then
15062     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15063 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15064     need_locks=warn
15065   fi
15066 else
15067   need_locks=no
15068 fi
15069
15070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15072
15073   runpath_var=
15074   allow_undefined_flag=
15075   enable_shared_with_static_runtimes=no
15076   archive_cmds=
15077   archive_expsym_cmds=
15078   old_archive_From_new_cmds=
15079   old_archive_from_expsyms_cmds=
15080   export_dynamic_flag_spec=
15081   whole_archive_flag_spec=
15082   thread_safe_flag_spec=
15083   hardcode_libdir_flag_spec=
15084   hardcode_libdir_flag_spec_ld=
15085   hardcode_libdir_separator=
15086   hardcode_direct=no
15087   hardcode_minus_L=no
15088   hardcode_shlibpath_var=unsupported
15089   link_all_deplibs=unknown
15090   hardcode_automatic=no
15091   module_cmds=
15092   module_expsym_cmds=
15093   always_export_symbols=no
15094   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15095   # include_expsyms should be a list of space-separated symbols to be *always*
15096   # included in the symbol list
15097   include_expsyms=
15098   # exclude_expsyms can be an extended regexp of symbols to exclude
15099   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15100   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15101   # as well as any symbol that contains `d'.
15102   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15103   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15104   # platforms (ab)use it in PIC code, but their linkers get confused if
15105   # the symbol is explicitly referenced.  Since portable code cannot
15106   # rely on this symbol name, it's probably fine to never include it in
15107   # preloaded symbol tables.
15108   extract_expsyms_cmds=
15109   # Just being paranoid about ensuring that cc_basename is set.
15110   for cc_temp in $compiler""; do
15111   case $cc_temp in
15112     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15113     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15114     \-*) ;;
15115     *) break;;
15116   esac
15117 done
15118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15119
15120   case $host_os in
15121   cygwin* | mingw* | pw32*)
15122     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15123     # When not using gcc, we currently assume that we are using
15124     # Microsoft Visual C++.
15125     if test "$GCC" != yes; then
15126       with_gnu_ld=no
15127     fi
15128     ;;
15129   interix*)
15130     # we just hope/assume this is gcc and not c89 (= MSVC++)
15131     with_gnu_ld=yes
15132     ;;
15133   openbsd*)
15134     with_gnu_ld=no
15135     ;;
15136   esac
15137
15138   ld_shlibs=yes
15139   if test "$with_gnu_ld" = yes; then
15140     # If archive_cmds runs LD, not CC, wlarc should be empty
15141     wlarc='${wl}'
15142
15143     # Set some defaults for GNU ld with shared library support. These
15144     # are reset later if shared libraries are not supported. Putting them
15145     # here allows them to be overridden if necessary.
15146     runpath_var=LD_RUN_PATH
15147     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15148     export_dynamic_flag_spec='${wl}--export-dynamic'
15149     # ancient GNU ld didn't support --whole-archive et. al.
15150     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15151         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15152       else
15153         whole_archive_flag_spec=
15154     fi
15155     supports_anon_versioning=no
15156     case `$LD -v 2>/dev/null` in
15157       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15158       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15159       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15160       *\ 2.11.*) ;; # other 2.11 versions
15161       *) supports_anon_versioning=yes ;;
15162     esac
15163
15164     # See if GNU ld supports shared libraries.
15165     case $host_os in
15166     aix3* | aix4* | aix5*)
15167       # On AIX/PPC, the GNU linker is very broken
15168       if test "$host_cpu" != ia64; then
15169         ld_shlibs=no
15170         cat <<EOF 1>&2
15171
15172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15173 *** to be unable to reliably create shared libraries on AIX.
15174 *** Therefore, libtool is disabling shared libraries support.  If you
15175 *** really care for shared libraries, you may want to modify your PATH
15176 *** so that a non-GNU linker is found, and then restart.
15177
15178 EOF
15179       fi
15180       ;;
15181
15182     amigaos*)
15183       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)'
15184       hardcode_libdir_flag_spec='-L$libdir'
15185       hardcode_minus_L=yes
15186
15187       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15188       # that the semantics of dynamic libraries on AmigaOS, at least up
15189       # to version 4, is to share data among multiple programs linked
15190       # with the same dynamic library.  Since this doesn't match the
15191       # behavior of shared libraries on other platforms, we can't use
15192       # them.
15193       ld_shlibs=no
15194       ;;
15195
15196     beos*)
15197       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15198         allow_undefined_flag=unsupported
15199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200         # support --undefined.  This deserves some investigation.  FIXME
15201         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202       else
15203         ld_shlibs=no
15204       fi
15205       ;;
15206
15207     cygwin* | mingw* | pw32*)
15208       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15209       # as there is no search path for DLLs.
15210       hardcode_libdir_flag_spec='-L$libdir'
15211       allow_undefined_flag=unsupported
15212       always_export_symbols=no
15213       enable_shared_with_static_runtimes=yes
15214       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15215
15216       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15218         # If the export-symbols file already is a .def file (1st line
15219         # is EXPORTS), use it as is; otherwise, prepend...
15220         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15221           cp $export_symbols $output_objdir/$soname.def;
15222         else
15223           echo EXPORTS > $output_objdir/$soname.def;
15224           cat $export_symbols >> $output_objdir/$soname.def;
15225         fi~
15226         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15227       else
15228         ld_shlibs=no
15229       fi
15230       ;;
15231
15232     interix3*)
15233       hardcode_direct=no
15234       hardcode_shlibpath_var=no
15235       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15236       export_dynamic_flag_spec='${wl}-E'
15237       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15238       # Instead, shared libraries are loaded at an image base (0x10000000 by
15239       # default) and relocated if they conflict, which is a slow very memory
15240       # consuming and fragmenting process.  To avoid this, we pick a random,
15241       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15242       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15243       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15244       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'
15245       ;;
15246
15247     linux*)
15248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249         tmp_addflag=
15250         case $cc_basename,$host_cpu in
15251         pgcc*)                          # Portland Group C compiler
15252           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'
15253           tmp_addflag=' $pic_flag'
15254           ;;
15255         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15256           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'
15257           tmp_addflag=' $pic_flag -Mnomain' ;;
15258         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15259           tmp_addflag=' -i_dynamic' ;;
15260         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15261           tmp_addflag=' -i_dynamic -nofor_main' ;;
15262         ifc* | ifort*)                  # Intel Fortran compiler
15263           tmp_addflag=' -nofor_main' ;;
15264         esac
15265         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266
15267         if test $supports_anon_versioning = yes; then
15268           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15269   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15270   $echo "local: *; };" >> $output_objdir/$libname.ver~
15271           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15272         fi
15273       else
15274         ld_shlibs=no
15275       fi
15276       ;;
15277
15278     netbsd*)
15279       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15280         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15281         wlarc=
15282       else
15283         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15285       fi
15286       ;;
15287
15288     solaris*)
15289       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15290         ld_shlibs=no
15291         cat <<EOF 1>&2
15292
15293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15294 *** create shared libraries on Solaris systems.  Therefore, libtool
15295 *** is disabling shared libraries support.  We urge you to upgrade GNU
15296 *** binutils to release 2.9.1 or newer.  Another option is to modify
15297 *** your PATH or compiler configuration so that the native linker is
15298 *** used, and then restart.
15299
15300 EOF
15301       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15302         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15303         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15304       else
15305         ld_shlibs=no
15306       fi
15307       ;;
15308
15309     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15310       case `$LD -v 2>&1` in
15311         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15312         ld_shlibs=no
15313         cat <<_LT_EOF 1>&2
15314
15315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15316 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15317 *** is disabling shared libraries support.  We urge you to upgrade GNU
15318 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15319 *** your PATH or compiler configuration so that the native linker is
15320 *** used, and then restart.
15321
15322 _LT_EOF
15323         ;;
15324         *)
15325           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15326             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15327             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15328             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15329           else
15330             ld_shlibs=no
15331           fi
15332         ;;
15333       esac
15334       ;;
15335
15336     sunos4*)
15337       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15338       wlarc=
15339       hardcode_direct=yes
15340       hardcode_shlibpath_var=no
15341       ;;
15342
15343     *)
15344       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15345         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15346         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15347       else
15348         ld_shlibs=no
15349       fi
15350       ;;
15351     esac
15352
15353     if test "$ld_shlibs" = no; then
15354       runpath_var=
15355       hardcode_libdir_flag_spec=
15356       export_dynamic_flag_spec=
15357       whole_archive_flag_spec=
15358     fi
15359   else
15360     # PORTME fill in a description of your system's linker (not GNU ld)
15361     case $host_os in
15362     aix3*)
15363       allow_undefined_flag=unsupported
15364       always_export_symbols=yes
15365       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'
15366       # Note: this linker hardcodes the directories in LIBPATH if there
15367       # are no directories specified by -L.
15368       hardcode_minus_L=yes
15369       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15370         # Neither direct hardcoding nor static linking is supported with a
15371         # broken collect2.
15372         hardcode_direct=unsupported
15373       fi
15374       ;;
15375
15376     aix4* | aix5*)
15377       if test "$host_cpu" = ia64; then
15378         # On IA64, the linker does run time linking by default, so we don't
15379         # have to do anything special.
15380         aix_use_runtimelinking=no
15381         exp_sym_flag='-Bexport'
15382         no_entry_flag=""
15383       else
15384         # If we're using GNU nm, then we don't want the "-C" option.
15385         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15386         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15387           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'
15388         else
15389           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'
15390         fi
15391         aix_use_runtimelinking=no
15392
15393         # Test if we are trying to use run time linking or normal
15394         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15395         # need to do runtime linking.
15396         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15397           for ld_flag in $LDFLAGS; do
15398           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15399             aix_use_runtimelinking=yes
15400             break
15401           fi
15402           done
15403           ;;
15404         esac
15405
15406         exp_sym_flag='-bexport'
15407         no_entry_flag='-bnoentry'
15408       fi
15409
15410       # When large executables or shared objects are built, AIX ld can
15411       # have problems creating the table of contents.  If linking a library
15412       # or program results in "error TOC overflow" add -mminimal-toc to
15413       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15414       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15415
15416       archive_cmds=''
15417       hardcode_direct=yes
15418       hardcode_libdir_separator=':'
15419       link_all_deplibs=yes
15420
15421       if test "$GCC" = yes; then
15422         case $host_os in aix4.[012]|aix4.[012].*)
15423         # We only want to do this on AIX 4.2 and lower, the check
15424         # below for broken collect2 doesn't work under 4.3+
15425           collect2name=`${CC} -print-prog-name=collect2`
15426           if test -f "$collect2name" && \
15427            strings "$collect2name" | grep resolve_lib_name >/dev/null
15428           then
15429           # We have reworked collect2
15430           hardcode_direct=yes
15431           else
15432           # We have old collect2
15433           hardcode_direct=unsupported
15434           # It fails to find uninstalled libraries when the uninstalled
15435           # path is not listed in the libpath.  Setting hardcode_minus_L
15436           # to unsupported forces relinking
15437           hardcode_minus_L=yes
15438           hardcode_libdir_flag_spec='-L$libdir'
15439           hardcode_libdir_separator=
15440           fi
15441           ;;
15442         esac
15443         shared_flag='-shared'
15444         if test "$aix_use_runtimelinking" = yes; then
15445           shared_flag="$shared_flag "'${wl}-G'
15446         fi
15447       else
15448         # not using gcc
15449         if test "$host_cpu" = ia64; then
15450         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15451         # chokes on -Wl,-G. The following line is correct:
15452           shared_flag='-G'
15453         else
15454           if test "$aix_use_runtimelinking" = yes; then
15455             shared_flag='${wl}-G'
15456           else
15457             shared_flag='${wl}-bM:SRE'
15458           fi
15459         fi
15460       fi
15461
15462       # It seems that -bexpall does not export symbols beginning with
15463       # underscore (_), so it is better to generate a list of symbols to export.
15464       always_export_symbols=yes
15465       if test "$aix_use_runtimelinking" = yes; then
15466         # Warning - without using the other runtime loading flags (-brtl),
15467         # -berok will link without error, but may produce a broken library.
15468         allow_undefined_flag='-berok'
15469        # Determine the default libpath from the value encoded in an empty executable.
15470        cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h.  */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h.  */
15476
15477 int
15478 main ()
15479 {
15480
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_link") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } &&
15499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15500   { (case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_try") 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; } &&
15509          { ac_try='test -s conftest$ac_exeext'
15510   { (case "(($ac_try" in
15511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512   *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515   (eval "$ac_try") 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519
15520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15521 }'`
15522 # Check for a 64-bit object if we didn't find anything.
15523 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; }
15524 }'`; fi
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext \
15533       conftest$ac_exeext conftest.$ac_ext
15534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15535
15536        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15537         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"
15538        else
15539         if test "$host_cpu" = ia64; then
15540           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15541           allow_undefined_flag="-z nodefs"
15542           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"
15543         else
15544          # Determine the default libpath from the value encoded in an empty executable.
15545          cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551
15552 int
15553 main ()
15554 {
15555
15556   ;
15557   return 0;
15558 }
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_link") 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575   { (case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_try") 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest$ac_exeext'
15585   { (case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_try") 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594
15595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15596 }'`
15597 # Check for a 64-bit object if we didn't find anything.
15598 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; }
15599 }'`; fi
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604
15605 fi
15606
15607 rm -f core conftest.err conftest.$ac_objext \
15608       conftest$ac_exeext conftest.$ac_ext
15609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15610
15611          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15612           # Warning - without using the other run time loading flags,
15613           # -berok will link without error, but may produce a broken library.
15614           no_undefined_flag=' ${wl}-bernotok'
15615           allow_undefined_flag=' ${wl}-berok'
15616           # Exported symbols can be pulled into shared objects from archives
15617           whole_archive_flag_spec='$convenience'
15618           archive_cmds_need_lc=yes
15619           # This is similar to how AIX traditionally builds its shared libraries.
15620           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'
15621         fi
15622       fi
15623       ;;
15624
15625     amigaos*)
15626       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)'
15627       hardcode_libdir_flag_spec='-L$libdir'
15628       hardcode_minus_L=yes
15629       # see comment about different semantics on the GNU ld section
15630       ld_shlibs=no
15631       ;;
15632
15633     bsdi[45]*)
15634       export_dynamic_flag_spec=-rdynamic
15635       ;;
15636
15637     cygwin* | mingw* | pw32*)
15638       # When not using gcc, we currently assume that we are using
15639       # Microsoft Visual C++.
15640       # hardcode_libdir_flag_spec is actually meaningless, as there is
15641       # no search path for DLLs.
15642       hardcode_libdir_flag_spec=' '
15643       allow_undefined_flag=unsupported
15644       # Tell ltmain to make .lib files, not .a files.
15645       libext=lib
15646       # Tell ltmain to make .dll files, not .so files.
15647       shrext_cmds=".dll"
15648       # FIXME: Setting linknames here is a bad hack.
15649       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15650       # The linker will automatically build a .lib file if we build a DLL.
15651       old_archive_From_new_cmds='true'
15652       # FIXME: Should let the user specify the lib program.
15653       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15654       fix_srcfile_path='`cygpath -w "$srcfile"`'
15655       enable_shared_with_static_runtimes=yes
15656       ;;
15657
15658     darwin* | rhapsody*)
15659       case $host_os in
15660         rhapsody* | darwin1.[012])
15661          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15662          ;;
15663        *) # Darwin 1.3 on
15664          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15665            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15666          else
15667            case ${MACOSX_DEPLOYMENT_TARGET} in
15668              10.[012])
15669                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15670                ;;
15671              10.*)
15672                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15673                ;;
15674            esac
15675          fi
15676          ;;
15677       esac
15678       archive_cmds_need_lc=no
15679       hardcode_direct=no
15680       hardcode_automatic=yes
15681       hardcode_shlibpath_var=unsupported
15682       whole_archive_flag_spec=''
15683       link_all_deplibs=yes
15684     if test "$GCC" = yes ; then
15685         output_verbose_link_cmd='echo'
15686         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15687       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15688       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15689       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}'
15690       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}'
15691     else
15692       case $cc_basename in
15693         xlc*)
15694          output_verbose_link_cmd='echo'
15695          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15696          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15697           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15698          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}'
15699           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}'
15700           ;;
15701        *)
15702          ld_shlibs=no
15703           ;;
15704       esac
15705     fi
15706       ;;
15707
15708     dgux*)
15709       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710       hardcode_libdir_flag_spec='-L$libdir'
15711       hardcode_shlibpath_var=no
15712       ;;
15713
15714     freebsd1*)
15715       ld_shlibs=no
15716       ;;
15717
15718     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15719     # support.  Future versions do this automatically, but an explicit c++rt0.o
15720     # does not break anything, and helps significantly (at the cost of a little
15721     # extra space).
15722     freebsd2.2*)
15723       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15724       hardcode_libdir_flag_spec='-R$libdir'
15725       hardcode_direct=yes
15726       hardcode_shlibpath_var=no
15727       ;;
15728
15729     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15730     freebsd2*)
15731       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732       hardcode_direct=yes
15733       hardcode_minus_L=yes
15734       hardcode_shlibpath_var=no
15735       ;;
15736
15737     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15738     freebsd* | kfreebsd*-gnu | dragonfly*)
15739       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15740       hardcode_libdir_flag_spec='-R$libdir'
15741       hardcode_direct=yes
15742       hardcode_shlibpath_var=no
15743       ;;
15744
15745     hpux9*)
15746       if test "$GCC" = yes; then
15747         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'
15748       else
15749         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'
15750       fi
15751       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15752       hardcode_libdir_separator=:
15753       hardcode_direct=yes
15754
15755       # hardcode_minus_L: Not really in the search PATH,
15756       # but as the default location of the library.
15757       hardcode_minus_L=yes
15758       export_dynamic_flag_spec='${wl}-E'
15759       ;;
15760
15761     hpux10*)
15762       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15763         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15764       else
15765         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15766       fi
15767       if test "$with_gnu_ld" = no; then
15768         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15769         hardcode_libdir_separator=:
15770
15771         hardcode_direct=yes
15772         export_dynamic_flag_spec='${wl}-E'
15773
15774         # hardcode_minus_L: Not really in the search PATH,
15775         # but as the default location of the library.
15776         hardcode_minus_L=yes
15777       fi
15778       ;;
15779
15780     hpux11*)
15781       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15782         case $host_cpu in
15783         hppa*64*)
15784           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785           ;;
15786         ia64*)
15787           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15788           ;;
15789         *)
15790           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15791           ;;
15792         esac
15793       else
15794         case $host_cpu in
15795         hppa*64*)
15796           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15797           ;;
15798         ia64*)
15799           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15800           ;;
15801         *)
15802           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15803           ;;
15804         esac
15805       fi
15806       if test "$with_gnu_ld" = no; then
15807         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15808         hardcode_libdir_separator=:
15809
15810         case $host_cpu in
15811         hppa*64*|ia64*)
15812           hardcode_libdir_flag_spec_ld='+b $libdir'
15813           hardcode_direct=no
15814           hardcode_shlibpath_var=no
15815           ;;
15816         *)
15817           hardcode_direct=yes
15818           export_dynamic_flag_spec='${wl}-E'
15819
15820           # hardcode_minus_L: Not really in the search PATH,
15821           # but as the default location of the library.
15822           hardcode_minus_L=yes
15823           ;;
15824         esac
15825       fi
15826       ;;
15827
15828     irix5* | irix6* | nonstopux*)
15829       if test "$GCC" = yes; then
15830         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'
15831       else
15832         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'
15833         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15834       fi
15835       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15836       hardcode_libdir_separator=:
15837       link_all_deplibs=yes
15838       ;;
15839
15840     netbsd*)
15841       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15843       else
15844         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15845       fi
15846       hardcode_libdir_flag_spec='-R$libdir'
15847       hardcode_direct=yes
15848       hardcode_shlibpath_var=no
15849       ;;
15850
15851     newsos6)
15852       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853       hardcode_direct=yes
15854       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15855       hardcode_libdir_separator=:
15856       hardcode_shlibpath_var=no
15857       ;;
15858
15859     openbsd*)
15860       hardcode_direct=yes
15861       hardcode_shlibpath_var=no
15862       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15864         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15865         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15866         export_dynamic_flag_spec='${wl}-E'
15867       else
15868        case $host_os in
15869          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15870            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871            hardcode_libdir_flag_spec='-R$libdir'
15872            ;;
15873          *)
15874            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15875            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15876            ;;
15877        esac
15878       fi
15879       ;;
15880
15881     os2*)
15882       hardcode_libdir_flag_spec='-L$libdir'
15883       hardcode_minus_L=yes
15884       allow_undefined_flag=unsupported
15885       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'
15886       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15887       ;;
15888
15889     osf3*)
15890       if test "$GCC" = yes; then
15891         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15892         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'
15893       else
15894         allow_undefined_flag=' -expect_unresolved \*'
15895         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'
15896       fi
15897       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15898       hardcode_libdir_separator=:
15899       ;;
15900
15901     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15902       if test "$GCC" = yes; then
15903         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15904         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'
15905         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15906       else
15907         allow_undefined_flag=' -expect_unresolved \*'
15908         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'
15909         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15910         $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'
15911
15912         # Both c and cxx compiler support -rpath directly
15913         hardcode_libdir_flag_spec='-rpath $libdir'
15914       fi
15915       hardcode_libdir_separator=:
15916       ;;
15917
15918     solaris*)
15919       no_undefined_flag=' -z text'
15920       if test "$GCC" = yes; then
15921         wlarc='${wl}'
15922         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15925       else
15926         wlarc=''
15927         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15928         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15929         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15930       fi
15931       hardcode_libdir_flag_spec='-R$libdir'
15932       hardcode_shlibpath_var=no
15933       case $host_os in
15934       solaris2.[0-5] | solaris2.[0-5].*) ;;
15935       *)
15936         # The compiler driver will combine linker options so we
15937         # cannot just pass the convience library names through
15938         # without $wl, iff we do not link with $LD.
15939         # Luckily, gcc supports the same syntax we need for Sun Studio.
15940         # Supported since Solaris 2.6 (maybe 2.5.1?)
15941         case $wlarc in
15942         '')
15943           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15944         *)
15945           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' ;;
15946         esac ;;
15947       esac
15948       link_all_deplibs=yes
15949       ;;
15950
15951     sunos4*)
15952       if test "x$host_vendor" = xsequent; then
15953         # Use $CC to link under sequent, because it throws in some extra .o
15954         # files that make .init and .fini sections work.
15955         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15956       else
15957         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15958       fi
15959       hardcode_libdir_flag_spec='-L$libdir'
15960       hardcode_direct=yes
15961       hardcode_minus_L=yes
15962       hardcode_shlibpath_var=no
15963       ;;
15964
15965     sysv4)
15966       case $host_vendor in
15967         sni)
15968           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15969           hardcode_direct=yes # is this really true???
15970         ;;
15971         siemens)
15972           ## LD is ld it makes a PLAMLIB
15973           ## CC just makes a GrossModule.
15974           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15975           reload_cmds='$CC -r -o $output$reload_objs'
15976           hardcode_direct=no
15977         ;;
15978         motorola)
15979           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15981         ;;
15982       esac
15983       runpath_var='LD_RUN_PATH'
15984       hardcode_shlibpath_var=no
15985       ;;
15986
15987     sysv4.3*)
15988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989       hardcode_shlibpath_var=no
15990       export_dynamic_flag_spec='-Bexport'
15991       ;;
15992
15993     sysv4*MP*)
15994       if test -d /usr/nec; then
15995         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996         hardcode_shlibpath_var=no
15997         runpath_var=LD_RUN_PATH
15998         hardcode_runpath_var=yes
15999         ld_shlibs=yes
16000       fi
16001       ;;
16002
16003     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16004       no_undefined_flag='${wl}-z,text'
16005       archive_cmds_need_lc=no
16006       hardcode_shlibpath_var=no
16007       runpath_var='LD_RUN_PATH'
16008
16009       if test "$GCC" = yes; then
16010         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16012       else
16013         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16015       fi
16016       ;;
16017
16018     sysv5* | sco3.2v5* | sco5v6*)
16019       # Note: We can NOT use -z defs as we might desire, because we do not
16020       # link with -lc, and that would cause any symbols used from libc to
16021       # always be unresolved, which means just about no library would
16022       # ever link correctly.  If we're not using GNU ld we use -z text
16023       # though, which does catch some bad symbols but isn't as heavy-handed
16024       # as -z defs.
16025       no_undefined_flag='${wl}-z,text'
16026       allow_undefined_flag='${wl}-z,nodefs'
16027       archive_cmds_need_lc=no
16028       hardcode_shlibpath_var=no
16029       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16030       hardcode_libdir_separator=':'
16031       link_all_deplibs=yes
16032       export_dynamic_flag_spec='${wl}-Bexport'
16033       runpath_var='LD_RUN_PATH'
16034
16035       if test "$GCC" = yes; then
16036         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16037         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16038       else
16039         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16041       fi
16042       ;;
16043
16044     uts4*)
16045       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046       hardcode_libdir_flag_spec='-L$libdir'
16047       hardcode_shlibpath_var=no
16048       ;;
16049
16050     *)
16051       ld_shlibs=no
16052       ;;
16053     esac
16054   fi
16055
16056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16057 echo "${ECHO_T}$ld_shlibs" >&6; }
16058 test "$ld_shlibs" = no && can_build_shared=no
16059
16060 #
16061 # Do we need to explicitly link libc?
16062 #
16063 case "x$archive_cmds_need_lc" in
16064 x|xyes)
16065   # Assume -lc should be added
16066   archive_cmds_need_lc=yes
16067
16068   if test "$enable_shared" = yes && test "$GCC" = yes; then
16069     case $archive_cmds in
16070     *'~'*)
16071       # FIXME: we may have to deal with multi-command sequences.
16072       ;;
16073     '$CC '*)
16074       # Test whether the compiler implicitly links with -lc since on some
16075       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16076       # to ld, don't add -lc before -lgcc.
16077       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16079       $rm conftest*
16080       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16081
16082       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083   (eval $ac_compile) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } 2>conftest.err; then
16087         soname=conftest
16088         lib=conftest
16089         libobjs=conftest.$ac_objext
16090         deplibs=
16091         wl=$lt_prog_compiler_wl
16092         pic_flag=$lt_prog_compiler_pic
16093         compiler_flags=-v
16094         linker_flags=-v
16095         verstring=
16096         output_objdir=.
16097         libname=conftest
16098         lt_save_allow_undefined_flag=$allow_undefined_flag
16099         allow_undefined_flag=
16100         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16101   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); }
16105         then
16106           archive_cmds_need_lc=no
16107         else
16108           archive_cmds_need_lc=yes
16109         fi
16110         allow_undefined_flag=$lt_save_allow_undefined_flag
16111       else
16112         cat conftest.err 1>&5
16113       fi
16114       $rm conftest*
16115       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16116 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16117       ;;
16118     esac
16119   fi
16120   ;;
16121 esac
16122
16123 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16124 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16125 library_names_spec=
16126 libname_spec='lib$name'
16127 soname_spec=
16128 shrext_cmds=".so"
16129 postinstall_cmds=
16130 postuninstall_cmds=
16131 finish_cmds=
16132 finish_eval=
16133 shlibpath_var=
16134 shlibpath_overrides_runpath=unknown
16135 version_type=none
16136 dynamic_linker="$host_os ld.so"
16137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16138 if test "$GCC" = yes; then
16139   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16140   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16141     # if the path contains ";" then we assume it to be the separator
16142     # otherwise default to the standard path separator (i.e. ":") - it is
16143     # assumed that no part of a normal pathname contains ";" but that should
16144     # okay in the real world where ";" in dirpaths is itself problematic.
16145     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16146   else
16147     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16148   fi
16149 else
16150   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16151 fi
16152 need_lib_prefix=unknown
16153 hardcode_into_libs=no
16154
16155 # when you set need_version to no, make sure it does not cause -set_version
16156 # flags to be left without arguments
16157 need_version=unknown
16158
16159 case $host_os in
16160 aix3*)
16161   version_type=linux
16162   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16163   shlibpath_var=LIBPATH
16164
16165   # AIX 3 has no versioning support, so we append a major version to the name.
16166   soname_spec='${libname}${release}${shared_ext}$major'
16167   ;;
16168
16169 aix4* | aix5*)
16170   version_type=linux
16171   need_lib_prefix=no
16172   need_version=no
16173   hardcode_into_libs=yes
16174   if test "$host_cpu" = ia64; then
16175     # AIX 5 supports IA64
16176     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16177     shlibpath_var=LD_LIBRARY_PATH
16178   else
16179     # With GCC up to 2.95.x, collect2 would create an import file
16180     # for dependence libraries.  The import file would start with
16181     # the line `#! .'.  This would cause the generated library to
16182     # depend on `.', always an invalid library.  This was fixed in
16183     # development snapshots of GCC prior to 3.0.
16184     case $host_os in
16185       aix4 | aix4.[01] | aix4.[01].*)
16186       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16187            echo ' yes '
16188            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16189         :
16190       else
16191         can_build_shared=no
16192       fi
16193       ;;
16194     esac
16195     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16196     # soname into executable. Probably we can add versioning support to
16197     # collect2, so additional links can be useful in future.
16198     if test "$aix_use_runtimelinking" = yes; then
16199       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16200       # instead of lib<name>.a to let people know that these are not
16201       # typical AIX shared libraries.
16202       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203     else
16204       # We preserve .a as extension for shared libraries through AIX4.2
16205       # and later when we are not doing run time linking.
16206       library_names_spec='${libname}${release}.a $libname.a'
16207       soname_spec='${libname}${release}${shared_ext}$major'
16208     fi
16209     shlibpath_var=LIBPATH
16210   fi
16211   ;;
16212
16213 amigaos*)
16214   library_names_spec='$libname.ixlibrary $libname.a'
16215   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16216   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'
16217   ;;
16218
16219 beos*)
16220   library_names_spec='${libname}${shared_ext}'
16221   dynamic_linker="$host_os ld.so"
16222   shlibpath_var=LIBRARY_PATH
16223   ;;
16224
16225 bsdi[45]*)
16226   version_type=linux
16227   need_version=no
16228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229   soname_spec='${libname}${release}${shared_ext}$major'
16230   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16231   shlibpath_var=LD_LIBRARY_PATH
16232   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16233   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16234   # the default ld.so.conf also contains /usr/contrib/lib and
16235   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16236   # libtool to hard-code these into programs
16237   ;;
16238
16239 cygwin* | mingw* | pw32*)
16240   version_type=windows
16241   shrext_cmds=".dll"
16242   need_version=no
16243   need_lib_prefix=no
16244
16245   case $GCC,$host_os in
16246   yes,cygwin* | yes,mingw* | yes,pw32*)
16247     library_names_spec='$libname.dll.a'
16248     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16249     postinstall_cmds='base_file=`basename \${file}`~
16250       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16251       dldir=$destdir/`dirname \$dlpath`~
16252       test -d \$dldir || mkdir -p \$dldir~
16253       $install_prog $dir/$dlname \$dldir/$dlname~
16254       chmod a+x \$dldir/$dlname'
16255     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16256       dlpath=$dir/\$dldll~
16257        $rm \$dlpath'
16258     shlibpath_overrides_runpath=yes
16259
16260     case $host_os in
16261     cygwin*)
16262       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16263       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16264       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16265       ;;
16266     mingw*)
16267       # MinGW DLLs use traditional 'lib' prefix
16268       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16269       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16270       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16271         # It is most probably a Windows format PATH printed by
16272         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16273         # path with ; separators, and with drive letters. We can handle the
16274         # drive letters (cygwin fileutils understands them), so leave them,
16275         # especially as we might pass files found there to a mingw objdump,
16276         # which wouldn't understand a cygwinified path. Ahh.
16277         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16278       else
16279         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16280       fi
16281       ;;
16282     pw32*)
16283       # pw32 DLLs use 'pw' prefix rather than 'lib'
16284       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16285       ;;
16286     esac
16287     ;;
16288
16289   *)
16290     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16291     ;;
16292   esac
16293   dynamic_linker='Win32 ld.exe'
16294   # FIXME: first we should search . and the directory the executable is in
16295   shlibpath_var=PATH
16296   ;;
16297
16298 darwin* | rhapsody*)
16299   dynamic_linker="$host_os dyld"
16300   version_type=darwin
16301   need_lib_prefix=no
16302   need_version=no
16303   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16304   soname_spec='${libname}${release}${major}$shared_ext'
16305   shlibpath_overrides_runpath=yes
16306   shlibpath_var=DYLD_LIBRARY_PATH
16307   shrext_cmds='.dylib'
16308   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16309   if test "$GCC" = yes; then
16310     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"`
16311   else
16312     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16313   fi
16314   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16315   ;;
16316
16317 dgux*)
16318   version_type=linux
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   shlibpath_var=LD_LIBRARY_PATH
16324   ;;
16325
16326 freebsd1*)
16327   dynamic_linker=no
16328   ;;
16329
16330 kfreebsd*-gnu)
16331   version_type=linux
16332   need_lib_prefix=no
16333   need_version=no
16334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16335   soname_spec='${libname}${release}${shared_ext}$major'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   shlibpath_overrides_runpath=no
16338   hardcode_into_libs=yes
16339   dynamic_linker='GNU ld.so'
16340   ;;
16341
16342 freebsd* | dragonfly*)
16343   # DragonFly does not have aout.  When/if they implement a new
16344   # versioning mechanism, adjust this.
16345   if test -x /usr/bin/objformat; then
16346     objformat=`/usr/bin/objformat`
16347   else
16348     case $host_os in
16349     freebsd[123]*) objformat=aout ;;
16350     *) objformat=elf ;;
16351     esac
16352   fi
16353   version_type=freebsd-$objformat
16354   case $version_type in
16355     freebsd-elf*)
16356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16357       need_version=no
16358       need_lib_prefix=no
16359       ;;
16360     freebsd-*)
16361       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16362       need_version=yes
16363       ;;
16364   esac
16365   shlibpath_var=LD_LIBRARY_PATH
16366   case $host_os in
16367   freebsd2*)
16368     shlibpath_overrides_runpath=yes
16369     ;;
16370   freebsd3.[01]* | freebsdelf3.[01]*)
16371     shlibpath_overrides_runpath=yes
16372     hardcode_into_libs=yes
16373     ;;
16374   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16375   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16376     shlibpath_overrides_runpath=no
16377     hardcode_into_libs=yes
16378     ;;
16379   freebsd*) # from 4.6 on
16380     shlibpath_overrides_runpath=yes
16381     hardcode_into_libs=yes
16382     ;;
16383   esac
16384   ;;
16385
16386 gnu*)
16387   version_type=linux
16388   need_lib_prefix=no
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   shlibpath_var=LD_LIBRARY_PATH
16393   hardcode_into_libs=yes
16394   ;;
16395
16396 hpux9* | hpux10* | hpux11*)
16397   # Give a soname corresponding to the major version so that dld.sl refuses to
16398   # link against other versions.
16399   version_type=sunos
16400   need_lib_prefix=no
16401   need_version=no
16402   case $host_cpu in
16403   ia64*)
16404     shrext_cmds='.so'
16405     hardcode_into_libs=yes
16406     dynamic_linker="$host_os dld.so"
16407     shlibpath_var=LD_LIBRARY_PATH
16408     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410     soname_spec='${libname}${release}${shared_ext}$major'
16411     if test "X$HPUX_IA64_MODE" = X32; then
16412       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16413     else
16414       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16415     fi
16416     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16417     ;;
16418    hppa*64*)
16419      shrext_cmds='.sl'
16420      hardcode_into_libs=yes
16421      dynamic_linker="$host_os dld.sl"
16422      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16423      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16424      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425      soname_spec='${libname}${release}${shared_ext}$major'
16426      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16427      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16428      ;;
16429    *)
16430     shrext_cmds='.sl'
16431     dynamic_linker="$host_os dld.sl"
16432     shlibpath_var=SHLIB_PATH
16433     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435     soname_spec='${libname}${release}${shared_ext}$major'
16436     ;;
16437   esac
16438   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16439   postinstall_cmds='chmod 555 $lib'
16440   ;;
16441
16442 interix3*)
16443   version_type=linux
16444   need_lib_prefix=no
16445   need_version=no
16446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16447   soname_spec='${libname}${release}${shared_ext}$major'
16448   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   shlibpath_overrides_runpath=no
16451   hardcode_into_libs=yes
16452   ;;
16453
16454 irix5* | irix6* | nonstopux*)
16455   case $host_os in
16456     nonstopux*) version_type=nonstopux ;;
16457     *)
16458         if test "$lt_cv_prog_gnu_ld" = yes; then
16459                 version_type=linux
16460         else
16461                 version_type=irix
16462         fi ;;
16463   esac
16464   need_lib_prefix=no
16465   need_version=no
16466   soname_spec='${libname}${release}${shared_ext}$major'
16467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16468   case $host_os in
16469   irix5* | nonstopux*)
16470     libsuff= shlibsuff=
16471     ;;
16472   *)
16473     case $LD in # libtool.m4 will add one of these switches to LD
16474     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16475       libsuff= shlibsuff= libmagic=32-bit;;
16476     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16477       libsuff=32 shlibsuff=N32 libmagic=N32;;
16478     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16479       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16480     *) libsuff= shlibsuff= libmagic=never-match;;
16481     esac
16482     ;;
16483   esac
16484   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16485   shlibpath_overrides_runpath=no
16486   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16487   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16488   hardcode_into_libs=yes
16489   ;;
16490
16491 # No shared lib support for Linux oldld, aout, or coff.
16492 linux*oldld* | linux*aout* | linux*coff*)
16493   dynamic_linker=no
16494   ;;
16495
16496 # This must be Linux ELF.
16497 linux*)
16498   version_type=linux
16499   need_lib_prefix=no
16500   need_version=no
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16504   shlibpath_var=LD_LIBRARY_PATH
16505   shlibpath_overrides_runpath=no
16506   # This implies no fast_install, which is unacceptable.
16507   # Some rework will be needed to allow for fast_install
16508   # before this can be enabled.
16509   hardcode_into_libs=yes
16510
16511   # Append ld.so.conf contents to the search path
16512   if test -f /etc/ld.so.conf; then
16513     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' ' '`
16514     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16515   fi
16516
16517   # We used to test for /lib/ld.so.1 and disable shared libraries on
16518   # powerpc, because MkLinux only supported shared libraries with the
16519   # GNU dynamic linker.  Since this was broken with cross compilers,
16520   # most powerpc-linux boxes support dynamic linking these days and
16521   # people can always --disable-shared, the test was removed, and we
16522   # assume the GNU/Linux dynamic linker is in use.
16523   dynamic_linker='GNU/Linux ld.so'
16524   ;;
16525
16526 knetbsd*-gnu)
16527   version_type=linux
16528   need_lib_prefix=no
16529   need_version=no
16530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16531   soname_spec='${libname}${release}${shared_ext}$major'
16532   shlibpath_var=LD_LIBRARY_PATH
16533   shlibpath_overrides_runpath=no
16534   hardcode_into_libs=yes
16535   dynamic_linker='GNU ld.so'
16536   ;;
16537
16538 netbsd*)
16539   version_type=sunos
16540   need_lib_prefix=no
16541   need_version=no
16542   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16544     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16545     dynamic_linker='NetBSD (a.out) ld.so'
16546   else
16547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548     soname_spec='${libname}${release}${shared_ext}$major'
16549     dynamic_linker='NetBSD ld.elf_so'
16550   fi
16551   shlibpath_var=LD_LIBRARY_PATH
16552   shlibpath_overrides_runpath=yes
16553   hardcode_into_libs=yes
16554   ;;
16555
16556 newsos6)
16557   version_type=linux
16558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559   shlibpath_var=LD_LIBRARY_PATH
16560   shlibpath_overrides_runpath=yes
16561   ;;
16562
16563 nto-qnx*)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   shlibpath_var=LD_LIBRARY_PATH
16570   shlibpath_overrides_runpath=yes
16571   ;;
16572
16573 openbsd*)
16574   version_type=sunos
16575   sys_lib_dlsearch_path_spec="/usr/lib"
16576   need_lib_prefix=no
16577   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16578   case $host_os in
16579     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16580     *)                         need_version=no  ;;
16581   esac
16582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16584   shlibpath_var=LD_LIBRARY_PATH
16585   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16586     case $host_os in
16587       openbsd2.[89] | openbsd2.[89].*)
16588         shlibpath_overrides_runpath=no
16589         ;;
16590       *)
16591         shlibpath_overrides_runpath=yes
16592         ;;
16593       esac
16594   else
16595     shlibpath_overrides_runpath=yes
16596   fi
16597   ;;
16598
16599 os2*)
16600   libname_spec='$name'
16601   shrext_cmds=".dll"
16602   need_lib_prefix=no
16603   library_names_spec='$libname${shared_ext} $libname.a'
16604   dynamic_linker='OS/2 ld.exe'
16605   shlibpath_var=LIBPATH
16606   ;;
16607
16608 osf3* | osf4* | osf5*)
16609   version_type=osf
16610   need_lib_prefix=no
16611   need_version=no
16612   soname_spec='${libname}${release}${shared_ext}$major'
16613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614   shlibpath_var=LD_LIBRARY_PATH
16615   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16616   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16617   ;;
16618
16619 solaris*)
16620   version_type=linux
16621   need_lib_prefix=no
16622   need_version=no
16623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624   soname_spec='${libname}${release}${shared_ext}$major'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=yes
16627   hardcode_into_libs=yes
16628   # ldd complains unless libraries are executable
16629   postinstall_cmds='chmod +x $lib'
16630   ;;
16631
16632 sunos4*)
16633   version_type=sunos
16634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16635   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16636   shlibpath_var=LD_LIBRARY_PATH
16637   shlibpath_overrides_runpath=yes
16638   if test "$with_gnu_ld" = yes; then
16639     need_lib_prefix=no
16640   fi
16641   need_version=yes
16642   ;;
16643
16644 sysv4 | sysv4.3*)
16645   version_type=linux
16646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647   soname_spec='${libname}${release}${shared_ext}$major'
16648   shlibpath_var=LD_LIBRARY_PATH
16649   case $host_vendor in
16650     sni)
16651       shlibpath_overrides_runpath=no
16652       need_lib_prefix=no
16653       export_dynamic_flag_spec='${wl}-Blargedynsym'
16654       runpath_var=LD_RUN_PATH
16655       ;;
16656     siemens)
16657       need_lib_prefix=no
16658       ;;
16659     motorola)
16660       need_lib_prefix=no
16661       need_version=no
16662       shlibpath_overrides_runpath=no
16663       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16664       ;;
16665   esac
16666   ;;
16667
16668 sysv4*MP*)
16669   if test -d /usr/nec ;then
16670     version_type=linux
16671     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16672     soname_spec='$libname${shared_ext}.$major'
16673     shlibpath_var=LD_LIBRARY_PATH
16674   fi
16675   ;;
16676
16677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16678   version_type=freebsd-elf
16679   need_lib_prefix=no
16680   need_version=no
16681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16682   soname_spec='${libname}${release}${shared_ext}$major'
16683   shlibpath_var=LD_LIBRARY_PATH
16684   hardcode_into_libs=yes
16685   if test "$with_gnu_ld" = yes; then
16686     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16687     shlibpath_overrides_runpath=no
16688   else
16689     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16690     shlibpath_overrides_runpath=yes
16691     case $host_os in
16692       sco3.2v5*)
16693         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16694         ;;
16695     esac
16696   fi
16697   sys_lib_dlsearch_path_spec='/usr/lib'
16698   ;;
16699
16700 uts4*)
16701   version_type=linux
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   soname_spec='${libname}${release}${shared_ext}$major'
16704   shlibpath_var=LD_LIBRARY_PATH
16705   ;;
16706
16707 *)
16708   dynamic_linker=no
16709   ;;
16710 esac
16711 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16712 echo "${ECHO_T}$dynamic_linker" >&6; }
16713 test "$dynamic_linker" = no && can_build_shared=no
16714
16715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16716 if test "$GCC" = yes; then
16717   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16718 fi
16719
16720 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16722 hardcode_action=
16723 if test -n "$hardcode_libdir_flag_spec" || \
16724    test -n "$runpath_var" || \
16725    test "X$hardcode_automatic" = "Xyes" ; then
16726
16727   # We can hardcode non-existant directories.
16728   if test "$hardcode_direct" != no &&
16729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16730      # have to relink, otherwise we might link with an installed library
16731      # when we should be linking with a yet-to-be-installed one
16732      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16733      test "$hardcode_minus_L" != no; then
16734     # Linking always hardcodes the temporary library directory.
16735     hardcode_action=relink
16736   else
16737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16738     hardcode_action=immediate
16739   fi
16740 else
16741   # We cannot hardcode anything, or else we can only hardcode existing
16742   # directories.
16743   hardcode_action=unsupported
16744 fi
16745 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16746 echo "${ECHO_T}$hardcode_action" >&6; }
16747
16748 if test "$hardcode_action" = relink; then
16749   # Fast installation is not supported
16750   enable_fast_install=no
16751 elif test "$shlibpath_overrides_runpath" = yes ||
16752      test "$enable_shared" = no; then
16753   # Fast installation is not necessary
16754   enable_fast_install=needless
16755 fi
16756
16757 striplib=
16758 old_striplib=
16759 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16762   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16763   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16764   { echo "$as_me:$LINENO: result: yes" >&5
16765 echo "${ECHO_T}yes" >&6; }
16766 else
16767 # FIXME - insert some real tests, host_os isn't really good enough
16768   case $host_os in
16769    darwin*)
16770        if test -n "$STRIP" ; then
16771          striplib="$STRIP -x"
16772          { echo "$as_me:$LINENO: result: yes" >&5
16773 echo "${ECHO_T}yes" >&6; }
16774        else
16775   { echo "$as_me:$LINENO: result: no" >&5
16776 echo "${ECHO_T}no" >&6; }
16777 fi
16778        ;;
16779    *)
16780   { echo "$as_me:$LINENO: result: no" >&5
16781 echo "${ECHO_T}no" >&6; }
16782     ;;
16783   esac
16784 fi
16785
16786 if test "x$enable_dlopen" != xyes; then
16787   enable_dlopen=unknown
16788   enable_dlopen_self=unknown
16789   enable_dlopen_self_static=unknown
16790 else
16791   lt_cv_dlopen=no
16792   lt_cv_dlopen_libs=
16793
16794   case $host_os in
16795   beos*)
16796     lt_cv_dlopen="load_add_on"
16797     lt_cv_dlopen_libs=
16798     lt_cv_dlopen_self=yes
16799     ;;
16800
16801   mingw* | pw32*)
16802     lt_cv_dlopen="LoadLibrary"
16803     lt_cv_dlopen_libs=
16804    ;;
16805
16806   cygwin*)
16807     lt_cv_dlopen="dlopen"
16808     lt_cv_dlopen_libs=
16809    ;;
16810
16811   darwin*)
16812   # if libdl is installed we need to link against it
16813     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   ac_check_lib_save_LIBS=$LIBS
16819 LIBS="-ldl  $LIBS"
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h.  */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h.  */
16826
16827 /* Override any GCC internal prototype to avoid an error.
16828    Use char because int might match the return type of a GCC
16829    builtin and then its argument prototype would still apply.  */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 char dlopen ();
16834 int
16835 main ()
16836 {
16837 return dlopen ();
16838   ;
16839   return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext conftest$ac_exeext
16843 if { (ac_try="$ac_link"
16844 case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_link") 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857   { (case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862   (eval "$ac_try") 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; } &&
16866          { ac_try='test -s conftest$ac_exeext'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_cv_lib_dl_dlopen=yes
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881         ac_cv_lib_dl_dlopen=no
16882 fi
16883
16884 rm -f core conftest.err conftest.$ac_objext \
16885       conftest$ac_exeext conftest.$ac_ext
16886 LIBS=$ac_check_lib_save_LIBS
16887 fi
16888 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16890 if test $ac_cv_lib_dl_dlopen = yes; then
16891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16892 else
16893
16894     lt_cv_dlopen="dyld"
16895     lt_cv_dlopen_libs=
16896     lt_cv_dlopen_self=yes
16897
16898 fi
16899
16900    ;;
16901
16902   *)
16903     { echo "$as_me:$LINENO: checking for shl_load" >&5
16904 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16905 if test "${ac_cv_func_shl_load+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16916 #define shl_load innocuous_shl_load
16917
16918 /* System header to define __stub macros and hopefully few prototypes,
16919     which can conflict with char shl_load (); below.
16920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16921     <limits.h> exists even on freestanding compilers.  */
16922
16923 #ifdef __STDC__
16924 # include <limits.h>
16925 #else
16926 # include <assert.h>
16927 #endif
16928
16929 #undef shl_load
16930
16931 /* Override any GCC internal prototype to avoid an error.
16932    Use char because int might match the return type of a GCC
16933    builtin and then its argument prototype would still apply.  */
16934 #ifdef __cplusplus
16935 extern "C"
16936 #endif
16937 char shl_load ();
16938 /* The GNU C library defines this for functions which it implements
16939     to always fail with ENOSYS.  Some functions are actually named
16940     something starting with __ and the normal name is an alias.  */
16941 #if defined __stub_shl_load || defined __stub___shl_load
16942 choke me
16943 #endif
16944
16945 int
16946 main ()
16947 {
16948 return shl_load ();
16949   ;
16950   return 0;
16951 }
16952 _ACEOF
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957   *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960   (eval "$ac_link") 2>conftest.er1
16961   ac_status=$?
16962   grep -v '^ *+' conftest.er1 >conftest.err
16963   rm -f conftest.er1
16964   cat conftest.err >&5
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); } &&
16967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16968   { (case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973   (eval "$ac_try") 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; } &&
16977          { ac_try='test -s conftest$ac_exeext'
16978   { (case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983   (eval "$ac_try") 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); }; }; then
16987   ac_cv_func_shl_load=yes
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992         ac_cv_func_shl_load=no
16993 fi
16994
16995 rm -f core conftest.err conftest.$ac_objext \
16996       conftest$ac_exeext conftest.$ac_ext
16997 fi
16998 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16999 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17000 if test $ac_cv_func_shl_load = yes; then
17001   lt_cv_dlopen="shl_load"
17002 else
17003   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17004 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17005 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008   ac_check_lib_save_LIBS=$LIBS
17009 LIBS="-ldld  $LIBS"
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016
17017 /* Override any GCC internal prototype to avoid an error.
17018    Use char because int might match the return type of a GCC
17019    builtin and then its argument prototype would still apply.  */
17020 #ifdef __cplusplus
17021 extern "C"
17022 #endif
17023 char shl_load ();
17024 int
17025 main ()
17026 {
17027 return shl_load ();
17028   ;
17029   return 0;
17030 }
17031 _ACEOF
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036   *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039   (eval "$ac_link") 2>conftest.er1
17040   ac_status=$?
17041   grep -v '^ *+' conftest.er1 >conftest.err
17042   rm -f conftest.er1
17043   cat conftest.err >&5
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } &&
17046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17047   { (case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052   (eval "$ac_try") 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); }; } &&
17056          { ac_try='test -s conftest$ac_exeext'
17057   { (case "(($ac_try" in
17058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059   *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062   (eval "$ac_try") 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; }; then
17066   ac_cv_lib_dld_shl_load=yes
17067 else
17068   echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071         ac_cv_lib_dld_shl_load=no
17072 fi
17073
17074 rm -f core conftest.err conftest.$ac_objext \
17075       conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17077 fi
17078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17079 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17080 if test $ac_cv_lib_dld_shl_load = yes; then
17081   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17082 else
17083   { echo "$as_me:$LINENO: checking for dlopen" >&5
17084 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17085 if test "${ac_cv_func_dlopen+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h.  */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h.  */
17094 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17096 #define dlopen innocuous_dlopen
17097
17098 /* System header to define __stub macros and hopefully few prototypes,
17099     which can conflict with char dlopen (); below.
17100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101     <limits.h> exists even on freestanding compilers.  */
17102
17103 #ifdef __STDC__
17104 # include <limits.h>
17105 #else
17106 # include <assert.h>
17107 #endif
17108
17109 #undef dlopen
17110
17111 /* Override any GCC internal prototype to avoid an error.
17112    Use char because int might match the return type of a GCC
17113    builtin and then its argument prototype would still apply.  */
17114 #ifdef __cplusplus
17115 extern "C"
17116 #endif
17117 char dlopen ();
17118 /* The GNU C library defines this for functions which it implements
17119     to always fail with ENOSYS.  Some functions are actually named
17120     something starting with __ and the normal name is an alias.  */
17121 #if defined __stub_dlopen || defined __stub___dlopen
17122 choke me
17123 #endif
17124
17125 int
17126 main ()
17127 {
17128 return dlopen ();
17129   ;
17130   return 0;
17131 }
17132 _ACEOF
17133 rm -f conftest.$ac_objext conftest$ac_exeext
17134 if { (ac_try="$ac_link"
17135 case "(($ac_try" in
17136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137   *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140   (eval "$ac_link") 2>conftest.er1
17141   ac_status=$?
17142   grep -v '^ *+' conftest.er1 >conftest.err
17143   rm -f conftest.er1
17144   cat conftest.err >&5
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } &&
17147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17148   { (case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_try") 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; } &&
17157          { ac_try='test -s conftest$ac_exeext'
17158   { (case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163   (eval "$ac_try") 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   ac_cv_func_dlopen=yes
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172         ac_cv_func_dlopen=no
17173 fi
17174
17175 rm -f core conftest.err conftest.$ac_objext \
17176       conftest$ac_exeext conftest.$ac_ext
17177 fi
17178 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17179 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17180 if test $ac_cv_func_dlopen = yes; then
17181   lt_cv_dlopen="dlopen"
17182 else
17183   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17184 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17186   echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188   ac_check_lib_save_LIBS=$LIBS
17189 LIBS="-ldl  $LIBS"
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196
17197 /* Override any GCC internal prototype to avoid an error.
17198    Use char because int might match the return type of a GCC
17199    builtin and then its argument prototype would still apply.  */
17200 #ifdef __cplusplus
17201 extern "C"
17202 #endif
17203 char dlopen ();
17204 int
17205 main ()
17206 {
17207 return dlopen ();
17208   ;
17209   return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216   *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219   (eval "$ac_link") 2>conftest.er1
17220   ac_status=$?
17221   grep -v '^ *+' conftest.er1 >conftest.err
17222   rm -f conftest.er1
17223   cat conftest.err >&5
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227   { (case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_try") 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (case "(($ac_try" in
17238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239   *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242   (eval "$ac_try") 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; }; then
17246   ac_cv_lib_dl_dlopen=yes
17247 else
17248   echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251         ac_cv_lib_dl_dlopen=no
17252 fi
17253
17254 rm -f core conftest.err conftest.$ac_objext \
17255       conftest$ac_exeext conftest.$ac_ext
17256 LIBS=$ac_check_lib_save_LIBS
17257 fi
17258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17260 if test $ac_cv_lib_dl_dlopen = yes; then
17261   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17262 else
17263   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17264 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17266   echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268   ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-lsvld  $LIBS"
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276
17277 /* Override any GCC internal prototype to avoid an error.
17278    Use char because int might match the return type of a GCC
17279    builtin and then its argument prototype would still apply.  */
17280 #ifdef __cplusplus
17281 extern "C"
17282 #endif
17283 char dlopen ();
17284 int
17285 main ()
17286 {
17287 return dlopen ();
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299   (eval "$ac_link") 2>conftest.er1
17300   ac_status=$?
17301   grep -v '^ *+' conftest.er1 >conftest.err
17302   rm -f conftest.er1
17303   cat conftest.err >&5
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); } &&
17306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307   { (case "(($ac_try" in
17308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309   *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312   (eval "$ac_try") 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; } &&
17316          { ac_try='test -s conftest$ac_exeext'
17317   { (case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_try") 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_cv_lib_svld_dlopen=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331         ac_cv_lib_svld_dlopen=no
17332 fi
17333
17334 rm -f core conftest.err conftest.$ac_objext \
17335       conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17337 fi
17338 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17339 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17340 if test $ac_cv_lib_svld_dlopen = yes; then
17341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17342 else
17343   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17344 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-ldld  $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356
17357 /* Override any GCC internal prototype to avoid an error.
17358    Use char because int might match the return type of a GCC
17359    builtin and then its argument prototype would still apply.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 char dld_link ();
17364 int
17365 main ()
17366 {
17367 return dld_link ();
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_link") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } &&
17386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387   { (case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_try") 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_try") 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; }; then
17406   ac_cv_lib_dld_dld_link=yes
17407 else
17408   echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411         ac_cv_lib_dld_dld_link=no
17412 fi
17413
17414 rm -f core conftest.err conftest.$ac_objext \
17415       conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17419 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17420 if test $ac_cv_lib_dld_dld_link = yes; then
17421   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17422 fi
17423
17424
17425 fi
17426
17427
17428 fi
17429
17430
17431 fi
17432
17433
17434 fi
17435
17436
17437 fi
17438
17439     ;;
17440   esac
17441
17442   if test "x$lt_cv_dlopen" != xno; then
17443     enable_dlopen=yes
17444   else
17445     enable_dlopen=no
17446   fi
17447
17448   case $lt_cv_dlopen in
17449   dlopen)
17450     save_CPPFLAGS="$CPPFLAGS"
17451     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17452
17453     save_LDFLAGS="$LDFLAGS"
17454     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17455
17456     save_LIBS="$LIBS"
17457     LIBS="$lt_cv_dlopen_libs $LIBS"
17458
17459     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17460 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17461 if test "${lt_cv_dlopen_self+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464           if test "$cross_compiling" = yes; then :
17465   lt_cv_dlopen_self=cross
17466 else
17467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17468   lt_status=$lt_dlunknown
17469   cat > conftest.$ac_ext <<EOF
17470 #line 17470 "configure"
17471 #include "confdefs.h"
17472
17473 #if HAVE_DLFCN_H
17474 #include <dlfcn.h>
17475 #endif
17476
17477 #include <stdio.h>
17478
17479 #ifdef RTLD_GLOBAL
17480 #  define LT_DLGLOBAL           RTLD_GLOBAL
17481 #else
17482 #  ifdef DL_GLOBAL
17483 #    define LT_DLGLOBAL         DL_GLOBAL
17484 #  else
17485 #    define LT_DLGLOBAL         0
17486 #  endif
17487 #endif
17488
17489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17490    find out it does not work in some platform. */
17491 #ifndef LT_DLLAZY_OR_NOW
17492 #  ifdef RTLD_LAZY
17493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17494 #  else
17495 #    ifdef DL_LAZY
17496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17497 #    else
17498 #      ifdef RTLD_NOW
17499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17500 #      else
17501 #        ifdef DL_NOW
17502 #          define LT_DLLAZY_OR_NOW      DL_NOW
17503 #        else
17504 #          define LT_DLLAZY_OR_NOW      0
17505 #        endif
17506 #      endif
17507 #    endif
17508 #  endif
17509 #endif
17510
17511 #ifdef __cplusplus
17512 extern "C" void exit (int);
17513 #endif
17514
17515 void fnord() { int i=42;}
17516 int main ()
17517 {
17518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17519   int status = $lt_dlunknown;
17520
17521   if (self)
17522     {
17523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17525       /* dlclose (self); */
17526     }
17527   else
17528     puts (dlerror ());
17529
17530     exit (status);
17531 }
17532 EOF
17533   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534   (eval $ac_link) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17538     (./conftest; exit; ) >&5 2>/dev/null
17539     lt_status=$?
17540     case x$lt_status in
17541       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17542       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17543       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17544     esac
17545   else :
17546     # compilation failed
17547     lt_cv_dlopen_self=no
17548   fi
17549 fi
17550 rm -fr conftest*
17551
17552
17553 fi
17554 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17556
17557     if test "x$lt_cv_dlopen_self" = xyes; then
17558       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17559       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17561 if test "${lt_cv_dlopen_self_static+set}" = set; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564           if test "$cross_compiling" = yes; then :
17565   lt_cv_dlopen_self_static=cross
17566 else
17567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17568   lt_status=$lt_dlunknown
17569   cat > conftest.$ac_ext <<EOF
17570 #line 17570 "configure"
17571 #include "confdefs.h"
17572
17573 #if HAVE_DLFCN_H
17574 #include <dlfcn.h>
17575 #endif
17576
17577 #include <stdio.h>
17578
17579 #ifdef RTLD_GLOBAL
17580 #  define LT_DLGLOBAL           RTLD_GLOBAL
17581 #else
17582 #  ifdef DL_GLOBAL
17583 #    define LT_DLGLOBAL         DL_GLOBAL
17584 #  else
17585 #    define LT_DLGLOBAL         0
17586 #  endif
17587 #endif
17588
17589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17590    find out it does not work in some platform. */
17591 #ifndef LT_DLLAZY_OR_NOW
17592 #  ifdef RTLD_LAZY
17593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17594 #  else
17595 #    ifdef DL_LAZY
17596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17597 #    else
17598 #      ifdef RTLD_NOW
17599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17600 #      else
17601 #        ifdef DL_NOW
17602 #          define LT_DLLAZY_OR_NOW      DL_NOW
17603 #        else
17604 #          define LT_DLLAZY_OR_NOW      0
17605 #        endif
17606 #      endif
17607 #    endif
17608 #  endif
17609 #endif
17610
17611 #ifdef __cplusplus
17612 extern "C" void exit (int);
17613 #endif
17614
17615 void fnord() { int i=42;}
17616 int main ()
17617 {
17618   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17619   int status = $lt_dlunknown;
17620
17621   if (self)
17622     {
17623       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17624       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17625       /* dlclose (self); */
17626     }
17627   else
17628     puts (dlerror ());
17629
17630     exit (status);
17631 }
17632 EOF
17633   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634   (eval $ac_link) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17638     (./conftest; exit; ) >&5 2>/dev/null
17639     lt_status=$?
17640     case x$lt_status in
17641       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17642       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17643       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17644     esac
17645   else :
17646     # compilation failed
17647     lt_cv_dlopen_self_static=no
17648   fi
17649 fi
17650 rm -fr conftest*
17651
17652
17653 fi
17654 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17655 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17656     fi
17657
17658     CPPFLAGS="$save_CPPFLAGS"
17659     LDFLAGS="$save_LDFLAGS"
17660     LIBS="$save_LIBS"
17661     ;;
17662   esac
17663
17664   case $lt_cv_dlopen_self in
17665   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17666   *) enable_dlopen_self=unknown ;;
17667   esac
17668
17669   case $lt_cv_dlopen_self_static in
17670   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17671   *) enable_dlopen_self_static=unknown ;;
17672   esac
17673 fi
17674
17675
17676 # Report which library types will actually be built
17677 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17678 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17679 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17680 echo "${ECHO_T}$can_build_shared" >&6; }
17681
17682 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17683 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17684 test "$can_build_shared" = "no" && enable_shared=no
17685
17686 # On AIX, shared libraries and static libraries use the same namespace, and
17687 # are all built from PIC.
17688 case $host_os in
17689 aix3*)
17690   test "$enable_shared" = yes && enable_static=no
17691   if test -n "$RANLIB"; then
17692     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17693     postinstall_cmds='$RANLIB $lib'
17694   fi
17695   ;;
17696
17697 aix4* | aix5*)
17698   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17699     test "$enable_shared" = yes && enable_static=no
17700   fi
17701     ;;
17702 esac
17703 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17704 echo "${ECHO_T}$enable_shared" >&6; }
17705
17706 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17707 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17708 # Make sure either enable_shared or enable_static is yes.
17709 test "$enable_shared" = yes || enable_static=yes
17710 { echo "$as_me:$LINENO: result: $enable_static" >&5
17711 echo "${ECHO_T}$enable_static" >&6; }
17712
17713 # The else clause should only fire when bootstrapping the
17714 # libtool distribution, otherwise you forgot to ship ltmain.sh
17715 # with your package, and you will get complaints that there are
17716 # no rules to generate ltmain.sh.
17717 if test -f "$ltmain"; then
17718   # See if we are running on zsh, and set the options which allow our commands through
17719   # without removal of \ escapes.
17720   if test -n "${ZSH_VERSION+set}" ; then
17721     setopt NO_GLOB_SUBST
17722   fi
17723   # Now quote all the things that may contain metacharacters while being
17724   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17725   # variables and quote the copies for generation of the libtool script.
17726   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17727     SED SHELL STRIP \
17728     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17729     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17730     deplibs_check_method reload_flag reload_cmds need_locks \
17731     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17732     lt_cv_sys_global_symbol_to_c_name_address \
17733     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17734     old_postinstall_cmds old_postuninstall_cmds \
17735     compiler \
17736     CC \
17737     LD \
17738     lt_prog_compiler_wl \
17739     lt_prog_compiler_pic \
17740     lt_prog_compiler_static \
17741     lt_prog_compiler_no_builtin_flag \
17742     export_dynamic_flag_spec \
17743     thread_safe_flag_spec \
17744     whole_archive_flag_spec \
17745     enable_shared_with_static_runtimes \
17746     old_archive_cmds \
17747     old_archive_from_new_cmds \
17748     predep_objects \
17749     postdep_objects \
17750     predeps \
17751     postdeps \
17752     compiler_lib_search_path \
17753     archive_cmds \
17754     archive_expsym_cmds \
17755     postinstall_cmds \
17756     postuninstall_cmds \
17757     old_archive_from_expsyms_cmds \
17758     allow_undefined_flag \
17759     no_undefined_flag \
17760     export_symbols_cmds \
17761     hardcode_libdir_flag_spec \
17762     hardcode_libdir_flag_spec_ld \
17763     hardcode_libdir_separator \
17764     hardcode_automatic \
17765     module_cmds \
17766     module_expsym_cmds \
17767     lt_cv_prog_compiler_c_o \
17768     exclude_expsyms \
17769     include_expsyms; do
17770
17771     case $var in
17772     old_archive_cmds | \
17773     old_archive_from_new_cmds | \
17774     archive_cmds | \
17775     archive_expsym_cmds | \
17776     module_cmds | \
17777     module_expsym_cmds | \
17778     old_archive_from_expsyms_cmds | \
17779     export_symbols_cmds | \
17780     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17781     postinstall_cmds | postuninstall_cmds | \
17782     old_postinstall_cmds | old_postuninstall_cmds | \
17783     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17784       # Double-quote double-evaled strings.
17785       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17786       ;;
17787     *)
17788       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17789       ;;
17790     esac
17791   done
17792
17793   case $lt_echo in
17794   *'\$0 --fallback-echo"')
17795     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17796     ;;
17797   esac
17798
17799 cfgfile="${ofile}T"
17800   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17801   $rm -f "$cfgfile"
17802   { echo "$as_me:$LINENO: creating $ofile" >&5
17803 echo "$as_me: creating $ofile" >&6;}
17804
17805   cat <<__EOF__ >> "$cfgfile"
17806 #! $SHELL
17807
17808 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17809 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17810 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17811 #
17812 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17813 # Free Software Foundation, Inc.
17814 #
17815 # This file is part of GNU Libtool:
17816 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17817 #
17818 # This program is free software; you can redistribute it and/or modify
17819 # it under the terms of the GNU General Public License as published by
17820 # the Free Software Foundation; either version 2 of the License, or
17821 # (at your option) any later version.
17822 #
17823 # This program is distributed in the hope that it will be useful, but
17824 # WITHOUT ANY WARRANTY; without even the implied warranty of
17825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17826 # General Public License for more details.
17827 #
17828 # You should have received a copy of the GNU General Public License
17829 # along with this program; if not, write to the Free Software
17830 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17831 #
17832 # As a special exception to the GNU General Public License, if you
17833 # distribute this file as part of a program that contains a
17834 # configuration script generated by Autoconf, you may include it under
17835 # the same distribution terms that you use for the rest of that program.
17836
17837 # A sed program that does not truncate output.
17838 SED=$lt_SED
17839
17840 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17841 Xsed="$SED -e 1s/^X//"
17842
17843 # The HP-UX ksh and POSIX shell print the target directory to stdout
17844 # if CDPATH is set.
17845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17846
17847 # The names of the tagged configurations supported by this script.
17848 available_tags=
17849
17850 # ### BEGIN LIBTOOL CONFIG
17851
17852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17853
17854 # Shell to use when invoking shell scripts.
17855 SHELL=$lt_SHELL
17856
17857 # Whether or not to build shared libraries.
17858 build_libtool_libs=$enable_shared
17859
17860 # Whether or not to build static libraries.
17861 build_old_libs=$enable_static
17862
17863 # Whether or not to add -lc for building shared libraries.
17864 build_libtool_need_lc=$archive_cmds_need_lc
17865
17866 # Whether or not to disallow shared libs when runtime libs are static
17867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17868
17869 # Whether or not to optimize for fast installation.
17870 fast_install=$enable_fast_install
17871
17872 # The host system.
17873 host_alias=$host_alias
17874 host=$host
17875 host_os=$host_os
17876
17877 # The build system.
17878 build_alias=$build_alias
17879 build=$build
17880 build_os=$build_os
17881
17882 # An echo program that does not interpret backslashes.
17883 echo=$lt_echo
17884
17885 # The archiver.
17886 AR=$lt_AR
17887 AR_FLAGS=$lt_AR_FLAGS
17888
17889 # A C compiler.
17890 LTCC=$lt_LTCC
17891
17892 # LTCC compiler flags.
17893 LTCFLAGS=$lt_LTCFLAGS
17894
17895 # A language-specific compiler.
17896 CC=$lt_compiler
17897
17898 # Is the compiler the GNU C compiler?
17899 with_gcc=$GCC
17900
17901 # An ERE matcher.
17902 EGREP=$lt_EGREP
17903
17904 # The linker used to build libraries.
17905 LD=$lt_LD
17906
17907 # Whether we need hard or soft links.
17908 LN_S=$lt_LN_S
17909
17910 # A BSD-compatible nm program.
17911 NM=$lt_NM
17912
17913 # A symbol stripping program
17914 STRIP=$lt_STRIP
17915
17916 # Used to examine libraries when file_magic_cmd begins "file"
17917 MAGIC_CMD=$MAGIC_CMD
17918
17919 # Used on cygwin: DLL creation program.
17920 DLLTOOL="$DLLTOOL"
17921
17922 # Used on cygwin: object dumper.
17923 OBJDUMP="$OBJDUMP"
17924
17925 # Used on cygwin: assembler.
17926 AS="$AS"
17927
17928 # The name of the directory that contains temporary libtool files.
17929 objdir=$objdir
17930
17931 # How to create reloadable object files.
17932 reload_flag=$lt_reload_flag
17933 reload_cmds=$lt_reload_cmds
17934
17935 # How to pass a linker flag through the compiler.
17936 wl=$lt_lt_prog_compiler_wl
17937
17938 # Object file suffix (normally "o").
17939 objext="$ac_objext"
17940
17941 # Old archive suffix (normally "a").
17942 libext="$libext"
17943
17944 # Shared library suffix (normally ".so").
17945 shrext_cmds='$shrext_cmds'
17946
17947 # Executable file suffix (normally "").
17948 exeext="$exeext"
17949
17950 # Additional compiler flags for building library objects.
17951 pic_flag=$lt_lt_prog_compiler_pic
17952 pic_mode=$pic_mode
17953
17954 # What is the maximum length of a command?
17955 max_cmd_len=$lt_cv_sys_max_cmd_len
17956
17957 # Does compiler simultaneously support -c and -o options?
17958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17959
17960 # Must we lock files when doing compilation?
17961 need_locks=$lt_need_locks
17962
17963 # Do we need the lib prefix for modules?
17964 need_lib_prefix=$need_lib_prefix
17965
17966 # Do we need a version for libraries?
17967 need_version=$need_version
17968
17969 # Whether dlopen is supported.
17970 dlopen_support=$enable_dlopen
17971
17972 # Whether dlopen of programs is supported.
17973 dlopen_self=$enable_dlopen_self
17974
17975 # Whether dlopen of statically linked programs is supported.
17976 dlopen_self_static=$enable_dlopen_self_static
17977
17978 # Compiler flag to prevent dynamic linking.
17979 link_static_flag=$lt_lt_prog_compiler_static
17980
17981 # Compiler flag to turn off builtin functions.
17982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17983
17984 # Compiler flag to allow reflexive dlopens.
17985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17986
17987 # Compiler flag to generate shared objects directly from archives.
17988 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17989
17990 # Compiler flag to generate thread-safe objects.
17991 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17992
17993 # Library versioning type.
17994 version_type=$version_type
17995
17996 # Format of library name prefix.
17997 libname_spec=$lt_libname_spec
17998
17999 # List of archive names.  First name is the real one, the rest are links.
18000 # The last name is the one that the linker finds with -lNAME.
18001 library_names_spec=$lt_library_names_spec
18002
18003 # The coded name of the library, if different from the real name.
18004 soname_spec=$lt_soname_spec
18005
18006 # Commands used to build and install an old-style archive.
18007 RANLIB=$lt_RANLIB
18008 old_archive_cmds=$lt_old_archive_cmds
18009 old_postinstall_cmds=$lt_old_postinstall_cmds
18010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18011
18012 # Create an old-style archive from a shared archive.
18013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18014
18015 # Create a temporary old-style archive to link instead of a shared archive.
18016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18017
18018 # Commands used to build and install a shared archive.
18019 archive_cmds=$lt_archive_cmds
18020 archive_expsym_cmds=$lt_archive_expsym_cmds
18021 postinstall_cmds=$lt_postinstall_cmds
18022 postuninstall_cmds=$lt_postuninstall_cmds
18023
18024 # Commands used to build a loadable module (assumed same as above if empty)
18025 module_cmds=$lt_module_cmds
18026 module_expsym_cmds=$lt_module_expsym_cmds
18027
18028 # Commands to strip libraries.
18029 old_striplib=$lt_old_striplib
18030 striplib=$lt_striplib
18031
18032 # Dependencies to place before the objects being linked to create a
18033 # shared library.
18034 predep_objects=$lt_predep_objects
18035
18036 # Dependencies to place after the objects being linked to create a
18037 # shared library.
18038 postdep_objects=$lt_postdep_objects
18039
18040 # Dependencies to place before the objects being linked to create a
18041 # shared library.
18042 predeps=$lt_predeps
18043
18044 # Dependencies to place after the objects being linked to create a
18045 # shared library.
18046 postdeps=$lt_postdeps
18047
18048 # The library search path used internally by the compiler when linking
18049 # a shared library.
18050 compiler_lib_search_path=$lt_compiler_lib_search_path
18051
18052 # Method to check whether dependent libraries are shared objects.
18053 deplibs_check_method=$lt_deplibs_check_method
18054
18055 # Command to use when deplibs_check_method == file_magic.
18056 file_magic_cmd=$lt_file_magic_cmd
18057
18058 # Flag that allows shared libraries with undefined symbols to be built.
18059 allow_undefined_flag=$lt_allow_undefined_flag
18060
18061 # Flag that forces no undefined symbols.
18062 no_undefined_flag=$lt_no_undefined_flag
18063
18064 # Commands used to finish a libtool library installation in a directory.
18065 finish_cmds=$lt_finish_cmds
18066
18067 # Same as above, but a single script fragment to be evaled but not shown.
18068 finish_eval=$lt_finish_eval
18069
18070 # Take the output of nm and produce a listing of raw symbols and C names.
18071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18072
18073 # Transform the output of nm in a proper C declaration
18074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18075
18076 # Transform the output of nm in a C name address pair
18077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18078
18079 # This is the shared library runtime path variable.
18080 runpath_var=$runpath_var
18081
18082 # This is the shared library path variable.
18083 shlibpath_var=$shlibpath_var
18084
18085 # Is shlibpath searched before the hard-coded library search path?
18086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18087
18088 # How to hardcode a shared library path into an executable.
18089 hardcode_action=$hardcode_action
18090
18091 # Whether we should hardcode library paths into libraries.
18092 hardcode_into_libs=$hardcode_into_libs
18093
18094 # Flag to hardcode \$libdir into a binary during linking.
18095 # This must work even if \$libdir does not exist.
18096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18097
18098 # If ld is used when linking, flag to hardcode \$libdir into
18099 # a binary during linking. This must work even if \$libdir does
18100 # not exist.
18101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18102
18103 # Whether we need a single -rpath flag with a separated argument.
18104 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18105
18106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18107 # resulting binary.
18108 hardcode_direct=$hardcode_direct
18109
18110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18111 # resulting binary.
18112 hardcode_minus_L=$hardcode_minus_L
18113
18114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18115 # the resulting binary.
18116 hardcode_shlibpath_var=$hardcode_shlibpath_var
18117
18118 # Set to yes if building a shared library automatically hardcodes DIR into the library
18119 # and all subsequent libraries and executables linked against it.
18120 hardcode_automatic=$hardcode_automatic
18121
18122 # Variables whose values should be saved in libtool wrapper scripts and
18123 # restored at relink time.
18124 variables_saved_for_relink="$variables_saved_for_relink"
18125
18126 # Whether libtool must link a program against all its dependency libraries.
18127 link_all_deplibs=$link_all_deplibs
18128
18129 # Compile-time system search path for libraries
18130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18131
18132 # Run-time system search path for libraries
18133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18134
18135 # Fix the shell variable \$srcfile for the compiler.
18136 fix_srcfile_path="$fix_srcfile_path"
18137
18138 # Set to yes if exported symbols are required.
18139 always_export_symbols=$always_export_symbols
18140
18141 # The commands to list exported symbols.
18142 export_symbols_cmds=$lt_export_symbols_cmds
18143
18144 # The commands to extract the exported symbol list from a shared archive.
18145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18146
18147 # Symbols that should not be listed in the preloaded symbols.
18148 exclude_expsyms=$lt_exclude_expsyms
18149
18150 # Symbols that must always be exported.
18151 include_expsyms=$lt_include_expsyms
18152
18153 # ### END LIBTOOL CONFIG
18154
18155 __EOF__
18156
18157
18158   case $host_os in
18159   aix3*)
18160     cat <<\EOF >> "$cfgfile"
18161
18162 # AIX sometimes has problems with the GCC collect2 program.  For some
18163 # reason, if we set the COLLECT_NAMES environment variable, the problems
18164 # vanish in a puff of smoke.
18165 if test "X${COLLECT_NAMES+set}" != Xset; then
18166   COLLECT_NAMES=
18167   export COLLECT_NAMES
18168 fi
18169 EOF
18170     ;;
18171   esac
18172
18173   # We use sed instead of cat because bash on DJGPP gets confused if
18174   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18175   # text mode, it properly converts lines to CR/LF.  This bash problem
18176   # is reportedly fixed, but why not run on old versions too?
18177   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18178
18179   mv -f "$cfgfile" "$ofile" || \
18180     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18181   chmod +x "$ofile"
18182
18183 else
18184   # If there is no Makefile yet, we rely on a make rule to execute
18185   # `config.status --recheck' to rerun these tests and create the
18186   # libtool script then.
18187   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18188   if test -f "$ltmain_in"; then
18189     test -f Makefile && make "$ltmain"
18190   fi
18191 fi
18192
18193
18194 ac_ext=c
18195 ac_cpp='$CPP $CPPFLAGS'
18196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18199
18200 CC="$lt_save_CC"
18201
18202
18203 # Check whether --with-tags was given.
18204 if test "${with_tags+set}" = set; then
18205   withval=$with_tags; tagnames="$withval"
18206 fi
18207
18208
18209 if test -f "$ltmain" && test -n "$tagnames"; then
18210   if test ! -f "${ofile}"; then
18211     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18212 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18213   fi
18214
18215   if test -z "$LTCC"; then
18216     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18217     if test -z "$LTCC"; then
18218       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18219 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18220     else
18221       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18222 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18223     fi
18224   fi
18225   if test -z "$LTCFLAGS"; then
18226     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18227   fi
18228
18229   # Extract list of available tagged configurations in $ofile.
18230   # Note that this assumes the entire list is on one line.
18231   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18232
18233   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18234   for tagname in $tagnames; do
18235     IFS="$lt_save_ifs"
18236     # Check whether tagname contains only valid characters
18237     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18238     "") ;;
18239     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18240 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18241    { (exit 1); exit 1; }; }
18242         ;;
18243     esac
18244
18245     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18246     then
18247       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18248 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18249    { (exit 1); exit 1; }; }
18250     fi
18251
18252     # Update the list of available tags.
18253     if test -n "$tagname"; then
18254       echo appending configuration tag \"$tagname\" to $ofile
18255
18256       case $tagname in
18257       CXX)
18258         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18259             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18260             (test "X$CXX" != "Xg++"))) ; then
18261           ac_ext=cpp
18262 ac_cpp='$CXXCPP $CPPFLAGS'
18263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18266
18267
18268
18269
18270 archive_cmds_need_lc_CXX=no
18271 allow_undefined_flag_CXX=
18272 always_export_symbols_CXX=no
18273 archive_expsym_cmds_CXX=
18274 export_dynamic_flag_spec_CXX=
18275 hardcode_direct_CXX=no
18276 hardcode_libdir_flag_spec_CXX=
18277 hardcode_libdir_flag_spec_ld_CXX=
18278 hardcode_libdir_separator_CXX=
18279 hardcode_minus_L_CXX=no
18280 hardcode_shlibpath_var_CXX=unsupported
18281 hardcode_automatic_CXX=no
18282 module_cmds_CXX=
18283 module_expsym_cmds_CXX=
18284 link_all_deplibs_CXX=unknown
18285 old_archive_cmds_CXX=$old_archive_cmds
18286 no_undefined_flag_CXX=
18287 whole_archive_flag_spec_CXX=
18288 enable_shared_with_static_runtimes_CXX=no
18289
18290 # Dependencies to place before and after the object being linked:
18291 predep_objects_CXX=
18292 postdep_objects_CXX=
18293 predeps_CXX=
18294 postdeps_CXX=
18295 compiler_lib_search_path_CXX=
18296
18297 # Source file extension for C++ test sources.
18298 ac_ext=cpp
18299
18300 # Object file extension for compiled C++ test sources.
18301 objext=o
18302 objext_CXX=$objext
18303
18304 # Code to be used in simple compile tests
18305 lt_simple_compile_test_code="int some_variable = 0;\n"
18306
18307 # Code to be used in simple link tests
18308 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18309
18310 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18311
18312 # If no C compiler was specified, use CC.
18313 LTCC=${LTCC-"$CC"}
18314
18315 # If no C compiler flags were specified, use CFLAGS.
18316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18317
18318 # Allow CC to be a program name with arguments.
18319 compiler=$CC
18320
18321
18322 # save warnings/boilerplate of simple test code
18323 ac_outfile=conftest.$ac_objext
18324 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18326 _lt_compiler_boilerplate=`cat conftest.err`
18327 $rm conftest*
18328
18329 ac_outfile=conftest.$ac_objext
18330 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18332 _lt_linker_boilerplate=`cat conftest.err`
18333 $rm conftest*
18334
18335
18336 # Allow CC to be a program name with arguments.
18337 lt_save_CC=$CC
18338 lt_save_LD=$LD
18339 lt_save_GCC=$GCC
18340 GCC=$GXX
18341 lt_save_with_gnu_ld=$with_gnu_ld
18342 lt_save_path_LD=$lt_cv_path_LD
18343 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18344   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18345 else
18346   $as_unset lt_cv_prog_gnu_ld
18347 fi
18348 if test -n "${lt_cv_path_LDCXX+set}"; then
18349   lt_cv_path_LD=$lt_cv_path_LDCXX
18350 else
18351   $as_unset lt_cv_path_LD
18352 fi
18353 test -z "${LDCXX+set}" || LD=$LDCXX
18354 CC=${CXX-"c++"}
18355 compiler=$CC
18356 compiler_CXX=$CC
18357 for cc_temp in $compiler""; do
18358   case $cc_temp in
18359     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18360     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18361     \-*) ;;
18362     *) break;;
18363   esac
18364 done
18365 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18366
18367
18368 # We don't want -fno-exception wen compiling C++ code, so set the
18369 # no_builtin_flag separately
18370 if test "$GXX" = yes; then
18371   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18372 else
18373   lt_prog_compiler_no_builtin_flag_CXX=
18374 fi
18375
18376 if test "$GXX" = yes; then
18377   # Set up default GNU C++ configuration
18378
18379
18380 # Check whether --with-gnu-ld was given.
18381 if test "${with_gnu_ld+set}" = set; then
18382   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18383 else
18384   with_gnu_ld=no
18385 fi
18386
18387 ac_prog=ld
18388 if test "$GCC" = yes; then
18389   # Check if gcc -print-prog-name=ld gives a path.
18390   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18391 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18392   case $host in
18393   *-*-mingw*)
18394     # gcc leaves a trailing carriage return which upsets mingw
18395     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18396   *)
18397     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18398   esac
18399   case $ac_prog in
18400     # Accept absolute paths.
18401     [\\/]* | ?:[\\/]*)
18402       re_direlt='/[^/][^/]*/\.\./'
18403       # Canonicalize the pathname of ld
18404       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18405       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18406         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18407       done
18408       test -z "$LD" && LD="$ac_prog"
18409       ;;
18410   "")
18411     # If it fails, then pretend we aren't using GCC.
18412     ac_prog=ld
18413     ;;
18414   *)
18415     # If it is relative, then search for the first ld in PATH.
18416     with_gnu_ld=unknown
18417     ;;
18418   esac
18419 elif test "$with_gnu_ld" = yes; then
18420   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18421 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18422 else
18423   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18424 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18425 fi
18426 if test "${lt_cv_path_LD+set}" = set; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   if test -z "$LD"; then
18430   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18431   for ac_dir in $PATH; do
18432     IFS="$lt_save_ifs"
18433     test -z "$ac_dir" && ac_dir=.
18434     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18435       lt_cv_path_LD="$ac_dir/$ac_prog"
18436       # Check to see if the program is GNU ld.  I'd rather use --version,
18437       # but apparently some variants of GNU ld only accept -v.
18438       # Break only if it was the GNU/non-GNU ld that we prefer.
18439       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18440       *GNU* | *'with BFD'*)
18441         test "$with_gnu_ld" != no && break
18442         ;;
18443       *)
18444         test "$with_gnu_ld" != yes && break
18445         ;;
18446       esac
18447     fi
18448   done
18449   IFS="$lt_save_ifs"
18450 else
18451   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18452 fi
18453 fi
18454
18455 LD="$lt_cv_path_LD"
18456 if test -n "$LD"; then
18457   { echo "$as_me:$LINENO: result: $LD" >&5
18458 echo "${ECHO_T}$LD" >&6; }
18459 else
18460   { echo "$as_me:$LINENO: result: no" >&5
18461 echo "${ECHO_T}no" >&6; }
18462 fi
18463 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18464 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18465    { (exit 1); exit 1; }; }
18466 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18467 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18468 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18469   echo $ECHO_N "(cached) $ECHO_C" >&6
18470 else
18471   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18472 case `$LD -v 2>&1 </dev/null` in
18473 *GNU* | *'with BFD'*)
18474   lt_cv_prog_gnu_ld=yes
18475   ;;
18476 *)
18477   lt_cv_prog_gnu_ld=no
18478   ;;
18479 esac
18480 fi
18481 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18482 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18483 with_gnu_ld=$lt_cv_prog_gnu_ld
18484
18485
18486
18487   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18488   # archiving commands below assume that GNU ld is being used.
18489   if test "$with_gnu_ld" = yes; then
18490     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18491     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'
18492
18493     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18494     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18495
18496     # If archive_cmds runs LD, not CC, wlarc should be empty
18497     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18498     #     investigate it a little bit more. (MM)
18499     wlarc='${wl}'
18500
18501     # ancient GNU ld didn't support --whole-archive et. al.
18502     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18503         grep 'no-whole-archive' > /dev/null; then
18504       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18505     else
18506       whole_archive_flag_spec_CXX=
18507     fi
18508   else
18509     with_gnu_ld=no
18510     wlarc=
18511
18512     # A generic and very simple default shared library creation
18513     # command for GNU C++ for the case where it uses the native
18514     # linker, instead of GNU ld.  If possible, this setting should
18515     # overridden to take advantage of the native linker features on
18516     # the platform it is being used on.
18517     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18518   fi
18519
18520   # Commands to make compiler produce verbose output that lists
18521   # what "hidden" libraries, object files and flags are used when
18522   # linking a shared library.
18523   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18524
18525 else
18526   GXX=no
18527   with_gnu_ld=no
18528   wlarc=
18529 fi
18530
18531 # PORTME: fill in a description of your system's C++ link characteristics
18532 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18534 ld_shlibs_CXX=yes
18535 case $host_os in
18536   aix3*)
18537     # FIXME: insert proper C++ library support
18538     ld_shlibs_CXX=no
18539     ;;
18540   aix4* | aix5*)
18541     if test "$host_cpu" = ia64; then
18542       # On IA64, the linker does run time linking by default, so we don't
18543       # have to do anything special.
18544       aix_use_runtimelinking=no
18545       exp_sym_flag='-Bexport'
18546       no_entry_flag=""
18547     else
18548       aix_use_runtimelinking=no
18549
18550       # Test if we are trying to use run time linking or normal
18551       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18552       # need to do runtime linking.
18553       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18554         for ld_flag in $LDFLAGS; do
18555           case $ld_flag in
18556           *-brtl*)
18557             aix_use_runtimelinking=yes
18558             break
18559             ;;
18560           esac
18561         done
18562         ;;
18563       esac
18564
18565       exp_sym_flag='-bexport'
18566       no_entry_flag='-bnoentry'
18567     fi
18568
18569     # When large executables or shared objects are built, AIX ld can
18570     # have problems creating the table of contents.  If linking a library
18571     # or program results in "error TOC overflow" add -mminimal-toc to
18572     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18573     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18574
18575     archive_cmds_CXX=''
18576     hardcode_direct_CXX=yes
18577     hardcode_libdir_separator_CXX=':'
18578     link_all_deplibs_CXX=yes
18579
18580     if test "$GXX" = yes; then
18581       case $host_os in aix4.[012]|aix4.[012].*)
18582       # We only want to do this on AIX 4.2 and lower, the check
18583       # below for broken collect2 doesn't work under 4.3+
18584         collect2name=`${CC} -print-prog-name=collect2`
18585         if test -f "$collect2name" && \
18586            strings "$collect2name" | grep resolve_lib_name >/dev/null
18587         then
18588           # We have reworked collect2
18589           hardcode_direct_CXX=yes
18590         else
18591           # We have old collect2
18592           hardcode_direct_CXX=unsupported
18593           # It fails to find uninstalled libraries when the uninstalled
18594           # path is not listed in the libpath.  Setting hardcode_minus_L
18595           # to unsupported forces relinking
18596           hardcode_minus_L_CXX=yes
18597           hardcode_libdir_flag_spec_CXX='-L$libdir'
18598           hardcode_libdir_separator_CXX=
18599         fi
18600         ;;
18601       esac
18602       shared_flag='-shared'
18603       if test "$aix_use_runtimelinking" = yes; then
18604         shared_flag="$shared_flag "'${wl}-G'
18605       fi
18606     else
18607       # not using gcc
18608       if test "$host_cpu" = ia64; then
18609         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18610         # chokes on -Wl,-G. The following line is correct:
18611         shared_flag='-G'
18612       else
18613         if test "$aix_use_runtimelinking" = yes; then
18614           shared_flag='${wl}-G'
18615         else
18616           shared_flag='${wl}-bM:SRE'
18617         fi
18618       fi
18619     fi
18620
18621     # It seems that -bexpall does not export symbols beginning with
18622     # underscore (_), so it is better to generate a list of symbols to export.
18623     always_export_symbols_CXX=yes
18624     if test "$aix_use_runtimelinking" = yes; then
18625       # Warning - without using the other runtime loading flags (-brtl),
18626       # -berok will link without error, but may produce a broken library.
18627       allow_undefined_flag_CXX='-berok'
18628       # Determine the default libpath from the value encoded in an empty executable.
18629       cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635
18636 int
18637 main ()
18638 {
18639
18640   ;
18641   return 0;
18642 }
18643 _ACEOF
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648   *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651   (eval "$ac_link") 2>conftest.er1
18652   ac_status=$?
18653   grep -v '^ *+' conftest.er1 >conftest.err
18654   rm -f conftest.er1
18655   cat conftest.err >&5
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } &&
18658          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18659   { (case "(($ac_try" in
18660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661   *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664   (eval "$ac_try") 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; } &&
18668          { ac_try='test -s conftest$ac_exeext'
18669   { (case "(($ac_try" in
18670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671   *) ac_try_echo=$ac_try;;
18672 esac
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674   (eval "$ac_try") 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); }; }; then
18678
18679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18680 }'`
18681 # Check for a 64-bit object if we didn't find anything.
18682 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; }
18683 }'`; fi
18684 else
18685   echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688
18689 fi
18690
18691 rm -f core conftest.err conftest.$ac_objext \
18692       conftest$ac_exeext conftest.$ac_ext
18693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18694
18695       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18696
18697       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"
18698      else
18699       if test "$host_cpu" = ia64; then
18700         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18701         allow_undefined_flag_CXX="-z nodefs"
18702         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"
18703       else
18704         # Determine the default libpath from the value encoded in an empty executable.
18705         cat >conftest.$ac_ext <<_ACEOF
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711
18712 int
18713 main ()
18714 {
18715
18716   ;
18717   return 0;
18718 }
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724   *) ac_try_echo=$ac_try;;
18725 esac
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727   (eval "$ac_link") 2>conftest.er1
18728   ac_status=$?
18729   grep -v '^ *+' conftest.er1 >conftest.err
18730   rm -f conftest.er1
18731   cat conftest.err >&5
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18735   { (case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_try") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; } &&
18744          { ac_try='test -s conftest$ac_exeext'
18745   { (case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_try") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; }; then
18754
18755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18756 }'`
18757 # Check for a 64-bit object if we didn't find anything.
18758 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; }
18759 }'`; fi
18760 else
18761   echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764
18765 fi
18766
18767 rm -f core conftest.err conftest.$ac_objext \
18768       conftest$ac_exeext conftest.$ac_ext
18769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18770
18771         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18772         # Warning - without using the other run time loading flags,
18773         # -berok will link without error, but may produce a broken library.
18774         no_undefined_flag_CXX=' ${wl}-bernotok'
18775         allow_undefined_flag_CXX=' ${wl}-berok'
18776         # Exported symbols can be pulled into shared objects from archives
18777         whole_archive_flag_spec_CXX='$convenience'
18778         archive_cmds_need_lc_CXX=yes
18779         # This is similar to how AIX traditionally builds its shared libraries.
18780         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'
18781       fi
18782     fi
18783     ;;
18784
18785   beos*)
18786     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18787       allow_undefined_flag_CXX=unsupported
18788       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18789       # support --undefined.  This deserves some investigation.  FIXME
18790       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18791     else
18792       ld_shlibs_CXX=no
18793     fi
18794     ;;
18795
18796   chorus*)
18797     case $cc_basename in
18798       *)
18799         # FIXME: insert proper C++ library support
18800         ld_shlibs_CXX=no
18801         ;;
18802     esac
18803     ;;
18804
18805   cygwin* | mingw* | pw32*)
18806     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18807     # as there is no search path for DLLs.
18808     hardcode_libdir_flag_spec_CXX='-L$libdir'
18809     allow_undefined_flag_CXX=unsupported
18810     always_export_symbols_CXX=no
18811     enable_shared_with_static_runtimes_CXX=yes
18812
18813     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18814       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'
18815       # If the export-symbols file already is a .def file (1st line
18816       # is EXPORTS), use it as is; otherwise, prepend...
18817       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18818         cp $export_symbols $output_objdir/$soname.def;
18819       else
18820         echo EXPORTS > $output_objdir/$soname.def;
18821         cat $export_symbols >> $output_objdir/$soname.def;
18822       fi~
18823       $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'
18824     else
18825       ld_shlibs_CXX=no
18826     fi
18827   ;;
18828       darwin* | rhapsody*)
18829         case $host_os in
18830         rhapsody* | darwin1.[012])
18831          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18832          ;;
18833        *) # Darwin 1.3 on
18834          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18835            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18836          else
18837            case ${MACOSX_DEPLOYMENT_TARGET} in
18838              10.[012])
18839                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18840                ;;
18841              10.*)
18842                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18843                ;;
18844            esac
18845          fi
18846          ;;
18847         esac
18848       archive_cmds_need_lc_CXX=no
18849       hardcode_direct_CXX=no
18850       hardcode_automatic_CXX=yes
18851       hardcode_shlibpath_var_CXX=unsupported
18852       whole_archive_flag_spec_CXX=''
18853       link_all_deplibs_CXX=yes
18854
18855     if test "$GXX" = yes ; then
18856       lt_int_apple_cc_single_mod=no
18857       output_verbose_link_cmd='echo'
18858       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18859        lt_int_apple_cc_single_mod=yes
18860       fi
18861       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18862        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18863       else
18864           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'
18865         fi
18866         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18867         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18868           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18869             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}'
18870           else
18871             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}'
18872           fi
18873             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}'
18874       else
18875       case $cc_basename in
18876         xlc*)
18877          output_verbose_link_cmd='echo'
18878           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'
18879           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18880           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18881           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}'
18882           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}'
18883           ;;
18884        *)
18885          ld_shlibs_CXX=no
18886           ;;
18887       esac
18888       fi
18889         ;;
18890
18891   dgux*)
18892     case $cc_basename in
18893       ec++*)
18894         # FIXME: insert proper C++ library support
18895         ld_shlibs_CXX=no
18896         ;;
18897       ghcx*)
18898         # Green Hills C++ Compiler
18899         # FIXME: insert proper C++ library support
18900         ld_shlibs_CXX=no
18901         ;;
18902       *)
18903         # FIXME: insert proper C++ library support
18904         ld_shlibs_CXX=no
18905         ;;
18906     esac
18907     ;;
18908   freebsd[12]*)
18909     # C++ shared libraries reported to be fairly broken before switch to ELF
18910     ld_shlibs_CXX=no
18911     ;;
18912   freebsd-elf*)
18913     archive_cmds_need_lc_CXX=no
18914     ;;
18915   freebsd* | kfreebsd*-gnu | dragonfly*)
18916     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18917     # conventions
18918     ld_shlibs_CXX=yes
18919     ;;
18920   gnu*)
18921     ;;
18922   hpux9*)
18923     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18924     hardcode_libdir_separator_CXX=:
18925     export_dynamic_flag_spec_CXX='${wl}-E'
18926     hardcode_direct_CXX=yes
18927     hardcode_minus_L_CXX=yes # Not in the search PATH,
18928                                 # but as the default
18929                                 # location of the library.
18930
18931     case $cc_basename in
18932     CC*)
18933       # FIXME: insert proper C++ library support
18934       ld_shlibs_CXX=no
18935       ;;
18936     aCC*)
18937       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'
18938       # Commands to make compiler produce verbose output that lists
18939       # what "hidden" libraries, object files and flags are used when
18940       # linking a shared library.
18941       #
18942       # There doesn't appear to be a way to prevent this compiler from
18943       # explicitly linking system object files so we need to strip them
18944       # from the output so that they don't get included in the library
18945       # dependencies.
18946       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'
18947       ;;
18948     *)
18949       if test "$GXX" = yes; then
18950         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'
18951       else
18952         # FIXME: insert proper C++ library support
18953         ld_shlibs_CXX=no
18954       fi
18955       ;;
18956     esac
18957     ;;
18958   hpux10*|hpux11*)
18959     if test $with_gnu_ld = no; then
18960       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18961       hardcode_libdir_separator_CXX=:
18962
18963       case $host_cpu in
18964       hppa*64*|ia64*)
18965         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18966         ;;
18967       *)
18968         export_dynamic_flag_spec_CXX='${wl}-E'
18969         ;;
18970       esac
18971     fi
18972     case $host_cpu in
18973     hppa*64*|ia64*)
18974       hardcode_direct_CXX=no
18975       hardcode_shlibpath_var_CXX=no
18976       ;;
18977     *)
18978       hardcode_direct_CXX=yes
18979       hardcode_minus_L_CXX=yes # Not in the search PATH,
18980                                               # but as the default
18981                                               # location of the library.
18982       ;;
18983     esac
18984
18985     case $cc_basename in
18986       CC*)
18987         # FIXME: insert proper C++ library support
18988         ld_shlibs_CXX=no
18989         ;;
18990       aCC*)
18991         case $host_cpu in
18992         hppa*64*)
18993           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18994           ;;
18995         ia64*)
18996           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18997           ;;
18998         *)
18999           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19000           ;;
19001         esac
19002         # Commands to make compiler produce verbose output that lists
19003         # what "hidden" libraries, object files and flags are used when
19004         # linking a shared library.
19005         #
19006         # There doesn't appear to be a way to prevent this compiler from
19007         # explicitly linking system object files so we need to strip them
19008         # from the output so that they don't get included in the library
19009         # dependencies.
19010         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'
19011         ;;
19012       *)
19013         if test "$GXX" = yes; then
19014           if test $with_gnu_ld = no; then
19015             case $host_cpu in
19016             hppa*64*)
19017               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19018               ;;
19019             ia64*)
19020               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19021               ;;
19022             *)
19023               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'
19024               ;;
19025             esac
19026           fi
19027         else
19028           # FIXME: insert proper C++ library support
19029           ld_shlibs_CXX=no
19030         fi
19031         ;;
19032     esac
19033     ;;
19034   interix3*)
19035     hardcode_direct_CXX=no
19036     hardcode_shlibpath_var_CXX=no
19037     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19038     export_dynamic_flag_spec_CXX='${wl}-E'
19039     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19040     # Instead, shared libraries are loaded at an image base (0x10000000 by
19041     # default) and relocated if they conflict, which is a slow very memory
19042     # consuming and fragmenting process.  To avoid this, we pick a random,
19043     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19044     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19045     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'
19046     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'
19047     ;;
19048   irix5* | irix6*)
19049     case $cc_basename in
19050       CC*)
19051         # SGI C++
19052         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'
19053
19054         # Archives containing C++ object files must be created using
19055         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19056         # necessary to make sure instantiated templates are included
19057         # in the archive.
19058         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19059         ;;
19060       *)
19061         if test "$GXX" = yes; then
19062           if test "$with_gnu_ld" = no; then
19063             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'
19064           else
19065             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'
19066           fi
19067         fi
19068         link_all_deplibs_CXX=yes
19069         ;;
19070     esac
19071     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19072     hardcode_libdir_separator_CXX=:
19073     ;;
19074   linux*)
19075     case $cc_basename in
19076       KCC*)
19077         # Kuck and Associates, Inc. (KAI) C++ Compiler
19078
19079         # KCC will only create a shared library if the output file
19080         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19081         # to its proper name (with version) after linking.
19082         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'
19083         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'
19084         # Commands to make compiler produce verbose output that lists
19085         # what "hidden" libraries, object files and flags are used when
19086         # linking a shared library.
19087         #
19088         # There doesn't appear to be a way to prevent this compiler from
19089         # explicitly linking system object files so we need to strip them
19090         # from the output so that they don't get included in the library
19091         # dependencies.
19092         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'
19093
19094         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19095         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19096
19097         # Archives containing C++ object files must be created using
19098         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19099         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19100         ;;
19101       icpc*)
19102         # Intel C++
19103         with_gnu_ld=yes
19104         # version 8.0 and above of icpc choke on multiply defined symbols
19105         # if we add $predep_objects and $postdep_objects, however 7.1 and
19106         # earlier do not add the objects themselves.
19107         case `$CC -V 2>&1` in
19108         *"Version 7."*)
19109           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110           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'
19111           ;;
19112         *)  # Version 8.0 or newer
19113           tmp_idyn=
19114           case $host_cpu in
19115             ia64*) tmp_idyn=' -i_dynamic';;
19116           esac
19117           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19118           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'
19119           ;;
19120         esac
19121         archive_cmds_need_lc_CXX=no
19122         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19123         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19124         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19125         ;;
19126       pgCC*)
19127         # Portland Group C++ compiler
19128         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19129         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'
19130
19131         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19132         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19133         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'
19134         ;;
19135       cxx*)
19136         # Compaq C++
19137         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138         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'
19139
19140         runpath_var=LD_RUN_PATH
19141         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19142         hardcode_libdir_separator_CXX=:
19143
19144         # Commands to make compiler produce verbose output that lists
19145         # what "hidden" libraries, object files and flags are used when
19146         # linking a shared library.
19147         #
19148         # There doesn't appear to be a way to prevent this compiler from
19149         # explicitly linking system object files so we need to strip them
19150         # from the output so that they don't get included in the library
19151         # dependencies.
19152         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'
19153         ;;
19154     esac
19155     ;;
19156   lynxos*)
19157     # FIXME: insert proper C++ library support
19158     ld_shlibs_CXX=no
19159     ;;
19160   m88k*)
19161     # FIXME: insert proper C++ library support
19162     ld_shlibs_CXX=no
19163     ;;
19164   mvs*)
19165     case $cc_basename in
19166       cxx*)
19167         # FIXME: insert proper C++ library support
19168         ld_shlibs_CXX=no
19169         ;;
19170       *)
19171         # FIXME: insert proper C++ library support
19172         ld_shlibs_CXX=no
19173         ;;
19174     esac
19175     ;;
19176   netbsd*)
19177     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19178       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19179       wlarc=
19180       hardcode_libdir_flag_spec_CXX='-R$libdir'
19181       hardcode_direct_CXX=yes
19182       hardcode_shlibpath_var_CXX=no
19183     fi
19184     # Workaround some broken pre-1.5 toolchains
19185     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19186     ;;
19187   openbsd2*)
19188     # C++ shared libraries are fairly broken
19189     ld_shlibs_CXX=no
19190     ;;
19191   openbsd*)
19192     hardcode_direct_CXX=yes
19193     hardcode_shlibpath_var_CXX=no
19194     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19195     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19196     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19197       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19198       export_dynamic_flag_spec_CXX='${wl}-E'
19199       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19200     fi
19201     output_verbose_link_cmd='echo'
19202     ;;
19203   osf3*)
19204     case $cc_basename in
19205       KCC*)
19206         # Kuck and Associates, Inc. (KAI) C++ Compiler
19207
19208         # KCC will only create a shared library if the output file
19209         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19210         # to its proper name (with version) after linking.
19211         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'
19212
19213         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19214         hardcode_libdir_separator_CXX=:
19215
19216         # Archives containing C++ object files must be created using
19217         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19218         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19219
19220         ;;
19221       RCC*)
19222         # Rational C++ 2.4.1
19223         # FIXME: insert proper C++ library support
19224         ld_shlibs_CXX=no
19225         ;;
19226       cxx*)
19227         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19228         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'
19229
19230         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19231         hardcode_libdir_separator_CXX=:
19232
19233         # Commands to make compiler produce verbose output that lists
19234         # what "hidden" libraries, object files and flags are used when
19235         # linking a shared library.
19236         #
19237         # There doesn't appear to be a way to prevent this compiler from
19238         # explicitly linking system object files so we need to strip them
19239         # from the output so that they don't get included in the library
19240         # dependencies.
19241         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'
19242         ;;
19243       *)
19244         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19245           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19246           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'
19247
19248           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19249           hardcode_libdir_separator_CXX=:
19250
19251           # Commands to make compiler produce verbose output that lists
19252           # what "hidden" libraries, object files and flags are used when
19253           # linking a shared library.
19254           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19255
19256         else
19257           # FIXME: insert proper C++ library support
19258           ld_shlibs_CXX=no
19259         fi
19260         ;;
19261     esac
19262     ;;
19263   osf4* | osf5*)
19264     case $cc_basename in
19265       KCC*)
19266         # Kuck and Associates, Inc. (KAI) C++ Compiler
19267
19268         # KCC will only create a shared library if the output file
19269         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19270         # to its proper name (with version) after linking.
19271         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'
19272
19273         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19274         hardcode_libdir_separator_CXX=:
19275
19276         # Archives containing C++ object files must be created using
19277         # the KAI C++ compiler.
19278         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19279         ;;
19280       RCC*)
19281         # Rational C++ 2.4.1
19282         # FIXME: insert proper C++ library support
19283         ld_shlibs_CXX=no
19284         ;;
19285       cxx*)
19286         allow_undefined_flag_CXX=' -expect_unresolved \*'
19287         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'
19288         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19289           echo "-hidden">> $lib.exp~
19290           $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~
19291           $rm $lib.exp'
19292
19293         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19294         hardcode_libdir_separator_CXX=:
19295
19296         # Commands to make compiler produce verbose output that lists
19297         # what "hidden" libraries, object files and flags are used when
19298         # linking a shared library.
19299         #
19300         # There doesn't appear to be a way to prevent this compiler from
19301         # explicitly linking system object files so we need to strip them
19302         # from the output so that they don't get included in the library
19303         # dependencies.
19304         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'
19305         ;;
19306       *)
19307         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19308           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19309          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'
19310
19311           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312           hardcode_libdir_separator_CXX=:
19313
19314           # Commands to make compiler produce verbose output that lists
19315           # what "hidden" libraries, object files and flags are used when
19316           # linking a shared library.
19317           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19318
19319         else
19320           # FIXME: insert proper C++ library support
19321           ld_shlibs_CXX=no
19322         fi
19323         ;;
19324     esac
19325     ;;
19326   psos*)
19327     # FIXME: insert proper C++ library support
19328     ld_shlibs_CXX=no
19329     ;;
19330   sunos4*)
19331     case $cc_basename in
19332       CC*)
19333         # Sun C++ 4.x
19334         # FIXME: insert proper C++ library support
19335         ld_shlibs_CXX=no
19336         ;;
19337       lcc*)
19338         # Lucid
19339         # FIXME: insert proper C++ library support
19340         ld_shlibs_CXX=no
19341         ;;
19342       *)
19343         # FIXME: insert proper C++ library support
19344         ld_shlibs_CXX=no
19345         ;;
19346     esac
19347     ;;
19348   solaris*)
19349     case $cc_basename in
19350       CC*)
19351         # Sun C++ 4.2, 5.x and Centerline C++
19352         archive_cmds_need_lc_CXX=yes
19353         no_undefined_flag_CXX=' -zdefs'
19354         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19355         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19356         $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'
19357
19358         hardcode_libdir_flag_spec_CXX='-R$libdir'
19359         hardcode_shlibpath_var_CXX=no
19360         case $host_os in
19361           solaris2.[0-5] | solaris2.[0-5].*) ;;
19362           *)
19363             # The C++ compiler is used as linker so we must use $wl
19364             # flag to pass the commands to the underlying system
19365             # linker. We must also pass each convience library through
19366             # to the system linker between allextract/defaultextract.
19367             # The C++ compiler will combine linker options so we
19368             # cannot just pass the convience library names through
19369             # without $wl.
19370             # Supported since Solaris 2.6 (maybe 2.5.1?)
19371             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'
19372             ;;
19373         esac
19374         link_all_deplibs_CXX=yes
19375
19376         output_verbose_link_cmd='echo'
19377
19378         # Archives containing C++ object files must be created using
19379         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19380         # necessary to make sure instantiated templates are included
19381         # in the archive.
19382         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19383         ;;
19384       gcx*)
19385         # Green Hills C++ Compiler
19386         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19387
19388         # The C++ compiler must be used to create the archive.
19389         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19390         ;;
19391       *)
19392         # GNU C++ compiler with Solaris linker
19393         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19394           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19395           if $CC --version | grep -v '^2\.7' > /dev/null; then
19396             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19397             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19398                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19399
19400             # Commands to make compiler produce verbose output that lists
19401             # what "hidden" libraries, object files and flags are used when
19402             # linking a shared library.
19403             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19404           else
19405             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19406             # platform.
19407             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19409                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19410
19411             # Commands to make compiler produce verbose output that lists
19412             # what "hidden" libraries, object files and flags are used when
19413             # linking a shared library.
19414             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19415           fi
19416
19417           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19418         fi
19419         ;;
19420     esac
19421     ;;
19422   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19423     no_undefined_flag_CXX='${wl}-z,text'
19424     archive_cmds_need_lc_CXX=no
19425     hardcode_shlibpath_var_CXX=no
19426     runpath_var='LD_RUN_PATH'
19427
19428     case $cc_basename in
19429       CC*)
19430         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19432         ;;
19433       *)
19434         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19435         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19436         ;;
19437     esac
19438     ;;
19439   sysv5* | sco3.2v5* | sco5v6*)
19440     # Note: We can NOT use -z defs as we might desire, because we do not
19441     # link with -lc, and that would cause any symbols used from libc to
19442     # always be unresolved, which means just about no library would
19443     # ever link correctly.  If we're not using GNU ld we use -z text
19444     # though, which does catch some bad symbols but isn't as heavy-handed
19445     # as -z defs.
19446     # For security reasons, it is highly recommended that you always
19447     # use absolute paths for naming shared libraries, and exclude the
19448     # DT_RUNPATH tag from executables and libraries.  But doing so
19449     # requires that you compile everything twice, which is a pain.
19450     # So that behaviour is only enabled if SCOABSPATH is set to a
19451     # non-empty value in the environment.  Most likely only useful for
19452     # creating official distributions of packages.
19453     # This is a hack until libtool officially supports absolute path
19454     # names for shared libraries.
19455     no_undefined_flag_CXX='${wl}-z,text'
19456     allow_undefined_flag_CXX='${wl}-z,nodefs'
19457     archive_cmds_need_lc_CXX=no
19458     hardcode_shlibpath_var_CXX=no
19459     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19460     hardcode_libdir_separator_CXX=':'
19461     link_all_deplibs_CXX=yes
19462     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19463     runpath_var='LD_RUN_PATH'
19464
19465     case $cc_basename in
19466       CC*)
19467         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19469         ;;
19470       *)
19471         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19472         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19473         ;;
19474     esac
19475     ;;
19476   tandem*)
19477     case $cc_basename in
19478       NCC*)
19479         # NonStop-UX NCC 3.20
19480         # FIXME: insert proper C++ library support
19481         ld_shlibs_CXX=no
19482         ;;
19483       *)
19484         # FIXME: insert proper C++ library support
19485         ld_shlibs_CXX=no
19486         ;;
19487     esac
19488     ;;
19489   vxworks*)
19490     # FIXME: insert proper C++ library support
19491     ld_shlibs_CXX=no
19492     ;;
19493   *)
19494     # FIXME: insert proper C++ library support
19495     ld_shlibs_CXX=no
19496     ;;
19497 esac
19498 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19499 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19500 test "$ld_shlibs_CXX" = no && can_build_shared=no
19501
19502 GCC_CXX="$GXX"
19503 LD_CXX="$LD"
19504
19505
19506 cat > conftest.$ac_ext <<EOF
19507 class Foo
19508 {
19509 public:
19510   Foo (void) { a = 0; }
19511 private:
19512   int a;
19513 };
19514 EOF
19515
19516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19517   (eval $ac_compile) 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; then
19521   # Parse the compiler output and extract the necessary
19522   # objects, libraries and library flags.
19523
19524   # Sentinel used to keep track of whether or not we are before
19525   # the conftest object file.
19526   pre_test_object_deps_done=no
19527
19528   # The `*' in the case matches for architectures that use `case' in
19529   # $output_verbose_cmd can trigger glob expansion during the loop
19530   # eval without this substitution.
19531   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19532
19533   for p in `eval $output_verbose_link_cmd`; do
19534     case $p in
19535
19536     -L* | -R* | -l*)
19537        # Some compilers place space between "-{L,R}" and the path.
19538        # Remove the space.
19539        if test $p = "-L" \
19540           || test $p = "-R"; then
19541          prev=$p
19542          continue
19543        else
19544          prev=
19545        fi
19546
19547        if test "$pre_test_object_deps_done" = no; then
19548          case $p in
19549          -L* | -R*)
19550            # Internal compiler library paths should come after those
19551            # provided the user.  The postdeps already come after the
19552            # user supplied libs so there is no need to process them.
19553            if test -z "$compiler_lib_search_path_CXX"; then
19554              compiler_lib_search_path_CXX="${prev}${p}"
19555            else
19556              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19557            fi
19558            ;;
19559          # The "-l" case would never come before the object being
19560          # linked, so don't bother handling this case.
19561          esac
19562        else
19563          if test -z "$postdeps_CXX"; then
19564            postdeps_CXX="${prev}${p}"
19565          else
19566            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19567          fi
19568        fi
19569        ;;
19570
19571     *.$objext)
19572        # This assumes that the test object file only shows up
19573        # once in the compiler output.
19574        if test "$p" = "conftest.$objext"; then
19575          pre_test_object_deps_done=yes
19576          continue
19577        fi
19578
19579        if test "$pre_test_object_deps_done" = no; then
19580          if test -z "$predep_objects_CXX"; then
19581            predep_objects_CXX="$p"
19582          else
19583            predep_objects_CXX="$predep_objects_CXX $p"
19584          fi
19585        else
19586          if test -z "$postdep_objects_CXX"; then
19587            postdep_objects_CXX="$p"
19588          else
19589            postdep_objects_CXX="$postdep_objects_CXX $p"
19590          fi
19591        fi
19592        ;;
19593
19594     *) ;; # Ignore the rest.
19595
19596     esac
19597   done
19598
19599   # Clean up.
19600   rm -f a.out a.exe
19601 else
19602   echo "libtool.m4: error: problem compiling CXX test program"
19603 fi
19604
19605 $rm -f confest.$objext
19606
19607 # PORTME: override above test on systems where it is broken
19608 case $host_os in
19609 interix3*)
19610   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19611   # hack all around it, let's just trust "g++" to DTRT.
19612   predep_objects_CXX=
19613   postdep_objects_CXX=
19614   postdeps_CXX=
19615   ;;
19616
19617 solaris*)
19618   case $cc_basename in
19619   CC*)
19620     # Adding this requires a known-good setup of shared libraries for
19621     # Sun compiler versions before 5.6, else PIC objects from an old
19622     # archive will be linked into the output, leading to subtle bugs.
19623     postdeps_CXX='-lCstd -lCrun'
19624     ;;
19625   esac
19626   ;;
19627 esac
19628
19629
19630 case " $postdeps_CXX " in
19631 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19632 esac
19633
19634 lt_prog_compiler_wl_CXX=
19635 lt_prog_compiler_pic_CXX=
19636 lt_prog_compiler_static_CXX=
19637
19638 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19639 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19640
19641   # C++ specific cases for pic, static, wl, etc.
19642   if test "$GXX" = yes; then
19643     lt_prog_compiler_wl_CXX='-Wl,'
19644     lt_prog_compiler_static_CXX='-static'
19645
19646     case $host_os in
19647     aix*)
19648       # All AIX code is PIC.
19649       if test "$host_cpu" = ia64; then
19650         # AIX 5 now supports IA64 processor
19651         lt_prog_compiler_static_CXX='-Bstatic'
19652       fi
19653       ;;
19654     amigaos*)
19655       # FIXME: we need at least 68020 code to build shared libraries, but
19656       # adding the `-m68020' flag to GCC prevents building anything better,
19657       # like `-m68040'.
19658       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19659       ;;
19660     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19661       # PIC is the default for these OSes.
19662       ;;
19663     mingw* | os2* | pw32*)
19664       # This hack is so that the source file can tell whether it is being
19665       # built for inclusion in a dll (and should export symbols for example).
19666       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19667       ;;
19668     darwin* | rhapsody*)
19669       # PIC is the default on this platform
19670       # Common symbols not allowed in MH_DYLIB files
19671       lt_prog_compiler_pic_CXX='-fno-common'
19672       ;;
19673     *djgpp*)
19674       # DJGPP does not support shared libraries at all
19675       lt_prog_compiler_pic_CXX=
19676       ;;
19677     interix3*)
19678       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19679       # Instead, we relocate shared libraries at runtime.
19680       ;;
19681     sysv4*MP*)
19682       if test -d /usr/nec; then
19683         lt_prog_compiler_pic_CXX=-Kconform_pic
19684       fi
19685       ;;
19686     hpux*)
19687       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19688       # not for PA HP-UX.
19689       case $host_cpu in
19690       hppa*64*|ia64*)
19691         ;;
19692       *)
19693         lt_prog_compiler_pic_CXX='-fPIC'
19694         ;;
19695       esac
19696       ;;
19697     *)
19698       lt_prog_compiler_pic_CXX='-fPIC'
19699       ;;
19700     esac
19701   else
19702     case $host_os in
19703       aix4* | aix5*)
19704         # All AIX code is PIC.
19705         if test "$host_cpu" = ia64; then
19706           # AIX 5 now supports IA64 processor
19707           lt_prog_compiler_static_CXX='-Bstatic'
19708         else
19709           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19710         fi
19711         ;;
19712       chorus*)
19713         case $cc_basename in
19714         cxch68*)
19715           # Green Hills C++ Compiler
19716           # _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"
19717           ;;
19718         esac
19719         ;;
19720        darwin*)
19721          # PIC is the default on this platform
19722          # Common symbols not allowed in MH_DYLIB files
19723          case $cc_basename in
19724            xlc*)
19725            lt_prog_compiler_pic_CXX='-qnocommon'
19726            lt_prog_compiler_wl_CXX='-Wl,'
19727            ;;
19728          esac
19729        ;;
19730       dgux*)
19731         case $cc_basename in
19732           ec++*)
19733             lt_prog_compiler_pic_CXX='-KPIC'
19734             ;;
19735           ghcx*)
19736             # Green Hills C++ Compiler
19737             lt_prog_compiler_pic_CXX='-pic'
19738             ;;
19739           *)
19740             ;;
19741         esac
19742         ;;
19743       freebsd* | kfreebsd*-gnu | dragonfly*)
19744         # FreeBSD uses GNU C++
19745         ;;
19746       hpux9* | hpux10* | hpux11*)
19747         case $cc_basename in
19748           CC*)
19749             lt_prog_compiler_wl_CXX='-Wl,'
19750             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19751             if test "$host_cpu" != ia64; then
19752               lt_prog_compiler_pic_CXX='+Z'
19753             fi
19754             ;;
19755           aCC*)
19756             lt_prog_compiler_wl_CXX='-Wl,'
19757             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19758             case $host_cpu in
19759             hppa*64*|ia64*)
19760               # +Z the default
19761               ;;
19762             *)
19763               lt_prog_compiler_pic_CXX='+Z'
19764               ;;
19765             esac
19766             ;;
19767           *)
19768             ;;
19769         esac
19770         ;;
19771       interix*)
19772         # This is c89, which is MS Visual C++ (no shared libs)
19773         # Anyone wants to do a port?
19774         ;;
19775       irix5* | irix6* | nonstopux*)
19776         case $cc_basename in
19777           CC*)
19778             lt_prog_compiler_wl_CXX='-Wl,'
19779             lt_prog_compiler_static_CXX='-non_shared'
19780             # CC pic flag -KPIC is the default.
19781             ;;
19782           *)
19783             ;;
19784         esac
19785         ;;
19786       linux*)
19787         case $cc_basename in
19788           KCC*)
19789             # KAI C++ Compiler
19790             lt_prog_compiler_wl_CXX='--backend -Wl,'
19791             lt_prog_compiler_pic_CXX='-fPIC'
19792             ;;
19793           icpc* | ecpc*)
19794             # Intel C++
19795             lt_prog_compiler_wl_CXX='-Wl,'
19796             lt_prog_compiler_pic_CXX='-KPIC'
19797             lt_prog_compiler_static_CXX='-static'
19798             ;;
19799           pgCC*)
19800             # Portland Group C++ compiler.
19801             lt_prog_compiler_wl_CXX='-Wl,'
19802             lt_prog_compiler_pic_CXX='-fpic'
19803             lt_prog_compiler_static_CXX='-Bstatic'
19804             ;;
19805           cxx*)
19806             # Compaq C++
19807             # Make sure the PIC flag is empty.  It appears that all Alpha
19808             # Linux and Compaq Tru64 Unix objects are PIC.
19809             lt_prog_compiler_pic_CXX=
19810             lt_prog_compiler_static_CXX='-non_shared'
19811             ;;
19812           *)
19813             ;;
19814         esac
19815         ;;
19816       lynxos*)
19817         ;;
19818       m88k*)
19819         ;;
19820       mvs*)
19821         case $cc_basename in
19822           cxx*)
19823             lt_prog_compiler_pic_CXX='-W c,exportall'
19824             ;;
19825           *)
19826             ;;
19827         esac
19828         ;;
19829       netbsd*)
19830         ;;
19831       osf3* | osf4* | osf5*)
19832         case $cc_basename in
19833           KCC*)
19834             lt_prog_compiler_wl_CXX='--backend -Wl,'
19835             ;;
19836           RCC*)
19837             # Rational C++ 2.4.1
19838             lt_prog_compiler_pic_CXX='-pic'
19839             ;;
19840           cxx*)
19841             # Digital/Compaq C++
19842             lt_prog_compiler_wl_CXX='-Wl,'
19843             # Make sure the PIC flag is empty.  It appears that all Alpha
19844             # Linux and Compaq Tru64 Unix objects are PIC.
19845             lt_prog_compiler_pic_CXX=
19846             lt_prog_compiler_static_CXX='-non_shared'
19847             ;;
19848           *)
19849             ;;
19850         esac
19851         ;;
19852       psos*)
19853         ;;
19854       solaris*)
19855         case $cc_basename in
19856           CC*)
19857             # Sun C++ 4.2, 5.x and Centerline C++
19858             lt_prog_compiler_pic_CXX='-KPIC'
19859             lt_prog_compiler_static_CXX='-Bstatic'
19860             lt_prog_compiler_wl_CXX='-Qoption ld '
19861             ;;
19862           gcx*)
19863             # Green Hills C++ Compiler
19864             lt_prog_compiler_pic_CXX='-PIC'
19865             ;;
19866           *)
19867             ;;
19868         esac
19869         ;;
19870       sunos4*)
19871         case $cc_basename in
19872           CC*)
19873             # Sun C++ 4.x
19874             lt_prog_compiler_pic_CXX='-pic'
19875             lt_prog_compiler_static_CXX='-Bstatic'
19876             ;;
19877           lcc*)
19878             # Lucid
19879             lt_prog_compiler_pic_CXX='-pic'
19880             ;;
19881           *)
19882             ;;
19883         esac
19884         ;;
19885       tandem*)
19886         case $cc_basename in
19887           NCC*)
19888             # NonStop-UX NCC 3.20
19889             lt_prog_compiler_pic_CXX='-KPIC'
19890             ;;
19891           *)
19892             ;;
19893         esac
19894         ;;
19895       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19896         case $cc_basename in
19897           CC*)
19898             lt_prog_compiler_wl_CXX='-Wl,'
19899             lt_prog_compiler_pic_CXX='-KPIC'
19900             lt_prog_compiler_static_CXX='-Bstatic'
19901             ;;
19902         esac
19903         ;;
19904       vxworks*)
19905         ;;
19906       *)
19907         lt_prog_compiler_can_build_shared_CXX=no
19908         ;;
19909     esac
19910   fi
19911
19912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19913 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19914
19915 #
19916 # Check to make sure the PIC flag actually works.
19917 #
19918 if test -n "$lt_prog_compiler_pic_CXX"; then
19919
19920 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19922 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   lt_prog_compiler_pic_works_CXX=no
19926   ac_outfile=conftest.$ac_objext
19927    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19928    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19929    # Insert the option either (1) after the last *FLAGS variable, or
19930    # (2) before a word containing "conftest.", or (3) at the end.
19931    # Note that $ac_compile itself does not contain backslashes and begins
19932    # with a dollar sign (not a hyphen), so the echo should work correctly.
19933    # The option is referenced via a variable to avoid confusing sed.
19934    lt_compile=`echo "$ac_compile" | $SED \
19935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19937    -e 's:$: $lt_compiler_flag:'`
19938    (eval echo "\"\$as_me:19938: $lt_compile\"" >&5)
19939    (eval "$lt_compile" 2>conftest.err)
19940    ac_status=$?
19941    cat conftest.err >&5
19942    echo "$as_me:19942: \$? = $ac_status" >&5
19943    if (exit $ac_status) && test -s "$ac_outfile"; then
19944      # The compiler can only warn and ignore the option if not recognized
19945      # So say no if there are warnings other than the usual output.
19946      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19947      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19948      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19949        lt_prog_compiler_pic_works_CXX=yes
19950      fi
19951    fi
19952    $rm conftest*
19953
19954 fi
19955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19956 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19957
19958 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19959     case $lt_prog_compiler_pic_CXX in
19960      "" | " "*) ;;
19961      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19962      esac
19963 else
19964     lt_prog_compiler_pic_CXX=
19965      lt_prog_compiler_can_build_shared_CXX=no
19966 fi
19967
19968 fi
19969 case $host_os in
19970   # For platforms which do not support PIC, -DPIC is meaningless:
19971   *djgpp*)
19972     lt_prog_compiler_pic_CXX=
19973     ;;
19974   *)
19975     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19976     ;;
19977 esac
19978
19979 #
19980 # Check to make sure the static flag actually works.
19981 #
19982 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19983 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19984 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19985 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   lt_prog_compiler_static_works_CXX=no
19989    save_LDFLAGS="$LDFLAGS"
19990    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19991    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19992    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19993      # The linker can only warn and ignore the option if not recognized
19994      # So say no if there are warnings
19995      if test -s conftest.err; then
19996        # Append any errors to the config.log.
19997        cat conftest.err 1>&5
19998        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19999        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20000        if diff conftest.exp conftest.er2 >/dev/null; then
20001          lt_prog_compiler_static_works_CXX=yes
20002        fi
20003      else
20004        lt_prog_compiler_static_works_CXX=yes
20005      fi
20006    fi
20007    $rm conftest*
20008    LDFLAGS="$save_LDFLAGS"
20009
20010 fi
20011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20012 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20013
20014 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20015     :
20016 else
20017     lt_prog_compiler_static_CXX=
20018 fi
20019
20020
20021 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20023 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026   lt_cv_prog_compiler_c_o_CXX=no
20027    $rm -r conftest 2>/dev/null
20028    mkdir conftest
20029    cd conftest
20030    mkdir out
20031    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20032
20033    lt_compiler_flag="-o out/conftest2.$ac_objext"
20034    # Insert the option either (1) after the last *FLAGS variable, or
20035    # (2) before a word containing "conftest.", or (3) at the end.
20036    # Note that $ac_compile itself does not contain backslashes and begins
20037    # with a dollar sign (not a hyphen), so the echo should work correctly.
20038    lt_compile=`echo "$ac_compile" | $SED \
20039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20041    -e 's:$: $lt_compiler_flag:'`
20042    (eval echo "\"\$as_me:20042: $lt_compile\"" >&5)
20043    (eval "$lt_compile" 2>out/conftest.err)
20044    ac_status=$?
20045    cat out/conftest.err >&5
20046    echo "$as_me:20046: \$? = $ac_status" >&5
20047    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20048    then
20049      # The compiler can only warn and ignore the option if not recognized
20050      # So say no if there are warnings
20051      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20052      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20053      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20054        lt_cv_prog_compiler_c_o_CXX=yes
20055      fi
20056    fi
20057    chmod u+w . 2>&5
20058    $rm conftest*
20059    # SGI C++ compiler will create directory out/ii_files/ for
20060    # template instantiation
20061    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20062    $rm out/* && rmdir out
20063    cd ..
20064    rmdir conftest
20065    $rm conftest*
20066
20067 fi
20068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20069 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20070
20071
20072 hard_links="nottested"
20073 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20074   # do not overwrite the value of need_locks provided by the user
20075   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20077   hard_links=yes
20078   $rm conftest*
20079   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20080   touch conftest.a
20081   ln conftest.a conftest.b 2>&5 || hard_links=no
20082   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20083   { echo "$as_me:$LINENO: result: $hard_links" >&5
20084 echo "${ECHO_T}$hard_links" >&6; }
20085   if test "$hard_links" = no; then
20086     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20088     need_locks=warn
20089   fi
20090 else
20091   need_locks=no
20092 fi
20093
20094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20096
20097   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20098   case $host_os in
20099   aix4* | aix5*)
20100     # If we're using GNU nm, then we don't want the "-C" option.
20101     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20102     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20103       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'
20104     else
20105       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'
20106     fi
20107     ;;
20108   pw32*)
20109     export_symbols_cmds_CXX="$ltdll_cmds"
20110   ;;
20111   cygwin* | mingw*)
20112     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'
20113   ;;
20114   *)
20115     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20116   ;;
20117   esac
20118
20119 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20120 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20121 test "$ld_shlibs_CXX" = no && can_build_shared=no
20122
20123 #
20124 # Do we need to explicitly link libc?
20125 #
20126 case "x$archive_cmds_need_lc_CXX" in
20127 x|xyes)
20128   # Assume -lc should be added
20129   archive_cmds_need_lc_CXX=yes
20130
20131   if test "$enable_shared" = yes && test "$GCC" = yes; then
20132     case $archive_cmds_CXX in
20133     *'~'*)
20134       # FIXME: we may have to deal with multi-command sequences.
20135       ;;
20136     '$CC '*)
20137       # Test whether the compiler implicitly links with -lc since on some
20138       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20139       # to ld, don't add -lc before -lgcc.
20140       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20142       $rm conftest*
20143       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20144
20145       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146   (eval $ac_compile) 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } 2>conftest.err; then
20150         soname=conftest
20151         lib=conftest
20152         libobjs=conftest.$ac_objext
20153         deplibs=
20154         wl=$lt_prog_compiler_wl_CXX
20155         pic_flag=$lt_prog_compiler_pic_CXX
20156         compiler_flags=-v
20157         linker_flags=-v
20158         verstring=
20159         output_objdir=.
20160         libname=conftest
20161         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20162         allow_undefined_flag_CXX=
20163         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20164   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }
20168         then
20169           archive_cmds_need_lc_CXX=no
20170         else
20171           archive_cmds_need_lc_CXX=yes
20172         fi
20173         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20174       else
20175         cat conftest.err 1>&5
20176       fi
20177       $rm conftest*
20178       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20179 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20180       ;;
20181     esac
20182   fi
20183   ;;
20184 esac
20185
20186 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20188 library_names_spec=
20189 libname_spec='lib$name'
20190 soname_spec=
20191 shrext_cmds=".so"
20192 postinstall_cmds=
20193 postuninstall_cmds=
20194 finish_cmds=
20195 finish_eval=
20196 shlibpath_var=
20197 shlibpath_overrides_runpath=unknown
20198 version_type=none
20199 dynamic_linker="$host_os ld.so"
20200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20201 if test "$GCC" = yes; then
20202   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20203   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20204     # if the path contains ";" then we assume it to be the separator
20205     # otherwise default to the standard path separator (i.e. ":") - it is
20206     # assumed that no part of a normal pathname contains ";" but that should
20207     # okay in the real world where ";" in dirpaths is itself problematic.
20208     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20209   else
20210     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20211   fi
20212 else
20213   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20214 fi
20215 need_lib_prefix=unknown
20216 hardcode_into_libs=no
20217
20218 # when you set need_version to no, make sure it does not cause -set_version
20219 # flags to be left without arguments
20220 need_version=unknown
20221
20222 case $host_os in
20223 aix3*)
20224   version_type=linux
20225   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20226   shlibpath_var=LIBPATH
20227
20228   # AIX 3 has no versioning support, so we append a major version to the name.
20229   soname_spec='${libname}${release}${shared_ext}$major'
20230   ;;
20231
20232 aix4* | aix5*)
20233   version_type=linux
20234   need_lib_prefix=no
20235   need_version=no
20236   hardcode_into_libs=yes
20237   if test "$host_cpu" = ia64; then
20238     # AIX 5 supports IA64
20239     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20240     shlibpath_var=LD_LIBRARY_PATH
20241   else
20242     # With GCC up to 2.95.x, collect2 would create an import file
20243     # for dependence libraries.  The import file would start with
20244     # the line `#! .'.  This would cause the generated library to
20245     # depend on `.', always an invalid library.  This was fixed in
20246     # development snapshots of GCC prior to 3.0.
20247     case $host_os in
20248       aix4 | aix4.[01] | aix4.[01].*)
20249       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20250            echo ' yes '
20251            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20252         :
20253       else
20254         can_build_shared=no
20255       fi
20256       ;;
20257     esac
20258     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20259     # soname into executable. Probably we can add versioning support to
20260     # collect2, so additional links can be useful in future.
20261     if test "$aix_use_runtimelinking" = yes; then
20262       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20263       # instead of lib<name>.a to let people know that these are not
20264       # typical AIX shared libraries.
20265       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266     else
20267       # We preserve .a as extension for shared libraries through AIX4.2
20268       # and later when we are not doing run time linking.
20269       library_names_spec='${libname}${release}.a $libname.a'
20270       soname_spec='${libname}${release}${shared_ext}$major'
20271     fi
20272     shlibpath_var=LIBPATH
20273   fi
20274   ;;
20275
20276 amigaos*)
20277   library_names_spec='$libname.ixlibrary $libname.a'
20278   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20279   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'
20280   ;;
20281
20282 beos*)
20283   library_names_spec='${libname}${shared_ext}'
20284   dynamic_linker="$host_os ld.so"
20285   shlibpath_var=LIBRARY_PATH
20286   ;;
20287
20288 bsdi[45]*)
20289   version_type=linux
20290   need_version=no
20291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292   soname_spec='${libname}${release}${shared_ext}$major'
20293   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20294   shlibpath_var=LD_LIBRARY_PATH
20295   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20296   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20297   # the default ld.so.conf also contains /usr/contrib/lib and
20298   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20299   # libtool to hard-code these into programs
20300   ;;
20301
20302 cygwin* | mingw* | pw32*)
20303   version_type=windows
20304   shrext_cmds=".dll"
20305   need_version=no
20306   need_lib_prefix=no
20307
20308   case $GCC,$host_os in
20309   yes,cygwin* | yes,mingw* | yes,pw32*)
20310     library_names_spec='$libname.dll.a'
20311     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20312     postinstall_cmds='base_file=`basename \${file}`~
20313       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20314       dldir=$destdir/`dirname \$dlpath`~
20315       test -d \$dldir || mkdir -p \$dldir~
20316       $install_prog $dir/$dlname \$dldir/$dlname~
20317       chmod a+x \$dldir/$dlname'
20318     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20319       dlpath=$dir/\$dldll~
20320        $rm \$dlpath'
20321     shlibpath_overrides_runpath=yes
20322
20323     case $host_os in
20324     cygwin*)
20325       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20326       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20327       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20328       ;;
20329     mingw*)
20330       # MinGW DLLs use traditional 'lib' prefix
20331       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20332       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20333       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20334         # It is most probably a Windows format PATH printed by
20335         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20336         # path with ; separators, and with drive letters. We can handle the
20337         # drive letters (cygwin fileutils understands them), so leave them,
20338         # especially as we might pass files found there to a mingw objdump,
20339         # which wouldn't understand a cygwinified path. Ahh.
20340         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20341       else
20342         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20343       fi
20344       ;;
20345     pw32*)
20346       # pw32 DLLs use 'pw' prefix rather than 'lib'
20347       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20348       ;;
20349     esac
20350     ;;
20351
20352   *)
20353     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20354     ;;
20355   esac
20356   dynamic_linker='Win32 ld.exe'
20357   # FIXME: first we should search . and the directory the executable is in
20358   shlibpath_var=PATH
20359   ;;
20360
20361 darwin* | rhapsody*)
20362   dynamic_linker="$host_os dyld"
20363   version_type=darwin
20364   need_lib_prefix=no
20365   need_version=no
20366   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20367   soname_spec='${libname}${release}${major}$shared_ext'
20368   shlibpath_overrides_runpath=yes
20369   shlibpath_var=DYLD_LIBRARY_PATH
20370   shrext_cmds='.dylib'
20371   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20372   if test "$GCC" = yes; then
20373     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"`
20374   else
20375     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20376   fi
20377   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20378   ;;
20379
20380 dgux*)
20381   version_type=linux
20382   need_lib_prefix=no
20383   need_version=no
20384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20385   soname_spec='${libname}${release}${shared_ext}$major'
20386   shlibpath_var=LD_LIBRARY_PATH
20387   ;;
20388
20389 freebsd1*)
20390   dynamic_linker=no
20391   ;;
20392
20393 kfreebsd*-gnu)
20394   version_type=linux
20395   need_lib_prefix=no
20396   need_version=no
20397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20398   soname_spec='${libname}${release}${shared_ext}$major'
20399   shlibpath_var=LD_LIBRARY_PATH
20400   shlibpath_overrides_runpath=no
20401   hardcode_into_libs=yes
20402   dynamic_linker='GNU ld.so'
20403   ;;
20404
20405 freebsd* | dragonfly*)
20406   # DragonFly does not have aout.  When/if they implement a new
20407   # versioning mechanism, adjust this.
20408   if test -x /usr/bin/objformat; then
20409     objformat=`/usr/bin/objformat`
20410   else
20411     case $host_os in
20412     freebsd[123]*) objformat=aout ;;
20413     *) objformat=elf ;;
20414     esac
20415   fi
20416   version_type=freebsd-$objformat
20417   case $version_type in
20418     freebsd-elf*)
20419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20420       need_version=no
20421       need_lib_prefix=no
20422       ;;
20423     freebsd-*)
20424       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20425       need_version=yes
20426       ;;
20427   esac
20428   shlibpath_var=LD_LIBRARY_PATH
20429   case $host_os in
20430   freebsd2*)
20431     shlibpath_overrides_runpath=yes
20432     ;;
20433   freebsd3.[01]* | freebsdelf3.[01]*)
20434     shlibpath_overrides_runpath=yes
20435     hardcode_into_libs=yes
20436     ;;
20437   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20438   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20439     shlibpath_overrides_runpath=no
20440     hardcode_into_libs=yes
20441     ;;
20442   freebsd*) # from 4.6 on
20443     shlibpath_overrides_runpath=yes
20444     hardcode_into_libs=yes
20445     ;;
20446   esac
20447   ;;
20448
20449 gnu*)
20450   version_type=linux
20451   need_lib_prefix=no
20452   need_version=no
20453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20454   soname_spec='${libname}${release}${shared_ext}$major'
20455   shlibpath_var=LD_LIBRARY_PATH
20456   hardcode_into_libs=yes
20457   ;;
20458
20459 hpux9* | hpux10* | hpux11*)
20460   # Give a soname corresponding to the major version so that dld.sl refuses to
20461   # link against other versions.
20462   version_type=sunos
20463   need_lib_prefix=no
20464   need_version=no
20465   case $host_cpu in
20466   ia64*)
20467     shrext_cmds='.so'
20468     hardcode_into_libs=yes
20469     dynamic_linker="$host_os dld.so"
20470     shlibpath_var=LD_LIBRARY_PATH
20471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473     soname_spec='${libname}${release}${shared_ext}$major'
20474     if test "X$HPUX_IA64_MODE" = X32; then
20475       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20476     else
20477       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20478     fi
20479     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20480     ;;
20481    hppa*64*)
20482      shrext_cmds='.sl'
20483      hardcode_into_libs=yes
20484      dynamic_linker="$host_os dld.sl"
20485      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20486      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20487      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488      soname_spec='${libname}${release}${shared_ext}$major'
20489      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20490      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20491      ;;
20492    *)
20493     shrext_cmds='.sl'
20494     dynamic_linker="$host_os dld.sl"
20495     shlibpath_var=SHLIB_PATH
20496     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498     soname_spec='${libname}${release}${shared_ext}$major'
20499     ;;
20500   esac
20501   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20502   postinstall_cmds='chmod 555 $lib'
20503   ;;
20504
20505 interix3*)
20506   version_type=linux
20507   need_lib_prefix=no
20508   need_version=no
20509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20510   soname_spec='${libname}${release}${shared_ext}$major'
20511   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20512   shlibpath_var=LD_LIBRARY_PATH
20513   shlibpath_overrides_runpath=no
20514   hardcode_into_libs=yes
20515   ;;
20516
20517 irix5* | irix6* | nonstopux*)
20518   case $host_os in
20519     nonstopux*) version_type=nonstopux ;;
20520     *)
20521         if test "$lt_cv_prog_gnu_ld" = yes; then
20522                 version_type=linux
20523         else
20524                 version_type=irix
20525         fi ;;
20526   esac
20527   need_lib_prefix=no
20528   need_version=no
20529   soname_spec='${libname}${release}${shared_ext}$major'
20530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20531   case $host_os in
20532   irix5* | nonstopux*)
20533     libsuff= shlibsuff=
20534     ;;
20535   *)
20536     case $LD in # libtool.m4 will add one of these switches to LD
20537     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20538       libsuff= shlibsuff= libmagic=32-bit;;
20539     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20540       libsuff=32 shlibsuff=N32 libmagic=N32;;
20541     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20542       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20543     *) libsuff= shlibsuff= libmagic=never-match;;
20544     esac
20545     ;;
20546   esac
20547   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20548   shlibpath_overrides_runpath=no
20549   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20550   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20551   hardcode_into_libs=yes
20552   ;;
20553
20554 # No shared lib support for Linux oldld, aout, or coff.
20555 linux*oldld* | linux*aout* | linux*coff*)
20556   dynamic_linker=no
20557   ;;
20558
20559 # This must be Linux ELF.
20560 linux*)
20561   version_type=linux
20562   need_lib_prefix=no
20563   need_version=no
20564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565   soname_spec='${libname}${release}${shared_ext}$major'
20566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20567   shlibpath_var=LD_LIBRARY_PATH
20568   shlibpath_overrides_runpath=no
20569   # This implies no fast_install, which is unacceptable.
20570   # Some rework will be needed to allow for fast_install
20571   # before this can be enabled.
20572   hardcode_into_libs=yes
20573
20574   # Append ld.so.conf contents to the search path
20575   if test -f /etc/ld.so.conf; then
20576     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' ' '`
20577     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20578   fi
20579
20580   # We used to test for /lib/ld.so.1 and disable shared libraries on
20581   # powerpc, because MkLinux only supported shared libraries with the
20582   # GNU dynamic linker.  Since this was broken with cross compilers,
20583   # most powerpc-linux boxes support dynamic linking these days and
20584   # people can always --disable-shared, the test was removed, and we
20585   # assume the GNU/Linux dynamic linker is in use.
20586   dynamic_linker='GNU/Linux ld.so'
20587   ;;
20588
20589 knetbsd*-gnu)
20590   version_type=linux
20591   need_lib_prefix=no
20592   need_version=no
20593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20594   soname_spec='${libname}${release}${shared_ext}$major'
20595   shlibpath_var=LD_LIBRARY_PATH
20596   shlibpath_overrides_runpath=no
20597   hardcode_into_libs=yes
20598   dynamic_linker='GNU ld.so'
20599   ;;
20600
20601 netbsd*)
20602   version_type=sunos
20603   need_lib_prefix=no
20604   need_version=no
20605   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20607     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20608     dynamic_linker='NetBSD (a.out) ld.so'
20609   else
20610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611     soname_spec='${libname}${release}${shared_ext}$major'
20612     dynamic_linker='NetBSD ld.elf_so'
20613   fi
20614   shlibpath_var=LD_LIBRARY_PATH
20615   shlibpath_overrides_runpath=yes
20616   hardcode_into_libs=yes
20617   ;;
20618
20619 newsos6)
20620   version_type=linux
20621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622   shlibpath_var=LD_LIBRARY_PATH
20623   shlibpath_overrides_runpath=yes
20624   ;;
20625
20626 nto-qnx*)
20627   version_type=linux
20628   need_lib_prefix=no
20629   need_version=no
20630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631   soname_spec='${libname}${release}${shared_ext}$major'
20632   shlibpath_var=LD_LIBRARY_PATH
20633   shlibpath_overrides_runpath=yes
20634   ;;
20635
20636 openbsd*)
20637   version_type=sunos
20638   sys_lib_dlsearch_path_spec="/usr/lib"
20639   need_lib_prefix=no
20640   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20641   case $host_os in
20642     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20643     *)                         need_version=no  ;;
20644   esac
20645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20647   shlibpath_var=LD_LIBRARY_PATH
20648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20649     case $host_os in
20650       openbsd2.[89] | openbsd2.[89].*)
20651         shlibpath_overrides_runpath=no
20652         ;;
20653       *)
20654         shlibpath_overrides_runpath=yes
20655         ;;
20656       esac
20657   else
20658     shlibpath_overrides_runpath=yes
20659   fi
20660   ;;
20661
20662 os2*)
20663   libname_spec='$name'
20664   shrext_cmds=".dll"
20665   need_lib_prefix=no
20666   library_names_spec='$libname${shared_ext} $libname.a'
20667   dynamic_linker='OS/2 ld.exe'
20668   shlibpath_var=LIBPATH
20669   ;;
20670
20671 osf3* | osf4* | osf5*)
20672   version_type=osf
20673   need_lib_prefix=no
20674   need_version=no
20675   soname_spec='${libname}${release}${shared_ext}$major'
20676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677   shlibpath_var=LD_LIBRARY_PATH
20678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20680   ;;
20681
20682 solaris*)
20683   version_type=linux
20684   need_lib_prefix=no
20685   need_version=no
20686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687   soname_spec='${libname}${release}${shared_ext}$major'
20688   shlibpath_var=LD_LIBRARY_PATH
20689   shlibpath_overrides_runpath=yes
20690   hardcode_into_libs=yes
20691   # ldd complains unless libraries are executable
20692   postinstall_cmds='chmod +x $lib'
20693   ;;
20694
20695 sunos4*)
20696   version_type=sunos
20697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20698   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20699   shlibpath_var=LD_LIBRARY_PATH
20700   shlibpath_overrides_runpath=yes
20701   if test "$with_gnu_ld" = yes; then
20702     need_lib_prefix=no
20703   fi
20704   need_version=yes
20705   ;;
20706
20707 sysv4 | sysv4.3*)
20708   version_type=linux
20709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710   soname_spec='${libname}${release}${shared_ext}$major'
20711   shlibpath_var=LD_LIBRARY_PATH
20712   case $host_vendor in
20713     sni)
20714       shlibpath_overrides_runpath=no
20715       need_lib_prefix=no
20716       export_dynamic_flag_spec='${wl}-Blargedynsym'
20717       runpath_var=LD_RUN_PATH
20718       ;;
20719     siemens)
20720       need_lib_prefix=no
20721       ;;
20722     motorola)
20723       need_lib_prefix=no
20724       need_version=no
20725       shlibpath_overrides_runpath=no
20726       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20727       ;;
20728   esac
20729   ;;
20730
20731 sysv4*MP*)
20732   if test -d /usr/nec ;then
20733     version_type=linux
20734     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20735     soname_spec='$libname${shared_ext}.$major'
20736     shlibpath_var=LD_LIBRARY_PATH
20737   fi
20738   ;;
20739
20740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20741   version_type=freebsd-elf
20742   need_lib_prefix=no
20743   need_version=no
20744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20745   soname_spec='${libname}${release}${shared_ext}$major'
20746   shlibpath_var=LD_LIBRARY_PATH
20747   hardcode_into_libs=yes
20748   if test "$with_gnu_ld" = yes; then
20749     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20750     shlibpath_overrides_runpath=no
20751   else
20752     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20753     shlibpath_overrides_runpath=yes
20754     case $host_os in
20755       sco3.2v5*)
20756         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20757         ;;
20758     esac
20759   fi
20760   sys_lib_dlsearch_path_spec='/usr/lib'
20761   ;;
20762
20763 uts4*)
20764   version_type=linux
20765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766   soname_spec='${libname}${release}${shared_ext}$major'
20767   shlibpath_var=LD_LIBRARY_PATH
20768   ;;
20769
20770 *)
20771   dynamic_linker=no
20772   ;;
20773 esac
20774 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20775 echo "${ECHO_T}$dynamic_linker" >&6; }
20776 test "$dynamic_linker" = no && can_build_shared=no
20777
20778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20779 if test "$GCC" = yes; then
20780   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20781 fi
20782
20783 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20784 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20785 hardcode_action_CXX=
20786 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20787    test -n "$runpath_var_CXX" || \
20788    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20789
20790   # We can hardcode non-existant directories.
20791   if test "$hardcode_direct_CXX" != no &&
20792      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20793      # have to relink, otherwise we might link with an installed library
20794      # when we should be linking with a yet-to-be-installed one
20795      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20796      test "$hardcode_minus_L_CXX" != no; then
20797     # Linking always hardcodes the temporary library directory.
20798     hardcode_action_CXX=relink
20799   else
20800     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20801     hardcode_action_CXX=immediate
20802   fi
20803 else
20804   # We cannot hardcode anything, or else we can only hardcode existing
20805   # directories.
20806   hardcode_action_CXX=unsupported
20807 fi
20808 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20809 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20810
20811 if test "$hardcode_action_CXX" = relink; then
20812   # Fast installation is not supported
20813   enable_fast_install=no
20814 elif test "$shlibpath_overrides_runpath" = yes ||
20815      test "$enable_shared" = no; then
20816   # Fast installation is not necessary
20817   enable_fast_install=needless
20818 fi
20819
20820
20821 # The else clause should only fire when bootstrapping the
20822 # libtool distribution, otherwise you forgot to ship ltmain.sh
20823 # with your package, and you will get complaints that there are
20824 # no rules to generate ltmain.sh.
20825 if test -f "$ltmain"; then
20826   # See if we are running on zsh, and set the options which allow our commands through
20827   # without removal of \ escapes.
20828   if test -n "${ZSH_VERSION+set}" ; then
20829     setopt NO_GLOB_SUBST
20830   fi
20831   # Now quote all the things that may contain metacharacters while being
20832   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20833   # variables and quote the copies for generation of the libtool script.
20834   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20835     SED SHELL STRIP \
20836     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20837     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20838     deplibs_check_method reload_flag reload_cmds need_locks \
20839     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20840     lt_cv_sys_global_symbol_to_c_name_address \
20841     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20842     old_postinstall_cmds old_postuninstall_cmds \
20843     compiler_CXX \
20844     CC_CXX \
20845     LD_CXX \
20846     lt_prog_compiler_wl_CXX \
20847     lt_prog_compiler_pic_CXX \
20848     lt_prog_compiler_static_CXX \
20849     lt_prog_compiler_no_builtin_flag_CXX \
20850     export_dynamic_flag_spec_CXX \
20851     thread_safe_flag_spec_CXX \
20852     whole_archive_flag_spec_CXX \
20853     enable_shared_with_static_runtimes_CXX \
20854     old_archive_cmds_CXX \
20855     old_archive_from_new_cmds_CXX \
20856     predep_objects_CXX \
20857     postdep_objects_CXX \
20858     predeps_CXX \
20859     postdeps_CXX \
20860     compiler_lib_search_path_CXX \
20861     archive_cmds_CXX \
20862     archive_expsym_cmds_CXX \
20863     postinstall_cmds_CXX \
20864     postuninstall_cmds_CXX \
20865     old_archive_from_expsyms_cmds_CXX \
20866     allow_undefined_flag_CXX \
20867     no_undefined_flag_CXX \
20868     export_symbols_cmds_CXX \
20869     hardcode_libdir_flag_spec_CXX \
20870     hardcode_libdir_flag_spec_ld_CXX \
20871     hardcode_libdir_separator_CXX \
20872     hardcode_automatic_CXX \
20873     module_cmds_CXX \
20874     module_expsym_cmds_CXX \
20875     lt_cv_prog_compiler_c_o_CXX \
20876     exclude_expsyms_CXX \
20877     include_expsyms_CXX; do
20878
20879     case $var in
20880     old_archive_cmds_CXX | \
20881     old_archive_from_new_cmds_CXX | \
20882     archive_cmds_CXX | \
20883     archive_expsym_cmds_CXX | \
20884     module_cmds_CXX | \
20885     module_expsym_cmds_CXX | \
20886     old_archive_from_expsyms_cmds_CXX | \
20887     export_symbols_cmds_CXX | \
20888     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20889     postinstall_cmds | postuninstall_cmds | \
20890     old_postinstall_cmds | old_postuninstall_cmds | \
20891     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20892       # Double-quote double-evaled strings.
20893       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20894       ;;
20895     *)
20896       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20897       ;;
20898     esac
20899   done
20900
20901   case $lt_echo in
20902   *'\$0 --fallback-echo"')
20903     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20904     ;;
20905   esac
20906
20907 cfgfile="$ofile"
20908
20909   cat <<__EOF__ >> "$cfgfile"
20910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20911
20912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20913
20914 # Shell to use when invoking shell scripts.
20915 SHELL=$lt_SHELL
20916
20917 # Whether or not to build shared libraries.
20918 build_libtool_libs=$enable_shared
20919
20920 # Whether or not to build static libraries.
20921 build_old_libs=$enable_static
20922
20923 # Whether or not to add -lc for building shared libraries.
20924 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20925
20926 # Whether or not to disallow shared libs when runtime libs are static
20927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20928
20929 # Whether or not to optimize for fast installation.
20930 fast_install=$enable_fast_install
20931
20932 # The host system.
20933 host_alias=$host_alias
20934 host=$host
20935 host_os=$host_os
20936
20937 # The build system.
20938 build_alias=$build_alias
20939 build=$build
20940 build_os=$build_os
20941
20942 # An echo program that does not interpret backslashes.
20943 echo=$lt_echo
20944
20945 # The archiver.
20946 AR=$lt_AR
20947 AR_FLAGS=$lt_AR_FLAGS
20948
20949 # A C compiler.
20950 LTCC=$lt_LTCC
20951
20952 # LTCC compiler flags.
20953 LTCFLAGS=$lt_LTCFLAGS
20954
20955 # A language-specific compiler.
20956 CC=$lt_compiler_CXX
20957
20958 # Is the compiler the GNU C compiler?
20959 with_gcc=$GCC_CXX
20960
20961 # An ERE matcher.
20962 EGREP=$lt_EGREP
20963
20964 # The linker used to build libraries.
20965 LD=$lt_LD_CXX
20966
20967 # Whether we need hard or soft links.
20968 LN_S=$lt_LN_S
20969
20970 # A BSD-compatible nm program.
20971 NM=$lt_NM
20972
20973 # A symbol stripping program
20974 STRIP=$lt_STRIP
20975
20976 # Used to examine libraries when file_magic_cmd begins "file"
20977 MAGIC_CMD=$MAGIC_CMD
20978
20979 # Used on cygwin: DLL creation program.
20980 DLLTOOL="$DLLTOOL"
20981
20982 # Used on cygwin: object dumper.
20983 OBJDUMP="$OBJDUMP"
20984
20985 # Used on cygwin: assembler.
20986 AS="$AS"
20987
20988 # The name of the directory that contains temporary libtool files.
20989 objdir=$objdir
20990
20991 # How to create reloadable object files.
20992 reload_flag=$lt_reload_flag
20993 reload_cmds=$lt_reload_cmds
20994
20995 # How to pass a linker flag through the compiler.
20996 wl=$lt_lt_prog_compiler_wl_CXX
20997
20998 # Object file suffix (normally "o").
20999 objext="$ac_objext"
21000
21001 # Old archive suffix (normally "a").
21002 libext="$libext"
21003
21004 # Shared library suffix (normally ".so").
21005 shrext_cmds='$shrext_cmds'
21006
21007 # Executable file suffix (normally "").
21008 exeext="$exeext"
21009
21010 # Additional compiler flags for building library objects.
21011 pic_flag=$lt_lt_prog_compiler_pic_CXX
21012 pic_mode=$pic_mode
21013
21014 # What is the maximum length of a command?
21015 max_cmd_len=$lt_cv_sys_max_cmd_len
21016
21017 # Does compiler simultaneously support -c and -o options?
21018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21019
21020 # Must we lock files when doing compilation?
21021 need_locks=$lt_need_locks
21022
21023 # Do we need the lib prefix for modules?
21024 need_lib_prefix=$need_lib_prefix
21025
21026 # Do we need a version for libraries?
21027 need_version=$need_version
21028
21029 # Whether dlopen is supported.
21030 dlopen_support=$enable_dlopen
21031
21032 # Whether dlopen of programs is supported.
21033 dlopen_self=$enable_dlopen_self
21034
21035 # Whether dlopen of statically linked programs is supported.
21036 dlopen_self_static=$enable_dlopen_self_static
21037
21038 # Compiler flag to prevent dynamic linking.
21039 link_static_flag=$lt_lt_prog_compiler_static_CXX
21040
21041 # Compiler flag to turn off builtin functions.
21042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21043
21044 # Compiler flag to allow reflexive dlopens.
21045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21046
21047 # Compiler flag to generate shared objects directly from archives.
21048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21049
21050 # Compiler flag to generate thread-safe objects.
21051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21052
21053 # Library versioning type.
21054 version_type=$version_type
21055
21056 # Format of library name prefix.
21057 libname_spec=$lt_libname_spec
21058
21059 # List of archive names.  First name is the real one, the rest are links.
21060 # The last name is the one that the linker finds with -lNAME.
21061 library_names_spec=$lt_library_names_spec
21062
21063 # The coded name of the library, if different from the real name.
21064 soname_spec=$lt_soname_spec
21065
21066 # Commands used to build and install an old-style archive.
21067 RANLIB=$lt_RANLIB
21068 old_archive_cmds=$lt_old_archive_cmds_CXX
21069 old_postinstall_cmds=$lt_old_postinstall_cmds
21070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21071
21072 # Create an old-style archive from a shared archive.
21073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21074
21075 # Create a temporary old-style archive to link instead of a shared archive.
21076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21077
21078 # Commands used to build and install a shared archive.
21079 archive_cmds=$lt_archive_cmds_CXX
21080 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21081 postinstall_cmds=$lt_postinstall_cmds
21082 postuninstall_cmds=$lt_postuninstall_cmds
21083
21084 # Commands used to build a loadable module (assumed same as above if empty)
21085 module_cmds=$lt_module_cmds_CXX
21086 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21087
21088 # Commands to strip libraries.
21089 old_striplib=$lt_old_striplib
21090 striplib=$lt_striplib
21091
21092 # Dependencies to place before the objects being linked to create a
21093 # shared library.
21094 predep_objects=$lt_predep_objects_CXX
21095
21096 # Dependencies to place after the objects being linked to create a
21097 # shared library.
21098 postdep_objects=$lt_postdep_objects_CXX
21099
21100 # Dependencies to place before the objects being linked to create a
21101 # shared library.
21102 predeps=$lt_predeps_CXX
21103
21104 # Dependencies to place after the objects being linked to create a
21105 # shared library.
21106 postdeps=$lt_postdeps_CXX
21107
21108 # The library search path used internally by the compiler when linking
21109 # a shared library.
21110 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21111
21112 # Method to check whether dependent libraries are shared objects.
21113 deplibs_check_method=$lt_deplibs_check_method
21114
21115 # Command to use when deplibs_check_method == file_magic.
21116 file_magic_cmd=$lt_file_magic_cmd
21117
21118 # Flag that allows shared libraries with undefined symbols to be built.
21119 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21120
21121 # Flag that forces no undefined symbols.
21122 no_undefined_flag=$lt_no_undefined_flag_CXX
21123
21124 # Commands used to finish a libtool library installation in a directory.
21125 finish_cmds=$lt_finish_cmds
21126
21127 # Same as above, but a single script fragment to be evaled but not shown.
21128 finish_eval=$lt_finish_eval
21129
21130 # Take the output of nm and produce a listing of raw symbols and C names.
21131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21132
21133 # Transform the output of nm in a proper C declaration
21134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21135
21136 # Transform the output of nm in a C name address pair
21137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21138
21139 # This is the shared library runtime path variable.
21140 runpath_var=$runpath_var
21141
21142 # This is the shared library path variable.
21143 shlibpath_var=$shlibpath_var
21144
21145 # Is shlibpath searched before the hard-coded library search path?
21146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21147
21148 # How to hardcode a shared library path into an executable.
21149 hardcode_action=$hardcode_action_CXX
21150
21151 # Whether we should hardcode library paths into libraries.
21152 hardcode_into_libs=$hardcode_into_libs
21153
21154 # Flag to hardcode \$libdir into a binary during linking.
21155 # This must work even if \$libdir does not exist.
21156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21157
21158 # If ld is used when linking, flag to hardcode \$libdir into
21159 # a binary during linking. This must work even if \$libdir does
21160 # not exist.
21161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21162
21163 # Whether we need a single -rpath flag with a separated argument.
21164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21165
21166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21167 # resulting binary.
21168 hardcode_direct=$hardcode_direct_CXX
21169
21170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21171 # resulting binary.
21172 hardcode_minus_L=$hardcode_minus_L_CXX
21173
21174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21175 # the resulting binary.
21176 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21177
21178 # Set to yes if building a shared library automatically hardcodes DIR into the library
21179 # and all subsequent libraries and executables linked against it.
21180 hardcode_automatic=$hardcode_automatic_CXX
21181
21182 # Variables whose values should be saved in libtool wrapper scripts and
21183 # restored at relink time.
21184 variables_saved_for_relink="$variables_saved_for_relink"
21185
21186 # Whether libtool must link a program against all its dependency libraries.
21187 link_all_deplibs=$link_all_deplibs_CXX
21188
21189 # Compile-time system search path for libraries
21190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21191
21192 # Run-time system search path for libraries
21193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21194
21195 # Fix the shell variable \$srcfile for the compiler.
21196 fix_srcfile_path="$fix_srcfile_path_CXX"
21197
21198 # Set to yes if exported symbols are required.
21199 always_export_symbols=$always_export_symbols_CXX
21200
21201 # The commands to list exported symbols.
21202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21203
21204 # The commands to extract the exported symbol list from a shared archive.
21205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21206
21207 # Symbols that should not be listed in the preloaded symbols.
21208 exclude_expsyms=$lt_exclude_expsyms_CXX
21209
21210 # Symbols that must always be exported.
21211 include_expsyms=$lt_include_expsyms_CXX
21212
21213 # ### END LIBTOOL TAG CONFIG: $tagname
21214
21215 __EOF__
21216
21217
21218 else
21219   # If there is no Makefile yet, we rely on a make rule to execute
21220   # `config.status --recheck' to rerun these tests and create the
21221   # libtool script then.
21222   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21223   if test -f "$ltmain_in"; then
21224     test -f Makefile && make "$ltmain"
21225   fi
21226 fi
21227
21228
21229 ac_ext=c
21230 ac_cpp='$CPP $CPPFLAGS'
21231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234
21235 CC=$lt_save_CC
21236 LDCXX=$LD
21237 LD=$lt_save_LD
21238 GCC=$lt_save_GCC
21239 with_gnu_ldcxx=$with_gnu_ld
21240 with_gnu_ld=$lt_save_with_gnu_ld
21241 lt_cv_path_LDCXX=$lt_cv_path_LD
21242 lt_cv_path_LD=$lt_save_path_LD
21243 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21244 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21245
21246         else
21247           tagname=""
21248         fi
21249         ;;
21250
21251       F77)
21252         if test -n "$F77" && test "X$F77" != "Xno"; then
21253
21254 ac_ext=f
21255 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21256 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21258
21259
21260 archive_cmds_need_lc_F77=no
21261 allow_undefined_flag_F77=
21262 always_export_symbols_F77=no
21263 archive_expsym_cmds_F77=
21264 export_dynamic_flag_spec_F77=
21265 hardcode_direct_F77=no
21266 hardcode_libdir_flag_spec_F77=
21267 hardcode_libdir_flag_spec_ld_F77=
21268 hardcode_libdir_separator_F77=
21269 hardcode_minus_L_F77=no
21270 hardcode_automatic_F77=no
21271 module_cmds_F77=
21272 module_expsym_cmds_F77=
21273 link_all_deplibs_F77=unknown
21274 old_archive_cmds_F77=$old_archive_cmds
21275 no_undefined_flag_F77=
21276 whole_archive_flag_spec_F77=
21277 enable_shared_with_static_runtimes_F77=no
21278
21279 # Source file extension for f77 test sources.
21280 ac_ext=f
21281
21282 # Object file extension for compiled f77 test sources.
21283 objext=o
21284 objext_F77=$objext
21285
21286 # Code to be used in simple compile tests
21287 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21288
21289 # Code to be used in simple link tests
21290 lt_simple_link_test_code="      program t\n      end\n"
21291
21292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21293
21294 # If no C compiler was specified, use CC.
21295 LTCC=${LTCC-"$CC"}
21296
21297 # If no C compiler flags were specified, use CFLAGS.
21298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21299
21300 # Allow CC to be a program name with arguments.
21301 compiler=$CC
21302
21303
21304 # save warnings/boilerplate of simple test code
21305 ac_outfile=conftest.$ac_objext
21306 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21308 _lt_compiler_boilerplate=`cat conftest.err`
21309 $rm conftest*
21310
21311 ac_outfile=conftest.$ac_objext
21312 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21314 _lt_linker_boilerplate=`cat conftest.err`
21315 $rm conftest*
21316
21317
21318 # Allow CC to be a program name with arguments.
21319 lt_save_CC="$CC"
21320 CC=${F77-"f77"}
21321 compiler=$CC
21322 compiler_F77=$CC
21323 for cc_temp in $compiler""; do
21324   case $cc_temp in
21325     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21326     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21327     \-*) ;;
21328     *) break;;
21329   esac
21330 done
21331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21332
21333
21334 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21335 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21336 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21337 echo "${ECHO_T}$can_build_shared" >&6; }
21338
21339 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21340 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21341 test "$can_build_shared" = "no" && enable_shared=no
21342
21343 # On AIX, shared libraries and static libraries use the same namespace, and
21344 # are all built from PIC.
21345 case $host_os in
21346 aix3*)
21347   test "$enable_shared" = yes && enable_static=no
21348   if test -n "$RANLIB"; then
21349     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21350     postinstall_cmds='$RANLIB $lib'
21351   fi
21352   ;;
21353 aix4* | aix5*)
21354   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21355     test "$enable_shared" = yes && enable_static=no
21356   fi
21357   ;;
21358 esac
21359 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21360 echo "${ECHO_T}$enable_shared" >&6; }
21361
21362 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21363 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21364 # Make sure either enable_shared or enable_static is yes.
21365 test "$enable_shared" = yes || enable_static=yes
21366 { echo "$as_me:$LINENO: result: $enable_static" >&5
21367 echo "${ECHO_T}$enable_static" >&6; }
21368
21369 GCC_F77="$G77"
21370 LD_F77="$LD"
21371
21372 lt_prog_compiler_wl_F77=
21373 lt_prog_compiler_pic_F77=
21374 lt_prog_compiler_static_F77=
21375
21376 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21377 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21378
21379   if test "$GCC" = yes; then
21380     lt_prog_compiler_wl_F77='-Wl,'
21381     lt_prog_compiler_static_F77='-static'
21382
21383     case $host_os in
21384       aix*)
21385       # All AIX code is PIC.
21386       if test "$host_cpu" = ia64; then
21387         # AIX 5 now supports IA64 processor
21388         lt_prog_compiler_static_F77='-Bstatic'
21389       fi
21390       ;;
21391
21392     amigaos*)
21393       # FIXME: we need at least 68020 code to build shared libraries, but
21394       # adding the `-m68020' flag to GCC prevents building anything better,
21395       # like `-m68040'.
21396       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21397       ;;
21398
21399     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21400       # PIC is the default for these OSes.
21401       ;;
21402
21403     mingw* | pw32* | os2*)
21404       # This hack is so that the source file can tell whether it is being
21405       # built for inclusion in a dll (and should export symbols for example).
21406       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21407       ;;
21408
21409     darwin* | rhapsody*)
21410       # PIC is the default on this platform
21411       # Common symbols not allowed in MH_DYLIB files
21412       lt_prog_compiler_pic_F77='-fno-common'
21413       ;;
21414
21415     interix3*)
21416       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21417       # Instead, we relocate shared libraries at runtime.
21418       ;;
21419
21420     msdosdjgpp*)
21421       # Just because we use GCC doesn't mean we suddenly get shared libraries
21422       # on systems that don't support them.
21423       lt_prog_compiler_can_build_shared_F77=no
21424       enable_shared=no
21425       ;;
21426
21427     sysv4*MP*)
21428       if test -d /usr/nec; then
21429         lt_prog_compiler_pic_F77=-Kconform_pic
21430       fi
21431       ;;
21432
21433     hpux*)
21434       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21435       # not for PA HP-UX.
21436       case $host_cpu in
21437       hppa*64*|ia64*)
21438         # +Z the default
21439         ;;
21440       *)
21441         lt_prog_compiler_pic_F77='-fPIC'
21442         ;;
21443       esac
21444       ;;
21445
21446     *)
21447       lt_prog_compiler_pic_F77='-fPIC'
21448       ;;
21449     esac
21450   else
21451     # PORTME Check for flag to pass linker flags through the system compiler.
21452     case $host_os in
21453     aix*)
21454       lt_prog_compiler_wl_F77='-Wl,'
21455       if test "$host_cpu" = ia64; then
21456         # AIX 5 now supports IA64 processor
21457         lt_prog_compiler_static_F77='-Bstatic'
21458       else
21459         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21460       fi
21461       ;;
21462       darwin*)
21463         # PIC is the default on this platform
21464         # Common symbols not allowed in MH_DYLIB files
21465        case $cc_basename in
21466          xlc*)
21467          lt_prog_compiler_pic_F77='-qnocommon'
21468          lt_prog_compiler_wl_F77='-Wl,'
21469          ;;
21470        esac
21471        ;;
21472
21473     mingw* | pw32* | os2*)
21474       # This hack is so that the source file can tell whether it is being
21475       # built for inclusion in a dll (and should export symbols for example).
21476       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21477       ;;
21478
21479     hpux9* | hpux10* | hpux11*)
21480       lt_prog_compiler_wl_F77='-Wl,'
21481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21482       # not for PA HP-UX.
21483       case $host_cpu in
21484       hppa*64*|ia64*)
21485         # +Z the default
21486         ;;
21487       *)
21488         lt_prog_compiler_pic_F77='+Z'
21489         ;;
21490       esac
21491       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21492       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21493       ;;
21494
21495     irix5* | irix6* | nonstopux*)
21496       lt_prog_compiler_wl_F77='-Wl,'
21497       # PIC (with -KPIC) is the default.
21498       lt_prog_compiler_static_F77='-non_shared'
21499       ;;
21500
21501     newsos6)
21502       lt_prog_compiler_pic_F77='-KPIC'
21503       lt_prog_compiler_static_F77='-Bstatic'
21504       ;;
21505
21506     linux*)
21507       case $cc_basename in
21508       icc* | ecc*)
21509         lt_prog_compiler_wl_F77='-Wl,'
21510         lt_prog_compiler_pic_F77='-KPIC'
21511         lt_prog_compiler_static_F77='-static'
21512         ;;
21513       pgcc* | pgf77* | pgf90* | pgf95*)
21514         # Portland Group compilers (*not* the Pentium gcc compiler,
21515         # which looks to be a dead project)
21516         lt_prog_compiler_wl_F77='-Wl,'
21517         lt_prog_compiler_pic_F77='-fpic'
21518         lt_prog_compiler_static_F77='-Bstatic'
21519         ;;
21520       ccc*)
21521         lt_prog_compiler_wl_F77='-Wl,'
21522         # All Alpha code is PIC.
21523         lt_prog_compiler_static_F77='-non_shared'
21524         ;;
21525       esac
21526       ;;
21527
21528     osf3* | osf4* | osf5*)
21529       lt_prog_compiler_wl_F77='-Wl,'
21530       # All OSF/1 code is PIC.
21531       lt_prog_compiler_static_F77='-non_shared'
21532       ;;
21533
21534     solaris*)
21535       lt_prog_compiler_pic_F77='-KPIC'
21536       lt_prog_compiler_static_F77='-Bstatic'
21537       case $cc_basename in
21538       f77* | f90* | f95*)
21539         lt_prog_compiler_wl_F77='-Qoption ld ';;
21540       *)
21541         lt_prog_compiler_wl_F77='-Wl,';;
21542       esac
21543       ;;
21544
21545     sunos4*)
21546       lt_prog_compiler_wl_F77='-Qoption ld '
21547       lt_prog_compiler_pic_F77='-PIC'
21548       lt_prog_compiler_static_F77='-Bstatic'
21549       ;;
21550
21551     sysv4 | sysv4.2uw2* | sysv4.3*)
21552       lt_prog_compiler_wl_F77='-Wl,'
21553       lt_prog_compiler_pic_F77='-KPIC'
21554       lt_prog_compiler_static_F77='-Bstatic'
21555       ;;
21556
21557     sysv4*MP*)
21558       if test -d /usr/nec ;then
21559         lt_prog_compiler_pic_F77='-Kconform_pic'
21560         lt_prog_compiler_static_F77='-Bstatic'
21561       fi
21562       ;;
21563
21564     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21565       lt_prog_compiler_wl_F77='-Wl,'
21566       lt_prog_compiler_pic_F77='-KPIC'
21567       lt_prog_compiler_static_F77='-Bstatic'
21568       ;;
21569
21570     unicos*)
21571       lt_prog_compiler_wl_F77='-Wl,'
21572       lt_prog_compiler_can_build_shared_F77=no
21573       ;;
21574
21575     uts4*)
21576       lt_prog_compiler_pic_F77='-pic'
21577       lt_prog_compiler_static_F77='-Bstatic'
21578       ;;
21579
21580     *)
21581       lt_prog_compiler_can_build_shared_F77=no
21582       ;;
21583     esac
21584   fi
21585
21586 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21587 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21588
21589 #
21590 # Check to make sure the PIC flag actually works.
21591 #
21592 if test -n "$lt_prog_compiler_pic_F77"; then
21593
21594 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21595 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21596 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599   lt_prog_compiler_pic_works_F77=no
21600   ac_outfile=conftest.$ac_objext
21601    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21602    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21603    # Insert the option either (1) after the last *FLAGS variable, or
21604    # (2) before a word containing "conftest.", or (3) at the end.
21605    # Note that $ac_compile itself does not contain backslashes and begins
21606    # with a dollar sign (not a hyphen), so the echo should work correctly.
21607    # The option is referenced via a variable to avoid confusing sed.
21608    lt_compile=`echo "$ac_compile" | $SED \
21609    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21610    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21611    -e 's:$: $lt_compiler_flag:'`
21612    (eval echo "\"\$as_me:21612: $lt_compile\"" >&5)
21613    (eval "$lt_compile" 2>conftest.err)
21614    ac_status=$?
21615    cat conftest.err >&5
21616    echo "$as_me:21616: \$? = $ac_status" >&5
21617    if (exit $ac_status) && test -s "$ac_outfile"; then
21618      # The compiler can only warn and ignore the option if not recognized
21619      # So say no if there are warnings other than the usual output.
21620      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21621      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21622      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21623        lt_prog_compiler_pic_works_F77=yes
21624      fi
21625    fi
21626    $rm conftest*
21627
21628 fi
21629 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21630 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21631
21632 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21633     case $lt_prog_compiler_pic_F77 in
21634      "" | " "*) ;;
21635      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21636      esac
21637 else
21638     lt_prog_compiler_pic_F77=
21639      lt_prog_compiler_can_build_shared_F77=no
21640 fi
21641
21642 fi
21643 case $host_os in
21644   # For platforms which do not support PIC, -DPIC is meaningless:
21645   *djgpp*)
21646     lt_prog_compiler_pic_F77=
21647     ;;
21648   *)
21649     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21650     ;;
21651 esac
21652
21653 #
21654 # Check to make sure the static flag actually works.
21655 #
21656 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21657 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21658 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21659 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662   lt_prog_compiler_static_works_F77=no
21663    save_LDFLAGS="$LDFLAGS"
21664    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21665    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21666    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21667      # The linker can only warn and ignore the option if not recognized
21668      # So say no if there are warnings
21669      if test -s conftest.err; then
21670        # Append any errors to the config.log.
21671        cat conftest.err 1>&5
21672        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21673        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21674        if diff conftest.exp conftest.er2 >/dev/null; then
21675          lt_prog_compiler_static_works_F77=yes
21676        fi
21677      else
21678        lt_prog_compiler_static_works_F77=yes
21679      fi
21680    fi
21681    $rm conftest*
21682    LDFLAGS="$save_LDFLAGS"
21683
21684 fi
21685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21686 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21687
21688 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21689     :
21690 else
21691     lt_prog_compiler_static_F77=
21692 fi
21693
21694
21695 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21698   echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700   lt_cv_prog_compiler_c_o_F77=no
21701    $rm -r conftest 2>/dev/null
21702    mkdir conftest
21703    cd conftest
21704    mkdir out
21705    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21706
21707    lt_compiler_flag="-o out/conftest2.$ac_objext"
21708    # Insert the option either (1) after the last *FLAGS variable, or
21709    # (2) before a word containing "conftest.", or (3) at the end.
21710    # Note that $ac_compile itself does not contain backslashes and begins
21711    # with a dollar sign (not a hyphen), so the echo should work correctly.
21712    lt_compile=`echo "$ac_compile" | $SED \
21713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21715    -e 's:$: $lt_compiler_flag:'`
21716    (eval echo "\"\$as_me:21716: $lt_compile\"" >&5)
21717    (eval "$lt_compile" 2>out/conftest.err)
21718    ac_status=$?
21719    cat out/conftest.err >&5
21720    echo "$as_me:21720: \$? = $ac_status" >&5
21721    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21722    then
21723      # The compiler can only warn and ignore the option if not recognized
21724      # So say no if there are warnings
21725      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21726      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21727      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21728        lt_cv_prog_compiler_c_o_F77=yes
21729      fi
21730    fi
21731    chmod u+w . 2>&5
21732    $rm conftest*
21733    # SGI C++ compiler will create directory out/ii_files/ for
21734    # template instantiation
21735    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21736    $rm out/* && rmdir out
21737    cd ..
21738    rmdir conftest
21739    $rm conftest*
21740
21741 fi
21742 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21743 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21744
21745
21746 hard_links="nottested"
21747 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21748   # do not overwrite the value of need_locks provided by the user
21749   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21750 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21751   hard_links=yes
21752   $rm conftest*
21753   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21754   touch conftest.a
21755   ln conftest.a conftest.b 2>&5 || hard_links=no
21756   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21757   { echo "$as_me:$LINENO: result: $hard_links" >&5
21758 echo "${ECHO_T}$hard_links" >&6; }
21759   if test "$hard_links" = no; then
21760     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21761 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21762     need_locks=warn
21763   fi
21764 else
21765   need_locks=no
21766 fi
21767
21768 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21769 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21770
21771   runpath_var=
21772   allow_undefined_flag_F77=
21773   enable_shared_with_static_runtimes_F77=no
21774   archive_cmds_F77=
21775   archive_expsym_cmds_F77=
21776   old_archive_From_new_cmds_F77=
21777   old_archive_from_expsyms_cmds_F77=
21778   export_dynamic_flag_spec_F77=
21779   whole_archive_flag_spec_F77=
21780   thread_safe_flag_spec_F77=
21781   hardcode_libdir_flag_spec_F77=
21782   hardcode_libdir_flag_spec_ld_F77=
21783   hardcode_libdir_separator_F77=
21784   hardcode_direct_F77=no
21785   hardcode_minus_L_F77=no
21786   hardcode_shlibpath_var_F77=unsupported
21787   link_all_deplibs_F77=unknown
21788   hardcode_automatic_F77=no
21789   module_cmds_F77=
21790   module_expsym_cmds_F77=
21791   always_export_symbols_F77=no
21792   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21793   # include_expsyms should be a list of space-separated symbols to be *always*
21794   # included in the symbol list
21795   include_expsyms_F77=
21796   # exclude_expsyms can be an extended regexp of symbols to exclude
21797   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21798   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21799   # as well as any symbol that contains `d'.
21800   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21801   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21802   # platforms (ab)use it in PIC code, but their linkers get confused if
21803   # the symbol is explicitly referenced.  Since portable code cannot
21804   # rely on this symbol name, it's probably fine to never include it in
21805   # preloaded symbol tables.
21806   extract_expsyms_cmds=
21807   # Just being paranoid about ensuring that cc_basename is set.
21808   for cc_temp in $compiler""; do
21809   case $cc_temp in
21810     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21811     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21812     \-*) ;;
21813     *) break;;
21814   esac
21815 done
21816 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21817
21818   case $host_os in
21819   cygwin* | mingw* | pw32*)
21820     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21821     # When not using gcc, we currently assume that we are using
21822     # Microsoft Visual C++.
21823     if test "$GCC" != yes; then
21824       with_gnu_ld=no
21825     fi
21826     ;;
21827   interix*)
21828     # we just hope/assume this is gcc and not c89 (= MSVC++)
21829     with_gnu_ld=yes
21830     ;;
21831   openbsd*)
21832     with_gnu_ld=no
21833     ;;
21834   esac
21835
21836   ld_shlibs_F77=yes
21837   if test "$with_gnu_ld" = yes; then
21838     # If archive_cmds runs LD, not CC, wlarc should be empty
21839     wlarc='${wl}'
21840
21841     # Set some defaults for GNU ld with shared library support. These
21842     # are reset later if shared libraries are not supported. Putting them
21843     # here allows them to be overridden if necessary.
21844     runpath_var=LD_RUN_PATH
21845     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21846     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21847     # ancient GNU ld didn't support --whole-archive et. al.
21848     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21849         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21850       else
21851         whole_archive_flag_spec_F77=
21852     fi
21853     supports_anon_versioning=no
21854     case `$LD -v 2>/dev/null` in
21855       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21856       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21857       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21858       *\ 2.11.*) ;; # other 2.11 versions
21859       *) supports_anon_versioning=yes ;;
21860     esac
21861
21862     # See if GNU ld supports shared libraries.
21863     case $host_os in
21864     aix3* | aix4* | aix5*)
21865       # On AIX/PPC, the GNU linker is very broken
21866       if test "$host_cpu" != ia64; then
21867         ld_shlibs_F77=no
21868         cat <<EOF 1>&2
21869
21870 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21871 *** to be unable to reliably create shared libraries on AIX.
21872 *** Therefore, libtool is disabling shared libraries support.  If you
21873 *** really care for shared libraries, you may want to modify your PATH
21874 *** so that a non-GNU linker is found, and then restart.
21875
21876 EOF
21877       fi
21878       ;;
21879
21880     amigaos*)
21881       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)'
21882       hardcode_libdir_flag_spec_F77='-L$libdir'
21883       hardcode_minus_L_F77=yes
21884
21885       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21886       # that the semantics of dynamic libraries on AmigaOS, at least up
21887       # to version 4, is to share data among multiple programs linked
21888       # with the same dynamic library.  Since this doesn't match the
21889       # behavior of shared libraries on other platforms, we can't use
21890       # them.
21891       ld_shlibs_F77=no
21892       ;;
21893
21894     beos*)
21895       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21896         allow_undefined_flag_F77=unsupported
21897         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21898         # support --undefined.  This deserves some investigation.  FIXME
21899         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21900       else
21901         ld_shlibs_F77=no
21902       fi
21903       ;;
21904
21905     cygwin* | mingw* | pw32*)
21906       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21907       # as there is no search path for DLLs.
21908       hardcode_libdir_flag_spec_F77='-L$libdir'
21909       allow_undefined_flag_F77=unsupported
21910       always_export_symbols_F77=no
21911       enable_shared_with_static_runtimes_F77=yes
21912       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21913
21914       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21915         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21916         # If the export-symbols file already is a .def file (1st line
21917         # is EXPORTS), use it as is; otherwise, prepend...
21918         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21919           cp $export_symbols $output_objdir/$soname.def;
21920         else
21921           echo EXPORTS > $output_objdir/$soname.def;
21922           cat $export_symbols >> $output_objdir/$soname.def;
21923         fi~
21924         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21925       else
21926         ld_shlibs_F77=no
21927       fi
21928       ;;
21929
21930     interix3*)
21931       hardcode_direct_F77=no
21932       hardcode_shlibpath_var_F77=no
21933       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21934       export_dynamic_flag_spec_F77='${wl}-E'
21935       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21936       # Instead, shared libraries are loaded at an image base (0x10000000 by
21937       # default) and relocated if they conflict, which is a slow very memory
21938       # consuming and fragmenting process.  To avoid this, we pick a random,
21939       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21940       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21941       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'
21942       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'
21943       ;;
21944
21945     linux*)
21946       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21947         tmp_addflag=
21948         case $cc_basename,$host_cpu in
21949         pgcc*)                          # Portland Group C compiler
21950           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'
21951           tmp_addflag=' $pic_flag'
21952           ;;
21953         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21954           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'
21955           tmp_addflag=' $pic_flag -Mnomain' ;;
21956         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21957           tmp_addflag=' -i_dynamic' ;;
21958         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21959           tmp_addflag=' -i_dynamic -nofor_main' ;;
21960         ifc* | ifort*)                  # Intel Fortran compiler
21961           tmp_addflag=' -nofor_main' ;;
21962         esac
21963         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21964
21965         if test $supports_anon_versioning = yes; then
21966           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21967   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21968   $echo "local: *; };" >> $output_objdir/$libname.ver~
21969           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21970         fi
21971       else
21972         ld_shlibs_F77=no
21973       fi
21974       ;;
21975
21976     netbsd*)
21977       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21978         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21979         wlarc=
21980       else
21981         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21982         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21983       fi
21984       ;;
21985
21986     solaris*)
21987       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21988         ld_shlibs_F77=no
21989         cat <<EOF 1>&2
21990
21991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21992 *** create shared libraries on Solaris systems.  Therefore, libtool
21993 *** is disabling shared libraries support.  We urge you to upgrade GNU
21994 *** binutils to release 2.9.1 or newer.  Another option is to modify
21995 *** your PATH or compiler configuration so that the native linker is
21996 *** used, and then restart.
21997
21998 EOF
21999       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22000         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22001         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22002       else
22003         ld_shlibs_F77=no
22004       fi
22005       ;;
22006
22007     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22008       case `$LD -v 2>&1` in
22009         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22010         ld_shlibs_F77=no
22011         cat <<_LT_EOF 1>&2
22012
22013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22014 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22015 *** is disabling shared libraries support.  We urge you to upgrade GNU
22016 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22017 *** your PATH or compiler configuration so that the native linker is
22018 *** used, and then restart.
22019
22020 _LT_EOF
22021         ;;
22022         *)
22023           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22024             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22025             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22026             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22027           else
22028             ld_shlibs_F77=no
22029           fi
22030         ;;
22031       esac
22032       ;;
22033
22034     sunos4*)
22035       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22036       wlarc=
22037       hardcode_direct_F77=yes
22038       hardcode_shlibpath_var_F77=no
22039       ;;
22040
22041     *)
22042       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22043         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22044         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22045       else
22046         ld_shlibs_F77=no
22047       fi
22048       ;;
22049     esac
22050
22051     if test "$ld_shlibs_F77" = no; then
22052       runpath_var=
22053       hardcode_libdir_flag_spec_F77=
22054       export_dynamic_flag_spec_F77=
22055       whole_archive_flag_spec_F77=
22056     fi
22057   else
22058     # PORTME fill in a description of your system's linker (not GNU ld)
22059     case $host_os in
22060     aix3*)
22061       allow_undefined_flag_F77=unsupported
22062       always_export_symbols_F77=yes
22063       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'
22064       # Note: this linker hardcodes the directories in LIBPATH if there
22065       # are no directories specified by -L.
22066       hardcode_minus_L_F77=yes
22067       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22068         # Neither direct hardcoding nor static linking is supported with a
22069         # broken collect2.
22070         hardcode_direct_F77=unsupported
22071       fi
22072       ;;
22073
22074     aix4* | aix5*)
22075       if test "$host_cpu" = ia64; then
22076         # On IA64, the linker does run time linking by default, so we don't
22077         # have to do anything special.
22078         aix_use_runtimelinking=no
22079         exp_sym_flag='-Bexport'
22080         no_entry_flag=""
22081       else
22082         # If we're using GNU nm, then we don't want the "-C" option.
22083         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22084         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22085           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'
22086         else
22087           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'
22088         fi
22089         aix_use_runtimelinking=no
22090
22091         # Test if we are trying to use run time linking or normal
22092         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22093         # need to do runtime linking.
22094         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22095           for ld_flag in $LDFLAGS; do
22096           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22097             aix_use_runtimelinking=yes
22098             break
22099           fi
22100           done
22101           ;;
22102         esac
22103
22104         exp_sym_flag='-bexport'
22105         no_entry_flag='-bnoentry'
22106       fi
22107
22108       # When large executables or shared objects are built, AIX ld can
22109       # have problems creating the table of contents.  If linking a library
22110       # or program results in "error TOC overflow" add -mminimal-toc to
22111       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22112       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22113
22114       archive_cmds_F77=''
22115       hardcode_direct_F77=yes
22116       hardcode_libdir_separator_F77=':'
22117       link_all_deplibs_F77=yes
22118
22119       if test "$GCC" = yes; then
22120         case $host_os in aix4.[012]|aix4.[012].*)
22121         # We only want to do this on AIX 4.2 and lower, the check
22122         # below for broken collect2 doesn't work under 4.3+
22123           collect2name=`${CC} -print-prog-name=collect2`
22124           if test -f "$collect2name" && \
22125            strings "$collect2name" | grep resolve_lib_name >/dev/null
22126           then
22127           # We have reworked collect2
22128           hardcode_direct_F77=yes
22129           else
22130           # We have old collect2
22131           hardcode_direct_F77=unsupported
22132           # It fails to find uninstalled libraries when the uninstalled
22133           # path is not listed in the libpath.  Setting hardcode_minus_L
22134           # to unsupported forces relinking
22135           hardcode_minus_L_F77=yes
22136           hardcode_libdir_flag_spec_F77='-L$libdir'
22137           hardcode_libdir_separator_F77=
22138           fi
22139           ;;
22140         esac
22141         shared_flag='-shared'
22142         if test "$aix_use_runtimelinking" = yes; then
22143           shared_flag="$shared_flag "'${wl}-G'
22144         fi
22145       else
22146         # not using gcc
22147         if test "$host_cpu" = ia64; then
22148         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22149         # chokes on -Wl,-G. The following line is correct:
22150           shared_flag='-G'
22151         else
22152           if test "$aix_use_runtimelinking" = yes; then
22153             shared_flag='${wl}-G'
22154           else
22155             shared_flag='${wl}-bM:SRE'
22156           fi
22157         fi
22158       fi
22159
22160       # It seems that -bexpall does not export symbols beginning with
22161       # underscore (_), so it is better to generate a list of symbols to export.
22162       always_export_symbols_F77=yes
22163       if test "$aix_use_runtimelinking" = yes; then
22164         # Warning - without using the other runtime loading flags (-brtl),
22165         # -berok will link without error, but may produce a broken library.
22166         allow_undefined_flag_F77='-berok'
22167        # Determine the default libpath from the value encoded in an empty executable.
22168        cat >conftest.$ac_ext <<_ACEOF
22169       program main
22170
22171       end
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_link") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } &&
22187          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22188   { (case "(($ac_try" in
22189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190   *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193   (eval "$ac_try") 2>&5
22194   ac_status=$?
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); }; } &&
22197          { ac_try='test -s conftest$ac_exeext'
22198   { (case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203   (eval "$ac_try") 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207
22208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22209 }'`
22210 # Check for a 64-bit object if we didn't find anything.
22211 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; }
22212 }'`; fi
22213 else
22214   echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217
22218 fi
22219
22220 rm -f core conftest.err conftest.$ac_objext \
22221       conftest$ac_exeext conftest.$ac_ext
22222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22223
22224        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22225         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"
22226        else
22227         if test "$host_cpu" = ia64; then
22228           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22229           allow_undefined_flag_F77="-z nodefs"
22230           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"
22231         else
22232          # Determine the default libpath from the value encoded in an empty executable.
22233          cat >conftest.$ac_ext <<_ACEOF
22234       program main
22235
22236       end
22237 _ACEOF
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (ac_try="$ac_link"
22240 case "(($ac_try" in
22241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242   *) ac_try_echo=$ac_try;;
22243 esac
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245   (eval "$ac_link") 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22253   { (case "(($ac_try" in
22254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255   *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258   (eval "$ac_try") 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }; } &&
22262          { ac_try='test -s conftest$ac_exeext'
22263   { (case "(($ac_try" in
22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265   *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268   (eval "$ac_try") 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; }; then
22272
22273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22274 }'`
22275 # Check for a 64-bit object if we didn't find anything.
22276 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; }
22277 }'`; fi
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext \
22286       conftest$ac_exeext conftest.$ac_ext
22287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22288
22289          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22290           # Warning - without using the other run time loading flags,
22291           # -berok will link without error, but may produce a broken library.
22292           no_undefined_flag_F77=' ${wl}-bernotok'
22293           allow_undefined_flag_F77=' ${wl}-berok'
22294           # Exported symbols can be pulled into shared objects from archives
22295           whole_archive_flag_spec_F77='$convenience'
22296           archive_cmds_need_lc_F77=yes
22297           # This is similar to how AIX traditionally builds its shared libraries.
22298           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'
22299         fi
22300       fi
22301       ;;
22302
22303     amigaos*)
22304       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)'
22305       hardcode_libdir_flag_spec_F77='-L$libdir'
22306       hardcode_minus_L_F77=yes
22307       # see comment about different semantics on the GNU ld section
22308       ld_shlibs_F77=no
22309       ;;
22310
22311     bsdi[45]*)
22312       export_dynamic_flag_spec_F77=-rdynamic
22313       ;;
22314
22315     cygwin* | mingw* | pw32*)
22316       # When not using gcc, we currently assume that we are using
22317       # Microsoft Visual C++.
22318       # hardcode_libdir_flag_spec is actually meaningless, as there is
22319       # no search path for DLLs.
22320       hardcode_libdir_flag_spec_F77=' '
22321       allow_undefined_flag_F77=unsupported
22322       # Tell ltmain to make .lib files, not .a files.
22323       libext=lib
22324       # Tell ltmain to make .dll files, not .so files.
22325       shrext_cmds=".dll"
22326       # FIXME: Setting linknames here is a bad hack.
22327       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22328       # The linker will automatically build a .lib file if we build a DLL.
22329       old_archive_From_new_cmds_F77='true'
22330       # FIXME: Should let the user specify the lib program.
22331       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22332       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22333       enable_shared_with_static_runtimes_F77=yes
22334       ;;
22335
22336     darwin* | rhapsody*)
22337       case $host_os in
22338         rhapsody* | darwin1.[012])
22339          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22340          ;;
22341        *) # Darwin 1.3 on
22342          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22343            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22344          else
22345            case ${MACOSX_DEPLOYMENT_TARGET} in
22346              10.[012])
22347                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22348                ;;
22349              10.*)
22350                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22351                ;;
22352            esac
22353          fi
22354          ;;
22355       esac
22356       archive_cmds_need_lc_F77=no
22357       hardcode_direct_F77=no
22358       hardcode_automatic_F77=yes
22359       hardcode_shlibpath_var_F77=unsupported
22360       whole_archive_flag_spec_F77=''
22361       link_all_deplibs_F77=yes
22362     if test "$GCC" = yes ; then
22363         output_verbose_link_cmd='echo'
22364         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22365       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22366       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22367       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}'
22368       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}'
22369     else
22370       case $cc_basename in
22371         xlc*)
22372          output_verbose_link_cmd='echo'
22373          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22374          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22375           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22376          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}'
22377           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}'
22378           ;;
22379        *)
22380          ld_shlibs_F77=no
22381           ;;
22382       esac
22383     fi
22384       ;;
22385
22386     dgux*)
22387       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22388       hardcode_libdir_flag_spec_F77='-L$libdir'
22389       hardcode_shlibpath_var_F77=no
22390       ;;
22391
22392     freebsd1*)
22393       ld_shlibs_F77=no
22394       ;;
22395
22396     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22397     # support.  Future versions do this automatically, but an explicit c++rt0.o
22398     # does not break anything, and helps significantly (at the cost of a little
22399     # extra space).
22400     freebsd2.2*)
22401       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22402       hardcode_libdir_flag_spec_F77='-R$libdir'
22403       hardcode_direct_F77=yes
22404       hardcode_shlibpath_var_F77=no
22405       ;;
22406
22407     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22408     freebsd2*)
22409       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22410       hardcode_direct_F77=yes
22411       hardcode_minus_L_F77=yes
22412       hardcode_shlibpath_var_F77=no
22413       ;;
22414
22415     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22416     freebsd* | kfreebsd*-gnu | dragonfly*)
22417       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22418       hardcode_libdir_flag_spec_F77='-R$libdir'
22419       hardcode_direct_F77=yes
22420       hardcode_shlibpath_var_F77=no
22421       ;;
22422
22423     hpux9*)
22424       if test "$GCC" = yes; then
22425         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'
22426       else
22427         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'
22428       fi
22429       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22430       hardcode_libdir_separator_F77=:
22431       hardcode_direct_F77=yes
22432
22433       # hardcode_minus_L: Not really in the search PATH,
22434       # but as the default location of the library.
22435       hardcode_minus_L_F77=yes
22436       export_dynamic_flag_spec_F77='${wl}-E'
22437       ;;
22438
22439     hpux10*)
22440       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22441         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22442       else
22443         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22444       fi
22445       if test "$with_gnu_ld" = no; then
22446         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22447         hardcode_libdir_separator_F77=:
22448
22449         hardcode_direct_F77=yes
22450         export_dynamic_flag_spec_F77='${wl}-E'
22451
22452         # hardcode_minus_L: Not really in the search PATH,
22453         # but as the default location of the library.
22454         hardcode_minus_L_F77=yes
22455       fi
22456       ;;
22457
22458     hpux11*)
22459       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22460         case $host_cpu in
22461         hppa*64*)
22462           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463           ;;
22464         ia64*)
22465           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22466           ;;
22467         *)
22468           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22469           ;;
22470         esac
22471       else
22472         case $host_cpu in
22473         hppa*64*)
22474           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22475           ;;
22476         ia64*)
22477           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22478           ;;
22479         *)
22480           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22481           ;;
22482         esac
22483       fi
22484       if test "$with_gnu_ld" = no; then
22485         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22486         hardcode_libdir_separator_F77=:
22487
22488         case $host_cpu in
22489         hppa*64*|ia64*)
22490           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22491           hardcode_direct_F77=no
22492           hardcode_shlibpath_var_F77=no
22493           ;;
22494         *)
22495           hardcode_direct_F77=yes
22496           export_dynamic_flag_spec_F77='${wl}-E'
22497
22498           # hardcode_minus_L: Not really in the search PATH,
22499           # but as the default location of the library.
22500           hardcode_minus_L_F77=yes
22501           ;;
22502         esac
22503       fi
22504       ;;
22505
22506     irix5* | irix6* | nonstopux*)
22507       if test "$GCC" = yes; then
22508         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'
22509       else
22510         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'
22511         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22512       fi
22513       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22514       hardcode_libdir_separator_F77=:
22515       link_all_deplibs_F77=yes
22516       ;;
22517
22518     netbsd*)
22519       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22520         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22521       else
22522         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22523       fi
22524       hardcode_libdir_flag_spec_F77='-R$libdir'
22525       hardcode_direct_F77=yes
22526       hardcode_shlibpath_var_F77=no
22527       ;;
22528
22529     newsos6)
22530       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22531       hardcode_direct_F77=yes
22532       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22533       hardcode_libdir_separator_F77=:
22534       hardcode_shlibpath_var_F77=no
22535       ;;
22536
22537     openbsd*)
22538       hardcode_direct_F77=yes
22539       hardcode_shlibpath_var_F77=no
22540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22541         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22542         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22543         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22544         export_dynamic_flag_spec_F77='${wl}-E'
22545       else
22546        case $host_os in
22547          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22548            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22549            hardcode_libdir_flag_spec_F77='-R$libdir'
22550            ;;
22551          *)
22552            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22553            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22554            ;;
22555        esac
22556       fi
22557       ;;
22558
22559     os2*)
22560       hardcode_libdir_flag_spec_F77='-L$libdir'
22561       hardcode_minus_L_F77=yes
22562       allow_undefined_flag_F77=unsupported
22563       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'
22564       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22565       ;;
22566
22567     osf3*)
22568       if test "$GCC" = yes; then
22569         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22570         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'
22571       else
22572         allow_undefined_flag_F77=' -expect_unresolved \*'
22573         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'
22574       fi
22575       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22576       hardcode_libdir_separator_F77=:
22577       ;;
22578
22579     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22580       if test "$GCC" = yes; then
22581         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22582         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'
22583         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22584       else
22585         allow_undefined_flag_F77=' -expect_unresolved \*'
22586         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'
22587         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~
22588         $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'
22589
22590         # Both c and cxx compiler support -rpath directly
22591         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22592       fi
22593       hardcode_libdir_separator_F77=:
22594       ;;
22595
22596     solaris*)
22597       no_undefined_flag_F77=' -z text'
22598       if test "$GCC" = yes; then
22599         wlarc='${wl}'
22600         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22601         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22602           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22603       else
22604         wlarc=''
22605         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22606         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22607         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22608       fi
22609       hardcode_libdir_flag_spec_F77='-R$libdir'
22610       hardcode_shlibpath_var_F77=no
22611       case $host_os in
22612       solaris2.[0-5] | solaris2.[0-5].*) ;;
22613       *)
22614         # The compiler driver will combine linker options so we
22615         # cannot just pass the convience library names through
22616         # without $wl, iff we do not link with $LD.
22617         # Luckily, gcc supports the same syntax we need for Sun Studio.
22618         # Supported since Solaris 2.6 (maybe 2.5.1?)
22619         case $wlarc in
22620         '')
22621           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22622         *)
22623           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' ;;
22624         esac ;;
22625       esac
22626       link_all_deplibs_F77=yes
22627       ;;
22628
22629     sunos4*)
22630       if test "x$host_vendor" = xsequent; then
22631         # Use $CC to link under sequent, because it throws in some extra .o
22632         # files that make .init and .fini sections work.
22633         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22634       else
22635         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22636       fi
22637       hardcode_libdir_flag_spec_F77='-L$libdir'
22638       hardcode_direct_F77=yes
22639       hardcode_minus_L_F77=yes
22640       hardcode_shlibpath_var_F77=no
22641       ;;
22642
22643     sysv4)
22644       case $host_vendor in
22645         sni)
22646           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22647           hardcode_direct_F77=yes # is this really true???
22648         ;;
22649         siemens)
22650           ## LD is ld it makes a PLAMLIB
22651           ## CC just makes a GrossModule.
22652           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22653           reload_cmds_F77='$CC -r -o $output$reload_objs'
22654           hardcode_direct_F77=no
22655         ;;
22656         motorola)
22657           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22658           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22659         ;;
22660       esac
22661       runpath_var='LD_RUN_PATH'
22662       hardcode_shlibpath_var_F77=no
22663       ;;
22664
22665     sysv4.3*)
22666       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22667       hardcode_shlibpath_var_F77=no
22668       export_dynamic_flag_spec_F77='-Bexport'
22669       ;;
22670
22671     sysv4*MP*)
22672       if test -d /usr/nec; then
22673         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22674         hardcode_shlibpath_var_F77=no
22675         runpath_var=LD_RUN_PATH
22676         hardcode_runpath_var=yes
22677         ld_shlibs_F77=yes
22678       fi
22679       ;;
22680
22681     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22682       no_undefined_flag_F77='${wl}-z,text'
22683       archive_cmds_need_lc_F77=no
22684       hardcode_shlibpath_var_F77=no
22685       runpath_var='LD_RUN_PATH'
22686
22687       if test "$GCC" = yes; then
22688         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22689         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22690       else
22691         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22692         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22693       fi
22694       ;;
22695
22696     sysv5* | sco3.2v5* | sco5v6*)
22697       # Note: We can NOT use -z defs as we might desire, because we do not
22698       # link with -lc, and that would cause any symbols used from libc to
22699       # always be unresolved, which means just about no library would
22700       # ever link correctly.  If we're not using GNU ld we use -z text
22701       # though, which does catch some bad symbols but isn't as heavy-handed
22702       # as -z defs.
22703       no_undefined_flag_F77='${wl}-z,text'
22704       allow_undefined_flag_F77='${wl}-z,nodefs'
22705       archive_cmds_need_lc_F77=no
22706       hardcode_shlibpath_var_F77=no
22707       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22708       hardcode_libdir_separator_F77=':'
22709       link_all_deplibs_F77=yes
22710       export_dynamic_flag_spec_F77='${wl}-Bexport'
22711       runpath_var='LD_RUN_PATH'
22712
22713       if test "$GCC" = yes; then
22714         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22715         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22716       else
22717         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22718         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22719       fi
22720       ;;
22721
22722     uts4*)
22723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22724       hardcode_libdir_flag_spec_F77='-L$libdir'
22725       hardcode_shlibpath_var_F77=no
22726       ;;
22727
22728     *)
22729       ld_shlibs_F77=no
22730       ;;
22731     esac
22732   fi
22733
22734 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22735 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22736 test "$ld_shlibs_F77" = no && can_build_shared=no
22737
22738 #
22739 # Do we need to explicitly link libc?
22740 #
22741 case "x$archive_cmds_need_lc_F77" in
22742 x|xyes)
22743   # Assume -lc should be added
22744   archive_cmds_need_lc_F77=yes
22745
22746   if test "$enable_shared" = yes && test "$GCC" = yes; then
22747     case $archive_cmds_F77 in
22748     *'~'*)
22749       # FIXME: we may have to deal with multi-command sequences.
22750       ;;
22751     '$CC '*)
22752       # Test whether the compiler implicitly links with -lc since on some
22753       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22754       # to ld, don't add -lc before -lgcc.
22755       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22757       $rm conftest*
22758       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22759
22760       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22761   (eval $ac_compile) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } 2>conftest.err; then
22765         soname=conftest
22766         lib=conftest
22767         libobjs=conftest.$ac_objext
22768         deplibs=
22769         wl=$lt_prog_compiler_wl_F77
22770         pic_flag=$lt_prog_compiler_pic_F77
22771         compiler_flags=-v
22772         linker_flags=-v
22773         verstring=
22774         output_objdir=.
22775         libname=conftest
22776         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22777         allow_undefined_flag_F77=
22778         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22779   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }
22783         then
22784           archive_cmds_need_lc_F77=no
22785         else
22786           archive_cmds_need_lc_F77=yes
22787         fi
22788         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22789       else
22790         cat conftest.err 1>&5
22791       fi
22792       $rm conftest*
22793       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22794 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22795       ;;
22796     esac
22797   fi
22798   ;;
22799 esac
22800
22801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22803 library_names_spec=
22804 libname_spec='lib$name'
22805 soname_spec=
22806 shrext_cmds=".so"
22807 postinstall_cmds=
22808 postuninstall_cmds=
22809 finish_cmds=
22810 finish_eval=
22811 shlibpath_var=
22812 shlibpath_overrides_runpath=unknown
22813 version_type=none
22814 dynamic_linker="$host_os ld.so"
22815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22816 if test "$GCC" = yes; then
22817   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22818   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22819     # if the path contains ";" then we assume it to be the separator
22820     # otherwise default to the standard path separator (i.e. ":") - it is
22821     # assumed that no part of a normal pathname contains ";" but that should
22822     # okay in the real world where ";" in dirpaths is itself problematic.
22823     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22824   else
22825     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22826   fi
22827 else
22828   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22829 fi
22830 need_lib_prefix=unknown
22831 hardcode_into_libs=no
22832
22833 # when you set need_version to no, make sure it does not cause -set_version
22834 # flags to be left without arguments
22835 need_version=unknown
22836
22837 case $host_os in
22838 aix3*)
22839   version_type=linux
22840   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22841   shlibpath_var=LIBPATH
22842
22843   # AIX 3 has no versioning support, so we append a major version to the name.
22844   soname_spec='${libname}${release}${shared_ext}$major'
22845   ;;
22846
22847 aix4* | aix5*)
22848   version_type=linux
22849   need_lib_prefix=no
22850   need_version=no
22851   hardcode_into_libs=yes
22852   if test "$host_cpu" = ia64; then
22853     # AIX 5 supports IA64
22854     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22855     shlibpath_var=LD_LIBRARY_PATH
22856   else
22857     # With GCC up to 2.95.x, collect2 would create an import file
22858     # for dependence libraries.  The import file would start with
22859     # the line `#! .'.  This would cause the generated library to
22860     # depend on `.', always an invalid library.  This was fixed in
22861     # development snapshots of GCC prior to 3.0.
22862     case $host_os in
22863       aix4 | aix4.[01] | aix4.[01].*)
22864       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22865            echo ' yes '
22866            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22867         :
22868       else
22869         can_build_shared=no
22870       fi
22871       ;;
22872     esac
22873     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22874     # soname into executable. Probably we can add versioning support to
22875     # collect2, so additional links can be useful in future.
22876     if test "$aix_use_runtimelinking" = yes; then
22877       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22878       # instead of lib<name>.a to let people know that these are not
22879       # typical AIX shared libraries.
22880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881     else
22882       # We preserve .a as extension for shared libraries through AIX4.2
22883       # and later when we are not doing run time linking.
22884       library_names_spec='${libname}${release}.a $libname.a'
22885       soname_spec='${libname}${release}${shared_ext}$major'
22886     fi
22887     shlibpath_var=LIBPATH
22888   fi
22889   ;;
22890
22891 amigaos*)
22892   library_names_spec='$libname.ixlibrary $libname.a'
22893   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22894   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'
22895   ;;
22896
22897 beos*)
22898   library_names_spec='${libname}${shared_ext}'
22899   dynamic_linker="$host_os ld.so"
22900   shlibpath_var=LIBRARY_PATH
22901   ;;
22902
22903 bsdi[45]*)
22904   version_type=linux
22905   need_version=no
22906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907   soname_spec='${libname}${release}${shared_ext}$major'
22908   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22909   shlibpath_var=LD_LIBRARY_PATH
22910   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22911   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22912   # the default ld.so.conf also contains /usr/contrib/lib and
22913   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22914   # libtool to hard-code these into programs
22915   ;;
22916
22917 cygwin* | mingw* | pw32*)
22918   version_type=windows
22919   shrext_cmds=".dll"
22920   need_version=no
22921   need_lib_prefix=no
22922
22923   case $GCC,$host_os in
22924   yes,cygwin* | yes,mingw* | yes,pw32*)
22925     library_names_spec='$libname.dll.a'
22926     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22927     postinstall_cmds='base_file=`basename \${file}`~
22928       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22929       dldir=$destdir/`dirname \$dlpath`~
22930       test -d \$dldir || mkdir -p \$dldir~
22931       $install_prog $dir/$dlname \$dldir/$dlname~
22932       chmod a+x \$dldir/$dlname'
22933     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22934       dlpath=$dir/\$dldll~
22935        $rm \$dlpath'
22936     shlibpath_overrides_runpath=yes
22937
22938     case $host_os in
22939     cygwin*)
22940       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22941       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22942       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22943       ;;
22944     mingw*)
22945       # MinGW DLLs use traditional 'lib' prefix
22946       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22947       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22948       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22949         # It is most probably a Windows format PATH printed by
22950         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22951         # path with ; separators, and with drive letters. We can handle the
22952         # drive letters (cygwin fileutils understands them), so leave them,
22953         # especially as we might pass files found there to a mingw objdump,
22954         # which wouldn't understand a cygwinified path. Ahh.
22955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22956       else
22957         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22958       fi
22959       ;;
22960     pw32*)
22961       # pw32 DLLs use 'pw' prefix rather than 'lib'
22962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22963       ;;
22964     esac
22965     ;;
22966
22967   *)
22968     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22969     ;;
22970   esac
22971   dynamic_linker='Win32 ld.exe'
22972   # FIXME: first we should search . and the directory the executable is in
22973   shlibpath_var=PATH
22974   ;;
22975
22976 darwin* | rhapsody*)
22977   dynamic_linker="$host_os dyld"
22978   version_type=darwin
22979   need_lib_prefix=no
22980   need_version=no
22981   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22982   soname_spec='${libname}${release}${major}$shared_ext'
22983   shlibpath_overrides_runpath=yes
22984   shlibpath_var=DYLD_LIBRARY_PATH
22985   shrext_cmds='.dylib'
22986   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22987   if test "$GCC" = yes; then
22988     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"`
22989   else
22990     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22991   fi
22992   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22993   ;;
22994
22995 dgux*)
22996   version_type=linux
22997   need_lib_prefix=no
22998   need_version=no
22999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23000   soname_spec='${libname}${release}${shared_ext}$major'
23001   shlibpath_var=LD_LIBRARY_PATH
23002   ;;
23003
23004 freebsd1*)
23005   dynamic_linker=no
23006   ;;
23007
23008 kfreebsd*-gnu)
23009   version_type=linux
23010   need_lib_prefix=no
23011   need_version=no
23012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23013   soname_spec='${libname}${release}${shared_ext}$major'
23014   shlibpath_var=LD_LIBRARY_PATH
23015   shlibpath_overrides_runpath=no
23016   hardcode_into_libs=yes
23017   dynamic_linker='GNU ld.so'
23018   ;;
23019
23020 freebsd* | dragonfly*)
23021   # DragonFly does not have aout.  When/if they implement a new
23022   # versioning mechanism, adjust this.
23023   if test -x /usr/bin/objformat; then
23024     objformat=`/usr/bin/objformat`
23025   else
23026     case $host_os in
23027     freebsd[123]*) objformat=aout ;;
23028     *) objformat=elf ;;
23029     esac
23030   fi
23031   version_type=freebsd-$objformat
23032   case $version_type in
23033     freebsd-elf*)
23034       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23035       need_version=no
23036       need_lib_prefix=no
23037       ;;
23038     freebsd-*)
23039       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23040       need_version=yes
23041       ;;
23042   esac
23043   shlibpath_var=LD_LIBRARY_PATH
23044   case $host_os in
23045   freebsd2*)
23046     shlibpath_overrides_runpath=yes
23047     ;;
23048   freebsd3.[01]* | freebsdelf3.[01]*)
23049     shlibpath_overrides_runpath=yes
23050     hardcode_into_libs=yes
23051     ;;
23052   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23053   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23054     shlibpath_overrides_runpath=no
23055     hardcode_into_libs=yes
23056     ;;
23057   freebsd*) # from 4.6 on
23058     shlibpath_overrides_runpath=yes
23059     hardcode_into_libs=yes
23060     ;;
23061   esac
23062   ;;
23063
23064 gnu*)
23065   version_type=linux
23066   need_lib_prefix=no
23067   need_version=no
23068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23069   soname_spec='${libname}${release}${shared_ext}$major'
23070   shlibpath_var=LD_LIBRARY_PATH
23071   hardcode_into_libs=yes
23072   ;;
23073
23074 hpux9* | hpux10* | hpux11*)
23075   # Give a soname corresponding to the major version so that dld.sl refuses to
23076   # link against other versions.
23077   version_type=sunos
23078   need_lib_prefix=no
23079   need_version=no
23080   case $host_cpu in
23081   ia64*)
23082     shrext_cmds='.so'
23083     hardcode_into_libs=yes
23084     dynamic_linker="$host_os dld.so"
23085     shlibpath_var=LD_LIBRARY_PATH
23086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088     soname_spec='${libname}${release}${shared_ext}$major'
23089     if test "X$HPUX_IA64_MODE" = X32; then
23090       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23091     else
23092       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23093     fi
23094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23095     ;;
23096    hppa*64*)
23097      shrext_cmds='.sl'
23098      hardcode_into_libs=yes
23099      dynamic_linker="$host_os dld.sl"
23100      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23101      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23103      soname_spec='${libname}${release}${shared_ext}$major'
23104      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23105      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23106      ;;
23107    *)
23108     shrext_cmds='.sl'
23109     dynamic_linker="$host_os dld.sl"
23110     shlibpath_var=SHLIB_PATH
23111     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113     soname_spec='${libname}${release}${shared_ext}$major'
23114     ;;
23115   esac
23116   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23117   postinstall_cmds='chmod 555 $lib'
23118   ;;
23119
23120 interix3*)
23121   version_type=linux
23122   need_lib_prefix=no
23123   need_version=no
23124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23125   soname_spec='${libname}${release}${shared_ext}$major'
23126   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23127   shlibpath_var=LD_LIBRARY_PATH
23128   shlibpath_overrides_runpath=no
23129   hardcode_into_libs=yes
23130   ;;
23131
23132 irix5* | irix6* | nonstopux*)
23133   case $host_os in
23134     nonstopux*) version_type=nonstopux ;;
23135     *)
23136         if test "$lt_cv_prog_gnu_ld" = yes; then
23137                 version_type=linux
23138         else
23139                 version_type=irix
23140         fi ;;
23141   esac
23142   need_lib_prefix=no
23143   need_version=no
23144   soname_spec='${libname}${release}${shared_ext}$major'
23145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23146   case $host_os in
23147   irix5* | nonstopux*)
23148     libsuff= shlibsuff=
23149     ;;
23150   *)
23151     case $LD in # libtool.m4 will add one of these switches to LD
23152     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23153       libsuff= shlibsuff= libmagic=32-bit;;
23154     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23155       libsuff=32 shlibsuff=N32 libmagic=N32;;
23156     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23157       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23158     *) libsuff= shlibsuff= libmagic=never-match;;
23159     esac
23160     ;;
23161   esac
23162   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23163   shlibpath_overrides_runpath=no
23164   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23165   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23166   hardcode_into_libs=yes
23167   ;;
23168
23169 # No shared lib support for Linux oldld, aout, or coff.
23170 linux*oldld* | linux*aout* | linux*coff*)
23171   dynamic_linker=no
23172   ;;
23173
23174 # This must be Linux ELF.
23175 linux*)
23176   version_type=linux
23177   need_lib_prefix=no
23178   need_version=no
23179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180   soname_spec='${libname}${release}${shared_ext}$major'
23181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23182   shlibpath_var=LD_LIBRARY_PATH
23183   shlibpath_overrides_runpath=no
23184   # This implies no fast_install, which is unacceptable.
23185   # Some rework will be needed to allow for fast_install
23186   # before this can be enabled.
23187   hardcode_into_libs=yes
23188
23189   # Append ld.so.conf contents to the search path
23190   if test -f /etc/ld.so.conf; then
23191     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' ' '`
23192     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23193   fi
23194
23195   # We used to test for /lib/ld.so.1 and disable shared libraries on
23196   # powerpc, because MkLinux only supported shared libraries with the
23197   # GNU dynamic linker.  Since this was broken with cross compilers,
23198   # most powerpc-linux boxes support dynamic linking these days and
23199   # people can always --disable-shared, the test was removed, and we
23200   # assume the GNU/Linux dynamic linker is in use.
23201   dynamic_linker='GNU/Linux ld.so'
23202   ;;
23203
23204 knetbsd*-gnu)
23205   version_type=linux
23206   need_lib_prefix=no
23207   need_version=no
23208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23209   soname_spec='${libname}${release}${shared_ext}$major'
23210   shlibpath_var=LD_LIBRARY_PATH
23211   shlibpath_overrides_runpath=no
23212   hardcode_into_libs=yes
23213   dynamic_linker='GNU ld.so'
23214   ;;
23215
23216 netbsd*)
23217   version_type=sunos
23218   need_lib_prefix=no
23219   need_version=no
23220   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23222     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23223     dynamic_linker='NetBSD (a.out) ld.so'
23224   else
23225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226     soname_spec='${libname}${release}${shared_ext}$major'
23227     dynamic_linker='NetBSD ld.elf_so'
23228   fi
23229   shlibpath_var=LD_LIBRARY_PATH
23230   shlibpath_overrides_runpath=yes
23231   hardcode_into_libs=yes
23232   ;;
23233
23234 newsos6)
23235   version_type=linux
23236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23237   shlibpath_var=LD_LIBRARY_PATH
23238   shlibpath_overrides_runpath=yes
23239   ;;
23240
23241 nto-qnx*)
23242   version_type=linux
23243   need_lib_prefix=no
23244   need_version=no
23245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246   soname_spec='${libname}${release}${shared_ext}$major'
23247   shlibpath_var=LD_LIBRARY_PATH
23248   shlibpath_overrides_runpath=yes
23249   ;;
23250
23251 openbsd*)
23252   version_type=sunos
23253   sys_lib_dlsearch_path_spec="/usr/lib"
23254   need_lib_prefix=no
23255   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23256   case $host_os in
23257     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23258     *)                         need_version=no  ;;
23259   esac
23260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23262   shlibpath_var=LD_LIBRARY_PATH
23263   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23264     case $host_os in
23265       openbsd2.[89] | openbsd2.[89].*)
23266         shlibpath_overrides_runpath=no
23267         ;;
23268       *)
23269         shlibpath_overrides_runpath=yes
23270         ;;
23271       esac
23272   else
23273     shlibpath_overrides_runpath=yes
23274   fi
23275   ;;
23276
23277 os2*)
23278   libname_spec='$name'
23279   shrext_cmds=".dll"
23280   need_lib_prefix=no
23281   library_names_spec='$libname${shared_ext} $libname.a'
23282   dynamic_linker='OS/2 ld.exe'
23283   shlibpath_var=LIBPATH
23284   ;;
23285
23286 osf3* | osf4* | osf5*)
23287   version_type=osf
23288   need_lib_prefix=no
23289   need_version=no
23290   soname_spec='${libname}${release}${shared_ext}$major'
23291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292   shlibpath_var=LD_LIBRARY_PATH
23293   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23294   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23295   ;;
23296
23297 solaris*)
23298   version_type=linux
23299   need_lib_prefix=no
23300   need_version=no
23301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23302   soname_spec='${libname}${release}${shared_ext}$major'
23303   shlibpath_var=LD_LIBRARY_PATH
23304   shlibpath_overrides_runpath=yes
23305   hardcode_into_libs=yes
23306   # ldd complains unless libraries are executable
23307   postinstall_cmds='chmod +x $lib'
23308   ;;
23309
23310 sunos4*)
23311   version_type=sunos
23312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23313   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23314   shlibpath_var=LD_LIBRARY_PATH
23315   shlibpath_overrides_runpath=yes
23316   if test "$with_gnu_ld" = yes; then
23317     need_lib_prefix=no
23318   fi
23319   need_version=yes
23320   ;;
23321
23322 sysv4 | sysv4.3*)
23323   version_type=linux
23324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23325   soname_spec='${libname}${release}${shared_ext}$major'
23326   shlibpath_var=LD_LIBRARY_PATH
23327   case $host_vendor in
23328     sni)
23329       shlibpath_overrides_runpath=no
23330       need_lib_prefix=no
23331       export_dynamic_flag_spec='${wl}-Blargedynsym'
23332       runpath_var=LD_RUN_PATH
23333       ;;
23334     siemens)
23335       need_lib_prefix=no
23336       ;;
23337     motorola)
23338       need_lib_prefix=no
23339       need_version=no
23340       shlibpath_overrides_runpath=no
23341       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23342       ;;
23343   esac
23344   ;;
23345
23346 sysv4*MP*)
23347   if test -d /usr/nec ;then
23348     version_type=linux
23349     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23350     soname_spec='$libname${shared_ext}.$major'
23351     shlibpath_var=LD_LIBRARY_PATH
23352   fi
23353   ;;
23354
23355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23356   version_type=freebsd-elf
23357   need_lib_prefix=no
23358   need_version=no
23359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23360   soname_spec='${libname}${release}${shared_ext}$major'
23361   shlibpath_var=LD_LIBRARY_PATH
23362   hardcode_into_libs=yes
23363   if test "$with_gnu_ld" = yes; then
23364     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23365     shlibpath_overrides_runpath=no
23366   else
23367     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23368     shlibpath_overrides_runpath=yes
23369     case $host_os in
23370       sco3.2v5*)
23371         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23372         ;;
23373     esac
23374   fi
23375   sys_lib_dlsearch_path_spec='/usr/lib'
23376   ;;
23377
23378 uts4*)
23379   version_type=linux
23380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23381   soname_spec='${libname}${release}${shared_ext}$major'
23382   shlibpath_var=LD_LIBRARY_PATH
23383   ;;
23384
23385 *)
23386   dynamic_linker=no
23387   ;;
23388 esac
23389 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23390 echo "${ECHO_T}$dynamic_linker" >&6; }
23391 test "$dynamic_linker" = no && can_build_shared=no
23392
23393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23394 if test "$GCC" = yes; then
23395   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23396 fi
23397
23398 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23399 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23400 hardcode_action_F77=
23401 if test -n "$hardcode_libdir_flag_spec_F77" || \
23402    test -n "$runpath_var_F77" || \
23403    test "X$hardcode_automatic_F77" = "Xyes" ; then
23404
23405   # We can hardcode non-existant directories.
23406   if test "$hardcode_direct_F77" != no &&
23407      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23408      # have to relink, otherwise we might link with an installed library
23409      # when we should be linking with a yet-to-be-installed one
23410      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23411      test "$hardcode_minus_L_F77" != no; then
23412     # Linking always hardcodes the temporary library directory.
23413     hardcode_action_F77=relink
23414   else
23415     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23416     hardcode_action_F77=immediate
23417   fi
23418 else
23419   # We cannot hardcode anything, or else we can only hardcode existing
23420   # directories.
23421   hardcode_action_F77=unsupported
23422 fi
23423 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23424 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23425
23426 if test "$hardcode_action_F77" = relink; then
23427   # Fast installation is not supported
23428   enable_fast_install=no
23429 elif test "$shlibpath_overrides_runpath" = yes ||
23430      test "$enable_shared" = no; then
23431   # Fast installation is not necessary
23432   enable_fast_install=needless
23433 fi
23434
23435
23436 # The else clause should only fire when bootstrapping the
23437 # libtool distribution, otherwise you forgot to ship ltmain.sh
23438 # with your package, and you will get complaints that there are
23439 # no rules to generate ltmain.sh.
23440 if test -f "$ltmain"; then
23441   # See if we are running on zsh, and set the options which allow our commands through
23442   # without removal of \ escapes.
23443   if test -n "${ZSH_VERSION+set}" ; then
23444     setopt NO_GLOB_SUBST
23445   fi
23446   # Now quote all the things that may contain metacharacters while being
23447   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23448   # variables and quote the copies for generation of the libtool script.
23449   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23450     SED SHELL STRIP \
23451     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23452     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23453     deplibs_check_method reload_flag reload_cmds need_locks \
23454     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23455     lt_cv_sys_global_symbol_to_c_name_address \
23456     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23457     old_postinstall_cmds old_postuninstall_cmds \
23458     compiler_F77 \
23459     CC_F77 \
23460     LD_F77 \
23461     lt_prog_compiler_wl_F77 \
23462     lt_prog_compiler_pic_F77 \
23463     lt_prog_compiler_static_F77 \
23464     lt_prog_compiler_no_builtin_flag_F77 \
23465     export_dynamic_flag_spec_F77 \
23466     thread_safe_flag_spec_F77 \
23467     whole_archive_flag_spec_F77 \
23468     enable_shared_with_static_runtimes_F77 \
23469     old_archive_cmds_F77 \
23470     old_archive_from_new_cmds_F77 \
23471     predep_objects_F77 \
23472     postdep_objects_F77 \
23473     predeps_F77 \
23474     postdeps_F77 \
23475     compiler_lib_search_path_F77 \
23476     archive_cmds_F77 \
23477     archive_expsym_cmds_F77 \
23478     postinstall_cmds_F77 \
23479     postuninstall_cmds_F77 \
23480     old_archive_from_expsyms_cmds_F77 \
23481     allow_undefined_flag_F77 \
23482     no_undefined_flag_F77 \
23483     export_symbols_cmds_F77 \
23484     hardcode_libdir_flag_spec_F77 \
23485     hardcode_libdir_flag_spec_ld_F77 \
23486     hardcode_libdir_separator_F77 \
23487     hardcode_automatic_F77 \
23488     module_cmds_F77 \
23489     module_expsym_cmds_F77 \
23490     lt_cv_prog_compiler_c_o_F77 \
23491     exclude_expsyms_F77 \
23492     include_expsyms_F77; do
23493
23494     case $var in
23495     old_archive_cmds_F77 | \
23496     old_archive_from_new_cmds_F77 | \
23497     archive_cmds_F77 | \
23498     archive_expsym_cmds_F77 | \
23499     module_cmds_F77 | \
23500     module_expsym_cmds_F77 | \
23501     old_archive_from_expsyms_cmds_F77 | \
23502     export_symbols_cmds_F77 | \
23503     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23504     postinstall_cmds | postuninstall_cmds | \
23505     old_postinstall_cmds | old_postuninstall_cmds | \
23506     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23507       # Double-quote double-evaled strings.
23508       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23509       ;;
23510     *)
23511       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23512       ;;
23513     esac
23514   done
23515
23516   case $lt_echo in
23517   *'\$0 --fallback-echo"')
23518     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23519     ;;
23520   esac
23521
23522 cfgfile="$ofile"
23523
23524   cat <<__EOF__ >> "$cfgfile"
23525 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23526
23527 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23528
23529 # Shell to use when invoking shell scripts.
23530 SHELL=$lt_SHELL
23531
23532 # Whether or not to build shared libraries.
23533 build_libtool_libs=$enable_shared
23534
23535 # Whether or not to build static libraries.
23536 build_old_libs=$enable_static
23537
23538 # Whether or not to add -lc for building shared libraries.
23539 build_libtool_need_lc=$archive_cmds_need_lc_F77
23540
23541 # Whether or not to disallow shared libs when runtime libs are static
23542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23543
23544 # Whether or not to optimize for fast installation.
23545 fast_install=$enable_fast_install
23546
23547 # The host system.
23548 host_alias=$host_alias
23549 host=$host
23550 host_os=$host_os
23551
23552 # The build system.
23553 build_alias=$build_alias
23554 build=$build
23555 build_os=$build_os
23556
23557 # An echo program that does not interpret backslashes.
23558 echo=$lt_echo
23559
23560 # The archiver.
23561 AR=$lt_AR
23562 AR_FLAGS=$lt_AR_FLAGS
23563
23564 # A C compiler.
23565 LTCC=$lt_LTCC
23566
23567 # LTCC compiler flags.
23568 LTCFLAGS=$lt_LTCFLAGS
23569
23570 # A language-specific compiler.
23571 CC=$lt_compiler_F77
23572
23573 # Is the compiler the GNU C compiler?
23574 with_gcc=$GCC_F77
23575
23576 # An ERE matcher.
23577 EGREP=$lt_EGREP
23578
23579 # The linker used to build libraries.
23580 LD=$lt_LD_F77
23581
23582 # Whether we need hard or soft links.
23583 LN_S=$lt_LN_S
23584
23585 # A BSD-compatible nm program.
23586 NM=$lt_NM
23587
23588 # A symbol stripping program
23589 STRIP=$lt_STRIP
23590
23591 # Used to examine libraries when file_magic_cmd begins "file"
23592 MAGIC_CMD=$MAGIC_CMD
23593
23594 # Used on cygwin: DLL creation program.
23595 DLLTOOL="$DLLTOOL"
23596
23597 # Used on cygwin: object dumper.
23598 OBJDUMP="$OBJDUMP"
23599
23600 # Used on cygwin: assembler.
23601 AS="$AS"
23602
23603 # The name of the directory that contains temporary libtool files.
23604 objdir=$objdir
23605
23606 # How to create reloadable object files.
23607 reload_flag=$lt_reload_flag
23608 reload_cmds=$lt_reload_cmds
23609
23610 # How to pass a linker flag through the compiler.
23611 wl=$lt_lt_prog_compiler_wl_F77
23612
23613 # Object file suffix (normally "o").
23614 objext="$ac_objext"
23615
23616 # Old archive suffix (normally "a").
23617 libext="$libext"
23618
23619 # Shared library suffix (normally ".so").
23620 shrext_cmds='$shrext_cmds'
23621
23622 # Executable file suffix (normally "").
23623 exeext="$exeext"
23624
23625 # Additional compiler flags for building library objects.
23626 pic_flag=$lt_lt_prog_compiler_pic_F77
23627 pic_mode=$pic_mode
23628
23629 # What is the maximum length of a command?
23630 max_cmd_len=$lt_cv_sys_max_cmd_len
23631
23632 # Does compiler simultaneously support -c and -o options?
23633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23634
23635 # Must we lock files when doing compilation?
23636 need_locks=$lt_need_locks
23637
23638 # Do we need the lib prefix for modules?
23639 need_lib_prefix=$need_lib_prefix
23640
23641 # Do we need a version for libraries?
23642 need_version=$need_version
23643
23644 # Whether dlopen is supported.
23645 dlopen_support=$enable_dlopen
23646
23647 # Whether dlopen of programs is supported.
23648 dlopen_self=$enable_dlopen_self
23649
23650 # Whether dlopen of statically linked programs is supported.
23651 dlopen_self_static=$enable_dlopen_self_static
23652
23653 # Compiler flag to prevent dynamic linking.
23654 link_static_flag=$lt_lt_prog_compiler_static_F77
23655
23656 # Compiler flag to turn off builtin functions.
23657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23658
23659 # Compiler flag to allow reflexive dlopens.
23660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23661
23662 # Compiler flag to generate shared objects directly from archives.
23663 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23664
23665 # Compiler flag to generate thread-safe objects.
23666 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23667
23668 # Library versioning type.
23669 version_type=$version_type
23670
23671 # Format of library name prefix.
23672 libname_spec=$lt_libname_spec
23673
23674 # List of archive names.  First name is the real one, the rest are links.
23675 # The last name is the one that the linker finds with -lNAME.
23676 library_names_spec=$lt_library_names_spec
23677
23678 # The coded name of the library, if different from the real name.
23679 soname_spec=$lt_soname_spec
23680
23681 # Commands used to build and install an old-style archive.
23682 RANLIB=$lt_RANLIB
23683 old_archive_cmds=$lt_old_archive_cmds_F77
23684 old_postinstall_cmds=$lt_old_postinstall_cmds
23685 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23686
23687 # Create an old-style archive from a shared archive.
23688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23689
23690 # Create a temporary old-style archive to link instead of a shared archive.
23691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23692
23693 # Commands used to build and install a shared archive.
23694 archive_cmds=$lt_archive_cmds_F77
23695 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23696 postinstall_cmds=$lt_postinstall_cmds
23697 postuninstall_cmds=$lt_postuninstall_cmds
23698
23699 # Commands used to build a loadable module (assumed same as above if empty)
23700 module_cmds=$lt_module_cmds_F77
23701 module_expsym_cmds=$lt_module_expsym_cmds_F77
23702
23703 # Commands to strip libraries.
23704 old_striplib=$lt_old_striplib
23705 striplib=$lt_striplib
23706
23707 # Dependencies to place before the objects being linked to create a
23708 # shared library.
23709 predep_objects=$lt_predep_objects_F77
23710
23711 # Dependencies to place after the objects being linked to create a
23712 # shared library.
23713 postdep_objects=$lt_postdep_objects_F77
23714
23715 # Dependencies to place before the objects being linked to create a
23716 # shared library.
23717 predeps=$lt_predeps_F77
23718
23719 # Dependencies to place after the objects being linked to create a
23720 # shared library.
23721 postdeps=$lt_postdeps_F77
23722
23723 # The library search path used internally by the compiler when linking
23724 # a shared library.
23725 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23726
23727 # Method to check whether dependent libraries are shared objects.
23728 deplibs_check_method=$lt_deplibs_check_method
23729
23730 # Command to use when deplibs_check_method == file_magic.
23731 file_magic_cmd=$lt_file_magic_cmd
23732
23733 # Flag that allows shared libraries with undefined symbols to be built.
23734 allow_undefined_flag=$lt_allow_undefined_flag_F77
23735
23736 # Flag that forces no undefined symbols.
23737 no_undefined_flag=$lt_no_undefined_flag_F77
23738
23739 # Commands used to finish a libtool library installation in a directory.
23740 finish_cmds=$lt_finish_cmds
23741
23742 # Same as above, but a single script fragment to be evaled but not shown.
23743 finish_eval=$lt_finish_eval
23744
23745 # Take the output of nm and produce a listing of raw symbols and C names.
23746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23747
23748 # Transform the output of nm in a proper C declaration
23749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23750
23751 # Transform the output of nm in a C name address pair
23752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23753
23754 # This is the shared library runtime path variable.
23755 runpath_var=$runpath_var
23756
23757 # This is the shared library path variable.
23758 shlibpath_var=$shlibpath_var
23759
23760 # Is shlibpath searched before the hard-coded library search path?
23761 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23762
23763 # How to hardcode a shared library path into an executable.
23764 hardcode_action=$hardcode_action_F77
23765
23766 # Whether we should hardcode library paths into libraries.
23767 hardcode_into_libs=$hardcode_into_libs
23768
23769 # Flag to hardcode \$libdir into a binary during linking.
23770 # This must work even if \$libdir does not exist.
23771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23772
23773 # If ld is used when linking, flag to hardcode \$libdir into
23774 # a binary during linking. This must work even if \$libdir does
23775 # not exist.
23776 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23777
23778 # Whether we need a single -rpath flag with a separated argument.
23779 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23780
23781 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23782 # resulting binary.
23783 hardcode_direct=$hardcode_direct_F77
23784
23785 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23786 # resulting binary.
23787 hardcode_minus_L=$hardcode_minus_L_F77
23788
23789 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23790 # the resulting binary.
23791 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23792
23793 # Set to yes if building a shared library automatically hardcodes DIR into the library
23794 # and all subsequent libraries and executables linked against it.
23795 hardcode_automatic=$hardcode_automatic_F77
23796
23797 # Variables whose values should be saved in libtool wrapper scripts and
23798 # restored at relink time.
23799 variables_saved_for_relink="$variables_saved_for_relink"
23800
23801 # Whether libtool must link a program against all its dependency libraries.
23802 link_all_deplibs=$link_all_deplibs_F77
23803
23804 # Compile-time system search path for libraries
23805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23806
23807 # Run-time system search path for libraries
23808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23809
23810 # Fix the shell variable \$srcfile for the compiler.
23811 fix_srcfile_path="$fix_srcfile_path_F77"
23812
23813 # Set to yes if exported symbols are required.
23814 always_export_symbols=$always_export_symbols_F77
23815
23816 # The commands to list exported symbols.
23817 export_symbols_cmds=$lt_export_symbols_cmds_F77
23818
23819 # The commands to extract the exported symbol list from a shared archive.
23820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23821
23822 # Symbols that should not be listed in the preloaded symbols.
23823 exclude_expsyms=$lt_exclude_expsyms_F77
23824
23825 # Symbols that must always be exported.
23826 include_expsyms=$lt_include_expsyms_F77
23827
23828 # ### END LIBTOOL TAG CONFIG: $tagname
23829
23830 __EOF__
23831
23832
23833 else
23834   # If there is no Makefile yet, we rely on a make rule to execute
23835   # `config.status --recheck' to rerun these tests and create the
23836   # libtool script then.
23837   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23838   if test -f "$ltmain_in"; then
23839     test -f Makefile && make "$ltmain"
23840   fi
23841 fi
23842
23843
23844 ac_ext=c
23845 ac_cpp='$CPP $CPPFLAGS'
23846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23849
23850 CC="$lt_save_CC"
23851
23852         else
23853           tagname=""
23854         fi
23855         ;;
23856
23857       GCJ)
23858         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23859           ac_ext=c
23860 ac_cpp='$CPP $CPPFLAGS'
23861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23864
23865
23866 # Source file extension for Java test sources.
23867 ac_ext=java
23868
23869 # Object file extension for compiled Java test sources.
23870 objext=o
23871 objext_GCJ=$objext
23872
23873 # Code to be used in simple compile tests
23874 lt_simple_compile_test_code="class foo {}\n"
23875
23876 # Code to be used in simple link tests
23877 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23878
23879 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23880
23881 # If no C compiler was specified, use CC.
23882 LTCC=${LTCC-"$CC"}
23883
23884 # If no C compiler flags were specified, use CFLAGS.
23885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23886
23887 # Allow CC to be a program name with arguments.
23888 compiler=$CC
23889
23890
23891 # save warnings/boilerplate of simple test code
23892 ac_outfile=conftest.$ac_objext
23893 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23895 _lt_compiler_boilerplate=`cat conftest.err`
23896 $rm conftest*
23897
23898 ac_outfile=conftest.$ac_objext
23899 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23901 _lt_linker_boilerplate=`cat conftest.err`
23902 $rm conftest*
23903
23904
23905 # Allow CC to be a program name with arguments.
23906 lt_save_CC="$CC"
23907 CC=${GCJ-"gcj"}
23908 compiler=$CC
23909 compiler_GCJ=$CC
23910 for cc_temp in $compiler""; do
23911   case $cc_temp in
23912     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23913     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23914     \-*) ;;
23915     *) break;;
23916   esac
23917 done
23918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23919
23920
23921 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23922 archive_cmds_need_lc_GCJ=no
23923
23924 old_archive_cmds_GCJ=$old_archive_cmds
23925
23926
23927 lt_prog_compiler_no_builtin_flag_GCJ=
23928
23929 if test "$GCC" = yes; then
23930   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23931
23932
23933 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23934 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23935 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23936   echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938   lt_cv_prog_compiler_rtti_exceptions=no
23939   ac_outfile=conftest.$ac_objext
23940    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23941    lt_compiler_flag="-fno-rtti -fno-exceptions"
23942    # Insert the option either (1) after the last *FLAGS variable, or
23943    # (2) before a word containing "conftest.", or (3) at the end.
23944    # Note that $ac_compile itself does not contain backslashes and begins
23945    # with a dollar sign (not a hyphen), so the echo should work correctly.
23946    # The option is referenced via a variable to avoid confusing sed.
23947    lt_compile=`echo "$ac_compile" | $SED \
23948    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23950    -e 's:$: $lt_compiler_flag:'`
23951    (eval echo "\"\$as_me:23951: $lt_compile\"" >&5)
23952    (eval "$lt_compile" 2>conftest.err)
23953    ac_status=$?
23954    cat conftest.err >&5
23955    echo "$as_me:23955: \$? = $ac_status" >&5
23956    if (exit $ac_status) && test -s "$ac_outfile"; then
23957      # The compiler can only warn and ignore the option if not recognized
23958      # So say no if there are warnings other than the usual output.
23959      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23960      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23961      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23962        lt_cv_prog_compiler_rtti_exceptions=yes
23963      fi
23964    fi
23965    $rm conftest*
23966
23967 fi
23968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23969 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23970
23971 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23972     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23973 else
23974     :
23975 fi
23976
23977 fi
23978
23979 lt_prog_compiler_wl_GCJ=
23980 lt_prog_compiler_pic_GCJ=
23981 lt_prog_compiler_static_GCJ=
23982
23983 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23984 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23985
23986   if test "$GCC" = yes; then
23987     lt_prog_compiler_wl_GCJ='-Wl,'
23988     lt_prog_compiler_static_GCJ='-static'
23989
23990     case $host_os in
23991       aix*)
23992       # All AIX code is PIC.
23993       if test "$host_cpu" = ia64; then
23994         # AIX 5 now supports IA64 processor
23995         lt_prog_compiler_static_GCJ='-Bstatic'
23996       fi
23997       ;;
23998
23999     amigaos*)
24000       # FIXME: we need at least 68020 code to build shared libraries, but
24001       # adding the `-m68020' flag to GCC prevents building anything better,
24002       # like `-m68040'.
24003       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24004       ;;
24005
24006     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24007       # PIC is the default for these OSes.
24008       ;;
24009
24010     mingw* | pw32* | os2*)
24011       # This hack is so that the source file can tell whether it is being
24012       # built for inclusion in a dll (and should export symbols for example).
24013       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24014       ;;
24015
24016     darwin* | rhapsody*)
24017       # PIC is the default on this platform
24018       # Common symbols not allowed in MH_DYLIB files
24019       lt_prog_compiler_pic_GCJ='-fno-common'
24020       ;;
24021
24022     interix3*)
24023       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24024       # Instead, we relocate shared libraries at runtime.
24025       ;;
24026
24027     msdosdjgpp*)
24028       # Just because we use GCC doesn't mean we suddenly get shared libraries
24029       # on systems that don't support them.
24030       lt_prog_compiler_can_build_shared_GCJ=no
24031       enable_shared=no
24032       ;;
24033
24034     sysv4*MP*)
24035       if test -d /usr/nec; then
24036         lt_prog_compiler_pic_GCJ=-Kconform_pic
24037       fi
24038       ;;
24039
24040     hpux*)
24041       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24042       # not for PA HP-UX.
24043       case $host_cpu in
24044       hppa*64*|ia64*)
24045         # +Z the default
24046         ;;
24047       *)
24048         lt_prog_compiler_pic_GCJ='-fPIC'
24049         ;;
24050       esac
24051       ;;
24052
24053     *)
24054       lt_prog_compiler_pic_GCJ='-fPIC'
24055       ;;
24056     esac
24057   else
24058     # PORTME Check for flag to pass linker flags through the system compiler.
24059     case $host_os in
24060     aix*)
24061       lt_prog_compiler_wl_GCJ='-Wl,'
24062       if test "$host_cpu" = ia64; then
24063         # AIX 5 now supports IA64 processor
24064         lt_prog_compiler_static_GCJ='-Bstatic'
24065       else
24066         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24067       fi
24068       ;;
24069       darwin*)
24070         # PIC is the default on this platform
24071         # Common symbols not allowed in MH_DYLIB files
24072        case $cc_basename in
24073          xlc*)
24074          lt_prog_compiler_pic_GCJ='-qnocommon'
24075          lt_prog_compiler_wl_GCJ='-Wl,'
24076          ;;
24077        esac
24078        ;;
24079
24080     mingw* | pw32* | os2*)
24081       # This hack is so that the source file can tell whether it is being
24082       # built for inclusion in a dll (and should export symbols for example).
24083       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24084       ;;
24085
24086     hpux9* | hpux10* | hpux11*)
24087       lt_prog_compiler_wl_GCJ='-Wl,'
24088       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24089       # not for PA HP-UX.
24090       case $host_cpu in
24091       hppa*64*|ia64*)
24092         # +Z the default
24093         ;;
24094       *)
24095         lt_prog_compiler_pic_GCJ='+Z'
24096         ;;
24097       esac
24098       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24099       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24100       ;;
24101
24102     irix5* | irix6* | nonstopux*)
24103       lt_prog_compiler_wl_GCJ='-Wl,'
24104       # PIC (with -KPIC) is the default.
24105       lt_prog_compiler_static_GCJ='-non_shared'
24106       ;;
24107
24108     newsos6)
24109       lt_prog_compiler_pic_GCJ='-KPIC'
24110       lt_prog_compiler_static_GCJ='-Bstatic'
24111       ;;
24112
24113     linux*)
24114       case $cc_basename in
24115       icc* | ecc*)
24116         lt_prog_compiler_wl_GCJ='-Wl,'
24117         lt_prog_compiler_pic_GCJ='-KPIC'
24118         lt_prog_compiler_static_GCJ='-static'
24119         ;;
24120       pgcc* | pgf77* | pgf90* | pgf95*)
24121         # Portland Group compilers (*not* the Pentium gcc compiler,
24122         # which looks to be a dead project)
24123         lt_prog_compiler_wl_GCJ='-Wl,'
24124         lt_prog_compiler_pic_GCJ='-fpic'
24125         lt_prog_compiler_static_GCJ='-Bstatic'
24126         ;;
24127       ccc*)
24128         lt_prog_compiler_wl_GCJ='-Wl,'
24129         # All Alpha code is PIC.
24130         lt_prog_compiler_static_GCJ='-non_shared'
24131         ;;
24132       esac
24133       ;;
24134
24135     osf3* | osf4* | osf5*)
24136       lt_prog_compiler_wl_GCJ='-Wl,'
24137       # All OSF/1 code is PIC.
24138       lt_prog_compiler_static_GCJ='-non_shared'
24139       ;;
24140
24141     solaris*)
24142       lt_prog_compiler_pic_GCJ='-KPIC'
24143       lt_prog_compiler_static_GCJ='-Bstatic'
24144       case $cc_basename in
24145       f77* | f90* | f95*)
24146         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24147       *)
24148         lt_prog_compiler_wl_GCJ='-Wl,';;
24149       esac
24150       ;;
24151
24152     sunos4*)
24153       lt_prog_compiler_wl_GCJ='-Qoption ld '
24154       lt_prog_compiler_pic_GCJ='-PIC'
24155       lt_prog_compiler_static_GCJ='-Bstatic'
24156       ;;
24157
24158     sysv4 | sysv4.2uw2* | sysv4.3*)
24159       lt_prog_compiler_wl_GCJ='-Wl,'
24160       lt_prog_compiler_pic_GCJ='-KPIC'
24161       lt_prog_compiler_static_GCJ='-Bstatic'
24162       ;;
24163
24164     sysv4*MP*)
24165       if test -d /usr/nec ;then
24166         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24167         lt_prog_compiler_static_GCJ='-Bstatic'
24168       fi
24169       ;;
24170
24171     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24172       lt_prog_compiler_wl_GCJ='-Wl,'
24173       lt_prog_compiler_pic_GCJ='-KPIC'
24174       lt_prog_compiler_static_GCJ='-Bstatic'
24175       ;;
24176
24177     unicos*)
24178       lt_prog_compiler_wl_GCJ='-Wl,'
24179       lt_prog_compiler_can_build_shared_GCJ=no
24180       ;;
24181
24182     uts4*)
24183       lt_prog_compiler_pic_GCJ='-pic'
24184       lt_prog_compiler_static_GCJ='-Bstatic'
24185       ;;
24186
24187     *)
24188       lt_prog_compiler_can_build_shared_GCJ=no
24189       ;;
24190     esac
24191   fi
24192
24193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24194 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24195
24196 #
24197 # Check to make sure the PIC flag actually works.
24198 #
24199 if test -n "$lt_prog_compiler_pic_GCJ"; then
24200
24201 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24202 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24203 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24204   echo $ECHO_N "(cached) $ECHO_C" >&6
24205 else
24206   lt_prog_compiler_pic_works_GCJ=no
24207   ac_outfile=conftest.$ac_objext
24208    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24209    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24210    # Insert the option either (1) after the last *FLAGS variable, or
24211    # (2) before a word containing "conftest.", or (3) at the end.
24212    # Note that $ac_compile itself does not contain backslashes and begins
24213    # with a dollar sign (not a hyphen), so the echo should work correctly.
24214    # The option is referenced via a variable to avoid confusing sed.
24215    lt_compile=`echo "$ac_compile" | $SED \
24216    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24217    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24218    -e 's:$: $lt_compiler_flag:'`
24219    (eval echo "\"\$as_me:24219: $lt_compile\"" >&5)
24220    (eval "$lt_compile" 2>conftest.err)
24221    ac_status=$?
24222    cat conftest.err >&5
24223    echo "$as_me:24223: \$? = $ac_status" >&5
24224    if (exit $ac_status) && test -s "$ac_outfile"; then
24225      # The compiler can only warn and ignore the option if not recognized
24226      # So say no if there are warnings other than the usual output.
24227      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24228      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24229      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24230        lt_prog_compiler_pic_works_GCJ=yes
24231      fi
24232    fi
24233    $rm conftest*
24234
24235 fi
24236 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24237 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24238
24239 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24240     case $lt_prog_compiler_pic_GCJ in
24241      "" | " "*) ;;
24242      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24243      esac
24244 else
24245     lt_prog_compiler_pic_GCJ=
24246      lt_prog_compiler_can_build_shared_GCJ=no
24247 fi
24248
24249 fi
24250 case $host_os in
24251   # For platforms which do not support PIC, -DPIC is meaningless:
24252   *djgpp*)
24253     lt_prog_compiler_pic_GCJ=
24254     ;;
24255   *)
24256     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24257     ;;
24258 esac
24259
24260 #
24261 # Check to make sure the static flag actually works.
24262 #
24263 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24264 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24265 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24266 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24267   echo $ECHO_N "(cached) $ECHO_C" >&6
24268 else
24269   lt_prog_compiler_static_works_GCJ=no
24270    save_LDFLAGS="$LDFLAGS"
24271    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24272    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24273    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24274      # The linker can only warn and ignore the option if not recognized
24275      # So say no if there are warnings
24276      if test -s conftest.err; then
24277        # Append any errors to the config.log.
24278        cat conftest.err 1>&5
24279        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24280        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24281        if diff conftest.exp conftest.er2 >/dev/null; then
24282          lt_prog_compiler_static_works_GCJ=yes
24283        fi
24284      else
24285        lt_prog_compiler_static_works_GCJ=yes
24286      fi
24287    fi
24288    $rm conftest*
24289    LDFLAGS="$save_LDFLAGS"
24290
24291 fi
24292 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24293 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24294
24295 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24296     :
24297 else
24298     lt_prog_compiler_static_GCJ=
24299 fi
24300
24301
24302 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24304 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24305   echo $ECHO_N "(cached) $ECHO_C" >&6
24306 else
24307   lt_cv_prog_compiler_c_o_GCJ=no
24308    $rm -r conftest 2>/dev/null
24309    mkdir conftest
24310    cd conftest
24311    mkdir out
24312    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24313
24314    lt_compiler_flag="-o out/conftest2.$ac_objext"
24315    # Insert the option either (1) after the last *FLAGS variable, or
24316    # (2) before a word containing "conftest.", or (3) at the end.
24317    # Note that $ac_compile itself does not contain backslashes and begins
24318    # with a dollar sign (not a hyphen), so the echo should work correctly.
24319    lt_compile=`echo "$ac_compile" | $SED \
24320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24322    -e 's:$: $lt_compiler_flag:'`
24323    (eval echo "\"\$as_me:24323: $lt_compile\"" >&5)
24324    (eval "$lt_compile" 2>out/conftest.err)
24325    ac_status=$?
24326    cat out/conftest.err >&5
24327    echo "$as_me:24327: \$? = $ac_status" >&5
24328    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24329    then
24330      # The compiler can only warn and ignore the option if not recognized
24331      # So say no if there are warnings
24332      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24333      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24334      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24335        lt_cv_prog_compiler_c_o_GCJ=yes
24336      fi
24337    fi
24338    chmod u+w . 2>&5
24339    $rm conftest*
24340    # SGI C++ compiler will create directory out/ii_files/ for
24341    # template instantiation
24342    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24343    $rm out/* && rmdir out
24344    cd ..
24345    rmdir conftest
24346    $rm conftest*
24347
24348 fi
24349 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24351
24352
24353 hard_links="nottested"
24354 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24355   # do not overwrite the value of need_locks provided by the user
24356   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24358   hard_links=yes
24359   $rm conftest*
24360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24361   touch conftest.a
24362   ln conftest.a conftest.b 2>&5 || hard_links=no
24363   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24364   { echo "$as_me:$LINENO: result: $hard_links" >&5
24365 echo "${ECHO_T}$hard_links" >&6; }
24366   if test "$hard_links" = no; then
24367     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24369     need_locks=warn
24370   fi
24371 else
24372   need_locks=no
24373 fi
24374
24375 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24377
24378   runpath_var=
24379   allow_undefined_flag_GCJ=
24380   enable_shared_with_static_runtimes_GCJ=no
24381   archive_cmds_GCJ=
24382   archive_expsym_cmds_GCJ=
24383   old_archive_From_new_cmds_GCJ=
24384   old_archive_from_expsyms_cmds_GCJ=
24385   export_dynamic_flag_spec_GCJ=
24386   whole_archive_flag_spec_GCJ=
24387   thread_safe_flag_spec_GCJ=
24388   hardcode_libdir_flag_spec_GCJ=
24389   hardcode_libdir_flag_spec_ld_GCJ=
24390   hardcode_libdir_separator_GCJ=
24391   hardcode_direct_GCJ=no
24392   hardcode_minus_L_GCJ=no
24393   hardcode_shlibpath_var_GCJ=unsupported
24394   link_all_deplibs_GCJ=unknown
24395   hardcode_automatic_GCJ=no
24396   module_cmds_GCJ=
24397   module_expsym_cmds_GCJ=
24398   always_export_symbols_GCJ=no
24399   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24400   # include_expsyms should be a list of space-separated symbols to be *always*
24401   # included in the symbol list
24402   include_expsyms_GCJ=
24403   # exclude_expsyms can be an extended regexp of symbols to exclude
24404   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24405   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24406   # as well as any symbol that contains `d'.
24407   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24408   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24409   # platforms (ab)use it in PIC code, but their linkers get confused if
24410   # the symbol is explicitly referenced.  Since portable code cannot
24411   # rely on this symbol name, it's probably fine to never include it in
24412   # preloaded symbol tables.
24413   extract_expsyms_cmds=
24414   # Just being paranoid about ensuring that cc_basename is set.
24415   for cc_temp in $compiler""; do
24416   case $cc_temp in
24417     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24418     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24419     \-*) ;;
24420     *) break;;
24421   esac
24422 done
24423 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24424
24425   case $host_os in
24426   cygwin* | mingw* | pw32*)
24427     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24428     # When not using gcc, we currently assume that we are using
24429     # Microsoft Visual C++.
24430     if test "$GCC" != yes; then
24431       with_gnu_ld=no
24432     fi
24433     ;;
24434   interix*)
24435     # we just hope/assume this is gcc and not c89 (= MSVC++)
24436     with_gnu_ld=yes
24437     ;;
24438   openbsd*)
24439     with_gnu_ld=no
24440     ;;
24441   esac
24442
24443   ld_shlibs_GCJ=yes
24444   if test "$with_gnu_ld" = yes; then
24445     # If archive_cmds runs LD, not CC, wlarc should be empty
24446     wlarc='${wl}'
24447
24448     # Set some defaults for GNU ld with shared library support. These
24449     # are reset later if shared libraries are not supported. Putting them
24450     # here allows them to be overridden if necessary.
24451     runpath_var=LD_RUN_PATH
24452     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24453     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24454     # ancient GNU ld didn't support --whole-archive et. al.
24455     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24456         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24457       else
24458         whole_archive_flag_spec_GCJ=
24459     fi
24460     supports_anon_versioning=no
24461     case `$LD -v 2>/dev/null` in
24462       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24463       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24464       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24465       *\ 2.11.*) ;; # other 2.11 versions
24466       *) supports_anon_versioning=yes ;;
24467     esac
24468
24469     # See if GNU ld supports shared libraries.
24470     case $host_os in
24471     aix3* | aix4* | aix5*)
24472       # On AIX/PPC, the GNU linker is very broken
24473       if test "$host_cpu" != ia64; then
24474         ld_shlibs_GCJ=no
24475         cat <<EOF 1>&2
24476
24477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24478 *** to be unable to reliably create shared libraries on AIX.
24479 *** Therefore, libtool is disabling shared libraries support.  If you
24480 *** really care for shared libraries, you may want to modify your PATH
24481 *** so that a non-GNU linker is found, and then restart.
24482
24483 EOF
24484       fi
24485       ;;
24486
24487     amigaos*)
24488       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)'
24489       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24490       hardcode_minus_L_GCJ=yes
24491
24492       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24493       # that the semantics of dynamic libraries on AmigaOS, at least up
24494       # to version 4, is to share data among multiple programs linked
24495       # with the same dynamic library.  Since this doesn't match the
24496       # behavior of shared libraries on other platforms, we can't use
24497       # them.
24498       ld_shlibs_GCJ=no
24499       ;;
24500
24501     beos*)
24502       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24503         allow_undefined_flag_GCJ=unsupported
24504         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24505         # support --undefined.  This deserves some investigation.  FIXME
24506         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24507       else
24508         ld_shlibs_GCJ=no
24509       fi
24510       ;;
24511
24512     cygwin* | mingw* | pw32*)
24513       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24514       # as there is no search path for DLLs.
24515       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24516       allow_undefined_flag_GCJ=unsupported
24517       always_export_symbols_GCJ=no
24518       enable_shared_with_static_runtimes_GCJ=yes
24519       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24520
24521       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24522         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24523         # If the export-symbols file already is a .def file (1st line
24524         # is EXPORTS), use it as is; otherwise, prepend...
24525         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24526           cp $export_symbols $output_objdir/$soname.def;
24527         else
24528           echo EXPORTS > $output_objdir/$soname.def;
24529           cat $export_symbols >> $output_objdir/$soname.def;
24530         fi~
24531         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24532       else
24533         ld_shlibs_GCJ=no
24534       fi
24535       ;;
24536
24537     interix3*)
24538       hardcode_direct_GCJ=no
24539       hardcode_shlibpath_var_GCJ=no
24540       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24541       export_dynamic_flag_spec_GCJ='${wl}-E'
24542       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24543       # Instead, shared libraries are loaded at an image base (0x10000000 by
24544       # default) and relocated if they conflict, which is a slow very memory
24545       # consuming and fragmenting process.  To avoid this, we pick a random,
24546       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24547       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24548       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'
24549       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'
24550       ;;
24551
24552     linux*)
24553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24554         tmp_addflag=
24555         case $cc_basename,$host_cpu in
24556         pgcc*)                          # Portland Group C compiler
24557           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'
24558           tmp_addflag=' $pic_flag'
24559           ;;
24560         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24561           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'
24562           tmp_addflag=' $pic_flag -Mnomain' ;;
24563         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24564           tmp_addflag=' -i_dynamic' ;;
24565         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24566           tmp_addflag=' -i_dynamic -nofor_main' ;;
24567         ifc* | ifort*)                  # Intel Fortran compiler
24568           tmp_addflag=' -nofor_main' ;;
24569         esac
24570         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24571
24572         if test $supports_anon_versioning = yes; then
24573           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24574   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24575   $echo "local: *; };" >> $output_objdir/$libname.ver~
24576           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24577         fi
24578       else
24579         ld_shlibs_GCJ=no
24580       fi
24581       ;;
24582
24583     netbsd*)
24584       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24585         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24586         wlarc=
24587       else
24588         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24589         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24590       fi
24591       ;;
24592
24593     solaris*)
24594       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24595         ld_shlibs_GCJ=no
24596         cat <<EOF 1>&2
24597
24598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24599 *** create shared libraries on Solaris systems.  Therefore, libtool
24600 *** is disabling shared libraries support.  We urge you to upgrade GNU
24601 *** binutils to release 2.9.1 or newer.  Another option is to modify
24602 *** your PATH or compiler configuration so that the native linker is
24603 *** used, and then restart.
24604
24605 EOF
24606       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24607         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24608         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24609       else
24610         ld_shlibs_GCJ=no
24611       fi
24612       ;;
24613
24614     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24615       case `$LD -v 2>&1` in
24616         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24617         ld_shlibs_GCJ=no
24618         cat <<_LT_EOF 1>&2
24619
24620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24621 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24622 *** is disabling shared libraries support.  We urge you to upgrade GNU
24623 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24624 *** your PATH or compiler configuration so that the native linker is
24625 *** used, and then restart.
24626
24627 _LT_EOF
24628         ;;
24629         *)
24630           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24631             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24632             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24633             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24634           else
24635             ld_shlibs_GCJ=no
24636           fi
24637         ;;
24638       esac
24639       ;;
24640
24641     sunos4*)
24642       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24643       wlarc=
24644       hardcode_direct_GCJ=yes
24645       hardcode_shlibpath_var_GCJ=no
24646       ;;
24647
24648     *)
24649       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24650         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24651         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24652       else
24653         ld_shlibs_GCJ=no
24654       fi
24655       ;;
24656     esac
24657
24658     if test "$ld_shlibs_GCJ" = no; then
24659       runpath_var=
24660       hardcode_libdir_flag_spec_GCJ=
24661       export_dynamic_flag_spec_GCJ=
24662       whole_archive_flag_spec_GCJ=
24663     fi
24664   else
24665     # PORTME fill in a description of your system's linker (not GNU ld)
24666     case $host_os in
24667     aix3*)
24668       allow_undefined_flag_GCJ=unsupported
24669       always_export_symbols_GCJ=yes
24670       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'
24671       # Note: this linker hardcodes the directories in LIBPATH if there
24672       # are no directories specified by -L.
24673       hardcode_minus_L_GCJ=yes
24674       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24675         # Neither direct hardcoding nor static linking is supported with a
24676         # broken collect2.
24677         hardcode_direct_GCJ=unsupported
24678       fi
24679       ;;
24680
24681     aix4* | aix5*)
24682       if test "$host_cpu" = ia64; then
24683         # On IA64, the linker does run time linking by default, so we don't
24684         # have to do anything special.
24685         aix_use_runtimelinking=no
24686         exp_sym_flag='-Bexport'
24687         no_entry_flag=""
24688       else
24689         # If we're using GNU nm, then we don't want the "-C" option.
24690         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24691         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24692           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'
24693         else
24694           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'
24695         fi
24696         aix_use_runtimelinking=no
24697
24698         # Test if we are trying to use run time linking or normal
24699         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24700         # need to do runtime linking.
24701         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24702           for ld_flag in $LDFLAGS; do
24703           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24704             aix_use_runtimelinking=yes
24705             break
24706           fi
24707           done
24708           ;;
24709         esac
24710
24711         exp_sym_flag='-bexport'
24712         no_entry_flag='-bnoentry'
24713       fi
24714
24715       # When large executables or shared objects are built, AIX ld can
24716       # have problems creating the table of contents.  If linking a library
24717       # or program results in "error TOC overflow" add -mminimal-toc to
24718       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24719       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24720
24721       archive_cmds_GCJ=''
24722       hardcode_direct_GCJ=yes
24723       hardcode_libdir_separator_GCJ=':'
24724       link_all_deplibs_GCJ=yes
24725
24726       if test "$GCC" = yes; then
24727         case $host_os in aix4.[012]|aix4.[012].*)
24728         # We only want to do this on AIX 4.2 and lower, the check
24729         # below for broken collect2 doesn't work under 4.3+
24730           collect2name=`${CC} -print-prog-name=collect2`
24731           if test -f "$collect2name" && \
24732            strings "$collect2name" | grep resolve_lib_name >/dev/null
24733           then
24734           # We have reworked collect2
24735           hardcode_direct_GCJ=yes
24736           else
24737           # We have old collect2
24738           hardcode_direct_GCJ=unsupported
24739           # It fails to find uninstalled libraries when the uninstalled
24740           # path is not listed in the libpath.  Setting hardcode_minus_L
24741           # to unsupported forces relinking
24742           hardcode_minus_L_GCJ=yes
24743           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24744           hardcode_libdir_separator_GCJ=
24745           fi
24746           ;;
24747         esac
24748         shared_flag='-shared'
24749         if test "$aix_use_runtimelinking" = yes; then
24750           shared_flag="$shared_flag "'${wl}-G'
24751         fi
24752       else
24753         # not using gcc
24754         if test "$host_cpu" = ia64; then
24755         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24756         # chokes on -Wl,-G. The following line is correct:
24757           shared_flag='-G'
24758         else
24759           if test "$aix_use_runtimelinking" = yes; then
24760             shared_flag='${wl}-G'
24761           else
24762             shared_flag='${wl}-bM:SRE'
24763           fi
24764         fi
24765       fi
24766
24767       # It seems that -bexpall does not export symbols beginning with
24768       # underscore (_), so it is better to generate a list of symbols to export.
24769       always_export_symbols_GCJ=yes
24770       if test "$aix_use_runtimelinking" = yes; then
24771         # Warning - without using the other runtime loading flags (-brtl),
24772         # -berok will link without error, but may produce a broken library.
24773         allow_undefined_flag_GCJ='-berok'
24774        # Determine the default libpath from the value encoded in an empty executable.
24775        cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h.  */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h.  */
24781
24782 int
24783 main ()
24784 {
24785
24786   ;
24787   return 0;
24788 }
24789 _ACEOF
24790 rm -f conftest.$ac_objext conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797   (eval "$ac_link") 2>conftest.er1
24798   ac_status=$?
24799   grep -v '^ *+' conftest.er1 >conftest.err
24800   rm -f conftest.er1
24801   cat conftest.err >&5
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); } &&
24804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24805   { (case "(($ac_try" in
24806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807   *) ac_try_echo=$ac_try;;
24808 esac
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810   (eval "$ac_try") 2>&5
24811   ac_status=$?
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); }; } &&
24814          { ac_try='test -s conftest$ac_exeext'
24815   { (case "(($ac_try" in
24816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817   *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820   (eval "$ac_try") 2>&5
24821   ac_status=$?
24822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823   (exit $ac_status); }; }; then
24824
24825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24826 }'`
24827 # Check for a 64-bit object if we didn't find anything.
24828 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; }
24829 }'`; fi
24830 else
24831   echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24833
24834
24835 fi
24836
24837 rm -f core conftest.err conftest.$ac_objext \
24838       conftest$ac_exeext conftest.$ac_ext
24839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24840
24841        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24842         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"
24843        else
24844         if test "$host_cpu" = ia64; then
24845           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24846           allow_undefined_flag_GCJ="-z nodefs"
24847           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"
24848         else
24849          # Determine the default libpath from the value encoded in an empty executable.
24850          cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h.  */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h.  */
24856
24857 int
24858 main ()
24859 {
24860
24861   ;
24862   return 0;
24863 }
24864 _ACEOF
24865 rm -f conftest.$ac_objext conftest$ac_exeext
24866 if { (ac_try="$ac_link"
24867 case "(($ac_try" in
24868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869   *) ac_try_echo=$ac_try;;
24870 esac
24871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24872   (eval "$ac_link") 2>conftest.er1
24873   ac_status=$?
24874   grep -v '^ *+' conftest.er1 >conftest.err
24875   rm -f conftest.er1
24876   cat conftest.err >&5
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); } &&
24879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24880   { (case "(($ac_try" in
24881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882   *) ac_try_echo=$ac_try;;
24883 esac
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885   (eval "$ac_try") 2>&5
24886   ac_status=$?
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); }; } &&
24889          { ac_try='test -s conftest$ac_exeext'
24890   { (case "(($ac_try" in
24891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892   *) ac_try_echo=$ac_try;;
24893 esac
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895   (eval "$ac_try") 2>&5
24896   ac_status=$?
24897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898   (exit $ac_status); }; }; then
24899
24900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24901 }'`
24902 # Check for a 64-bit object if we didn't find anything.
24903 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; }
24904 }'`; fi
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909
24910 fi
24911
24912 rm -f core conftest.err conftest.$ac_objext \
24913       conftest$ac_exeext conftest.$ac_ext
24914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24915
24916          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24917           # Warning - without using the other run time loading flags,
24918           # -berok will link without error, but may produce a broken library.
24919           no_undefined_flag_GCJ=' ${wl}-bernotok'
24920           allow_undefined_flag_GCJ=' ${wl}-berok'
24921           # Exported symbols can be pulled into shared objects from archives
24922           whole_archive_flag_spec_GCJ='$convenience'
24923           archive_cmds_need_lc_GCJ=yes
24924           # This is similar to how AIX traditionally builds its shared libraries.
24925           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'
24926         fi
24927       fi
24928       ;;
24929
24930     amigaos*)
24931       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)'
24932       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24933       hardcode_minus_L_GCJ=yes
24934       # see comment about different semantics on the GNU ld section
24935       ld_shlibs_GCJ=no
24936       ;;
24937
24938     bsdi[45]*)
24939       export_dynamic_flag_spec_GCJ=-rdynamic
24940       ;;
24941
24942     cygwin* | mingw* | pw32*)
24943       # When not using gcc, we currently assume that we are using
24944       # Microsoft Visual C++.
24945       # hardcode_libdir_flag_spec is actually meaningless, as there is
24946       # no search path for DLLs.
24947       hardcode_libdir_flag_spec_GCJ=' '
24948       allow_undefined_flag_GCJ=unsupported
24949       # Tell ltmain to make .lib files, not .a files.
24950       libext=lib
24951       # Tell ltmain to make .dll files, not .so files.
24952       shrext_cmds=".dll"
24953       # FIXME: Setting linknames here is a bad hack.
24954       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24955       # The linker will automatically build a .lib file if we build a DLL.
24956       old_archive_From_new_cmds_GCJ='true'
24957       # FIXME: Should let the user specify the lib program.
24958       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24959       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24960       enable_shared_with_static_runtimes_GCJ=yes
24961       ;;
24962
24963     darwin* | rhapsody*)
24964       case $host_os in
24965         rhapsody* | darwin1.[012])
24966          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24967          ;;
24968        *) # Darwin 1.3 on
24969          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24970            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24971          else
24972            case ${MACOSX_DEPLOYMENT_TARGET} in
24973              10.[012])
24974                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24975                ;;
24976              10.*)
24977                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24978                ;;
24979            esac
24980          fi
24981          ;;
24982       esac
24983       archive_cmds_need_lc_GCJ=no
24984       hardcode_direct_GCJ=no
24985       hardcode_automatic_GCJ=yes
24986       hardcode_shlibpath_var_GCJ=unsupported
24987       whole_archive_flag_spec_GCJ=''
24988       link_all_deplibs_GCJ=yes
24989     if test "$GCC" = yes ; then
24990         output_verbose_link_cmd='echo'
24991         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24992       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24993       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24994       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}'
24995       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}'
24996     else
24997       case $cc_basename in
24998         xlc*)
24999          output_verbose_link_cmd='echo'
25000          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25001          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25002           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25003          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}'
25004           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}'
25005           ;;
25006        *)
25007          ld_shlibs_GCJ=no
25008           ;;
25009       esac
25010     fi
25011       ;;
25012
25013     dgux*)
25014       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25015       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25016       hardcode_shlibpath_var_GCJ=no
25017       ;;
25018
25019     freebsd1*)
25020       ld_shlibs_GCJ=no
25021       ;;
25022
25023     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25024     # support.  Future versions do this automatically, but an explicit c++rt0.o
25025     # does not break anything, and helps significantly (at the cost of a little
25026     # extra space).
25027     freebsd2.2*)
25028       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25029       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25030       hardcode_direct_GCJ=yes
25031       hardcode_shlibpath_var_GCJ=no
25032       ;;
25033
25034     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25035     freebsd2*)
25036       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25037       hardcode_direct_GCJ=yes
25038       hardcode_minus_L_GCJ=yes
25039       hardcode_shlibpath_var_GCJ=no
25040       ;;
25041
25042     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25043     freebsd* | kfreebsd*-gnu | dragonfly*)
25044       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25046       hardcode_direct_GCJ=yes
25047       hardcode_shlibpath_var_GCJ=no
25048       ;;
25049
25050     hpux9*)
25051       if test "$GCC" = yes; then
25052         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'
25053       else
25054         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'
25055       fi
25056       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25057       hardcode_libdir_separator_GCJ=:
25058       hardcode_direct_GCJ=yes
25059
25060       # hardcode_minus_L: Not really in the search PATH,
25061       # but as the default location of the library.
25062       hardcode_minus_L_GCJ=yes
25063       export_dynamic_flag_spec_GCJ='${wl}-E'
25064       ;;
25065
25066     hpux10*)
25067       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25068         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25069       else
25070         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25071       fi
25072       if test "$with_gnu_ld" = no; then
25073         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25074         hardcode_libdir_separator_GCJ=:
25075
25076         hardcode_direct_GCJ=yes
25077         export_dynamic_flag_spec_GCJ='${wl}-E'
25078
25079         # hardcode_minus_L: Not really in the search PATH,
25080         # but as the default location of the library.
25081         hardcode_minus_L_GCJ=yes
25082       fi
25083       ;;
25084
25085     hpux11*)
25086       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25087         case $host_cpu in
25088         hppa*64*)
25089           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25090           ;;
25091         ia64*)
25092           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25093           ;;
25094         *)
25095           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25096           ;;
25097         esac
25098       else
25099         case $host_cpu in
25100         hppa*64*)
25101           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25102           ;;
25103         ia64*)
25104           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25105           ;;
25106         *)
25107           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25108           ;;
25109         esac
25110       fi
25111       if test "$with_gnu_ld" = no; then
25112         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25113         hardcode_libdir_separator_GCJ=:
25114
25115         case $host_cpu in
25116         hppa*64*|ia64*)
25117           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25118           hardcode_direct_GCJ=no
25119           hardcode_shlibpath_var_GCJ=no
25120           ;;
25121         *)
25122           hardcode_direct_GCJ=yes
25123           export_dynamic_flag_spec_GCJ='${wl}-E'
25124
25125           # hardcode_minus_L: Not really in the search PATH,
25126           # but as the default location of the library.
25127           hardcode_minus_L_GCJ=yes
25128           ;;
25129         esac
25130       fi
25131       ;;
25132
25133     irix5* | irix6* | nonstopux*)
25134       if test "$GCC" = yes; then
25135         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'
25136       else
25137         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'
25138         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25139       fi
25140       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25141       hardcode_libdir_separator_GCJ=:
25142       link_all_deplibs_GCJ=yes
25143       ;;
25144
25145     netbsd*)
25146       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25147         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25148       else
25149         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25150       fi
25151       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25152       hardcode_direct_GCJ=yes
25153       hardcode_shlibpath_var_GCJ=no
25154       ;;
25155
25156     newsos6)
25157       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25158       hardcode_direct_GCJ=yes
25159       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25160       hardcode_libdir_separator_GCJ=:
25161       hardcode_shlibpath_var_GCJ=no
25162       ;;
25163
25164     openbsd*)
25165       hardcode_direct_GCJ=yes
25166       hardcode_shlibpath_var_GCJ=no
25167       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25168         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25169         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25170         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25171         export_dynamic_flag_spec_GCJ='${wl}-E'
25172       else
25173        case $host_os in
25174          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25175            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25176            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25177            ;;
25178          *)
25179            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25180            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25181            ;;
25182        esac
25183       fi
25184       ;;
25185
25186     os2*)
25187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25188       hardcode_minus_L_GCJ=yes
25189       allow_undefined_flag_GCJ=unsupported
25190       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'
25191       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25192       ;;
25193
25194     osf3*)
25195       if test "$GCC" = yes; then
25196         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25197         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'
25198       else
25199         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25200         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'
25201       fi
25202       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25203       hardcode_libdir_separator_GCJ=:
25204       ;;
25205
25206     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25207       if test "$GCC" = yes; then
25208         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25209         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'
25210         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25211       else
25212         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25213         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'
25214         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~
25215         $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'
25216
25217         # Both c and cxx compiler support -rpath directly
25218         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25219       fi
25220       hardcode_libdir_separator_GCJ=:
25221       ;;
25222
25223     solaris*)
25224       no_undefined_flag_GCJ=' -z text'
25225       if test "$GCC" = yes; then
25226         wlarc='${wl}'
25227         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25228         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25229           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25230       else
25231         wlarc=''
25232         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25233         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25234         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25235       fi
25236       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237       hardcode_shlibpath_var_GCJ=no
25238       case $host_os in
25239       solaris2.[0-5] | solaris2.[0-5].*) ;;
25240       *)
25241         # The compiler driver will combine linker options so we
25242         # cannot just pass the convience library names through
25243         # without $wl, iff we do not link with $LD.
25244         # Luckily, gcc supports the same syntax we need for Sun Studio.
25245         # Supported since Solaris 2.6 (maybe 2.5.1?)
25246         case $wlarc in
25247         '')
25248           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25249         *)
25250           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' ;;
25251         esac ;;
25252       esac
25253       link_all_deplibs_GCJ=yes
25254       ;;
25255
25256     sunos4*)
25257       if test "x$host_vendor" = xsequent; then
25258         # Use $CC to link under sequent, because it throws in some extra .o
25259         # files that make .init and .fini sections work.
25260         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25261       else
25262         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25263       fi
25264       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25265       hardcode_direct_GCJ=yes
25266       hardcode_minus_L_GCJ=yes
25267       hardcode_shlibpath_var_GCJ=no
25268       ;;
25269
25270     sysv4)
25271       case $host_vendor in
25272         sni)
25273           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25274           hardcode_direct_GCJ=yes # is this really true???
25275         ;;
25276         siemens)
25277           ## LD is ld it makes a PLAMLIB
25278           ## CC just makes a GrossModule.
25279           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25280           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25281           hardcode_direct_GCJ=no
25282         ;;
25283         motorola)
25284           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25285           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25286         ;;
25287       esac
25288       runpath_var='LD_RUN_PATH'
25289       hardcode_shlibpath_var_GCJ=no
25290       ;;
25291
25292     sysv4.3*)
25293       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25294       hardcode_shlibpath_var_GCJ=no
25295       export_dynamic_flag_spec_GCJ='-Bexport'
25296       ;;
25297
25298     sysv4*MP*)
25299       if test -d /usr/nec; then
25300         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25301         hardcode_shlibpath_var_GCJ=no
25302         runpath_var=LD_RUN_PATH
25303         hardcode_runpath_var=yes
25304         ld_shlibs_GCJ=yes
25305       fi
25306       ;;
25307
25308     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25309       no_undefined_flag_GCJ='${wl}-z,text'
25310       archive_cmds_need_lc_GCJ=no
25311       hardcode_shlibpath_var_GCJ=no
25312       runpath_var='LD_RUN_PATH'
25313
25314       if test "$GCC" = yes; then
25315         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25316         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25317       else
25318         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25319         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25320       fi
25321       ;;
25322
25323     sysv5* | sco3.2v5* | sco5v6*)
25324       # Note: We can NOT use -z defs as we might desire, because we do not
25325       # link with -lc, and that would cause any symbols used from libc to
25326       # always be unresolved, which means just about no library would
25327       # ever link correctly.  If we're not using GNU ld we use -z text
25328       # though, which does catch some bad symbols but isn't as heavy-handed
25329       # as -z defs.
25330       no_undefined_flag_GCJ='${wl}-z,text'
25331       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25332       archive_cmds_need_lc_GCJ=no
25333       hardcode_shlibpath_var_GCJ=no
25334       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25335       hardcode_libdir_separator_GCJ=':'
25336       link_all_deplibs_GCJ=yes
25337       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25338       runpath_var='LD_RUN_PATH'
25339
25340       if test "$GCC" = yes; then
25341         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25342         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25343       else
25344         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25345         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25346       fi
25347       ;;
25348
25349     uts4*)
25350       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25351       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25352       hardcode_shlibpath_var_GCJ=no
25353       ;;
25354
25355     *)
25356       ld_shlibs_GCJ=no
25357       ;;
25358     esac
25359   fi
25360
25361 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25362 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25363 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25364
25365 #
25366 # Do we need to explicitly link libc?
25367 #
25368 case "x$archive_cmds_need_lc_GCJ" in
25369 x|xyes)
25370   # Assume -lc should be added
25371   archive_cmds_need_lc_GCJ=yes
25372
25373   if test "$enable_shared" = yes && test "$GCC" = yes; then
25374     case $archive_cmds_GCJ in
25375     *'~'*)
25376       # FIXME: we may have to deal with multi-command sequences.
25377       ;;
25378     '$CC '*)
25379       # Test whether the compiler implicitly links with -lc since on some
25380       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25381       # to ld, don't add -lc before -lgcc.
25382       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25383 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25384       $rm conftest*
25385       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25386
25387       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388   (eval $ac_compile) 2>&5
25389   ac_status=$?
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); } 2>conftest.err; then
25392         soname=conftest
25393         lib=conftest
25394         libobjs=conftest.$ac_objext
25395         deplibs=
25396         wl=$lt_prog_compiler_wl_GCJ
25397         pic_flag=$lt_prog_compiler_pic_GCJ
25398         compiler_flags=-v
25399         linker_flags=-v
25400         verstring=
25401         output_objdir=.
25402         libname=conftest
25403         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25404         allow_undefined_flag_GCJ=
25405         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25406   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25407   ac_status=$?
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); }
25410         then
25411           archive_cmds_need_lc_GCJ=no
25412         else
25413           archive_cmds_need_lc_GCJ=yes
25414         fi
25415         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25416       else
25417         cat conftest.err 1>&5
25418       fi
25419       $rm conftest*
25420       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25421 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25422       ;;
25423     esac
25424   fi
25425   ;;
25426 esac
25427
25428 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25429 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25430 library_names_spec=
25431 libname_spec='lib$name'
25432 soname_spec=
25433 shrext_cmds=".so"
25434 postinstall_cmds=
25435 postuninstall_cmds=
25436 finish_cmds=
25437 finish_eval=
25438 shlibpath_var=
25439 shlibpath_overrides_runpath=unknown
25440 version_type=none
25441 dynamic_linker="$host_os ld.so"
25442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25443 if test "$GCC" = yes; then
25444   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25445   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25446     # if the path contains ";" then we assume it to be the separator
25447     # otherwise default to the standard path separator (i.e. ":") - it is
25448     # assumed that no part of a normal pathname contains ";" but that should
25449     # okay in the real world where ";" in dirpaths is itself problematic.
25450     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25451   else
25452     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25453   fi
25454 else
25455   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25456 fi
25457 need_lib_prefix=unknown
25458 hardcode_into_libs=no
25459
25460 # when you set need_version to no, make sure it does not cause -set_version
25461 # flags to be left without arguments
25462 need_version=unknown
25463
25464 case $host_os in
25465 aix3*)
25466   version_type=linux
25467   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25468   shlibpath_var=LIBPATH
25469
25470   # AIX 3 has no versioning support, so we append a major version to the name.
25471   soname_spec='${libname}${release}${shared_ext}$major'
25472   ;;
25473
25474 aix4* | aix5*)
25475   version_type=linux
25476   need_lib_prefix=no
25477   need_version=no
25478   hardcode_into_libs=yes
25479   if test "$host_cpu" = ia64; then
25480     # AIX 5 supports IA64
25481     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25482     shlibpath_var=LD_LIBRARY_PATH
25483   else
25484     # With GCC up to 2.95.x, collect2 would create an import file
25485     # for dependence libraries.  The import file would start with
25486     # the line `#! .'.  This would cause the generated library to
25487     # depend on `.', always an invalid library.  This was fixed in
25488     # development snapshots of GCC prior to 3.0.
25489     case $host_os in
25490       aix4 | aix4.[01] | aix4.[01].*)
25491       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25492            echo ' yes '
25493            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25494         :
25495       else
25496         can_build_shared=no
25497       fi
25498       ;;
25499     esac
25500     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25501     # soname into executable. Probably we can add versioning support to
25502     # collect2, so additional links can be useful in future.
25503     if test "$aix_use_runtimelinking" = yes; then
25504       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25505       # instead of lib<name>.a to let people know that these are not
25506       # typical AIX shared libraries.
25507       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508     else
25509       # We preserve .a as extension for shared libraries through AIX4.2
25510       # and later when we are not doing run time linking.
25511       library_names_spec='${libname}${release}.a $libname.a'
25512       soname_spec='${libname}${release}${shared_ext}$major'
25513     fi
25514     shlibpath_var=LIBPATH
25515   fi
25516   ;;
25517
25518 amigaos*)
25519   library_names_spec='$libname.ixlibrary $libname.a'
25520   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25521   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'
25522   ;;
25523
25524 beos*)
25525   library_names_spec='${libname}${shared_ext}'
25526   dynamic_linker="$host_os ld.so"
25527   shlibpath_var=LIBRARY_PATH
25528   ;;
25529
25530 bsdi[45]*)
25531   version_type=linux
25532   need_version=no
25533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534   soname_spec='${libname}${release}${shared_ext}$major'
25535   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25536   shlibpath_var=LD_LIBRARY_PATH
25537   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25538   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25539   # the default ld.so.conf also contains /usr/contrib/lib and
25540   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25541   # libtool to hard-code these into programs
25542   ;;
25543
25544 cygwin* | mingw* | pw32*)
25545   version_type=windows
25546   shrext_cmds=".dll"
25547   need_version=no
25548   need_lib_prefix=no
25549
25550   case $GCC,$host_os in
25551   yes,cygwin* | yes,mingw* | yes,pw32*)
25552     library_names_spec='$libname.dll.a'
25553     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25554     postinstall_cmds='base_file=`basename \${file}`~
25555       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25556       dldir=$destdir/`dirname \$dlpath`~
25557       test -d \$dldir || mkdir -p \$dldir~
25558       $install_prog $dir/$dlname \$dldir/$dlname~
25559       chmod a+x \$dldir/$dlname'
25560     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25561       dlpath=$dir/\$dldll~
25562        $rm \$dlpath'
25563     shlibpath_overrides_runpath=yes
25564
25565     case $host_os in
25566     cygwin*)
25567       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25568       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25569       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25570       ;;
25571     mingw*)
25572       # MinGW DLLs use traditional 'lib' prefix
25573       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25574       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25575       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25576         # It is most probably a Windows format PATH printed by
25577         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25578         # path with ; separators, and with drive letters. We can handle the
25579         # drive letters (cygwin fileutils understands them), so leave them,
25580         # especially as we might pass files found there to a mingw objdump,
25581         # which wouldn't understand a cygwinified path. Ahh.
25582         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25583       else
25584         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25585       fi
25586       ;;
25587     pw32*)
25588       # pw32 DLLs use 'pw' prefix rather than 'lib'
25589       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25590       ;;
25591     esac
25592     ;;
25593
25594   *)
25595     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25596     ;;
25597   esac
25598   dynamic_linker='Win32 ld.exe'
25599   # FIXME: first we should search . and the directory the executable is in
25600   shlibpath_var=PATH
25601   ;;
25602
25603 darwin* | rhapsody*)
25604   dynamic_linker="$host_os dyld"
25605   version_type=darwin
25606   need_lib_prefix=no
25607   need_version=no
25608   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25609   soname_spec='${libname}${release}${major}$shared_ext'
25610   shlibpath_overrides_runpath=yes
25611   shlibpath_var=DYLD_LIBRARY_PATH
25612   shrext_cmds='.dylib'
25613   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25614   if test "$GCC" = yes; then
25615     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"`
25616   else
25617     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25618   fi
25619   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25620   ;;
25621
25622 dgux*)
25623   version_type=linux
25624   need_lib_prefix=no
25625   need_version=no
25626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25627   soname_spec='${libname}${release}${shared_ext}$major'
25628   shlibpath_var=LD_LIBRARY_PATH
25629   ;;
25630
25631 freebsd1*)
25632   dynamic_linker=no
25633   ;;
25634
25635 kfreebsd*-gnu)
25636   version_type=linux
25637   need_lib_prefix=no
25638   need_version=no
25639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25640   soname_spec='${libname}${release}${shared_ext}$major'
25641   shlibpath_var=LD_LIBRARY_PATH
25642   shlibpath_overrides_runpath=no
25643   hardcode_into_libs=yes
25644   dynamic_linker='GNU ld.so'
25645   ;;
25646
25647 freebsd* | dragonfly*)
25648   # DragonFly does not have aout.  When/if they implement a new
25649   # versioning mechanism, adjust this.
25650   if test -x /usr/bin/objformat; then
25651     objformat=`/usr/bin/objformat`
25652   else
25653     case $host_os in
25654     freebsd[123]*) objformat=aout ;;
25655     *) objformat=elf ;;
25656     esac
25657   fi
25658   version_type=freebsd-$objformat
25659   case $version_type in
25660     freebsd-elf*)
25661       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25662       need_version=no
25663       need_lib_prefix=no
25664       ;;
25665     freebsd-*)
25666       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25667       need_version=yes
25668       ;;
25669   esac
25670   shlibpath_var=LD_LIBRARY_PATH
25671   case $host_os in
25672   freebsd2*)
25673     shlibpath_overrides_runpath=yes
25674     ;;
25675   freebsd3.[01]* | freebsdelf3.[01]*)
25676     shlibpath_overrides_runpath=yes
25677     hardcode_into_libs=yes
25678     ;;
25679   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25680   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25681     shlibpath_overrides_runpath=no
25682     hardcode_into_libs=yes
25683     ;;
25684   freebsd*) # from 4.6 on
25685     shlibpath_overrides_runpath=yes
25686     hardcode_into_libs=yes
25687     ;;
25688   esac
25689   ;;
25690
25691 gnu*)
25692   version_type=linux
25693   need_lib_prefix=no
25694   need_version=no
25695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25696   soname_spec='${libname}${release}${shared_ext}$major'
25697   shlibpath_var=LD_LIBRARY_PATH
25698   hardcode_into_libs=yes
25699   ;;
25700
25701 hpux9* | hpux10* | hpux11*)
25702   # Give a soname corresponding to the major version so that dld.sl refuses to
25703   # link against other versions.
25704   version_type=sunos
25705   need_lib_prefix=no
25706   need_version=no
25707   case $host_cpu in
25708   ia64*)
25709     shrext_cmds='.so'
25710     hardcode_into_libs=yes
25711     dynamic_linker="$host_os dld.so"
25712     shlibpath_var=LD_LIBRARY_PATH
25713     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25714     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715     soname_spec='${libname}${release}${shared_ext}$major'
25716     if test "X$HPUX_IA64_MODE" = X32; then
25717       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25718     else
25719       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25720     fi
25721     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25722     ;;
25723    hppa*64*)
25724      shrext_cmds='.sl'
25725      hardcode_into_libs=yes
25726      dynamic_linker="$host_os dld.sl"
25727      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25728      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25729      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25730      soname_spec='${libname}${release}${shared_ext}$major'
25731      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25732      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25733      ;;
25734    *)
25735     shrext_cmds='.sl'
25736     dynamic_linker="$host_os dld.sl"
25737     shlibpath_var=SHLIB_PATH
25738     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25740     soname_spec='${libname}${release}${shared_ext}$major'
25741     ;;
25742   esac
25743   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25744   postinstall_cmds='chmod 555 $lib'
25745   ;;
25746
25747 interix3*)
25748   version_type=linux
25749   need_lib_prefix=no
25750   need_version=no
25751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25752   soname_spec='${libname}${release}${shared_ext}$major'
25753   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25754   shlibpath_var=LD_LIBRARY_PATH
25755   shlibpath_overrides_runpath=no
25756   hardcode_into_libs=yes
25757   ;;
25758
25759 irix5* | irix6* | nonstopux*)
25760   case $host_os in
25761     nonstopux*) version_type=nonstopux ;;
25762     *)
25763         if test "$lt_cv_prog_gnu_ld" = yes; then
25764                 version_type=linux
25765         else
25766                 version_type=irix
25767         fi ;;
25768   esac
25769   need_lib_prefix=no
25770   need_version=no
25771   soname_spec='${libname}${release}${shared_ext}$major'
25772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25773   case $host_os in
25774   irix5* | nonstopux*)
25775     libsuff= shlibsuff=
25776     ;;
25777   *)
25778     case $LD in # libtool.m4 will add one of these switches to LD
25779     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25780       libsuff= shlibsuff= libmagic=32-bit;;
25781     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25782       libsuff=32 shlibsuff=N32 libmagic=N32;;
25783     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25784       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25785     *) libsuff= shlibsuff= libmagic=never-match;;
25786     esac
25787     ;;
25788   esac
25789   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25790   shlibpath_overrides_runpath=no
25791   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25792   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25793   hardcode_into_libs=yes
25794   ;;
25795
25796 # No shared lib support for Linux oldld, aout, or coff.
25797 linux*oldld* | linux*aout* | linux*coff*)
25798   dynamic_linker=no
25799   ;;
25800
25801 # This must be Linux ELF.
25802 linux*)
25803   version_type=linux
25804   need_lib_prefix=no
25805   need_version=no
25806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807   soname_spec='${libname}${release}${shared_ext}$major'
25808   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25809   shlibpath_var=LD_LIBRARY_PATH
25810   shlibpath_overrides_runpath=no
25811   # This implies no fast_install, which is unacceptable.
25812   # Some rework will be needed to allow for fast_install
25813   # before this can be enabled.
25814   hardcode_into_libs=yes
25815
25816   # Append ld.so.conf contents to the search path
25817   if test -f /etc/ld.so.conf; then
25818     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' ' '`
25819     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25820   fi
25821
25822   # We used to test for /lib/ld.so.1 and disable shared libraries on
25823   # powerpc, because MkLinux only supported shared libraries with the
25824   # GNU dynamic linker.  Since this was broken with cross compilers,
25825   # most powerpc-linux boxes support dynamic linking these days and
25826   # people can always --disable-shared, the test was removed, and we
25827   # assume the GNU/Linux dynamic linker is in use.
25828   dynamic_linker='GNU/Linux ld.so'
25829   ;;
25830
25831 knetbsd*-gnu)
25832   version_type=linux
25833   need_lib_prefix=no
25834   need_version=no
25835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25836   soname_spec='${libname}${release}${shared_ext}$major'
25837   shlibpath_var=LD_LIBRARY_PATH
25838   shlibpath_overrides_runpath=no
25839   hardcode_into_libs=yes
25840   dynamic_linker='GNU ld.so'
25841   ;;
25842
25843 netbsd*)
25844   version_type=sunos
25845   need_lib_prefix=no
25846   need_version=no
25847   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25849     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25850     dynamic_linker='NetBSD (a.out) ld.so'
25851   else
25852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853     soname_spec='${libname}${release}${shared_ext}$major'
25854     dynamic_linker='NetBSD ld.elf_so'
25855   fi
25856   shlibpath_var=LD_LIBRARY_PATH
25857   shlibpath_overrides_runpath=yes
25858   hardcode_into_libs=yes
25859   ;;
25860
25861 newsos6)
25862   version_type=linux
25863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25864   shlibpath_var=LD_LIBRARY_PATH
25865   shlibpath_overrides_runpath=yes
25866   ;;
25867
25868 nto-qnx*)
25869   version_type=linux
25870   need_lib_prefix=no
25871   need_version=no
25872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873   soname_spec='${libname}${release}${shared_ext}$major'
25874   shlibpath_var=LD_LIBRARY_PATH
25875   shlibpath_overrides_runpath=yes
25876   ;;
25877
25878 openbsd*)
25879   version_type=sunos
25880   sys_lib_dlsearch_path_spec="/usr/lib"
25881   need_lib_prefix=no
25882   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25883   case $host_os in
25884     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25885     *)                         need_version=no  ;;
25886   esac
25887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25888   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25889   shlibpath_var=LD_LIBRARY_PATH
25890   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25891     case $host_os in
25892       openbsd2.[89] | openbsd2.[89].*)
25893         shlibpath_overrides_runpath=no
25894         ;;
25895       *)
25896         shlibpath_overrides_runpath=yes
25897         ;;
25898       esac
25899   else
25900     shlibpath_overrides_runpath=yes
25901   fi
25902   ;;
25903
25904 os2*)
25905   libname_spec='$name'
25906   shrext_cmds=".dll"
25907   need_lib_prefix=no
25908   library_names_spec='$libname${shared_ext} $libname.a'
25909   dynamic_linker='OS/2 ld.exe'
25910   shlibpath_var=LIBPATH
25911   ;;
25912
25913 osf3* | osf4* | osf5*)
25914   version_type=osf
25915   need_lib_prefix=no
25916   need_version=no
25917   soname_spec='${libname}${release}${shared_ext}$major'
25918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919   shlibpath_var=LD_LIBRARY_PATH
25920   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25921   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25922   ;;
25923
25924 solaris*)
25925   version_type=linux
25926   need_lib_prefix=no
25927   need_version=no
25928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25929   soname_spec='${libname}${release}${shared_ext}$major'
25930   shlibpath_var=LD_LIBRARY_PATH
25931   shlibpath_overrides_runpath=yes
25932   hardcode_into_libs=yes
25933   # ldd complains unless libraries are executable
25934   postinstall_cmds='chmod +x $lib'
25935   ;;
25936
25937 sunos4*)
25938   version_type=sunos
25939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25940   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25941   shlibpath_var=LD_LIBRARY_PATH
25942   shlibpath_overrides_runpath=yes
25943   if test "$with_gnu_ld" = yes; then
25944     need_lib_prefix=no
25945   fi
25946   need_version=yes
25947   ;;
25948
25949 sysv4 | sysv4.3*)
25950   version_type=linux
25951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25952   soname_spec='${libname}${release}${shared_ext}$major'
25953   shlibpath_var=LD_LIBRARY_PATH
25954   case $host_vendor in
25955     sni)
25956       shlibpath_overrides_runpath=no
25957       need_lib_prefix=no
25958       export_dynamic_flag_spec='${wl}-Blargedynsym'
25959       runpath_var=LD_RUN_PATH
25960       ;;
25961     siemens)
25962       need_lib_prefix=no
25963       ;;
25964     motorola)
25965       need_lib_prefix=no
25966       need_version=no
25967       shlibpath_overrides_runpath=no
25968       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25969       ;;
25970   esac
25971   ;;
25972
25973 sysv4*MP*)
25974   if test -d /usr/nec ;then
25975     version_type=linux
25976     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25977     soname_spec='$libname${shared_ext}.$major'
25978     shlibpath_var=LD_LIBRARY_PATH
25979   fi
25980   ;;
25981
25982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25983   version_type=freebsd-elf
25984   need_lib_prefix=no
25985   need_version=no
25986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25987   soname_spec='${libname}${release}${shared_ext}$major'
25988   shlibpath_var=LD_LIBRARY_PATH
25989   hardcode_into_libs=yes
25990   if test "$with_gnu_ld" = yes; then
25991     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25992     shlibpath_overrides_runpath=no
25993   else
25994     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25995     shlibpath_overrides_runpath=yes
25996     case $host_os in
25997       sco3.2v5*)
25998         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25999         ;;
26000     esac
26001   fi
26002   sys_lib_dlsearch_path_spec='/usr/lib'
26003   ;;
26004
26005 uts4*)
26006   version_type=linux
26007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26008   soname_spec='${libname}${release}${shared_ext}$major'
26009   shlibpath_var=LD_LIBRARY_PATH
26010   ;;
26011
26012 *)
26013   dynamic_linker=no
26014   ;;
26015 esac
26016 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26017 echo "${ECHO_T}$dynamic_linker" >&6; }
26018 test "$dynamic_linker" = no && can_build_shared=no
26019
26020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26021 if test "$GCC" = yes; then
26022   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26023 fi
26024
26025 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26026 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26027 hardcode_action_GCJ=
26028 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26029    test -n "$runpath_var_GCJ" || \
26030    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26031
26032   # We can hardcode non-existant directories.
26033   if test "$hardcode_direct_GCJ" != no &&
26034      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26035      # have to relink, otherwise we might link with an installed library
26036      # when we should be linking with a yet-to-be-installed one
26037      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26038      test "$hardcode_minus_L_GCJ" != no; then
26039     # Linking always hardcodes the temporary library directory.
26040     hardcode_action_GCJ=relink
26041   else
26042     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26043     hardcode_action_GCJ=immediate
26044   fi
26045 else
26046   # We cannot hardcode anything, or else we can only hardcode existing
26047   # directories.
26048   hardcode_action_GCJ=unsupported
26049 fi
26050 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26051 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26052
26053 if test "$hardcode_action_GCJ" = relink; then
26054   # Fast installation is not supported
26055   enable_fast_install=no
26056 elif test "$shlibpath_overrides_runpath" = yes ||
26057      test "$enable_shared" = no; then
26058   # Fast installation is not necessary
26059   enable_fast_install=needless
26060 fi
26061
26062
26063 # The else clause should only fire when bootstrapping the
26064 # libtool distribution, otherwise you forgot to ship ltmain.sh
26065 # with your package, and you will get complaints that there are
26066 # no rules to generate ltmain.sh.
26067 if test -f "$ltmain"; then
26068   # See if we are running on zsh, and set the options which allow our commands through
26069   # without removal of \ escapes.
26070   if test -n "${ZSH_VERSION+set}" ; then
26071     setopt NO_GLOB_SUBST
26072   fi
26073   # Now quote all the things that may contain metacharacters while being
26074   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26075   # variables and quote the copies for generation of the libtool script.
26076   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26077     SED SHELL STRIP \
26078     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26079     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26080     deplibs_check_method reload_flag reload_cmds need_locks \
26081     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26082     lt_cv_sys_global_symbol_to_c_name_address \
26083     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26084     old_postinstall_cmds old_postuninstall_cmds \
26085     compiler_GCJ \
26086     CC_GCJ \
26087     LD_GCJ \
26088     lt_prog_compiler_wl_GCJ \
26089     lt_prog_compiler_pic_GCJ \
26090     lt_prog_compiler_static_GCJ \
26091     lt_prog_compiler_no_builtin_flag_GCJ \
26092     export_dynamic_flag_spec_GCJ \
26093     thread_safe_flag_spec_GCJ \
26094     whole_archive_flag_spec_GCJ \
26095     enable_shared_with_static_runtimes_GCJ \
26096     old_archive_cmds_GCJ \
26097     old_archive_from_new_cmds_GCJ \
26098     predep_objects_GCJ \
26099     postdep_objects_GCJ \
26100     predeps_GCJ \
26101     postdeps_GCJ \
26102     compiler_lib_search_path_GCJ \
26103     archive_cmds_GCJ \
26104     archive_expsym_cmds_GCJ \
26105     postinstall_cmds_GCJ \
26106     postuninstall_cmds_GCJ \
26107     old_archive_from_expsyms_cmds_GCJ \
26108     allow_undefined_flag_GCJ \
26109     no_undefined_flag_GCJ \
26110     export_symbols_cmds_GCJ \
26111     hardcode_libdir_flag_spec_GCJ \
26112     hardcode_libdir_flag_spec_ld_GCJ \
26113     hardcode_libdir_separator_GCJ \
26114     hardcode_automatic_GCJ \
26115     module_cmds_GCJ \
26116     module_expsym_cmds_GCJ \
26117     lt_cv_prog_compiler_c_o_GCJ \
26118     exclude_expsyms_GCJ \
26119     include_expsyms_GCJ; do
26120
26121     case $var in
26122     old_archive_cmds_GCJ | \
26123     old_archive_from_new_cmds_GCJ | \
26124     archive_cmds_GCJ | \
26125     archive_expsym_cmds_GCJ | \
26126     module_cmds_GCJ | \
26127     module_expsym_cmds_GCJ | \
26128     old_archive_from_expsyms_cmds_GCJ | \
26129     export_symbols_cmds_GCJ | \
26130     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26131     postinstall_cmds | postuninstall_cmds | \
26132     old_postinstall_cmds | old_postuninstall_cmds | \
26133     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26134       # Double-quote double-evaled strings.
26135       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26136       ;;
26137     *)
26138       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26139       ;;
26140     esac
26141   done
26142
26143   case $lt_echo in
26144   *'\$0 --fallback-echo"')
26145     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26146     ;;
26147   esac
26148
26149 cfgfile="$ofile"
26150
26151   cat <<__EOF__ >> "$cfgfile"
26152 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26153
26154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26155
26156 # Shell to use when invoking shell scripts.
26157 SHELL=$lt_SHELL
26158
26159 # Whether or not to build shared libraries.
26160 build_libtool_libs=$enable_shared
26161
26162 # Whether or not to build static libraries.
26163 build_old_libs=$enable_static
26164
26165 # Whether or not to add -lc for building shared libraries.
26166 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26167
26168 # Whether or not to disallow shared libs when runtime libs are static
26169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26170
26171 # Whether or not to optimize for fast installation.
26172 fast_install=$enable_fast_install
26173
26174 # The host system.
26175 host_alias=$host_alias
26176 host=$host
26177 host_os=$host_os
26178
26179 # The build system.
26180 build_alias=$build_alias
26181 build=$build
26182 build_os=$build_os
26183
26184 # An echo program that does not interpret backslashes.
26185 echo=$lt_echo
26186
26187 # The archiver.
26188 AR=$lt_AR
26189 AR_FLAGS=$lt_AR_FLAGS
26190
26191 # A C compiler.
26192 LTCC=$lt_LTCC
26193
26194 # LTCC compiler flags.
26195 LTCFLAGS=$lt_LTCFLAGS
26196
26197 # A language-specific compiler.
26198 CC=$lt_compiler_GCJ
26199
26200 # Is the compiler the GNU C compiler?
26201 with_gcc=$GCC_GCJ
26202
26203 # An ERE matcher.
26204 EGREP=$lt_EGREP
26205
26206 # The linker used to build libraries.
26207 LD=$lt_LD_GCJ
26208
26209 # Whether we need hard or soft links.
26210 LN_S=$lt_LN_S
26211
26212 # A BSD-compatible nm program.
26213 NM=$lt_NM
26214
26215 # A symbol stripping program
26216 STRIP=$lt_STRIP
26217
26218 # Used to examine libraries when file_magic_cmd begins "file"
26219 MAGIC_CMD=$MAGIC_CMD
26220
26221 # Used on cygwin: DLL creation program.
26222 DLLTOOL="$DLLTOOL"
26223
26224 # Used on cygwin: object dumper.
26225 OBJDUMP="$OBJDUMP"
26226
26227 # Used on cygwin: assembler.
26228 AS="$AS"
26229
26230 # The name of the directory that contains temporary libtool files.
26231 objdir=$objdir
26232
26233 # How to create reloadable object files.
26234 reload_flag=$lt_reload_flag
26235 reload_cmds=$lt_reload_cmds
26236
26237 # How to pass a linker flag through the compiler.
26238 wl=$lt_lt_prog_compiler_wl_GCJ
26239
26240 # Object file suffix (normally "o").
26241 objext="$ac_objext"
26242
26243 # Old archive suffix (normally "a").
26244 libext="$libext"
26245
26246 # Shared library suffix (normally ".so").
26247 shrext_cmds='$shrext_cmds'
26248
26249 # Executable file suffix (normally "").
26250 exeext="$exeext"
26251
26252 # Additional compiler flags for building library objects.
26253 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26254 pic_mode=$pic_mode
26255
26256 # What is the maximum length of a command?
26257 max_cmd_len=$lt_cv_sys_max_cmd_len
26258
26259 # Does compiler simultaneously support -c and -o options?
26260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26261
26262 # Must we lock files when doing compilation?
26263 need_locks=$lt_need_locks
26264
26265 # Do we need the lib prefix for modules?
26266 need_lib_prefix=$need_lib_prefix
26267
26268 # Do we need a version for libraries?
26269 need_version=$need_version
26270
26271 # Whether dlopen is supported.
26272 dlopen_support=$enable_dlopen
26273
26274 # Whether dlopen of programs is supported.
26275 dlopen_self=$enable_dlopen_self
26276
26277 # Whether dlopen of statically linked programs is supported.
26278 dlopen_self_static=$enable_dlopen_self_static
26279
26280 # Compiler flag to prevent dynamic linking.
26281 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26282
26283 # Compiler flag to turn off builtin functions.
26284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26285
26286 # Compiler flag to allow reflexive dlopens.
26287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26288
26289 # Compiler flag to generate shared objects directly from archives.
26290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26291
26292 # Compiler flag to generate thread-safe objects.
26293 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26294
26295 # Library versioning type.
26296 version_type=$version_type
26297
26298 # Format of library name prefix.
26299 libname_spec=$lt_libname_spec
26300
26301 # List of archive names.  First name is the real one, the rest are links.
26302 # The last name is the one that the linker finds with -lNAME.
26303 library_names_spec=$lt_library_names_spec
26304
26305 # The coded name of the library, if different from the real name.
26306 soname_spec=$lt_soname_spec
26307
26308 # Commands used to build and install an old-style archive.
26309 RANLIB=$lt_RANLIB
26310 old_archive_cmds=$lt_old_archive_cmds_GCJ
26311 old_postinstall_cmds=$lt_old_postinstall_cmds
26312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26313
26314 # Create an old-style archive from a shared archive.
26315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26316
26317 # Create a temporary old-style archive to link instead of a shared archive.
26318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26319
26320 # Commands used to build and install a shared archive.
26321 archive_cmds=$lt_archive_cmds_GCJ
26322 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26323 postinstall_cmds=$lt_postinstall_cmds
26324 postuninstall_cmds=$lt_postuninstall_cmds
26325
26326 # Commands used to build a loadable module (assumed same as above if empty)
26327 module_cmds=$lt_module_cmds_GCJ
26328 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26329
26330 # Commands to strip libraries.
26331 old_striplib=$lt_old_striplib
26332 striplib=$lt_striplib
26333
26334 # Dependencies to place before the objects being linked to create a
26335 # shared library.
26336 predep_objects=$lt_predep_objects_GCJ
26337
26338 # Dependencies to place after the objects being linked to create a
26339 # shared library.
26340 postdep_objects=$lt_postdep_objects_GCJ
26341
26342 # Dependencies to place before the objects being linked to create a
26343 # shared library.
26344 predeps=$lt_predeps_GCJ
26345
26346 # Dependencies to place after the objects being linked to create a
26347 # shared library.
26348 postdeps=$lt_postdeps_GCJ
26349
26350 # The library search path used internally by the compiler when linking
26351 # a shared library.
26352 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26353
26354 # Method to check whether dependent libraries are shared objects.
26355 deplibs_check_method=$lt_deplibs_check_method
26356
26357 # Command to use when deplibs_check_method == file_magic.
26358 file_magic_cmd=$lt_file_magic_cmd
26359
26360 # Flag that allows shared libraries with undefined symbols to be built.
26361 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26362
26363 # Flag that forces no undefined symbols.
26364 no_undefined_flag=$lt_no_undefined_flag_GCJ
26365
26366 # Commands used to finish a libtool library installation in a directory.
26367 finish_cmds=$lt_finish_cmds
26368
26369 # Same as above, but a single script fragment to be evaled but not shown.
26370 finish_eval=$lt_finish_eval
26371
26372 # Take the output of nm and produce a listing of raw symbols and C names.
26373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26374
26375 # Transform the output of nm in a proper C declaration
26376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26377
26378 # Transform the output of nm in a C name address pair
26379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26380
26381 # This is the shared library runtime path variable.
26382 runpath_var=$runpath_var
26383
26384 # This is the shared library path variable.
26385 shlibpath_var=$shlibpath_var
26386
26387 # Is shlibpath searched before the hard-coded library search path?
26388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26389
26390 # How to hardcode a shared library path into an executable.
26391 hardcode_action=$hardcode_action_GCJ
26392
26393 # Whether we should hardcode library paths into libraries.
26394 hardcode_into_libs=$hardcode_into_libs
26395
26396 # Flag to hardcode \$libdir into a binary during linking.
26397 # This must work even if \$libdir does not exist.
26398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26399
26400 # If ld is used when linking, flag to hardcode \$libdir into
26401 # a binary during linking. This must work even if \$libdir does
26402 # not exist.
26403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26404
26405 # Whether we need a single -rpath flag with a separated argument.
26406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26407
26408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26409 # resulting binary.
26410 hardcode_direct=$hardcode_direct_GCJ
26411
26412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26413 # resulting binary.
26414 hardcode_minus_L=$hardcode_minus_L_GCJ
26415
26416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26417 # the resulting binary.
26418 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26419
26420 # Set to yes if building a shared library automatically hardcodes DIR into the library
26421 # and all subsequent libraries and executables linked against it.
26422 hardcode_automatic=$hardcode_automatic_GCJ
26423
26424 # Variables whose values should be saved in libtool wrapper scripts and
26425 # restored at relink time.
26426 variables_saved_for_relink="$variables_saved_for_relink"
26427
26428 # Whether libtool must link a program against all its dependency libraries.
26429 link_all_deplibs=$link_all_deplibs_GCJ
26430
26431 # Compile-time system search path for libraries
26432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26433
26434 # Run-time system search path for libraries
26435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26436
26437 # Fix the shell variable \$srcfile for the compiler.
26438 fix_srcfile_path="$fix_srcfile_path_GCJ"
26439
26440 # Set to yes if exported symbols are required.
26441 always_export_symbols=$always_export_symbols_GCJ
26442
26443 # The commands to list exported symbols.
26444 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26445
26446 # The commands to extract the exported symbol list from a shared archive.
26447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26448
26449 # Symbols that should not be listed in the preloaded symbols.
26450 exclude_expsyms=$lt_exclude_expsyms_GCJ
26451
26452 # Symbols that must always be exported.
26453 include_expsyms=$lt_include_expsyms_GCJ
26454
26455 # ### END LIBTOOL TAG CONFIG: $tagname
26456
26457 __EOF__
26458
26459
26460 else
26461   # If there is no Makefile yet, we rely on a make rule to execute
26462   # `config.status --recheck' to rerun these tests and create the
26463   # libtool script then.
26464   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26465   if test -f "$ltmain_in"; then
26466     test -f Makefile && make "$ltmain"
26467   fi
26468 fi
26469
26470
26471 ac_ext=c
26472 ac_cpp='$CPP $CPPFLAGS'
26473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26476
26477 CC="$lt_save_CC"
26478
26479         else
26480           tagname=""
26481         fi
26482         ;;
26483
26484       RC)
26485         ac_ext=c
26486 ac_cpp='$CPP $CPPFLAGS'
26487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26490
26491
26492 # Source file extension for RC test sources.
26493 ac_ext=rc
26494
26495 # Object file extension for compiled RC test sources.
26496 objext=o
26497 objext_RC=$objext
26498
26499 # Code to be used in simple compile tests
26500 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26501
26502 # Code to be used in simple link tests
26503 lt_simple_link_test_code="$lt_simple_compile_test_code"
26504
26505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26506
26507 # If no C compiler was specified, use CC.
26508 LTCC=${LTCC-"$CC"}
26509
26510 # If no C compiler flags were specified, use CFLAGS.
26511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26512
26513 # Allow CC to be a program name with arguments.
26514 compiler=$CC
26515
26516
26517 # save warnings/boilerplate of simple test code
26518 ac_outfile=conftest.$ac_objext
26519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26521 _lt_compiler_boilerplate=`cat conftest.err`
26522 $rm conftest*
26523
26524 ac_outfile=conftest.$ac_objext
26525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26527 _lt_linker_boilerplate=`cat conftest.err`
26528 $rm conftest*
26529
26530
26531 # Allow CC to be a program name with arguments.
26532 lt_save_CC="$CC"
26533 CC=${RC-"windres"}
26534 compiler=$CC
26535 compiler_RC=$CC
26536 for cc_temp in $compiler""; do
26537   case $cc_temp in
26538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26540     \-*) ;;
26541     *) break;;
26542   esac
26543 done
26544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26545
26546 lt_cv_prog_compiler_c_o_RC=yes
26547
26548 # The else clause should only fire when bootstrapping the
26549 # libtool distribution, otherwise you forgot to ship ltmain.sh
26550 # with your package, and you will get complaints that there are
26551 # no rules to generate ltmain.sh.
26552 if test -f "$ltmain"; then
26553   # See if we are running on zsh, and set the options which allow our commands through
26554   # without removal of \ escapes.
26555   if test -n "${ZSH_VERSION+set}" ; then
26556     setopt NO_GLOB_SUBST
26557   fi
26558   # Now quote all the things that may contain metacharacters while being
26559   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26560   # variables and quote the copies for generation of the libtool script.
26561   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26562     SED SHELL STRIP \
26563     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26564     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26565     deplibs_check_method reload_flag reload_cmds need_locks \
26566     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26567     lt_cv_sys_global_symbol_to_c_name_address \
26568     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26569     old_postinstall_cmds old_postuninstall_cmds \
26570     compiler_RC \
26571     CC_RC \
26572     LD_RC \
26573     lt_prog_compiler_wl_RC \
26574     lt_prog_compiler_pic_RC \
26575     lt_prog_compiler_static_RC \
26576     lt_prog_compiler_no_builtin_flag_RC \
26577     export_dynamic_flag_spec_RC \
26578     thread_safe_flag_spec_RC \
26579     whole_archive_flag_spec_RC \
26580     enable_shared_with_static_runtimes_RC \
26581     old_archive_cmds_RC \
26582     old_archive_from_new_cmds_RC \
26583     predep_objects_RC \
26584     postdep_objects_RC \
26585     predeps_RC \
26586     postdeps_RC \
26587     compiler_lib_search_path_RC \
26588     archive_cmds_RC \
26589     archive_expsym_cmds_RC \
26590     postinstall_cmds_RC \
26591     postuninstall_cmds_RC \
26592     old_archive_from_expsyms_cmds_RC \
26593     allow_undefined_flag_RC \
26594     no_undefined_flag_RC \
26595     export_symbols_cmds_RC \
26596     hardcode_libdir_flag_spec_RC \
26597     hardcode_libdir_flag_spec_ld_RC \
26598     hardcode_libdir_separator_RC \
26599     hardcode_automatic_RC \
26600     module_cmds_RC \
26601     module_expsym_cmds_RC \
26602     lt_cv_prog_compiler_c_o_RC \
26603     exclude_expsyms_RC \
26604     include_expsyms_RC; do
26605
26606     case $var in
26607     old_archive_cmds_RC | \
26608     old_archive_from_new_cmds_RC | \
26609     archive_cmds_RC | \
26610     archive_expsym_cmds_RC | \
26611     module_cmds_RC | \
26612     module_expsym_cmds_RC | \
26613     old_archive_from_expsyms_cmds_RC | \
26614     export_symbols_cmds_RC | \
26615     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26616     postinstall_cmds | postuninstall_cmds | \
26617     old_postinstall_cmds | old_postuninstall_cmds | \
26618     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26619       # Double-quote double-evaled strings.
26620       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26621       ;;
26622     *)
26623       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26624       ;;
26625     esac
26626   done
26627
26628   case $lt_echo in
26629   *'\$0 --fallback-echo"')
26630     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26631     ;;
26632   esac
26633
26634 cfgfile="$ofile"
26635
26636   cat <<__EOF__ >> "$cfgfile"
26637 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26638
26639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26640
26641 # Shell to use when invoking shell scripts.
26642 SHELL=$lt_SHELL
26643
26644 # Whether or not to build shared libraries.
26645 build_libtool_libs=$enable_shared
26646
26647 # Whether or not to build static libraries.
26648 build_old_libs=$enable_static
26649
26650 # Whether or not to add -lc for building shared libraries.
26651 build_libtool_need_lc=$archive_cmds_need_lc_RC
26652
26653 # Whether or not to disallow shared libs when runtime libs are static
26654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26655
26656 # Whether or not to optimize for fast installation.
26657 fast_install=$enable_fast_install
26658
26659 # The host system.
26660 host_alias=$host_alias
26661 host=$host
26662 host_os=$host_os
26663
26664 # The build system.
26665 build_alias=$build_alias
26666 build=$build
26667 build_os=$build_os
26668
26669 # An echo program that does not interpret backslashes.
26670 echo=$lt_echo
26671
26672 # The archiver.
26673 AR=$lt_AR
26674 AR_FLAGS=$lt_AR_FLAGS
26675
26676 # A C compiler.
26677 LTCC=$lt_LTCC
26678
26679 # LTCC compiler flags.
26680 LTCFLAGS=$lt_LTCFLAGS
26681
26682 # A language-specific compiler.
26683 CC=$lt_compiler_RC
26684
26685 # Is the compiler the GNU C compiler?
26686 with_gcc=$GCC_RC
26687
26688 # An ERE matcher.
26689 EGREP=$lt_EGREP
26690
26691 # The linker used to build libraries.
26692 LD=$lt_LD_RC
26693
26694 # Whether we need hard or soft links.
26695 LN_S=$lt_LN_S
26696
26697 # A BSD-compatible nm program.
26698 NM=$lt_NM
26699
26700 # A symbol stripping program
26701 STRIP=$lt_STRIP
26702
26703 # Used to examine libraries when file_magic_cmd begins "file"
26704 MAGIC_CMD=$MAGIC_CMD
26705
26706 # Used on cygwin: DLL creation program.
26707 DLLTOOL="$DLLTOOL"
26708
26709 # Used on cygwin: object dumper.
26710 OBJDUMP="$OBJDUMP"
26711
26712 # Used on cygwin: assembler.
26713 AS="$AS"
26714
26715 # The name of the directory that contains temporary libtool files.
26716 objdir=$objdir
26717
26718 # How to create reloadable object files.
26719 reload_flag=$lt_reload_flag
26720 reload_cmds=$lt_reload_cmds
26721
26722 # How to pass a linker flag through the compiler.
26723 wl=$lt_lt_prog_compiler_wl_RC
26724
26725 # Object file suffix (normally "o").
26726 objext="$ac_objext"
26727
26728 # Old archive suffix (normally "a").
26729 libext="$libext"
26730
26731 # Shared library suffix (normally ".so").
26732 shrext_cmds='$shrext_cmds'
26733
26734 # Executable file suffix (normally "").
26735 exeext="$exeext"
26736
26737 # Additional compiler flags for building library objects.
26738 pic_flag=$lt_lt_prog_compiler_pic_RC
26739 pic_mode=$pic_mode
26740
26741 # What is the maximum length of a command?
26742 max_cmd_len=$lt_cv_sys_max_cmd_len
26743
26744 # Does compiler simultaneously support -c and -o options?
26745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26746
26747 # Must we lock files when doing compilation?
26748 need_locks=$lt_need_locks
26749
26750 # Do we need the lib prefix for modules?
26751 need_lib_prefix=$need_lib_prefix
26752
26753 # Do we need a version for libraries?
26754 need_version=$need_version
26755
26756 # Whether dlopen is supported.
26757 dlopen_support=$enable_dlopen
26758
26759 # Whether dlopen of programs is supported.
26760 dlopen_self=$enable_dlopen_self
26761
26762 # Whether dlopen of statically linked programs is supported.
26763 dlopen_self_static=$enable_dlopen_self_static
26764
26765 # Compiler flag to prevent dynamic linking.
26766 link_static_flag=$lt_lt_prog_compiler_static_RC
26767
26768 # Compiler flag to turn off builtin functions.
26769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26770
26771 # Compiler flag to allow reflexive dlopens.
26772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26773
26774 # Compiler flag to generate shared objects directly from archives.
26775 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26776
26777 # Compiler flag to generate thread-safe objects.
26778 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26779
26780 # Library versioning type.
26781 version_type=$version_type
26782
26783 # Format of library name prefix.
26784 libname_spec=$lt_libname_spec
26785
26786 # List of archive names.  First name is the real one, the rest are links.
26787 # The last name is the one that the linker finds with -lNAME.
26788 library_names_spec=$lt_library_names_spec
26789
26790 # The coded name of the library, if different from the real name.
26791 soname_spec=$lt_soname_spec
26792
26793 # Commands used to build and install an old-style archive.
26794 RANLIB=$lt_RANLIB
26795 old_archive_cmds=$lt_old_archive_cmds_RC
26796 old_postinstall_cmds=$lt_old_postinstall_cmds
26797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26798
26799 # Create an old-style archive from a shared archive.
26800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26801
26802 # Create a temporary old-style archive to link instead of a shared archive.
26803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26804
26805 # Commands used to build and install a shared archive.
26806 archive_cmds=$lt_archive_cmds_RC
26807 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26808 postinstall_cmds=$lt_postinstall_cmds
26809 postuninstall_cmds=$lt_postuninstall_cmds
26810
26811 # Commands used to build a loadable module (assumed same as above if empty)
26812 module_cmds=$lt_module_cmds_RC
26813 module_expsym_cmds=$lt_module_expsym_cmds_RC
26814
26815 # Commands to strip libraries.
26816 old_striplib=$lt_old_striplib
26817 striplib=$lt_striplib
26818
26819 # Dependencies to place before the objects being linked to create a
26820 # shared library.
26821 predep_objects=$lt_predep_objects_RC
26822
26823 # Dependencies to place after the objects being linked to create a
26824 # shared library.
26825 postdep_objects=$lt_postdep_objects_RC
26826
26827 # Dependencies to place before the objects being linked to create a
26828 # shared library.
26829 predeps=$lt_predeps_RC
26830
26831 # Dependencies to place after the objects being linked to create a
26832 # shared library.
26833 postdeps=$lt_postdeps_RC
26834
26835 # The library search path used internally by the compiler when linking
26836 # a shared library.
26837 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26838
26839 # Method to check whether dependent libraries are shared objects.
26840 deplibs_check_method=$lt_deplibs_check_method
26841
26842 # Command to use when deplibs_check_method == file_magic.
26843 file_magic_cmd=$lt_file_magic_cmd
26844
26845 # Flag that allows shared libraries with undefined symbols to be built.
26846 allow_undefined_flag=$lt_allow_undefined_flag_RC
26847
26848 # Flag that forces no undefined symbols.
26849 no_undefined_flag=$lt_no_undefined_flag_RC
26850
26851 # Commands used to finish a libtool library installation in a directory.
26852 finish_cmds=$lt_finish_cmds
26853
26854 # Same as above, but a single script fragment to be evaled but not shown.
26855 finish_eval=$lt_finish_eval
26856
26857 # Take the output of nm and produce a listing of raw symbols and C names.
26858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26859
26860 # Transform the output of nm in a proper C declaration
26861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26862
26863 # Transform the output of nm in a C name address pair
26864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26865
26866 # This is the shared library runtime path variable.
26867 runpath_var=$runpath_var
26868
26869 # This is the shared library path variable.
26870 shlibpath_var=$shlibpath_var
26871
26872 # Is shlibpath searched before the hard-coded library search path?
26873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26874
26875 # How to hardcode a shared library path into an executable.
26876 hardcode_action=$hardcode_action_RC
26877
26878 # Whether we should hardcode library paths into libraries.
26879 hardcode_into_libs=$hardcode_into_libs
26880
26881 # Flag to hardcode \$libdir into a binary during linking.
26882 # This must work even if \$libdir does not exist.
26883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26884
26885 # If ld is used when linking, flag to hardcode \$libdir into
26886 # a binary during linking. This must work even if \$libdir does
26887 # not exist.
26888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26889
26890 # Whether we need a single -rpath flag with a separated argument.
26891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26892
26893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26894 # resulting binary.
26895 hardcode_direct=$hardcode_direct_RC
26896
26897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26898 # resulting binary.
26899 hardcode_minus_L=$hardcode_minus_L_RC
26900
26901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26902 # the resulting binary.
26903 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26904
26905 # Set to yes if building a shared library automatically hardcodes DIR into the library
26906 # and all subsequent libraries and executables linked against it.
26907 hardcode_automatic=$hardcode_automatic_RC
26908
26909 # Variables whose values should be saved in libtool wrapper scripts and
26910 # restored at relink time.
26911 variables_saved_for_relink="$variables_saved_for_relink"
26912
26913 # Whether libtool must link a program against all its dependency libraries.
26914 link_all_deplibs=$link_all_deplibs_RC
26915
26916 # Compile-time system search path for libraries
26917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26918
26919 # Run-time system search path for libraries
26920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26921
26922 # Fix the shell variable \$srcfile for the compiler.
26923 fix_srcfile_path="$fix_srcfile_path_RC"
26924
26925 # Set to yes if exported symbols are required.
26926 always_export_symbols=$always_export_symbols_RC
26927
26928 # The commands to list exported symbols.
26929 export_symbols_cmds=$lt_export_symbols_cmds_RC
26930
26931 # The commands to extract the exported symbol list from a shared archive.
26932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26933
26934 # Symbols that should not be listed in the preloaded symbols.
26935 exclude_expsyms=$lt_exclude_expsyms_RC
26936
26937 # Symbols that must always be exported.
26938 include_expsyms=$lt_include_expsyms_RC
26939
26940 # ### END LIBTOOL TAG CONFIG: $tagname
26941
26942 __EOF__
26943
26944
26945 else
26946   # If there is no Makefile yet, we rely on a make rule to execute
26947   # `config.status --recheck' to rerun these tests and create the
26948   # libtool script then.
26949   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26950   if test -f "$ltmain_in"; then
26951     test -f Makefile && make "$ltmain"
26952   fi
26953 fi
26954
26955
26956 ac_ext=c
26957 ac_cpp='$CPP $CPPFLAGS'
26958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26961
26962 CC="$lt_save_CC"
26963
26964         ;;
26965
26966       *)
26967         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26968 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26969    { (exit 1); exit 1; }; }
26970         ;;
26971       esac
26972
26973       # Append the new tag name to the list of available tags.
26974       if test -n "$tagname" ; then
26975       available_tags="$available_tags $tagname"
26976     fi
26977     fi
26978   done
26979   IFS="$lt_save_ifs"
26980
26981   # Now substitute the updated list of available tags.
26982   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26983     mv "${ofile}T" "$ofile"
26984     chmod +x "$ofile"
26985   else
26986     rm -f "${ofile}T"
26987     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26988 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26989    { (exit 1); exit 1; }; }
26990   fi
26991 fi
26992
26993
26994
26995 # This can be used to rebuild libtool when needed
26996 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26997
26998 # Always use our own libtool.
26999 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27000
27001 # Prevent multiple expansion
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023 if test "$lt_cv_dlopen_self" = "yes" ; then
27024
27025 cat >>confdefs.h <<\_ACEOF
27026 #define CAN_DLOPEN_SELF 1
27027 _ACEOF
27028
27029 fi
27030
27031 if test "$WITH_LLVMGCCDIR" = "default" ; then
27032   LLVMGCC="llvm-gcc${EXEEXT}"
27033   LLVMGXX="llvm-g++${EXEEXT}"
27034   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27035 set dummy $LLVMGCC; ac_word=$2
27036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27038 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27039   echo $ECHO_N "(cached) $ECHO_C" >&6
27040 else
27041   case $LLVMGCC in
27042   [\\/]* | ?:[\\/]*)
27043   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27044   ;;
27045   *)
27046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27047 for as_dir in $PATH
27048 do
27049   IFS=$as_save_IFS
27050   test -z "$as_dir" && as_dir=.
27051   for ac_exec_ext in '' $ac_executable_extensions; do
27052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27053     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27055     break 2
27056   fi
27057 done
27058 done
27059 IFS=$as_save_IFS
27060
27061   ;;
27062 esac
27063 fi
27064 LLVMGCC=$ac_cv_path_LLVMGCC
27065 if test -n "$LLVMGCC"; then
27066   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27067 echo "${ECHO_T}$LLVMGCC" >&6; }
27068 else
27069   { echo "$as_me:$LINENO: result: no" >&5
27070 echo "${ECHO_T}no" >&6; }
27071 fi
27072
27073
27074   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27075 set dummy $LLVMGXX; ac_word=$2
27076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27078 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081   case $LLVMGXX in
27082   [\\/]* | ?:[\\/]*)
27083   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27084   ;;
27085   *)
27086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27087 for as_dir in $PATH
27088 do
27089   IFS=$as_save_IFS
27090   test -z "$as_dir" && as_dir=.
27091   for ac_exec_ext in '' $ac_executable_extensions; do
27092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27093     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27095     break 2
27096   fi
27097 done
27098 done
27099 IFS=$as_save_IFS
27100
27101   ;;
27102 esac
27103 fi
27104 LLVMGXX=$ac_cv_path_LLVMGXX
27105 if test -n "$LLVMGXX"; then
27106   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27107 echo "${ECHO_T}$LLVMGXX" >&6; }
27108 else
27109   { echo "$as_me:$LINENO: result: no" >&5
27110 echo "${ECHO_T}no" >&6; }
27111 fi
27112
27113
27114 else
27115   if test -z "$LLVMGCC"; then
27116     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27117   fi
27118   if test -z "$LLVMGXX"; then
27119     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27120   fi
27121   LLVMGCC=$LLVMGCC
27122
27123   LLVMGXX=$LLVMGXX
27124
27125 fi
27126
27127 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27128 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27129
27130 ICC=no
27131 IXX=no
27132 case $CC in
27133   icc*|icpc*)
27134     ICC=yes
27135     IXX=yes
27136     ;;
27137    *)
27138     ;;
27139 esac
27140
27141 if test "$GCC" != "yes" && test "$ICC" != "yes"
27142 then
27143   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27144 echo "$as_me: error: gcc|icc required but not found" >&2;}
27145    { (exit 1); exit 1; }; }
27146 fi
27147
27148 if test "$GXX" != "yes" && test "$IXX" != "yes"
27149 then
27150   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27151 echo "$as_me: error: g++|icc required but not found" >&2;}
27152    { (exit 1); exit 1; }; }
27153 fi
27154
27155 if test "$GCC" = "yes"
27156 then
27157   cat >conftest.$ac_ext <<_ACEOF
27158 #if !defined(__GNUC__) || __GNUC__ < 3
27159 #error Unsupported GCC version
27160 #endif
27161
27162 _ACEOF
27163 rm -f conftest.$ac_objext
27164 if { (ac_try="$ac_compile"
27165 case "(($ac_try" in
27166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167   *) ac_try_echo=$ac_try;;
27168 esac
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170   (eval "$ac_compile") 2>conftest.er1
27171   ac_status=$?
27172   grep -v '^ *+' conftest.er1 >conftest.err
27173   rm -f conftest.er1
27174   cat conftest.err >&5
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); } &&
27177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27178   { (case "(($ac_try" in
27179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180   *) ac_try_echo=$ac_try;;
27181 esac
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183   (eval "$ac_try") 2>&5
27184   ac_status=$?
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; } &&
27187          { ac_try='test -s conftest.$ac_objext'
27188   { (case "(($ac_try" in
27189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190   *) ac_try_echo=$ac_try;;
27191 esac
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193   (eval "$ac_try") 2>&5
27194   ac_status=$?
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); }; }; then
27197   :
27198 else
27199   echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27201
27202         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27203 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27204    { (exit 1); exit 1; }; }
27205 fi
27206
27207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27208 fi
27209
27210 if test -z "$llvm_cv_gnu_make_command"
27211 then
27212   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27213 echo "$as_me: error: GNU Make required but not found" >&2;}
27214    { (exit 1); exit 1; }; }
27215 fi
27216
27217 { echo "$as_me:$LINENO: result: ok" >&5
27218 echo "${ECHO_T}ok" >&6; }
27219
27220
27221
27222 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27223 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27224 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27225   echo $ECHO_N "(cached) $ECHO_C" >&6
27226 else
27227   ac_check_lib_save_LIBS=$LIBS
27228 LIBS="-lelf  $LIBS"
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235
27236 /* Override any GCC internal prototype to avoid an error.
27237    Use char because int might match the return type of a GCC
27238    builtin and then its argument prototype would still apply.  */
27239 #ifdef __cplusplus
27240 extern "C"
27241 #endif
27242 char elf_begin ();
27243 int
27244 main ()
27245 {
27246 return elf_begin ();
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (ac_try="$ac_link"
27253 case "(($ac_try" in
27254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255   *) ac_try_echo=$ac_try;;
27256 esac
27257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258   (eval "$ac_link") 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } &&
27265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27266   { (case "(($ac_try" in
27267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268   *) ac_try_echo=$ac_try;;
27269 esac
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271   (eval "$ac_try") 2>&5
27272   ac_status=$?
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); }; } &&
27275          { ac_try='test -s conftest$ac_exeext'
27276   { (case "(($ac_try" in
27277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278   *) ac_try_echo=$ac_try;;
27279 esac
27280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281   (eval "$ac_try") 2>&5
27282   ac_status=$?
27283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284   (exit $ac_status); }; }; then
27285   ac_cv_lib_elf_elf_begin=yes
27286 else
27287   echo "$as_me: failed program was:" >&5
27288 sed 's/^/| /' conftest.$ac_ext >&5
27289
27290         ac_cv_lib_elf_elf_begin=no
27291 fi
27292
27293 rm -f core conftest.err conftest.$ac_objext \
27294       conftest$ac_exeext conftest.$ac_ext
27295 LIBS=$ac_check_lib_save_LIBS
27296 fi
27297 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27298 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27299 if test $ac_cv_lib_elf_elf_begin = yes; then
27300   cat >>confdefs.h <<_ACEOF
27301 #define HAVE_LIBELF 1
27302 _ACEOF
27303
27304   LIBS="-lelf $LIBS"
27305
27306 fi
27307
27308
27309 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27310 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27311 if test "${ac_cv_lib_m_sin+set}" = set; then
27312   echo $ECHO_N "(cached) $ECHO_C" >&6
27313 else
27314   ac_check_lib_save_LIBS=$LIBS
27315 LIBS="-lm  $LIBS"
27316 cat >conftest.$ac_ext <<_ACEOF
27317 /* confdefs.h.  */
27318 _ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h.  */
27322
27323 /* Override any GCC internal prototype to avoid an error.
27324    Use char because int might match the return type of a GCC
27325    builtin and then its argument prototype would still apply.  */
27326 #ifdef __cplusplus
27327 extern "C"
27328 #endif
27329 char sin ();
27330 int
27331 main ()
27332 {
27333 return sin ();
27334   ;
27335   return 0;
27336 }
27337 _ACEOF
27338 rm -f conftest.$ac_objext conftest$ac_exeext
27339 if { (ac_try="$ac_link"
27340 case "(($ac_try" in
27341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342   *) ac_try_echo=$ac_try;;
27343 esac
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345   (eval "$ac_link") 2>conftest.er1
27346   ac_status=$?
27347   grep -v '^ *+' conftest.er1 >conftest.err
27348   rm -f conftest.er1
27349   cat conftest.err >&5
27350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351   (exit $ac_status); } &&
27352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27353   { (case "(($ac_try" in
27354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355   *) ac_try_echo=$ac_try;;
27356 esac
27357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358   (eval "$ac_try") 2>&5
27359   ac_status=$?
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); }; } &&
27362          { ac_try='test -s conftest$ac_exeext'
27363   { (case "(($ac_try" in
27364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365   *) ac_try_echo=$ac_try;;
27366 esac
27367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27368   (eval "$ac_try") 2>&5
27369   ac_status=$?
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); }; }; then
27372   ac_cv_lib_m_sin=yes
27373 else
27374   echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376
27377         ac_cv_lib_m_sin=no
27378 fi
27379
27380 rm -f core conftest.err conftest.$ac_objext \
27381       conftest$ac_exeext conftest.$ac_ext
27382 LIBS=$ac_check_lib_save_LIBS
27383 fi
27384 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27385 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27386 if test $ac_cv_lib_m_sin = yes; then
27387   cat >>confdefs.h <<_ACEOF
27388 #define HAVE_LIBM 1
27389 _ACEOF
27390
27391   LIBS="-lm $LIBS"
27392
27393 fi
27394
27395 if test "$llvm_cv_os_type" = "MingW" ; then
27396
27397 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27398 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27399 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27400   echo $ECHO_N "(cached) $ECHO_C" >&6
27401 else
27402   ac_check_lib_save_LIBS=$LIBS
27403 LIBS="-limagehlp  $LIBS"
27404 cat >conftest.$ac_ext <<_ACEOF
27405 /* confdefs.h.  */
27406 _ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h.  */
27410
27411
27412 int
27413 main ()
27414 {
27415 return main ();
27416   ;
27417   return 0;
27418 }
27419 _ACEOF
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421 if { (ac_try="$ac_link"
27422 case "(($ac_try" in
27423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424   *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427   (eval "$ac_link") 2>conftest.er1
27428   ac_status=$?
27429   grep -v '^ *+' conftest.er1 >conftest.err
27430   rm -f conftest.er1
27431   cat conftest.err >&5
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } &&
27434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435   { (case "(($ac_try" in
27436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437   *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440   (eval "$ac_try") 2>&5
27441   ac_status=$?
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); }; } &&
27444          { ac_try='test -s conftest$ac_exeext'
27445   { (case "(($ac_try" in
27446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447   *) ac_try_echo=$ac_try;;
27448 esac
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450   (eval "$ac_try") 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); }; }; then
27454   ac_cv_lib_imagehlp_main=yes
27455 else
27456   echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27458
27459         ac_cv_lib_imagehlp_main=no
27460 fi
27461
27462 rm -f core conftest.err conftest.$ac_objext \
27463       conftest$ac_exeext conftest.$ac_ext
27464 LIBS=$ac_check_lib_save_LIBS
27465 fi
27466 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27467 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27468 if test $ac_cv_lib_imagehlp_main = yes; then
27469   cat >>confdefs.h <<_ACEOF
27470 #define HAVE_LIBIMAGEHLP 1
27471 _ACEOF
27472
27473   LIBS="-limagehlp $LIBS"
27474
27475 fi
27476
27477
27478 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27479 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27480 if test "${ac_cv_lib_psapi_main+set}" = set; then
27481   echo $ECHO_N "(cached) $ECHO_C" >&6
27482 else
27483   ac_check_lib_save_LIBS=$LIBS
27484 LIBS="-lpsapi  $LIBS"
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491
27492
27493 int
27494 main ()
27495 {
27496 return main ();
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505   *) ac_try_echo=$ac_try;;
27506 esac
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508   (eval "$ac_link") 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } &&
27515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516   { (case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521   (eval "$ac_try") 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; } &&
27525          { ac_try='test -s conftest$ac_exeext'
27526   { (case "(($ac_try" in
27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528   *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531   (eval "$ac_try") 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; }; then
27535   ac_cv_lib_psapi_main=yes
27536 else
27537   echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540         ac_cv_lib_psapi_main=no
27541 fi
27542
27543 rm -f core conftest.err conftest.$ac_objext \
27544       conftest$ac_exeext conftest.$ac_ext
27545 LIBS=$ac_check_lib_save_LIBS
27546 fi
27547 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27548 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27549 if test $ac_cv_lib_psapi_main = yes; then
27550   cat >>confdefs.h <<_ACEOF
27551 #define HAVE_LIBPSAPI 1
27552 _ACEOF
27553
27554   LIBS="-lpsapi $LIBS"
27555
27556 fi
27557
27558 fi
27559
27560 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27561 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27562 if test "${ac_cv_search_dlopen+set}" = set; then
27563   echo $ECHO_N "(cached) $ECHO_C" >&6
27564 else
27565   ac_func_search_save_LIBS=$LIBS
27566 cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572
27573 /* Override any GCC internal prototype to avoid an error.
27574    Use char because int might match the return type of a GCC
27575    builtin and then its argument prototype would still apply.  */
27576 #ifdef __cplusplus
27577 extern "C"
27578 #endif
27579 char dlopen ();
27580 int
27581 main ()
27582 {
27583 return dlopen ();
27584   ;
27585   return 0;
27586 }
27587 _ACEOF
27588 for ac_lib in '' dl; do
27589   if test -z "$ac_lib"; then
27590     ac_res="none required"
27591   else
27592     ac_res=-l$ac_lib
27593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27594   fi
27595   rm -f conftest.$ac_objext conftest$ac_exeext
27596 if { (ac_try="$ac_link"
27597 case "(($ac_try" in
27598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599   *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602   (eval "$ac_link") 2>conftest.er1
27603   ac_status=$?
27604   grep -v '^ *+' conftest.er1 >conftest.err
27605   rm -f conftest.er1
27606   cat conftest.err >&5
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } &&
27609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27610   { (case "(($ac_try" in
27611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612   *) ac_try_echo=$ac_try;;
27613 esac
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615   (eval "$ac_try") 2>&5
27616   ac_status=$?
27617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618   (exit $ac_status); }; } &&
27619          { ac_try='test -s conftest$ac_exeext'
27620   { (case "(($ac_try" in
27621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622   *) ac_try_echo=$ac_try;;
27623 esac
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625   (eval "$ac_try") 2>&5
27626   ac_status=$?
27627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628   (exit $ac_status); }; }; then
27629   ac_cv_search_dlopen=$ac_res
27630 else
27631   echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634
27635 fi
27636
27637 rm -f core conftest.err conftest.$ac_objext \
27638       conftest$ac_exeext
27639   if test "${ac_cv_search_dlopen+set}" = set; then
27640   break
27641 fi
27642 done
27643 if test "${ac_cv_search_dlopen+set}" = set; then
27644   :
27645 else
27646   ac_cv_search_dlopen=no
27647 fi
27648 rm conftest.$ac_ext
27649 LIBS=$ac_func_search_save_LIBS
27650 fi
27651 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27652 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27653 ac_res=$ac_cv_search_dlopen
27654 if test "$ac_res" != no; then
27655   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27656
27657 cat >>confdefs.h <<\_ACEOF
27658 #define HAVE_DLOPEN 1
27659 _ACEOF
27660
27661 else
27662   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27663 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27664 fi
27665
27666
27667 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27668 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27669 if test "${ac_cv_search_mallinfo+set}" = set; then
27670   echo $ECHO_N "(cached) $ECHO_C" >&6
27671 else
27672   ac_func_search_save_LIBS=$LIBS
27673 cat >conftest.$ac_ext <<_ACEOF
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679
27680 /* Override any GCC internal prototype to avoid an error.
27681    Use char because int might match the return type of a GCC
27682    builtin and then its argument prototype would still apply.  */
27683 #ifdef __cplusplus
27684 extern "C"
27685 #endif
27686 char mallinfo ();
27687 int
27688 main ()
27689 {
27690 return mallinfo ();
27691   ;
27692   return 0;
27693 }
27694 _ACEOF
27695 for ac_lib in '' malloc; do
27696   if test -z "$ac_lib"; then
27697     ac_res="none required"
27698   else
27699     ac_res=-l$ac_lib
27700     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27701   fi
27702   rm -f conftest.$ac_objext conftest$ac_exeext
27703 if { (ac_try="$ac_link"
27704 case "(($ac_try" in
27705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706   *) ac_try_echo=$ac_try;;
27707 esac
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709   (eval "$ac_link") 2>conftest.er1
27710   ac_status=$?
27711   grep -v '^ *+' conftest.er1 >conftest.err
27712   rm -f conftest.er1
27713   cat conftest.err >&5
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); } &&
27716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27717   { (case "(($ac_try" in
27718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719   *) ac_try_echo=$ac_try;;
27720 esac
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722   (eval "$ac_try") 2>&5
27723   ac_status=$?
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); }; } &&
27726          { ac_try='test -s conftest$ac_exeext'
27727   { (case "(($ac_try" in
27728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729   *) ac_try_echo=$ac_try;;
27730 esac
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732   (eval "$ac_try") 2>&5
27733   ac_status=$?
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); }; }; then
27736   ac_cv_search_mallinfo=$ac_res
27737 else
27738   echo "$as_me: failed program was:" >&5
27739 sed 's/^/| /' conftest.$ac_ext >&5
27740
27741
27742 fi
27743
27744 rm -f core conftest.err conftest.$ac_objext \
27745       conftest$ac_exeext
27746   if test "${ac_cv_search_mallinfo+set}" = set; then
27747   break
27748 fi
27749 done
27750 if test "${ac_cv_search_mallinfo+set}" = set; then
27751   :
27752 else
27753   ac_cv_search_mallinfo=no
27754 fi
27755 rm conftest.$ac_ext
27756 LIBS=$ac_func_search_save_LIBS
27757 fi
27758 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27759 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27760 ac_res=$ac_cv_search_mallinfo
27761 if test "$ac_res" != no; then
27762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27763
27764 cat >>confdefs.h <<\_ACEOF
27765 #define HAVE_MALLINFO 1
27766 _ACEOF
27767
27768 fi
27769
27770
27771 if test "$ENABLE_THREADS" -eq 1 ; then
27772
27773 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27774 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27775 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27776   echo $ECHO_N "(cached) $ECHO_C" >&6
27777 else
27778   ac_check_lib_save_LIBS=$LIBS
27779 LIBS="-lpthread  $LIBS"
27780 cat >conftest.$ac_ext <<_ACEOF
27781 /* confdefs.h.  */
27782 _ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h.  */
27786
27787 /* Override any GCC internal prototype to avoid an error.
27788    Use char because int might match the return type of a GCC
27789    builtin and then its argument prototype would still apply.  */
27790 #ifdef __cplusplus
27791 extern "C"
27792 #endif
27793 char pthread_mutex_init ();
27794 int
27795 main ()
27796 {
27797 return pthread_mutex_init ();
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (ac_try="$ac_link"
27804 case "(($ac_try" in
27805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806   *) ac_try_echo=$ac_try;;
27807 esac
27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809   (eval "$ac_link") 2>conftest.er1
27810   ac_status=$?
27811   grep -v '^ *+' conftest.er1 >conftest.err
27812   rm -f conftest.er1
27813   cat conftest.err >&5
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); } &&
27816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27817   { (case "(($ac_try" in
27818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819   *) ac_try_echo=$ac_try;;
27820 esac
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822   (eval "$ac_try") 2>&5
27823   ac_status=$?
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); }; } &&
27826          { ac_try='test -s conftest$ac_exeext'
27827   { (case "(($ac_try" in
27828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829   *) ac_try_echo=$ac_try;;
27830 esac
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832   (eval "$ac_try") 2>&5
27833   ac_status=$?
27834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835   (exit $ac_status); }; }; then
27836   ac_cv_lib_pthread_pthread_mutex_init=yes
27837 else
27838   echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841         ac_cv_lib_pthread_pthread_mutex_init=no
27842 fi
27843
27844 rm -f core conftest.err conftest.$ac_objext \
27845       conftest$ac_exeext conftest.$ac_ext
27846 LIBS=$ac_check_lib_save_LIBS
27847 fi
27848 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27849 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27850 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27851   cat >>confdefs.h <<_ACEOF
27852 #define HAVE_LIBPTHREAD 1
27853 _ACEOF
27854
27855   LIBS="-lpthread $LIBS"
27856
27857 fi
27858
27859   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27860 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27861 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27862   echo $ECHO_N "(cached) $ECHO_C" >&6
27863 else
27864   ac_func_search_save_LIBS=$LIBS
27865 cat >conftest.$ac_ext <<_ACEOF
27866 /* confdefs.h.  */
27867 _ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h.  */
27871
27872 /* Override any GCC internal prototype to avoid an error.
27873    Use char because int might match the return type of a GCC
27874    builtin and then its argument prototype would still apply.  */
27875 #ifdef __cplusplus
27876 extern "C"
27877 #endif
27878 char pthread_mutex_lock ();
27879 int
27880 main ()
27881 {
27882 return pthread_mutex_lock ();
27883   ;
27884   return 0;
27885 }
27886 _ACEOF
27887 for ac_lib in '' pthread; do
27888   if test -z "$ac_lib"; then
27889     ac_res="none required"
27890   else
27891     ac_res=-l$ac_lib
27892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27893   fi
27894   rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (ac_try="$ac_link"
27896 case "(($ac_try" in
27897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898   *) ac_try_echo=$ac_try;;
27899 esac
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901   (eval "$ac_link") 2>conftest.er1
27902   ac_status=$?
27903   grep -v '^ *+' conftest.er1 >conftest.err
27904   rm -f conftest.er1
27905   cat conftest.err >&5
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); } &&
27908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27909   { (case "(($ac_try" in
27910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911   *) ac_try_echo=$ac_try;;
27912 esac
27913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914   (eval "$ac_try") 2>&5
27915   ac_status=$?
27916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917   (exit $ac_status); }; } &&
27918          { ac_try='test -s conftest$ac_exeext'
27919   { (case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_try") 2>&5
27925   ac_status=$?
27926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927   (exit $ac_status); }; }; then
27928   ac_cv_search_pthread_mutex_lock=$ac_res
27929 else
27930   echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27932
27933
27934 fi
27935
27936 rm -f core conftest.err conftest.$ac_objext \
27937       conftest$ac_exeext
27938   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27939   break
27940 fi
27941 done
27942 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27943   :
27944 else
27945   ac_cv_search_pthread_mutex_lock=no
27946 fi
27947 rm conftest.$ac_ext
27948 LIBS=$ac_func_search_save_LIBS
27949 fi
27950 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27951 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27952 ac_res=$ac_cv_search_pthread_mutex_lock
27953 if test "$ac_res" != no; then
27954   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27955
27956 cat >>confdefs.h <<\_ACEOF
27957 #define HAVE_PTHREAD_MUTEX_LOCK 1
27958 _ACEOF
27959
27960 fi
27961
27962 fi
27963
27964
27965 # Check whether --with-udis86 was given.
27966 if test "${with_udis86+set}" = set; then
27967   withval=$with_udis86;
27968       USE_UDIS86=1
27969
27970       case "$withval" in
27971         /usr/lib|yes) ;;
27972         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27973       esac
27974
27975 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27976 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27977 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27978   echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980   ac_check_lib_save_LIBS=$LIBS
27981 LIBS="-ludis86  $LIBS"
27982 cat >conftest.$ac_ext <<_ACEOF
27983 /* confdefs.h.  */
27984 _ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h.  */
27988
27989 /* Override any GCC internal prototype to avoid an error.
27990    Use char because int might match the return type of a GCC
27991    builtin and then its argument prototype would still apply.  */
27992 #ifdef __cplusplus
27993 extern "C"
27994 #endif
27995 char ud_init ();
27996 int
27997 main ()
27998 {
27999 return ud_init ();
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (ac_try="$ac_link"
28006 case "(($ac_try" in
28007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008   *) ac_try_echo=$ac_try;;
28009 esac
28010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011   (eval "$ac_link") 2>conftest.er1
28012   ac_status=$?
28013   grep -v '^ *+' conftest.er1 >conftest.err
28014   rm -f conftest.er1
28015   cat conftest.err >&5
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } &&
28018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28019   { (case "(($ac_try" in
28020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28021   *) ac_try_echo=$ac_try;;
28022 esac
28023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024   (eval "$ac_try") 2>&5
28025   ac_status=$?
28026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027   (exit $ac_status); }; } &&
28028          { ac_try='test -s conftest$ac_exeext'
28029   { (case "(($ac_try" in
28030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031   *) ac_try_echo=$ac_try;;
28032 esac
28033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28034   (eval "$ac_try") 2>&5
28035   ac_status=$?
28036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037   (exit $ac_status); }; }; then
28038   ac_cv_lib_udis86_ud_init=yes
28039 else
28040   echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28042
28043         ac_cv_lib_udis86_ud_init=no
28044 fi
28045
28046 rm -f core conftest.err conftest.$ac_objext \
28047       conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28049 fi
28050 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28051 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28052 if test $ac_cv_lib_udis86_ud_init = yes; then
28053   cat >>confdefs.h <<_ACEOF
28054 #define HAVE_LIBUDIS86 1
28055 _ACEOF
28056
28057   LIBS="-ludis86 $LIBS"
28058
28059 else
28060
28061         echo "Error! You need to have libudis86 around."
28062         exit -1
28063
28064 fi
28065
28066
28067 else
28068   USE_UDIS86=0
28069
28070 fi
28071
28072
28073 cat >>confdefs.h <<_ACEOF
28074 #define USE_UDIS86 $USE_UDIS86
28075 _ACEOF
28076
28077
28078
28079
28080
28081
28082
28083
28084 ac_header_dirent=no
28085 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28086   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28087 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28088 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28090   echo $ECHO_N "(cached) $ECHO_C" >&6
28091 else
28092   cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h.  */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h.  */
28098 #include <sys/types.h>
28099 #include <$ac_hdr>
28100
28101 int
28102 main ()
28103 {
28104 if ((DIR *) 0)
28105 return 0;
28106   ;
28107   return 0;
28108 }
28109 _ACEOF
28110 rm -f conftest.$ac_objext
28111 if { (ac_try="$ac_compile"
28112 case "(($ac_try" in
28113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114   *) ac_try_echo=$ac_try;;
28115 esac
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117   (eval "$ac_compile") 2>conftest.er1
28118   ac_status=$?
28119   grep -v '^ *+' conftest.er1 >conftest.err
28120   rm -f conftest.er1
28121   cat conftest.err >&5
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } &&
28124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28125   { (case "(($ac_try" in
28126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127   *) ac_try_echo=$ac_try;;
28128 esac
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130   (eval "$ac_try") 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; } &&
28134          { ac_try='test -s conftest.$ac_objext'
28135   { (case "(($ac_try" in
28136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137   *) ac_try_echo=$ac_try;;
28138 esac
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140   (eval "$ac_try") 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   eval "$as_ac_Header=yes"
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149         eval "$as_ac_Header=no"
28150 fi
28151
28152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28153 fi
28154 ac_res=`eval echo '${'$as_ac_Header'}'`
28155                { echo "$as_me:$LINENO: result: $ac_res" >&5
28156 echo "${ECHO_T}$ac_res" >&6; }
28157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28158   cat >>confdefs.h <<_ACEOF
28159 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28160 _ACEOF
28161
28162 ac_header_dirent=$ac_hdr; break
28163 fi
28164
28165 done
28166 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28167 if test $ac_header_dirent = dirent.h; then
28168   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28169 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28170 if test "${ac_cv_search_opendir+set}" = set; then
28171   echo $ECHO_N "(cached) $ECHO_C" >&6
28172 else
28173   ac_func_search_save_LIBS=$LIBS
28174 cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180
28181 /* Override any GCC internal prototype to avoid an error.
28182    Use char because int might match the return type of a GCC
28183    builtin and then its argument prototype would still apply.  */
28184 #ifdef __cplusplus
28185 extern "C"
28186 #endif
28187 char opendir ();
28188 int
28189 main ()
28190 {
28191 return opendir ();
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 for ac_lib in '' dir; do
28197   if test -z "$ac_lib"; then
28198     ac_res="none required"
28199   else
28200     ac_res=-l$ac_lib
28201     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28202   fi
28203   rm -f conftest.$ac_objext conftest$ac_exeext
28204 if { (ac_try="$ac_link"
28205 case "(($ac_try" in
28206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207   *) ac_try_echo=$ac_try;;
28208 esac
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210   (eval "$ac_link") 2>conftest.er1
28211   ac_status=$?
28212   grep -v '^ *+' conftest.er1 >conftest.err
28213   rm -f conftest.er1
28214   cat conftest.err >&5
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); } &&
28217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218   { (case "(($ac_try" in
28219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220   *) ac_try_echo=$ac_try;;
28221 esac
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223   (eval "$ac_try") 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); }; } &&
28227          { ac_try='test -s conftest$ac_exeext'
28228   { (case "(($ac_try" in
28229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230   *) ac_try_echo=$ac_try;;
28231 esac
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233   (eval "$ac_try") 2>&5
28234   ac_status=$?
28235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; }; then
28237   ac_cv_search_opendir=$ac_res
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242
28243 fi
28244
28245 rm -f core conftest.err conftest.$ac_objext \
28246       conftest$ac_exeext
28247   if test "${ac_cv_search_opendir+set}" = set; then
28248   break
28249 fi
28250 done
28251 if test "${ac_cv_search_opendir+set}" = set; then
28252   :
28253 else
28254   ac_cv_search_opendir=no
28255 fi
28256 rm conftest.$ac_ext
28257 LIBS=$ac_func_search_save_LIBS
28258 fi
28259 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28260 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28261 ac_res=$ac_cv_search_opendir
28262 if test "$ac_res" != no; then
28263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28264
28265 fi
28266
28267 else
28268   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28270 if test "${ac_cv_search_opendir+set}" = set; then
28271   echo $ECHO_N "(cached) $ECHO_C" >&6
28272 else
28273   ac_func_search_save_LIBS=$LIBS
28274 cat >conftest.$ac_ext <<_ACEOF
28275 /* confdefs.h.  */
28276 _ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h.  */
28280
28281 /* Override any GCC internal prototype to avoid an error.
28282    Use char because int might match the return type of a GCC
28283    builtin and then its argument prototype would still apply.  */
28284 #ifdef __cplusplus
28285 extern "C"
28286 #endif
28287 char opendir ();
28288 int
28289 main ()
28290 {
28291 return opendir ();
28292   ;
28293   return 0;
28294 }
28295 _ACEOF
28296 for ac_lib in '' x; do
28297   if test -z "$ac_lib"; then
28298     ac_res="none required"
28299   else
28300     ac_res=-l$ac_lib
28301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28302   fi
28303   rm -f conftest.$ac_objext conftest$ac_exeext
28304 if { (ac_try="$ac_link"
28305 case "(($ac_try" in
28306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307   *) ac_try_echo=$ac_try;;
28308 esac
28309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310   (eval "$ac_link") 2>conftest.er1
28311   ac_status=$?
28312   grep -v '^ *+' conftest.er1 >conftest.err
28313   rm -f conftest.er1
28314   cat conftest.err >&5
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); } &&
28317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28318   { (case "(($ac_try" in
28319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320   *) ac_try_echo=$ac_try;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323   (eval "$ac_try") 2>&5
28324   ac_status=$?
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); }; } &&
28327          { ac_try='test -s conftest$ac_exeext'
28328   { (case "(($ac_try" in
28329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330   *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333   (eval "$ac_try") 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; }; then
28337   ac_cv_search_opendir=$ac_res
28338 else
28339   echo "$as_me: failed program was:" >&5
28340 sed 's/^/| /' conftest.$ac_ext >&5
28341
28342
28343 fi
28344
28345 rm -f core conftest.err conftest.$ac_objext \
28346       conftest$ac_exeext
28347   if test "${ac_cv_search_opendir+set}" = set; then
28348   break
28349 fi
28350 done
28351 if test "${ac_cv_search_opendir+set}" = set; then
28352   :
28353 else
28354   ac_cv_search_opendir=no
28355 fi
28356 rm conftest.$ac_ext
28357 LIBS=$ac_func_search_save_LIBS
28358 fi
28359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28361 ac_res=$ac_cv_search_opendir
28362 if test "$ac_res" != no; then
28363   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28364
28365 fi
28366
28367 fi
28368
28369 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28370 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28371 if test "${ac_cv_header_mmap_anon+set}" = set; then
28372   echo $ECHO_N "(cached) $ECHO_C" >&6
28373 else
28374    ac_ext=c
28375 ac_cpp='$CPP $CPPFLAGS'
28376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28379
28380   cat >conftest.$ac_ext <<_ACEOF
28381 /* confdefs.h.  */
28382 _ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h.  */
28386 #include <sys/mman.h>
28387 #include <unistd.h>
28388 #include <fcntl.h>
28389 int
28390 main ()
28391 {
28392 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28393   ;
28394   return 0;
28395 }
28396 _ACEOF
28397 rm -f conftest.$ac_objext
28398 if { (ac_try="$ac_compile"
28399 case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404   (eval "$ac_compile") 2>conftest.er1
28405   ac_status=$?
28406   grep -v '^ *+' conftest.er1 >conftest.err
28407   rm -f conftest.er1
28408   cat conftest.err >&5
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); } &&
28411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28412   { (case "(($ac_try" in
28413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414   *) ac_try_echo=$ac_try;;
28415 esac
28416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417   (eval "$ac_try") 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; } &&
28421          { ac_try='test -s conftest.$ac_objext'
28422   { (case "(($ac_try" in
28423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424   *) ac_try_echo=$ac_try;;
28425 esac
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427   (eval "$ac_try") 2>&5
28428   ac_status=$?
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); }; }; then
28431   ac_cv_header_mmap_anon=yes
28432 else
28433   echo "$as_me: failed program was:" >&5
28434 sed 's/^/| /' conftest.$ac_ext >&5
28435
28436         ac_cv_header_mmap_anon=no
28437 fi
28438
28439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28440   ac_ext=c
28441 ac_cpp='$CPP $CPPFLAGS'
28442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28445
28446
28447 fi
28448 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28449 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28450 if test "$ac_cv_header_mmap_anon" = yes; then
28451
28452 cat >>confdefs.h <<\_ACEOF
28453 #define HAVE_MMAP_ANONYMOUS 1
28454 _ACEOF
28455
28456 fi
28457
28458 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28459 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28460 if test "${ac_cv_header_stat_broken+set}" = set; then
28461   echo $ECHO_N "(cached) $ECHO_C" >&6
28462 else
28463   cat >conftest.$ac_ext <<_ACEOF
28464 /* confdefs.h.  */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h.  */
28469 #include <sys/types.h>
28470 #include <sys/stat.h>
28471
28472 #if defined S_ISBLK && defined S_IFDIR
28473 # if S_ISBLK (S_IFDIR)
28474 You lose.
28475 # endif
28476 #endif
28477
28478 #if defined S_ISBLK && defined S_IFCHR
28479 # if S_ISBLK (S_IFCHR)
28480 You lose.
28481 # endif
28482 #endif
28483
28484 #if defined S_ISLNK && defined S_IFREG
28485 # if S_ISLNK (S_IFREG)
28486 You lose.
28487 # endif
28488 #endif
28489
28490 #if defined S_ISSOCK && defined S_IFREG
28491 # if S_ISSOCK (S_IFREG)
28492 You lose.
28493 # endif
28494 #endif
28495
28496 _ACEOF
28497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28498   $EGREP "You lose" >/dev/null 2>&1; then
28499   ac_cv_header_stat_broken=yes
28500 else
28501   ac_cv_header_stat_broken=no
28502 fi
28503 rm -f conftest*
28504
28505 fi
28506 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28507 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28508 if test $ac_cv_header_stat_broken = yes; then
28509
28510 cat >>confdefs.h <<\_ACEOF
28511 #define STAT_MACROS_BROKEN 1
28512 _ACEOF
28513
28514 fi
28515
28516 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28518 if test "${ac_cv_header_stdc+set}" = set; then
28519   echo $ECHO_N "(cached) $ECHO_C" >&6
28520 else
28521   cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h.  */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h.  */
28527 #include <stdlib.h>
28528 #include <stdarg.h>
28529 #include <string.h>
28530 #include <float.h>
28531
28532 int
28533 main ()
28534 {
28535
28536   ;
28537   return 0;
28538 }
28539 _ACEOF
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544   *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547   (eval "$ac_compile") 2>conftest.er1
28548   ac_status=$?
28549   grep -v '^ *+' conftest.er1 >conftest.err
28550   rm -f conftest.er1
28551   cat conftest.err >&5
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); } &&
28554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28555   { (case "(($ac_try" in
28556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557   *) ac_try_echo=$ac_try;;
28558 esac
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560   (eval "$ac_try") 2>&5
28561   ac_status=$?
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); }; } &&
28564          { ac_try='test -s conftest.$ac_objext'
28565   { (case "(($ac_try" in
28566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567   *) ac_try_echo=$ac_try;;
28568 esac
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570   (eval "$ac_try") 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); }; }; then
28574   ac_cv_header_stdc=yes
28575 else
28576   echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28578
28579         ac_cv_header_stdc=no
28580 fi
28581
28582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28583
28584 if test $ac_cv_header_stdc = yes; then
28585   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28586   cat >conftest.$ac_ext <<_ACEOF
28587 /* confdefs.h.  */
28588 _ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h.  */
28592 #include <string.h>
28593
28594 _ACEOF
28595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28596   $EGREP "memchr" >/dev/null 2>&1; then
28597   :
28598 else
28599   ac_cv_header_stdc=no
28600 fi
28601 rm -f conftest*
28602
28603 fi
28604
28605 if test $ac_cv_header_stdc = yes; then
28606   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28607   cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h.  */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h.  */
28613 #include <stdlib.h>
28614
28615 _ACEOF
28616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28617   $EGREP "free" >/dev/null 2>&1; then
28618   :
28619 else
28620   ac_cv_header_stdc=no
28621 fi
28622 rm -f conftest*
28623
28624 fi
28625
28626 if test $ac_cv_header_stdc = yes; then
28627   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28628   if test "$cross_compiling" = yes; then
28629   :
28630 else
28631   cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h.  */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h.  */
28637 #include <ctype.h>
28638 #include <stdlib.h>
28639 #if ((' ' & 0x0FF) == 0x020)
28640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28642 #else
28643 # define ISLOWER(c) \
28644                    (('a' <= (c) && (c) <= 'i') \
28645                      || ('j' <= (c) && (c) <= 'r') \
28646                      || ('s' <= (c) && (c) <= 'z'))
28647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28648 #endif
28649
28650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28651 int
28652 main ()
28653 {
28654   int i;
28655   for (i = 0; i < 256; i++)
28656     if (XOR (islower (i), ISLOWER (i))
28657         || toupper (i) != TOUPPER (i))
28658       return 2;
28659   return 0;
28660 }
28661 _ACEOF
28662 rm -f conftest$ac_exeext
28663 if { (ac_try="$ac_link"
28664 case "(($ac_try" in
28665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666   *) ac_try_echo=$ac_try;;
28667 esac
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669   (eval "$ac_link") 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28673   { (case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_try") 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   :
28683 else
28684   echo "$as_me: program exited with status $ac_status" >&5
28685 echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28687
28688 ( exit $ac_status )
28689 ac_cv_header_stdc=no
28690 fi
28691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28692 fi
28693
28694
28695 fi
28696 fi
28697 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28698 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28699 if test $ac_cv_header_stdc = yes; then
28700
28701 cat >>confdefs.h <<\_ACEOF
28702 #define STDC_HEADERS 1
28703 _ACEOF
28704
28705 fi
28706
28707 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28708 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28709 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28710   echo $ECHO_N "(cached) $ECHO_C" >&6
28711 else
28712   cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h.  */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h.  */
28718 #include <sys/types.h>
28719 #include <sys/wait.h>
28720 #ifndef WEXITSTATUS
28721 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28722 #endif
28723 #ifndef WIFEXITED
28724 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28725 #endif
28726
28727 int
28728 main ()
28729 {
28730   int s;
28731   wait (&s);
28732   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28733   ;
28734   return 0;
28735 }
28736 _ACEOF
28737 rm -f conftest.$ac_objext
28738 if { (ac_try="$ac_compile"
28739 case "(($ac_try" in
28740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741   *) ac_try_echo=$ac_try;;
28742 esac
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744   (eval "$ac_compile") 2>conftest.er1
28745   ac_status=$?
28746   grep -v '^ *+' conftest.er1 >conftest.err
28747   rm -f conftest.er1
28748   cat conftest.err >&5
28749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750   (exit $ac_status); } &&
28751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28752   { (case "(($ac_try" in
28753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754   *) ac_try_echo=$ac_try;;
28755 esac
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757   (eval "$ac_try") 2>&5
28758   ac_status=$?
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); }; } &&
28761          { ac_try='test -s conftest.$ac_objext'
28762   { (case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_try") 2>&5
28768   ac_status=$?
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); }; }; then
28771   ac_cv_header_sys_wait_h=yes
28772 else
28773   echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28775
28776         ac_cv_header_sys_wait_h=no
28777 fi
28778
28779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780 fi
28781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28782 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28783 if test $ac_cv_header_sys_wait_h = yes; then
28784
28785 cat >>confdefs.h <<\_ACEOF
28786 #define HAVE_SYS_WAIT_H 1
28787 _ACEOF
28788
28789 fi
28790
28791 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28792 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28793 if test "${ac_cv_header_time+set}" = set; then
28794   echo $ECHO_N "(cached) $ECHO_C" >&6
28795 else
28796   cat >conftest.$ac_ext <<_ACEOF
28797 /* confdefs.h.  */
28798 _ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h.  */
28802 #include <sys/types.h>
28803 #include <sys/time.h>
28804 #include <time.h>
28805
28806 int
28807 main ()
28808 {
28809 if ((struct tm *) 0)
28810 return 0;
28811   ;
28812   return 0;
28813 }
28814 _ACEOF
28815 rm -f conftest.$ac_objext
28816 if { (ac_try="$ac_compile"
28817 case "(($ac_try" in
28818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819   *) ac_try_echo=$ac_try;;
28820 esac
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822   (eval "$ac_compile") 2>conftest.er1
28823   ac_status=$?
28824   grep -v '^ *+' conftest.er1 >conftest.err
28825   rm -f conftest.er1
28826   cat conftest.err >&5
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } &&
28829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28830   { (case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835   (eval "$ac_try") 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; } &&
28839          { ac_try='test -s conftest.$ac_objext'
28840   { (case "(($ac_try" in
28841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842   *) ac_try_echo=$ac_try;;
28843 esac
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845   (eval "$ac_try") 2>&5
28846   ac_status=$?
28847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848   (exit $ac_status); }; }; then
28849   ac_cv_header_time=yes
28850 else
28851   echo "$as_me: failed program was:" >&5
28852 sed 's/^/| /' conftest.$ac_ext >&5
28853
28854         ac_cv_header_time=no
28855 fi
28856
28857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28858 fi
28859 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28860 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28861 if test $ac_cv_header_time = yes; then
28862
28863 cat >>confdefs.h <<\_ACEOF
28864 #define TIME_WITH_SYS_TIME 1
28865 _ACEOF
28866
28867 fi
28868
28869
28870
28871
28872
28873
28874
28875
28876 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28877 do
28878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28880   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28883   echo $ECHO_N "(cached) $ECHO_C" >&6
28884 fi
28885 ac_res=`eval echo '${'$as_ac_Header'}'`
28886                { echo "$as_me:$LINENO: result: $ac_res" >&5
28887 echo "${ECHO_T}$ac_res" >&6; }
28888 else
28889   # Is the header compilable?
28890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28892 cat >conftest.$ac_ext <<_ACEOF
28893 /* confdefs.h.  */
28894 _ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h.  */
28898 $ac_includes_default
28899 #include <$ac_header>
28900 _ACEOF
28901 rm -f conftest.$ac_objext
28902 if { (ac_try="$ac_compile"
28903 case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908   (eval "$ac_compile") 2>conftest.er1
28909   ac_status=$?
28910   grep -v '^ *+' conftest.er1 >conftest.err
28911   rm -f conftest.er1
28912   cat conftest.err >&5
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); } &&
28915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28916   { (case "(($ac_try" in
28917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918   *) ac_try_echo=$ac_try;;
28919 esac
28920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921   (eval "$ac_try") 2>&5
28922   ac_status=$?
28923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924   (exit $ac_status); }; } &&
28925          { ac_try='test -s conftest.$ac_objext'
28926   { (case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_try") 2>&5
28932   ac_status=$?
28933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934   (exit $ac_status); }; }; then
28935   ac_header_compiler=yes
28936 else
28937   echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.$ac_ext >&5
28939
28940         ac_header_compiler=no
28941 fi
28942
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28945 echo "${ECHO_T}$ac_header_compiler" >&6; }
28946
28947 # Is the header present?
28948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28950 cat >conftest.$ac_ext <<_ACEOF
28951 /* confdefs.h.  */
28952 _ACEOF
28953 cat confdefs.h >>conftest.$ac_ext
28954 cat >>conftest.$ac_ext <<_ACEOF
28955 /* end confdefs.h.  */
28956 #include <$ac_header>
28957 _ACEOF
28958 if { (ac_try="$ac_cpp conftest.$ac_ext"
28959 case "(($ac_try" in
28960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961   *) ac_try_echo=$ac_try;;
28962 esac
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28965   ac_status=$?
28966   grep -v '^ *+' conftest.er1 >conftest.err
28967   rm -f conftest.er1
28968   cat conftest.err >&5
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); } >/dev/null; then
28971   if test -s conftest.err; then
28972     ac_cpp_err=$ac_c_preproc_warn_flag
28973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28974   else
28975     ac_cpp_err=
28976   fi
28977 else
28978   ac_cpp_err=yes
28979 fi
28980 if test -z "$ac_cpp_err"; then
28981   ac_header_preproc=yes
28982 else
28983   echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986   ac_header_preproc=no
28987 fi
28988
28989 rm -f conftest.err conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28991 echo "${ECHO_T}$ac_header_preproc" >&6; }
28992
28993 # So?  What about this header?
28994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28995   yes:no: )
28996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29000     ac_header_preproc=yes
29001     ;;
29002   no:yes:* )
29003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29015     ( cat <<\_ASBOX
29016 ## ----------------------------------- ##
29017 ## Report this to llvmbugs@cs.uiuc.edu ##
29018 ## ----------------------------------- ##
29019 _ASBOX
29020      ) | sed "s/^/$as_me: WARNING:     /" >&2
29021     ;;
29022 esac
29023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028   eval "$as_ac_Header=\$ac_header_preproc"
29029 fi
29030 ac_res=`eval echo '${'$as_ac_Header'}'`
29031                { echo "$as_me:$LINENO: result: $ac_res" >&5
29032 echo "${ECHO_T}$ac_res" >&6; }
29033
29034 fi
29035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29036   cat >>confdefs.h <<_ACEOF
29037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29038 _ACEOF
29039
29040 fi
29041
29042 done
29043
29044
29045
29046
29047
29048
29049
29050 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29051 do
29052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29054   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29057   echo $ECHO_N "(cached) $ECHO_C" >&6
29058 fi
29059 ac_res=`eval echo '${'$as_ac_Header'}'`
29060                { echo "$as_me:$LINENO: result: $ac_res" >&5
29061 echo "${ECHO_T}$ac_res" >&6; }
29062 else
29063   # Is the header compilable?
29064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29066 cat >conftest.$ac_ext <<_ACEOF
29067 /* confdefs.h.  */
29068 _ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h.  */
29072 $ac_includes_default
29073 #include <$ac_header>
29074 _ACEOF
29075 rm -f conftest.$ac_objext
29076 if { (ac_try="$ac_compile"
29077 case "(($ac_try" in
29078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079   *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082   (eval "$ac_compile") 2>conftest.er1
29083   ac_status=$?
29084   grep -v '^ *+' conftest.er1 >conftest.err
29085   rm -f conftest.er1
29086   cat conftest.err >&5
29087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088   (exit $ac_status); } &&
29089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29090   { (case "(($ac_try" in
29091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29092   *) ac_try_echo=$ac_try;;
29093 esac
29094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29095   (eval "$ac_try") 2>&5
29096   ac_status=$?
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); }; } &&
29099          { ac_try='test -s conftest.$ac_objext'
29100   { (case "(($ac_try" in
29101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102   *) ac_try_echo=$ac_try;;
29103 esac
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105   (eval "$ac_try") 2>&5
29106   ac_status=$?
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); }; }; then
29109   ac_header_compiler=yes
29110 else
29111   echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114         ac_header_compiler=no
29115 fi
29116
29117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29119 echo "${ECHO_T}$ac_header_compiler" >&6; }
29120
29121 # Is the header present?
29122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29124 cat >conftest.$ac_ext <<_ACEOF
29125 /* confdefs.h.  */
29126 _ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h.  */
29130 #include <$ac_header>
29131 _ACEOF
29132 if { (ac_try="$ac_cpp conftest.$ac_ext"
29133 case "(($ac_try" in
29134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135   *) ac_try_echo=$ac_try;;
29136 esac
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29139   ac_status=$?
29140   grep -v '^ *+' conftest.er1 >conftest.err
29141   rm -f conftest.er1
29142   cat conftest.err >&5
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } >/dev/null; then
29145   if test -s conftest.err; then
29146     ac_cpp_err=$ac_c_preproc_warn_flag
29147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29148   else
29149     ac_cpp_err=
29150   fi
29151 else
29152   ac_cpp_err=yes
29153 fi
29154 if test -z "$ac_cpp_err"; then
29155   ac_header_preproc=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160   ac_header_preproc=no
29161 fi
29162
29163 rm -f conftest.err conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29165 echo "${ECHO_T}$ac_header_preproc" >&6; }
29166
29167 # So?  What about this header?
29168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29169   yes:no: )
29170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29174     ac_header_preproc=yes
29175     ;;
29176   no:yes:* )
29177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29189     ( cat <<\_ASBOX
29190 ## ----------------------------------- ##
29191 ## Report this to llvmbugs@cs.uiuc.edu ##
29192 ## ----------------------------------- ##
29193 _ASBOX
29194      ) | sed "s/^/$as_me: WARNING:     /" >&2
29195     ;;
29196 esac
29197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29200   echo $ECHO_N "(cached) $ECHO_C" >&6
29201 else
29202   eval "$as_ac_Header=\$ac_header_preproc"
29203 fi
29204 ac_res=`eval echo '${'$as_ac_Header'}'`
29205                { echo "$as_me:$LINENO: result: $ac_res" >&5
29206 echo "${ECHO_T}$ac_res" >&6; }
29207
29208 fi
29209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29210   cat >>confdefs.h <<_ACEOF
29211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29212 _ACEOF
29213
29214 fi
29215
29216 done
29217
29218
29219 for ac_header in windows.h
29220 do
29221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 fi
29228 ac_res=`eval echo '${'$as_ac_Header'}'`
29229                { echo "$as_me:$LINENO: result: $ac_res" >&5
29230 echo "${ECHO_T}$ac_res" >&6; }
29231 else
29232   # Is the header compilable?
29233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29235 cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241 $ac_includes_default
29242 #include <$ac_header>
29243 _ACEOF
29244 rm -f conftest.$ac_objext
29245 if { (ac_try="$ac_compile"
29246 case "(($ac_try" in
29247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29248   *) ac_try_echo=$ac_try;;
29249 esac
29250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29251   (eval "$ac_compile") 2>conftest.er1
29252   ac_status=$?
29253   grep -v '^ *+' conftest.er1 >conftest.err
29254   rm -f conftest.er1
29255   cat conftest.err >&5
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); } &&
29258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29259   { (case "(($ac_try" in
29260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261   *) ac_try_echo=$ac_try;;
29262 esac
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264   (eval "$ac_try") 2>&5
29265   ac_status=$?
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); }; } &&
29268          { ac_try='test -s conftest.$ac_objext'
29269   { (case "(($ac_try" in
29270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271   *) ac_try_echo=$ac_try;;
29272 esac
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274   (eval "$ac_try") 2>&5
29275   ac_status=$?
29276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277   (exit $ac_status); }; }; then
29278   ac_header_compiler=yes
29279 else
29280   echo "$as_me: failed program was:" >&5
29281 sed 's/^/| /' conftest.$ac_ext >&5
29282
29283         ac_header_compiler=no
29284 fi
29285
29286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29288 echo "${ECHO_T}$ac_header_compiler" >&6; }
29289
29290 # Is the header present?
29291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29293 cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299 #include <$ac_header>
29300 _ACEOF
29301 if { (ac_try="$ac_cpp conftest.$ac_ext"
29302 case "(($ac_try" in
29303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304   *) ac_try_echo=$ac_try;;
29305 esac
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29308   ac_status=$?
29309   grep -v '^ *+' conftest.er1 >conftest.err
29310   rm -f conftest.er1
29311   cat conftest.err >&5
29312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313   (exit $ac_status); } >/dev/null; then
29314   if test -s conftest.err; then
29315     ac_cpp_err=$ac_c_preproc_warn_flag
29316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29317   else
29318     ac_cpp_err=
29319   fi
29320 else
29321   ac_cpp_err=yes
29322 fi
29323 if test -z "$ac_cpp_err"; then
29324   ac_header_preproc=yes
29325 else
29326   echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29328
29329   ac_header_preproc=no
29330 fi
29331
29332 rm -f conftest.err conftest.$ac_ext
29333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29334 echo "${ECHO_T}$ac_header_preproc" >&6; }
29335
29336 # So?  What about this header?
29337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29338   yes:no: )
29339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29343     ac_header_preproc=yes
29344     ;;
29345   no:yes:* )
29346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29358     ( cat <<\_ASBOX
29359 ## ----------------------------------- ##
29360 ## Report this to llvmbugs@cs.uiuc.edu ##
29361 ## ----------------------------------- ##
29362 _ASBOX
29363      ) | sed "s/^/$as_me: WARNING:     /" >&2
29364     ;;
29365 esac
29366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29369   echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371   eval "$as_ac_Header=\$ac_header_preproc"
29372 fi
29373 ac_res=`eval echo '${'$as_ac_Header'}'`
29374                { echo "$as_me:$LINENO: result: $ac_res" >&5
29375 echo "${ECHO_T}$ac_res" >&6; }
29376
29377 fi
29378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29379   cat >>confdefs.h <<_ACEOF
29380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29381 _ACEOF
29382
29383 fi
29384
29385 done
29386
29387
29388
29389
29390
29391 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29392 do
29393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 fi
29400 ac_res=`eval echo '${'$as_ac_Header'}'`
29401                { echo "$as_me:$LINENO: result: $ac_res" >&5
29402 echo "${ECHO_T}$ac_res" >&6; }
29403 else
29404   # Is the header compilable?
29405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29407 cat >conftest.$ac_ext <<_ACEOF
29408 /* confdefs.h.  */
29409 _ACEOF
29410 cat confdefs.h >>conftest.$ac_ext
29411 cat >>conftest.$ac_ext <<_ACEOF
29412 /* end confdefs.h.  */
29413 $ac_includes_default
29414 #include <$ac_header>
29415 _ACEOF
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_compile") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431   { (case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436   (eval "$ac_try") 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; } &&
29440          { ac_try='test -s conftest.$ac_objext'
29441   { (case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_try") 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; }; then
29450   ac_header_compiler=yes
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455         ac_header_compiler=no
29456 fi
29457
29458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29460 echo "${ECHO_T}$ac_header_compiler" >&6; }
29461
29462 # Is the header present?
29463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29465 cat >conftest.$ac_ext <<_ACEOF
29466 /* confdefs.h.  */
29467 _ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h.  */
29471 #include <$ac_header>
29472 _ACEOF
29473 if { (ac_try="$ac_cpp conftest.$ac_ext"
29474 case "(($ac_try" in
29475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476   *) ac_try_echo=$ac_try;;
29477 esac
29478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29480   ac_status=$?
29481   grep -v '^ *+' conftest.er1 >conftest.err
29482   rm -f conftest.er1
29483   cat conftest.err >&5
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); } >/dev/null; then
29486   if test -s conftest.err; then
29487     ac_cpp_err=$ac_c_preproc_warn_flag
29488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29489   else
29490     ac_cpp_err=
29491   fi
29492 else
29493   ac_cpp_err=yes
29494 fi
29495 if test -z "$ac_cpp_err"; then
29496   ac_header_preproc=yes
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501   ac_header_preproc=no
29502 fi
29503
29504 rm -f conftest.err conftest.$ac_ext
29505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29506 echo "${ECHO_T}$ac_header_preproc" >&6; }
29507
29508 # So?  What about this header?
29509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29510   yes:no: )
29511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29515     ac_header_preproc=yes
29516     ;;
29517   no:yes:* )
29518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29530     ( cat <<\_ASBOX
29531 ## ----------------------------------- ##
29532 ## Report this to llvmbugs@cs.uiuc.edu ##
29533 ## ----------------------------------- ##
29534 _ASBOX
29535      ) | sed "s/^/$as_me: WARNING:     /" >&2
29536     ;;
29537 esac
29538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29541   echo $ECHO_N "(cached) $ECHO_C" >&6
29542 else
29543   eval "$as_ac_Header=\$ac_header_preproc"
29544 fi
29545 ac_res=`eval echo '${'$as_ac_Header'}'`
29546                { echo "$as_me:$LINENO: result: $ac_res" >&5
29547 echo "${ECHO_T}$ac_res" >&6; }
29548
29549 fi
29550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29551   cat >>confdefs.h <<_ACEOF
29552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29553 _ACEOF
29554
29555 fi
29556
29557 done
29558
29559
29560
29561
29562 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29563 do
29564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29566   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29569   echo $ECHO_N "(cached) $ECHO_C" >&6
29570 fi
29571 ac_res=`eval echo '${'$as_ac_Header'}'`
29572                { echo "$as_me:$LINENO: result: $ac_res" >&5
29573 echo "${ECHO_T}$ac_res" >&6; }
29574 else
29575   # Is the header compilable?
29576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29578 cat >conftest.$ac_ext <<_ACEOF
29579 /* confdefs.h.  */
29580 _ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h.  */
29584 $ac_includes_default
29585 #include <$ac_header>
29586 _ACEOF
29587 rm -f conftest.$ac_objext
29588 if { (ac_try="$ac_compile"
29589 case "(($ac_try" in
29590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591   *) ac_try_echo=$ac_try;;
29592 esac
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594   (eval "$ac_compile") 2>conftest.er1
29595   ac_status=$?
29596   grep -v '^ *+' conftest.er1 >conftest.err
29597   rm -f conftest.er1
29598   cat conftest.err >&5
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } &&
29601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29602   { (case "(($ac_try" in
29603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604   *) ac_try_echo=$ac_try;;
29605 esac
29606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607   (eval "$ac_try") 2>&5
29608   ac_status=$?
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); }; } &&
29611          { ac_try='test -s conftest.$ac_objext'
29612   { (case "(($ac_try" in
29613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614   *) ac_try_echo=$ac_try;;
29615 esac
29616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29617   (eval "$ac_try") 2>&5
29618   ac_status=$?
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); }; }; then
29621   ac_header_compiler=yes
29622 else
29623   echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29625
29626         ac_header_compiler=no
29627 fi
29628
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29631 echo "${ECHO_T}$ac_header_compiler" >&6; }
29632
29633 # Is the header present?
29634 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29636 cat >conftest.$ac_ext <<_ACEOF
29637 /* confdefs.h.  */
29638 _ACEOF
29639 cat confdefs.h >>conftest.$ac_ext
29640 cat >>conftest.$ac_ext <<_ACEOF
29641 /* end confdefs.h.  */
29642 #include <$ac_header>
29643 _ACEOF
29644 if { (ac_try="$ac_cpp conftest.$ac_ext"
29645 case "(($ac_try" in
29646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647   *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29651   ac_status=$?
29652   grep -v '^ *+' conftest.er1 >conftest.err
29653   rm -f conftest.er1
29654   cat conftest.err >&5
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); } >/dev/null; then
29657   if test -s conftest.err; then
29658     ac_cpp_err=$ac_c_preproc_warn_flag
29659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29660   else
29661     ac_cpp_err=
29662   fi
29663 else
29664   ac_cpp_err=yes
29665 fi
29666 if test -z "$ac_cpp_err"; then
29667   ac_header_preproc=yes
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672   ac_header_preproc=no
29673 fi
29674
29675 rm -f conftest.err conftest.$ac_ext
29676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29677 echo "${ECHO_T}$ac_header_preproc" >&6; }
29678
29679 # So?  What about this header?
29680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29681   yes:no: )
29682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29686     ac_header_preproc=yes
29687     ;;
29688   no:yes:* )
29689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29701     ( cat <<\_ASBOX
29702 ## ----------------------------------- ##
29703 ## Report this to llvmbugs@cs.uiuc.edu ##
29704 ## ----------------------------------- ##
29705 _ASBOX
29706      ) | sed "s/^/$as_me: WARNING:     /" >&2
29707     ;;
29708 esac
29709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29712   echo $ECHO_N "(cached) $ECHO_C" >&6
29713 else
29714   eval "$as_ac_Header=\$ac_header_preproc"
29715 fi
29716 ac_res=`eval echo '${'$as_ac_Header'}'`
29717                { echo "$as_me:$LINENO: result: $ac_res" >&5
29718 echo "${ECHO_T}$ac_res" >&6; }
29719
29720 fi
29721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29722   cat >>confdefs.h <<_ACEOF
29723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29724 _ACEOF
29725
29726 fi
29727
29728 done
29729
29730 if test "$ENABLE_THREADS" -eq 1 ; then
29731
29732 for ac_header in pthread.h
29733 do
29734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29736   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29739   echo $ECHO_N "(cached) $ECHO_C" >&6
29740 fi
29741 ac_res=`eval echo '${'$as_ac_Header'}'`
29742                { echo "$as_me:$LINENO: result: $ac_res" >&5
29743 echo "${ECHO_T}$ac_res" >&6; }
29744 else
29745   # Is the header compilable?
29746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29748 cat >conftest.$ac_ext <<_ACEOF
29749 /* confdefs.h.  */
29750 _ACEOF
29751 cat confdefs.h >>conftest.$ac_ext
29752 cat >>conftest.$ac_ext <<_ACEOF
29753 /* end confdefs.h.  */
29754 $ac_includes_default
29755 #include <$ac_header>
29756 _ACEOF
29757 rm -f conftest.$ac_objext
29758 if { (ac_try="$ac_compile"
29759 case "(($ac_try" in
29760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761   *) ac_try_echo=$ac_try;;
29762 esac
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764   (eval "$ac_compile") 2>conftest.er1
29765   ac_status=$?
29766   grep -v '^ *+' conftest.er1 >conftest.err
29767   rm -f conftest.er1
29768   cat conftest.err >&5
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); } &&
29771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29772   { (case "(($ac_try" in
29773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774   *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777   (eval "$ac_try") 2>&5
29778   ac_status=$?
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); }; } &&
29781          { ac_try='test -s conftest.$ac_objext'
29782   { (case "(($ac_try" in
29783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784   *) ac_try_echo=$ac_try;;
29785 esac
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787   (eval "$ac_try") 2>&5
29788   ac_status=$?
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); }; }; then
29791   ac_header_compiler=yes
29792 else
29793   echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796         ac_header_compiler=no
29797 fi
29798
29799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29801 echo "${ECHO_T}$ac_header_compiler" >&6; }
29802
29803 # Is the header present?
29804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29806 cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812 #include <$ac_header>
29813 _ACEOF
29814 if { (ac_try="$ac_cpp conftest.$ac_ext"
29815 case "(($ac_try" in
29816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29817   *) ac_try_echo=$ac_try;;
29818 esac
29819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29821   ac_status=$?
29822   grep -v '^ *+' conftest.er1 >conftest.err
29823   rm -f conftest.er1
29824   cat conftest.err >&5
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); } >/dev/null; then
29827   if test -s conftest.err; then
29828     ac_cpp_err=$ac_c_preproc_warn_flag
29829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29830   else
29831     ac_cpp_err=
29832   fi
29833 else
29834   ac_cpp_err=yes
29835 fi
29836 if test -z "$ac_cpp_err"; then
29837   ac_header_preproc=yes
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842   ac_header_preproc=no
29843 fi
29844
29845 rm -f conftest.err conftest.$ac_ext
29846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29847 echo "${ECHO_T}$ac_header_preproc" >&6; }
29848
29849 # So?  What about this header?
29850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29851   yes:no: )
29852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29856     ac_header_preproc=yes
29857     ;;
29858   no:yes:* )
29859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29871     ( cat <<\_ASBOX
29872 ## ----------------------------------- ##
29873 ## Report this to llvmbugs@cs.uiuc.edu ##
29874 ## ----------------------------------- ##
29875 _ASBOX
29876      ) | sed "s/^/$as_me: WARNING:     /" >&2
29877     ;;
29878 esac
29879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29882   echo $ECHO_N "(cached) $ECHO_C" >&6
29883 else
29884   eval "$as_ac_Header=\$ac_header_preproc"
29885 fi
29886 ac_res=`eval echo '${'$as_ac_Header'}'`
29887                { echo "$as_me:$LINENO: result: $ac_res" >&5
29888 echo "${ECHO_T}$ac_res" >&6; }
29889
29890 fi
29891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29892   cat >>confdefs.h <<_ACEOF
29893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29894 _ACEOF
29895  HAVE_PTHREAD=1
29896
29897 else
29898   HAVE_PTHREAD=0
29899
29900 fi
29901
29902 done
29903
29904 else
29905   HAVE_PTHREAD=0
29906
29907 fi
29908
29909
29910
29911   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29912 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29913 if test "${ac_cv_huge_val_sanity+set}" = set; then
29914   echo $ECHO_N "(cached) $ECHO_C" >&6
29915 else
29916
29917     ac_ext=cpp
29918 ac_cpp='$CXXCPP $CPPFLAGS'
29919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29922
29923     CXXFLAGS=-pedantic
29924     if test "$cross_compiling" = yes; then
29925   ac_cv_huge_val_sanity=yes
29926 else
29927   cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h.  */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h.  */
29933 #include <math.h>
29934 int
29935 main ()
29936 {
29937 double x = HUGE_VAL; return x != x;
29938   ;
29939   return 0;
29940 }
29941 _ACEOF
29942 rm -f conftest$ac_exeext
29943 if { (ac_try="$ac_link"
29944 case "(($ac_try" in
29945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946   *) ac_try_echo=$ac_try;;
29947 esac
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949   (eval "$ac_link") 2>&5
29950   ac_status=$?
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29953   { (case "(($ac_try" in
29954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955   *) ac_try_echo=$ac_try;;
29956 esac
29957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958   (eval "$ac_try") 2>&5
29959   ac_status=$?
29960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961   (exit $ac_status); }; }; then
29962   ac_cv_huge_val_sanity=yes
29963 else
29964   echo "$as_me: program exited with status $ac_status" >&5
29965 echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29967
29968 ( exit $ac_status )
29969 ac_cv_huge_val_sanity=no
29970 fi
29971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29972 fi
29973
29974
29975     ac_ext=c
29976 ac_cpp='$CPP $CPPFLAGS'
29977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29980
29981
29982 fi
29983 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29984 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29985   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29986
29987
29988 { echo "$as_me:$LINENO: checking for pid_t" >&5
29989 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29990 if test "${ac_cv_type_pid_t+set}" = set; then
29991   echo $ECHO_N "(cached) $ECHO_C" >&6
29992 else
29993   cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h.  */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h.  */
29999 $ac_includes_default
30000 typedef pid_t ac__type_new_;
30001 int
30002 main ()
30003 {
30004 if ((ac__type_new_ *) 0)
30005   return 0;
30006 if (sizeof (ac__type_new_))
30007   return 0;
30008   ;
30009   return 0;
30010 }
30011 _ACEOF
30012 rm -f conftest.$ac_objext
30013 if { (ac_try="$ac_compile"
30014 case "(($ac_try" in
30015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016   *) ac_try_echo=$ac_try;;
30017 esac
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019   (eval "$ac_compile") 2>conftest.er1
30020   ac_status=$?
30021   grep -v '^ *+' conftest.er1 >conftest.err
30022   rm -f conftest.er1
30023   cat conftest.err >&5
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); } &&
30026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30027   { (case "(($ac_try" in
30028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029   *) ac_try_echo=$ac_try;;
30030 esac
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032   (eval "$ac_try") 2>&5
30033   ac_status=$?
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); }; } &&
30036          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30043   ac_status=$?
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); }; }; then
30046   ac_cv_type_pid_t=yes
30047 else
30048   echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051         ac_cv_type_pid_t=no
30052 fi
30053
30054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30055 fi
30056 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30057 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30058 if test $ac_cv_type_pid_t = yes; then
30059   :
30060 else
30061
30062 cat >>confdefs.h <<_ACEOF
30063 #define pid_t int
30064 _ACEOF
30065
30066 fi
30067
30068 { echo "$as_me:$LINENO: checking for size_t" >&5
30069 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30070 if test "${ac_cv_type_size_t+set}" = set; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073   cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 $ac_includes_default
30080 typedef size_t ac__type_new_;
30081 int
30082 main ()
30083 {
30084 if ((ac__type_new_ *) 0)
30085   return 0;
30086 if (sizeof (ac__type_new_))
30087   return 0;
30088   ;
30089   return 0;
30090 }
30091 _ACEOF
30092 rm -f conftest.$ac_objext
30093 if { (ac_try="$ac_compile"
30094 case "(($ac_try" in
30095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096   *) ac_try_echo=$ac_try;;
30097 esac
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099   (eval "$ac_compile") 2>conftest.er1
30100   ac_status=$?
30101   grep -v '^ *+' conftest.er1 >conftest.err
30102   rm -f conftest.er1
30103   cat conftest.err >&5
30104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105   (exit $ac_status); } &&
30106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30107   { (case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_try") 2>&5
30113   ac_status=$?
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); }; } &&
30116          { ac_try='test -s conftest.$ac_objext'
30117   { (case "(($ac_try" in
30118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119   *) ac_try_echo=$ac_try;;
30120 esac
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122   (eval "$ac_try") 2>&5
30123   ac_status=$?
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); }; }; then
30126   ac_cv_type_size_t=yes
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131         ac_cv_type_size_t=no
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135 fi
30136 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30137 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30138 if test $ac_cv_type_size_t = yes; then
30139   :
30140 else
30141
30142 cat >>confdefs.h <<_ACEOF
30143 #define size_t unsigned int
30144 _ACEOF
30145
30146 fi
30147
30148 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30149 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30150 if test "${ac_cv_type_signal+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   cat >conftest.$ac_ext <<_ACEOF
30154 /* confdefs.h.  */
30155 _ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h.  */
30159 #include <sys/types.h>
30160 #include <signal.h>
30161
30162 int
30163 main ()
30164 {
30165 return *(signal (0, 0)) (0) == 1;
30166   ;
30167   return 0;
30168 }
30169 _ACEOF
30170 rm -f conftest.$ac_objext
30171 if { (ac_try="$ac_compile"
30172 case "(($ac_try" in
30173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174   *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177   (eval "$ac_compile") 2>conftest.er1
30178   ac_status=$?
30179   grep -v '^ *+' conftest.er1 >conftest.err
30180   rm -f conftest.er1
30181   cat conftest.err >&5
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); } &&
30184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185   { (case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_try") 2>&5
30191   ac_status=$?
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); }; } &&
30194          { ac_try='test -s conftest.$ac_objext'
30195   { (case "(($ac_try" in
30196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197   *) ac_try_echo=$ac_try;;
30198 esac
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200   (eval "$ac_try") 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; }; then
30204   ac_cv_type_signal=int
30205 else
30206   echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30208
30209         ac_cv_type_signal=void
30210 fi
30211
30212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30213 fi
30214 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30215 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30216
30217 cat >>confdefs.h <<_ACEOF
30218 #define RETSIGTYPE $ac_cv_type_signal
30219 _ACEOF
30220
30221
30222 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30223 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30224 if test "${ac_cv_struct_tm+set}" = set; then
30225   echo $ECHO_N "(cached) $ECHO_C" >&6
30226 else
30227   cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h.  */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h.  */
30233 #include <sys/types.h>
30234 #include <time.h>
30235
30236 int
30237 main ()
30238 {
30239 struct tm *tp; tp->tm_sec;
30240   ;
30241   return 0;
30242 }
30243 _ACEOF
30244 rm -f conftest.$ac_objext
30245 if { (ac_try="$ac_compile"
30246 case "(($ac_try" in
30247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248   *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251   (eval "$ac_compile") 2>conftest.er1
30252   ac_status=$?
30253   grep -v '^ *+' conftest.er1 >conftest.err
30254   rm -f conftest.er1
30255   cat conftest.err >&5
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); } &&
30258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30259   { (case "(($ac_try" in
30260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261   *) ac_try_echo=$ac_try;;
30262 esac
30263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264   (eval "$ac_try") 2>&5
30265   ac_status=$?
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); }; } &&
30268          { ac_try='test -s conftest.$ac_objext'
30269   { (case "(($ac_try" in
30270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271   *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274   (eval "$ac_try") 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; }; then
30278   ac_cv_struct_tm=time.h
30279 else
30280   echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283         ac_cv_struct_tm=sys/time.h
30284 fi
30285
30286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30287 fi
30288 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30289 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30290 if test $ac_cv_struct_tm = sys/time.h; then
30291
30292 cat >>confdefs.h <<\_ACEOF
30293 #define TM_IN_SYS_TIME 1
30294 _ACEOF
30295
30296 fi
30297
30298 { echo "$as_me:$LINENO: checking for int64_t" >&5
30299 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30300 if test "${ac_cv_type_int64_t+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 $ac_includes_default
30310 typedef int64_t ac__type_new_;
30311 int
30312 main ()
30313 {
30314 if ((ac__type_new_ *) 0)
30315   return 0;
30316 if (sizeof (ac__type_new_))
30317   return 0;
30318   ;
30319   return 0;
30320 }
30321 _ACEOF
30322 rm -f conftest.$ac_objext
30323 if { (ac_try="$ac_compile"
30324 case "(($ac_try" in
30325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326   *) ac_try_echo=$ac_try;;
30327 esac
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329   (eval "$ac_compile") 2>conftest.er1
30330   ac_status=$?
30331   grep -v '^ *+' conftest.er1 >conftest.err
30332   rm -f conftest.er1
30333   cat conftest.err >&5
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } &&
30336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337   { (case "(($ac_try" in
30338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339   *) ac_try_echo=$ac_try;;
30340 esac
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342   (eval "$ac_try") 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; } &&
30346          { ac_try='test -s conftest.$ac_objext'
30347   { (case "(($ac_try" in
30348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349   *) ac_try_echo=$ac_try;;
30350 esac
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352   (eval "$ac_try") 2>&5
30353   ac_status=$?
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); }; }; then
30356   ac_cv_type_int64_t=yes
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361         ac_cv_type_int64_t=no
30362 fi
30363
30364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30365 fi
30366 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30367 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30368 if test $ac_cv_type_int64_t = yes; then
30369
30370 cat >>confdefs.h <<_ACEOF
30371 #define HAVE_INT64_T 1
30372 _ACEOF
30373
30374
30375 else
30376   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30377 echo "$as_me: error: Type int64_t required but not found" >&2;}
30378    { (exit 1); exit 1; }; }
30379 fi
30380
30381 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30382 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30383 if test "${ac_cv_type_uint64_t+set}" = set; then
30384   echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386   cat >conftest.$ac_ext <<_ACEOF
30387 /* confdefs.h.  */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h.  */
30392 $ac_includes_default
30393 typedef uint64_t ac__type_new_;
30394 int
30395 main ()
30396 {
30397 if ((ac__type_new_ *) 0)
30398   return 0;
30399 if (sizeof (ac__type_new_))
30400   return 0;
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext
30406 if { (ac_try="$ac_compile"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_compile") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } &&
30419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30420   { (case "(($ac_try" in
30421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422   *) ac_try_echo=$ac_try;;
30423 esac
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425   (eval "$ac_try") 2>&5
30426   ac_status=$?
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); }; } &&
30429          { ac_try='test -s conftest.$ac_objext'
30430   { (case "(($ac_try" in
30431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432   *) ac_try_echo=$ac_try;;
30433 esac
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435   (eval "$ac_try") 2>&5
30436   ac_status=$?
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); }; }; then
30439   ac_cv_type_uint64_t=yes
30440 else
30441   echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30443
30444         ac_cv_type_uint64_t=no
30445 fi
30446
30447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30448 fi
30449 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30450 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30451 if test $ac_cv_type_uint64_t = yes; then
30452
30453 cat >>confdefs.h <<_ACEOF
30454 #define HAVE_UINT64_T 1
30455 _ACEOF
30456
30457
30458 else
30459   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30460 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30461 if test "${ac_cv_type_u_int64_t+set}" = set; then
30462   echo $ECHO_N "(cached) $ECHO_C" >&6
30463 else
30464   cat >conftest.$ac_ext <<_ACEOF
30465 /* confdefs.h.  */
30466 _ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h.  */
30470 $ac_includes_default
30471 typedef u_int64_t ac__type_new_;
30472 int
30473 main ()
30474 {
30475 if ((ac__type_new_ *) 0)
30476   return 0;
30477 if (sizeof (ac__type_new_))
30478   return 0;
30479   ;
30480   return 0;
30481 }
30482 _ACEOF
30483 rm -f conftest.$ac_objext
30484 if { (ac_try="$ac_compile"
30485 case "(($ac_try" in
30486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30487   *) ac_try_echo=$ac_try;;
30488 esac
30489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490   (eval "$ac_compile") 2>conftest.er1
30491   ac_status=$?
30492   grep -v '^ *+' conftest.er1 >conftest.err
30493   rm -f conftest.er1
30494   cat conftest.err >&5
30495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496   (exit $ac_status); } &&
30497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30498   { (case "(($ac_try" in
30499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500   *) ac_try_echo=$ac_try;;
30501 esac
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503   (eval "$ac_try") 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; } &&
30507          { ac_try='test -s conftest.$ac_objext'
30508   { (case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_try") 2>&5
30514   ac_status=$?
30515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516   (exit $ac_status); }; }; then
30517   ac_cv_type_u_int64_t=yes
30518 else
30519   echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30521
30522         ac_cv_type_u_int64_t=no
30523 fi
30524
30525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30526 fi
30527 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30528 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30529 if test $ac_cv_type_u_int64_t = yes; then
30530
30531 cat >>confdefs.h <<_ACEOF
30532 #define HAVE_U_INT64_T 1
30533 _ACEOF
30534
30535
30536 else
30537   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30538 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30539    { (exit 1); exit 1; }; }
30540 fi
30541
30542 fi
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30554 do
30555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30559   echo $ECHO_N "(cached) $ECHO_C" >&6
30560 else
30561   cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h.  */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h.  */
30567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30569 #define $ac_func innocuous_$ac_func
30570
30571 /* System header to define __stub macros and hopefully few prototypes,
30572     which can conflict with char $ac_func (); below.
30573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30574     <limits.h> exists even on freestanding compilers.  */
30575
30576 #ifdef __STDC__
30577 # include <limits.h>
30578 #else
30579 # include <assert.h>
30580 #endif
30581
30582 #undef $ac_func
30583
30584 /* Override any GCC internal prototype to avoid an error.
30585    Use char because int might match the return type of a GCC
30586    builtin and then its argument prototype would still apply.  */
30587 #ifdef __cplusplus
30588 extern "C"
30589 #endif
30590 char $ac_func ();
30591 /* The GNU C library defines this for functions which it implements
30592     to always fail with ENOSYS.  Some functions are actually named
30593     something starting with __ and the normal name is an alias.  */
30594 #if defined __stub_$ac_func || defined __stub___$ac_func
30595 choke me
30596 #endif
30597
30598 int
30599 main ()
30600 {
30601 return $ac_func ();
30602   ;
30603   return 0;
30604 }
30605 _ACEOF
30606 rm -f conftest.$ac_objext conftest$ac_exeext
30607 if { (ac_try="$ac_link"
30608 case "(($ac_try" in
30609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610   *) ac_try_echo=$ac_try;;
30611 esac
30612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30613   (eval "$ac_link") 2>conftest.er1
30614   ac_status=$?
30615   grep -v '^ *+' conftest.er1 >conftest.err
30616   rm -f conftest.er1
30617   cat conftest.err >&5
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); } &&
30620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30621   { (case "(($ac_try" in
30622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30623   *) ac_try_echo=$ac_try;;
30624 esac
30625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30626   (eval "$ac_try") 2>&5
30627   ac_status=$?
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); }; } &&
30630          { ac_try='test -s conftest$ac_exeext'
30631   { (case "(($ac_try" in
30632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633   *) ac_try_echo=$ac_try;;
30634 esac
30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636   (eval "$ac_try") 2>&5
30637   ac_status=$?
30638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639   (exit $ac_status); }; }; then
30640   eval "$as_ac_var=yes"
30641 else
30642   echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30644
30645         eval "$as_ac_var=no"
30646 fi
30647
30648 rm -f core conftest.err conftest.$ac_objext \
30649       conftest$ac_exeext conftest.$ac_ext
30650 fi
30651 ac_res=`eval echo '${'$as_ac_var'}'`
30652                { echo "$as_me:$LINENO: result: $ac_res" >&5
30653 echo "${ECHO_T}$ac_res" >&6; }
30654 if test `eval echo '${'$as_ac_var'}'` = yes; then
30655   cat >>confdefs.h <<_ACEOF
30656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30657 _ACEOF
30658
30659 fi
30660 done
30661
30662
30663
30664
30665
30666 for ac_func in powf fmodf strtof round
30667 do
30668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30672   echo $ECHO_N "(cached) $ECHO_C" >&6
30673 else
30674   cat >conftest.$ac_ext <<_ACEOF
30675 /* confdefs.h.  */
30676 _ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h.  */
30680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30682 #define $ac_func innocuous_$ac_func
30683
30684 /* System header to define __stub macros and hopefully few prototypes,
30685     which can conflict with char $ac_func (); below.
30686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30687     <limits.h> exists even on freestanding compilers.  */
30688
30689 #ifdef __STDC__
30690 # include <limits.h>
30691 #else
30692 # include <assert.h>
30693 #endif
30694
30695 #undef $ac_func
30696
30697 /* Override any GCC internal prototype to avoid an error.
30698    Use char because int might match the return type of a GCC
30699    builtin and then its argument prototype would still apply.  */
30700 #ifdef __cplusplus
30701 extern "C"
30702 #endif
30703 char $ac_func ();
30704 /* The GNU C library defines this for functions which it implements
30705     to always fail with ENOSYS.  Some functions are actually named
30706     something starting with __ and the normal name is an alias.  */
30707 #if defined __stub_$ac_func || defined __stub___$ac_func
30708 choke me
30709 #endif
30710
30711 int
30712 main ()
30713 {
30714 return $ac_func ();
30715   ;
30716   return 0;
30717 }
30718 _ACEOF
30719 rm -f conftest.$ac_objext conftest$ac_exeext
30720 if { (ac_try="$ac_link"
30721 case "(($ac_try" in
30722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723   *) ac_try_echo=$ac_try;;
30724 esac
30725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726   (eval "$ac_link") 2>conftest.er1
30727   ac_status=$?
30728   grep -v '^ *+' conftest.er1 >conftest.err
30729   rm -f conftest.er1
30730   cat conftest.err >&5
30731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732   (exit $ac_status); } &&
30733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30734   { (case "(($ac_try" in
30735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736   *) ac_try_echo=$ac_try;;
30737 esac
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739   (eval "$ac_try") 2>&5
30740   ac_status=$?
30741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742   (exit $ac_status); }; } &&
30743          { ac_try='test -s conftest$ac_exeext'
30744   { (case "(($ac_try" in
30745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746   *) ac_try_echo=$ac_try;;
30747 esac
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749   (eval "$ac_try") 2>&5
30750   ac_status=$?
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); }; }; then
30753   eval "$as_ac_var=yes"
30754 else
30755   echo "$as_me: failed program was:" >&5
30756 sed 's/^/| /' conftest.$ac_ext >&5
30757
30758         eval "$as_ac_var=no"
30759 fi
30760
30761 rm -f core conftest.err conftest.$ac_objext \
30762       conftest$ac_exeext conftest.$ac_ext
30763 fi
30764 ac_res=`eval echo '${'$as_ac_var'}'`
30765                { echo "$as_me:$LINENO: result: $ac_res" >&5
30766 echo "${ECHO_T}$ac_res" >&6; }
30767 if test `eval echo '${'$as_ac_var'}'` = yes; then
30768   cat >>confdefs.h <<_ACEOF
30769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770 _ACEOF
30771
30772 fi
30773 done
30774
30775
30776
30777
30778
30779
30780 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30781 do
30782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30786   echo $ECHO_N "(cached) $ECHO_C" >&6
30787 else
30788   cat >conftest.$ac_ext <<_ACEOF
30789 /* confdefs.h.  */
30790 _ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h.  */
30794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30796 #define $ac_func innocuous_$ac_func
30797
30798 /* System header to define __stub macros and hopefully few prototypes,
30799     which can conflict with char $ac_func (); below.
30800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801     <limits.h> exists even on freestanding compilers.  */
30802
30803 #ifdef __STDC__
30804 # include <limits.h>
30805 #else
30806 # include <assert.h>
30807 #endif
30808
30809 #undef $ac_func
30810
30811 /* Override any GCC internal prototype to avoid an error.
30812    Use char because int might match the return type of a GCC
30813    builtin and then its argument prototype would still apply.  */
30814 #ifdef __cplusplus
30815 extern "C"
30816 #endif
30817 char $ac_func ();
30818 /* The GNU C library defines this for functions which it implements
30819     to always fail with ENOSYS.  Some functions are actually named
30820     something starting with __ and the normal name is an alias.  */
30821 #if defined __stub_$ac_func || defined __stub___$ac_func
30822 choke me
30823 #endif
30824
30825 int
30826 main ()
30827 {
30828 return $ac_func ();
30829   ;
30830   return 0;
30831 }
30832 _ACEOF
30833 rm -f conftest.$ac_objext conftest$ac_exeext
30834 if { (ac_try="$ac_link"
30835 case "(($ac_try" in
30836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837   *) ac_try_echo=$ac_try;;
30838 esac
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840   (eval "$ac_link") 2>conftest.er1
30841   ac_status=$?
30842   grep -v '^ *+' conftest.er1 >conftest.err
30843   rm -f conftest.er1
30844   cat conftest.err >&5
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); } &&
30847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30848   { (case "(($ac_try" in
30849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850   *) ac_try_echo=$ac_try;;
30851 esac
30852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853   (eval "$ac_try") 2>&5
30854   ac_status=$?
30855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856   (exit $ac_status); }; } &&
30857          { ac_try='test -s conftest$ac_exeext'
30858   { (case "(($ac_try" in
30859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860   *) ac_try_echo=$ac_try;;
30861 esac
30862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863   (eval "$ac_try") 2>&5
30864   ac_status=$?
30865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866   (exit $ac_status); }; }; then
30867   eval "$as_ac_var=yes"
30868 else
30869   echo "$as_me: failed program was:" >&5
30870 sed 's/^/| /' conftest.$ac_ext >&5
30871
30872         eval "$as_ac_var=no"
30873 fi
30874
30875 rm -f core conftest.err conftest.$ac_objext \
30876       conftest$ac_exeext conftest.$ac_ext
30877 fi
30878 ac_res=`eval echo '${'$as_ac_var'}'`
30879                { echo "$as_me:$LINENO: result: $ac_res" >&5
30880 echo "${ECHO_T}$ac_res" >&6; }
30881 if test `eval echo '${'$as_ac_var'}'` = yes; then
30882   cat >>confdefs.h <<_ACEOF
30883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30884 _ACEOF
30885
30886 fi
30887 done
30888
30889
30890
30891
30892 for ac_func in isatty mkdtemp mkstemp
30893 do
30894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30898   echo $ECHO_N "(cached) $ECHO_C" >&6
30899 else
30900   cat >conftest.$ac_ext <<_ACEOF
30901 /* confdefs.h.  */
30902 _ACEOF
30903 cat confdefs.h >>conftest.$ac_ext
30904 cat >>conftest.$ac_ext <<_ACEOF
30905 /* end confdefs.h.  */
30906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30908 #define $ac_func innocuous_$ac_func
30909
30910 /* System header to define __stub macros and hopefully few prototypes,
30911     which can conflict with char $ac_func (); below.
30912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913     <limits.h> exists even on freestanding compilers.  */
30914
30915 #ifdef __STDC__
30916 # include <limits.h>
30917 #else
30918 # include <assert.h>
30919 #endif
30920
30921 #undef $ac_func
30922
30923 /* Override any GCC internal prototype to avoid an error.
30924    Use char because int might match the return type of a GCC
30925    builtin and then its argument prototype would still apply.  */
30926 #ifdef __cplusplus
30927 extern "C"
30928 #endif
30929 char $ac_func ();
30930 /* The GNU C library defines this for functions which it implements
30931     to always fail with ENOSYS.  Some functions are actually named
30932     something starting with __ and the normal name is an alias.  */
30933 #if defined __stub_$ac_func || defined __stub___$ac_func
30934 choke me
30935 #endif
30936
30937 int
30938 main ()
30939 {
30940 return $ac_func ();
30941   ;
30942   return 0;
30943 }
30944 _ACEOF
30945 rm -f conftest.$ac_objext conftest$ac_exeext
30946 if { (ac_try="$ac_link"
30947 case "(($ac_try" in
30948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949   *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952   (eval "$ac_link") 2>conftest.er1
30953   ac_status=$?
30954   grep -v '^ *+' conftest.er1 >conftest.err
30955   rm -f conftest.er1
30956   cat conftest.err >&5
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); } &&
30959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30960   { (case "(($ac_try" in
30961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962   *) ac_try_echo=$ac_try;;
30963 esac
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965   (eval "$ac_try") 2>&5
30966   ac_status=$?
30967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968   (exit $ac_status); }; } &&
30969          { ac_try='test -s conftest$ac_exeext'
30970   { (case "(($ac_try" in
30971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972   *) ac_try_echo=$ac_try;;
30973 esac
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975   (eval "$ac_try") 2>&5
30976   ac_status=$?
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); }; }; then
30979   eval "$as_ac_var=yes"
30980 else
30981   echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30983
30984         eval "$as_ac_var=no"
30985 fi
30986
30987 rm -f core conftest.err conftest.$ac_objext \
30988       conftest$ac_exeext conftest.$ac_ext
30989 fi
30990 ac_res=`eval echo '${'$as_ac_var'}'`
30991                { echo "$as_me:$LINENO: result: $ac_res" >&5
30992 echo "${ECHO_T}$ac_res" >&6; }
30993 if test `eval echo '${'$as_ac_var'}'` = yes; then
30994   cat >>confdefs.h <<_ACEOF
30995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30996 _ACEOF
30997
30998 fi
30999 done
31000
31001
31002
31003
31004
31005
31006
31007
31008 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31009 do
31010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31014   echo $ECHO_N "(cached) $ECHO_C" >&6
31015 else
31016   cat >conftest.$ac_ext <<_ACEOF
31017 /* confdefs.h.  */
31018 _ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h.  */
31022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31024 #define $ac_func innocuous_$ac_func
31025
31026 /* System header to define __stub macros and hopefully few prototypes,
31027     which can conflict with char $ac_func (); below.
31028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31029     <limits.h> exists even on freestanding compilers.  */
31030
31031 #ifdef __STDC__
31032 # include <limits.h>
31033 #else
31034 # include <assert.h>
31035 #endif
31036
31037 #undef $ac_func
31038
31039 /* Override any GCC internal prototype to avoid an error.
31040    Use char because int might match the return type of a GCC
31041    builtin and then its argument prototype would still apply.  */
31042 #ifdef __cplusplus
31043 extern "C"
31044 #endif
31045 char $ac_func ();
31046 /* The GNU C library defines this for functions which it implements
31047     to always fail with ENOSYS.  Some functions are actually named
31048     something starting with __ and the normal name is an alias.  */
31049 #if defined __stub_$ac_func || defined __stub___$ac_func
31050 choke me
31051 #endif
31052
31053 int
31054 main ()
31055 {
31056 return $ac_func ();
31057   ;
31058   return 0;
31059 }
31060 _ACEOF
31061 rm -f conftest.$ac_objext conftest$ac_exeext
31062 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31069   ac_status=$?
31070   grep -v '^ *+' conftest.er1 >conftest.err
31071   rm -f conftest.er1
31072   cat conftest.err >&5
31073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074   (exit $ac_status); } &&
31075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31076   { (case "(($ac_try" in
31077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078   *) ac_try_echo=$ac_try;;
31079 esac
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081   (eval "$ac_try") 2>&5
31082   ac_status=$?
31083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084   (exit $ac_status); }; } &&
31085          { ac_try='test -s conftest$ac_exeext'
31086   { (case "(($ac_try" in
31087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088   *) ac_try_echo=$ac_try;;
31089 esac
31090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091   (eval "$ac_try") 2>&5
31092   ac_status=$?
31093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094   (exit $ac_status); }; }; then
31095   eval "$as_ac_var=yes"
31096 else
31097   echo "$as_me: failed program was:" >&5
31098 sed 's/^/| /' conftest.$ac_ext >&5
31099
31100         eval "$as_ac_var=no"
31101 fi
31102
31103 rm -f core conftest.err conftest.$ac_objext \
31104       conftest$ac_exeext conftest.$ac_ext
31105 fi
31106 ac_res=`eval echo '${'$as_ac_var'}'`
31107                { echo "$as_me:$LINENO: result: $ac_res" >&5
31108 echo "${ECHO_T}$ac_res" >&6; }
31109 if test `eval echo '${'$as_ac_var'}'` = yes; then
31110   cat >>confdefs.h <<_ACEOF
31111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31112 _ACEOF
31113
31114 fi
31115 done
31116
31117
31118
31119
31120
31121 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31122 do
31123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31127   echo $ECHO_N "(cached) $ECHO_C" >&6
31128 else
31129   cat >conftest.$ac_ext <<_ACEOF
31130 /* confdefs.h.  */
31131 _ACEOF
31132 cat confdefs.h >>conftest.$ac_ext
31133 cat >>conftest.$ac_ext <<_ACEOF
31134 /* end confdefs.h.  */
31135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31137 #define $ac_func innocuous_$ac_func
31138
31139 /* System header to define __stub macros and hopefully few prototypes,
31140     which can conflict with char $ac_func (); below.
31141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142     <limits.h> exists even on freestanding compilers.  */
31143
31144 #ifdef __STDC__
31145 # include <limits.h>
31146 #else
31147 # include <assert.h>
31148 #endif
31149
31150 #undef $ac_func
31151
31152 /* Override any GCC internal prototype to avoid an error.
31153    Use char because int might match the return type of a GCC
31154    builtin and then its argument prototype would still apply.  */
31155 #ifdef __cplusplus
31156 extern "C"
31157 #endif
31158 char $ac_func ();
31159 /* The GNU C library defines this for functions which it implements
31160     to always fail with ENOSYS.  Some functions are actually named
31161     something starting with __ and the normal name is an alias.  */
31162 #if defined __stub_$ac_func || defined __stub___$ac_func
31163 choke me
31164 #endif
31165
31166 int
31167 main ()
31168 {
31169 return $ac_func ();
31170   ;
31171   return 0;
31172 }
31173 _ACEOF
31174 rm -f conftest.$ac_objext conftest$ac_exeext
31175 if { (ac_try="$ac_link"
31176 case "(($ac_try" in
31177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178   *) ac_try_echo=$ac_try;;
31179 esac
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181   (eval "$ac_link") 2>conftest.er1
31182   ac_status=$?
31183   grep -v '^ *+' conftest.er1 >conftest.err
31184   rm -f conftest.er1
31185   cat conftest.err >&5
31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187   (exit $ac_status); } &&
31188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31189   { (case "(($ac_try" in
31190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31191   *) ac_try_echo=$ac_try;;
31192 esac
31193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31194   (eval "$ac_try") 2>&5
31195   ac_status=$?
31196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197   (exit $ac_status); }; } &&
31198          { ac_try='test -s conftest$ac_exeext'
31199   { (case "(($ac_try" in
31200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201   *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204   (eval "$ac_try") 2>&5
31205   ac_status=$?
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); }; }; then
31208   eval "$as_ac_var=yes"
31209 else
31210   echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31212
31213         eval "$as_ac_var=no"
31214 fi
31215
31216 rm -f core conftest.err conftest.$ac_objext \
31217       conftest$ac_exeext conftest.$ac_ext
31218 fi
31219 ac_res=`eval echo '${'$as_ac_var'}'`
31220                { echo "$as_me:$LINENO: result: $ac_res" >&5
31221 echo "${ECHO_T}$ac_res" >&6; }
31222 if test `eval echo '${'$as_ac_var'}'` = yes; then
31223   cat >>confdefs.h <<_ACEOF
31224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31225 _ACEOF
31226
31227 fi
31228 done
31229
31230
31231
31232
31233
31234 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31235 do
31236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31240   echo $ECHO_N "(cached) $ECHO_C" >&6
31241 else
31242   cat >conftest.$ac_ext <<_ACEOF
31243 /* confdefs.h.  */
31244 _ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h.  */
31248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31250 #define $ac_func innocuous_$ac_func
31251
31252 /* System header to define __stub macros and hopefully few prototypes,
31253     which can conflict with char $ac_func (); below.
31254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31255     <limits.h> exists even on freestanding compilers.  */
31256
31257 #ifdef __STDC__
31258 # include <limits.h>
31259 #else
31260 # include <assert.h>
31261 #endif
31262
31263 #undef $ac_func
31264
31265 /* Override any GCC internal prototype to avoid an error.
31266    Use char because int might match the return type of a GCC
31267    builtin and then its argument prototype would still apply.  */
31268 #ifdef __cplusplus
31269 extern "C"
31270 #endif
31271 char $ac_func ();
31272 /* The GNU C library defines this for functions which it implements
31273     to always fail with ENOSYS.  Some functions are actually named
31274     something starting with __ and the normal name is an alias.  */
31275 #if defined __stub_$ac_func || defined __stub___$ac_func
31276 choke me
31277 #endif
31278
31279 int
31280 main ()
31281 {
31282 return $ac_func ();
31283   ;
31284   return 0;
31285 }
31286 _ACEOF
31287 rm -f conftest.$ac_objext conftest$ac_exeext
31288 if { (ac_try="$ac_link"
31289 case "(($ac_try" in
31290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291   *) ac_try_echo=$ac_try;;
31292 esac
31293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294   (eval "$ac_link") 2>conftest.er1
31295   ac_status=$?
31296   grep -v '^ *+' conftest.er1 >conftest.err
31297   rm -f conftest.er1
31298   cat conftest.err >&5
31299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300   (exit $ac_status); } &&
31301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31302   { (case "(($ac_try" in
31303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304   *) ac_try_echo=$ac_try;;
31305 esac
31306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307   (eval "$ac_try") 2>&5
31308   ac_status=$?
31309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); }; } &&
31311          { ac_try='test -s conftest$ac_exeext'
31312   { (case "(($ac_try" in
31313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314   *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317   (eval "$ac_try") 2>&5
31318   ac_status=$?
31319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320   (exit $ac_status); }; }; then
31321   eval "$as_ac_var=yes"
31322 else
31323   echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31325
31326         eval "$as_ac_var=no"
31327 fi
31328
31329 rm -f core conftest.err conftest.$ac_objext \
31330       conftest$ac_exeext conftest.$ac_ext
31331 fi
31332 ac_res=`eval echo '${'$as_ac_var'}'`
31333                { echo "$as_me:$LINENO: result: $ac_res" >&5
31334 echo "${ECHO_T}$ac_res" >&6; }
31335 if test `eval echo '${'$as_ac_var'}'` = yes; then
31336   cat >>confdefs.h <<_ACEOF
31337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31338 _ACEOF
31339
31340 fi
31341 done
31342
31343 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31344 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31345 if test "${llvm_cv_c_printf_a+set}" = set; then
31346   echo $ECHO_N "(cached) $ECHO_C" >&6
31347 else
31348   ac_ext=c
31349 ac_cpp='$CPP $CPPFLAGS'
31350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31353
31354  if test "$cross_compiling" = yes; then
31355   llvmac_cv_c_printf_a=no
31356 else
31357   cat >conftest.$ac_ext <<_ACEOF
31358
31359   /* confdefs.h.  */
31360 _ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h.  */
31364
31365 #include <stdio.h>
31366 #include <stdlib.h>
31367
31368 int
31369 main ()
31370 {
31371
31372 volatile double A, B;
31373 char Buffer[100];
31374 A = 1;
31375 A /= 10.0;
31376 sprintf(Buffer, "%a", A);
31377 B = atof(Buffer);
31378 if (A != B)
31379   return (1);
31380 if (A != 0x1.999999999999ap-4)
31381   return (1);
31382 return (0);
31383   ;
31384   return 0;
31385 }
31386 _ACEOF
31387 rm -f conftest$ac_exeext
31388 if { (ac_try="$ac_link"
31389 case "(($ac_try" in
31390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391   *) ac_try_echo=$ac_try;;
31392 esac
31393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394   (eval "$ac_link") 2>&5
31395   ac_status=$?
31396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31398   { (case "(($ac_try" in
31399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400   *) ac_try_echo=$ac_try;;
31401 esac
31402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403   (eval "$ac_try") 2>&5
31404   ac_status=$?
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); }; }; then
31407   llvm_cv_c_printf_a=yes
31408 else
31409   echo "$as_me: program exited with status $ac_status" >&5
31410 echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31412
31413 ( exit $ac_status )
31414 llvmac_cv_c_printf_a=no
31415 fi
31416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31417 fi
31418
31419
31420  ac_ext=c
31421 ac_cpp='$CPP $CPPFLAGS'
31422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31425
31426 fi
31427 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31428 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31429  if test "$llvm_cv_c_printf_a" = "yes"; then
31430
31431 cat >>confdefs.h <<\_ACEOF
31432 #define HAVE_PRINTF_A 1
31433 _ACEOF
31434
31435  fi
31436
31437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31438 # for constant arguments.  Useless!
31439 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31440 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31441 if test "${ac_cv_working_alloca_h+set}" = set; then
31442   echo $ECHO_N "(cached) $ECHO_C" >&6
31443 else
31444   cat >conftest.$ac_ext <<_ACEOF
31445 /* confdefs.h.  */
31446 _ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h.  */
31450 #include <alloca.h>
31451 int
31452 main ()
31453 {
31454 char *p = (char *) alloca (2 * sizeof (int));
31455                           if (p) return 0;
31456   ;
31457   return 0;
31458 }
31459 _ACEOF
31460 rm -f conftest.$ac_objext conftest$ac_exeext
31461 if { (ac_try="$ac_link"
31462 case "(($ac_try" in
31463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464   *) ac_try_echo=$ac_try;;
31465 esac
31466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467   (eval "$ac_link") 2>conftest.er1
31468   ac_status=$?
31469   grep -v '^ *+' conftest.er1 >conftest.err
31470   rm -f conftest.er1
31471   cat conftest.err >&5
31472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473   (exit $ac_status); } &&
31474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31475   { (case "(($ac_try" in
31476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31477   *) ac_try_echo=$ac_try;;
31478 esac
31479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31480   (eval "$ac_try") 2>&5
31481   ac_status=$?
31482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483   (exit $ac_status); }; } &&
31484          { ac_try='test -s conftest$ac_exeext'
31485   { (case "(($ac_try" in
31486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487   *) ac_try_echo=$ac_try;;
31488 esac
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490   (eval "$ac_try") 2>&5
31491   ac_status=$?
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); }; }; then
31494   ac_cv_working_alloca_h=yes
31495 else
31496   echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31498
31499         ac_cv_working_alloca_h=no
31500 fi
31501
31502 rm -f core conftest.err conftest.$ac_objext \
31503       conftest$ac_exeext conftest.$ac_ext
31504 fi
31505 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31506 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31507 if test $ac_cv_working_alloca_h = yes; then
31508
31509 cat >>confdefs.h <<\_ACEOF
31510 #define HAVE_ALLOCA_H 1
31511 _ACEOF
31512
31513 fi
31514
31515 { echo "$as_me:$LINENO: checking for alloca" >&5
31516 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31517 if test "${ac_cv_func_alloca_works+set}" = set; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 else
31520   cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h.  */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h.  */
31526 #ifdef __GNUC__
31527 # define alloca __builtin_alloca
31528 #else
31529 # ifdef _MSC_VER
31530 #  include <malloc.h>
31531 #  define alloca _alloca
31532 # else
31533 #  if HAVE_ALLOCA_H
31534 #   include <alloca.h>
31535 #  else
31536 #   ifdef _AIX
31537  #pragma alloca
31538 #   else
31539 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31540 char *alloca ();
31541 #    endif
31542 #   endif
31543 #  endif
31544 # endif
31545 #endif
31546
31547 int
31548 main ()
31549 {
31550 char *p = (char *) alloca (1);
31551                                     if (p) return 0;
31552   ;
31553   return 0;
31554 }
31555 _ACEOF
31556 rm -f conftest.$ac_objext conftest$ac_exeext
31557 if { (ac_try="$ac_link"
31558 case "(($ac_try" in
31559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560   *) ac_try_echo=$ac_try;;
31561 esac
31562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563   (eval "$ac_link") 2>conftest.er1
31564   ac_status=$?
31565   grep -v '^ *+' conftest.er1 >conftest.err
31566   rm -f conftest.er1
31567   cat conftest.err >&5
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); } &&
31570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31571   { (case "(($ac_try" in
31572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573   *) ac_try_echo=$ac_try;;
31574 esac
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576   (eval "$ac_try") 2>&5
31577   ac_status=$?
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); }; } &&
31580          { ac_try='test -s conftest$ac_exeext'
31581   { (case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_try") 2>&5
31587   ac_status=$?
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); }; }; then
31590   ac_cv_func_alloca_works=yes
31591 else
31592   echo "$as_me: failed program was:" >&5
31593 sed 's/^/| /' conftest.$ac_ext >&5
31594
31595         ac_cv_func_alloca_works=no
31596 fi
31597
31598 rm -f core conftest.err conftest.$ac_objext \
31599       conftest$ac_exeext conftest.$ac_ext
31600 fi
31601 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31603
31604 if test $ac_cv_func_alloca_works = yes; then
31605
31606 cat >>confdefs.h <<\_ACEOF
31607 #define HAVE_ALLOCA 1
31608 _ACEOF
31609
31610 else
31611   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31612 # that cause trouble.  Some versions do not even contain alloca or
31613 # contain a buggy version.  If you still want to use their alloca,
31614 # use ar to extract alloca.o from them instead of compiling alloca.c.
31615
31616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31617
31618 cat >>confdefs.h <<\_ACEOF
31619 #define C_ALLOCA 1
31620 _ACEOF
31621
31622
31623 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31625 if test "${ac_cv_os_cray+set}" = set; then
31626   echo $ECHO_N "(cached) $ECHO_C" >&6
31627 else
31628   cat >conftest.$ac_ext <<_ACEOF
31629 /* confdefs.h.  */
31630 _ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h.  */
31634 #if defined CRAY && ! defined CRAY2
31635 webecray
31636 #else
31637 wenotbecray
31638 #endif
31639
31640 _ACEOF
31641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31642   $EGREP "webecray" >/dev/null 2>&1; then
31643   ac_cv_os_cray=yes
31644 else
31645   ac_cv_os_cray=no
31646 fi
31647 rm -f conftest*
31648
31649 fi
31650 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31651 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31652 if test $ac_cv_os_cray = yes; then
31653   for ac_func in _getb67 GETB67 getb67; do
31654     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31658   echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660   cat >conftest.$ac_ext <<_ACEOF
31661 /* confdefs.h.  */
31662 _ACEOF
31663 cat confdefs.h >>conftest.$ac_ext
31664 cat >>conftest.$ac_ext <<_ACEOF
31665 /* end confdefs.h.  */
31666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31668 #define $ac_func innocuous_$ac_func
31669
31670 /* System header to define __stub macros and hopefully few prototypes,
31671     which can conflict with char $ac_func (); below.
31672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31673     <limits.h> exists even on freestanding compilers.  */
31674
31675 #ifdef __STDC__
31676 # include <limits.h>
31677 #else
31678 # include <assert.h>
31679 #endif
31680
31681 #undef $ac_func
31682
31683 /* Override any GCC internal prototype to avoid an error.
31684    Use char because int might match the return type of a GCC
31685    builtin and then its argument prototype would still apply.  */
31686 #ifdef __cplusplus
31687 extern "C"
31688 #endif
31689 char $ac_func ();
31690 /* The GNU C library defines this for functions which it implements
31691     to always fail with ENOSYS.  Some functions are actually named
31692     something starting with __ and the normal name is an alias.  */
31693 #if defined __stub_$ac_func || defined __stub___$ac_func
31694 choke me
31695 #endif
31696
31697 int
31698 main ()
31699 {
31700 return $ac_func ();
31701   ;
31702   return 0;
31703 }
31704 _ACEOF
31705 rm -f conftest.$ac_objext conftest$ac_exeext
31706 if { (ac_try="$ac_link"
31707 case "(($ac_try" in
31708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709   *) ac_try_echo=$ac_try;;
31710 esac
31711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712   (eval "$ac_link") 2>conftest.er1
31713   ac_status=$?
31714   grep -v '^ *+' conftest.er1 >conftest.err
31715   rm -f conftest.er1
31716   cat conftest.err >&5
31717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718   (exit $ac_status); } &&
31719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31720   { (case "(($ac_try" in
31721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31722   *) ac_try_echo=$ac_try;;
31723 esac
31724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31725   (eval "$ac_try") 2>&5
31726   ac_status=$?
31727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728   (exit $ac_status); }; } &&
31729          { ac_try='test -s conftest$ac_exeext'
31730   { (case "(($ac_try" in
31731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732   *) ac_try_echo=$ac_try;;
31733 esac
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735   (eval "$ac_try") 2>&5
31736   ac_status=$?
31737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738   (exit $ac_status); }; }; then
31739   eval "$as_ac_var=yes"
31740 else
31741   echo "$as_me: failed program was:" >&5
31742 sed 's/^/| /' conftest.$ac_ext >&5
31743
31744         eval "$as_ac_var=no"
31745 fi
31746
31747 rm -f core conftest.err conftest.$ac_objext \
31748       conftest$ac_exeext conftest.$ac_ext
31749 fi
31750 ac_res=`eval echo '${'$as_ac_var'}'`
31751                { echo "$as_me:$LINENO: result: $ac_res" >&5
31752 echo "${ECHO_T}$ac_res" >&6; }
31753 if test `eval echo '${'$as_ac_var'}'` = yes; then
31754
31755 cat >>confdefs.h <<_ACEOF
31756 #define CRAY_STACKSEG_END $ac_func
31757 _ACEOF
31758
31759     break
31760 fi
31761
31762   done
31763 fi
31764
31765 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31766 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31767 if test "${ac_cv_c_stack_direction+set}" = set; then
31768   echo $ECHO_N "(cached) $ECHO_C" >&6
31769 else
31770   if test "$cross_compiling" = yes; then
31771   ac_cv_c_stack_direction=0
31772 else
31773   cat >conftest.$ac_ext <<_ACEOF
31774 /* confdefs.h.  */
31775 _ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h.  */
31779 $ac_includes_default
31780 int
31781 find_stack_direction ()
31782 {
31783   static char *addr = 0;
31784   auto char dummy;
31785   if (addr == 0)
31786     {
31787       addr = &dummy;
31788       return find_stack_direction ();
31789     }
31790   else
31791     return (&dummy > addr) ? 1 : -1;
31792 }
31793
31794 int
31795 main ()
31796 {
31797   return find_stack_direction () < 0;
31798 }
31799 _ACEOF
31800 rm -f conftest$ac_exeext
31801 if { (ac_try="$ac_link"
31802 case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807   (eval "$ac_link") 2>&5
31808   ac_status=$?
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31811   { (case "(($ac_try" in
31812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813   *) ac_try_echo=$ac_try;;
31814 esac
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816   (eval "$ac_try") 2>&5
31817   ac_status=$?
31818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819   (exit $ac_status); }; }; then
31820   ac_cv_c_stack_direction=1
31821 else
31822   echo "$as_me: program exited with status $ac_status" >&5
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31825
31826 ( exit $ac_status )
31827 ac_cv_c_stack_direction=-1
31828 fi
31829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31830 fi
31831
31832
31833 fi
31834 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31835 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31836
31837 cat >>confdefs.h <<_ACEOF
31838 #define STACK_DIRECTION $ac_cv_c_stack_direction
31839 _ACEOF
31840
31841
31842 fi
31843
31844
31845 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31846 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31847 if test "${ac_cv_func_rand48+set}" = set; then
31848   echo $ECHO_N "(cached) $ECHO_C" >&6
31849 else
31850   ac_ext=cpp
31851 ac_cpp='$CXXCPP $CPPFLAGS'
31852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31855
31856    cat >conftest.$ac_ext <<_ACEOF
31857 /* confdefs.h.  */
31858 _ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h.  */
31862 #include <stdlib.h>
31863 int
31864 main ()
31865 {
31866 srand48(0);lrand48();drand48();
31867   ;
31868   return 0;
31869 }
31870 _ACEOF
31871 rm -f conftest.$ac_objext
31872 if { (ac_try="$ac_compile"
31873 case "(($ac_try" in
31874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875   *) ac_try_echo=$ac_try;;
31876 esac
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878   (eval "$ac_compile") 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } &&
31885          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31886   { (case "(($ac_try" in
31887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888   *) ac_try_echo=$ac_try;;
31889 esac
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891   (eval "$ac_try") 2>&5
31892   ac_status=$?
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); }; } &&
31895          { ac_try='test -s conftest.$ac_objext'
31896   { (case "(($ac_try" in
31897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898   *) ac_try_echo=$ac_try;;
31899 esac
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901   (eval "$ac_try") 2>&5
31902   ac_status=$?
31903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904   (exit $ac_status); }; }; then
31905   ac_cv_func_rand48=yes
31906 else
31907   echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31909
31910         ac_cv_func_rand48=no
31911 fi
31912
31913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31914   ac_ext=c
31915 ac_cpp='$CPP $CPPFLAGS'
31916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31919
31920 fi
31921 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31922 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31923
31924 if test "$ac_cv_func_rand48" = "yes" ; then
31925
31926 cat >>confdefs.h <<\_ACEOF
31927 #define HAVE_RAND48 1
31928 _ACEOF
31929
31930 fi
31931
31932
31933 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31934 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31935 if test "${ac_cv_cxx_namespaces+set}" = set; then
31936   echo $ECHO_N "(cached) $ECHO_C" >&6
31937 else
31938   ac_ext=cpp
31939 ac_cpp='$CXXCPP $CPPFLAGS'
31940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31943
31944  cat >conftest.$ac_ext <<_ACEOF
31945 /* confdefs.h.  */
31946 _ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h.  */
31950 namespace Outer { namespace Inner { int i = 0; }}
31951 int
31952 main ()
31953 {
31954 using namespace Outer::Inner; return i;
31955   ;
31956   return 0;
31957 }
31958 _ACEOF
31959 rm -f conftest.$ac_objext
31960 if { (ac_try="$ac_compile"
31961 case "(($ac_try" in
31962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963   *) ac_try_echo=$ac_try;;
31964 esac
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966   (eval "$ac_compile") 2>conftest.er1
31967   ac_status=$?
31968   grep -v '^ *+' conftest.er1 >conftest.err
31969   rm -f conftest.er1
31970   cat conftest.err >&5
31971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972   (exit $ac_status); } &&
31973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31974   { (case "(($ac_try" in
31975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976   *) ac_try_echo=$ac_try;;
31977 esac
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979   (eval "$ac_try") 2>&5
31980   ac_status=$?
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); }; } &&
31983          { ac_try='test -s conftest.$ac_objext'
31984   { (case "(($ac_try" in
31985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986   *) ac_try_echo=$ac_try;;
31987 esac
31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989   (eval "$ac_try") 2>&5
31990   ac_status=$?
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); }; }; then
31993   ac_cv_cxx_namespaces=yes
31994 else
31995   echo "$as_me: failed program was:" >&5
31996 sed 's/^/| /' conftest.$ac_ext >&5
31997
31998         ac_cv_cxx_namespaces=no
31999 fi
32000
32001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32002  ac_ext=c
32003 ac_cpp='$CPP $CPPFLAGS'
32004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32007
32008
32009 fi
32010 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32011 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32012 if test "$ac_cv_cxx_namespaces" = yes; then
32013
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_NAMESPACES
32016 _ACEOF
32017
32018 fi
32019
32020 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32021 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32022 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025
32026   ac_ext=cpp
32027 ac_cpp='$CXXCPP $CPPFLAGS'
32028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32031
32032   cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 #include <ext/hash_map>
32039 #ifdef HAVE_NAMESPACES
32040 using namespace std;
32041 #endif
32042 int
32043 main ()
32044 {
32045 hash_map<int, int> t;
32046   ;
32047   return 0;
32048 }
32049 _ACEOF
32050 rm -f conftest.$ac_objext
32051 if { (ac_try="$ac_compile"
32052 case "(($ac_try" in
32053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054   *) ac_try_echo=$ac_try;;
32055 esac
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057   (eval "$ac_compile") 2>conftest.er1
32058   ac_status=$?
32059   grep -v '^ *+' conftest.er1 >conftest.err
32060   rm -f conftest.er1
32061   cat conftest.err >&5
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } &&
32064          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32065   { (case "(($ac_try" in
32066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067   *) ac_try_echo=$ac_try;;
32068 esac
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070   (eval "$ac_try") 2>&5
32071   ac_status=$?
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); }; } &&
32074          { ac_try='test -s conftest.$ac_objext'
32075   { (case "(($ac_try" in
32076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077   *) ac_try_echo=$ac_try;;
32078 esac
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080   (eval "$ac_try") 2>&5
32081   ac_status=$?
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); }; }; then
32084   ac_cv_cxx_have_std_ext_hash_map=yes
32085 else
32086   echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089         ac_cv_cxx_have_std_ext_hash_map=no
32090 fi
32091
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32093   ac_ext=c
32094 ac_cpp='$CPP $CPPFLAGS'
32095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32098
32099 fi
32100 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32101 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32102  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32103  then
32104
32105 cat >>confdefs.h <<\_ACEOF
32106 #define HAVE_STD_EXT_HASH_MAP 1
32107 _ACEOF
32108
32109  else
32110
32111 cat >>confdefs.h <<\_ACEOF
32112 #define HAVE_STD_EXT_HASH_MAP 0
32113 _ACEOF
32114
32115  fi
32116
32117  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32118 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32119 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32120   echo $ECHO_N "(cached) $ECHO_C" >&6
32121 else
32122
32123   ac_ext=cpp
32124 ac_cpp='$CXXCPP $CPPFLAGS'
32125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32128
32129   cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135 #include <ext/hash_map>
32136 #ifdef HAVE_NAMESPACES
32137 using namespace __gnu_cxx;
32138 #endif
32139 int
32140 main ()
32141 {
32142 hash_map<int,int> t;
32143   ;
32144   return 0;
32145 }
32146 _ACEOF
32147 rm -f conftest.$ac_objext
32148 if { (ac_try="$ac_compile"
32149 case "(($ac_try" in
32150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151   *) ac_try_echo=$ac_try;;
32152 esac
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154   (eval "$ac_compile") 2>conftest.er1
32155   ac_status=$?
32156   grep -v '^ *+' conftest.er1 >conftest.err
32157   rm -f conftest.er1
32158   cat conftest.err >&5
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); } &&
32161          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32162   { (case "(($ac_try" in
32163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164   *) ac_try_echo=$ac_try;;
32165 esac
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167   (eval "$ac_try") 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; } &&
32171          { ac_try='test -s conftest.$ac_objext'
32172   { (case "(($ac_try" in
32173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174   *) ac_try_echo=$ac_try;;
32175 esac
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177   (eval "$ac_try") 2>&5
32178   ac_status=$?
32179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180   (exit $ac_status); }; }; then
32181   ac_cv_cxx_have_gnu_ext_hash_map=yes
32182 else
32183   echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32185
32186         ac_cv_cxx_have_gnu_ext_hash_map=no
32187 fi
32188
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190   ac_ext=c
32191 ac_cpp='$CPP $CPPFLAGS'
32192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32195
32196 fi
32197 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32198 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32199  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32200  then
32201
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_GNU_EXT_HASH_MAP 1
32204 _ACEOF
32205
32206  else
32207
32208 cat >>confdefs.h <<\_ACEOF
32209 #define HAVE_GNU_EXT_HASH_MAP 0
32210 _ACEOF
32211
32212  fi
32213
32214  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32215 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32216 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32217   echo $ECHO_N "(cached) $ECHO_C" >&6
32218 else
32219
32220   ac_ext=cpp
32221 ac_cpp='$CXXCPP $CPPFLAGS'
32222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32225
32226   cat >conftest.$ac_ext <<_ACEOF
32227 /* confdefs.h.  */
32228 _ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h.  */
32232 #include <hash_map>
32233 int
32234 main ()
32235 {
32236 hash_map<int,int> t;
32237   ;
32238   return 0;
32239 }
32240 _ACEOF
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245   *) ac_try_echo=$ac_try;;
32246 esac
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248   (eval "$ac_compile") 2>conftest.er1
32249   ac_status=$?
32250   grep -v '^ *+' conftest.er1 >conftest.err
32251   rm -f conftest.er1
32252   cat conftest.err >&5
32253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254   (exit $ac_status); } &&
32255          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32256   { (case "(($ac_try" in
32257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258   *) ac_try_echo=$ac_try;;
32259 esac
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261   (eval "$ac_try") 2>&5
32262   ac_status=$?
32263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264   (exit $ac_status); }; } &&
32265          { ac_try='test -s conftest.$ac_objext'
32266   { (case "(($ac_try" in
32267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268   *) ac_try_echo=$ac_try;;
32269 esac
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271   (eval "$ac_try") 2>&5
32272   ac_status=$?
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); }; }; then
32275   ac_cv_cxx_have_global_hash_map=yes
32276 else
32277   echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32279
32280         ac_cv_cxx_have_global_hash_map=no
32281 fi
32282
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32284   ac_ext=c
32285 ac_cpp='$CPP $CPPFLAGS'
32286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32289
32290 fi
32291 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32292 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32293  if test "$ac_cv_cxx_have_global_hash_map" = yes
32294  then
32295
32296 cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_GLOBAL_HASH_MAP 1
32298 _ACEOF
32299
32300  else
32301
32302 cat >>confdefs.h <<\_ACEOF
32303 #define HAVE_GLOBAL_HASH_MAP 0
32304 _ACEOF
32305
32306  fi
32307
32308 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32309 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32310 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32311   echo $ECHO_N "(cached) $ECHO_C" >&6
32312 else
32313
32314   ac_ext=cpp
32315 ac_cpp='$CXXCPP $CPPFLAGS'
32316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32319
32320   cat >conftest.$ac_ext <<_ACEOF
32321 /* confdefs.h.  */
32322 _ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h.  */
32326 #include <ext/hash_set>
32327 #ifdef HAVE_NAMESPACES
32328 using namespace std;
32329 #endif
32330 int
32331 main ()
32332 {
32333 hash_set<int> t;
32334   ;
32335   return 0;
32336 }
32337 _ACEOF
32338 rm -f conftest.$ac_objext
32339 if { (ac_try="$ac_compile"
32340 case "(($ac_try" in
32341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32342   *) ac_try_echo=$ac_try;;
32343 esac
32344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32345   (eval "$ac_compile") 2>conftest.er1
32346   ac_status=$?
32347   grep -v '^ *+' conftest.er1 >conftest.err
32348   rm -f conftest.er1
32349   cat conftest.err >&5
32350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351   (exit $ac_status); } &&
32352          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32353   { (case "(($ac_try" in
32354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355   *) ac_try_echo=$ac_try;;
32356 esac
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358   (eval "$ac_try") 2>&5
32359   ac_status=$?
32360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361   (exit $ac_status); }; } &&
32362          { ac_try='test -s conftest.$ac_objext'
32363   { (case "(($ac_try" in
32364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32365   *) ac_try_echo=$ac_try;;
32366 esac
32367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32368   (eval "$ac_try") 2>&5
32369   ac_status=$?
32370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371   (exit $ac_status); }; }; then
32372   ac_cv_cxx_have_std_ext_hash_set=yes
32373 else
32374   echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32376
32377         ac_cv_cxx_have_std_ext_hash_set=no
32378 fi
32379
32380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32381   ac_ext=c
32382 ac_cpp='$CPP $CPPFLAGS'
32383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32386
32387 fi
32388 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32389 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32390  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32391  then
32392
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_STD_EXT_HASH_SET 1
32395 _ACEOF
32396
32397  else
32398
32399 cat >>confdefs.h <<\_ACEOF
32400 #define HAVE_STD_EXT_HASH_SET 0
32401 _ACEOF
32402
32403  fi
32404
32405  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32406 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32407 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32408   echo $ECHO_N "(cached) $ECHO_C" >&6
32409 else
32410
32411   ac_ext=cpp
32412 ac_cpp='$CXXCPP $CPPFLAGS'
32413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32416
32417   cat >conftest.$ac_ext <<_ACEOF
32418 /* confdefs.h.  */
32419 _ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h.  */
32423 #include <ext/hash_set>
32424 #ifdef HAVE_NAMESPACES
32425 using namespace __gnu_cxx;
32426 #endif
32427 int
32428 main ()
32429 {
32430 hash_set<int> t;
32431   ;
32432   return 0;
32433 }
32434 _ACEOF
32435 rm -f conftest.$ac_objext
32436 if { (ac_try="$ac_compile"
32437 case "(($ac_try" in
32438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439   *) ac_try_echo=$ac_try;;
32440 esac
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442   (eval "$ac_compile") 2>conftest.er1
32443   ac_status=$?
32444   grep -v '^ *+' conftest.er1 >conftest.err
32445   rm -f conftest.er1
32446   cat conftest.err >&5
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); } &&
32449          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32450   { (case "(($ac_try" in
32451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452   *) ac_try_echo=$ac_try;;
32453 esac
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455   (eval "$ac_try") 2>&5
32456   ac_status=$?
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); }; } &&
32459          { ac_try='test -s conftest.$ac_objext'
32460   { (case "(($ac_try" in
32461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462   *) ac_try_echo=$ac_try;;
32463 esac
32464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465   (eval "$ac_try") 2>&5
32466   ac_status=$?
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); }; }; then
32469   ac_cv_cxx_have_gnu_ext_hash_set=yes
32470 else
32471   echo "$as_me: failed program was:" >&5
32472 sed 's/^/| /' conftest.$ac_ext >&5
32473
32474         ac_cv_cxx_have_gnu_ext_hash_set=no
32475 fi
32476
32477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32478   ac_ext=c
32479 ac_cpp='$CPP $CPPFLAGS'
32480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32483
32484 fi
32485 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32486 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32487  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32488  then
32489
32490 cat >>confdefs.h <<\_ACEOF
32491 #define HAVE_GNU_EXT_HASH_SET 1
32492 _ACEOF
32493
32494  else
32495
32496 cat >>confdefs.h <<\_ACEOF
32497 #define HAVE_GNU_EXT_HASH_SET 0
32498 _ACEOF
32499
32500  fi
32501
32502  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32503 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32504 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32505   echo $ECHO_N "(cached) $ECHO_C" >&6
32506 else
32507
32508   ac_ext=cpp
32509 ac_cpp='$CXXCPP $CPPFLAGS'
32510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32513
32514   cat >conftest.$ac_ext <<_ACEOF
32515 /* confdefs.h.  */
32516 _ACEOF
32517 cat confdefs.h >>conftest.$ac_ext
32518 cat >>conftest.$ac_ext <<_ACEOF
32519 /* end confdefs.h.  */
32520 #include <hash_set>
32521 int
32522 main ()
32523 {
32524 hash_set<int> t; return 0;
32525   ;
32526   return 0;
32527 }
32528 _ACEOF
32529 rm -f conftest.$ac_objext
32530 if { (ac_try="$ac_compile"
32531 case "(($ac_try" in
32532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32533   *) ac_try_echo=$ac_try;;
32534 esac
32535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32536   (eval "$ac_compile") 2>conftest.er1
32537   ac_status=$?
32538   grep -v '^ *+' conftest.er1 >conftest.err
32539   rm -f conftest.er1
32540   cat conftest.err >&5
32541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542   (exit $ac_status); } &&
32543          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32544   { (case "(($ac_try" in
32545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546   *) ac_try_echo=$ac_try;;
32547 esac
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549   (eval "$ac_try") 2>&5
32550   ac_status=$?
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); }; } &&
32553          { ac_try='test -s conftest.$ac_objext'
32554   { (case "(($ac_try" in
32555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556   *) ac_try_echo=$ac_try;;
32557 esac
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559   (eval "$ac_try") 2>&5
32560   ac_status=$?
32561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562   (exit $ac_status); }; }; then
32563   ac_cv_cxx_have_global_hash_set=yes
32564 else
32565   echo "$as_me: failed program was:" >&5
32566 sed 's/^/| /' conftest.$ac_ext >&5
32567
32568         ac_cv_cxx_have_global_hash_set=no
32569 fi
32570
32571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32572   ac_ext=c
32573 ac_cpp='$CPP $CPPFLAGS'
32574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32577
32578 fi
32579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32580 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32581  if test "$ac_cv_cxx_have_global_hash_set" = yes
32582  then
32583
32584 cat >>confdefs.h <<\_ACEOF
32585 #define HAVE_GLOBAL_HASH_SET 1
32586 _ACEOF
32587
32588  else
32589
32590 cat >>confdefs.h <<\_ACEOF
32591 #define HAVE_GLOBAL_HASH_SET 0
32592 _ACEOF
32593
32594  fi
32595
32596 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32597 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32598 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32599   echo $ECHO_N "(cached) $ECHO_C" >&6
32600 else
32601
32602   ac_ext=cpp
32603 ac_cpp='$CXXCPP $CPPFLAGS'
32604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32607
32608   cat >conftest.$ac_ext <<_ACEOF
32609 /* confdefs.h.  */
32610 _ACEOF
32611 cat confdefs.h >>conftest.$ac_ext
32612 cat >>conftest.$ac_ext <<_ACEOF
32613 /* end confdefs.h.  */
32614 #include <iterator>
32615 #ifdef HAVE_NAMESPACES
32616 using namespace std;
32617 #endif
32618 int
32619 main ()
32620 {
32621 iterator<int,int,int> t; return 0;
32622   ;
32623   return 0;
32624 }
32625 _ACEOF
32626 rm -f conftest.$ac_objext
32627 if { (ac_try="$ac_compile"
32628 case "(($ac_try" in
32629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630   *) ac_try_echo=$ac_try;;
32631 esac
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633   (eval "$ac_compile") 2>conftest.er1
32634   ac_status=$?
32635   grep -v '^ *+' conftest.er1 >conftest.err
32636   rm -f conftest.er1
32637   cat conftest.err >&5
32638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639   (exit $ac_status); } &&
32640          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641   { (case "(($ac_try" in
32642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643   *) ac_try_echo=$ac_try;;
32644 esac
32645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646   (eval "$ac_try") 2>&5
32647   ac_status=$?
32648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649   (exit $ac_status); }; } &&
32650          { ac_try='test -s conftest.$ac_objext'
32651   { (case "(($ac_try" in
32652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653   *) ac_try_echo=$ac_try;;
32654 esac
32655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656   (eval "$ac_try") 2>&5
32657   ac_status=$?
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); }; }; then
32660   ac_cv_cxx_have_std_iterator=yes
32661 else
32662   echo "$as_me: failed program was:" >&5
32663 sed 's/^/| /' conftest.$ac_ext >&5
32664
32665         ac_cv_cxx_have_std_iterator=no
32666 fi
32667
32668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32669   ac_ext=c
32670 ac_cpp='$CPP $CPPFLAGS'
32671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32674
32675
32676 fi
32677 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32678 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32679 if test "$ac_cv_cxx_have_std_iterator" = yes
32680 then
32681
32682 cat >>confdefs.h <<\_ACEOF
32683 #define HAVE_STD_ITERATOR 1
32684 _ACEOF
32685
32686 else
32687
32688 cat >>confdefs.h <<\_ACEOF
32689 #define HAVE_STD_ITERATOR 0
32690 _ACEOF
32691
32692 fi
32693
32694 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32695 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32696 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32697   echo $ECHO_N "(cached) $ECHO_C" >&6
32698 else
32699
32700   ac_ext=cpp
32701 ac_cpp='$CXXCPP $CPPFLAGS'
32702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32705
32706   cat >conftest.$ac_ext <<_ACEOF
32707 /* confdefs.h.  */
32708 _ACEOF
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h.  */
32712 #include <iterator>
32713 #ifdef HAVE_NAMESPACES
32714 using namespace std;
32715 #endif
32716 int
32717 main ()
32718 {
32719 bidirectional_iterator<int,int> t; return 0;
32720   ;
32721   return 0;
32722 }
32723 _ACEOF
32724 rm -f conftest.$ac_objext
32725 if { (ac_try="$ac_compile"
32726 case "(($ac_try" in
32727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32728   *) ac_try_echo=$ac_try;;
32729 esac
32730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32731   (eval "$ac_compile") 2>conftest.er1
32732   ac_status=$?
32733   grep -v '^ *+' conftest.er1 >conftest.err
32734   rm -f conftest.er1
32735   cat conftest.err >&5
32736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737   (exit $ac_status); } &&
32738          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32739   { (case "(($ac_try" in
32740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741   *) ac_try_echo=$ac_try;;
32742 esac
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744   (eval "$ac_try") 2>&5
32745   ac_status=$?
32746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747   (exit $ac_status); }; } &&
32748          { ac_try='test -s conftest.$ac_objext'
32749   { (case "(($ac_try" in
32750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751   *) ac_try_echo=$ac_try;;
32752 esac
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754   (eval "$ac_try") 2>&5
32755   ac_status=$?
32756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757   (exit $ac_status); }; }; then
32758   ac_cv_cxx_have_bi_iterator=yes
32759 else
32760   echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.$ac_ext >&5
32762
32763         ac_cv_cxx_have_bi_iterator=no
32764 fi
32765
32766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32767   ac_ext=c
32768 ac_cpp='$CPP $CPPFLAGS'
32769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32772
32773
32774 fi
32775 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32776 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32777 if test "$ac_cv_cxx_have_bi_iterator" = yes
32778 then
32779
32780 cat >>confdefs.h <<\_ACEOF
32781 #define HAVE_BI_ITERATOR 1
32782 _ACEOF
32783
32784 else
32785
32786 cat >>confdefs.h <<\_ACEOF
32787 #define HAVE_BI_ITERATOR 0
32788 _ACEOF
32789
32790 fi
32791
32792 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32793 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32794 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32795   echo $ECHO_N "(cached) $ECHO_C" >&6
32796 else
32797
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 <iterator>
32811 #ifdef HAVE_NAMESPACES
32812 using namespace std;
32813 #endif
32814 int
32815 main ()
32816 {
32817 forward_iterator<int,int> t; return 0;
32818   ;
32819   return 0;
32820 }
32821 _ACEOF
32822 rm -f conftest.$ac_objext
32823 if { (ac_try="$ac_compile"
32824 case "(($ac_try" in
32825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32826   *) ac_try_echo=$ac_try;;
32827 esac
32828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32829   (eval "$ac_compile") 2>conftest.er1
32830   ac_status=$?
32831   grep -v '^ *+' conftest.er1 >conftest.err
32832   rm -f conftest.er1
32833   cat conftest.err >&5
32834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835   (exit $ac_status); } &&
32836          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32837   { (case "(($ac_try" in
32838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839   *) ac_try_echo=$ac_try;;
32840 esac
32841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842   (eval "$ac_try") 2>&5
32843   ac_status=$?
32844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); }; } &&
32846          { ac_try='test -s conftest.$ac_objext'
32847   { (case "(($ac_try" in
32848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849   *) ac_try_echo=$ac_try;;
32850 esac
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852   (eval "$ac_try") 2>&5
32853   ac_status=$?
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); }; }; then
32856   ac_cv_cxx_have_fwd_iterator=yes
32857 else
32858   echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32860
32861         ac_cv_cxx_have_fwd_iterator=no
32862 fi
32863
32864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32865   ac_ext=c
32866 ac_cpp='$CPP $CPPFLAGS'
32867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32870
32871
32872 fi
32873 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32874 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32875 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32876 then
32877
32878 cat >>confdefs.h <<\_ACEOF
32879 #define HAVE_FWD_ITERATOR 1
32880 _ACEOF
32881
32882 else
32883
32884 cat >>confdefs.h <<\_ACEOF
32885 #define HAVE_FWD_ITERATOR 0
32886 _ACEOF
32887
32888 fi
32889
32890
32891 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32892 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32893 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32894   echo $ECHO_N "(cached) $ECHO_C" >&6
32895 else
32896   ac_ext=cpp
32897 ac_cpp='$CXXCPP $CPPFLAGS'
32898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32901
32902    cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908 #include <math.h>
32909 int
32910 main ()
32911 {
32912 float f; isnan(f);
32913   ;
32914   return 0;
32915 }
32916 _ACEOF
32917 rm -f conftest.$ac_objext
32918 if { (ac_try="$ac_compile"
32919 case "(($ac_try" in
32920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921   *) ac_try_echo=$ac_try;;
32922 esac
32923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32924   (eval "$ac_compile") 2>conftest.er1
32925   ac_status=$?
32926   grep -v '^ *+' conftest.er1 >conftest.err
32927   rm -f conftest.er1
32928   cat conftest.err >&5
32929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930   (exit $ac_status); } &&
32931          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32932   { (case "(($ac_try" in
32933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934   *) ac_try_echo=$ac_try;;
32935 esac
32936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937   (eval "$ac_try") 2>&5
32938   ac_status=$?
32939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940   (exit $ac_status); }; } &&
32941          { ac_try='test -s conftest.$ac_objext'
32942   { (case "(($ac_try" in
32943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944   *) ac_try_echo=$ac_try;;
32945 esac
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947   (eval "$ac_try") 2>&5
32948   ac_status=$?
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); }; }; then
32951   ac_cv_func_isnan_in_math_h=yes
32952 else
32953   echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32955
32956         ac_cv_func_isnan_in_math_h=no
32957 fi
32958
32959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32960   ac_ext=c
32961 ac_cpp='$CPP $CPPFLAGS'
32962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32965
32966 fi
32967 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32968 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32969
32970
32971 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32972
32973 cat >>confdefs.h <<\_ACEOF
32974 #define HAVE_ISNAN_IN_MATH_H 1
32975 _ACEOF
32976
32977 fi
32978
32979 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32980 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32981 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32982   echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984   ac_ext=cpp
32985 ac_cpp='$CXXCPP $CPPFLAGS'
32986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32989
32990    cat >conftest.$ac_ext <<_ACEOF
32991 /* confdefs.h.  */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h.  */
32996 #include <cmath>
32997 int
32998 main ()
32999 {
33000 float f; isnan(f);
33001   ;
33002   return 0;
33003 }
33004 _ACEOF
33005 rm -f conftest.$ac_objext
33006 if { (ac_try="$ac_compile"
33007 case "(($ac_try" in
33008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009   *) ac_try_echo=$ac_try;;
33010 esac
33011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012   (eval "$ac_compile") 2>conftest.er1
33013   ac_status=$?
33014   grep -v '^ *+' conftest.er1 >conftest.err
33015   rm -f conftest.er1
33016   cat conftest.err >&5
33017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018   (exit $ac_status); } &&
33019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33020   { (case "(($ac_try" in
33021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022   *) ac_try_echo=$ac_try;;
33023 esac
33024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025   (eval "$ac_try") 2>&5
33026   ac_status=$?
33027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028   (exit $ac_status); }; } &&
33029          { ac_try='test -s conftest.$ac_objext'
33030   { (case "(($ac_try" in
33031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032   *) ac_try_echo=$ac_try;;
33033 esac
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035   (eval "$ac_try") 2>&5
33036   ac_status=$?
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); }; }; then
33039   ac_cv_func_isnan_in_cmath=yes
33040 else
33041   echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33043
33044         ac_cv_func_isnan_in_cmath=no
33045 fi
33046
33047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33048   ac_ext=c
33049 ac_cpp='$CPP $CPPFLAGS'
33050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33053
33054 fi
33055 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33056 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33057
33058 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33059
33060 cat >>confdefs.h <<\_ACEOF
33061 #define HAVE_ISNAN_IN_CMATH 1
33062 _ACEOF
33063
33064 fi
33065
33066 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33067 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33068 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33069   echo $ECHO_N "(cached) $ECHO_C" >&6
33070 else
33071   ac_ext=cpp
33072 ac_cpp='$CXXCPP $CPPFLAGS'
33073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33076
33077    cat >conftest.$ac_ext <<_ACEOF
33078 /* confdefs.h.  */
33079 _ACEOF
33080 cat confdefs.h >>conftest.$ac_ext
33081 cat >>conftest.$ac_ext <<_ACEOF
33082 /* end confdefs.h.  */
33083 #include <cmath>
33084 int
33085 main ()
33086 {
33087 float f; std::isnan(f);
33088   ;
33089   return 0;
33090 }
33091 _ACEOF
33092 rm -f conftest.$ac_objext
33093 if { (ac_try="$ac_compile"
33094 case "(($ac_try" in
33095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096   *) ac_try_echo=$ac_try;;
33097 esac
33098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099   (eval "$ac_compile") 2>conftest.er1
33100   ac_status=$?
33101   grep -v '^ *+' conftest.er1 >conftest.err
33102   rm -f conftest.er1
33103   cat conftest.err >&5
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); } &&
33106          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33107   { (case "(($ac_try" in
33108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109   *) ac_try_echo=$ac_try;;
33110 esac
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112   (eval "$ac_try") 2>&5
33113   ac_status=$?
33114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115   (exit $ac_status); }; } &&
33116          { ac_try='test -s conftest.$ac_objext'
33117   { (case "(($ac_try" in
33118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119   *) ac_try_echo=$ac_try;;
33120 esac
33121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122   (eval "$ac_try") 2>&5
33123   ac_status=$?
33124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125   (exit $ac_status); }; }; then
33126   ac_cv_func_std_isnan_in_cmath=yes
33127 else
33128   echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33130
33131         ac_cv_func_std_isnan_in_cmath=no
33132 fi
33133
33134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33135   ac_ext=c
33136 ac_cpp='$CPP $CPPFLAGS'
33137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33140
33141 fi
33142 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33143 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33144
33145 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33146
33147 cat >>confdefs.h <<\_ACEOF
33148 #define HAVE_STD_ISNAN_IN_CMATH 1
33149 _ACEOF
33150
33151 fi
33152
33153
33154 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33155 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33156 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33157   echo $ECHO_N "(cached) $ECHO_C" >&6
33158 else
33159   ac_ext=cpp
33160 ac_cpp='$CXXCPP $CPPFLAGS'
33161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33164
33165    cat >conftest.$ac_ext <<_ACEOF
33166 /* confdefs.h.  */
33167 _ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h.  */
33171 #include <math.h>
33172 int
33173 main ()
33174 {
33175 float f; isinf(f);
33176   ;
33177   return 0;
33178 }
33179 _ACEOF
33180 rm -f conftest.$ac_objext
33181 if { (ac_try="$ac_compile"
33182 case "(($ac_try" in
33183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184   *) ac_try_echo=$ac_try;;
33185 esac
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187   (eval "$ac_compile") 2>conftest.er1
33188   ac_status=$?
33189   grep -v '^ *+' conftest.er1 >conftest.err
33190   rm -f conftest.er1
33191   cat conftest.err >&5
33192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193   (exit $ac_status); } &&
33194          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33195   { (case "(($ac_try" in
33196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197   *) ac_try_echo=$ac_try;;
33198 esac
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200   (eval "$ac_try") 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; } &&
33204          { ac_try='test -s conftest.$ac_objext'
33205   { (case "(($ac_try" in
33206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207   *) ac_try_echo=$ac_try;;
33208 esac
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210   (eval "$ac_try") 2>&5
33211   ac_status=$?
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); }; }; then
33214   ac_cv_func_isinf_in_math_h=yes
33215 else
33216   echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33218
33219         ac_cv_func_isinf_in_math_h=no
33220 fi
33221
33222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33223   ac_ext=c
33224 ac_cpp='$CPP $CPPFLAGS'
33225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33228
33229 fi
33230 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33231 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33232
33233 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33234
33235 cat >>confdefs.h <<\_ACEOF
33236 #define HAVE_ISINF_IN_MATH_H 1
33237 _ACEOF
33238
33239 fi
33240
33241 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33242 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33243 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33244   echo $ECHO_N "(cached) $ECHO_C" >&6
33245 else
33246   ac_ext=cpp
33247 ac_cpp='$CXXCPP $CPPFLAGS'
33248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33251
33252    cat >conftest.$ac_ext <<_ACEOF
33253 /* confdefs.h.  */
33254 _ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h.  */
33258 #include <cmath>
33259 int
33260 main ()
33261 {
33262 float f; isinf(f);
33263   ;
33264   return 0;
33265 }
33266 _ACEOF
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271   *) ac_try_echo=$ac_try;;
33272 esac
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274   (eval "$ac_compile") 2>conftest.er1
33275   ac_status=$?
33276   grep -v '^ *+' conftest.er1 >conftest.err
33277   rm -f conftest.er1
33278   cat conftest.err >&5
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); } &&
33281          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33282   { (case "(($ac_try" in
33283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284   *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287   (eval "$ac_try") 2>&5
33288   ac_status=$?
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); }; } &&
33291          { ac_try='test -s conftest.$ac_objext'
33292   { (case "(($ac_try" in
33293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294   *) ac_try_echo=$ac_try;;
33295 esac
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297   (eval "$ac_try") 2>&5
33298   ac_status=$?
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); }; }; then
33301   ac_cv_func_isinf_in_cmath=yes
33302 else
33303   echo "$as_me: failed program was:" >&5
33304 sed 's/^/| /' conftest.$ac_ext >&5
33305
33306         ac_cv_func_isinf_in_cmath=no
33307 fi
33308
33309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33310   ac_ext=c
33311 ac_cpp='$CPP $CPPFLAGS'
33312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33315
33316 fi
33317 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33318 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33319
33320 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33321
33322 cat >>confdefs.h <<\_ACEOF
33323 #define HAVE_ISINF_IN_CMATH 1
33324 _ACEOF
33325
33326 fi
33327
33328 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33329 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33330 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33331   echo $ECHO_N "(cached) $ECHO_C" >&6
33332 else
33333   ac_ext=cpp
33334 ac_cpp='$CXXCPP $CPPFLAGS'
33335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33338
33339    cat >conftest.$ac_ext <<_ACEOF
33340 /* confdefs.h.  */
33341 _ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h.  */
33345 #include <cmath>
33346 int
33347 main ()
33348 {
33349 float f; std::isinf(f)}
33350   ;
33351   return 0;
33352 }
33353 _ACEOF
33354 rm -f conftest.$ac_objext
33355 if { (ac_try="$ac_compile"
33356 case "(($ac_try" in
33357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33358   *) ac_try_echo=$ac_try;;
33359 esac
33360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33361   (eval "$ac_compile") 2>conftest.er1
33362   ac_status=$?
33363   grep -v '^ *+' conftest.er1 >conftest.err
33364   rm -f conftest.er1
33365   cat conftest.err >&5
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); } &&
33368          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33369   { (case "(($ac_try" in
33370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371   *) ac_try_echo=$ac_try;;
33372 esac
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374   (eval "$ac_try") 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }; } &&
33378          { ac_try='test -s conftest.$ac_objext'
33379   { (case "(($ac_try" in
33380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381   *) ac_try_echo=$ac_try;;
33382 esac
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384   (eval "$ac_try") 2>&5
33385   ac_status=$?
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); }; }; then
33388   ac_cv_func_std_isinf_in_cmath=yes
33389 else
33390   echo "$as_me: failed program was:" >&5
33391 sed 's/^/| /' conftest.$ac_ext >&5
33392
33393         ac_cv_func_std_isinf_in_cmath=no
33394 fi
33395
33396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33397   ac_ext=c
33398 ac_cpp='$CPP $CPPFLAGS'
33399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33402
33403 fi
33404 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33405 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33406
33407 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33408
33409 cat >>confdefs.h <<\_ACEOF
33410 #define HAVE_STD_ISINF_IN_CMATH 1
33411 _ACEOF
33412
33413 fi
33414
33415 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33416 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33417 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33418   echo $ECHO_N "(cached) $ECHO_C" >&6
33419 else
33420   ac_ext=cpp
33421 ac_cpp='$CXXCPP $CPPFLAGS'
33422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33425
33426    cat >conftest.$ac_ext <<_ACEOF
33427 /* confdefs.h.  */
33428 _ACEOF
33429 cat confdefs.h >>conftest.$ac_ext
33430 cat >>conftest.$ac_ext <<_ACEOF
33431 /* end confdefs.h.  */
33432 #include <ieeefp.h>
33433 int
33434 main ()
33435 {
33436 float f; finite(f);
33437   ;
33438   return 0;
33439 }
33440 _ACEOF
33441 rm -f conftest.$ac_objext
33442 if { (ac_try="$ac_compile"
33443 case "(($ac_try" in
33444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445   *) ac_try_echo=$ac_try;;
33446 esac
33447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448   (eval "$ac_compile") 2>conftest.er1
33449   ac_status=$?
33450   grep -v '^ *+' conftest.er1 >conftest.err
33451   rm -f conftest.er1
33452   cat conftest.err >&5
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); } &&
33455          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33456   { (case "(($ac_try" in
33457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458   *) ac_try_echo=$ac_try;;
33459 esac
33460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461   (eval "$ac_try") 2>&5
33462   ac_status=$?
33463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464   (exit $ac_status); }; } &&
33465          { ac_try='test -s conftest.$ac_objext'
33466   { (case "(($ac_try" in
33467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468   *) ac_try_echo=$ac_try;;
33469 esac
33470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471   (eval "$ac_try") 2>&5
33472   ac_status=$?
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); }; }; then
33475   ac_cv_func_finite_in_ieeefp_h=yes
33476 else
33477   echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33479
33480         ac_cv_func_finite_in_ieeefp_h=no
33481 fi
33482
33483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33484   ac_ext=c
33485 ac_cpp='$CPP $CPPFLAGS'
33486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33489
33490 fi
33491 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33492 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33493
33494 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33495
33496 cat >>confdefs.h <<\_ACEOF
33497 #define HAVE_FINITE_IN_IEEEFP_H 1
33498 _ACEOF
33499
33500 fi
33501
33502
33503
33504 if test "$llvm_cv_platform_type" = "Unix" ; then
33505
33506
33507 for ac_header in stdlib.h unistd.h
33508 do
33509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33511   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33514   echo $ECHO_N "(cached) $ECHO_C" >&6
33515 fi
33516 ac_res=`eval echo '${'$as_ac_Header'}'`
33517                { echo "$as_me:$LINENO: result: $ac_res" >&5
33518 echo "${ECHO_T}$ac_res" >&6; }
33519 else
33520   # Is the header compilable?
33521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33523 cat >conftest.$ac_ext <<_ACEOF
33524 /* confdefs.h.  */
33525 _ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h.  */
33529 $ac_includes_default
33530 #include <$ac_header>
33531 _ACEOF
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539   (eval "$ac_compile") 2>conftest.er1
33540   ac_status=$?
33541   grep -v '^ *+' conftest.er1 >conftest.err
33542   rm -f conftest.er1
33543   cat conftest.err >&5
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } &&
33546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33547   { (case "(($ac_try" in
33548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549   *) ac_try_echo=$ac_try;;
33550 esac
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552   (eval "$ac_try") 2>&5
33553   ac_status=$?
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); }; } &&
33556          { ac_try='test -s conftest.$ac_objext'
33557   { (case "(($ac_try" in
33558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559   *) ac_try_echo=$ac_try;;
33560 esac
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562   (eval "$ac_try") 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; }; then
33566   ac_header_compiler=yes
33567 else
33568   echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571         ac_header_compiler=no
33572 fi
33573
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33576 echo "${ECHO_T}$ac_header_compiler" >&6; }
33577
33578 # Is the header present?
33579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33581 cat >conftest.$ac_ext <<_ACEOF
33582 /* confdefs.h.  */
33583 _ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h.  */
33587 #include <$ac_header>
33588 _ACEOF
33589 if { (ac_try="$ac_cpp conftest.$ac_ext"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33596   ac_status=$?
33597   grep -v '^ *+' conftest.er1 >conftest.err
33598   rm -f conftest.er1
33599   cat conftest.err >&5
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } >/dev/null; then
33602   if test -s conftest.err; then
33603     ac_cpp_err=$ac_c_preproc_warn_flag
33604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33605   else
33606     ac_cpp_err=
33607   fi
33608 else
33609   ac_cpp_err=yes
33610 fi
33611 if test -z "$ac_cpp_err"; then
33612   ac_header_preproc=yes
33613 else
33614   echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33616
33617   ac_header_preproc=no
33618 fi
33619
33620 rm -f conftest.err conftest.$ac_ext
33621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33622 echo "${ECHO_T}$ac_header_preproc" >&6; }
33623
33624 # So?  What about this header?
33625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33626   yes:no: )
33627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33631     ac_header_preproc=yes
33632     ;;
33633   no:yes:* )
33634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33646     ( cat <<\_ASBOX
33647 ## ----------------------------------- ##
33648 ## Report this to llvmbugs@cs.uiuc.edu ##
33649 ## ----------------------------------- ##
33650 _ASBOX
33651      ) | sed "s/^/$as_me: WARNING:     /" >&2
33652     ;;
33653 esac
33654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33657   echo $ECHO_N "(cached) $ECHO_C" >&6
33658 else
33659   eval "$as_ac_Header=\$ac_header_preproc"
33660 fi
33661 ac_res=`eval echo '${'$as_ac_Header'}'`
33662                { echo "$as_me:$LINENO: result: $ac_res" >&5
33663 echo "${ECHO_T}$ac_res" >&6; }
33664
33665 fi
33666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33667   cat >>confdefs.h <<_ACEOF
33668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33669 _ACEOF
33670
33671 fi
33672
33673 done
33674
33675
33676 for ac_func in getpagesize
33677 do
33678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33682   echo $ECHO_N "(cached) $ECHO_C" >&6
33683 else
33684   cat >conftest.$ac_ext <<_ACEOF
33685 /* confdefs.h.  */
33686 _ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h.  */
33690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33692 #define $ac_func innocuous_$ac_func
33693
33694 /* System header to define __stub macros and hopefully few prototypes,
33695     which can conflict with char $ac_func (); below.
33696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33697     <limits.h> exists even on freestanding compilers.  */
33698
33699 #ifdef __STDC__
33700 # include <limits.h>
33701 #else
33702 # include <assert.h>
33703 #endif
33704
33705 #undef $ac_func
33706
33707 /* Override any GCC internal prototype to avoid an error.
33708    Use char because int might match the return type of a GCC
33709    builtin and then its argument prototype would still apply.  */
33710 #ifdef __cplusplus
33711 extern "C"
33712 #endif
33713 char $ac_func ();
33714 /* The GNU C library defines this for functions which it implements
33715     to always fail with ENOSYS.  Some functions are actually named
33716     something starting with __ and the normal name is an alias.  */
33717 #if defined __stub_$ac_func || defined __stub___$ac_func
33718 choke me
33719 #endif
33720
33721 int
33722 main ()
33723 {
33724 return $ac_func ();
33725   ;
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (ac_try="$ac_link"
33731 case "(($ac_try" in
33732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733   *) ac_try_echo=$ac_try;;
33734 esac
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736   (eval "$ac_link") 2>conftest.er1
33737   ac_status=$?
33738   grep -v '^ *+' conftest.er1 >conftest.err
33739   rm -f conftest.er1
33740   cat conftest.err >&5
33741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742   (exit $ac_status); } &&
33743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33744   { (case "(($ac_try" in
33745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746   *) ac_try_echo=$ac_try;;
33747 esac
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749   (eval "$ac_try") 2>&5
33750   ac_status=$?
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); }; } &&
33753          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
33760   ac_status=$?
33761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762   (exit $ac_status); }; }; then
33763   eval "$as_ac_var=yes"
33764 else
33765   echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33767
33768         eval "$as_ac_var=no"
33769 fi
33770
33771 rm -f core conftest.err conftest.$ac_objext \
33772       conftest$ac_exeext conftest.$ac_ext
33773 fi
33774 ac_res=`eval echo '${'$as_ac_var'}'`
33775                { echo "$as_me:$LINENO: result: $ac_res" >&5
33776 echo "${ECHO_T}$ac_res" >&6; }
33777 if test `eval echo '${'$as_ac_var'}'` = yes; then
33778   cat >>confdefs.h <<_ACEOF
33779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33780 _ACEOF
33781
33782 fi
33783 done
33784
33785 { echo "$as_me:$LINENO: checking for working mmap" >&5
33786 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33787 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33788   echo $ECHO_N "(cached) $ECHO_C" >&6
33789 else
33790   if test "$cross_compiling" = yes; then
33791   ac_cv_func_mmap_fixed_mapped=no
33792 else
33793   cat >conftest.$ac_ext <<_ACEOF
33794 /* confdefs.h.  */
33795 _ACEOF
33796 cat confdefs.h >>conftest.$ac_ext
33797 cat >>conftest.$ac_ext <<_ACEOF
33798 /* end confdefs.h.  */
33799 $ac_includes_default
33800 /* malloc might have been renamed as rpl_malloc. */
33801 #undef malloc
33802
33803 /* Thanks to Mike Haertel and Jim Avera for this test.
33804    Here is a matrix of mmap possibilities:
33805         mmap private not fixed
33806         mmap private fixed at somewhere currently unmapped
33807         mmap private fixed at somewhere already mapped
33808         mmap shared not fixed
33809         mmap shared fixed at somewhere currently unmapped
33810         mmap shared fixed at somewhere already mapped
33811    For private mappings, we should verify that changes cannot be read()
33812    back from the file, nor mmap's back from the file at a different
33813    address.  (There have been systems where private was not correctly
33814    implemented like the infamous i386 svr4.0, and systems where the
33815    VM page cache was not coherent with the file system buffer cache
33816    like early versions of FreeBSD and possibly contemporary NetBSD.)
33817    For shared mappings, we should conversely verify that changes get
33818    propagated back to all the places they're supposed to be.
33819
33820    Grep wants private fixed already mapped.
33821    The main things grep needs to know about mmap are:
33822    * does it exist and is it safe to write into the mmap'd area
33823    * how to use it (BSD variants)  */
33824
33825 #include <fcntl.h>
33826 #include <sys/mman.h>
33827
33828 #if !STDC_HEADERS && !HAVE_STDLIB_H
33829 char *malloc ();
33830 #endif
33831
33832 /* This mess was copied from the GNU getpagesize.h.  */
33833 #if !HAVE_GETPAGESIZE
33834 /* Assume that all systems that can run configure have sys/param.h.  */
33835 # if !HAVE_SYS_PARAM_H
33836 #  define HAVE_SYS_PARAM_H 1
33837 # endif
33838
33839 # ifdef _SC_PAGESIZE
33840 #  define getpagesize() sysconf(_SC_PAGESIZE)
33841 # else /* no _SC_PAGESIZE */
33842 #  if HAVE_SYS_PARAM_H
33843 #   include <sys/param.h>
33844 #   ifdef EXEC_PAGESIZE
33845 #    define getpagesize() EXEC_PAGESIZE
33846 #   else /* no EXEC_PAGESIZE */
33847 #    ifdef NBPG
33848 #     define getpagesize() NBPG * CLSIZE
33849 #     ifndef CLSIZE
33850 #      define CLSIZE 1
33851 #     endif /* no CLSIZE */
33852 #    else /* no NBPG */
33853 #     ifdef NBPC
33854 #      define getpagesize() NBPC
33855 #     else /* no NBPC */
33856 #      ifdef PAGESIZE
33857 #       define getpagesize() PAGESIZE
33858 #      endif /* PAGESIZE */
33859 #     endif /* no NBPC */
33860 #    endif /* no NBPG */
33861 #   endif /* no EXEC_PAGESIZE */
33862 #  else /* no HAVE_SYS_PARAM_H */
33863 #   define getpagesize() 8192   /* punt totally */
33864 #  endif /* no HAVE_SYS_PARAM_H */
33865 # endif /* no _SC_PAGESIZE */
33866
33867 #endif /* no HAVE_GETPAGESIZE */
33868
33869 int
33870 main ()
33871 {
33872   char *data, *data2, *data3;
33873   int i, pagesize;
33874   int fd;
33875
33876   pagesize = getpagesize ();
33877
33878   /* First, make a file with some known garbage in it. */
33879   data = (char *) malloc (pagesize);
33880   if (!data)
33881     return 1;
33882   for (i = 0; i < pagesize; ++i)
33883     *(data + i) = rand ();
33884   umask (0);
33885   fd = creat ("conftest.mmap", 0600);
33886   if (fd < 0)
33887     return 1;
33888   if (write (fd, data, pagesize) != pagesize)
33889     return 1;
33890   close (fd);
33891
33892   /* Next, try to mmap the file at a fixed address which already has
33893      something else allocated at it.  If we can, also make sure that
33894      we see the same garbage.  */
33895   fd = open ("conftest.mmap", O_RDWR);
33896   if (fd < 0)
33897     return 1;
33898   data2 = (char *) malloc (2 * pagesize);
33899   if (!data2)
33900     return 1;
33901   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33902   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33903                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33904     return 1;
33905   for (i = 0; i < pagesize; ++i)
33906     if (*(data + i) != *(data2 + i))
33907       return 1;
33908
33909   /* Finally, make sure that changes to the mapped area do not
33910      percolate back to the file as seen by read().  (This is a bug on
33911      some variants of i386 svr4.0.)  */
33912   for (i = 0; i < pagesize; ++i)
33913     *(data2 + i) = *(data2 + i) + 1;
33914   data3 = (char *) malloc (pagesize);
33915   if (!data3)
33916     return 1;
33917   if (read (fd, data3, pagesize) != pagesize)
33918     return 1;
33919   for (i = 0; i < pagesize; ++i)
33920     if (*(data + i) != *(data3 + i))
33921       return 1;
33922   close (fd);
33923   return 0;
33924 }
33925 _ACEOF
33926 rm -f conftest$ac_exeext
33927 if { (ac_try="$ac_link"
33928 case "(($ac_try" in
33929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930   *) ac_try_echo=$ac_try;;
33931 esac
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933   (eval "$ac_link") 2>&5
33934   ac_status=$?
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33937   { (case "(($ac_try" in
33938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939   *) ac_try_echo=$ac_try;;
33940 esac
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942   (eval "$ac_try") 2>&5
33943   ac_status=$?
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); }; }; then
33946   ac_cv_func_mmap_fixed_mapped=yes
33947 else
33948   echo "$as_me: program exited with status $ac_status" >&5
33949 echo "$as_me: failed program was:" >&5
33950 sed 's/^/| /' conftest.$ac_ext >&5
33951
33952 ( exit $ac_status )
33953 ac_cv_func_mmap_fixed_mapped=no
33954 fi
33955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33956 fi
33957
33958
33959 fi
33960 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33961 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33962 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33963
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_MMAP 1
33966 _ACEOF
33967
33968 fi
33969 rm -f conftest.mmap
33970
33971   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33972 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33973 if test "${ac_cv_func_mmap_file+set}" = set; then
33974   echo $ECHO_N "(cached) $ECHO_C" >&6
33975 else
33976    ac_ext=c
33977 ac_cpp='$CPP $CPPFLAGS'
33978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33981
33982   if test "$cross_compiling" = yes; then
33983   ac_cv_func_mmap_file=no
33984 else
33985   cat >conftest.$ac_ext <<_ACEOF
33986
33987     /* confdefs.h.  */
33988 _ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h.  */
33992
33993 #include <sys/types.h>
33994 #include <sys/mman.h>
33995 #include <fcntl.h>
33996
33997 int
33998 main ()
33999 {
34000
34001   int fd;
34002   fd = creat ("foo",0777);
34003   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34004   unlink ("foo");
34005   return (fd != (int) MAP_FAILED);
34006   ;
34007   return 0;
34008 }
34009 _ACEOF
34010 rm -f conftest$ac_exeext
34011 if { (ac_try="$ac_link"
34012 case "(($ac_try" in
34013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34014   *) ac_try_echo=$ac_try;;
34015 esac
34016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34017   (eval "$ac_link") 2>&5
34018   ac_status=$?
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34021   { (case "(($ac_try" in
34022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023   *) ac_try_echo=$ac_try;;
34024 esac
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026   (eval "$ac_try") 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; }; then
34030   ac_cv_func_mmap_file=yes
34031 else
34032   echo "$as_me: program exited with status $ac_status" >&5
34033 echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34035
34036 ( exit $ac_status )
34037 ac_cv_func_mmap_file=no
34038 fi
34039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34040 fi
34041
34042
34043   ac_ext=c
34044 ac_cpp='$CPP $CPPFLAGS'
34045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34048
34049
34050 fi
34051 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34052 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34053 if test "$ac_cv_func_mmap_file" = yes; then
34054
34055 cat >>confdefs.h <<\_ACEOF
34056 #define HAVE_MMAP_FILE
34057 _ACEOF
34058
34059    MMAP_FILE=yes
34060
34061 fi
34062
34063   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34064 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34065 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34066   echo $ECHO_N "(cached) $ECHO_C" >&6
34067 else
34068   if test "$llvm_cv_os_type" = "Interix" ; then
34069    ac_cv_need_dev_zero_for_mmap=yes
34070  else
34071    ac_cv_need_dev_zero_for_mmap=no
34072  fi
34073
34074 fi
34075 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34076 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34077 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34078
34079 cat >>confdefs.h <<\_ACEOF
34080 #define NEED_DEV_ZERO_FOR_MMAP 1
34081 _ACEOF
34082
34083 fi
34084
34085   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34086   then
34087     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34088 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34089   fi
34090   if test "$ac_cv_func_mmap_file" = "no"
34091   then
34092     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34093 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34094   fi
34095 fi
34096
34097
34098
34099 for ac_func in __dso_handle
34100 do
34101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34105   echo $ECHO_N "(cached) $ECHO_C" >&6
34106 else
34107   cat >conftest.$ac_ext <<_ACEOF
34108 /* confdefs.h.  */
34109 _ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h.  */
34113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34115 #define $ac_func innocuous_$ac_func
34116
34117 /* System header to define __stub macros and hopefully few prototypes,
34118     which can conflict with char $ac_func (); below.
34119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34120     <limits.h> exists even on freestanding compilers.  */
34121
34122 #ifdef __STDC__
34123 # include <limits.h>
34124 #else
34125 # include <assert.h>
34126 #endif
34127
34128 #undef $ac_func
34129
34130 /* Override any GCC internal prototype to avoid an error.
34131    Use char because int might match the return type of a GCC
34132    builtin and then its argument prototype would still apply.  */
34133 #ifdef __cplusplus
34134 extern "C"
34135 #endif
34136 char $ac_func ();
34137 /* The GNU C library defines this for functions which it implements
34138     to always fail with ENOSYS.  Some functions are actually named
34139     something starting with __ and the normal name is an alias.  */
34140 #if defined __stub_$ac_func || defined __stub___$ac_func
34141 choke me
34142 #endif
34143
34144 int
34145 main ()
34146 {
34147 return $ac_func ();
34148   ;
34149   return 0;
34150 }
34151 _ACEOF
34152 rm -f conftest.$ac_objext conftest$ac_exeext
34153 if { (ac_try="$ac_link"
34154 case "(($ac_try" in
34155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156   *) ac_try_echo=$ac_try;;
34157 esac
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159   (eval "$ac_link") 2>conftest.er1
34160   ac_status=$?
34161   grep -v '^ *+' conftest.er1 >conftest.err
34162   rm -f conftest.er1
34163   cat conftest.err >&5
34164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165   (exit $ac_status); } &&
34166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34167   { (case "(($ac_try" in
34168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169   *) ac_try_echo=$ac_try;;
34170 esac
34171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34172   (eval "$ac_try") 2>&5
34173   ac_status=$?
34174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175   (exit $ac_status); }; } &&
34176          { ac_try='test -s conftest$ac_exeext'
34177   { (case "(($ac_try" in
34178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179   *) ac_try_echo=$ac_try;;
34180 esac
34181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182   (eval "$ac_try") 2>&5
34183   ac_status=$?
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); }; }; then
34186   eval "$as_ac_var=yes"
34187 else
34188   echo "$as_me: failed program was:" >&5
34189 sed 's/^/| /' conftest.$ac_ext >&5
34190
34191         eval "$as_ac_var=no"
34192 fi
34193
34194 rm -f core conftest.err conftest.$ac_objext \
34195       conftest$ac_exeext conftest.$ac_ext
34196 fi
34197 ac_res=`eval echo '${'$as_ac_var'}'`
34198                { echo "$as_me:$LINENO: result: $ac_res" >&5
34199 echo "${ECHO_T}$ac_res" >&6; }
34200 if test `eval echo '${'$as_ac_var'}'` = yes; then
34201   cat >>confdefs.h <<_ACEOF
34202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34203 _ACEOF
34204
34205 fi
34206 done
34207
34208
34209 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34210 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34211 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34212   echo $ECHO_N "(cached) $ECHO_C" >&6
34213 else
34214   llvm_cv_llvmgcc_sanity="no"
34215 if test -x "$LLVMGCC" ; then
34216   cp /dev/null conftest.c
34217   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34218       grep 'target datalayout =' > /dev/null 2>&1
34219   if test $? -eq 0 ; then
34220     llvm_cv_llvmgcc_sanity="yes"
34221   fi
34222   rm conftest.c
34223 fi
34224 fi
34225 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34226 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34227
34228 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34229   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34230 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34231   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34232   LLVMCC1=$llvmcc1path
34233
34234   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34235   LLVMCC1PLUS=$llvmcc1pluspath
34236
34237   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34238   LLVMGCCDIR=$llvmgccdir
34239
34240   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34241   LLVMGCCLIBEXEC=$llvmgcclibexec
34242
34243   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34244   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34245   LLVMGCC_VERSION=$llvmgccversion
34246
34247   LLVMGCC_MAJVERS=$llvmgccmajvers
34248
34249   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34250   LLVMGCC_LANGS=$llvmgcclangs
34251
34252   { echo "$as_me:$LINENO: result: ok" >&5
34253 echo "${ECHO_T}ok" >&6; }
34254 fi
34255
34256 SHLIBEXT=$libltdl_cv_shlibext
34257
34258
34259 # Translate the various configuration directories and other basic
34260 # information into substitutions that will end up in Makefile.config.in
34261 # that these configured values can be used by the makefiles
34262 if test "${prefix}" = "NONE" ; then
34263   prefix="/usr/local"
34264 fi
34265 eval LLVM_PREFIX="${prefix}";
34266 eval LLVM_BINDIR="${prefix}/bin";
34267 eval LLVM_LIBDIR="${prefix}/lib";
34268 eval LLVM_DATADIR="${prefix}/share/llvm";
34269 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34270 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34271 eval LLVM_INCLUDEDIR="${prefix}/include";
34272 eval LLVM_INFODIR="${prefix}/info";
34273 eval LLVM_MANDIR="${prefix}/man";
34274 LLVM_CONFIGTIME=`date`
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286 # Place the various directores into the config.h file as #defines so that we
34287 # can know about the installation paths within LLVM.
34288
34289 cat >>confdefs.h <<_ACEOF
34290 #define LLVM_PREFIX "$LLVM_PREFIX"
34291 _ACEOF
34292
34293
34294 cat >>confdefs.h <<_ACEOF
34295 #define LLVM_BINDIR "$LLVM_BINDIR"
34296 _ACEOF
34297
34298
34299 cat >>confdefs.h <<_ACEOF
34300 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34301 _ACEOF
34302
34303
34304 cat >>confdefs.h <<_ACEOF
34305 #define LLVM_DATADIR "$LLVM_DATADIR"
34306 _ACEOF
34307
34308
34309 cat >>confdefs.h <<_ACEOF
34310 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34311 _ACEOF
34312
34313
34314 cat >>confdefs.h <<_ACEOF
34315 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34316 _ACEOF
34317
34318
34319 cat >>confdefs.h <<_ACEOF
34320 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34321 _ACEOF
34322
34323
34324 cat >>confdefs.h <<_ACEOF
34325 #define LLVM_INFODIR "$LLVM_INFODIR"
34326 _ACEOF
34327
34328
34329 cat >>confdefs.h <<_ACEOF
34330 #define LLVM_MANDIR "$LLVM_MANDIR"
34331 _ACEOF
34332
34333
34334 cat >>confdefs.h <<_ACEOF
34335 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34336 _ACEOF
34337
34338
34339 cat >>confdefs.h <<_ACEOF
34340 #define LLVM_HOSTTRIPLE "$host"
34341 _ACEOF
34342
34343
34344 # Determine which bindings to build.
34345 if test "$BINDINGS_TO_BUILD" = auto ; then
34346   BINDINGS_TO_BUILD=""
34347   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34348     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34349   fi
34350 fi
34351 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34352
34353
34354 # This isn't really configurey, but it avoids having to repeat the list in
34355 # other files.
34356 ALL_BINDINGS=ocaml
34357
34358
34359 # Do any work necessary to ensure that bindings have what they need.
34360 binding_prereqs_failed=0
34361 for a_binding in $BINDINGS_TO_BUILD ; do
34362   case "$a_binding" in
34363   ocaml)
34364     if test "x$OCAMLC" = x ; then
34365       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34366 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34367       binding_prereqs_failed=1
34368     fi
34369     if test "x$OCAMLDEP" = x ; then
34370       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34371 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34372       binding_prereqs_failed=1
34373     fi
34374     if test "x$OCAMLOPT" = x ; then
34375       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34376 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34377           fi
34378     if test "x$with_ocaml_libdir" != xauto ; then
34379       OCAML_LIBDIR=$with_ocaml_libdir
34380
34381     else
34382       ocaml_stdlib="`"$OCAMLC" -where`"
34383       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34384       then
34385         # ocaml stdlib is beneath our prefix; use stdlib
34386         OCAML_LIBDIR=$ocaml_stdlib
34387
34388       else
34389         # ocaml stdlib is outside our prefix; use libdir/ocaml
34390         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34391
34392       fi
34393     fi
34394     ;;
34395   esac
34396 done
34397 if test "$binding_prereqs_failed" = 1 ; then
34398   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34399 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34400    { (exit 1); exit 1; }; }
34401 fi
34402
34403 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34404 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34405 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34406   echo $ECHO_N "(cached) $ECHO_C" >&6
34407 else
34408    ac_ext=cpp
34409 ac_cpp='$CXXCPP $CPPFLAGS'
34410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34413
34414   oldcxxflags="$CXXFLAGS"
34415   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34416   cat >conftest.$ac_ext <<_ACEOF
34417 /* confdefs.h.  */
34418 _ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h.  */
34422
34423 int
34424 main ()
34425 {
34426
34427   ;
34428   return 0;
34429 }
34430 _ACEOF
34431 rm -f conftest.$ac_objext
34432 if { (ac_try="$ac_compile"
34433 case "(($ac_try" in
34434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435   *) ac_try_echo=$ac_try;;
34436 esac
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438   (eval "$ac_compile") 2>conftest.er1
34439   ac_status=$?
34440   grep -v '^ *+' conftest.er1 >conftest.err
34441   rm -f conftest.er1
34442   cat conftest.err >&5
34443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444   (exit $ac_status); } &&
34445          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34446   { (case "(($ac_try" in
34447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448   *) ac_try_echo=$ac_try;;
34449 esac
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451   (eval "$ac_try") 2>&5
34452   ac_status=$?
34453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454   (exit $ac_status); }; } &&
34455          { ac_try='test -s conftest.$ac_objext'
34456   { (case "(($ac_try" in
34457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34458   *) ac_try_echo=$ac_try;;
34459 esac
34460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34461   (eval "$ac_try") 2>&5
34462   ac_status=$?
34463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464   (exit $ac_status); }; }; then
34465   llvm_cv_cxx_visibility_inlines_hidden=yes
34466 else
34467   echo "$as_me: failed program was:" >&5
34468 sed 's/^/| /' conftest.$ac_ext >&5
34469
34470         llvm_cv_cxx_visibility_inlines_hidden=no
34471 fi
34472
34473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34474   CXXFLAGS="$oldcxxflags"
34475   ac_ext=c
34476 ac_cpp='$CPP $CPPFLAGS'
34477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34480
34481
34482 fi
34483 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34484 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34485 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34486   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34487
34488 else
34489   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34490
34491 fi
34492
34493
34494
34495 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34496
34497 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34498
34499 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34500
34501 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34502
34503 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34504
34505
34506 ac_config_files="$ac_config_files Makefile.config"
34507
34508
34509 ac_config_files="$ac_config_files llvm.spec"
34510
34511
34512 ac_config_files="$ac_config_files docs/doxygen.cfg"
34513
34514
34515 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34516
34517
34518 ac_config_commands="$ac_config_commands setup"
34519
34520 ac_config_commands="$ac_config_commands Makefile"
34521
34522
34523 ac_config_commands="$ac_config_commands Makefile.common"
34524
34525
34526 ac_config_commands="$ac_config_commands examples/Makefile"
34527
34528
34529 ac_config_commands="$ac_config_commands lib/Makefile"
34530
34531
34532 ac_config_commands="$ac_config_commands runtime/Makefile"
34533
34534
34535 ac_config_commands="$ac_config_commands test/Makefile"
34536
34537
34538 ac_config_commands="$ac_config_commands test/Makefile.tests"
34539
34540
34541 ac_config_commands="$ac_config_commands tools/Makefile"
34542
34543
34544 ac_config_commands="$ac_config_commands utils/Makefile"
34545
34546
34547 ac_config_commands="$ac_config_commands projects/Makefile"
34548
34549
34550 ac_config_commands="$ac_config_commands bindings/Makefile"
34551
34552
34553 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34554
34555
34556
34557 cat >confcache <<\_ACEOF
34558 # This file is a shell script that caches the results of configure
34559 # tests run on this system so they can be shared between configure
34560 # scripts and configure runs, see configure's option --config-cache.
34561 # It is not useful on other systems.  If it contains results you don't
34562 # want to keep, you may remove or edit it.
34563 #
34564 # config.status only pays attention to the cache file if you give it
34565 # the --recheck option to rerun configure.
34566 #
34567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34569 # following values.
34570
34571 _ACEOF
34572
34573 # The following way of writing the cache mishandles newlines in values,
34574 # but we know of no workaround that is simple, portable, and efficient.
34575 # So, we kill variables containing newlines.
34576 # Ultrix sh set writes to stderr and can't be redirected directly,
34577 # and sets the high bit in the cache file unless we assign to the vars.
34578 (
34579   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34580     eval ac_val=\$$ac_var
34581     case $ac_val in #(
34582     *${as_nl}*)
34583       case $ac_var in #(
34584       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34586       esac
34587       case $ac_var in #(
34588       _ | IFS | as_nl) ;; #(
34589       *) $as_unset $ac_var ;;
34590       esac ;;
34591     esac
34592   done
34593
34594   (set) 2>&1 |
34595     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34596     *${as_nl}ac_space=\ *)
34597       # `set' does not quote correctly, so add quotes (double-quote
34598       # substitution turns \\\\ into \\, and sed turns \\ into \).
34599       sed -n \
34600         "s/'/'\\\\''/g;
34601           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34602       ;; #(
34603     *)
34604       # `set' quotes correctly as required by POSIX, so do not add quotes.
34605       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34606       ;;
34607     esac |
34608     sort
34609 ) |
34610   sed '
34611      /^ac_cv_env_/b end
34612      t clear
34613      :clear
34614      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34615      t end
34616      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34617      :end' >>confcache
34618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34619   if test -w "$cache_file"; then
34620     test "x$cache_file" != "x/dev/null" &&
34621       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34622 echo "$as_me: updating cache $cache_file" >&6;}
34623     cat confcache >$cache_file
34624   else
34625     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34626 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34627   fi
34628 fi
34629 rm -f confcache
34630
34631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34632 # Let make expand exec_prefix.
34633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34634
34635 DEFS=-DHAVE_CONFIG_H
34636
34637 ac_libobjs=
34638 ac_ltlibobjs=
34639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34640   # 1. Remove the extension, and $U if already installed.
34641   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34642   ac_i=`echo "$ac_i" | sed "$ac_script"`
34643   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34644   #    will be set to the directory where LIBOBJS objects are built.
34645   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34646   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34647 done
34648 LIBOBJS=$ac_libobjs
34649
34650 LTLIBOBJS=$ac_ltlibobjs
34651
34652
34653 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34654   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34655 Usually this means the macro was only invoked conditionally." >&5
34656 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34657 Usually this means the macro was only invoked conditionally." >&2;}
34658    { (exit 1); exit 1; }; }
34659 fi
34660 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34661   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34662 Usually this means the macro was only invoked conditionally." >&5
34663 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34664 Usually this means the macro was only invoked conditionally." >&2;}
34665    { (exit 1); exit 1; }; }
34666 fi
34667
34668 : ${CONFIG_STATUS=./config.status}
34669 ac_clean_files_save=$ac_clean_files
34670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34673 cat >$CONFIG_STATUS <<_ACEOF
34674 #! $SHELL
34675 # Generated by $as_me.
34676 # Run this file to recreate the current configuration.
34677 # Compiler output produced by configure, useful for debugging
34678 # configure, is in config.log if it exists.
34679
34680 debug=false
34681 ac_cs_recheck=false
34682 ac_cs_silent=false
34683 SHELL=\${CONFIG_SHELL-$SHELL}
34684 _ACEOF
34685
34686 cat >>$CONFIG_STATUS <<\_ACEOF
34687 ## --------------------- ##
34688 ## M4sh Initialization.  ##
34689 ## --------------------- ##
34690
34691 # Be Bourne compatible
34692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34693   emulate sh
34694   NULLCMD=:
34695   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34696   # is contrary to our usage.  Disable this feature.
34697   alias -g '${1+"$@"}'='"$@"'
34698   setopt NO_GLOB_SUBST
34699 else
34700   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34701 fi
34702 BIN_SH=xpg4; export BIN_SH # for Tru64
34703 DUALCASE=1; export DUALCASE # for MKS sh
34704
34705
34706 # PATH needs CR
34707 # Avoid depending upon Character Ranges.
34708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34711 as_cr_digits='0123456789'
34712 as_cr_alnum=$as_cr_Letters$as_cr_digits
34713
34714 # The user is always right.
34715 if test "${PATH_SEPARATOR+set}" != set; then
34716   echo "#! /bin/sh" >conf$$.sh
34717   echo  "exit 0"   >>conf$$.sh
34718   chmod +x conf$$.sh
34719   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34720     PATH_SEPARATOR=';'
34721   else
34722     PATH_SEPARATOR=:
34723   fi
34724   rm -f conf$$.sh
34725 fi
34726
34727 # Support unset when possible.
34728 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34729   as_unset=unset
34730 else
34731   as_unset=false
34732 fi
34733
34734
34735 # IFS
34736 # We need space, tab and new line, in precisely that order.  Quoting is
34737 # there to prevent editors from complaining about space-tab.
34738 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34739 # splitting by setting IFS to empty value.)
34740 as_nl='
34741 '
34742 IFS=" ""        $as_nl"
34743
34744 # Find who we are.  Look in the path if we contain no directory separator.
34745 case $0 in
34746   *[\\/]* ) as_myself=$0 ;;
34747   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34748 for as_dir in $PATH
34749 do
34750   IFS=$as_save_IFS
34751   test -z "$as_dir" && as_dir=.
34752   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34753 done
34754 IFS=$as_save_IFS
34755
34756      ;;
34757 esac
34758 # We did not find ourselves, most probably we were run as `sh COMMAND'
34759 # in which case we are not to be found in the path.
34760 if test "x$as_myself" = x; then
34761   as_myself=$0
34762 fi
34763 if test ! -f "$as_myself"; then
34764   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34765   { (exit 1); exit 1; }
34766 fi
34767
34768 # Work around bugs in pre-3.0 UWIN ksh.
34769 for as_var in ENV MAIL MAILPATH
34770 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34771 done
34772 PS1='$ '
34773 PS2='> '
34774 PS4='+ '
34775
34776 # NLS nuisances.
34777 for as_var in \
34778   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34779   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34780   LC_TELEPHONE LC_TIME
34781 do
34782   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34783     eval $as_var=C; export $as_var
34784   else
34785     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34786   fi
34787 done
34788
34789 # Required to use basename.
34790 if expr a : '\(a\)' >/dev/null 2>&1 &&
34791    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34792   as_expr=expr
34793 else
34794   as_expr=false
34795 fi
34796
34797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34798   as_basename=basename
34799 else
34800   as_basename=false
34801 fi
34802
34803
34804 # Name of the executable.
34805 as_me=`$as_basename -- "$0" ||
34806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34807          X"$0" : 'X\(//\)$' \| \
34808          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34809 echo X/"$0" |
34810     sed '/^.*\/\([^/][^/]*\)\/*$/{
34811             s//\1/
34812             q
34813           }
34814           /^X\/\(\/\/\)$/{
34815             s//\1/
34816             q
34817           }
34818           /^X\/\(\/\).*/{
34819             s//\1/
34820             q
34821           }
34822           s/.*/./; q'`
34823
34824 # CDPATH.
34825 $as_unset CDPATH
34826
34827
34828
34829   as_lineno_1=$LINENO
34830   as_lineno_2=$LINENO
34831   test "x$as_lineno_1" != "x$as_lineno_2" &&
34832   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34833
34834   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34835   # uniformly replaced by the line number.  The first 'sed' inserts a
34836   # line-number line after each line using $LINENO; the second 'sed'
34837   # does the real work.  The second script uses 'N' to pair each
34838   # line-number line with the line containing $LINENO, and appends
34839   # trailing '-' during substitution so that $LINENO is not a special
34840   # case at line end.
34841   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34842   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34843   # E. McMahon (1931-1989) for sed's syntax.  :-)
34844   sed -n '
34845     p
34846     /[$]LINENO/=
34847   ' <$as_myself |
34848     sed '
34849       s/[$]LINENO.*/&-/
34850       t lineno
34851       b
34852       :lineno
34853       N
34854       :loop
34855       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34856       t loop
34857       s/-\n.*//
34858     ' >$as_me.lineno &&
34859   chmod +x "$as_me.lineno" ||
34860     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34861    { (exit 1); exit 1; }; }
34862
34863   # Don't try to exec as it changes $[0], causing all sort of problems
34864   # (the dirname of $[0] is not the place where we might find the
34865   # original and so on.  Autoconf is especially sensitive to this).
34866   . "./$as_me.lineno"
34867   # Exit status is that of the last command.
34868   exit
34869 }
34870
34871
34872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34873   as_dirname=dirname
34874 else
34875   as_dirname=false
34876 fi
34877
34878 ECHO_C= ECHO_N= ECHO_T=
34879 case `echo -n x` in
34880 -n*)
34881   case `echo 'x\c'` in
34882   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34883   *)   ECHO_C='\c';;
34884   esac;;
34885 *)
34886   ECHO_N='-n';;
34887 esac
34888
34889 if expr a : '\(a\)' >/dev/null 2>&1 &&
34890    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34891   as_expr=expr
34892 else
34893   as_expr=false
34894 fi
34895
34896 rm -f conf$$ conf$$.exe conf$$.file
34897 if test -d conf$$.dir; then
34898   rm -f conf$$.dir/conf$$.file
34899 else
34900   rm -f conf$$.dir
34901   mkdir conf$$.dir
34902 fi
34903 echo >conf$$.file
34904 if ln -s conf$$.file conf$$ 2>/dev/null; then
34905   as_ln_s='ln -s'
34906   # ... but there are two gotchas:
34907   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34908   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34909   # In both cases, we have to default to `cp -p'.
34910   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34911     as_ln_s='cp -p'
34912 elif ln conf$$.file conf$$ 2>/dev/null; then
34913   as_ln_s=ln
34914 else
34915   as_ln_s='cp -p'
34916 fi
34917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34918 rmdir conf$$.dir 2>/dev/null
34919
34920 if mkdir -p . 2>/dev/null; then
34921   as_mkdir_p=:
34922 else
34923   test -d ./-p && rmdir ./-p
34924   as_mkdir_p=false
34925 fi
34926
34927 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34928 # systems may use methods other than mode bits to determine executability.
34929 cat >conf$$.file <<_ASEOF
34930 #! /bin/sh
34931 exit 0
34932 _ASEOF
34933 chmod +x conf$$.file
34934 if test -x conf$$.file >/dev/null 2>&1; then
34935   as_executable_p="test -x"
34936 else
34937   as_executable_p=:
34938 fi
34939 rm -f conf$$.file
34940
34941 # Sed expression to map a string onto a valid CPP name.
34942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34943
34944 # Sed expression to map a string onto a valid variable name.
34945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34946
34947
34948 exec 6>&1
34949
34950 # Save the log message, to keep $[0] and so on meaningful, and to
34951 # report actual input values of CONFIG_FILES etc. instead of their
34952 # values after options handling.
34953 ac_log="
34954 This file was extended by llvm $as_me 2.5svn, which was
34955 generated by GNU Autoconf 2.60.  Invocation command line was
34956
34957   CONFIG_FILES    = $CONFIG_FILES
34958   CONFIG_HEADERS  = $CONFIG_HEADERS
34959   CONFIG_LINKS    = $CONFIG_LINKS
34960   CONFIG_COMMANDS = $CONFIG_COMMANDS
34961   $ $0 $@
34962
34963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34964 "
34965
34966 _ACEOF
34967
34968 cat >>$CONFIG_STATUS <<_ACEOF
34969 # Files that config.status was made for.
34970 config_files="$ac_config_files"
34971 config_headers="$ac_config_headers"
34972 config_commands="$ac_config_commands"
34973
34974 _ACEOF
34975
34976 cat >>$CONFIG_STATUS <<\_ACEOF
34977 ac_cs_usage="\
34978 \`$as_me' instantiates files from templates according to the
34979 current configuration.
34980
34981 Usage: $0 [OPTIONS] [FILE]...
34982
34983   -h, --help       print this help, then exit
34984   -V, --version    print version number, then exit
34985   -q, --quiet      do not print progress messages
34986   -d, --debug      don't remove temporary files
34987       --recheck    update $as_me by reconfiguring in the same conditions
34988   --file=FILE[:TEMPLATE]
34989                    instantiate the configuration file FILE
34990   --header=FILE[:TEMPLATE]
34991                    instantiate the configuration header FILE
34992
34993 Configuration files:
34994 $config_files
34995
34996 Configuration headers:
34997 $config_headers
34998
34999 Configuration commands:
35000 $config_commands
35001
35002 Report bugs to <bug-autoconf@gnu.org>."
35003
35004 _ACEOF
35005 cat >>$CONFIG_STATUS <<_ACEOF
35006 ac_cs_version="\\
35007 llvm config.status 2.5svn
35008 configured by $0, generated by GNU Autoconf 2.60,
35009   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35010
35011 Copyright (C) 2006 Free Software Foundation, Inc.
35012 This config.status script is free software; the Free Software Foundation
35013 gives unlimited permission to copy, distribute and modify it."
35014
35015 ac_pwd='$ac_pwd'
35016 srcdir='$srcdir'
35017 INSTALL='$INSTALL'
35018 _ACEOF
35019
35020 cat >>$CONFIG_STATUS <<\_ACEOF
35021 # If no file are specified by the user, then we need to provide default
35022 # value.  By we need to know if files were specified by the user.
35023 ac_need_defaults=:
35024 while test $# != 0
35025 do
35026   case $1 in
35027   --*=*)
35028     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35029     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35030     ac_shift=:
35031     ;;
35032   *)
35033     ac_option=$1
35034     ac_optarg=$2
35035     ac_shift=shift
35036     ;;
35037   esac
35038
35039   case $ac_option in
35040   # Handling of the options.
35041   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35042     ac_cs_recheck=: ;;
35043   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35044     echo "$ac_cs_version"; exit ;;
35045   --debug | --debu | --deb | --de | --d | -d )
35046     debug=: ;;
35047   --file | --fil | --fi | --f )
35048     $ac_shift
35049     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35050     ac_need_defaults=false;;
35051   --header | --heade | --head | --hea )
35052     $ac_shift
35053     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35054     ac_need_defaults=false;;
35055   --he | --h)
35056     # Conflict between --help and --header
35057     { echo "$as_me: error: ambiguous option: $1
35058 Try \`$0 --help' for more information." >&2
35059    { (exit 1); exit 1; }; };;
35060   --help | --hel | -h )
35061     echo "$ac_cs_usage"; exit ;;
35062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35063   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35064     ac_cs_silent=: ;;
35065
35066   # This is an error.
35067   -*) { echo "$as_me: error: unrecognized option: $1
35068 Try \`$0 --help' for more information." >&2
35069    { (exit 1); exit 1; }; } ;;
35070
35071   *) ac_config_targets="$ac_config_targets $1"
35072      ac_need_defaults=false ;;
35073
35074   esac
35075   shift
35076 done
35077
35078 ac_configure_extra_args=
35079
35080 if $ac_cs_silent; then
35081   exec 6>/dev/null
35082   ac_configure_extra_args="$ac_configure_extra_args --silent"
35083 fi
35084
35085 _ACEOF
35086 cat >>$CONFIG_STATUS <<_ACEOF
35087 if \$ac_cs_recheck; then
35088   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35089   CONFIG_SHELL=$SHELL
35090   export CONFIG_SHELL
35091   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35092 fi
35093
35094 _ACEOF
35095 cat >>$CONFIG_STATUS <<\_ACEOF
35096 exec 5>>config.log
35097 {
35098   echo
35099   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35100 ## Running $as_me. ##
35101 _ASBOX
35102   echo "$ac_log"
35103 } >&5
35104
35105 _ACEOF
35106 cat >>$CONFIG_STATUS <<_ACEOF
35107 #
35108 # INIT-COMMANDS
35109 #
35110 llvm_src="${srcdir}"
35111
35112 _ACEOF
35113
35114 cat >>$CONFIG_STATUS <<\_ACEOF
35115
35116 # Handling of arguments.
35117 for ac_config_target in $ac_config_targets
35118 do
35119   case $ac_config_target in
35120     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35121     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35122     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35123     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35124     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35125     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35126     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35127     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35128     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35129     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35130     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35131     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35132     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35133     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35134     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35135     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35136     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35137     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35138     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35139     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35140     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35141     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35142
35143   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35145    { (exit 1); exit 1; }; };;
35146   esac
35147 done
35148
35149
35150 # If the user did not use the arguments to specify the items to instantiate,
35151 # then the envvar interface is used.  Set only those that are not.
35152 # We use the long form for the default assignment because of an extremely
35153 # bizarre bug on SunOS 4.1.3.
35154 if $ac_need_defaults; then
35155   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35156   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35157   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35158 fi
35159
35160 # Have a temporary directory for convenience.  Make it in the build tree
35161 # simply because there is no reason against having it here, and in addition,
35162 # creating and moving files from /tmp can sometimes cause problems.
35163 # Hook for its removal unless debugging.
35164 # Note that there is a small window in which the directory will not be cleaned:
35165 # after its creation but before its name has been assigned to `$tmp'.
35166 $debug ||
35167 {
35168   tmp=
35169   trap 'exit_status=$?
35170   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35171 ' 0
35172   trap '{ (exit 1); exit 1; }' 1 2 13 15
35173 }
35174 # Create a (secure) tmp directory for tmp files.
35175
35176 {
35177   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35178   test -n "$tmp" && test -d "$tmp"
35179 }  ||
35180 {
35181   tmp=./conf$$-$RANDOM
35182   (umask 077 && mkdir "$tmp")
35183 } ||
35184 {
35185    echo "$me: cannot create a temporary directory in ." >&2
35186    { (exit 1); exit 1; }
35187 }
35188
35189 #
35190 # Set up the sed scripts for CONFIG_FILES section.
35191 #
35192
35193 # No need to generate the scripts if there are no CONFIG_FILES.
35194 # This happens for instance when ./config.status config.h
35195 if test -n "$CONFIG_FILES"; then
35196
35197 _ACEOF
35198
35199
35200
35201 ac_delim='%!_!# '
35202 for ac_last_try in false false false false false :; do
35203   cat >conf$$subs.sed <<_ACEOF
35204 SHELL!$SHELL$ac_delim
35205 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35206 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35207 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35208 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35209 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35210 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35211 exec_prefix!$exec_prefix$ac_delim
35212 prefix!$prefix$ac_delim
35213 program_transform_name!$program_transform_name$ac_delim
35214 bindir!$bindir$ac_delim
35215 sbindir!$sbindir$ac_delim
35216 libexecdir!$libexecdir$ac_delim
35217 datarootdir!$datarootdir$ac_delim
35218 datadir!$datadir$ac_delim
35219 sysconfdir!$sysconfdir$ac_delim
35220 sharedstatedir!$sharedstatedir$ac_delim
35221 localstatedir!$localstatedir$ac_delim
35222 includedir!$includedir$ac_delim
35223 oldincludedir!$oldincludedir$ac_delim
35224 docdir!$docdir$ac_delim
35225 infodir!$infodir$ac_delim
35226 htmldir!$htmldir$ac_delim
35227 dvidir!$dvidir$ac_delim
35228 pdfdir!$pdfdir$ac_delim
35229 psdir!$psdir$ac_delim
35230 libdir!$libdir$ac_delim
35231 localedir!$localedir$ac_delim
35232 mandir!$mandir$ac_delim
35233 DEFS!$DEFS$ac_delim
35234 ECHO_C!$ECHO_C$ac_delim
35235 ECHO_N!$ECHO_N$ac_delim
35236 ECHO_T!$ECHO_T$ac_delim
35237 LIBS!$LIBS$ac_delim
35238 build_alias!$build_alias$ac_delim
35239 host_alias!$host_alias$ac_delim
35240 target_alias!$target_alias$ac_delim
35241 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35242 subdirs!$subdirs$ac_delim
35243 build!$build$ac_delim
35244 build_cpu!$build_cpu$ac_delim
35245 build_vendor!$build_vendor$ac_delim
35246 build_os!$build_os$ac_delim
35247 host!$host$ac_delim
35248 host_cpu!$host_cpu$ac_delim
35249 host_vendor!$host_vendor$ac_delim
35250 host_os!$host_os$ac_delim
35251 target!$target$ac_delim
35252 target_cpu!$target_cpu$ac_delim
35253 target_vendor!$target_vendor$ac_delim
35254 target_os!$target_os$ac_delim
35255 OS!$OS$ac_delim
35256 LINKALL!$LINKALL$ac_delim
35257 NOLINKALL!$NOLINKALL$ac_delim
35258 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35259 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35260 ARCH!$ARCH$ac_delim
35261 ENDIAN!$ENDIAN$ac_delim
35262 CC!$CC$ac_delim
35263 CFLAGS!$CFLAGS$ac_delim
35264 LDFLAGS!$LDFLAGS$ac_delim
35265 CPPFLAGS!$CPPFLAGS$ac_delim
35266 ac_ct_CC!$ac_ct_CC$ac_delim
35267 EXEEXT!$EXEEXT$ac_delim
35268 OBJEXT!$OBJEXT$ac_delim
35269 CPP!$CPP$ac_delim
35270 GREP!$GREP$ac_delim
35271 EGREP!$EGREP$ac_delim
35272 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35273 BUILD_CC!$BUILD_CC$ac_delim
35274 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35275 BUILD_CXX!$BUILD_CXX$ac_delim
35276 CVSBUILD!$CVSBUILD$ac_delim
35277 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35278 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35279 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35280 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35281 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35282 JIT!$JIT$ac_delim
35283 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35284 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35285 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35286 ENABLE_PIC!$ENABLE_PIC$ac_delim
35287 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35288 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35289 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35290 CXX!$CXX$ac_delim
35291 CXXFLAGS!$CXXFLAGS$ac_delim
35292 ac_ct_CXX!$ac_ct_CXX$ac_delim
35293 LEX!$LEX$ac_delim
35294 LEXLIB!$LEXLIB$ac_delim
35295 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35296 FLEX!$FLEX$ac_delim
35297 YACC!$YACC$ac_delim
35298 YFLAGS!$YFLAGS$ac_delim
35299 BISON!$BISON$ac_delim
35300 NM!$NM$ac_delim
35301 _ACEOF
35302
35303   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35304     break
35305   elif $ac_last_try; then
35306     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35307 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35308    { (exit 1); exit 1; }; }
35309   else
35310     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35311   fi
35312 done
35313
35314 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35315 if test -n "$ac_eof"; then
35316   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35317   ac_eof=`expr $ac_eof + 1`
35318 fi
35319
35320 cat >>$CONFIG_STATUS <<_ACEOF
35321 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35323 _ACEOF
35324 sed '
35325 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35326 s/^/s,@/; s/!/@,|#_!!_#|/
35327 :n
35328 t n
35329 s/'"$ac_delim"'$/,g/; t
35330 s/$/\\/; p
35331 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35332 ' >>$CONFIG_STATUS <conf$$subs.sed
35333 rm -f conf$$subs.sed
35334 cat >>$CONFIG_STATUS <<_ACEOF
35335 CEOF$ac_eof
35336 _ACEOF
35337
35338
35339 ac_delim='%!_!# '
35340 for ac_last_try in false false false false false :; do
35341   cat >conf$$subs.sed <<_ACEOF
35342 ifGNUmake!$ifGNUmake$ac_delim
35343 LN_S!$LN_S$ac_delim
35344 CMP!$CMP$ac_delim
35345 CP!$CP$ac_delim
35346 DATE!$DATE$ac_delim
35347 FIND!$FIND$ac_delim
35348 MKDIR!$MKDIR$ac_delim
35349 MV!$MV$ac_delim
35350 RANLIB!$RANLIB$ac_delim
35351 RM!$RM$ac_delim
35352 SED!$SED$ac_delim
35353 TAR!$TAR$ac_delim
35354 BINPWD!$BINPWD$ac_delim
35355 GRAPHVIZ!$GRAPHVIZ$ac_delim
35356 DOT!$DOT$ac_delim
35357 GV!$GV$ac_delim
35358 DOTTY!$DOTTY$ac_delim
35359 PERL!$PERL$ac_delim
35360 HAVE_PERL!$HAVE_PERL$ac_delim
35361 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35362 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35363 INSTALL_DATA!$INSTALL_DATA$ac_delim
35364 BZIP2!$BZIP2$ac_delim
35365 DOXYGEN!$DOXYGEN$ac_delim
35366 GROFF!$GROFF$ac_delim
35367 GZIP!$GZIP$ac_delim
35368 POD2HTML!$POD2HTML$ac_delim
35369 POD2MAN!$POD2MAN$ac_delim
35370 RUNTEST!$RUNTEST$ac_delim
35371 TCLSH!$TCLSH$ac_delim
35372 ZIP!$ZIP$ac_delim
35373 OCAMLC!$OCAMLC$ac_delim
35374 OCAMLOPT!$OCAMLOPT$ac_delim
35375 OCAMLDEP!$OCAMLDEP$ac_delim
35376 OCAMLDOC!$OCAMLDOC$ac_delim
35377 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35378 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35379 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35380 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35381 LIBADD_DL!$LIBADD_DL$ac_delim
35382 ECHO!$ECHO$ac_delim
35383 AR!$AR$ac_delim
35384 STRIP!$STRIP$ac_delim
35385 CXXCPP!$CXXCPP$ac_delim
35386 F77!$F77$ac_delim
35387 FFLAGS!$FFLAGS$ac_delim
35388 ac_ct_F77!$ac_ct_F77$ac_delim
35389 LIBTOOL!$LIBTOOL$ac_delim
35390 LLVMGCC!$LLVMGCC$ac_delim
35391 LLVMGXX!$LLVMGXX$ac_delim
35392 USE_UDIS86!$USE_UDIS86$ac_delim
35393 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35394 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35395 ALLOCA!$ALLOCA$ac_delim
35396 MMAP_FILE!$MMAP_FILE$ac_delim
35397 LLVMCC1!$LLVMCC1$ac_delim
35398 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35399 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35400 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35401 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35402 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35403 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35404 SHLIBEXT!$SHLIBEXT$ac_delim
35405 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35406 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35407 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35408 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35409 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35410 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35411 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35412 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35413 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35414 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35415 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35416 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35417 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35418 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35419 LIBOBJS!$LIBOBJS$ac_delim
35420 LTLIBOBJS!$LTLIBOBJS$ac_delim
35421 _ACEOF
35422
35423   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35424     break
35425   elif $ac_last_try; then
35426     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35428    { (exit 1); exit 1; }; }
35429   else
35430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35431   fi
35432 done
35433
35434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35435 if test -n "$ac_eof"; then
35436   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35437   ac_eof=`expr $ac_eof + 1`
35438 fi
35439
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35443 _ACEOF
35444 sed '
35445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35446 s/^/s,@/; s/!/@,|#_!!_#|/
35447 :n
35448 t n
35449 s/'"$ac_delim"'$/,g/; t
35450 s/$/\\/; p
35451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35452 ' >>$CONFIG_STATUS <conf$$subs.sed
35453 rm -f conf$$subs.sed
35454 cat >>$CONFIG_STATUS <<_ACEOF
35455 :end
35456 s/|#_!!_#|//g
35457 CEOF$ac_eof
35458 _ACEOF
35459
35460
35461 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35462 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35463 # trailing colons and then remove the whole line if VPATH becomes empty
35464 # (actually we leave an empty line to preserve line numbers).
35465 if test "x$srcdir" = x.; then
35466   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35467 s/:*\$(srcdir):*/:/
35468 s/:*\${srcdir}:*/:/
35469 s/:*@srcdir@:*/:/
35470 s/^\([^=]*=[     ]*\):*/\1/
35471 s/:*$//
35472 s/^[^=]*=[       ]*$//
35473 }'
35474 fi
35475
35476 cat >>$CONFIG_STATUS <<\_ACEOF
35477 fi # test -n "$CONFIG_FILES"
35478
35479
35480 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35481 do
35482   case $ac_tag in
35483   :[FHLC]) ac_mode=$ac_tag; continue;;
35484   esac
35485   case $ac_mode$ac_tag in
35486   :[FHL]*:*);;
35487   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35488 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35489    { (exit 1); exit 1; }; };;
35490   :[FH]-) ac_tag=-:-;;
35491   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35492   esac
35493   ac_save_IFS=$IFS
35494   IFS=:
35495   set x $ac_tag
35496   IFS=$ac_save_IFS
35497   shift
35498   ac_file=$1
35499   shift
35500
35501   case $ac_mode in
35502   :L) ac_source=$1;;
35503   :[FH])
35504     ac_file_inputs=
35505     for ac_f
35506     do
35507       case $ac_f in
35508       -) ac_f="$tmp/stdin";;
35509       *) # Look for the file first in the build tree, then in the source tree
35510          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35511          # because $ac_f cannot contain `:'.
35512          test -f "$ac_f" ||
35513            case $ac_f in
35514            [\\/$]*) false;;
35515            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35516            esac ||
35517            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35518 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35519    { (exit 1); exit 1; }; };;
35520       esac
35521       ac_file_inputs="$ac_file_inputs $ac_f"
35522     done
35523
35524     # Let's still pretend it is `configure' which instantiates (i.e., don't
35525     # use $as_me), people would be surprised to read:
35526     #    /* config.h.  Generated by config.status.  */
35527     configure_input="Generated from "`IFS=:
35528           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35529     if test x"$ac_file" != x-; then
35530       configure_input="$ac_file.  $configure_input"
35531       { echo "$as_me:$LINENO: creating $ac_file" >&5
35532 echo "$as_me: creating $ac_file" >&6;}
35533     fi
35534
35535     case $ac_tag in
35536     *:-:* | *:-) cat >"$tmp/stdin";;
35537     esac
35538     ;;
35539   esac
35540
35541   ac_dir=`$as_dirname -- "$ac_file" ||
35542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35543          X"$ac_file" : 'X\(//\)[^/]' \| \
35544          X"$ac_file" : 'X\(//\)$' \| \
35545          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35546 echo X"$ac_file" |
35547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35548             s//\1/
35549             q
35550           }
35551           /^X\(\/\/\)[^/].*/{
35552             s//\1/
35553             q
35554           }
35555           /^X\(\/\/\)$/{
35556             s//\1/
35557             q
35558           }
35559           /^X\(\/\).*/{
35560             s//\1/
35561             q
35562           }
35563           s/.*/./; q'`
35564   { as_dir="$ac_dir"
35565   case $as_dir in #(
35566   -*) as_dir=./$as_dir;;
35567   esac
35568   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35569     as_dirs=
35570     while :; do
35571       case $as_dir in #(
35572       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35573       *) as_qdir=$as_dir;;
35574       esac
35575       as_dirs="'$as_qdir' $as_dirs"
35576       as_dir=`$as_dirname -- "$as_dir" ||
35577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35578          X"$as_dir" : 'X\(//\)[^/]' \| \
35579          X"$as_dir" : 'X\(//\)$' \| \
35580          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35581 echo X"$as_dir" |
35582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35583             s//\1/
35584             q
35585           }
35586           /^X\(\/\/\)[^/].*/{
35587             s//\1/
35588             q
35589           }
35590           /^X\(\/\/\)$/{
35591             s//\1/
35592             q
35593           }
35594           /^X\(\/\).*/{
35595             s//\1/
35596             q
35597           }
35598           s/.*/./; q'`
35599       test -d "$as_dir" && break
35600     done
35601     test -z "$as_dirs" || eval "mkdir $as_dirs"
35602   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35603 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35604    { (exit 1); exit 1; }; }; }
35605   ac_builddir=.
35606
35607 case "$ac_dir" in
35608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35609 *)
35610   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35611   # A ".." for each directory in $ac_dir_suffix.
35612   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35613   case $ac_top_builddir_sub in
35614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35616   esac ;;
35617 esac
35618 ac_abs_top_builddir=$ac_pwd
35619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35620 # for backward compatibility:
35621 ac_top_builddir=$ac_top_build_prefix
35622
35623 case $srcdir in
35624   .)  # We are building in place.
35625     ac_srcdir=.
35626     ac_top_srcdir=$ac_top_builddir_sub
35627     ac_abs_top_srcdir=$ac_pwd ;;
35628   [\\/]* | ?:[\\/]* )  # Absolute name.
35629     ac_srcdir=$srcdir$ac_dir_suffix;
35630     ac_top_srcdir=$srcdir
35631     ac_abs_top_srcdir=$srcdir ;;
35632   *) # Relative name.
35633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35634     ac_top_srcdir=$ac_top_build_prefix$srcdir
35635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35636 esac
35637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35638
35639
35640   case $ac_mode in
35641   :F)
35642   #
35643   # CONFIG_FILE
35644   #
35645
35646   case $INSTALL in
35647   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35648   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35649   esac
35650 _ACEOF
35651
35652 cat >>$CONFIG_STATUS <<\_ACEOF
35653 # If the template does not know about datarootdir, expand it.
35654 # FIXME: This hack should be removed a few years after 2.60.
35655 ac_datarootdir_hack=; ac_datarootdir_seen=
35656
35657 case `sed -n '/datarootdir/ {
35658   p
35659   q
35660 }
35661 /@datadir@/p
35662 /@docdir@/p
35663 /@infodir@/p
35664 /@localedir@/p
35665 /@mandir@/p
35666 ' $ac_file_inputs` in
35667 *datarootdir*) ac_datarootdir_seen=yes;;
35668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35669   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35670 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35671 _ACEOF
35672 cat >>$CONFIG_STATUS <<_ACEOF
35673   ac_datarootdir_hack='
35674   s&@datadir@&$datadir&g
35675   s&@docdir@&$docdir&g
35676   s&@infodir@&$infodir&g
35677   s&@localedir@&$localedir&g
35678   s&@mandir@&$mandir&g
35679     s&\\\${datarootdir}&$datarootdir&g' ;;
35680 esac
35681 _ACEOF
35682
35683 # Neutralize VPATH when `$srcdir' = `.'.
35684 # Shell code in configure.ac might set extrasub.
35685 # FIXME: do we really want to maintain this feature?
35686 cat >>$CONFIG_STATUS <<_ACEOF
35687   sed "$ac_vpsub
35688 $extrasub
35689 _ACEOF
35690 cat >>$CONFIG_STATUS <<\_ACEOF
35691 :t
35692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35693 s&@configure_input@&$configure_input&;t t
35694 s&@top_builddir@&$ac_top_builddir_sub&;t t
35695 s&@srcdir@&$ac_srcdir&;t t
35696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35697 s&@top_srcdir@&$ac_top_srcdir&;t t
35698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35699 s&@builddir@&$ac_builddir&;t t
35700 s&@abs_builddir@&$ac_abs_builddir&;t t
35701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35702 s&@INSTALL@&$ac_INSTALL&;t t
35703 $ac_datarootdir_hack
35704 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35705
35706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35707   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35708   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35709   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35710 which seems to be undefined.  Please make sure it is defined." >&5
35711 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35712 which seems to be undefined.  Please make sure it is defined." >&2;}
35713
35714   rm -f "$tmp/stdin"
35715   case $ac_file in
35716   -) cat "$tmp/out"; rm -f "$tmp/out";;
35717   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35718   esac
35719  ;;
35720   :H)
35721   #
35722   # CONFIG_HEADER
35723   #
35724 _ACEOF
35725
35726 # Transform confdefs.h into a sed script `conftest.defines', that
35727 # substitutes the proper values into config.h.in to produce config.h.
35728 rm -f conftest.defines conftest.tail
35729 # First, append a space to every undef/define line, to ease matching.
35730 echo 's/$/ /' >conftest.defines
35731 # Then, protect against being on the right side of a sed subst, or in
35732 # an unquoted here document, in config.status.  If some macros were
35733 # called several times there might be several #defines for the same
35734 # symbol, which is useless.  But do not sort them, since the last
35735 # AC_DEFINE must be honored.
35736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35737 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35738 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35739 # PARAMS is the parameter list in the macro definition--in most cases, it's
35740 # just an empty string.
35741 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35742 ac_dB='\\)[      (].*,\\1define\\2'
35743 ac_dC=' '
35744 ac_dD=' ,'
35745
35746 uniq confdefs.h |
35747   sed -n '
35748         t rset
35749         :rset
35750         s/^[     ]*#[    ]*define[       ][      ]*//
35751         t ok
35752         d
35753         :ok
35754         s/[\\&,]/\\&/g
35755         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35756         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35757   ' >>conftest.defines
35758
35759 # Remove the space that was appended to ease matching.
35760 # Then replace #undef with comments.  This is necessary, for
35761 # example, in the case of _POSIX_SOURCE, which is predefined and required
35762 # on some systems where configure will not decide to define it.
35763 # (The regexp can be short, since the line contains either #define or #undef.)
35764 echo 's/ $//
35765 s,^[     #]*u.*,/* & */,' >>conftest.defines
35766
35767 # Break up conftest.defines:
35768 ac_max_sed_lines=50
35769
35770 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35771 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35772 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35773 # et cetera.
35774 ac_in='$ac_file_inputs'
35775 ac_out='"$tmp/out1"'
35776 ac_nxt='"$tmp/out2"'
35777
35778 while :
35779 do
35780   # Write a here document:
35781     cat >>$CONFIG_STATUS <<_ACEOF
35782     # First, check the format of the line:
35783     cat >"\$tmp/defines.sed" <<\\CEOF
35784 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35785 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35786 b
35787 :def
35788 _ACEOF
35789   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35790   echo 'CEOF
35791     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35792   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35793   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35794   grep . conftest.tail >/dev/null || break
35795   rm -f conftest.defines
35796   mv conftest.tail conftest.defines
35797 done
35798 rm -f conftest.defines conftest.tail
35799
35800 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35801 cat >>$CONFIG_STATUS <<\_ACEOF
35802   if test x"$ac_file" != x-; then
35803     echo "/* $configure_input  */" >"$tmp/config.h"
35804     cat "$ac_result" >>"$tmp/config.h"
35805     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35806       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35807 echo "$as_me: $ac_file is unchanged" >&6;}
35808     else
35809       rm -f $ac_file
35810       mv "$tmp/config.h" $ac_file
35811     fi
35812   else
35813     echo "/* $configure_input  */"
35814     cat "$ac_result"
35815   fi
35816   rm -f "$tmp/out12"
35817  ;;
35818
35819   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35820 echo "$as_me: executing $ac_file commands" >&6;}
35821  ;;
35822   esac
35823
35824
35825   case $ac_file$ac_mode in
35826     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35827    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35828     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35829    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35830     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35831    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35832     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35833    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35834     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35835    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35836     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35837    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35838     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35839    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35840     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35841    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35842     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35843    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35844     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35845    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35846     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35847    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35848     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35849    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35850
35851   esac
35852 done # for ac_tag
35853
35854
35855 { (exit 0); exit 0; }
35856 _ACEOF
35857 chmod +x $CONFIG_STATUS
35858 ac_clean_files=$ac_clean_files_save
35859
35860
35861 # configure is writing to config.log, and then calls config.status.
35862 # config.status does its own redirection, appending to config.log.
35863 # Unfortunately, on DOS this fails, as config.log is still kept open
35864 # by configure, so config.status won't be able to write to it; its
35865 # output is simply discarded.  So we exec the FD to /dev/null,
35866 # effectively closing config.log, so it can be properly (re)opened and
35867 # appended to by config.status.  When coming back to configure, we
35868 # need to make the FD available again.
35869 if test "$no_create" != yes; then
35870   ac_cs_success=:
35871   ac_config_status_args=
35872   test "$silent" = yes &&
35873     ac_config_status_args="$ac_config_status_args --quiet"
35874   exec 5>/dev/null
35875   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35876   exec 5>>config.log
35877   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35878   # would make configure fail if this is the last instruction.
35879   $ac_cs_success || { (exit 1); exit 1; }
35880 fi
35881
35882 #
35883 # CONFIG_SUBDIRS section.
35884 #
35885 if test "$no_recursion" != yes; then
35886
35887   # Remove --cache-file and --srcdir arguments so they do not pile up.
35888   ac_sub_configure_args=
35889   ac_prev=
35890   eval "set x $ac_configure_args"
35891   shift
35892   for ac_arg
35893   do
35894     if test -n "$ac_prev"; then
35895       ac_prev=
35896       continue
35897     fi
35898     case $ac_arg in
35899     -cache-file | --cache-file | --cache-fil | --cache-fi \
35900     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35901       ac_prev=cache_file ;;
35902     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35903     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35904     | --c=*)
35905       ;;
35906     --config-cache | -C)
35907       ;;
35908     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35909       ac_prev=srcdir ;;
35910     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35911       ;;
35912     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35913       ac_prev=prefix ;;
35914     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35915       ;;
35916     *)
35917       case $ac_arg in
35918       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35919       esac
35920       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35921     esac
35922   done
35923
35924   # Always prepend --prefix to ensure using the same prefix
35925   # in subdir configurations.
35926   ac_arg="--prefix=$prefix"
35927   case $ac_arg in
35928   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35929   esac
35930   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35931
35932   ac_popdir=`pwd`
35933   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35934
35935     # Do not complain, so a configure script can configure whichever
35936     # parts of a large source tree are present.
35937     test -d "$srcdir/$ac_dir" || continue
35938
35939     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35940     echo "$as_me:$LINENO: $ac_msg" >&5
35941     echo "$ac_msg" >&6
35942     { as_dir="$ac_dir"
35943   case $as_dir in #(
35944   -*) as_dir=./$as_dir;;
35945   esac
35946   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35947     as_dirs=
35948     while :; do
35949       case $as_dir in #(
35950       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35951       *) as_qdir=$as_dir;;
35952       esac
35953       as_dirs="'$as_qdir' $as_dirs"
35954       as_dir=`$as_dirname -- "$as_dir" ||
35955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35956          X"$as_dir" : 'X\(//\)[^/]' \| \
35957          X"$as_dir" : 'X\(//\)$' \| \
35958          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35959 echo X"$as_dir" |
35960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35961             s//\1/
35962             q
35963           }
35964           /^X\(\/\/\)[^/].*/{
35965             s//\1/
35966             q
35967           }
35968           /^X\(\/\/\)$/{
35969             s//\1/
35970             q
35971           }
35972           /^X\(\/\).*/{
35973             s//\1/
35974             q
35975           }
35976           s/.*/./; q'`
35977       test -d "$as_dir" && break
35978     done
35979     test -z "$as_dirs" || eval "mkdir $as_dirs"
35980   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35981 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35982    { (exit 1); exit 1; }; }; }
35983     ac_builddir=.
35984
35985 case "$ac_dir" in
35986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35987 *)
35988   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35989   # A ".." for each directory in $ac_dir_suffix.
35990   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35991   case $ac_top_builddir_sub in
35992   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35993   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35994   esac ;;
35995 esac
35996 ac_abs_top_builddir=$ac_pwd
35997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35998 # for backward compatibility:
35999 ac_top_builddir=$ac_top_build_prefix
36000
36001 case $srcdir in
36002   .)  # We are building in place.
36003     ac_srcdir=.
36004     ac_top_srcdir=$ac_top_builddir_sub
36005     ac_abs_top_srcdir=$ac_pwd ;;
36006   [\\/]* | ?:[\\/]* )  # Absolute name.
36007     ac_srcdir=$srcdir$ac_dir_suffix;
36008     ac_top_srcdir=$srcdir
36009     ac_abs_top_srcdir=$srcdir ;;
36010   *) # Relative name.
36011     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36012     ac_top_srcdir=$ac_top_build_prefix$srcdir
36013     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36014 esac
36015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36016
36017
36018     cd "$ac_dir"
36019
36020     # Check for guested configure; otherwise get Cygnus style configure.
36021     if test -f "$ac_srcdir/configure.gnu"; then
36022       ac_sub_configure=$ac_srcdir/configure.gnu
36023     elif test -f "$ac_srcdir/configure"; then
36024       ac_sub_configure=$ac_srcdir/configure
36025     elif test -f "$ac_srcdir/configure.in"; then
36026       # This should be Cygnus configure.
36027       ac_sub_configure=$ac_aux_dir/configure
36028     else
36029       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36031       ac_sub_configure=
36032     fi
36033
36034     # The recursion is here.
36035     if test -n "$ac_sub_configure"; then
36036       # Make the cache file name correct relative to the subdirectory.
36037       case $cache_file in
36038       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36039       *) # Relative name.
36040         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36041       esac
36042
36043       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36044 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36045       # The eval makes quoting arguments work.
36046       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36047            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36048         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36049 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36050    { (exit 1); exit 1; }; }
36051     fi
36052
36053     cd "$ac_popdir"
36054   done
36055 fi
36056