Regenerate.
[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.0cvs.
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-2005 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.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
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 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 DEBUG_RUNTIME
834 JIT
835 TARGET_HAS_JIT
836 ENABLE_DOXYGEN
837 ENABLE_THREADS
838 TARGETS_TO_BUILD
839 ENABLE_CBE_PRINTF_A
840 EXTRA_OPTIONS
841 CXX
842 CXXFLAGS
843 ac_ct_CXX
844 LEX
845 LEXLIB
846 LEX_OUTPUT_ROOT
847 FLEX
848 YACC
849 YFLAGS
850 BISON
851 NM
852 ifGNUmake
853 LN_S
854 CMP
855 CP
856 DATE
857 FIND
858 MKDIR
859 MV
860 RANLIB
861 RM
862 SED
863 TAR
864 BINPWD
865 GRAPHVIZ
866 DOT
867 GV
868 DOTTY
869 PERL
870 HAVE_PERL
871 INSTALL_PROGRAM
872 INSTALL_SCRIPT
873 INSTALL_DATA
874 BZIP2
875 DOXYGEN
876 GROFF
877 GZIP
878 POD2HTML
879 POD2MAN
880 RUNTEST
881 TCLSH
882 ZIP
883 INSTALL_LTDL_TRUE
884 INSTALL_LTDL_FALSE
885 CONVENIENCE_LTDL_TRUE
886 CONVENIENCE_LTDL_FALSE
887 LIBADD_DL
888 ECHO
889 AR
890 STRIP
891 CXXCPP
892 F77
893 FFLAGS
894 ac_ct_F77
895 LIBTOOL
896 ETAGSFLAGS
897 LLVMGCC
898 LLVMGXX
899 HAVE_PTHREAD
900 HUGE_VAL_SANITY
901 ALLOCA
902 MMAP_FILE
903 LLVMCC1
904 LLVMCC1PLUS
905 LLVMGCCDIR
906 LLVMGCC_VERSION
907 LLVMGCC_MAJVERS
908 SHLIBEXT
909 LLVM_PREFIX
910 LLVM_BINDIR
911 LLVM_LIBDIR
912 LLVM_DATADIR
913 LLVM_DOCSDIR
914 LLVM_ETCDIR
915 LLVM_INCLUDEDIR
916 LLVM_INFODIR
917 LLVM_MANDIR
918 LLVM_CONFIGTIME
919 LIBOBJS
920 LTLIBOBJS'
921 ac_subst_files=''
922       ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 CPPFLAGS
929 CPP
930 CXX
931 CXXFLAGS
932 CCC
933 YACC
934 YFLAGS
935 CXXCPP
936 F77
937 FFLAGS'
938 ac_subdirs_all='projects/sample
939 projects/Stacker
940 projects/privbracket
941 projects/llvm-test
942 projects/llvm-reopt
943 projects/llvm-gcc
944 projects/llvm-java
945 projects/llvm-tv
946 projects/llvm-poolalloc
947 projects/llvm-kernel'
948
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999   # If the previous option needs an argument, assign it.
1000   if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004   fi
1005
1006   case $ac_option in
1007   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008   *)    ac_optarg=yes ;;
1009   esac
1010
1011   # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013   case $ac_dashdash$ac_option in
1014   --)
1015     ac_dashdash=yes ;;
1016
1017   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018     ac_prev=bindir ;;
1019   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020     bindir=$ac_optarg ;;
1021
1022   -build | --build | --buil | --bui | --bu)
1023     ac_prev=build_alias ;;
1024   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025     build_alias=$ac_optarg ;;
1026
1027   -cache-file | --cache-file | --cache-fil | --cache-fi \
1028   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029     ac_prev=cache_file ;;
1030   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032     cache_file=$ac_optarg ;;
1033
1034   --config-cache | -C)
1035     cache_file=config.cache ;;
1036
1037   -datadir | --datadir | --datadi | --datad)
1038     ac_prev=datadir ;;
1039   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040     datadir=$ac_optarg ;;
1041
1042   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043   | --dataroo | --dataro | --datar)
1044     ac_prev=datarootdir ;;
1045   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047     datarootdir=$ac_optarg ;;
1048
1049   -disable-* | --disable-*)
1050     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1053       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054    { (exit 1); exit 1; }; }
1055     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1056     eval enable_$ac_feature=no ;;
1057
1058   -docdir | --docdir | --docdi | --doc | --do)
1059     ac_prev=docdir ;;
1060   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061     docdir=$ac_optarg ;;
1062
1063   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064     ac_prev=dvidir ;;
1065   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066     dvidir=$ac_optarg ;;
1067
1068   -enable-* | --enable-*)
1069     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1072       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073    { (exit 1); exit 1; }; }
1074     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1075     eval enable_$ac_feature=\$ac_optarg ;;
1076
1077   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079   | --exec | --exe | --ex)
1080     ac_prev=exec_prefix ;;
1081   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083   | --exec=* | --exe=* | --ex=*)
1084     exec_prefix=$ac_optarg ;;
1085
1086   -gas | --gas | --ga | --g)
1087     # Obsolete; use --with-gas.
1088     with_gas=yes ;;
1089
1090   -help | --help | --hel | --he | -h)
1091     ac_init_help=long ;;
1092   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093     ac_init_help=recursive ;;
1094   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095     ac_init_help=short ;;
1096
1097   -host | --host | --hos | --ho)
1098     ac_prev=host_alias ;;
1099   -host=* | --host=* | --hos=* | --ho=*)
1100     host_alias=$ac_optarg ;;
1101
1102   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103     ac_prev=htmldir ;;
1104   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105   | --ht=*)
1106     htmldir=$ac_optarg ;;
1107
1108   -includedir | --includedir | --includedi | --included | --include \
1109   | --includ | --inclu | --incl | --inc)
1110     ac_prev=includedir ;;
1111   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112   | --includ=* | --inclu=* | --incl=* | --inc=*)
1113     includedir=$ac_optarg ;;
1114
1115   -infodir | --infodir | --infodi | --infod | --info | --inf)
1116     ac_prev=infodir ;;
1117   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118     infodir=$ac_optarg ;;
1119
1120   -libdir | --libdir | --libdi | --libd)
1121     ac_prev=libdir ;;
1122   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123     libdir=$ac_optarg ;;
1124
1125   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126   | --libexe | --libex | --libe)
1127     ac_prev=libexecdir ;;
1128   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129   | --libexe=* | --libex=* | --libe=*)
1130     libexecdir=$ac_optarg ;;
1131
1132   -localedir | --localedir | --localedi | --localed | --locale)
1133     ac_prev=localedir ;;
1134   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135     localedir=$ac_optarg ;;
1136
1137   -localstatedir | --localstatedir | --localstatedi | --localstated \
1138   | --localstate | --localstat | --localsta | --localst | --locals)
1139     ac_prev=localstatedir ;;
1140   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142     localstatedir=$ac_optarg ;;
1143
1144   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145     ac_prev=mandir ;;
1146   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147     mandir=$ac_optarg ;;
1148
1149   -nfp | --nfp | --nf)
1150     # Obsolete; use --without-fp.
1151     with_fp=no ;;
1152
1153   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154   | --no-cr | --no-c | -n)
1155     no_create=yes ;;
1156
1157   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159     no_recursion=yes ;;
1160
1161   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163   | --oldin | --oldi | --old | --ol | --o)
1164     ac_prev=oldincludedir ;;
1165   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168     oldincludedir=$ac_optarg ;;
1169
1170   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171     ac_prev=prefix ;;
1172   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173     prefix=$ac_optarg ;;
1174
1175   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176   | --program-pre | --program-pr | --program-p)
1177     ac_prev=program_prefix ;;
1178   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180     program_prefix=$ac_optarg ;;
1181
1182   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183   | --program-suf | --program-su | --program-s)
1184     ac_prev=program_suffix ;;
1185   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187     program_suffix=$ac_optarg ;;
1188
1189   -program-transform-name | --program-transform-name \
1190   | --program-transform-nam | --program-transform-na \
1191   | --program-transform-n | --program-transform- \
1192   | --program-transform | --program-transfor \
1193   | --program-transfo | --program-transf \
1194   | --program-trans | --program-tran \
1195   | --progr-tra | --program-tr | --program-t)
1196     ac_prev=program_transform_name ;;
1197   -program-transform-name=* | --program-transform-name=* \
1198   | --program-transform-nam=* | --program-transform-na=* \
1199   | --program-transform-n=* | --program-transform-=* \
1200   | --program-transform=* | --program-transfor=* \
1201   | --program-transfo=* | --program-transf=* \
1202   | --program-trans=* | --program-tran=* \
1203   | --progr-tra=* | --program-tr=* | --program-t=*)
1204     program_transform_name=$ac_optarg ;;
1205
1206   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207     ac_prev=pdfdir ;;
1208   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209     pdfdir=$ac_optarg ;;
1210
1211   -psdir | --psdir | --psdi | --psd | --ps)
1212     ac_prev=psdir ;;
1213   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214     psdir=$ac_optarg ;;
1215
1216   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217   | -silent | --silent | --silen | --sile | --sil)
1218     silent=yes ;;
1219
1220   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221     ac_prev=sbindir ;;
1222   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223   | --sbi=* | --sb=*)
1224     sbindir=$ac_optarg ;;
1225
1226   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228   | --sharedst | --shareds | --shared | --share | --shar \
1229   | --sha | --sh)
1230     ac_prev=sharedstatedir ;;
1231   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234   | --sha=* | --sh=*)
1235     sharedstatedir=$ac_optarg ;;
1236
1237   -site | --site | --sit)
1238     ac_prev=site ;;
1239   -site=* | --site=* | --sit=*)
1240     site=$ac_optarg ;;
1241
1242   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243     ac_prev=srcdir ;;
1244   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245     srcdir=$ac_optarg ;;
1246
1247   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248   | --syscon | --sysco | --sysc | --sys | --sy)
1249     ac_prev=sysconfdir ;;
1250   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252     sysconfdir=$ac_optarg ;;
1253
1254   -target | --target | --targe | --targ | --tar | --ta | --t)
1255     ac_prev=target_alias ;;
1256   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257     target_alias=$ac_optarg ;;
1258
1259   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260     verbose=yes ;;
1261
1262   -version | --version | --versio | --versi | --vers | -V)
1263     ac_init_version=: ;;
1264
1265   -with-* | --with-*)
1266     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267     # Reject names that are not valid shell variable names.
1268     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1269       { echo "$as_me: error: invalid package name: $ac_package" >&2
1270    { (exit 1); exit 1; }; }
1271     ac_package=`echo $ac_package| sed 's/-/_/g'`
1272     eval with_$ac_package=\$ac_optarg ;;
1273
1274   -without-* | --without-*)
1275     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278       { echo "$as_me: error: invalid package name: $ac_package" >&2
1279    { (exit 1); exit 1; }; }
1280     ac_package=`echo $ac_package | sed 's/-/_/g'`
1281     eval with_$ac_package=no ;;
1282
1283   --x)
1284     # Obsolete; use --with-x.
1285     with_x=yes ;;
1286
1287   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288   | --x-incl | --x-inc | --x-in | --x-i)
1289     ac_prev=x_includes ;;
1290   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292     x_includes=$ac_optarg ;;
1293
1294   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296     ac_prev=x_libraries ;;
1297   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299     x_libraries=$ac_optarg ;;
1300
1301   -*) { echo "$as_me: error: unrecognized option: $ac_option
1302 Try \`$0 --help' for more information." >&2
1303    { (exit 1); exit 1; }; }
1304     ;;
1305
1306   *=*)
1307     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308     # Reject names that are not valid shell variable names.
1309     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1310       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1311    { (exit 1); exit 1; }; }
1312     eval $ac_envvar=\$ac_optarg
1313     export $ac_envvar ;;
1314
1315   *)
1316     # FIXME: should be removed in autoconf 3.0.
1317     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321     ;;
1322
1323   esac
1324 done
1325
1326 if test -n "$ac_prev"; then
1327   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328   { echo "$as_me: error: missing argument to $ac_option" >&2
1329    { (exit 1); exit 1; }; }
1330 fi
1331
1332 # Be sure to have absolute directory names.
1333 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334                 datadir sysconfdir sharedstatedir localstatedir includedir \
1335                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336                 libdir localedir mandir
1337 do
1338   eval ac_val=\$$ac_var
1339   case $ac_val in
1340     [\\/$]* | ?:[\\/]* )  continue;;
1341     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342   esac
1343   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1344    { (exit 1); exit 1; }; }
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356   if test "x$build_alias" = x; then
1357     cross_compiling=maybe
1358     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359     If a cross compiler is detected then cross compile mode will be used." >&2
1360   elif test "x$build_alias" != "x$host_alias"; then
1361     cross_compiling=yes
1362   fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374   { echo "$as_me: error: Working directory cannot be determined" >&2
1375    { (exit 1); exit 1; }; }
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377   { echo "$as_me: error: pwd does not report name of working directory" >&2
1378    { (exit 1); exit 1; }; }
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383   ac_srcdir_defaulted=yes
1384   # Try the directory containing this script, then the parent directory.
1385   ac_confdir=`$as_dirname -- "$0" ||
1386 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387          X"$0" : 'X\(//\)[^/]' \| \
1388          X"$0" : 'X\(//\)$' \| \
1389          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1390 echo X"$0" |
1391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)[^/].*/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\).*/{
1404             s//\1/
1405             q
1406           }
1407           s/.*/./; q'`
1408   srcdir=$ac_confdir
1409   if test ! -r "$srcdir/$ac_unique_file"; then
1410     srcdir=..
1411   fi
1412 else
1413   ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1418    { (exit 1); exit 1; }; }
1419 fi
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1423    { (exit 1); exit 1; }; }
1424         pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427   srcdir=.
1428 fi
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 for ac_var in $ac_precious_vars; do
1436   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_env_${ac_var}_value=\$${ac_var}
1438   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 done
1441
1442 #
1443 # Report the --help message.
1444 #
1445 if test "$ac_init_help" = "long"; then
1446   # Omit some internal or obsolete options to make the list less imposing.
1447   # This message is too long to be a string in the A/UX 3.1 sh.
1448   cat <<_ACEOF
1449 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1450
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE.  See below for descriptions of some of the useful variables.
1455
1456 Defaults for the options are specified in brackets.
1457
1458 Configuration:
1459   -h, --help              display this help and exit
1460       --help=short        display options specific to this package
1461       --help=recursive    display the short help of all the included packages
1462   -V, --version           display version information and exit
1463   -q, --quiet, --silent   do not print \`checking...' messages
1464       --cache-file=FILE   cache test results in FILE [disabled]
1465   -C, --config-cache      alias for \`--cache-file=config.cache'
1466   -n, --no-create         do not create output files
1467       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1468
1469 Installation directories:
1470   --prefix=PREFIX         install architecture-independent files in PREFIX
1471                           [$ac_default_prefix]
1472   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1473                           [PREFIX]
1474
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1479
1480 For better control, use the options below.
1481
1482 Fine tuning of the installation directories:
1483   --bindir=DIR           user executables [EPREFIX/bin]
1484   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1485   --libexecdir=DIR       program executables [EPREFIX/libexec]
1486   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1487   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1488   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1489   --libdir=DIR           object code libraries [EPREFIX/lib]
1490   --includedir=DIR       C header files [PREFIX/include]
1491   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1492   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1493   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1494   --infodir=DIR          info documentation [DATAROOTDIR/info]
1495   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1496   --mandir=DIR           man documentation [DATAROOTDIR/man]
1497   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1498   --htmldir=DIR          html documentation [DOCDIR]
1499   --dvidir=DIR           dvi documentation [DOCDIR]
1500   --pdfdir=DIR           pdf documentation [DOCDIR]
1501   --psdir=DIR            ps documentation [DOCDIR]
1502 _ACEOF
1503
1504   cat <<\_ACEOF
1505
1506 System types:
1507   --build=BUILD     configure for building on BUILD [guessed]
1508   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509   --target=TARGET   configure for building compilers for TARGET [HOST]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514   case $ac_init_help in
1515      short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1516    esac
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522   --enable-optimized
1523   --enable-assertions
1524   --enable-debug-runtime
1525   --enable-jit            Enable Just In Time Compiling (default is YES)
1526   --enable-doxygen        Build doxygen documentation (default is NO)
1527   --enable-threads        Use threads if available (default is YES)
1528   --enable-targets        Build specific host targets:
1529                           all,host-only,{target-name} (default=all)
1530   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1531                           %a (default is YES)
1532   --enable-ltdl-install   install libltdl
1533   --enable-shared[=PKGS]  build shared libraries
1534                           [default=enable_shared_default]
1535   --enable-static[=PKGS]  build static libraries
1536                           [default=enable_static_default]
1537   --enable-fast-install[=PKGS]
1538                           optimize for fast installation
1539                           [default=enable_Fast_install_default]
1540   --disable-libtool-lock  avoid locking (might break parallel builds)
1541
1542 Optional Packages:
1543   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1544   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1545   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1546                           searches PATH)
1547   --with-extra-options    Specify addtional options to compile LLVM with
1548   --with-tclinclude       directory where tcl headers are
1549   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1550   --with-pic              try to use only PIC/non-PIC objects [default=use
1551                           both]
1552   --with-tags[=TAGS]      include additional configurations [automatic]
1553
1554 Some influential environment variables:
1555   CC          C compiler command
1556   CFLAGS      C compiler flags
1557   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1558               nonstandard directory <lib dir>
1559   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560               you have headers in a nonstandard directory <include dir>
1561   CPP         C preprocessor
1562   CXX         C++ compiler command
1563   CXXFLAGS    C++ compiler flags
1564   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1565               the first program found out of: `bison -y', `byacc', `yacc'.
1566   YFLAGS      The list of arguments that will be passed by default to $YACC.
1567               This script will default YFLAGS to the empty string to avoid a
1568               default value of `-d' given by some make applications.
1569   CXXCPP      C++ preprocessor
1570   F77         Fortran 77 compiler command
1571   FFLAGS      Fortran 77 compiler flags
1572
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1575
1576 Report bugs to <llvmbugs@cs.uiuc.edu>.
1577 _ACEOF
1578 ac_status=$?
1579 fi
1580
1581 if test "$ac_init_help" = "recursive"; then
1582   # If there are subdirs, report their specific --help.
1583   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584     test -d "$ac_dir" || continue
1585     ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1591   # A ".." for each directory in $ac_dir_suffix.
1592   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593   case $ac_top_builddir_sub in
1594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596   esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604   .)  # We are building in place.
1605     ac_srcdir=.
1606     ac_top_srcdir=$ac_top_builddir_sub
1607     ac_abs_top_srcdir=$ac_pwd ;;
1608   [\\/]* | ?:[\\/]* )  # Absolute name.
1609     ac_srcdir=$srcdir$ac_dir_suffix;
1610     ac_top_srcdir=$srcdir
1611     ac_abs_top_srcdir=$srcdir ;;
1612   *) # Relative name.
1613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614     ac_top_srcdir=$ac_top_build_prefix$srcdir
1615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619     cd "$ac_dir" || { ac_status=$?; continue; }
1620     # Check for guested configure.
1621     if test -f "$ac_srcdir/configure.gnu"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624     elif test -f "$ac_srcdir/configure"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure" --help=recursive
1627     else
1628       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629     fi || ac_status=$?
1630     cd "$ac_pwd" || { ac_status=$?; break; }
1631   done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636   cat <<\_ACEOF
1637 llvm configure 2.0cvs
1638 generated by GNU Autoconf 2.60
1639
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644
1645 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1646 _ACEOF
1647   exit
1648 fi
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1652
1653 It was created by llvm $as_me 2.0cvs, which was
1654 generated by GNU Autoconf 2.60.  Invocation command line was
1655
1656   $ $0 $@
1657
1658 _ACEOF
1659 exec 5>>config.log
1660 {
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1665
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1674
1675 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1676 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1679 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1680 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1681 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1682
1683 _ASUNAME
1684
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1693
1694 } >&5
1695
1696 cat >&5 <<_ACEOF
1697
1698
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1702
1703 _ACEOF
1704
1705
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1716 do
1717   for ac_arg
1718   do
1719     case $ac_arg in
1720     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722     | -silent | --silent | --silen | --sile | --sil)
1723       continue ;;
1724     *\'*)
1725       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726     esac
1727     case $ac_pass in
1728     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729     2)
1730       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731       if test $ac_must_keep_next = true; then
1732         ac_must_keep_next=false # Got value, back to normal.
1733       else
1734         case $ac_arg in
1735           *=* | --config-cache | -C | -disable-* | --disable-* \
1736           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738           | -with-* | --with-* | -without-* | --without-* | --x)
1739             case "$ac_configure_args0 " in
1740               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741             esac
1742             ;;
1743           -* ) ac_must_keep_next=true ;;
1744         esac
1745       fi
1746       ac_configure_args="$ac_configure_args '$ac_arg'"
1747       ;;
1748     esac
1749   done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log.  We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760   # Save into config.log some information that might help in debugging.
1761   {
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769     echo
1770     # The following way of writing the cache mishandles newlines in values,
1771 (
1772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773     eval ac_val=\$$ac_var
1774     case $ac_val in #(
1775     *${as_nl}*)
1776       case $ac_var in #(
1777       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779       esac
1780       case $ac_var in #(
1781       _ | IFS | as_nl) ;; #(
1782       *) $as_unset $ac_var ;;
1783       esac ;;
1784     esac
1785   done
1786   (set) 2>&1 |
1787     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788     *${as_nl}ac_space=\ *)
1789       sed -n \
1790         "s/'\''/'\''\\\\'\'''\''/g;
1791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792       ;; #(
1793     *)
1794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795       ;;
1796     esac |
1797     sort
1798 )
1799     echo
1800
1801     cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806     echo
1807     for ac_var in $ac_subst_vars
1808     do
1809       eval ac_val=\$$ac_var
1810       case $ac_val in
1811       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812       esac
1813       echo "$ac_var='\''$ac_val'\''"
1814     done | sort
1815     echo
1816
1817     if test -n "$ac_subst_files"; then
1818       cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823       echo
1824       for ac_var in $ac_subst_files
1825       do
1826         eval ac_val=\$$ac_var
1827         case $ac_val in
1828         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829         esac
1830         echo "$ac_var='\''$ac_val'\''"
1831       done | sort
1832       echo
1833     fi
1834
1835     if test -s confdefs.h; then
1836       cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841       echo
1842       cat confdefs.h
1843       echo
1844     fi
1845     test "$ac_signal" != 0 &&
1846       echo "$as_me: caught signal $ac_signal"
1847     echo "$as_me: exit $exit_status"
1848   } >&5
1849   rm -f core *.core core.conftest.* &&
1850     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851     exit $exit_status
1852 ' 0
1853 for ac_signal in 1 2 13 15; do
1854   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1857
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1860
1861 # Predefined preprocessor variables.
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1886
1887
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891   set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 else
1895   set x "$ac_default_prefix/share/config.site" \
1896         "$ac_default_prefix/etc/config.site"
1897 fi
1898 shift
1899 for ac_site_file
1900 do
1901   if test -r "$ac_site_file"; then
1902     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904     sed 's/^/| /' "$ac_site_file" >&5
1905     . "$ac_site_file"
1906   fi
1907 done
1908
1909 if test -r "$cache_file"; then
1910   # Some versions of bash will fail to source /dev/null (special
1911   # files actually), so we avoid doing that.
1912   if test -f "$cache_file"; then
1913     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1915     case $cache_file in
1916       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917       *)                      . "./$cache_file";;
1918     esac
1919   fi
1920 else
1921   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1923   >$cache_file
1924 fi
1925
1926 # Check that the precious variables saved in the cache have kept the same
1927 # value.
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931   eval ac_new_set=\$ac_env_${ac_var}_set
1932   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933   eval ac_new_val=\$ac_env_${ac_var}_value
1934   case $ac_old_set,$ac_new_set in
1935     set,)
1936       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938       ac_cache_corrupted=: ;;
1939     ,set)
1940       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942       ac_cache_corrupted=: ;;
1943     ,);;
1944     *)
1945       if test "x$ac_old_val" != "x$ac_new_val"; then
1946         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1949 echo "$as_me:   former value:  $ac_old_val" >&2;}
1950         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1951 echo "$as_me:   current value: $ac_new_val" >&2;}
1952         ac_cache_corrupted=:
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999 ac_ext=c
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
2005
2006
2007 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2008
2009
2010
2011
2012
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in autoconf "$srcdir"/autoconf; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2033 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 if test ${srcdir} != "." ; then
2048   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2049     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2050 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2051    { (exit 1); exit 1; }; }
2052   fi
2053 fi
2054
2055 for i in `ls ${srcdir}/projects`
2056 do
2057   if test -d ${srcdir}/projects/${i} ; then
2058     case ${i} in
2059       "CVS") ;;
2060       "sample")       subdirs="$subdirs projects/sample"
2061     ;;
2062       "Stacker")      subdirs="$subdirs projects/Stacker"
2063    ;;
2064       "privbracket")  subdirs="$subdirs projects/privbracket"
2065  ;;
2066       "llvm-test")    subdirs="$subdirs projects/llvm-test"
2067  ;;
2068       "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2069 ;;
2070       "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2071   ;;
2072       "llvm-java")    subdirs="$subdirs projects/llvm-java"
2073  ;;
2074       "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2075    ;;
2076       "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2077  ;;
2078       "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2079  ;;
2080       *)
2081         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2082 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2083         ;;
2084     esac
2085   fi
2086 done
2087
2088
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093    { (exit 1); exit 1; }; }
2094
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   ac_build_alias=$build_alias
2101 test "x$ac_build_alias" = x &&
2102   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x &&
2104   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106    { (exit 1); exit 1; }; }
2107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 build=$ac_cv_build
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_build
2124 shift
2125 build_cpu=$1
2126 build_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 build_os=$*
2131 IFS=$ac_save_IFS
2132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2133
2134
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test "x$host_alias" = x; then
2141   ac_cv_host=$ac_cv_build
2142 else
2143   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146    { (exit 1); exit 1; }; }
2147 fi
2148
2149 fi
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2152 case $ac_cv_host in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156    { (exit 1); exit 1; }; };;
2157 esac
2158 host=$ac_cv_host
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_host
2161 shift
2162 host_cpu=$1
2163 host_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 host_os=$*
2168 IFS=$ac_save_IFS
2169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2170
2171
2172 { echo "$as_me:$LINENO: checking target system type" >&5
2173 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_target+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test "x$target_alias" = x; then
2178   ac_cv_target=$ac_cv_host
2179 else
2180   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2181     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186 fi
2187 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2188 echo "${ECHO_T}$ac_cv_target" >&6; }
2189 case $ac_cv_target in
2190 *-*-*) ;;
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2192 echo "$as_me: error: invalid value of canonical target" >&2;}
2193    { (exit 1); exit 1; }; };;
2194 esac
2195 target=$ac_cv_target
2196 ac_save_IFS=$IFS; IFS='-'
2197 set x $ac_cv_target
2198 shift
2199 target_cpu=$1
2200 target_vendor=$2
2201 shift; shift
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2204 target_os=$*
2205 IFS=$ac_save_IFS
2206 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2207
2208
2209 # The aliases save the names the user supplied, while $host etc.
2210 # will get canonicalized.
2211 test -n "$target_alias" &&
2212   test "$program_prefix$program_suffix$program_transform_name" = \
2213     NONENONEs,x,x, &&
2214   program_prefix=${target_alias}-
2215
2216 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2217 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2218 if test "${llvm_cv_os_type+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   case $host in
2222   *-*-aix*)
2223     llvm_cv_link_all_option="-Wl,--whole-archive"
2224     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225     llvm_cv_os_type="AIX"
2226     llvm_cv_platform_type="Unix" ;;
2227   *-*-irix*)
2228     llvm_cv_link_all_option="-Wl,--whole-archive"
2229     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230     llvm_cv_os_type="IRIX"
2231     llvm_cv_platform_type="Unix" ;;
2232   *-*-cygwin*)
2233     llvm_cv_link_all_option="-Wl,--whole-archive"
2234     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235     llvm_cv_os_type="Cygwin"
2236     llvm_cv_platform_type="Unix" ;;
2237   *-*-darwin*)
2238     llvm_cv_link_all_option="-Wl,-all_load"
2239     llvm_cv_link_all_option="-Wl,-noall_load"
2240     llvm_cv_os_type="Darwin"
2241     llvm_cv_platform_type="Unix" ;;
2242   *-*-freebsd*)
2243     llvm_cv_link_all_option="-Wl,--whole-archive"
2244     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245     llvm_cv_os_type="FreeBSD"
2246     llvm_cv_platform_type="Unix" ;;
2247   *-*-openbsd*)
2248     llvm_cv_link_all_option="-Wl,--whole-archive"
2249     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250     llvm_cv_os_type="OpenBSD"
2251     llvm_cv_platform_type="Unix" ;;
2252   *-*-hpux*)
2253     llvm_cv_link_all_option="-Wl,--whole-archive"
2254     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255     llvm_cv_os_type="HP-UX"
2256     llvm_cv_platform_type="Unix" ;;
2257   *-*-interix*)
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="Interix"
2261     llvm_cv_platform_type="Unix" ;;
2262   *-*-linux*)
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="Linux"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-solaris*)
2268     llvm_cv_link_all_option="-Wl,-z,allextract"
2269     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2270     llvm_cv_os_type="SunOS"
2271     llvm_cv_platform_type="Unix" ;;
2272   *-*-win32*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="Win32"
2276     llvm_cv_platform_type="Win32" ;;
2277   *-*-mingw*)
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="MingW"
2281     llvm_cv_platform_type="Win32" ;;
2282   *)
2283     llvm_cv_link_all_option=""
2284     llvm_cv_no_link_all_option=""
2285     llvm_cv_os_type="Unknown"
2286     llvm_cv_platform_type="Unknown" ;;
2287 esac
2288 fi
2289 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2290 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2291
2292 if test "$llvm_cv_os_type" = "Unknown" ; then
2293   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2294 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2295    { (exit 1); exit 1; }; }
2296 fi
2297
2298 OS=$llvm_cv_os_type
2299
2300
2301 LINKALL=$llvm_cv_link_all_option
2302
2303 NOLINKALL=$llvm_cv_no_link_all_option
2304
2305
2306 case $llvm_cv_platform_type in
2307   Unix)
2308
2309 cat >>confdefs.h <<\_ACEOF
2310 #define LLVM_ON_UNIX 1
2311 _ACEOF
2312
2313     LLVM_ON_UNIX=1
2314
2315     LLVM_ON_WIN32=0
2316
2317     ;;
2318   Win32)
2319
2320 cat >>confdefs.h <<\_ACEOF
2321 #define LLVM_ON_WIN32 1
2322 _ACEOF
2323
2324     LLVM_ON_UNIX=0
2325
2326     LLVM_ON_WIN32=1
2327
2328     ;;
2329 esac
2330
2331 { echo "$as_me:$LINENO: checking target architecture" >&5
2332 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2333 if test "${llvm_cv_target_arch+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   case $target in
2337   i?86-*)                 llvm_cv_target_arch="x86" ;;
2338   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2339   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2340   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2341   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2342   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2343   *)                      llvm_cv_target_arch="Unknown" ;;
2344 esac
2345 fi
2346 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2347 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2348
2349 if test "$llvm_cv_target_arch" = "Unknown" ; then
2350   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2351 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2352 fi
2353
2354 ARCH=$llvm_cv_target_arch
2355
2356
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 if test -n "$ac_tool_prefix"; then
2363   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392   { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2394 else
2395   { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399
2400 fi
2401 if test -z "$ac_cv_prog_CC"; then
2402   ac_ct_CC=$CC
2403   # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$ac_ct_CC"; then
2411   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     ac_cv_prog_ac_ct_CC="gcc"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2434 else
2435   { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439   if test "x$ac_ct_CC" = x; then
2440     CC=""
2441   else
2442     case $cross_compiling:$ac_tool_warned in
2443 yes:)
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet.  If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet.  If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2451 esac
2452     CC=$ac_ct_CC
2453   fi
2454 else
2455   CC="$ac_cv_prog_CC"
2456 fi
2457
2458 if test -z "$CC"; then
2459           if test -n "$ac_tool_prefix"; then
2460     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$CC"; then
2468   ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_CC="${ac_tool_prefix}cc"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489   { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2491 else
2492   { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2494 fi
2495
2496
2497   fi
2498 fi
2499 if test -z "$CC"; then
2500   # Extract the first word of "cc", so it can be a program name with args.
2501 set dummy cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510   ac_prog_rejected=no
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2518     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519        ac_prog_rejected=yes
2520        continue
2521      fi
2522     ac_cv_prog_CC="cc"
2523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 if test $ac_prog_rejected = yes; then
2531   # We found a bogon in the path, so make sure we never use it.
2532   set dummy $ac_cv_prog_CC
2533   shift
2534   if test $# != 0; then
2535     # We chose a different compiler from the bogus one.
2536     # However, it has the same basename, so the bogon will be chosen
2537     # first if we set CC to just the basename; use the full file name.
2538     shift
2539     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2540   fi
2541 fi
2542 fi
2543 fi
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546   { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2548 else
2549   { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2551 fi
2552
2553
2554 fi
2555 if test -z "$CC"; then
2556   if test -n "$ac_tool_prefix"; then
2557   for ac_prog in cl.exe
2558   do
2559     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   if test -n "$CC"; then
2567   ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572   IFS=$as_save_IFS
2573   test -z "$as_dir" && as_dir=.
2574   for ac_exec_ext in '' $ac_executable_extensions; do
2575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2576     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578     break 2
2579   fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585 fi
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588   { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2590 else
2591   { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2593 fi
2594
2595
2596     test -n "$CC" && break
2597   done
2598 fi
2599 if test -z "$CC"; then
2600   ac_ct_CC=$CC
2601   for ac_prog in cl.exe
2602 do
2603   # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   if test -n "$ac_ct_CC"; then
2611   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618   for ac_exec_ext in '' $ac_executable_extensions; do
2619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2620     ac_cv_prog_ac_ct_CC="$ac_prog"
2621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 else
2635   { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2637 fi
2638
2639
2640   test -n "$ac_ct_CC" && break
2641 done
2642
2643   if test "x$ac_ct_CC" = x; then
2644     CC=""
2645   else
2646     case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet.  If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet.  If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656     CC=$ac_ct_CC
2657   fi
2658 fi
2659
2660 fi
2661
2662
2663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667    { (exit 1); exit 1; }; }
2668
2669 # Provide some information about the compiler.
2670 echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (ac_try="$ac_compiler --version >&5"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678   (eval "$ac_compiler --version >&5") 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2683 case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688   (eval "$ac_compiler -v >&5") 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692 { (ac_try="$ac_compiler -V >&5"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compiler -V >&5") 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }
2702
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709
2710 int
2711 main ()
2712 {
2713
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2722 # of exeext.
2723 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2726 #
2727 # List of possible output files, starting from the most likely.
2728 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2729 # only as a last resort.  b.out is created by i960 compilers.
2730 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2731 #
2732 # The IRIX 6 linker writes into existing files which may not be
2733 # executable, retaining their permissions.  Remove them first so a
2734 # subsequent execution test works.
2735 ac_rmfiles=
2736 for ac_file in $ac_files
2737 do
2738   case $ac_file in
2739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741   esac
2742 done
2743 rm -f $ac_rmfiles
2744
2745 if { (ac_try="$ac_link_default"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_link_default") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; then
2755   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2759 # Autoconf.
2760 for ac_file in $ac_files
2761 do
2762   test -f "$ac_file" || continue
2763   case $ac_file in
2764     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2765         ;;
2766     [ab].out )
2767         # We found the default executable, but exeext='' is most
2768         # certainly right.
2769         break;;
2770     *.* )
2771         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772         then :; else
2773            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774         fi
2775         # We set ac_cv_exeext here because the later test for it is not
2776         # safe: cross compilers may not add the suffix if given an `-o'
2777         # argument, so we may need to know it at that point already.
2778         # Even if this section looks crufty: it has the advantage of
2779         # actually working.
2780         break;;
2781     * )
2782         break;;
2783   esac
2784 done
2785 test "$ac_cv_exeext" = no && ac_cv_exeext=
2786
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&2;}
2795    { (exit 77); exit 77; }; }
2796 fi
2797
2798 ac_exeext=$ac_cv_exeext
2799 { echo "$as_me:$LINENO: result: $ac_file" >&5
2800 echo "${ECHO_T}$ac_file" >&6; }
2801
2802 # Check that the compiler produces executables we can run.  If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807 # If not cross compiling, check that we can run a simple program.
2808 if test "$cross_compiling" != yes; then
2809   if { ac_try='./$ac_file'
2810   { (case "(($ac_try" in
2811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812   *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815   (eval "$ac_try") 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819     cross_compiling=no
2820   else
2821     if test "$cross_compiling" = maybe; then
2822         cross_compiling=yes
2823     else
2824         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&2;}
2830    { (exit 1); exit 1; }; }
2831     fi
2832   fi
2833 fi
2834 { echo "$as_me:$LINENO: result: yes" >&5
2835 echo "${ECHO_T}yes" >&6; }
2836
2837 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 # Check that the compiler produces executables we can run.  If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844 echo "${ECHO_T}$cross_compiling" >&6; }
2845
2846 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848 if { (ac_try="$ac_link"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_link") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; then
2858   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 # `rm'.
2862 for ac_file in conftest.exe conftest conftest.*; do
2863   test -f "$ac_file" || continue
2864   case $ac_file in
2865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2866     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867           break;;
2868     * ) break;;
2869   esac
2870 done
2871 else
2872   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876    { (exit 1); exit 1; }; }
2877 fi
2878
2879 rm -f conftest$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2882
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2885 ac_exeext=$EXEEXT
2886 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897
2898 int
2899 main ()
2900 {
2901
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_compile") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; then
2917   for ac_file in conftest.o conftest.obj conftest.*; do
2918   test -f "$ac_file" || continue;
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2921     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2922        break;;
2923   esac
2924 done
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&2;}
2933    { (exit 1); exit 1; }; }
2934 fi
2935
2936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937 fi
2938 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939 echo "${ECHO_T}$ac_cv_objext" >&6; }
2940 OBJEXT=$ac_cv_objext
2941 ac_objext=$OBJEXT
2942 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953
2954 int
2955 main ()
2956 {
2957 #ifndef __GNUC__
2958        choke me
2959 #endif
2960
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (ac_try="$ac_compile"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compile") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } &&
2979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2980   { (case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_try") 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; } &&
2989          { ac_try='test -s conftest.$ac_objext'
2990   { (case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_try") 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; }; then
2999   ac_compiler_gnu=yes
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004         ac_compiler_gnu=no
3005 fi
3006
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3009
3010 fi
3011 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3012 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3013 GCC=`test $ac_compiler_gnu = yes && echo yes`
3014 ac_test_CFLAGS=${CFLAGS+set}
3015 ac_save_CFLAGS=$CFLAGS
3016 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3018 if test "${ac_cv_prog_cc_g+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   ac_save_c_werror_flag=$ac_c_werror_flag
3022    ac_c_werror_flag=yes
3023    ac_cv_prog_cc_g=no
3024    CFLAGS="-g"
3025    cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031
3032 int
3033 main ()
3034 {
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } &&
3054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055   { (case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_try") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; } &&
3064          { ac_try='test -s conftest.$ac_objext'
3065   { (case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_try") 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; }; then
3074   ac_cv_prog_cc_g=yes
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079         CFLAGS=""
3080       cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_try") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   :
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134         ac_c_werror_flag=$ac_save_c_werror_flag
3135          CFLAGS="-g"
3136          cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_compile") 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3166   { (case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_try") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; } &&
3175          { ac_try='test -s conftest.$ac_objext'
3176   { (case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_try") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; }; then
3185   ac_cv_prog_cc_g=yes
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200    ac_c_werror_flag=$ac_save_c_werror_flag
3201 fi
3202 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3204 if test "$ac_test_CFLAGS" = set; then
3205   CFLAGS=$ac_save_CFLAGS
3206 elif test $ac_cv_prog_cc_g = yes; then
3207   if test "$GCC" = yes; then
3208     CFLAGS="-g -O2"
3209   else
3210     CFLAGS="-g"
3211   fi
3212 else
3213   if test "$GCC" = yes; then
3214     CFLAGS="-O2"
3215   else
3216     CFLAGS=
3217   fi
3218 fi
3219 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3220 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_cc_c89+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   ac_cv_prog_cc_c89=no
3225 ac_save_CC=$CC
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h.  */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h.  */
3232 #include <stdarg.h>
3233 #include <stdio.h>
3234 #include <sys/types.h>
3235 #include <sys/stat.h>
3236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3237 struct buf { int x; };
3238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239 static char *e (p, i)
3240      char **p;
3241      int i;
3242 {
3243   return p[i];
3244 }
3245 static char *f (char * (*g) (char **, int), char **p, ...)
3246 {
3247   char *s;
3248   va_list v;
3249   va_start (v,p);
3250   s = g (p, va_arg (v,int));
3251   va_end (v);
3252   return s;
3253 }
3254
3255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3256    function prototypes and stuff, but not '\xHH' hex character constants.
3257    These don't provoke an error unfortunately, instead are silently treated
3258    as 'x'.  The following induces an error, until -std is added to get
3259    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3260    array size at least.  It's necessary to write '\x00'==0 to get something
3261    that's true only with -std.  */
3262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
3264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265    inside strings and character constants.  */
3266 #define FOO(x) 'x'
3267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
3269 int test (int i, double x);
3270 struct s1 {int (*f) (int a);};
3271 struct s2 {int (*f) (double a);};
3272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 int argc;
3274 char **argv;
3275 int
3276 main ()
3277 {
3278 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 do
3286   CC="$ac_save_CC $ac_arg"
3287   rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_compile") 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } &&
3301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302   { (case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_try") 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; } &&
3311          { ac_try='test -s conftest.$ac_objext'
3312   { (case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_try") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   ac_cv_prog_cc_c89=$ac_arg
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext
3330   test "x$ac_cv_prog_cc_c89" != "xno" && break
3331 done
3332 rm -f conftest.$ac_ext
3333 CC=$ac_save_CC
3334
3335 fi
3336 # AC_CACHE_VAL
3337 case "x$ac_cv_prog_cc_c89" in
3338   x)
3339     { echo "$as_me:$LINENO: result: none needed" >&5
3340 echo "${ECHO_T}none needed" >&6; } ;;
3341   xno)
3342     { echo "$as_me:$LINENO: result: unsupported" >&5
3343 echo "${ECHO_T}unsupported" >&6; } ;;
3344   *)
3345     CC="$CC $ac_cv_prog_cc_c89"
3346     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3348 esac
3349
3350
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357
3358 ac_ext=c
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3364 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3365 # On Suns, sometimes $CPP names a directory.
3366 if test -n "$CPP" && test -d "$CPP"; then
3367   CPP=
3368 fi
3369 if test -z "$CPP"; then
3370   if test "${ac_cv_prog_CPP+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373       # Double quotes because CPP needs to be expanded
3374     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375     do
3376       ac_preproc_ok=false
3377 for ac_c_preproc_warn_flag in '' yes
3378 do
3379   # Use a header file that comes with gcc, so configuring glibc
3380   # with a fresh cross-compiler works.
3381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382   # <limits.h> exists even on freestanding compilers.
3383   # On the NeXT, cc -E runs the code through the compiler's parser,
3384   # not just through cpp. "Syntax error" is here to catch this case.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #ifdef __STDC__
3392 # include <limits.h>
3393 #else
3394 # include <assert.h>
3395 #endif
3396                      Syntax error
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   :
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426   # Broken: fails on valid input.
3427 continue
3428 fi
3429
3430 rm -f conftest.err conftest.$ac_ext
3431
3432   # OK, works on sane cases.  Now check whether nonexistent headers
3433   # can be detected and how.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } >/dev/null; then
3455   if test -s conftest.err; then
3456     ac_cpp_err=$ac_c_preproc_warn_flag
3457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   # Broken: success on invalid input.
3466 continue
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3475
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   break
3483 fi
3484
3485     done
3486     ac_cv_prog_CPP=$CPP
3487
3488 fi
3489   CPP=$ac_cv_prog_CPP
3490 else
3491   ac_cv_prog_CPP=$CPP
3492 fi
3493 { echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6; }
3495 ac_preproc_ok=false
3496 for ac_c_preproc_warn_flag in '' yes
3497 do
3498   # Use a header file that comes with gcc, so configuring glibc
3499   # with a fresh cross-compiler works.
3500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501   # <limits.h> exists even on freestanding compilers.
3502   # On the NeXT, cc -E runs the code through the compiler's parser,
3503   # not just through cpp. "Syntax error" is here to catch this case.
3504   cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #ifdef __STDC__
3511 # include <limits.h>
3512 #else
3513 # include <assert.h>
3514 #endif
3515                      Syntax error
3516 _ACEOF
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 case "(($ac_try" in
3519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520   *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } >/dev/null; then
3530   if test -s conftest.err; then
3531     ac_cpp_err=$ac_c_preproc_warn_flag
3532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533   else
3534     ac_cpp_err=
3535   fi
3536 else
3537   ac_cpp_err=yes
3538 fi
3539 if test -z "$ac_cpp_err"; then
3540   :
3541 else
3542   echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545   # Broken: fails on valid input.
3546 continue
3547 fi
3548
3549 rm -f conftest.err conftest.$ac_ext
3550
3551   # OK, works on sane cases.  Now check whether nonexistent headers
3552   # can be detected and how.
3553   cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 #include <ac_nonexistent.h>
3560 _ACEOF
3561 if { (ac_try="$ac_cpp conftest.$ac_ext"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3568   ac_status=$?
3569   grep -v '^ *+' conftest.er1 >conftest.err
3570   rm -f conftest.er1
3571   cat conftest.err >&5
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); } >/dev/null; then
3574   if test -s conftest.err; then
3575     ac_cpp_err=$ac_c_preproc_warn_flag
3576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3577   else
3578     ac_cpp_err=
3579   fi
3580 else
3581   ac_cpp_err=yes
3582 fi
3583 if test -z "$ac_cpp_err"; then
3584   # Broken: success on invalid input.
3585 continue
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590   # Passes both tests.
3591 ac_preproc_ok=:
3592 break
3593 fi
3594
3595 rm -f conftest.err conftest.$ac_ext
3596
3597 done
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then
3601   :
3602 else
3603   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." >&2;}
3607    { (exit 1); exit 1; }; }
3608 fi
3609
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616
3617 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3618 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   # Extract the first word of "grep ggrep" to use in msg output
3623 if test -z "$GREP"; then
3624 set dummy grep ggrep; ac_prog_name=$2
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   ac_path_GREP_found=false
3629 # Loop through the user's path and test for each of PROGNAME-LIST
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_prog in grep ggrep; do
3636   for ac_exec_ext in '' $ac_executable_extensions; do
3637     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3638     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3639     # Check for GNU ac_path_GREP and select it if it is found.
3640   # Check for GNU $ac_path_GREP
3641 case `"$ac_path_GREP" --version 2>&1` in
3642 *GNU*)
3643   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3644 *)
3645   ac_count=0
3646   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3647   while :
3648   do
3649     cat "conftest.in" "conftest.in" >"conftest.tmp"
3650     mv "conftest.tmp" "conftest.in"
3651     cp "conftest.in" "conftest.nl"
3652     echo 'GREP' >> "conftest.nl"
3653     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3655     ac_count=`expr $ac_count + 1`
3656     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3657       # Best one so far, save it but keep looking for a better one
3658       ac_cv_path_GREP="$ac_path_GREP"
3659       ac_path_GREP_max=$ac_count
3660     fi
3661     # 10*(2^10) chars as input seems more than enough
3662     test $ac_count -gt 10 && break
3663   done
3664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665 esac
3666
3667
3668     $ac_path_GREP_found && break 3
3669   done
3670 done
3671
3672 done
3673 IFS=$as_save_IFS
3674
3675
3676 fi
3677
3678 GREP="$ac_cv_path_GREP"
3679 if test -z "$GREP"; then
3680   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3682    { (exit 1); exit 1; }; }
3683 fi
3684
3685 else
3686   ac_cv_path_GREP=$GREP
3687 fi
3688
3689
3690 fi
3691 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3692 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3693  GREP="$ac_cv_path_GREP"
3694
3695
3696 { echo "$as_me:$LINENO: checking for egrep" >&5
3697 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_EGREP+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3702    then ac_cv_path_EGREP="$GREP -E"
3703    else
3704      # Extract the first word of "egrep" to use in msg output
3705 if test -z "$EGREP"; then
3706 set dummy egrep; ac_prog_name=$2
3707 if test "${ac_cv_path_EGREP+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   ac_path_EGREP_found=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714 do
3715   IFS=$as_save_IFS
3716   test -z "$as_dir" && as_dir=.
3717   for ac_prog in egrep; do
3718   for ac_exec_ext in '' $ac_executable_extensions; do
3719     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3720     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3721     # Check for GNU ac_path_EGREP and select it if it is found.
3722   # Check for GNU $ac_path_EGREP
3723 case `"$ac_path_EGREP" --version 2>&1` in
3724 *GNU*)
3725   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3726 *)
3727   ac_count=0
3728   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729   while :
3730   do
3731     cat "conftest.in" "conftest.in" >"conftest.tmp"
3732     mv "conftest.tmp" "conftest.in"
3733     cp "conftest.in" "conftest.nl"
3734     echo 'EGREP' >> "conftest.nl"
3735     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737     ac_count=`expr $ac_count + 1`
3738     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3739       # Best one so far, save it but keep looking for a better one
3740       ac_cv_path_EGREP="$ac_path_EGREP"
3741       ac_path_EGREP_max=$ac_count
3742     fi
3743     # 10*(2^10) chars as input seems more than enough
3744     test $ac_count -gt 10 && break
3745   done
3746   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 esac
3748
3749
3750     $ac_path_EGREP_found && break 3
3751   done
3752 done
3753
3754 done
3755 IFS=$as_save_IFS
3756
3757
3758 fi
3759
3760 EGREP="$ac_cv_path_EGREP"
3761 if test -z "$EGREP"; then
3762   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764    { (exit 1); exit 1; }; }
3765 fi
3766
3767 else
3768   ac_cv_path_EGREP=$EGREP
3769 fi
3770
3771
3772    fi
3773 fi
3774 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3775 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3776  EGREP="$ac_cv_path_EGREP"
3777
3778
3779 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3780 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3781 if test "${ac_cv_header_stdc+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790 #include <stdlib.h>
3791 #include <stdarg.h>
3792 #include <string.h>
3793 #include <float.h>
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810   (eval "$ac_compile") 2>conftest.er1
3811   ac_status=$?
3812   grep -v '^ *+' conftest.er1 >conftest.err
3813   rm -f conftest.er1
3814   cat conftest.err >&5
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } &&
3817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3818   { (case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823   (eval "$ac_try") 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; } &&
3827          { ac_try='test -s conftest.$ac_objext'
3828   { (case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833   (eval "$ac_try") 2>&5
3834   ac_status=$?
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); }; }; then
3837   ac_cv_header_stdc=yes
3838 else
3839   echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842         ac_cv_header_stdc=no
3843 fi
3844
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846
3847 if test $ac_cv_header_stdc = yes; then
3848   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3849   cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <string.h>
3856
3857 _ACEOF
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859   $EGREP "memchr" >/dev/null 2>&1; then
3860   :
3861 else
3862   ac_cv_header_stdc=no
3863 fi
3864 rm -f conftest*
3865
3866 fi
3867
3868 if test $ac_cv_header_stdc = yes; then
3869   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 #include <stdlib.h>
3877
3878 _ACEOF
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880   $EGREP "free" >/dev/null 2>&1; then
3881   :
3882 else
3883   ac_cv_header_stdc=no
3884 fi
3885 rm -f conftest*
3886
3887 fi
3888
3889 if test $ac_cv_header_stdc = yes; then
3890   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3891   if test "$cross_compiling" = yes; then
3892   :
3893 else
3894   cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h.  */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h.  */
3900 #include <ctype.h>
3901 #include <stdlib.h>
3902 #if ((' ' & 0x0FF) == 0x020)
3903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3905 #else
3906 # define ISLOWER(c) \
3907                    (('a' <= (c) && (c) <= 'i') \
3908                      || ('j' <= (c) && (c) <= 'r') \
3909                      || ('s' <= (c) && (c) <= 'z'))
3910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3911 #endif
3912
3913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3914 int
3915 main ()
3916 {
3917   int i;
3918   for (i = 0; i < 256; i++)
3919     if (XOR (islower (i), ISLOWER (i))
3920         || toupper (i) != TOUPPER (i))
3921       return 2;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932   (eval "$ac_link") 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3936   { (case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941   (eval "$ac_try") 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; }; then
3945   :
3946 else
3947   echo "$as_me: program exited with status $ac_status" >&5
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 ( exit $ac_status )
3952 ac_cv_header_stdc=no
3953 fi
3954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3955 fi
3956
3957
3958 fi
3959 fi
3960 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3961 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3962 if test $ac_cv_header_stdc = yes; then
3963
3964 cat >>confdefs.h <<\_ACEOF
3965 #define STDC_HEADERS 1
3966 _ACEOF
3967
3968 fi
3969
3970 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3981                   inttypes.h stdint.h unistd.h
3982 do
3983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h.  */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h.  */
3995 $ac_includes_default
3996
3997 #include <$ac_header>
3998 _ACEOF
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4001 case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006   (eval "$ac_compile") 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } &&
4013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014   { (case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_try") 2>&5
4020   ac_status=$?
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); }; } &&
4023          { ac_try='test -s conftest.$ac_objext'
4024   { (case "(($ac_try" in
4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026   *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029   (eval "$ac_try") 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; }; then
4033   eval "$as_ac_Header=yes"
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038         eval "$as_ac_Header=no"
4039 fi
4040
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043 ac_res=`eval echo '${'$as_ac_Header'}'`
4044                { echo "$as_me:$LINENO: result: $ac_res" >&5
4045 echo "${ECHO_T}$ac_res" >&6; }
4046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4047   cat >>confdefs.h <<_ACEOF
4048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4049 _ACEOF
4050
4051 fi
4052
4053 done
4054
4055
4056 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4057 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4058 if test "${ac_cv_c_bigendian+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   # See if sys/param.h defines the BYTE_ORDER macro.
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 #include <sys/types.h>
4069 #include <sys/param.h>
4070
4071 int
4072 main ()
4073 {
4074 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4075  bogus endian macros
4076 #endif
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_compile") 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } &&
4096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4097   { (case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_try") 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; } &&
4106          { ac_try='test -s conftest.$ac_objext'
4107   { (case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112   (eval "$ac_try") 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); }; }; then
4116   # It does; now see whether it defined to BIG_ENDIAN or not.
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #include <sys/types.h>
4124 #include <sys/param.h>
4125
4126 int
4127 main ()
4128 {
4129 #if BYTE_ORDER != BIG_ENDIAN
4130  not big endian
4131 #endif
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } &&
4151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4152   { (case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157   (eval "$ac_try") 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167   (eval "$ac_try") 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; }; then
4171   ac_cv_c_bigendian=yes
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176         ac_cv_c_bigendian=no
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184         # It does not; compile a test program.
4185 if test "$cross_compiling" = yes; then
4186   # try to guess the endianness by grepping values into an object file
4187   ac_cv_c_bigendian=unknown
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4195 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4196 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4197 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4198 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4199 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4200 int
4201 main ()
4202 {
4203  _ascii (); _ebcdic ();
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4216   ac_status=$?
4217   grep -v '^ *+' conftest.er1 >conftest.err
4218   rm -f conftest.er1
4219   cat conftest.err >&5
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); } &&
4222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4223   { (case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_try") 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; } &&
4232          { ac_try='test -s conftest.$ac_objext'
4233   { (case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_try") 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; }; then
4242   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4243   ac_cv_c_bigendian=yes
4244 fi
4245 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4246   if test "$ac_cv_c_bigendian" = unknown; then
4247     ac_cv_c_bigendian=no
4248   else
4249     # finding both strings is unlikely to happen, but who knows?
4250     ac_cv_c_bigendian=unknown
4251   fi
4252 fi
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257
4258 fi
4259
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 else
4262   cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h.  */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h.  */
4268 $ac_includes_default
4269 int
4270 main ()
4271 {
4272
4273   /* Are we little or big endian?  From Harbison&Steele.  */
4274   union
4275   {
4276     long int l;
4277     char c[sizeof (long int)];
4278   } u;
4279   u.l = 1;
4280   return u.c[sizeof (long int) - 1] == 1;
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4288 case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_link") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4297   { (case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_c_bigendian=no
4307 else
4308   echo "$as_me: program exited with status $ac_status" >&5
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ( exit $ac_status )
4313 ac_cv_c_bigendian=yes
4314 fi
4315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4316 fi
4317
4318
4319 fi
4320
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4324 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4325 case $ac_cv_c_bigendian in
4326   yes)
4327     ENDIAN=big
4328  ;;
4329   no)
4330     ENDIAN=little
4331  ;;
4332   *)
4333     { { echo "$as_me:$LINENO: error: unknown endianness
4334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4335 echo "$as_me: error: unknown endianness
4336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4337    { (exit 1); exit 1; }; } ;;
4338 esac
4339
4340
4341 if test "$cross_compiling" = yes; then
4342   LLVM_CROSS_COMPILING=1
4343
4344
4345 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4346 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4347 if test "${ac_cv_build_exeext+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4351   ac_cv_build_exeext=.exe
4352 else
4353   ac_build_prefix=${build_alias}-
4354
4355   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4356 set dummy ${ac_build_prefix}gcc; ac_word=$2
4357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4359 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   if test -n "$BUILD_CC"; then
4363   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4372     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 BUILD_CC=$ac_cv_prog_BUILD_CC
4383 if test -n "$BUILD_CC"; then
4384   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4385 echo "${ECHO_T}$BUILD_CC" >&6; }
4386 else
4387   { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4389 fi
4390
4391
4392   if test -z "$BUILD_CC"; then
4393      # Extract the first word of "gcc", so it can be a program name with args.
4394 set dummy gcc; ac_word=$2
4395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4397 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test -n "$BUILD_CC"; then
4401   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     ac_cv_prog_BUILD_CC="gcc"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 BUILD_CC=$ac_cv_prog_BUILD_CC
4421 if test -n "$BUILD_CC"; then
4422   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4423 echo "${ECHO_T}$BUILD_CC" >&6; }
4424 else
4425   { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4427 fi
4428
4429
4430      if test -z "$BUILD_CC"; then
4431        # Extract the first word of "cc", so it can be a program name with args.
4432 set dummy cc; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   if test -n "$BUILD_CC"; then
4439   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4440 else
4441   ac_prog_rejected=no
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450        ac_prog_rejected=yes
4451        continue
4452      fi
4453     ac_cv_prog_BUILD_CC="cc"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 if test $ac_prog_rejected = yes; then
4462   # We found a bogon in the path, so make sure we never use it.
4463   set dummy $ac_cv_prog_BUILD_CC
4464   shift
4465   if test $# != 0; then
4466     # We chose a different compiler from the bogus one.
4467     # However, it has the same basename, so the bogon will be chosen
4468     # first if we set BUILD_CC to just the basename; use the full file name.
4469     shift
4470     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4471   fi
4472 fi
4473 fi
4474 fi
4475 BUILD_CC=$ac_cv_prog_BUILD_CC
4476 if test -n "$BUILD_CC"; then
4477   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4478 echo "${ECHO_T}$BUILD_CC" >&6; }
4479 else
4480   { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4482 fi
4483
4484
4485      fi
4486   fi
4487   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4488 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4489    { (exit 1); exit 1; }; }
4490   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4491   rm -f conftest*
4492   echo 'int main () { return 0; }' > conftest.$ac_ext
4493   ac_cv_build_exeext=
4494   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4495   (eval $ac_build_link) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; then
4499     for file in conftest.*; do
4500       case $file in
4501       *.c | *.o | *.obj) ;;
4502       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4503       esac
4504     done
4505   else
4506     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4507 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4508    { (exit 1); exit 1; }; }
4509   fi
4510   rm -f conftest*
4511   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4512 fi
4513 fi
4514
4515 BUILD_EXEEXT=""
4516 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4517 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4518 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4519 ac_build_exeext=$BUILD_EXEEXT
4520
4521 else
4522   LLVM_CROSS_COMPILING=0
4523
4524 fi
4525
4526 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4527   cvsbuild="yes"
4528   optimize="no"
4529   CVSBUILD=CVSBUILD=1
4530
4531 else
4532   cvsbuild="no"
4533   optimize="yes"
4534 fi
4535
4536
4537 # Check whether --enable-optimized was given.
4538 if test "${enable_optimized+set}" = set; then
4539   enableval=$enable_optimized;
4540 else
4541   enableval=$optimize
4542 fi
4543
4544 if test ${enableval} = "no" ; then
4545   ENABLE_OPTIMIZED=
4546
4547 else
4548   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4549
4550 fi
4551
4552 # Check whether --enable-assertions was given.
4553 if test "${enable_assertions+set}" = set; then
4554   enableval=$enable_assertions;
4555 else
4556   enableval="yes"
4557 fi
4558
4559 if test ${enableval} = "yes" ; then
4560   DISABLE_ASSERTIONS=
4561
4562 else
4563   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4564
4565 fi
4566
4567 # Check whether --enable-debug-runtime was given.
4568 if test "${enable_debug_runtime+set}" = set; then
4569   enableval=$enable_debug_runtime;
4570 else
4571   enableval=no
4572 fi
4573
4574 if test ${enableval} = "no" ; then
4575   DEBUG_RUNTIME=
4576
4577 else
4578   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4579
4580 fi
4581
4582 # Check whether --enable-jit was given.
4583 if test "${enable_jit+set}" = set; then
4584   enableval=$enable_jit;
4585 else
4586   enableval=default
4587 fi
4588
4589 if test ${enableval} = "no"
4590 then
4591   JIT=
4592
4593 else
4594   case "$llvm_cv_target_arch" in
4595     x86)     TARGET_HAS_JIT=1
4596  ;;
4597     Sparc)   TARGET_HAS_JIT=1
4598  ;;
4599     PowerPC) TARGET_HAS_JIT=1
4600  ;;
4601     x86_64)  TARGET_HAS_JIT=0
4602  ;;
4603     Alpha)   TARGET_HAS_JIT=1
4604  ;;
4605     IA64)    TARGET_HAS_JIT=0
4606  ;;
4607     *)       TARGET_HAS_JIT=0
4608  ;;
4609   esac
4610 fi
4611
4612 # Check whether --enable-doxygen was given.
4613 if test "${enable_doxygen+set}" = set; then
4614   enableval=$enable_doxygen;
4615 else
4616   enableval=default
4617 fi
4618
4619 case "$enableval" in
4620   yes) ENABLE_DOXYGEN=1
4621  ;;
4622   no)  ENABLE_DOXYGEN=0
4623  ;;
4624   default) ENABLE_DOXYGEN=0
4625  ;;
4626   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4627 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4628    { (exit 1); exit 1; }; } ;;
4629 esac
4630
4631 # Check whether --enable-threads was given.
4632 if test "${enable_threads+set}" = set; then
4633   enableval=$enable_threads;
4634 else
4635   enableval=default
4636 fi
4637
4638 case "$enableval" in
4639   yes) ENABLE_THREADS=1
4640  ;;
4641   no)  ENABLE_THREADS=0
4642  ;;
4643   default) ENABLE_THREADS=1
4644  ;;
4645   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4646 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4647    { (exit 1); exit 1; }; } ;;
4648 esac
4649
4650 cat >>confdefs.h <<_ACEOF
4651 #define ENABLE_THREADS $ENABLE_THREADS
4652 _ACEOF
4653
4654
4655 TARGETS_TO_BUILD=""
4656 # Check whether --enable-targets was given.
4657 if test "${enable_targets+set}" = set; then
4658   enableval=$enable_targets;
4659 else
4660   enableval=all
4661 fi
4662
4663 case "$enableval" in
4664   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4665   host-only)
4666     case "$llvm_cv_target_arch" in
4667       x86)     TARGETS_TO_BUILD="X86" ;;
4668       x86_64)  TARGETS_TO_BUILD="X86" ;;
4669       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4670       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4671       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4672       IA64)    TARGETS_TO_BUILD="IA64" ;;
4673       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4674 echo "$as_me: error: Can not set target to build" >&2;}
4675    { (exit 1); exit 1; }; } ;;
4676     esac
4677     ;;
4678   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4679       case "$a_target" in
4680         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4682         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4683         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4684         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4685         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4686         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4687 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4688    { (exit 1); exit 1; }; } ;;
4689       esac
4690   done
4691   ;;
4692 esac
4693 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4694 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4695
4696
4697 # Check whether --enable-cbe-printf-a was given.
4698 if test "${enable_cbe_printf_a+set}" = set; then
4699   enableval=$enable_cbe_printf_a;
4700 else
4701   enableval=default
4702 fi
4703
4704 case "$enableval" in
4705   yes) ENABLE_CBE_PRINTF_A=1
4706  ;;
4707   no)  ENABLE_CBE_PRINTF_A=0
4708  ;;
4709   default)  ENABLE_CBE_PRINTF_A=1
4710  ;;
4711   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4712 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4713    { (exit 1); exit 1; }; } ;;
4714 esac
4715
4716 cat >>confdefs.h <<_ACEOF
4717 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4718 _ACEOF
4719
4720
4721
4722 # Check whether --with-llvmgccdir was given.
4723 if test "${with_llvmgccdir+set}" = set; then
4724   withval=$with_llvmgccdir;
4725 else
4726   withval=default
4727 fi
4728
4729 case "$withval" in
4730   default) WITH_LLVMGCCDIR=default ;;
4731   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4732   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4733 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4734    { (exit 1); exit 1; }; } ;;
4735 esac
4736
4737
4738 # Check whether --with-extra-options was given.
4739 if test "${with_extra_options+set}" = set; then
4740   withval=$with_extra_options;
4741 else
4742   withval=default
4743 fi
4744
4745 case "$withval" in
4746   default) EXTRA_OPTIONS= ;;
4747   *) EXTRA_OPTIONS=$withval ;;
4748 esac
4749 EXTRA_OPTIONS=$EXTRA_OPTIONS
4750
4751
4752
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4759 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4760 # On Suns, sometimes $CPP names a directory.
4761 if test -n "$CPP" && test -d "$CPP"; then
4762   CPP=
4763 fi
4764 if test -z "$CPP"; then
4765   if test "${ac_cv_prog_CPP+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768       # Double quotes because CPP needs to be expanded
4769     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4770     do
4771       ac_preproc_ok=false
4772 for ac_c_preproc_warn_flag in '' yes
4773 do
4774   # Use a header file that comes with gcc, so configuring glibc
4775   # with a fresh cross-compiler works.
4776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777   # <limits.h> exists even on freestanding compilers.
4778   # On the NeXT, cc -E runs the code through the compiler's parser,
4779   # not just through cpp. "Syntax error" is here to catch this case.
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 #ifdef __STDC__
4787 # include <limits.h>
4788 #else
4789 # include <assert.h>
4790 #endif
4791                      Syntax error
4792 _ACEOF
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 case "(($ac_try" in
4795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796   *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800   ac_status=$?
4801   grep -v '^ *+' conftest.er1 >conftest.err
4802   rm -f conftest.er1
4803   cat conftest.err >&5
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); } >/dev/null; then
4806   if test -s conftest.err; then
4807     ac_cpp_err=$ac_c_preproc_warn_flag
4808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4809   else
4810     ac_cpp_err=
4811   fi
4812 else
4813   ac_cpp_err=yes
4814 fi
4815 if test -z "$ac_cpp_err"; then
4816   :
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821   # Broken: fails on valid input.
4822 continue
4823 fi
4824
4825 rm -f conftest.err conftest.$ac_ext
4826
4827   # OK, works on sane cases.  Now check whether nonexistent headers
4828   # can be detected and how.
4829   cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835 #include <ac_nonexistent.h>
4836 _ACEOF
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } >/dev/null; then
4850   if test -s conftest.err; then
4851     ac_cpp_err=$ac_c_preproc_warn_flag
4852     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4853   else
4854     ac_cpp_err=
4855   fi
4856 else
4857   ac_cpp_err=yes
4858 fi
4859 if test -z "$ac_cpp_err"; then
4860   # Broken: success on invalid input.
4861 continue
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866   # Passes both tests.
4867 ac_preproc_ok=:
4868 break
4869 fi
4870
4871 rm -f conftest.err conftest.$ac_ext
4872
4873 done
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then
4877   break
4878 fi
4879
4880     done
4881     ac_cv_prog_CPP=$CPP
4882
4883 fi
4884   CPP=$ac_cv_prog_CPP
4885 else
4886   ac_cv_prog_CPP=$CPP
4887 fi
4888 { echo "$as_me:$LINENO: result: $CPP" >&5
4889 echo "${ECHO_T}$CPP" >&6; }
4890 ac_preproc_ok=false
4891 for ac_c_preproc_warn_flag in '' yes
4892 do
4893   # Use a header file that comes with gcc, so configuring glibc
4894   # with a fresh cross-compiler works.
4895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896   # <limits.h> exists even on freestanding compilers.
4897   # On the NeXT, cc -E runs the code through the compiler's parser,
4898   # not just through cpp. "Syntax error" is here to catch this case.
4899   cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910                      Syntax error
4911 _ACEOF
4912 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919   ac_status=$?
4920   grep -v '^ *+' conftest.er1 >conftest.err
4921   rm -f conftest.er1
4922   cat conftest.err >&5
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } >/dev/null; then
4925   if test -s conftest.err; then
4926     ac_cpp_err=$ac_c_preproc_warn_flag
4927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928   else
4929     ac_cpp_err=
4930   fi
4931 else
4932   ac_cpp_err=yes
4933 fi
4934 if test -z "$ac_cpp_err"; then
4935   :
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Broken: fails on valid input.
4941 continue
4942 fi
4943
4944 rm -f conftest.err conftest.$ac_ext
4945
4946   # OK, works on sane cases.  Now check whether nonexistent headers
4947   # can be detected and how.
4948   cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if { (ac_try="$ac_cpp conftest.$ac_ext"
4957 case "(($ac_try" in
4958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959   *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } >/dev/null; then
4969   if test -s conftest.err; then
4970     ac_cpp_err=$ac_c_preproc_warn_flag
4971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4972   else
4973     ac_cpp_err=
4974   fi
4975 else
4976   ac_cpp_err=yes
4977 fi
4978 if test -z "$ac_cpp_err"; then
4979   # Broken: success on invalid input.
4980 continue
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985   # Passes both tests.
4986 ac_preproc_ok=:
4987 break
4988 fi
4989
4990 rm -f conftest.err conftest.$ac_ext
4991
4992 done
4993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4994 rm -f conftest.err conftest.$ac_ext
4995 if $ac_preproc_ok; then
4996   :
4997 else
4998   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&5
5000 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details." >&2;}
5002    { (exit 1); exit 1; }; }
5003 fi
5004
5005 ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 if test -n "$ac_tool_prefix"; then
5017   for ac_prog in gcc
5018   do
5019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   if test -n "$CC"; then
5027   ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 CC=$ac_cv_prog_CC
5047 if test -n "$CC"; then
5048   { echo "$as_me:$LINENO: result: $CC" >&5
5049 echo "${ECHO_T}$CC" >&6; }
5050 else
5051   { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5053 fi
5054
5055
5056     test -n "$CC" && break
5057   done
5058 fi
5059 if test -z "$CC"; then
5060   ac_ct_CC=$CC
5061   for ac_prog in gcc
5062 do
5063   # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   if test -n "$ac_ct_CC"; then
5071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078   for ac_exec_ext in '' $ac_executable_extensions; do
5079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5080     ac_cv_prog_ac_ct_CC="$ac_prog"
5081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5091 if test -n "$ac_ct_CC"; then
5092   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5093 echo "${ECHO_T}$ac_ct_CC" >&6; }
5094 else
5095   { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5097 fi
5098
5099
5100   test -n "$ac_ct_CC" && break
5101 done
5102
5103   if test "x$ac_ct_CC" = x; then
5104     CC=""
5105   else
5106     case $cross_compiling:$ac_tool_warned in
5107 yes:)
5108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet.  If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&5
5111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5112 whose name does not start with the host triplet.  If you think this
5113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116     CC=$ac_ct_CC
5117   fi
5118 fi
5119
5120
5121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: no acceptable C compiler found in \$PATH
5124 See \`config.log' for more details." >&2;}
5125    { (exit 1); exit 1; }; }
5126
5127 # Provide some information about the compiler.
5128 echo "$as_me:$LINENO: checking for C compiler version" >&5
5129 ac_compiler=`set X $ac_compile; echo $2`
5130 { (ac_try="$ac_compiler --version >&5"
5131 case "(($ac_try" in
5132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133   *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136   (eval "$ac_compiler --version >&5") 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }
5140 { (ac_try="$ac_compiler -v >&5"
5141 case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_compiler -v >&5") 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }
5150 { (ac_try="$ac_compiler -V >&5"
5151 case "(($ac_try" in
5152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153   *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156   (eval "$ac_compiler -V >&5") 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); }
5160
5161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172
5173 int
5174 main ()
5175 {
5176 #ifndef __GNUC__
5177        choke me
5178 #endif
5179
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_compile") 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } &&
5198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5199   { (case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_try") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; } &&
5208          { ac_try='test -s conftest.$ac_objext'
5209   { (case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_try") 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_compiler_gnu=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223         ac_compiler_gnu=no
5224 fi
5225
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5228
5229 fi
5230 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5231 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5232 GCC=`test $ac_compiler_gnu = yes && echo yes`
5233 ac_test_CFLAGS=${CFLAGS+set}
5234 ac_save_CFLAGS=$CFLAGS
5235 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5236 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5237 if test "${ac_cv_prog_cc_g+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   ac_save_c_werror_flag=$ac_c_werror_flag
5241    ac_c_werror_flag=yes
5242    ac_cv_prog_cc_g=no
5243    CFLAGS="-g"
5244    cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250
5251 int
5252 main ()
5253 {
5254
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (ac_try="$ac_compile"
5261 case "(($ac_try" in
5262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263   *) ac_try_echo=$ac_try;;
5264 esac
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266   (eval "$ac_compile") 2>conftest.er1
5267   ac_status=$?
5268   grep -v '^ *+' conftest.er1 >conftest.err
5269   rm -f conftest.er1
5270   cat conftest.err >&5
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } &&
5273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274   { (case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_try") 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; } &&
5283          { ac_try='test -s conftest.$ac_objext'
5284   { (case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_try") 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }; }; then
5293   ac_cv_prog_cc_g=yes
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298         CFLAGS=""
5299       cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305
5306 int
5307 main ()
5308 {
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (ac_try="$ac_compile"
5316 case "(($ac_try" in
5317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318   *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321   (eval "$ac_compile") 2>conftest.er1
5322   ac_status=$?
5323   grep -v '^ *+' conftest.er1 >conftest.err
5324   rm -f conftest.er1
5325   cat conftest.err >&5
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5329   { (case "(($ac_try" in
5330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331   *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334   (eval "$ac_try") 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344   (eval "$ac_try") 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   :
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353         ac_c_werror_flag=$ac_save_c_werror_flag
5354          CFLAGS="-g"
5355          cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h.  */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h.  */
5361
5362 int
5363 main ()
5364 {
5365
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5372 case "(($ac_try" in
5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374   *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377   (eval "$ac_compile") 2>conftest.er1
5378   ac_status=$?
5379   grep -v '^ *+' conftest.er1 >conftest.err
5380   rm -f conftest.er1
5381   cat conftest.err >&5
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } &&
5384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5385   { (case "(($ac_try" in
5386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387   *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390   (eval "$ac_try") 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; } &&
5394          { ac_try='test -s conftest.$ac_objext'
5395   { (case "(($ac_try" in
5396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397   *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400   (eval "$ac_try") 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; }; then
5404   ac_cv_prog_cc_g=yes
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5408
5409
5410 fi
5411
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 fi
5414
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419    ac_c_werror_flag=$ac_save_c_werror_flag
5420 fi
5421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5423 if test "$ac_test_CFLAGS" = set; then
5424   CFLAGS=$ac_save_CFLAGS
5425 elif test $ac_cv_prog_cc_g = yes; then
5426   if test "$GCC" = yes; then
5427     CFLAGS="-g -O2"
5428   else
5429     CFLAGS="-g"
5430   fi
5431 else
5432   if test "$GCC" = yes; then
5433     CFLAGS="-O2"
5434   else
5435     CFLAGS=
5436   fi
5437 fi
5438 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5439 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5440 if test "${ac_cv_prog_cc_c89+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   ac_cv_prog_cc_c89=no
5444 ac_save_CC=$CC
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451 #include <stdarg.h>
5452 #include <stdio.h>
5453 #include <sys/types.h>
5454 #include <sys/stat.h>
5455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5456 struct buf { int x; };
5457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5458 static char *e (p, i)
5459      char **p;
5460      int i;
5461 {
5462   return p[i];
5463 }
5464 static char *f (char * (*g) (char **, int), char **p, ...)
5465 {
5466   char *s;
5467   va_list v;
5468   va_start (v,p);
5469   s = g (p, va_arg (v,int));
5470   va_end (v);
5471   return s;
5472 }
5473
5474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5475    function prototypes and stuff, but not '\xHH' hex character constants.
5476    These don't provoke an error unfortunately, instead are silently treated
5477    as 'x'.  The following induces an error, until -std is added to get
5478    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5479    array size at least.  It's necessary to write '\x00'==0 to get something
5480    that's true only with -std.  */
5481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5482
5483 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5484    inside strings and character constants.  */
5485 #define FOO(x) 'x'
5486 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5487
5488 int test (int i, double x);
5489 struct s1 {int (*f) (int a);};
5490 struct s2 {int (*f) (double a);};
5491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5492 int argc;
5493 char **argv;
5494 int
5495 main ()
5496 {
5497 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5503         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504 do
5505   CC="$ac_save_CC $ac_arg"
5506   rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5508 case "(($ac_try" in
5509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510   *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513   (eval "$ac_compile") 2>conftest.er1
5514   ac_status=$?
5515   grep -v '^ *+' conftest.er1 >conftest.err
5516   rm -f conftest.er1
5517   cat conftest.err >&5
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); } &&
5520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5521   { (case "(($ac_try" in
5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523   *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526   (eval "$ac_try") 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; } &&
5530          { ac_try='test -s conftest.$ac_objext'
5531   { (case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_try") 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); }; }; then
5540   ac_cv_prog_cc_c89=$ac_arg
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545
5546 fi
5547
5548 rm -f core conftest.err conftest.$ac_objext
5549   test "x$ac_cv_prog_cc_c89" != "xno" && break
5550 done
5551 rm -f conftest.$ac_ext
5552 CC=$ac_save_CC
5553
5554 fi
5555 # AC_CACHE_VAL
5556 case "x$ac_cv_prog_cc_c89" in
5557   x)
5558     { echo "$as_me:$LINENO: result: none needed" >&5
5559 echo "${ECHO_T}none needed" >&6; } ;;
5560   xno)
5561     { echo "$as_me:$LINENO: result: unsupported" >&5
5562 echo "${ECHO_T}unsupported" >&6; } ;;
5563   *)
5564     CC="$CC $ac_cv_prog_cc_c89"
5565     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5567 esac
5568
5569
5570 ac_ext=c
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575
5576 ac_ext=cpp
5577 ac_cpp='$CXXCPP $CPPFLAGS'
5578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5581 if test -z "$CXX"; then
5582   if test -n "$CCC"; then
5583     CXX=$CCC
5584   else
5585     if test -n "$ac_tool_prefix"; then
5586   for ac_prog in g++
5587   do
5588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5592 if test "${ac_cv_prog_CXX+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   if test -n "$CXX"; then
5596   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603   for ac_exec_ext in '' $ac_executable_extensions; do
5604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5605     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610 done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 CXX=$ac_cv_prog_CXX
5616 if test -n "$CXX"; then
5617   { echo "$as_me:$LINENO: result: $CXX" >&5
5618 echo "${ECHO_T}$CXX" >&6; }
5619 else
5620   { echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6; }
5622 fi
5623
5624
5625     test -n "$CXX" && break
5626   done
5627 fi
5628 if test -z "$CXX"; then
5629   ac_ct_CXX=$CXX
5630   for ac_prog in g++
5631 do
5632   # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   if test -n "$ac_ct_CXX"; then
5640   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647   for ac_exec_ext in '' $ac_executable_extensions; do
5648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5649     ac_cv_prog_ac_ct_CXX="$ac_prog"
5650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654 done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5660 if test -n "$ac_ct_CXX"; then
5661   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5662 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5663 else
5664   { echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6; }
5666 fi
5667
5668
5669   test -n "$ac_ct_CXX" && break
5670 done
5671
5672   if test "x$ac_ct_CXX" = x; then
5673     CXX="g++"
5674   else
5675     case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet.  If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&5
5680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5681 whose name does not start with the host triplet.  If you think this
5682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685     CXX=$ac_ct_CXX
5686   fi
5687 fi
5688
5689   fi
5690 fi
5691 # Provide some information about the compiler.
5692 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5693 ac_compiler=`set X $ac_compile; echo $2`
5694 { (ac_try="$ac_compiler --version >&5"
5695 case "(($ac_try" in
5696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697   *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700   (eval "$ac_compiler --version >&5") 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }
5704 { (ac_try="$ac_compiler -v >&5"
5705 case "(($ac_try" in
5706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707   *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710   (eval "$ac_compiler -v >&5") 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }
5714 { (ac_try="$ac_compiler -V >&5"
5715 case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_compiler -V >&5") 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }
5724
5725 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5726 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736
5737 int
5738 main ()
5739 {
5740 #ifndef __GNUC__
5741        choke me
5742 #endif
5743
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5763   { (case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_try") 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; } &&
5772          { ac_try='test -s conftest.$ac_objext'
5773   { (case "(($ac_try" in
5774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775   *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778   (eval "$ac_try") 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_compiler_gnu=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787         ac_compiler_gnu=no
5788 fi
5789
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5792
5793 fi
5794 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5795 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5796 GXX=`test $ac_compiler_gnu = yes && echo yes`
5797 ac_test_CXXFLAGS=${CXXFLAGS+set}
5798 ac_save_CXXFLAGS=$CXXFLAGS
5799 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5800 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_cxx_g+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5805    ac_cxx_werror_flag=yes
5806    ac_cv_prog_cxx_g=no
5807    CXXFLAGS="-g"
5808    cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814
5815 int
5816 main ()
5817 {
5818
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
5847          { ac_try='test -s conftest.$ac_objext'
5848   { (case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_try") 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_cv_prog_cxx_g=yes
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         CXXFLAGS=""
5863       cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869
5870 int
5871 main ()
5872 {
5873
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5880 case "(($ac_try" in
5881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882   *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885   (eval "$ac_compile") 2>conftest.er1
5886   ac_status=$?
5887   grep -v '^ *+' conftest.er1 >conftest.err
5888   rm -f conftest.er1
5889   cat conftest.err >&5
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } &&
5892          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5893   { (case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898   (eval "$ac_try") 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; } &&
5902          { ac_try='test -s conftest.$ac_objext'
5903   { (case "(($ac_try" in
5904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905   *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908   (eval "$ac_try") 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; }; then
5912   :
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5918          CXXFLAGS="-g"
5919          cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h.  */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h.  */
5925
5926 int
5927 main ()
5928 {
5929
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5936 case "(($ac_try" in
5937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938   *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941   (eval "$ac_compile") 2>conftest.er1
5942   ac_status=$?
5943   grep -v '^ *+' conftest.er1 >conftest.err
5944   rm -f conftest.er1
5945   cat conftest.err >&5
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5949   { (case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_try") 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; } &&
5958          { ac_try='test -s conftest.$ac_objext'
5959   { (case "(($ac_try" in
5960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961   *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964   (eval "$ac_try") 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   ac_cv_prog_cxx_g=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 fi
5978
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 fi
5981
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5984 fi
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5986 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5987 if test "$ac_test_CXXFLAGS" = set; then
5988   CXXFLAGS=$ac_save_CXXFLAGS
5989 elif test $ac_cv_prog_cxx_g = yes; then
5990   if test "$GXX" = yes; then
5991     CXXFLAGS="-g -O2"
5992   else
5993     CXXFLAGS="-g"
5994   fi
5995 else
5996   if test "$GXX" = yes; then
5997     CXXFLAGS="-O2"
5998   else
5999     CXXFLAGS=
6000   fi
6001 fi
6002 ac_ext=c
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008 { echo "$as_me:$LINENO: checking " >&5
6009 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6010 if test "${ac_cv_has_flex+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   for ac_prog in flex lex
6014 do
6015   # Extract the first word of "$ac_prog", so it can be a program name with args.
6016 set dummy $ac_prog; ac_word=$2
6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019 if test "${ac_cv_prog_LEX+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   if test -n "$LEX"; then
6023   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030   for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_prog_LEX="$ac_prog"
6033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 LEX=$ac_cv_prog_LEX
6043 if test -n "$LEX"; then
6044   { echo "$as_me:$LINENO: result: $LEX" >&5
6045 echo "${ECHO_T}$LEX" >&6; }
6046 else
6047   { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6049 fi
6050
6051
6052   test -n "$LEX" && break
6053 done
6054 test -n "$LEX" || LEX=":"
6055
6056 if test -z "$LEXLIB"
6057 then
6058   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6059 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6060 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   ac_check_lib_save_LIBS=$LIBS
6064 LIBS="-lfl  $LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071
6072 /* Override any GCC internal prototype to avoid an error.
6073    Use char because int might match the return type of a GCC
6074    builtin and then its argument prototype would still apply.  */
6075 #ifdef __cplusplus
6076 extern "C"
6077 #endif
6078 char yywrap ();
6079 int
6080 main ()
6081 {
6082 return yywrap ();
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (ac_try="$ac_link"
6089 case "(($ac_try" in
6090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091   *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094   (eval "$ac_link") 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6102   { (case "(($ac_try" in
6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104   *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107   (eval "$ac_try") 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; } &&
6111          { ac_try='test -s conftest$ac_exeext'
6112   { (case "(($ac_try" in
6113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114   *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117   (eval "$ac_try") 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; }; then
6121   ac_cv_lib_fl_yywrap=yes
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126         ac_cv_lib_fl_yywrap=no
6127 fi
6128
6129 rm -f core conftest.err conftest.$ac_objext \
6130       conftest$ac_exeext conftest.$ac_ext
6131 LIBS=$ac_check_lib_save_LIBS
6132 fi
6133 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6134 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6135 if test $ac_cv_lib_fl_yywrap = yes; then
6136   LEXLIB="-lfl"
6137 else
6138   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6139 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6140 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   ac_check_lib_save_LIBS=$LIBS
6144 LIBS="-ll  $LIBS"
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151
6152 /* Override any GCC internal prototype to avoid an error.
6153    Use char because int might match the return type of a GCC
6154    builtin and then its argument prototype would still apply.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 char yywrap ();
6159 int
6160 main ()
6161 {
6162 return yywrap ();
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6169 case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_link") 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182   { (case "(($ac_try" in
6183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184   *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187   (eval "$ac_try") 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; } &&
6191          { ac_try='test -s conftest$ac_exeext'
6192   { (case "(($ac_try" in
6193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194   *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197   (eval "$ac_try") 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; }; then
6201   ac_cv_lib_l_yywrap=yes
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206         ac_cv_lib_l_yywrap=no
6207 fi
6208
6209 rm -f core conftest.err conftest.$ac_objext \
6210       conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_check_lib_save_LIBS
6212 fi
6213 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6214 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6215 if test $ac_cv_lib_l_yywrap = yes; then
6216   LEXLIB="-ll"
6217 fi
6218
6219 fi
6220
6221 fi
6222
6223 if test "x$LEX" != "x:"; then
6224   { echo "$as_me:$LINENO: checking lex output file root" >&5
6225 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_lex_root+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   # The minimal lex program is just a single line: %%.  But some broken lexes
6230 # (Solaris, I think it was) want two %% lines, so accommodate them.
6231 cat >conftest.l <<_ACEOF
6232 %%
6233 %%
6234 _ACEOF
6235 { (ac_try="$LEX conftest.l"
6236 case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$LEX conftest.l") 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }
6245 if test -f lex.yy.c; then
6246   ac_cv_prog_lex_root=lex.yy
6247 elif test -f lexyy.c; then
6248   ac_cv_prog_lex_root=lexyy
6249 else
6250   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6251 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6252    { (exit 1); exit 1; }; }
6253 fi
6254 fi
6255 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6256 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6257 rm -f conftest.l
6258 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6259
6260 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6261 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6262 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   # POSIX says lex can declare yytext either as a pointer or an array; the
6266 # default is implementation-dependent. Figure out which it is, since
6267 # not all implementations provide the %pointer and %array declarations.
6268 ac_cv_prog_lex_yytext_pointer=no
6269 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6270 ac_save_LIBS=$LIBS
6271 LIBS="$LIBS $LEXLIB"
6272 cat >conftest.$ac_ext <<_ACEOF
6273 `cat $LEX_OUTPUT_ROOT.c`
6274 _ACEOF
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (ac_try="$ac_link"
6277 case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_link") 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6290   { (case "(($ac_try" in
6291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292   *) ac_try_echo=$ac_try;;
6293 esac
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295   (eval "$ac_try") 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; } &&
6299          { ac_try='test -s conftest$ac_exeext'
6300   { (case "(($ac_try" in
6301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302   *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305   (eval "$ac_try") 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; }; then
6309   ac_cv_prog_lex_yytext_pointer=yes
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314
6315 fi
6316
6317 rm -f core conftest.err conftest.$ac_objext \
6318       conftest$ac_exeext conftest.$ac_ext
6319 LIBS=$ac_save_LIBS
6320 rm -f "${LEX_OUTPUT_ROOT}.c"
6321
6322 fi
6323 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6324 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6325 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6326
6327 cat >>confdefs.h <<\_ACEOF
6328 #define YYTEXT_POINTER 1
6329 _ACEOF
6330
6331 fi
6332
6333 fi
6334
6335 fi
6336 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6337 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6338 if test "$LEX" != "flex"; then
6339   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6340 echo "$as_me: error: flex not found but required" >&2;}
6341    { (exit 1); exit 1; }; }
6342 else
6343   FLEX=flex
6344
6345 fi
6346
6347 { echo "$as_me:$LINENO: checking " >&5
6348 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6349 if test "${llvm_cv_has_bison+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   for ac_prog in 'bison -y' byacc
6353 do
6354   # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_YACC+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   if test -n "$YACC"; then
6362   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369   for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_prog_YACC="$ac_prog"
6372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 YACC=$ac_cv_prog_YACC
6382 if test -n "$YACC"; then
6383   { echo "$as_me:$LINENO: result: $YACC" >&5
6384 echo "${ECHO_T}$YACC" >&6; }
6385 else
6386   { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6388 fi
6389
6390
6391   test -n "$YACC" && break
6392 done
6393 test -n "$YACC" || YACC="yacc"
6394
6395 fi
6396 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6397 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6398 if test "$YACC" != "bison -y"; then
6399
6400   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6401 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6402 else
6403   BISON=bison
6404
6405 fi
6406
6407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409 if test "${lt_cv_path_NM+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   if test -n "$NM"; then
6413   # Let the user override the test.
6414   lt_cv_path_NM="$NM"
6415 else
6416   lt_nm_to_check="${ac_tool_prefix}nm"
6417   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418     lt_nm_to_check="$lt_nm_to_check nm"
6419   fi
6420   for lt_tmp_nm in $lt_nm_to_check; do
6421     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6423       IFS="$lt_save_ifs"
6424       test -z "$ac_dir" && ac_dir=.
6425       tmp_nm="$ac_dir/$lt_tmp_nm"
6426       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427         # Check to see if the nm accepts a BSD-compat flag.
6428         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429         #   nm: unknown option "B" ignored
6430         # Tru64's nm complains that /dev/null is an invalid object file
6431         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432         */dev/null* | *'Invalid file or object type'*)
6433           lt_cv_path_NM="$tmp_nm -B"
6434           break
6435           ;;
6436         *)
6437           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6438           */dev/null*)
6439             lt_cv_path_NM="$tmp_nm -p"
6440             break
6441             ;;
6442           *)
6443             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444             continue # so that we can try to find one that supports BSD flags
6445             ;;
6446           esac
6447           ;;
6448         esac
6449       fi
6450     done
6451     IFS="$lt_save_ifs"
6452   done
6453   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6454 fi
6455 fi
6456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6458 NM="$lt_cv_path_NM"
6459
6460
6461
6462 { echo "$as_me:$LINENO: checking for GNU make" >&5
6463 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6464 if test "${llvm_cv_gnu_make_command+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   llvm_cv_gnu_make_command=''
6468  for a in "$MAKE" make gmake gnumake ; do
6469   if test -z "$a" ; then continue ; fi ;
6470   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6471   then
6472    llvm_cv_gnu_make_command=$a ;
6473    break;
6474   fi
6475  done
6476 fi
6477 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6478 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6479  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6480    ifGNUmake='' ;
6481  else
6482    ifGNUmake='#' ;
6483    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6484 echo "${ECHO_T}\"Not found\"" >&6; };
6485  fi
6486
6487
6488 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6489 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6490 LN_S=$as_ln_s
6491 if test "$LN_S" = "ln -s"; then
6492   { echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6; }
6494 else
6495   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6496 echo "${ECHO_T}no, using $LN_S" >&6; }
6497 fi
6498
6499 # Extract the first word of "cmp", so it can be a program name with args.
6500 set dummy cmp; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_CMP+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   case $CMP in
6507   [\\/]* | ?:[\\/]*)
6508   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6509   ;;
6510   *)
6511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516   for ac_exec_ext in '' $ac_executable_extensions; do
6517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6527   ;;
6528 esac
6529 fi
6530 CMP=$ac_cv_path_CMP
6531 if test -n "$CMP"; then
6532   { echo "$as_me:$LINENO: result: $CMP" >&5
6533 echo "${ECHO_T}$CMP" >&6; }
6534 else
6535   { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6537 fi
6538
6539
6540 # Extract the first word of "cp", so it can be a program name with args.
6541 set dummy cp; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_CP+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   case $CP in
6548   [\\/]* | ?:[\\/]*)
6549   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6550   ;;
6551   *)
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6568   ;;
6569 esac
6570 fi
6571 CP=$ac_cv_path_CP
6572 if test -n "$CP"; then
6573   { echo "$as_me:$LINENO: result: $CP" >&5
6574 echo "${ECHO_T}$CP" >&6; }
6575 else
6576   { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6578 fi
6579
6580
6581 # Extract the first word of "date", so it can be a program name with args.
6582 set dummy date; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_DATE+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   case $DATE in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6609   ;;
6610 esac
6611 fi
6612 DATE=$ac_cv_path_DATE
6613 if test -n "$DATE"; then
6614   { echo "$as_me:$LINENO: result: $DATE" >&5
6615 echo "${ECHO_T}$DATE" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621
6622 # Extract the first word of "find", so it can be a program name with args.
6623 set dummy find; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_FIND+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   case $FIND in
6630   [\\/]* | ?:[\\/]*)
6631   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6632   ;;
6633   *)
6634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6650   ;;
6651 esac
6652 fi
6653 FIND=$ac_cv_path_FIND
6654 if test -n "$FIND"; then
6655   { echo "$as_me:$LINENO: result: $FIND" >&5
6656 echo "${ECHO_T}$FIND" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 # Extract the first word of "grep", so it can be a program name with args.
6664 set dummy grep; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_GREP+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   case $GREP in
6671   [\\/]* | ?:[\\/]*)
6672   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6673   ;;
6674   *)
6675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6691   ;;
6692 esac
6693 fi
6694 GREP=$ac_cv_path_GREP
6695 if test -n "$GREP"; then
6696   { echo "$as_me:$LINENO: result: $GREP" >&5
6697 echo "${ECHO_T}$GREP" >&6; }
6698 else
6699   { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704 # Extract the first word of "mkdir", so it can be a program name with args.
6705 set dummy mkdir; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_MKDIR+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $MKDIR in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6732   ;;
6733 esac
6734 fi
6735 MKDIR=$ac_cv_path_MKDIR
6736 if test -n "$MKDIR"; then
6737   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6738 echo "${ECHO_T}$MKDIR" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 # Extract the first word of "mv", so it can be a program name with args.
6746 set dummy mv; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_MV+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   case $MV in
6753   [\\/]* | ?:[\\/]*)
6754   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6755   ;;
6756   *)
6757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6773   ;;
6774 esac
6775 fi
6776 MV=$ac_cv_path_MV
6777 if test -n "$MV"; then
6778   { echo "$as_me:$LINENO: result: $MV" >&5
6779 echo "${ECHO_T}$MV" >&6; }
6780 else
6781   { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6783 fi
6784
6785
6786 if test -n "$ac_tool_prefix"; then
6787   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_RANLIB+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   if test -n "$RANLIB"; then
6795   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6817 echo "${ECHO_T}$RANLIB" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826   ac_ct_RANLIB=$RANLIB
6827   # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   if test -n "$ac_ct_RANLIB"; then
6835   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842   for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_prog_ac_ct_RANLIB="ranlib"
6845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855 if test -n "$ac_ct_RANLIB"; then
6856   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6857 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6858 else
6859   { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 fi
6862
6863   if test "x$ac_ct_RANLIB" = x; then
6864     RANLIB=":"
6865   else
6866     case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet.  If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&5
6871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet.  If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876     RANLIB=$ac_ct_RANLIB
6877   fi
6878 else
6879   RANLIB="$ac_cv_prog_RANLIB"
6880 fi
6881
6882 # Extract the first word of "rm", so it can be a program name with args.
6883 set dummy rm; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_RM+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $RM in
6890   [\\/]* | ?:[\\/]*)
6891   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6892   ;;
6893   *)
6894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6910   ;;
6911 esac
6912 fi
6913 RM=$ac_cv_path_RM
6914 if test -n "$RM"; then
6915   { echo "$as_me:$LINENO: result: $RM" >&5
6916 echo "${ECHO_T}$RM" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 # Extract the first word of "sed", so it can be a program name with args.
6924 set dummy sed; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_SED+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $SED in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6951   ;;
6952 esac
6953 fi
6954 SED=$ac_cv_path_SED
6955 if test -n "$SED"; then
6956   { echo "$as_me:$LINENO: result: $SED" >&5
6957 echo "${ECHO_T}$SED" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963
6964 # Extract the first word of "tar", so it can be a program name with args.
6965 set dummy tar; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_TAR+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   case $TAR in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981   for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6992   ;;
6993 esac
6994 fi
6995 TAR=$ac_cv_path_TAR
6996 if test -n "$TAR"; then
6997   { echo "$as_me:$LINENO: result: $TAR" >&5
6998 echo "${ECHO_T}$TAR" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004
7005 # Extract the first word of "pwd", so it can be a program name with args.
7006 set dummy pwd; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_BINPWD+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   case $BINPWD in
7013   [\\/]* | ?:[\\/]*)
7014   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7015   ;;
7016   *)
7017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7033   ;;
7034 esac
7035 fi
7036 BINPWD=$ac_cv_path_BINPWD
7037 if test -n "$BINPWD"; then
7038   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7039 echo "${ECHO_T}$BINPWD" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045
7046
7047 # Extract the first word of "Graphviz", so it can be a program name with args.
7048 set dummy Graphviz; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   case $GRAPHVIZ in
7055   [\\/]* | ?:[\\/]*)
7056   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7057   ;;
7058   *)
7059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7075   ;;
7076 esac
7077 fi
7078 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7079 if test -n "$GRAPHVIZ"; then
7080   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7081 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7082 else
7083   { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7085 fi
7086
7087
7088 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7089
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_GRAPHVIZ 1
7092 _ACEOF
7093
7094     if test "$llvm_cv_os_type" == "MingW" ; then
7095     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7096   fi
7097
7098 cat >>confdefs.h <<_ACEOF
7099 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7100 _ACEOF
7101
7102 fi
7103 # Extract the first word of "dot", so it can be a program name with args.
7104 set dummy dot; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_DOT+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   case $DOT in
7111   [\\/]* | ?:[\\/]*)
7112   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7113   ;;
7114   *)
7115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120   for ac_exec_ext in '' $ac_executable_extensions; do
7121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7131   ;;
7132 esac
7133 fi
7134 DOT=$ac_cv_path_DOT
7135 if test -n "$DOT"; then
7136   { echo "$as_me:$LINENO: result: $DOT" >&5
7137 echo "${ECHO_T}$DOT" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143
7144 if test "$DOT" != "echo dot" ; then
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DOT 1
7148 _ACEOF
7149
7150     if test "$llvm_cv_os_type" == "MingW" ; then
7151     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7152   fi
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7156 _ACEOF
7157
7158 fi
7159 for ac_prog in gv gsview32
7160 do
7161   # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_GV+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   case $GV in
7169   [\\/]* | ?:[\\/]*)
7170   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7171   ;;
7172   *)
7173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188   ;;
7189 esac
7190 fi
7191 GV=$ac_cv_path_GV
7192 if test -n "$GV"; then
7193   { echo "$as_me:$LINENO: result: $GV" >&5
7194 echo "${ECHO_T}$GV" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200
7201   test -n "$GV" && break
7202 done
7203 test -n "$GV" || GV="echo gv"
7204
7205 if test "$GV" != "echo gv" ; then
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define HAVE_GV 1
7209 _ACEOF
7210
7211     if test "$llvm_cv_os_type" == "MingW" ; then
7212     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7213   fi
7214
7215 cat >>confdefs.h <<_ACEOF
7216 #define LLVM_PATH_GV "$GV${EXEEXT}"
7217 _ACEOF
7218
7219 fi
7220 # Extract the first word of "dotty", so it can be a program name with args.
7221 set dummy dotty; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_DOTTY+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   case $DOTTY in
7228   [\\/]* | ?:[\\/]*)
7229   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7230   ;;
7231   *)
7232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237   for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7248   ;;
7249 esac
7250 fi
7251 DOTTY=$ac_cv_path_DOTTY
7252 if test -n "$DOTTY"; then
7253   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7254 echo "${ECHO_T}$DOTTY" >&6; }
7255 else
7256   { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7258 fi
7259
7260
7261 if test "$DOTTY" != "echo dotty" ; then
7262
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_DOTTY 1
7265 _ACEOF
7266
7267     if test "$llvm_cv_os_type" == "MingW" ; then
7268     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7269   fi
7270
7271 cat >>confdefs.h <<_ACEOF
7272 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7273 _ACEOF
7274
7275 fi
7276
7277
7278 # Extract the first word of "perl", so it can be a program name with args.
7279 set dummy perl; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_PERL+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $PERL in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7306   ;;
7307 esac
7308 fi
7309 PERL=$ac_cv_path_PERL
7310 if test -n "$PERL"; then
7311   { echo "$as_me:$LINENO: result: $PERL" >&5
7312 echo "${ECHO_T}$PERL" >&6; }
7313 else
7314   { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7316 fi
7317
7318
7319 if test "$PERL" != "none"; then
7320   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7321 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7322   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7323     { echo "$as_me:$LINENO: result: yes" >&5
7324 echo "${ECHO_T}yes" >&6; }
7325   else
7326     PERL=none
7327     { echo "$as_me:$LINENO: result: not found" >&5
7328 echo "${ECHO_T}not found" >&6; }
7329   fi
7330 fi
7331
7332
7333 if test x"$PERL" = xnone; then
7334    HAVE_PERL=0
7335
7336 else
7337    HAVE_PERL=1
7338
7339 fi
7340
7341 # Find a good install program.  We prefer a C program (faster),
7342 # so one script is as good as another.  But avoid the broken or
7343 # incompatible versions:
7344 # SysV /etc/install, /usr/sbin/install
7345 # SunOS /usr/etc/install
7346 # IRIX /sbin/install
7347 # AIX /bin/install
7348 # AmigaOS /C/install, which installs bootblocks on floppy discs
7349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7352 # OS/2's system install, which has a completely different semantic
7353 # ./install, which can be erroneously created by make from ./install.sh.
7354 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7356 if test -z "$INSTALL"; then
7357 if test "${ac_cv_path_install+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   # Account for people who put trailing slashes in PATH elements.
7366 case $as_dir/ in
7367   ./ | .// | /cC/* | \
7368   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7369   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7370   /usr/ucb/* ) ;;
7371   *)
7372     # OSF1 and SCO ODT 3.0 have their own names for install.
7373     # Don't use installbsd from OSF since it installs stuff as root
7374     # by default.
7375     for ac_prog in ginstall scoinst install; do
7376       for ac_exec_ext in '' $ac_executable_extensions; do
7377         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7378           if test $ac_prog = install &&
7379             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7380             # AIX install.  It has an incompatible calling convention.
7381             :
7382           elif test $ac_prog = install &&
7383             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7384             # program-specific install script used by HP pwplus--don't use.
7385             :
7386           else
7387             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7388             break 3
7389           fi
7390         fi
7391       done
7392     done
7393     ;;
7394 esac
7395 done
7396 IFS=$as_save_IFS
7397
7398
7399 fi
7400   if test "${ac_cv_path_install+set}" = set; then
7401     INSTALL=$ac_cv_path_install
7402   else
7403     # As a last resort, use the slow shell script.  Don't cache a
7404     # value for INSTALL within a source directory, because that will
7405     # break other packages using the cache if that directory is
7406     # removed, or if the value is a relative name.
7407     INSTALL=$ac_install_sh
7408   fi
7409 fi
7410 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7411 echo "${ECHO_T}$INSTALL" >&6; }
7412
7413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7414 # It thinks the first close brace ends the variable substitution.
7415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7416
7417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7418
7419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7420
7421
7422 # Extract the first word of "bzip2", so it can be a program name with args.
7423 set dummy bzip2; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_BZIP2+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   case $BZIP2 in
7430   [\\/]* | ?:[\\/]*)
7431   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7432   ;;
7433   *)
7434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439   for ac_exec_ext in '' $ac_executable_extensions; do
7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7450   ;;
7451 esac
7452 fi
7453 BZIP2=$ac_cv_path_BZIP2
7454 if test -n "$BZIP2"; then
7455   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7456 echo "${ECHO_T}$BZIP2" >&6; }
7457 else
7458   { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7460 fi
7461
7462
7463 # Extract the first word of "doxygen", so it can be a program name with args.
7464 set dummy doxygen; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $DOXYGEN in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7491   ;;
7492 esac
7493 fi
7494 DOXYGEN=$ac_cv_path_DOXYGEN
7495 if test -n "$DOXYGEN"; then
7496   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7497 echo "${ECHO_T}$DOXYGEN" >&6; }
7498 else
7499   { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7501 fi
7502
7503
7504 # Extract the first word of "groff", so it can be a program name with args.
7505 set dummy groff; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_GROFF+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   case $GROFF in
7512   [\\/]* | ?:[\\/]*)
7513   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7514   ;;
7515   *)
7516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7532   ;;
7533 esac
7534 fi
7535 GROFF=$ac_cv_path_GROFF
7536 if test -n "$GROFF"; then
7537   { echo "$as_me:$LINENO: result: $GROFF" >&5
7538 echo "${ECHO_T}$GROFF" >&6; }
7539 else
7540   { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7542 fi
7543
7544
7545 # Extract the first word of "gzip", so it can be a program name with args.
7546 set dummy gzip; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GZIP+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   case $GZIP in
7553   [\\/]* | ?:[\\/]*)
7554   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7555   ;;
7556   *)
7557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562   for ac_exec_ext in '' $ac_executable_extensions; do
7563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7573   ;;
7574 esac
7575 fi
7576 GZIP=$ac_cv_path_GZIP
7577 if test -n "$GZIP"; then
7578   { echo "$as_me:$LINENO: result: $GZIP" >&5
7579 echo "${ECHO_T}$GZIP" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585
7586 # Extract the first word of "pod2html", so it can be a program name with args.
7587 set dummy pod2html; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_POD2HTML+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   case $POD2HTML in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7614   ;;
7615 esac
7616 fi
7617 POD2HTML=$ac_cv_path_POD2HTML
7618 if test -n "$POD2HTML"; then
7619   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7620 echo "${ECHO_T}$POD2HTML" >&6; }
7621 else
7622   { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7624 fi
7625
7626
7627 # Extract the first word of "pod2man", so it can be a program name with args.
7628 set dummy pod2man; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_POD2MAN+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   case $POD2MAN in
7635   [\\/]* | ?:[\\/]*)
7636   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7637   ;;
7638   *)
7639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644   for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7655   ;;
7656 esac
7657 fi
7658 POD2MAN=$ac_cv_path_POD2MAN
7659 if test -n "$POD2MAN"; then
7660   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7661 echo "${ECHO_T}$POD2MAN" >&6; }
7662 else
7663   { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7665 fi
7666
7667
7668 # Extract the first word of "runtest", so it can be a program name with args.
7669 set dummy runtest; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_RUNTEST+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   case $RUNTEST in
7676   [\\/]* | ?:[\\/]*)
7677   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7678   ;;
7679   *)
7680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7696   ;;
7697 esac
7698 fi
7699 RUNTEST=$ac_cv_path_RUNTEST
7700 if test -n "$RUNTEST"; then
7701   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7702 echo "${ECHO_T}$RUNTEST" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709
7710 no_itcl=true
7711 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7712 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7713
7714 # Check whether --with-tclinclude was given.
7715 if test "${with_tclinclude+set}" = set; then
7716   withval=$with_tclinclude; with_tclinclude=${withval}
7717 else
7718   with_tclinclude=''
7719 fi
7720
7721 if test "${ac_cv_path_tclsh+set}" = set; then
7722   echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724
7725 if test x"${with_tclinclude}" != x ; then
7726   if test -f ${with_tclinclude}/tclsh ; then
7727     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7728   elif test -f ${with_tclinclude}/src/tclsh ; then
7729     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7730   else
7731     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7732 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7733    { (exit 1); exit 1; }; }
7734   fi
7735 fi
7736
7737 if test x"${ac_cv_path_tclsh}" = x ; then
7738   { echo "$as_me:$LINENO: result: none" >&5
7739 echo "${ECHO_T}none" >&6; }
7740   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
7741 do
7742   # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_TCLSH+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   case $TCLSH in
7750   [\\/]* | ?:[\\/]*)
7751   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7752   ;;
7753   *)
7754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769   ;;
7770 esac
7771 fi
7772 TCLSH=$ac_cv_path_TCLSH
7773 if test -n "$TCLSH"; then
7774   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7775 echo "${ECHO_T}$TCLSH" >&6; }
7776 else
7777   { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7779 fi
7780
7781
7782   test -n "$TCLSH" && break
7783 done
7784
7785   if test x"${TCLSH}" = x ; then
7786     ac_cv_path_tclsh='';
7787   else
7788     ac_cv_path_tclsh="${TCLSH}";
7789   fi
7790 else
7791   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7792 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7793   TCLSH="${ac_cv_path_tclsh}"
7794
7795 fi
7796
7797 fi
7798
7799 # Extract the first word of "zip", so it can be a program name with args.
7800 set dummy zip; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_path_ZIP+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   case $ZIP in
7807   [\\/]* | ?:[\\/]*)
7808   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7809   ;;
7810   *)
7811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816   for ac_exec_ext in '' $ac_executable_extensions; do
7817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7818     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7827   ;;
7828 esac
7829 fi
7830 ZIP=$ac_cv_path_ZIP
7831 if test -n "$ZIP"; then
7832   { echo "$as_me:$LINENO: result: $ZIP" >&5
7833 echo "${ECHO_T}$ZIP" >&6; }
7834 else
7835   { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7837 fi
7838
7839
7840
7841 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7842 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7843 if test "${llvm_cv_link_use_r+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846    ac_ext=c
7847 ac_cpp='$CPP $CPPFLAGS'
7848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851
7852   oldcflags="$CFLAGS"
7853   CFLAGS="$CFLAGS -Wl,-R."
7854   cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860
7861 int
7862 main ()
7863 {
7864 int main() { return 0; }
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest.$ac_objext conftest$ac_exeext
7870 if { (ac_try="$ac_link"
7871 case "(($ac_try" in
7872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873   *) ac_try_echo=$ac_try;;
7874 esac
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876   (eval "$ac_link") 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884   { (case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_try") 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; } &&
7893          { ac_try='test -s conftest$ac_exeext'
7894   { (case "(($ac_try" in
7895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896   *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899   (eval "$ac_try") 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   llvm_cv_link_use_r=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908         llvm_cv_link_use_r=no
7909 fi
7910
7911 rm -f core conftest.err conftest.$ac_objext \
7912       conftest$ac_exeext conftest.$ac_ext
7913   CFLAGS="$oldcflags"
7914   ac_ext=c
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919
7920
7921 fi
7922 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7923 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7924 if test "$llvm_cv_link_use_r" = yes ; then
7925
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_LINK_R 1
7928 _ACEOF
7929
7930   fi
7931
7932
7933
7934
7935 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7936 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7937 if test "${ac_cv_c_const+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946
7947 int
7948 main ()
7949 {
7950 /* FIXME: Include the comments suggested by Paul. */
7951 #ifndef __cplusplus
7952   /* Ultrix mips cc rejects this.  */
7953   typedef int charset[2];
7954   const charset x;
7955   /* SunOS 4.1.1 cc rejects this.  */
7956   char const *const *ccp;
7957   char **p;
7958   /* NEC SVR4.0.2 mips cc rejects this.  */
7959   struct point {int x, y;};
7960   static struct point const zero = {0,0};
7961   /* AIX XL C 1.02.0.0 rejects this.
7962      It does not let you subtract one const X* pointer from another in
7963      an arm of an if-expression whose if-part is not a constant
7964      expression */
7965   const char *g = "string";
7966   ccp = &g + (g ? g-g : 0);
7967   /* HPUX 7.0 cc rejects these. */
7968   ++ccp;
7969   p = (char**) ccp;
7970   ccp = (char const *const *) p;
7971   { /* SCO 3.2v4 cc rejects this.  */
7972     char *t;
7973     char const *s = 0 ? (char *) 0 : (char const *) 0;
7974
7975     *t++ = 0;
7976     if (s) return 0;
7977   }
7978   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7979     int x[] = {25, 17};
7980     const int *foo = &x[0];
7981     ++foo;
7982   }
7983   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7984     typedef const int *iptr;
7985     iptr p = 0;
7986     ++p;
7987   }
7988   { /* AIX XL C 1.02.0.0 rejects this saying
7989        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7990     struct s { int j; const int *ap[3]; };
7991     struct s *b; b->j = 5;
7992   }
7993   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7994     const int foo = 10;
7995     if (!foo) return 0;
7996   }
7997   return !x[0] && !zero.x;
7998 #endif
7999
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008   *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011   (eval "$ac_compile") 2>conftest.er1
8012   ac_status=$?
8013   grep -v '^ *+' conftest.er1 >conftest.err
8014   rm -f conftest.er1
8015   cat conftest.err >&5
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8019   { (case "(($ac_try" in
8020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021   *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024   (eval "$ac_try") 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }; } &&
8028          { ac_try='test -s conftest.$ac_objext'
8029   { (case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_try") 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; }; then
8038   ac_cv_c_const=yes
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043         ac_cv_c_const=no
8044 fi
8045
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8049 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8050 if test $ac_cv_c_const = no; then
8051
8052 cat >>confdefs.h <<\_ACEOF
8053 #define const
8054 _ACEOF
8055
8056 fi
8057
8058
8059
8060
8061
8062
8063 ac_header_dirent=no
8064 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8065   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8066 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8067 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077 #include <sys/types.h>
8078 #include <$ac_hdr>
8079
8080 int
8081 main ()
8082 {
8083 if ((DIR *) 0)
8084 return 0;
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8091 case "(($ac_try" in
8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093   *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096   (eval "$ac_compile") 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } &&
8103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104   { (case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109   (eval "$ac_try") 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest.$ac_objext'
8114   { (case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_try") 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   eval "$as_ac_Header=yes"
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128         eval "$as_ac_Header=no"
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 ac_res=`eval echo '${'$as_ac_Header'}'`
8134                { echo "$as_me:$LINENO: result: $ac_res" >&5
8135 echo "${ECHO_T}$ac_res" >&6; }
8136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8137   cat >>confdefs.h <<_ACEOF
8138 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8139 _ACEOF
8140
8141 ac_header_dirent=$ac_hdr; break
8142 fi
8143
8144 done
8145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8146 if test $ac_header_dirent = dirent.h; then
8147   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8149 if test "${ac_cv_search_opendir+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   ac_func_search_save_LIBS=$LIBS
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h.  */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h.  */
8159
8160 /* Override any GCC internal prototype to avoid an error.
8161    Use char because int might match the return type of a GCC
8162    builtin and then its argument prototype would still apply.  */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 char opendir ();
8167 int
8168 main ()
8169 {
8170 return opendir ();
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 for ac_lib in '' dir; do
8176   if test -z "$ac_lib"; then
8177     ac_res="none required"
8178   else
8179     ac_res=-l$ac_lib
8180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8181   fi
8182   rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (ac_try="$ac_link"
8184 case "(($ac_try" in
8185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186   *) ac_try_echo=$ac_try;;
8187 esac
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189   (eval "$ac_link") 2>conftest.er1
8190   ac_status=$?
8191   grep -v '^ *+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8197   { (case "(($ac_try" in
8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199   *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202   (eval "$ac_try") 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; } &&
8206          { ac_try='test -s conftest$ac_exeext'
8207   { (case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_try") 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; }; then
8216   ac_cv_search_opendir=$ac_res
8217 else
8218   echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221
8222 fi
8223
8224 rm -f core conftest.err conftest.$ac_objext \
8225       conftest$ac_exeext
8226   if test "${ac_cv_search_opendir+set}" = set; then
8227   break
8228 fi
8229 done
8230 if test "${ac_cv_search_opendir+set}" = set; then
8231   :
8232 else
8233   ac_cv_search_opendir=no
8234 fi
8235 rm conftest.$ac_ext
8236 LIBS=$ac_func_search_save_LIBS
8237 fi
8238 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8239 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8240 ac_res=$ac_cv_search_opendir
8241 if test "$ac_res" != no; then
8242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8243
8244 fi
8245
8246 else
8247   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8249 if test "${ac_cv_search_opendir+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   ac_func_search_save_LIBS=$LIBS
8253 cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259
8260 /* Override any GCC internal prototype to avoid an error.
8261    Use char because int might match the return type of a GCC
8262    builtin and then its argument prototype would still apply.  */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 char opendir ();
8267 int
8268 main ()
8269 {
8270 return opendir ();
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 for ac_lib in '' x; do
8276   if test -z "$ac_lib"; then
8277     ac_res="none required"
8278   else
8279     ac_res=-l$ac_lib
8280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8281   fi
8282   rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (ac_try="$ac_link"
8284 case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_link") 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297   { (case "(($ac_try" in
8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299   *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302   (eval "$ac_try") 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest$ac_exeext'
8307   { (case "(($ac_try" in
8308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309   *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312   (eval "$ac_try") 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_search_opendir=$ac_res
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321
8322 fi
8323
8324 rm -f core conftest.err conftest.$ac_objext \
8325       conftest$ac_exeext
8326   if test "${ac_cv_search_opendir+set}" = set; then
8327   break
8328 fi
8329 done
8330 if test "${ac_cv_search_opendir+set}" = set; then
8331   :
8332 else
8333   ac_cv_search_opendir=no
8334 fi
8335 rm conftest.$ac_ext
8336 LIBS=$ac_func_search_save_LIBS
8337 fi
8338 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8339 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8340 ac_res=$ac_cv_search_opendir
8341 if test "$ac_res" != no; then
8342   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8343
8344 fi
8345
8346 fi
8347
8348
8349 for ac_header in dlfcn.h
8350 do
8351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 fi
8358 ac_res=`eval echo '${'$as_ac_Header'}'`
8359                { echo "$as_me:$LINENO: result: $ac_res" >&5
8360 echo "${ECHO_T}$ac_res" >&6; }
8361 else
8362   # Is the header compilable?
8363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371 $ac_includes_default
8372 #include <$ac_header>
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } &&
8388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389   { (case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394   (eval "$ac_try") 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; } &&
8398          { ac_try='test -s conftest.$ac_objext'
8399   { (case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_try") 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_header_compiler=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413         ac_header_compiler=no
8414 fi
8415
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8418 echo "${ECHO_T}$ac_header_compiler" >&6; }
8419
8420 # Is the header present?
8421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429 #include <$ac_header>
8430 _ACEOF
8431 if { (ac_try="$ac_cpp conftest.$ac_ext"
8432 case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8438   ac_status=$?
8439   grep -v '^ *+' conftest.er1 >conftest.err
8440   rm -f conftest.er1
8441   cat conftest.err >&5
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } >/dev/null; then
8444   if test -s conftest.err; then
8445     ac_cpp_err=$ac_c_preproc_warn_flag
8446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8447   else
8448     ac_cpp_err=
8449   fi
8450 else
8451   ac_cpp_err=yes
8452 fi
8453 if test -z "$ac_cpp_err"; then
8454   ac_header_preproc=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459   ac_header_preproc=no
8460 fi
8461
8462 rm -f conftest.err conftest.$ac_ext
8463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464 echo "${ECHO_T}$ac_header_preproc" >&6; }
8465
8466 # So?  What about this header?
8467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468   yes:no: )
8469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8473     ac_header_preproc=yes
8474     ;;
8475   no:yes:* )
8476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8488     ( cat <<\_ASBOX
8489 ## ----------------------------------- ##
8490 ## Report this to llvmbugs@cs.uiuc.edu ##
8491 ## ----------------------------------- ##
8492 _ASBOX
8493      ) | sed "s/^/$as_me: WARNING:     /" >&2
8494     ;;
8495 esac
8496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   eval "$as_ac_Header=\$ac_header_preproc"
8502 fi
8503 ac_res=`eval echo '${'$as_ac_Header'}'`
8504                { echo "$as_me:$LINENO: result: $ac_res" >&5
8505 echo "${ECHO_T}$ac_res" >&6; }
8506
8507 fi
8508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509   cat >>confdefs.h <<_ACEOF
8510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8511 _ACEOF
8512
8513 fi
8514
8515 done
8516
8517 # Check whether --enable-ltdl-install was given.
8518 if test "${enable_ltdl_install+set}" = set; then
8519   enableval=$enable_ltdl_install;
8520 fi
8521
8522
8523
8524
8525 if test x"${enable_ltdl_install-no}" != xno; then
8526   INSTALL_LTDL_TRUE=
8527   INSTALL_LTDL_FALSE='#'
8528 else
8529   INSTALL_LTDL_TRUE='#'
8530   INSTALL_LTDL_FALSE=
8531 fi
8532
8533
8534
8535 if test x"${enable_ltdl_convenience-no}" != xno; then
8536   CONVENIENCE_LTDL_TRUE=
8537   CONVENIENCE_LTDL_FALSE='#'
8538 else
8539   CONVENIENCE_LTDL_TRUE='#'
8540   CONVENIENCE_LTDL_FALSE=
8541 fi
8542
8543
8544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8546 library_names_spec=
8547 libname_spec='lib$name'
8548 soname_spec=
8549 shrext_cmds=".so"
8550 postinstall_cmds=
8551 postuninstall_cmds=
8552 finish_cmds=
8553 finish_eval=
8554 shlibpath_var=
8555 shlibpath_overrides_runpath=unknown
8556 version_type=none
8557 dynamic_linker="$host_os ld.so"
8558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559 if test "$GCC" = yes; then
8560   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562     # if the path contains ";" then we assume it to be the separator
8563     # otherwise default to the standard path separator (i.e. ":") - it is
8564     # assumed that no part of a normal pathname contains ";" but that should
8565     # okay in the real world where ";" in dirpaths is itself problematic.
8566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8567   else
8568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8569   fi
8570 else
8571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572 fi
8573 need_lib_prefix=unknown
8574 hardcode_into_libs=no
8575
8576 # when you set need_version to no, make sure it does not cause -set_version
8577 # flags to be left without arguments
8578 need_version=unknown
8579
8580 case $host_os in
8581 aix3*)
8582   version_type=linux
8583   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584   shlibpath_var=LIBPATH
8585
8586   # AIX 3 has no versioning support, so we append a major version to the name.
8587   soname_spec='${libname}${release}${shared_ext}$major'
8588   ;;
8589
8590 aix4* | aix5*)
8591   version_type=linux
8592   need_lib_prefix=no
8593   need_version=no
8594   hardcode_into_libs=yes
8595   if test "$host_cpu" = ia64; then
8596     # AIX 5 supports IA64
8597     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598     shlibpath_var=LD_LIBRARY_PATH
8599   else
8600     # With GCC up to 2.95.x, collect2 would create an import file
8601     # for dependence libraries.  The import file would start with
8602     # the line `#! .'.  This would cause the generated library to
8603     # depend on `.', always an invalid library.  This was fixed in
8604     # development snapshots of GCC prior to 3.0.
8605     case $host_os in
8606       aix4 | aix4.[01] | aix4.[01].*)
8607       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8608            echo ' yes '
8609            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8610         :
8611       else
8612         can_build_shared=no
8613       fi
8614       ;;
8615     esac
8616     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617     # soname into executable. Probably we can add versioning support to
8618     # collect2, so additional links can be useful in future.
8619     if test "$aix_use_runtimelinking" = yes; then
8620       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621       # instead of lib<name>.a to let people know that these are not
8622       # typical AIX shared libraries.
8623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624     else
8625       # We preserve .a as extension for shared libraries through AIX4.2
8626       # and later when we are not doing run time linking.
8627       library_names_spec='${libname}${release}.a $libname.a'
8628       soname_spec='${libname}${release}${shared_ext}$major'
8629     fi
8630     shlibpath_var=LIBPATH
8631   fi
8632   ;;
8633
8634 amigaos*)
8635   library_names_spec='$libname.ixlibrary $libname.a'
8636   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8637   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'
8638   ;;
8639
8640 beos*)
8641   library_names_spec='${libname}${shared_ext}'
8642   dynamic_linker="$host_os ld.so"
8643   shlibpath_var=LIBRARY_PATH
8644   ;;
8645
8646 bsdi[45]*)
8647   version_type=linux
8648   need_version=no
8649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650   soname_spec='${libname}${release}${shared_ext}$major'
8651   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652   shlibpath_var=LD_LIBRARY_PATH
8653   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655   # the default ld.so.conf also contains /usr/contrib/lib and
8656   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657   # libtool to hard-code these into programs
8658   ;;
8659
8660 cygwin* | mingw* | pw32*)
8661   version_type=windows
8662   shrext_cmds=".dll"
8663   need_version=no
8664   need_lib_prefix=no
8665
8666   case $GCC,$host_os in
8667   yes,cygwin* | yes,mingw* | yes,pw32*)
8668     library_names_spec='$libname.dll.a'
8669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8670     postinstall_cmds='base_file=`basename \${file}`~
8671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672       dldir=$destdir/`dirname \$dlpath`~
8673       test -d \$dldir || mkdir -p \$dldir~
8674       $install_prog $dir/$dlname \$dldir/$dlname~
8675       chmod a+x \$dldir/$dlname'
8676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677       dlpath=$dir/\$dldll~
8678        $rm \$dlpath'
8679     shlibpath_overrides_runpath=yes
8680
8681     case $host_os in
8682     cygwin*)
8683       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8686       ;;
8687     mingw*)
8688       # MinGW DLLs use traditional 'lib' prefix
8689       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692         # It is most probably a Windows format PATH printed by
8693         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8694         # path with ; separators, and with drive letters. We can handle the
8695         # drive letters (cygwin fileutils understands them), so leave them,
8696         # especially as we might pass files found there to a mingw objdump,
8697         # which wouldn't understand a cygwinified path. Ahh.
8698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8699       else
8700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8701       fi
8702       ;;
8703     pw32*)
8704       # pw32 DLLs use 'pw' prefix rather than 'lib'
8705       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706       ;;
8707     esac
8708     ;;
8709
8710   *)
8711     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8712     ;;
8713   esac
8714   dynamic_linker='Win32 ld.exe'
8715   # FIXME: first we should search . and the directory the executable is in
8716   shlibpath_var=PATH
8717   ;;
8718
8719 darwin* | rhapsody*)
8720   dynamic_linker="$host_os dyld"
8721   version_type=darwin
8722   need_lib_prefix=no
8723   need_version=no
8724   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8725   soname_spec='${libname}${release}${major}$shared_ext'
8726   shlibpath_overrides_runpath=yes
8727   shlibpath_var=DYLD_LIBRARY_PATH
8728   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8729   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8730   if test "$GCC" = yes; then
8731     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"`
8732   else
8733     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8734   fi
8735   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8736   ;;
8737
8738 dgux*)
8739   version_type=linux
8740   need_lib_prefix=no
8741   need_version=no
8742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8743   soname_spec='${libname}${release}${shared_ext}$major'
8744   shlibpath_var=LD_LIBRARY_PATH
8745   ;;
8746
8747 freebsd1*)
8748   dynamic_linker=no
8749   ;;
8750
8751 kfreebsd*-gnu)
8752   version_type=linux
8753   need_lib_prefix=no
8754   need_version=no
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   shlibpath_overrides_runpath=no
8759   hardcode_into_libs=yes
8760   dynamic_linker='GNU ld.so'
8761   ;;
8762
8763 freebsd* | dragonfly*)
8764   # DragonFly does not have aout.  When/if they implement a new
8765   # versioning mechanism, adjust this.
8766   if test -x /usr/bin/objformat; then
8767     objformat=`/usr/bin/objformat`
8768   else
8769     case $host_os in
8770     freebsd[123]*) objformat=aout ;;
8771     *) objformat=elf ;;
8772     esac
8773   fi
8774   version_type=freebsd-$objformat
8775   case $version_type in
8776     freebsd-elf*)
8777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8778       need_version=no
8779       need_lib_prefix=no
8780       ;;
8781     freebsd-*)
8782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8783       need_version=yes
8784       ;;
8785   esac
8786   shlibpath_var=LD_LIBRARY_PATH
8787   case $host_os in
8788   freebsd2*)
8789     shlibpath_overrides_runpath=yes
8790     ;;
8791   freebsd3.[01]* | freebsdelf3.[01]*)
8792     shlibpath_overrides_runpath=yes
8793     hardcode_into_libs=yes
8794     ;;
8795   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8796   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8797     shlibpath_overrides_runpath=no
8798     hardcode_into_libs=yes
8799     ;;
8800   freebsd*) # from 4.6 on
8801     shlibpath_overrides_runpath=yes
8802     hardcode_into_libs=yes
8803     ;;
8804   esac
8805   ;;
8806
8807 gnu*)
8808   version_type=linux
8809   need_lib_prefix=no
8810   need_version=no
8811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8812   soname_spec='${libname}${release}${shared_ext}$major'
8813   shlibpath_var=LD_LIBRARY_PATH
8814   hardcode_into_libs=yes
8815   ;;
8816
8817 hpux9* | hpux10* | hpux11*)
8818   # Give a soname corresponding to the major version so that dld.sl refuses to
8819   # link against other versions.
8820   version_type=sunos
8821   need_lib_prefix=no
8822   need_version=no
8823   case $host_cpu in
8824   ia64*)
8825     shrext_cmds='.so'
8826     hardcode_into_libs=yes
8827     dynamic_linker="$host_os dld.so"
8828     shlibpath_var=LD_LIBRARY_PATH
8829     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8831     soname_spec='${libname}${release}${shared_ext}$major'
8832     if test "X$HPUX_IA64_MODE" = X32; then
8833       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8834     else
8835       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8836     fi
8837     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8838     ;;
8839    hppa*64*)
8840      shrext_cmds='.sl'
8841      hardcode_into_libs=yes
8842      dynamic_linker="$host_os dld.sl"
8843      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8844      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846      soname_spec='${libname}${release}${shared_ext}$major'
8847      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8848      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849      ;;
8850    *)
8851     shrext_cmds='.sl'
8852     dynamic_linker="$host_os dld.sl"
8853     shlibpath_var=SHLIB_PATH
8854     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856     soname_spec='${libname}${release}${shared_ext}$major'
8857     ;;
8858   esac
8859   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8860   postinstall_cmds='chmod 555 $lib'
8861   ;;
8862
8863 interix3*)
8864   version_type=linux
8865   need_lib_prefix=no
8866   need_version=no
8867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868   soname_spec='${libname}${release}${shared_ext}$major'
8869   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8870   shlibpath_var=LD_LIBRARY_PATH
8871   shlibpath_overrides_runpath=no
8872   hardcode_into_libs=yes
8873   ;;
8874
8875 irix5* | irix6* | nonstopux*)
8876   case $host_os in
8877     nonstopux*) version_type=nonstopux ;;
8878     *)
8879         if test "$lt_cv_prog_gnu_ld" = yes; then
8880                 version_type=linux
8881         else
8882                 version_type=irix
8883         fi ;;
8884   esac
8885   need_lib_prefix=no
8886   need_version=no
8887   soname_spec='${libname}${release}${shared_ext}$major'
8888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8889   case $host_os in
8890   irix5* | nonstopux*)
8891     libsuff= shlibsuff=
8892     ;;
8893   *)
8894     case $LD in # libtool.m4 will add one of these switches to LD
8895     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8896       libsuff= shlibsuff= libmagic=32-bit;;
8897     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8898       libsuff=32 shlibsuff=N32 libmagic=N32;;
8899     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8900       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8901     *) libsuff= shlibsuff= libmagic=never-match;;
8902     esac
8903     ;;
8904   esac
8905   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8906   shlibpath_overrides_runpath=no
8907   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8908   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8909   hardcode_into_libs=yes
8910   ;;
8911
8912 # No shared lib support for Linux oldld, aout, or coff.
8913 linux*oldld* | linux*aout* | linux*coff*)
8914   dynamic_linker=no
8915   ;;
8916
8917 # This must be Linux ELF.
8918 linux*)
8919   version_type=linux
8920   need_lib_prefix=no
8921   need_version=no
8922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923   soname_spec='${libname}${release}${shared_ext}$major'
8924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8925   shlibpath_var=LD_LIBRARY_PATH
8926   shlibpath_overrides_runpath=no
8927   # This implies no fast_install, which is unacceptable.
8928   # Some rework will be needed to allow for fast_install
8929   # before this can be enabled.
8930   hardcode_into_libs=yes
8931
8932   # Append ld.so.conf contents to the search path
8933   if test -f /etc/ld.so.conf; then
8934     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' ' '`
8935     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8936   fi
8937
8938   # We used to test for /lib/ld.so.1 and disable shared libraries on
8939   # powerpc, because MkLinux only supported shared libraries with the
8940   # GNU dynamic linker.  Since this was broken with cross compilers,
8941   # most powerpc-linux boxes support dynamic linking these days and
8942   # people can always --disable-shared, the test was removed, and we
8943   # assume the GNU/Linux dynamic linker is in use.
8944   dynamic_linker='GNU/Linux ld.so'
8945   ;;
8946
8947 knetbsd*-gnu)
8948   version_type=linux
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952   soname_spec='${libname}${release}${shared_ext}$major'
8953   shlibpath_var=LD_LIBRARY_PATH
8954   shlibpath_overrides_runpath=no
8955   hardcode_into_libs=yes
8956   dynamic_linker='GNU ld.so'
8957   ;;
8958
8959 netbsd*)
8960   version_type=sunos
8961   need_lib_prefix=no
8962   need_version=no
8963   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966     dynamic_linker='NetBSD (a.out) ld.so'
8967   else
8968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969     soname_spec='${libname}${release}${shared_ext}$major'
8970     dynamic_linker='NetBSD ld.elf_so'
8971   fi
8972   shlibpath_var=LD_LIBRARY_PATH
8973   shlibpath_overrides_runpath=yes
8974   hardcode_into_libs=yes
8975   ;;
8976
8977 newsos6)
8978   version_type=linux
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   shlibpath_overrides_runpath=yes
8982   ;;
8983
8984 nto-qnx*)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   shlibpath_overrides_runpath=yes
8992   ;;
8993
8994 openbsd*)
8995   version_type=sunos
8996   sys_lib_dlsearch_path_spec="/usr/lib"
8997   need_lib_prefix=no
8998   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8999   case $host_os in
9000     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9001     *)                         need_version=no  ;;
9002   esac
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9007     case $host_os in
9008       openbsd2.[89] | openbsd2.[89].*)
9009         shlibpath_overrides_runpath=no
9010         ;;
9011       *)
9012         shlibpath_overrides_runpath=yes
9013         ;;
9014       esac
9015   else
9016     shlibpath_overrides_runpath=yes
9017   fi
9018   ;;
9019
9020 os2*)
9021   libname_spec='$name'
9022   shrext_cmds=".dll"
9023   need_lib_prefix=no
9024   library_names_spec='$libname${shared_ext} $libname.a'
9025   dynamic_linker='OS/2 ld.exe'
9026   shlibpath_var=LIBPATH
9027   ;;
9028
9029 osf3* | osf4* | osf5*)
9030   version_type=osf
9031   need_lib_prefix=no
9032   need_version=no
9033   soname_spec='${libname}${release}${shared_ext}$major'
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035   shlibpath_var=LD_LIBRARY_PATH
9036   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9037   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9038   ;;
9039
9040 solaris*)
9041   version_type=linux
9042   need_lib_prefix=no
9043   need_version=no
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   shlibpath_var=LD_LIBRARY_PATH
9047   shlibpath_overrides_runpath=yes
9048   hardcode_into_libs=yes
9049   # ldd complains unless libraries are executable
9050   postinstall_cmds='chmod +x $lib'
9051   ;;
9052
9053 sunos4*)
9054   version_type=sunos
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=yes
9059   if test "$with_gnu_ld" = yes; then
9060     need_lib_prefix=no
9061   fi
9062   need_version=yes
9063   ;;
9064
9065 sysv4 | sysv4.3*)
9066   version_type=linux
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   case $host_vendor in
9071     sni)
9072       shlibpath_overrides_runpath=no
9073       need_lib_prefix=no
9074       export_dynamic_flag_spec='${wl}-Blargedynsym'
9075       runpath_var=LD_RUN_PATH
9076       ;;
9077     siemens)
9078       need_lib_prefix=no
9079       ;;
9080     motorola)
9081       need_lib_prefix=no
9082       need_version=no
9083       shlibpath_overrides_runpath=no
9084       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9085       ;;
9086   esac
9087   ;;
9088
9089 sysv4*MP*)
9090   if test -d /usr/nec ;then
9091     version_type=linux
9092     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9093     soname_spec='$libname${shared_ext}.$major'
9094     shlibpath_var=LD_LIBRARY_PATH
9095   fi
9096   ;;
9097
9098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9099   version_type=freebsd-elf
9100   need_lib_prefix=no
9101   need_version=no
9102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9103   soname_spec='${libname}${release}${shared_ext}$major'
9104   shlibpath_var=LD_LIBRARY_PATH
9105   hardcode_into_libs=yes
9106   if test "$with_gnu_ld" = yes; then
9107     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9108     shlibpath_overrides_runpath=no
9109   else
9110     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9111     shlibpath_overrides_runpath=yes
9112     case $host_os in
9113       sco3.2v5*)
9114         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9115         ;;
9116     esac
9117   fi
9118   sys_lib_dlsearch_path_spec='/usr/lib'
9119   ;;
9120
9121 uts4*)
9122   version_type=linux
9123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124   soname_spec='${libname}${release}${shared_ext}$major'
9125   shlibpath_var=LD_LIBRARY_PATH
9126   ;;
9127
9128 *)
9129   dynamic_linker=no
9130   ;;
9131 esac
9132 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9133 echo "${ECHO_T}$dynamic_linker" >&6; }
9134 test "$dynamic_linker" = no && can_build_shared=no
9135
9136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9137 if test "$GCC" = yes; then
9138   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9139 fi
9140
9141
9142 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9143 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9144 if test "${libltdl_cv_shlibext+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147
9148 module=yes
9149 eval libltdl_cv_shlibext=$shrext_cmds
9150
9151 fi
9152 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9153 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9154 if test -n "$libltdl_cv_shlibext"; then
9155
9156 cat >>confdefs.h <<_ACEOF
9157 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9158 _ACEOF
9159
9160 fi
9161
9162
9163 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9164 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9165 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   libltdl_cv_shlibpath_var="$shlibpath_var"
9169 fi
9170 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9171 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9172 if test -n "$libltdl_cv_shlibpath_var"; then
9173
9174 cat >>confdefs.h <<_ACEOF
9175 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9176 _ACEOF
9177
9178 fi
9179
9180
9181 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9182 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9183 if test "${libltdl_cv_sys_search_path+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9187 fi
9188 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9189 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9190 if test -n "$libltdl_cv_sys_search_path"; then
9191   sys_search_path=
9192   for dir in $libltdl_cv_sys_search_path; do
9193     if test -z "$sys_search_path"; then
9194       sys_search_path="$dir"
9195     else
9196       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9197     fi
9198   done
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9202 _ACEOF
9203
9204 fi
9205
9206 { echo "$as_me:$LINENO: checking for objdir" >&5
9207 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9208 if test "${libltdl_cv_objdir+set}" = set; then
9209   echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211   libltdl_cv_objdir="$objdir"
9212   if test -n "$objdir"; then
9213     :
9214   else
9215     rm -f .libs 2>/dev/null
9216     mkdir .libs 2>/dev/null
9217     if test -d .libs; then
9218       libltdl_cv_objdir=.libs
9219     else
9220       # MS-DOS does not allow filenames that begin with a dot.
9221       libltdl_cv_objdir=_libs
9222     fi
9223   rmdir .libs 2>/dev/null
9224   fi
9225
9226 fi
9227 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9228 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9229
9230 cat >>confdefs.h <<_ACEOF
9231 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9232 _ACEOF
9233
9234
9235
9236
9237
9238
9239 # Check for command to grab the raw symbol name followed by C symbol from nm.
9240 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9241 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9242 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245
9246 # These are sane defaults that work on at least a few old systems.
9247 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9248
9249 # Character class describing NM global symbol codes.
9250 symcode='[BCDEGRST]'
9251
9252 # Regexp to match symbols that can be accessed directly from C.
9253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9254
9255 # Transform an extracted symbol line into a proper C declaration
9256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9257
9258 # Transform an extracted symbol line into symbol name and symbol address
9259 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'"
9260
9261 # Define system-specific variables.
9262 case $host_os in
9263 aix*)
9264   symcode='[BCDT]'
9265   ;;
9266 cygwin* | mingw* | pw32*)
9267   symcode='[ABCDGISTW]'
9268   ;;
9269 hpux*) # Its linker distinguishes data from code symbols
9270   if test "$host_cpu" = ia64; then
9271     symcode='[ABCDEGRST]'
9272   fi
9273   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9274   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'"
9275   ;;
9276 linux*)
9277   if test "$host_cpu" = ia64; then
9278     symcode='[ABCDGIRSTW]'
9279     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9280     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'"
9281   fi
9282   ;;
9283 irix* | nonstopux*)
9284   symcode='[BCDEGRST]'
9285   ;;
9286 osf*)
9287   symcode='[BCDEGQRST]'
9288   ;;
9289 solaris*)
9290   symcode='[BDRT]'
9291   ;;
9292 sco3.2v5*)
9293   symcode='[DT]'
9294   ;;
9295 sysv4.2uw2*)
9296   symcode='[DT]'
9297   ;;
9298 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9299   symcode='[ABDT]'
9300   ;;
9301 sysv4)
9302   symcode='[DFNSTU]'
9303   ;;
9304 esac
9305
9306 # Handle CRLF in mingw tool chain
9307 opt_cr=
9308 case $build_os in
9309 mingw*)
9310   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9311   ;;
9312 esac
9313
9314 # If we're using GNU nm, then use its standard symbol codes.
9315 case `$NM -V 2>&1` in
9316 *GNU* | *'with BFD'*)
9317   symcode='[ABCDGIRSTW]' ;;
9318 esac
9319
9320 # Try without a prefix undercore, then with it.
9321 for ac_symprfx in "" "_"; do
9322
9323   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9324   symxfrm="\\1 $ac_symprfx\\2 \\2"
9325
9326   # Write the raw and C identifiers.
9327   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9328
9329   # Check to see that the pipe works correctly.
9330   pipe_works=no
9331
9332   rm -f conftest*
9333   cat > conftest.$ac_ext <<EOF
9334 #ifdef __cplusplus
9335 extern "C" {
9336 #endif
9337 char nm_test_var;
9338 void nm_test_func(){}
9339 #ifdef __cplusplus
9340 }
9341 #endif
9342 int main(){nm_test_var='a';nm_test_func();return(0);}
9343 EOF
9344
9345   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346   (eval $ac_compile) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; then
9350     # Now try to grab the symbols.
9351     nlist=conftest.nm
9352     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9353   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } && test -s "$nlist"; then
9357       # Try sorting and uniquifying the output.
9358       if sort "$nlist" | uniq > "$nlist"T; then
9359         mv -f "$nlist"T "$nlist"
9360       else
9361         rm -f "$nlist"T
9362       fi
9363
9364       # Make sure that we snagged all the symbols we need.
9365       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9366         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9367           cat <<EOF > conftest.$ac_ext
9368 #ifdef __cplusplus
9369 extern "C" {
9370 #endif
9371
9372 EOF
9373           # Now generate the symbol file.
9374           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9375
9376           cat <<EOF >> conftest.$ac_ext
9377 #if defined (__STDC__) && __STDC__
9378 # define lt_ptr_t void *
9379 #else
9380 # define lt_ptr_t char *
9381 # define const
9382 #endif
9383
9384 /* The mapping between symbol names and symbols. */
9385 const struct {
9386   const char *name;
9387   lt_ptr_t address;
9388 }
9389 lt_preloaded_symbols[] =
9390 {
9391 EOF
9392           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9393           cat <<\EOF >> conftest.$ac_ext
9394   {0, (lt_ptr_t) 0}
9395 };
9396
9397 #ifdef __cplusplus
9398 }
9399 #endif
9400 EOF
9401           # Now try linking the two files.
9402           mv conftest.$ac_objext conftstm.$ac_objext
9403           lt_save_LIBS="$LIBS"
9404           lt_save_CFLAGS="$CFLAGS"
9405           LIBS="conftstm.$ac_objext"
9406           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9407           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408   (eval $ac_link) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9412             pipe_works=yes
9413           fi
9414           LIBS="$lt_save_LIBS"
9415           CFLAGS="$lt_save_CFLAGS"
9416         else
9417           echo "cannot find nm_test_func in $nlist" >&5
9418         fi
9419       else
9420         echo "cannot find nm_test_var in $nlist" >&5
9421       fi
9422     else
9423       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9424     fi
9425   else
9426     echo "$progname: failed program was:" >&5
9427     cat conftest.$ac_ext >&5
9428   fi
9429   rm -f conftest* conftst*
9430
9431   # Do not use the global_symbol_pipe unless it works.
9432   if test "$pipe_works" = yes; then
9433     break
9434   else
9435     lt_cv_sys_global_symbol_pipe=
9436   fi
9437 done
9438
9439 fi
9440
9441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9442   lt_cv_sys_global_symbol_to_cdecl=
9443 fi
9444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9445   { echo "$as_me:$LINENO: result: failed" >&5
9446 echo "${ECHO_T}failed" >&6; }
9447 else
9448   { echo "$as_me:$LINENO: result: ok" >&5
9449 echo "${ECHO_T}ok" >&6; }
9450 fi
9451
9452
9453 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9454 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9455 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9459     libltdl_cv_preloaded_symbols=yes
9460   else
9461     libltdl_cv_preloaded_symbols=no
9462   fi
9463
9464 fi
9465 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9466 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9467 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9468
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_PRELOADED_SYMBOLS 1
9471 _ACEOF
9472
9473 fi
9474
9475 LIBADD_DL=
9476
9477 ac_ext=c
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482
9483
9484 { echo "$as_me:$LINENO: checking for shl_load" >&5
9485 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9486 if test "${ac_cv_func_shl_load+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9497 #define shl_load innocuous_shl_load
9498
9499 /* System header to define __stub macros and hopefully few prototypes,
9500     which can conflict with char shl_load (); below.
9501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502     <limits.h> exists even on freestanding compilers.  */
9503
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9509
9510 #undef shl_load
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513    Use char because int might match the return type of a GCC
9514    builtin and then its argument prototype would still apply.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char shl_load ();
9519 /* The GNU C library defines this for functions which it implements
9520     to always fail with ENOSYS.  Some functions are actually named
9521     something starting with __ and the normal name is an alias.  */
9522 #if defined __stub_shl_load || defined __stub___shl_load
9523 choke me
9524 #endif
9525
9526 int
9527 main ()
9528 {
9529 return shl_load ();
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9536 case "(($ac_try" in
9537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538   *) ac_try_echo=$ac_try;;
9539 esac
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541   (eval "$ac_link") 2>conftest.er1
9542   ac_status=$?
9543   grep -v '^ *+' conftest.er1 >conftest.err
9544   rm -f conftest.er1
9545   cat conftest.err >&5
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } &&
9548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549   { (case "(($ac_try" in
9550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551   *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554   (eval "$ac_try") 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; } &&
9558          { ac_try='test -s conftest$ac_exeext'
9559   { (case "(($ac_try" in
9560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561   *) ac_try_echo=$ac_try;;
9562 esac
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564   (eval "$ac_try") 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_func_shl_load=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573         ac_cv_func_shl_load=no
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext \
9577       conftest$ac_exeext conftest.$ac_ext
9578 fi
9579 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9580 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9581 if test $ac_cv_func_shl_load = yes; then
9582
9583 cat >>confdefs.h <<\_ACEOF
9584 #define HAVE_SHL_LOAD 1
9585 _ACEOF
9586
9587 else
9588   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9589 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   ac_check_lib_save_LIBS=$LIBS
9594 LIBS="-ldld  $LIBS"
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h.  */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h.  */
9601
9602 /* Override any GCC internal prototype to avoid an error.
9603    Use char because int might match the return type of a GCC
9604    builtin and then its argument prototype would still apply.  */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 char shl_load ();
9609 int
9610 main ()
9611 {
9612 return shl_load ();
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9619 case "(($ac_try" in
9620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621   *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624   (eval "$ac_link") 2>conftest.er1
9625   ac_status=$?
9626   grep -v '^ *+' conftest.er1 >conftest.err
9627   rm -f conftest.er1
9628   cat conftest.err >&5
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9632   { (case "(($ac_try" in
9633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634   *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637   (eval "$ac_try") 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; } &&
9641          { ac_try='test -s conftest$ac_exeext'
9642   { (case "(($ac_try" in
9643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644   *) ac_try_echo=$ac_try;;
9645 esac
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647   (eval "$ac_try") 2>&5
9648   ac_status=$?
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); }; }; then
9651   ac_cv_lib_dld_shl_load=yes
9652 else
9653   echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656         ac_cv_lib_dld_shl_load=no
9657 fi
9658
9659 rm -f core conftest.err conftest.$ac_objext \
9660       conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9662 fi
9663 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9665 if test $ac_cv_lib_dld_shl_load = yes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_SHL_LOAD 1
9669 _ACEOF
9670
9671         LIBADD_DL="$LIBADD_DL -ldld"
9672 else
9673   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678   ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-ldl  $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686
9687 /* Override any GCC internal prototype to avoid an error.
9688    Use char because int might match the return type of a GCC
9689    builtin and then its argument prototype would still apply.  */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char dlopen ();
9694 int
9695 main ()
9696 {
9697 return dlopen ();
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9704 case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_link") 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717   { (case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_try") 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (case "(($ac_try" in
9728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729   *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732   (eval "$ac_try") 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736   ac_cv_lib_dl_dlopen=yes
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741         ac_cv_lib_dl_dlopen=no
9742 fi
9743
9744 rm -f core conftest.err conftest.$ac_objext \
9745       conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9747 fi
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9750 if test $ac_cv_lib_dl_dlopen = yes; then
9751
9752 cat >>confdefs.h <<\_ACEOF
9753 #define HAVE_LIBDL 1
9754 _ACEOF
9755
9756                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9757 else
9758   cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764 #if HAVE_DLFCN_H
9765 #  include <dlfcn.h>
9766 #endif
9767
9768 int
9769 main ()
9770 {
9771 dlopen(0, 0);
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9778 case "(($ac_try" in
9779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780   *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783   (eval "$ac_link") 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791   { (case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_try") 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; } &&
9800          { ac_try='test -s conftest$ac_exeext'
9801   { (case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_try") 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_LIBDL 1
9813 _ACEOF
9814  libltdl_cv_func_dlopen="yes"
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-lsvld  $LIBS"
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834    Use char because int might match the return type of a GCC
9835    builtin and then its argument prototype would still apply.  */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char dlopen ();
9840 int
9841 main ()
9842 {
9843 return dlopen ();
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_link") 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9863   { (case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_try") 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; } &&
9872          { ac_try='test -s conftest$ac_exeext'
9873   { (case "(($ac_try" in
9874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875   *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878   (eval "$ac_try") 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   ac_cv_lib_svld_dlopen=yes
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887         ac_cv_lib_svld_dlopen=no
9888 fi
9889
9890 rm -f core conftest.err conftest.$ac_objext \
9891       conftest$ac_exeext conftest.$ac_ext
9892 LIBS=$ac_check_lib_save_LIBS
9893 fi
9894 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9895 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9896 if test $ac_cv_lib_svld_dlopen = yes; then
9897
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_LIBDL 1
9900 _ACEOF
9901
9902                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9903 else
9904   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9905 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9906 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909   ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-ldld  $LIBS"
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917
9918 /* Override any GCC internal prototype to avoid an error.
9919    Use char because int might match the return type of a GCC
9920    builtin and then its argument prototype would still apply.  */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 char dld_link ();
9925 int
9926 main ()
9927 {
9928 return dld_link ();
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9935 case "(($ac_try" in
9936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937   *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940   (eval "$ac_link") 2>conftest.er1
9941   ac_status=$?
9942   grep -v '^ *+' conftest.er1 >conftest.err
9943   rm -f conftest.er1
9944   cat conftest.err >&5
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9948   { (case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_try") 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; } &&
9957          { ac_try='test -s conftest$ac_exeext'
9958   { (case "(($ac_try" in
9959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960   *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963   (eval "$ac_try") 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_cv_lib_dld_dld_link=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972         ac_cv_lib_dld_dld_link=no
9973 fi
9974
9975 rm -f core conftest.err conftest.$ac_objext \
9976       conftest$ac_exeext conftest.$ac_ext
9977 LIBS=$ac_check_lib_save_LIBS
9978 fi
9979 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9980 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9981 if test $ac_cv_lib_dld_dld_link = yes; then
9982
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_DLD 1
9985 _ACEOF
9986
9987                 LIBADD_DL="$LIBADD_DL -ldld"
9988 else
9989   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9990 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9991 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10002 #define _dyld_func_lookup innocuous__dyld_func_lookup
10003
10004 /* System header to define __stub macros and hopefully few prototypes,
10005     which can conflict with char _dyld_func_lookup (); below.
10006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007     <limits.h> exists even on freestanding compilers.  */
10008
10009 #ifdef __STDC__
10010 # include <limits.h>
10011 #else
10012 # include <assert.h>
10013 #endif
10014
10015 #undef _dyld_func_lookup
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018    Use char because int might match the return type of a GCC
10019    builtin and then its argument prototype would still apply.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char _dyld_func_lookup ();
10024 /* The GNU C library defines this for functions which it implements
10025     to always fail with ENOSYS.  Some functions are actually named
10026     something starting with __ and the normal name is an alias.  */
10027 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10028 choke me
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034 return _dyld_func_lookup ();
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054   { (case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_try") 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_func__dyld_func_lookup=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_func__dyld_func_lookup=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext \
10082       conftest$ac_exeext conftest.$ac_ext
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10085 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10086 if test $ac_cv_func__dyld_func_lookup = yes; then
10087
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_DYLD 1
10090 _ACEOF
10091
10092 fi
10093
10094
10095 fi
10096
10097
10098 fi
10099
10100
10101 fi
10102
10103 rm -f core conftest.err conftest.$ac_objext \
10104       conftest$ac_exeext conftest.$ac_ext
10105
10106 fi
10107
10108
10109 fi
10110
10111
10112 fi
10113
10114
10115 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10116 then
10117   lt_save_LIBS="$LIBS"
10118   LIBS="$LIBS $LIBADD_DL"
10119
10120 for ac_func in dlerror
10121 do
10122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10126   echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128   cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h.  */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h.  */
10134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10136 #define $ac_func innocuous_$ac_func
10137
10138 /* System header to define __stub macros and hopefully few prototypes,
10139     which can conflict with char $ac_func (); below.
10140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10141     <limits.h> exists even on freestanding compilers.  */
10142
10143 #ifdef __STDC__
10144 # include <limits.h>
10145 #else
10146 # include <assert.h>
10147 #endif
10148
10149 #undef $ac_func
10150
10151 /* Override any GCC internal prototype to avoid an error.
10152    Use char because int might match the return type of a GCC
10153    builtin and then its argument prototype would still apply.  */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char $ac_func ();
10158 /* The GNU C library defines this for functions which it implements
10159     to always fail with ENOSYS.  Some functions are actually named
10160     something starting with __ and the normal name is an alias.  */
10161 #if defined __stub_$ac_func || defined __stub___$ac_func
10162 choke me
10163 #endif
10164
10165 int
10166 main ()
10167 {
10168 return $ac_func ();
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_link") 2>conftest.er1
10181   ac_status=$?
10182   grep -v '^ *+' conftest.er1 >conftest.err
10183   rm -f conftest.er1
10184   cat conftest.err >&5
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } &&
10187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10188   { (case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_try") 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; } &&
10197          { ac_try='test -s conftest$ac_exeext'
10198   { (case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203   (eval "$ac_try") 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; }; then
10207   eval "$as_ac_var=yes"
10208 else
10209   echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212         eval "$as_ac_var=no"
10213 fi
10214
10215 rm -f core conftest.err conftest.$ac_objext \
10216       conftest$ac_exeext conftest.$ac_ext
10217 fi
10218 ac_res=`eval echo '${'$as_ac_var'}'`
10219                { echo "$as_me:$LINENO: result: $ac_res" >&5
10220 echo "${ECHO_T}$ac_res" >&6; }
10221 if test `eval echo '${'$as_ac_var'}'` = yes; then
10222   cat >>confdefs.h <<_ACEOF
10223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10224 _ACEOF
10225
10226 fi
10227 done
10228
10229   LIBS="$lt_save_LIBS"
10230 fi
10231 ac_ext=c
10232 ac_cpp='$CPP $CPPFLAGS'
10233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10236
10237
10238
10239 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10240 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10241 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   ac_cv_sys_symbol_underscore=no
10245   cat > conftest.$ac_ext <<EOF
10246 void nm_test_func(){}
10247 int main(){nm_test_func;return 0;}
10248 EOF
10249   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250   (eval $ac_compile) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; then
10254     # Now try to grab the symbols.
10255     ac_nlist=conftest.nm
10256     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10257   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } && test -s "$ac_nlist"; then
10261       # See whether the symbols have a leading underscore.
10262       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10263         ac_cv_sys_symbol_underscore=yes
10264       else
10265         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10266           :
10267         else
10268           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10269         fi
10270       fi
10271     else
10272       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10273     fi
10274   else
10275     echo "configure: failed program was:" >&5
10276     cat conftest.c >&5
10277   fi
10278   rm -rf conftest*
10279
10280 fi
10281 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10282 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10283
10284
10285 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10286   if test x"$libltdl_cv_func_dlopen" = xyes ||
10287      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10288         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10289 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10290 if test "${libltdl_cv_need_uscore+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   libltdl_cv_need_uscore=unknown
10294           save_LIBS="$LIBS"
10295           LIBS="$LIBS $LIBADD_DL"
10296           if test "$cross_compiling" = yes; then :
10297   libltdl_cv_need_uscore=cross
10298 else
10299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300   lt_status=$lt_dlunknown
10301   cat > conftest.$ac_ext <<EOF
10302 #line 10302 "configure"
10303 #include "confdefs.h"
10304
10305 #if HAVE_DLFCN_H
10306 #include <dlfcn.h>
10307 #endif
10308
10309 #include <stdio.h>
10310
10311 #ifdef RTLD_GLOBAL
10312 #  define LT_DLGLOBAL           RTLD_GLOBAL
10313 #else
10314 #  ifdef DL_GLOBAL
10315 #    define LT_DLGLOBAL         DL_GLOBAL
10316 #  else
10317 #    define LT_DLGLOBAL         0
10318 #  endif
10319 #endif
10320
10321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322    find out it does not work in some platform. */
10323 #ifndef LT_DLLAZY_OR_NOW
10324 #  ifdef RTLD_LAZY
10325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10326 #  else
10327 #    ifdef DL_LAZY
10328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10329 #    else
10330 #      ifdef RTLD_NOW
10331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10332 #      else
10333 #        ifdef DL_NOW
10334 #          define LT_DLLAZY_OR_NOW      DL_NOW
10335 #        else
10336 #          define LT_DLLAZY_OR_NOW      0
10337 #        endif
10338 #      endif
10339 #    endif
10340 #  endif
10341 #endif
10342
10343 #ifdef __cplusplus
10344 extern "C" void exit (int);
10345 #endif
10346
10347 void fnord() { int i=42;}
10348 int main ()
10349 {
10350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351   int status = $lt_dlunknown;
10352
10353   if (self)
10354     {
10355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357       /* dlclose (self); */
10358     }
10359   else
10360     puts (dlerror ());
10361
10362     exit (status);
10363 }
10364 EOF
10365   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366   (eval $ac_link) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10370     (./conftest; exit; ) >&5 2>/dev/null
10371     lt_status=$?
10372     case x$lt_status in
10373       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10374       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10375       x$lt_dlunknown|x*)  ;;
10376     esac
10377   else :
10378     # compilation failed
10379
10380   fi
10381 fi
10382 rm -fr conftest*
10383
10384           LIBS="$save_LIBS"
10385
10386 fi
10387 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10388 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10389   fi
10390 fi
10391
10392 if test x"$libltdl_cv_need_uscore" = xyes; then
10393
10394 cat >>confdefs.h <<\_ACEOF
10395 #define NEED_USCORE 1
10396 _ACEOF
10397
10398 fi
10399
10400
10401 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10402 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10403 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   # PORTME does your system automatically load deplibs for dlopen?
10407   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10408   # For now, we just catch OSes we know something about -- in the
10409   # future, we'll try test this programmatically.
10410   libltdl_cv_sys_dlopen_deplibs=unknown
10411   case "$host_os" in
10412   aix3*|aix4.1.*|aix4.2.*)
10413     # Unknown whether this is true for these versions of AIX, but
10414     # we want this `case' here to explicitly catch those versions.
10415     libltdl_cv_sys_dlopen_deplibs=unknown
10416     ;;
10417   aix[45]*)
10418     libltdl_cv_sys_dlopen_deplibs=yes
10419     ;;
10420   darwin*)
10421     # Assuming the user has installed a libdl from somewhere, this is true
10422     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10423     libltdl_cv_sys_dlopen_deplibs=yes
10424     ;;
10425   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10426     # GNU and its variants, using gnu ld.so (Glibc)
10427     libltdl_cv_sys_dlopen_deplibs=yes
10428     ;;
10429   hpux10*|hpux11*)
10430     libltdl_cv_sys_dlopen_deplibs=yes
10431     ;;
10432   interix*)
10433     libltdl_cv_sys_dlopen_deplibs=yes
10434     ;;
10435   irix[12345]*|irix6.[01]*)
10436     # Catch all versions of IRIX before 6.2, and indicate that we don't
10437     # know how it worked for any of those versions.
10438     libltdl_cv_sys_dlopen_deplibs=unknown
10439     ;;
10440   irix*)
10441     # The case above catches anything before 6.2, and it's known that
10442     # at 6.2 and later dlopen does load deplibs.
10443     libltdl_cv_sys_dlopen_deplibs=yes
10444     ;;
10445   netbsd*)
10446     libltdl_cv_sys_dlopen_deplibs=yes
10447     ;;
10448   openbsd*)
10449     libltdl_cv_sys_dlopen_deplibs=yes
10450     ;;
10451   osf[1234]*)
10452     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10453     # it did *not* use an RPATH in a shared library to find objects the
10454     # library depends on, so we explictly say `no'.
10455     libltdl_cv_sys_dlopen_deplibs=no
10456     ;;
10457   osf5.0|osf5.0a|osf5.1)
10458     # dlopen *does* load deplibs and with the right loader patch applied
10459     # it even uses RPATH in a shared library to search for shared objects
10460     # that the library depends on, but there's no easy way to know if that
10461     # patch is installed.  Since this is the case, all we can really
10462     # say is unknown -- it depends on the patch being installed.  If
10463     # it is, this changes to `yes'.  Without it, it would be `no'.
10464     libltdl_cv_sys_dlopen_deplibs=unknown
10465     ;;
10466   osf*)
10467     # the two cases above should catch all versions of osf <= 5.1.  Read
10468     # the comments above for what we know about them.
10469     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10470     # is used to find them so we can finally say `yes'.
10471     libltdl_cv_sys_dlopen_deplibs=yes
10472     ;;
10473   solaris*)
10474     libltdl_cv_sys_dlopen_deplibs=yes
10475     ;;
10476   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   esac
10480
10481 fi
10482 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10483 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10484 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define LTDL_DLOPEN_DEPLIBS 1
10488 _ACEOF
10489
10490 fi
10491
10492
10493 for ac_header in argz.h
10494 do
10495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 fi
10502 ac_res=`eval echo '${'$as_ac_Header'}'`
10503                { echo "$as_me:$LINENO: result: $ac_res" >&5
10504 echo "${ECHO_T}$ac_res" >&6; }
10505 else
10506   # Is the header compilable?
10507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 $ac_includes_default
10516 #include <$ac_header>
10517 _ACEOF
10518 rm -f conftest.$ac_objext
10519 if { (ac_try="$ac_compile"
10520 case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_compile") 2>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } &&
10532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10533   { (case "(($ac_try" in
10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535   *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538   (eval "$ac_try") 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; } &&
10542          { ac_try='test -s conftest.$ac_objext'
10543   { (case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_try") 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; }; then
10552   ac_header_compiler=yes
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557         ac_header_compiler=no
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10562 echo "${ECHO_T}$ac_header_compiler" >&6; }
10563
10564 # Is the header present?
10565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 #include <$ac_header>
10574 _ACEOF
10575 if { (ac_try="$ac_cpp conftest.$ac_ext"
10576 case "(($ac_try" in
10577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578   *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } >/dev/null; then
10588   if test -s conftest.err; then
10589     ac_cpp_err=$ac_c_preproc_warn_flag
10590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10591   else
10592     ac_cpp_err=
10593   fi
10594 else
10595   ac_cpp_err=yes
10596 fi
10597 if test -z "$ac_cpp_err"; then
10598   ac_header_preproc=yes
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603   ac_header_preproc=no
10604 fi
10605
10606 rm -f conftest.err conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10608 echo "${ECHO_T}$ac_header_preproc" >&6; }
10609
10610 # So?  What about this header?
10611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612   yes:no: )
10613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10617     ac_header_preproc=yes
10618     ;;
10619   no:yes:* )
10620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10632     ( cat <<\_ASBOX
10633 ## ----------------------------------- ##
10634 ## Report this to llvmbugs@cs.uiuc.edu ##
10635 ## ----------------------------------- ##
10636 _ASBOX
10637      ) | sed "s/^/$as_me: WARNING:     /" >&2
10638     ;;
10639 esac
10640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   eval "$as_ac_Header=\$ac_header_preproc"
10646 fi
10647 ac_res=`eval echo '${'$as_ac_Header'}'`
10648                { echo "$as_me:$LINENO: result: $ac_res" >&5
10649 echo "${ECHO_T}$ac_res" >&6; }
10650
10651 fi
10652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10653   cat >>confdefs.h <<_ACEOF
10654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10655 _ACEOF
10656
10657 fi
10658
10659 done
10660
10661
10662 { echo "$as_me:$LINENO: checking for error_t" >&5
10663 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10664 if test "${ac_cv_type_error_t+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h.  */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h.  */
10673 #if HAVE_ARGZ_H
10674 #  include <argz.h>
10675 #endif
10676
10677 typedef error_t ac__type_new_;
10678 int
10679 main ()
10680 {
10681 if ((ac__type_new_ *) 0)
10682   return 0;
10683 if (sizeof (ac__type_new_))
10684   return 0;
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext
10690 if { (ac_try="$ac_compile"
10691 case "(($ac_try" in
10692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693   *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696   (eval "$ac_compile") 2>conftest.er1
10697   ac_status=$?
10698   grep -v '^ *+' conftest.er1 >conftest.err
10699   rm -f conftest.er1
10700   cat conftest.err >&5
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704   { (case "(($ac_try" in
10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706   *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709   (eval "$ac_try") 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; } &&
10713          { ac_try='test -s conftest.$ac_objext'
10714   { (case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_try") 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; }; then
10723   ac_cv_type_error_t=yes
10724 else
10725   echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728         ac_cv_type_error_t=no
10729 fi
10730
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 fi
10733 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10734 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10735 if test $ac_cv_type_error_t = yes; then
10736
10737 cat >>confdefs.h <<_ACEOF
10738 #define HAVE_ERROR_T 1
10739 _ACEOF
10740
10741
10742 else
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define error_t int
10746 _ACEOF
10747
10748 fi
10749
10750
10751
10752
10753
10754
10755
10756 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10757 do
10758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764   cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10772 #define $ac_func innocuous_$ac_func
10773
10774 /* System header to define __stub macros and hopefully few prototypes,
10775     which can conflict with char $ac_func (); below.
10776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10777     <limits.h> exists even on freestanding compilers.  */
10778
10779 #ifdef __STDC__
10780 # include <limits.h>
10781 #else
10782 # include <assert.h>
10783 #endif
10784
10785 #undef $ac_func
10786
10787 /* Override any GCC internal prototype to avoid an error.
10788    Use char because int might match the return type of a GCC
10789    builtin and then its argument prototype would still apply.  */
10790 #ifdef __cplusplus
10791 extern "C"
10792 #endif
10793 char $ac_func ();
10794 /* The GNU C library defines this for functions which it implements
10795     to always fail with ENOSYS.  Some functions are actually named
10796     something starting with __ and the normal name is an alias.  */
10797 #if defined __stub_$ac_func || defined __stub___$ac_func
10798 choke me
10799 #endif
10800
10801 int
10802 main ()
10803 {
10804 return $ac_func ();
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_link") 2>conftest.er1
10817   ac_status=$?
10818   grep -v '^ *+' conftest.er1 >conftest.err
10819   rm -f conftest.er1
10820   cat conftest.err >&5
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } &&
10823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824   { (case "(($ac_try" in
10825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826   *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829   (eval "$ac_try") 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); }; } &&
10833          { ac_try='test -s conftest$ac_exeext'
10834   { (case "(($ac_try" in
10835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836   *) ac_try_echo=$ac_try;;
10837 esac
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839   (eval "$ac_try") 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; }; then
10843   eval "$as_ac_var=yes"
10844 else
10845   echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848         eval "$as_ac_var=no"
10849 fi
10850
10851 rm -f core conftest.err conftest.$ac_objext \
10852       conftest$ac_exeext conftest.$ac_ext
10853 fi
10854 ac_res=`eval echo '${'$as_ac_var'}'`
10855                { echo "$as_me:$LINENO: result: $ac_res" >&5
10856 echo "${ECHO_T}$ac_res" >&6; }
10857 if test `eval echo '${'$as_ac_var'}'` = yes; then
10858   cat >>confdefs.h <<_ACEOF
10859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10860 _ACEOF
10861
10862 fi
10863 done
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10893                   stdio.h unistd.h
10894 do
10895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10900   echo $ECHO_N "(cached) $ECHO_C" >&6
10901 fi
10902 ac_res=`eval echo '${'$as_ac_Header'}'`
10903                { echo "$as_me:$LINENO: result: $ac_res" >&5
10904 echo "${ECHO_T}$ac_res" >&6; }
10905 else
10906   # Is the header compilable?
10907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h.  */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h.  */
10915 $ac_includes_default
10916 #include <$ac_header>
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922   *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925   (eval "$ac_compile") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933   { (case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_try") 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; } &&
10942          { ac_try='test -s conftest.$ac_objext'
10943   { (case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_try") 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   ac_header_compiler=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957         ac_header_compiler=no
10958 fi
10959
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10962 echo "${ECHO_T}$ac_header_compiler" >&6; }
10963
10964 # Is the header present?
10965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 #include <$ac_header>
10974 _ACEOF
10975 if { (ac_try="$ac_cpp conftest.$ac_ext"
10976 case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } >/dev/null; then
10988   if test -s conftest.err; then
10989     ac_cpp_err=$ac_c_preproc_warn_flag
10990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10991   else
10992     ac_cpp_err=
10993   fi
10994 else
10995   ac_cpp_err=yes
10996 fi
10997 if test -z "$ac_cpp_err"; then
10998   ac_header_preproc=yes
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003   ac_header_preproc=no
11004 fi
11005
11006 rm -f conftest.err conftest.$ac_ext
11007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11008 echo "${ECHO_T}$ac_header_preproc" >&6; }
11009
11010 # So?  What about this header?
11011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11012   yes:no: )
11013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11017     ac_header_preproc=yes
11018     ;;
11019   no:yes:* )
11020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11032     ( cat <<\_ASBOX
11033 ## ----------------------------------- ##
11034 ## Report this to llvmbugs@cs.uiuc.edu ##
11035 ## ----------------------------------- ##
11036 _ASBOX
11037      ) | sed "s/^/$as_me: WARNING:     /" >&2
11038     ;;
11039 esac
11040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   eval "$as_ac_Header=\$ac_header_preproc"
11046 fi
11047 ac_res=`eval echo '${'$as_ac_Header'}'`
11048                { echo "$as_me:$LINENO: result: $ac_res" >&5
11049 echo "${ECHO_T}$ac_res" >&6; }
11050
11051 fi
11052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053   cat >>confdefs.h <<_ACEOF
11054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055 _ACEOF
11056
11057 fi
11058
11059 done
11060
11061
11062
11063
11064
11065 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11066 do
11067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 fi
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075                { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11077 else
11078   # Is the header compilable?
11079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h.  */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h.  */
11087 $ac_includes_default
11088 #include <$ac_header>
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_compile") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } &&
11104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105   { (case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_try") 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; } &&
11114          { ac_try='test -s conftest.$ac_objext'
11115   { (case "(($ac_try" in
11116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117   *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120   (eval "$ac_try") 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }; }; then
11124   ac_header_compiler=yes
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129         ac_header_compiler=no
11130 fi
11131
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11134 echo "${ECHO_T}$ac_header_compiler" >&6; }
11135
11136 # Is the header present?
11137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h.  */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h.  */
11145 #include <$ac_header>
11146 _ACEOF
11147 if { (ac_try="$ac_cpp conftest.$ac_ext"
11148 case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } >/dev/null; then
11160   if test -s conftest.err; then
11161     ac_cpp_err=$ac_c_preproc_warn_flag
11162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11163   else
11164     ac_cpp_err=
11165   fi
11166 else
11167   ac_cpp_err=yes
11168 fi
11169 if test -z "$ac_cpp_err"; then
11170   ac_header_preproc=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175   ac_header_preproc=no
11176 fi
11177
11178 rm -f conftest.err conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11180 echo "${ECHO_T}$ac_header_preproc" >&6; }
11181
11182 # So?  What about this header?
11183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11184   yes:no: )
11185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11189     ac_header_preproc=yes
11190     ;;
11191   no:yes:* )
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11204     ( cat <<\_ASBOX
11205 ## ----------------------------------- ##
11206 ## Report this to llvmbugs@cs.uiuc.edu ##
11207 ## ----------------------------------- ##
11208 _ASBOX
11209      ) | sed "s/^/$as_me: WARNING:     /" >&2
11210     ;;
11211 esac
11212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   eval "$as_ac_Header=\$ac_header_preproc"
11218 fi
11219 ac_res=`eval echo '${'$as_ac_Header'}'`
11220                { echo "$as_me:$LINENO: result: $ac_res" >&5
11221 echo "${ECHO_T}$ac_res" >&6; }
11222
11223 fi
11224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11225   cat >>confdefs.h <<_ACEOF
11226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11227 _ACEOF
11228
11229 fi
11230
11231 done
11232
11233
11234
11235 for ac_header in string.h strings.h
11236 do
11237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 fi
11244 ac_res=`eval echo '${'$as_ac_Header'}'`
11245                { echo "$as_me:$LINENO: result: $ac_res" >&5
11246 echo "${ECHO_T}$ac_res" >&6; }
11247 else
11248   # Is the header compilable?
11249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 $ac_includes_default
11258 #include <$ac_header>
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_compile") 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest.$ac_objext'
11285   { (case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290   (eval "$ac_try") 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   ac_header_compiler=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299         ac_header_compiler=no
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 echo "${ECHO_T}$ac_header_compiler" >&6; }
11305
11306 # Is the header present?
11307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315 #include <$ac_header>
11316 _ACEOF
11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
11318 case "(($ac_try" in
11319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320   *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } >/dev/null; then
11330   if test -s conftest.err; then
11331     ac_cpp_err=$ac_c_preproc_warn_flag
11332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333   else
11334     ac_cpp_err=
11335   fi
11336 else
11337   ac_cpp_err=yes
11338 fi
11339 if test -z "$ac_cpp_err"; then
11340   ac_header_preproc=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345   ac_header_preproc=no
11346 fi
11347
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351
11352 # So?  What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354   yes:no: )
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359     ac_header_preproc=yes
11360     ;;
11361   no:yes:* )
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374     ( cat <<\_ASBOX
11375 ## ----------------------------------- ##
11376 ## Report this to llvmbugs@cs.uiuc.edu ##
11377 ## ----------------------------------- ##
11378 _ASBOX
11379      ) | sed "s/^/$as_me: WARNING:     /" >&2
11380     ;;
11381 esac
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   eval "$as_ac_Header=\$ac_header_preproc"
11388 fi
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390                { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392
11393 fi
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395   cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 _ACEOF
11398  break
11399 fi
11400
11401 done
11402
11403
11404
11405
11406 for ac_func in strchr index
11407 do
11408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11422 #define $ac_func innocuous_$ac_func
11423
11424 /* System header to define __stub macros and hopefully few prototypes,
11425     which can conflict with char $ac_func (); below.
11426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427     <limits.h> exists even on freestanding compilers.  */
11428
11429 #ifdef __STDC__
11430 # include <limits.h>
11431 #else
11432 # include <assert.h>
11433 #endif
11434
11435 #undef $ac_func
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438    Use char because int might match the return type of a GCC
11439    builtin and then its argument prototype would still apply.  */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char $ac_func ();
11444 /* The GNU C library defines this for functions which it implements
11445     to always fail with ENOSYS.  Some functions are actually named
11446     something starting with __ and the normal name is an alias.  */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11448 choke me
11449 #endif
11450
11451 int
11452 main ()
11453 {
11454 return $ac_func ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (ac_try="$ac_link"
11461 case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_link") 2>conftest.er1
11467   ac_status=$?
11468   grep -v '^ *+' conftest.er1 >conftest.err
11469   rm -f conftest.er1
11470   cat conftest.err >&5
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } &&
11473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474   { (case "(($ac_try" in
11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476   *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479   (eval "$ac_try") 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; } &&
11483          { ac_try='test -s conftest$ac_exeext'
11484   { (case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_try") 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; }; then
11493   eval "$as_ac_var=yes"
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498         eval "$as_ac_var=no"
11499 fi
11500
11501 rm -f core conftest.err conftest.$ac_objext \
11502       conftest$ac_exeext conftest.$ac_ext
11503 fi
11504 ac_res=`eval echo '${'$as_ac_var'}'`
11505                { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507 if test `eval echo '${'$as_ac_var'}'` = yes; then
11508   cat >>confdefs.h <<_ACEOF
11509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 _ACEOF
11511  break
11512 fi
11513 done
11514
11515
11516
11517 for ac_func in strrchr rindex
11518 do
11519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11523   echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525   cat >conftest.$ac_ext <<_ACEOF
11526 /* confdefs.h.  */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h.  */
11531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11533 #define $ac_func innocuous_$ac_func
11534
11535 /* System header to define __stub macros and hopefully few prototypes,
11536     which can conflict with char $ac_func (); below.
11537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538     <limits.h> exists even on freestanding compilers.  */
11539
11540 #ifdef __STDC__
11541 # include <limits.h>
11542 #else
11543 # include <assert.h>
11544 #endif
11545
11546 #undef $ac_func
11547
11548 /* Override any GCC internal prototype to avoid an error.
11549    Use char because int might match the return type of a GCC
11550    builtin and then its argument prototype would still apply.  */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char $ac_func ();
11555 /* The GNU C library defines this for functions which it implements
11556     to always fail with ENOSYS.  Some functions are actually named
11557     something starting with __ and the normal name is an alias.  */
11558 #if defined __stub_$ac_func || defined __stub___$ac_func
11559 choke me
11560 #endif
11561
11562 int
11563 main ()
11564 {
11565 return $ac_func ();
11566   ;
11567   return 0;
11568 }
11569 _ACEOF
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (ac_try="$ac_link"
11572 case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_link") 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585   { (case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_try") 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; } &&
11594          { ac_try='test -s conftest$ac_exeext'
11595   { (case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_try") 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   eval "$as_ac_var=yes"
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609         eval "$as_ac_var=no"
11610 fi
11611
11612 rm -f core conftest.err conftest.$ac_objext \
11613       conftest$ac_exeext conftest.$ac_ext
11614 fi
11615 ac_res=`eval echo '${'$as_ac_var'}'`
11616                { echo "$as_me:$LINENO: result: $ac_res" >&5
11617 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_var'}'` = yes; then
11619   cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621 _ACEOF
11622  break
11623 fi
11624 done
11625
11626
11627
11628 for ac_func in memcpy bcopy
11629 do
11630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11644 #define $ac_func innocuous_$ac_func
11645
11646 /* System header to define __stub macros and hopefully few prototypes,
11647     which can conflict with char $ac_func (); below.
11648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649     <limits.h> exists even on freestanding compilers.  */
11650
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11656
11657 #undef $ac_func
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char $ac_func ();
11666 /* The GNU C library defines this for functions which it implements
11667     to always fail with ENOSYS.  Some functions are actually named
11668     something starting with __ and the normal name is an alias.  */
11669 #if defined __stub_$ac_func || defined __stub___$ac_func
11670 choke me
11671 #endif
11672
11673 int
11674 main ()
11675 {
11676 return $ac_func ();
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688   (eval "$ac_link") 2>conftest.er1
11689   ac_status=$?
11690   grep -v '^ *+' conftest.er1 >conftest.err
11691   rm -f conftest.er1
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696   { (case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701   (eval "$ac_try") 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; } &&
11705          { ac_try='test -s conftest$ac_exeext'
11706   { (case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_try") 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   eval "$as_ac_var=yes"
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720         eval "$as_ac_var=no"
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext \
11724       conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 ac_res=`eval echo '${'$as_ac_var'}'`
11727                { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_var'}'` = yes; then
11730   cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732 _ACEOF
11733  break
11734 fi
11735 done
11736
11737
11738
11739 for ac_func in memmove strcmp
11740 do
11741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11755 #define $ac_func innocuous_$ac_func
11756
11757 /* System header to define __stub macros and hopefully few prototypes,
11758     which can conflict with char $ac_func (); below.
11759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760     <limits.h> exists even on freestanding compilers.  */
11761
11762 #ifdef __STDC__
11763 # include <limits.h>
11764 #else
11765 # include <assert.h>
11766 #endif
11767
11768 #undef $ac_func
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771    Use char because int might match the return type of a GCC
11772    builtin and then its argument prototype would still apply.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char $ac_func ();
11777 /* The GNU C library defines this for functions which it implements
11778     to always fail with ENOSYS.  Some functions are actually named
11779     something starting with __ and the normal name is an alias.  */
11780 #if defined __stub_$ac_func || defined __stub___$ac_func
11781 choke me
11782 #endif
11783
11784 int
11785 main ()
11786 {
11787 return $ac_func ();
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (ac_try="$ac_link"
11794 case "(($ac_try" in
11795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796   *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799   (eval "$ac_link") 2>conftest.er1
11800   ac_status=$?
11801   grep -v '^ *+' conftest.er1 >conftest.err
11802   rm -f conftest.er1
11803   cat conftest.err >&5
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; } &&
11816          { ac_try='test -s conftest$ac_exeext'
11817   { (case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822   (eval "$ac_try") 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; }; then
11826   eval "$as_ac_var=yes"
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831         eval "$as_ac_var=no"
11832 fi
11833
11834 rm -f core conftest.err conftest.$ac_objext \
11835       conftest$ac_exeext conftest.$ac_ext
11836 fi
11837 ac_res=`eval echo '${'$as_ac_var'}'`
11838                { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 if test `eval echo '${'$as_ac_var'}'` = yes; then
11841   cat >>confdefs.h <<_ACEOF
11842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843 _ACEOF
11844
11845 fi
11846 done
11847
11848
11849
11850
11851 for ac_func in closedir opendir readdir
11852 do
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11867 #define $ac_func innocuous_$ac_func
11868
11869 /* System header to define __stub macros and hopefully few prototypes,
11870     which can conflict with char $ac_func (); below.
11871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872     <limits.h> exists even on freestanding compilers.  */
11873
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11879
11880 #undef $ac_func
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883    Use char because int might match the return type of a GCC
11884    builtin and then its argument prototype would still apply.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char $ac_func ();
11889 /* The GNU C library defines this for functions which it implements
11890     to always fail with ENOSYS.  Some functions are actually named
11891     something starting with __ and the normal name is an alias.  */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11893 choke me
11894 #endif
11895
11896 int
11897 main ()
11898 {
11899 return $ac_func ();
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_link") 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919   { (case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_try") 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934   (eval "$ac_try") 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   eval "$as_ac_var=yes"
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943         eval "$as_ac_var=no"
11944 fi
11945
11946 rm -f core conftest.err conftest.$ac_objext \
11947       conftest$ac_exeext conftest.$ac_ext
11948 fi
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950                { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11956
11957 fi
11958 done
11959
11960
11961 # Check whether --enable-shared was given.
11962 if test "${enable_shared+set}" = set; then
11963   enableval=$enable_shared; p=${PACKAGE-default}
11964     case $enableval in
11965     yes) enable_shared=yes ;;
11966     no) enable_shared=no ;;
11967     *)
11968       enable_shared=no
11969       # Look at the argument we got.  We use all the common list separators.
11970       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11971       for pkg in $enableval; do
11972         IFS="$lt_save_ifs"
11973         if test "X$pkg" = "X$p"; then
11974           enable_shared=yes
11975         fi
11976       done
11977       IFS="$lt_save_ifs"
11978       ;;
11979     esac
11980 else
11981   enable_shared=yes
11982 fi
11983
11984
11985 # Check whether --enable-static was given.
11986 if test "${enable_static+set}" = set; then
11987   enableval=$enable_static; p=${PACKAGE-default}
11988     case $enableval in
11989     yes) enable_static=yes ;;
11990     no) enable_static=no ;;
11991     *)
11992      enable_static=no
11993       # Look at the argument we got.  We use all the common list separators.
11994       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11995       for pkg in $enableval; do
11996         IFS="$lt_save_ifs"
11997         if test "X$pkg" = "X$p"; then
11998           enable_static=yes
11999         fi
12000       done
12001       IFS="$lt_save_ifs"
12002       ;;
12003     esac
12004 else
12005   enable_static=yes
12006 fi
12007
12008
12009 # Check whether --enable-fast-install was given.
12010 if test "${enable_fast_install+set}" = set; then
12011   enableval=$enable_fast_install; p=${PACKAGE-default}
12012     case $enableval in
12013     yes) enable_fast_install=yes ;;
12014     no) enable_fast_install=no ;;
12015     *)
12016       enable_fast_install=no
12017       # Look at the argument we got.  We use all the common list separators.
12018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12019       for pkg in $enableval; do
12020         IFS="$lt_save_ifs"
12021         if test "X$pkg" = "X$p"; then
12022           enable_fast_install=yes
12023         fi
12024       done
12025       IFS="$lt_save_ifs"
12026       ;;
12027     esac
12028 else
12029   enable_fast_install=yes
12030 fi
12031
12032
12033 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12034 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12035 if test "${lt_cv_path_SED+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   # Loop through the user's path and test for sed and gsed.
12039 # Then use that list of sed's as ones to test for truncation.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045   for lt_ac_prog in sed gsed; do
12046     for ac_exec_ext in '' $ac_executable_extensions; do
12047       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12048         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12049       fi
12050     done
12051   done
12052 done
12053 lt_ac_max=0
12054 lt_ac_count=0
12055 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12056 # along with /bin/sed that truncates output.
12057 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12058   test ! -f $lt_ac_sed && continue
12059   cat /dev/null > conftest.in
12060   lt_ac_count=0
12061   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12062   # Check for GNU sed and select it if it is found.
12063   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12064     lt_cv_path_SED=$lt_ac_sed
12065     break
12066   fi
12067   while true; do
12068     cat conftest.in conftest.in >conftest.tmp
12069     mv conftest.tmp conftest.in
12070     cp conftest.in conftest.nl
12071     echo >>conftest.nl
12072     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12073     cmp -s conftest.out conftest.nl || break
12074     # 10000 chars as input seems more than enough
12075     test $lt_ac_count -gt 10 && break
12076     lt_ac_count=`expr $lt_ac_count + 1`
12077     if test $lt_ac_count -gt $lt_ac_max; then
12078       lt_ac_max=$lt_ac_count
12079       lt_cv_path_SED=$lt_ac_sed
12080     fi
12081   done
12082 done
12083
12084 fi
12085
12086 SED=$lt_cv_path_SED
12087 { echo "$as_me:$LINENO: result: $SED" >&5
12088 echo "${ECHO_T}$SED" >&6; }
12089
12090
12091 # Check whether --with-gnu-ld was given.
12092 if test "${with_gnu_ld+set}" = set; then
12093   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12094 else
12095   with_gnu_ld=no
12096 fi
12097
12098 ac_prog=ld
12099 if test "$GCC" = yes; then
12100   # Check if gcc -print-prog-name=ld gives a path.
12101   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12102 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12103   case $host in
12104   *-*-mingw*)
12105     # gcc leaves a trailing carriage return which upsets mingw
12106     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12107   *)
12108     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12109   esac
12110   case $ac_prog in
12111     # Accept absolute paths.
12112     [\\/]* | ?:[\\/]*)
12113       re_direlt='/[^/][^/]*/\.\./'
12114       # Canonicalize the pathname of ld
12115       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12116       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12117         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12118       done
12119       test -z "$LD" && LD="$ac_prog"
12120       ;;
12121   "")
12122     # If it fails, then pretend we aren't using GCC.
12123     ac_prog=ld
12124     ;;
12125   *)
12126     # If it is relative, then search for the first ld in PATH.
12127     with_gnu_ld=unknown
12128     ;;
12129   esac
12130 elif test "$with_gnu_ld" = yes; then
12131   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12133 else
12134   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12136 fi
12137 if test "${lt_cv_path_LD+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   if test -z "$LD"; then
12141   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12142   for ac_dir in $PATH; do
12143     IFS="$lt_save_ifs"
12144     test -z "$ac_dir" && ac_dir=.
12145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146       lt_cv_path_LD="$ac_dir/$ac_prog"
12147       # Check to see if the program is GNU ld.  I'd rather use --version,
12148       # but apparently some variants of GNU ld only accept -v.
12149       # Break only if it was the GNU/non-GNU ld that we prefer.
12150       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151       *GNU* | *'with BFD'*)
12152         test "$with_gnu_ld" != no && break
12153         ;;
12154       *)
12155         test "$with_gnu_ld" != yes && break
12156         ;;
12157       esac
12158     fi
12159   done
12160   IFS="$lt_save_ifs"
12161 else
12162   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12163 fi
12164 fi
12165
12166 LD="$lt_cv_path_LD"
12167 if test -n "$LD"; then
12168   { echo "$as_me:$LINENO: result: $LD" >&5
12169 echo "${ECHO_T}$LD" >&6; }
12170 else
12171   { echo "$as_me:$LINENO: result: no" >&5
12172 echo "${ECHO_T}no" >&6; }
12173 fi
12174 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12175 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12176    { (exit 1); exit 1; }; }
12177 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12178 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12179 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12183 case `$LD -v 2>&1 </dev/null` in
12184 *GNU* | *'with BFD'*)
12185   lt_cv_prog_gnu_ld=yes
12186   ;;
12187 *)
12188   lt_cv_prog_gnu_ld=no
12189   ;;
12190 esac
12191 fi
12192 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12193 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12194 with_gnu_ld=$lt_cv_prog_gnu_ld
12195
12196
12197 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12198 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12199 if test "${lt_cv_ld_reload_flag+set}" = set; then
12200   echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202   lt_cv_ld_reload_flag='-r'
12203 fi
12204 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12205 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12206 reload_flag=$lt_cv_ld_reload_flag
12207 case $reload_flag in
12208 "" | " "*) ;;
12209 *) reload_flag=" $reload_flag" ;;
12210 esac
12211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12212 case $host_os in
12213   darwin*)
12214     if test "$GCC" = yes; then
12215       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12216     else
12217       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12218     fi
12219     ;;
12220 esac
12221
12222 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12223 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12224 if test "${lt_cv_deplibs_check_method+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   lt_cv_file_magic_cmd='$MAGIC_CMD'
12228 lt_cv_file_magic_test_file=
12229 lt_cv_deplibs_check_method='unknown'
12230 # Need to set the preceding variable on all platforms that support
12231 # interlibrary dependencies.
12232 # 'none' -- dependencies not supported.
12233 # `unknown' -- same as none, but documents that we really don't know.
12234 # 'pass_all' -- all dependencies passed with no checks.
12235 # 'test_compile' -- check by making test program.
12236 # 'file_magic [[regex]]' -- check by looking for files in library path
12237 # which responds to the $file_magic_cmd with a given extended regex.
12238 # If you have `file' or equivalent on your system and you're not sure
12239 # whether `pass_all' will *always* work, you probably want this one.
12240
12241 case $host_os in
12242 aix4* | aix5*)
12243   lt_cv_deplibs_check_method=pass_all
12244   ;;
12245
12246 beos*)
12247   lt_cv_deplibs_check_method=pass_all
12248   ;;
12249
12250 bsdi[45]*)
12251   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12252   lt_cv_file_magic_cmd='/usr/bin/file -L'
12253   lt_cv_file_magic_test_file=/shlib/libc.so
12254   ;;
12255
12256 cygwin*)
12257   # func_win32_libid is a shell function defined in ltmain.sh
12258   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12259   lt_cv_file_magic_cmd='func_win32_libid'
12260   ;;
12261
12262 mingw* | pw32*)
12263   # Base MSYS/MinGW do not provide the 'file' command needed by
12264   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12265   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12266   lt_cv_file_magic_cmd='$OBJDUMP -f'
12267   ;;
12268
12269 darwin* | rhapsody*)
12270   lt_cv_deplibs_check_method=pass_all
12271   ;;
12272
12273 freebsd* | kfreebsd*-gnu | dragonfly*)
12274   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12275     case $host_cpu in
12276     i*86 )
12277       # Not sure whether the presence of OpenBSD here was a mistake.
12278       # Let's accept both of them until this is cleared up.
12279       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12280       lt_cv_file_magic_cmd=/usr/bin/file
12281       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12282       ;;
12283     esac
12284   else
12285     lt_cv_deplibs_check_method=pass_all
12286   fi
12287   ;;
12288
12289 gnu*)
12290   lt_cv_deplibs_check_method=pass_all
12291   ;;
12292
12293 hpux10.20* | hpux11*)
12294   lt_cv_file_magic_cmd=/usr/bin/file
12295   case $host_cpu in
12296   ia64*)
12297     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12298     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12299     ;;
12300   hppa*64*)
12301     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]'
12302     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12303     ;;
12304   *)
12305     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12306     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12307     ;;
12308   esac
12309   ;;
12310
12311 interix3*)
12312   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12313   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12314   ;;
12315
12316 irix5* | irix6* | nonstopux*)
12317   case $LD in
12318   *-32|*"-32 ") libmagic=32-bit;;
12319   *-n32|*"-n32 ") libmagic=N32;;
12320   *-64|*"-64 ") libmagic=64-bit;;
12321   *) libmagic=never-match;;
12322   esac
12323   lt_cv_deplibs_check_method=pass_all
12324   ;;
12325
12326 # This must be Linux ELF.
12327 linux*)
12328   lt_cv_deplibs_check_method=pass_all
12329   ;;
12330
12331 netbsd*)
12332   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12333     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12334   else
12335     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12336   fi
12337   ;;
12338
12339 newos6*)
12340   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12341   lt_cv_file_magic_cmd=/usr/bin/file
12342   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12343   ;;
12344
12345 nto-qnx*)
12346   lt_cv_deplibs_check_method=unknown
12347   ;;
12348
12349 openbsd*)
12350   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12352   else
12353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12354   fi
12355   ;;
12356
12357 osf3* | osf4* | osf5*)
12358   lt_cv_deplibs_check_method=pass_all
12359   ;;
12360
12361 solaris*)
12362   lt_cv_deplibs_check_method=pass_all
12363   ;;
12364
12365 sysv4 | sysv4.3*)
12366   case $host_vendor in
12367   motorola)
12368     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]'
12369     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12370     ;;
12371   ncr)
12372     lt_cv_deplibs_check_method=pass_all
12373     ;;
12374   sequent)
12375     lt_cv_file_magic_cmd='/bin/file'
12376     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12377     ;;
12378   sni)
12379     lt_cv_file_magic_cmd='/bin/file'
12380     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12381     lt_cv_file_magic_test_file=/lib/libc.so
12382     ;;
12383   siemens)
12384     lt_cv_deplibs_check_method=pass_all
12385     ;;
12386   pc)
12387     lt_cv_deplibs_check_method=pass_all
12388     ;;
12389   esac
12390   ;;
12391
12392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12393   lt_cv_deplibs_check_method=pass_all
12394   ;;
12395 esac
12396
12397 fi
12398 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12399 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12400 file_magic_cmd=$lt_cv_file_magic_cmd
12401 deplibs_check_method=$lt_cv_deplibs_check_method
12402 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12403
12404
12405
12406 # If no C compiler was specified, use CC.
12407 LTCC=${LTCC-"$CC"}
12408
12409 # If no C compiler flags were specified, use CFLAGS.
12410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12411
12412 # Allow CC to be a program name with arguments.
12413 compiler=$CC
12414
12415 # Check whether --enable-libtool-lock was given.
12416 if test "${enable_libtool_lock+set}" = set; then
12417   enableval=$enable_libtool_lock;
12418 fi
12419
12420 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12421
12422 # Some flags need to be propagated to the compiler or linker for good
12423 # libtool support.
12424 case $host in
12425 ia64-*-hpux*)
12426   # Find out which ABI we are using.
12427   echo 'int i;' > conftest.$ac_ext
12428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429   (eval $ac_compile) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; then
12433     case `/usr/bin/file conftest.$ac_objext` in
12434     *ELF-32*)
12435       HPUX_IA64_MODE="32"
12436       ;;
12437     *ELF-64*)
12438       HPUX_IA64_MODE="64"
12439       ;;
12440     esac
12441   fi
12442   rm -rf conftest*
12443   ;;
12444 *-*-irix6*)
12445   # Find out which ABI we are using.
12446   echo '#line 12446 "configure"' > conftest.$ac_ext
12447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448   (eval $ac_compile) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; then
12452    if test "$lt_cv_prog_gnu_ld" = yes; then
12453     case `/usr/bin/file conftest.$ac_objext` in
12454     *32-bit*)
12455       LD="${LD-ld} -melf32bsmip"
12456       ;;
12457     *N32*)
12458       LD="${LD-ld} -melf32bmipn32"
12459       ;;
12460     *64-bit*)
12461       LD="${LD-ld} -melf64bmip"
12462       ;;
12463     esac
12464    else
12465     case `/usr/bin/file conftest.$ac_objext` in
12466     *32-bit*)
12467       LD="${LD-ld} -32"
12468       ;;
12469     *N32*)
12470       LD="${LD-ld} -n32"
12471       ;;
12472     *64-bit*)
12473       LD="${LD-ld} -64"
12474       ;;
12475     esac
12476    fi
12477   fi
12478   rm -rf conftest*
12479   ;;
12480
12481 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12482   # Find out which ABI we are using.
12483   echo 'int i;' > conftest.$ac_ext
12484   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485   (eval $ac_compile) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; then
12489     case `/usr/bin/file conftest.o` in
12490     *32-bit*)
12491       case $host in
12492         x86_64-*linux*)
12493           LD="${LD-ld} -m elf_i386"
12494           ;;
12495         ppc64-*linux*|powerpc64-*linux*)
12496           LD="${LD-ld} -m elf32ppclinux"
12497           ;;
12498         s390x-*linux*)
12499           LD="${LD-ld} -m elf_s390"
12500           ;;
12501         sparc64-*linux*)
12502           LD="${LD-ld} -m elf32_sparc"
12503           ;;
12504       esac
12505       ;;
12506     *64-bit*)
12507       case $host in
12508         x86_64-*linux*)
12509           LD="${LD-ld} -m elf_x86_64"
12510           ;;
12511         ppc*-*linux*|powerpc*-*linux*)
12512           LD="${LD-ld} -m elf64ppc"
12513           ;;
12514         s390*-*linux*)
12515           LD="${LD-ld} -m elf64_s390"
12516           ;;
12517         sparc*-*linux*)
12518           LD="${LD-ld} -m elf64_sparc"
12519           ;;
12520       esac
12521       ;;
12522     esac
12523   fi
12524   rm -rf conftest*
12525   ;;
12526
12527 *-*-sco3.2v5*)
12528   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12529   SAVE_CFLAGS="$CFLAGS"
12530   CFLAGS="$CFLAGS -belf"
12531   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12532 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12533 if test "${lt_cv_cc_needs_belf+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   ac_ext=c
12537 ac_cpp='$CPP $CPPFLAGS'
12538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12541
12542      cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548
12549 int
12550 main ()
12551 {
12552
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (ac_try="$ac_link"
12559 case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564   (eval "$ac_link") 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572   { (case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_try") 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; } &&
12581          { ac_try='test -s conftest$ac_exeext'
12582   { (case "(($ac_try" in
12583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584   *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587   (eval "$ac_try") 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   lt_cv_cc_needs_belf=yes
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596         lt_cv_cc_needs_belf=no
12597 fi
12598
12599 rm -f core conftest.err conftest.$ac_objext \
12600       conftest$ac_exeext conftest.$ac_ext
12601      ac_ext=c
12602 ac_cpp='$CPP $CPPFLAGS'
12603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12606
12607 fi
12608 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12610   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12611     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12612     CFLAGS="$SAVE_CFLAGS"
12613   fi
12614   ;;
12615 sparc*-*solaris*)
12616   # Find out which ABI we are using.
12617   echo 'int i;' > conftest.$ac_ext
12618   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619   (eval $ac_compile) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; then
12623     case `/usr/bin/file conftest.o` in
12624     *64-bit*)
12625       case $lt_cv_prog_gnu_ld in
12626       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12627       *)    LD="${LD-ld} -64" ;;
12628       esac
12629       ;;
12630     esac
12631   fi
12632   rm -rf conftest*
12633   ;;
12634
12635
12636 esac
12637
12638 need_locks="$enable_libtool_lock"
12639
12640
12641
12642
12643 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12644     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12645     (test "X$CXX" != "Xg++"))) ; then
12646   ac_ext=cpp
12647 ac_cpp='$CXXCPP $CPPFLAGS'
12648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12651 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12652 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12653 if test -z "$CXXCPP"; then
12654   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657       # Double quotes because CXXCPP needs to be expanded
12658     for CXXCPP in "$CXX -E" "/lib/cpp"
12659     do
12660       ac_preproc_ok=false
12661 for ac_cxx_preproc_warn_flag in '' yes
12662 do
12663   # Use a header file that comes with gcc, so configuring glibc
12664   # with a fresh cross-compiler works.
12665   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12666   # <limits.h> exists even on freestanding compilers.
12667   # On the NeXT, cc -E runs the code through the compiler's parser,
12668   # not just through cpp. "Syntax error" is here to catch this case.
12669   cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675 #ifdef __STDC__
12676 # include <limits.h>
12677 #else
12678 # include <assert.h>
12679 #endif
12680                      Syntax error
12681 _ACEOF
12682 if { (ac_try="$ac_cpp conftest.$ac_ext"
12683 case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12689   ac_status=$?
12690   grep -v '^ *+' conftest.er1 >conftest.err
12691   rm -f conftest.er1
12692   cat conftest.err >&5
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } >/dev/null; then
12695   if test -s conftest.err; then
12696     ac_cpp_err=$ac_cxx_preproc_warn_flag
12697     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12698   else
12699     ac_cpp_err=
12700   fi
12701 else
12702   ac_cpp_err=yes
12703 fi
12704 if test -z "$ac_cpp_err"; then
12705   :
12706 else
12707   echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12709
12710   # Broken: fails on valid input.
12711 continue
12712 fi
12713
12714 rm -f conftest.err conftest.$ac_ext
12715
12716   # OK, works on sane cases.  Now check whether nonexistent headers
12717   # can be detected and how.
12718   cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h.  */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h.  */
12724 #include <ac_nonexistent.h>
12725 _ACEOF
12726 if { (ac_try="$ac_cpp conftest.$ac_ext"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } >/dev/null; then
12739   if test -s conftest.err; then
12740     ac_cpp_err=$ac_cxx_preproc_warn_flag
12741     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12742   else
12743     ac_cpp_err=
12744   fi
12745 else
12746   ac_cpp_err=yes
12747 fi
12748 if test -z "$ac_cpp_err"; then
12749   # Broken: success on invalid input.
12750 continue
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755   # Passes both tests.
12756 ac_preproc_ok=:
12757 break
12758 fi
12759
12760 rm -f conftest.err conftest.$ac_ext
12761
12762 done
12763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12764 rm -f conftest.err conftest.$ac_ext
12765 if $ac_preproc_ok; then
12766   break
12767 fi
12768
12769     done
12770     ac_cv_prog_CXXCPP=$CXXCPP
12771
12772 fi
12773   CXXCPP=$ac_cv_prog_CXXCPP
12774 else
12775   ac_cv_prog_CXXCPP=$CXXCPP
12776 fi
12777 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12778 echo "${ECHO_T}$CXXCPP" >&6; }
12779 ac_preproc_ok=false
12780 for ac_cxx_preproc_warn_flag in '' yes
12781 do
12782   # Use a header file that comes with gcc, so configuring glibc
12783   # with a fresh cross-compiler works.
12784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12785   # <limits.h> exists even on freestanding compilers.
12786   # On the NeXT, cc -E runs the code through the compiler's parser,
12787   # not just through cpp. "Syntax error" is here to catch this case.
12788   cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794 #ifdef __STDC__
12795 # include <limits.h>
12796 #else
12797 # include <assert.h>
12798 #endif
12799                      Syntax error
12800 _ACEOF
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12808   ac_status=$?
12809   grep -v '^ *+' conftest.er1 >conftest.err
12810   rm -f conftest.er1
12811   cat conftest.err >&5
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } >/dev/null; then
12814   if test -s conftest.err; then
12815     ac_cpp_err=$ac_cxx_preproc_warn_flag
12816     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12817   else
12818     ac_cpp_err=
12819   fi
12820 else
12821   ac_cpp_err=yes
12822 fi
12823 if test -z "$ac_cpp_err"; then
12824   :
12825 else
12826   echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829   # Broken: fails on valid input.
12830 continue
12831 fi
12832
12833 rm -f conftest.err conftest.$ac_ext
12834
12835   # OK, works on sane cases.  Now check whether nonexistent headers
12836   # can be detected and how.
12837   cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 #include <ac_nonexistent.h>
12844 _ACEOF
12845 if { (ac_try="$ac_cpp conftest.$ac_ext"
12846 case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12852   ac_status=$?
12853   grep -v '^ *+' conftest.er1 >conftest.err
12854   rm -f conftest.er1
12855   cat conftest.err >&5
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } >/dev/null; then
12858   if test -s conftest.err; then
12859     ac_cpp_err=$ac_cxx_preproc_warn_flag
12860     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12861   else
12862     ac_cpp_err=
12863   fi
12864 else
12865   ac_cpp_err=yes
12866 fi
12867 if test -z "$ac_cpp_err"; then
12868   # Broken: success on invalid input.
12869 continue
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874   # Passes both tests.
12875 ac_preproc_ok=:
12876 break
12877 fi
12878
12879 rm -f conftest.err conftest.$ac_ext
12880
12881 done
12882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12883 rm -f conftest.err conftest.$ac_ext
12884 if $ac_preproc_ok; then
12885   :
12886 else
12887   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12888 See \`config.log' for more details." >&5
12889 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12890 See \`config.log' for more details." >&2;}
12891    { (exit 1); exit 1; }; }
12892 fi
12893
12894 ac_ext=cpp
12895 ac_cpp='$CXXCPP $CPPFLAGS'
12896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12899
12900 fi
12901
12902
12903 ac_ext=f
12904 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12905 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12906 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12907 if test -n "$ac_tool_prefix"; then
12908   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
12909   do
12910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12914 if test "${ac_cv_prog_F77+set}" = set; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   if test -n "$F77"; then
12918   ac_cv_prog_F77="$F77" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12922 do
12923   IFS=$as_save_IFS
12924   test -z "$as_dir" && as_dir=.
12925   for ac_exec_ext in '' $ac_executable_extensions; do
12926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12927     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929     break 2
12930   fi
12931 done
12932 done
12933 IFS=$as_save_IFS
12934
12935 fi
12936 fi
12937 F77=$ac_cv_prog_F77
12938 if test -n "$F77"; then
12939   { echo "$as_me:$LINENO: result: $F77" >&5
12940 echo "${ECHO_T}$F77" >&6; }
12941 else
12942   { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12944 fi
12945
12946
12947     test -n "$F77" && break
12948   done
12949 fi
12950 if test -z "$F77"; then
12951   ac_ct_F77=$F77
12952   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
12953 do
12954   # Extract the first word of "$ac_prog", so it can be a program name with args.
12955 set dummy $ac_prog; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   if test -n "$ac_ct_F77"; then
12962   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12963 else
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12966 do
12967   IFS=$as_save_IFS
12968   test -z "$as_dir" && as_dir=.
12969   for ac_exec_ext in '' $ac_executable_extensions; do
12970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12971     ac_cv_prog_ac_ct_F77="$ac_prog"
12972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12973     break 2
12974   fi
12975 done
12976 done
12977 IFS=$as_save_IFS
12978
12979 fi
12980 fi
12981 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12982 if test -n "$ac_ct_F77"; then
12983   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12984 echo "${ECHO_T}$ac_ct_F77" >&6; }
12985 else
12986   { echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6; }
12988 fi
12989
12990
12991   test -n "$ac_ct_F77" && break
12992 done
12993
12994   if test "x$ac_ct_F77" = x; then
12995     F77=""
12996   else
12997     case $cross_compiling:$ac_tool_warned in
12998 yes:)
12999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13000 whose name does not start with the host triplet.  If you think this
13001 configuration is useful to you, please write to autoconf@gnu.org." >&5
13002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13003 whose name does not start with the host triplet.  If you think this
13004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13005 ac_tool_warned=yes ;;
13006 esac
13007     F77=$ac_ct_F77
13008   fi
13009 fi
13010
13011
13012 # Provide some information about the compiler.
13013 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13014 ac_compiler=`set X $ac_compile; echo $2`
13015 { (ac_try="$ac_compiler --version >&5"
13016 case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_compiler --version >&5") 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }
13025 { (ac_try="$ac_compiler -v >&5"
13026 case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031   (eval "$ac_compiler -v >&5") 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }
13035 { (ac_try="$ac_compiler -V >&5"
13036 case "(($ac_try" in
13037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038   *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041   (eval "$ac_compiler -V >&5") 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }
13045 rm -f a.out
13046
13047 # If we don't use `.F' as extension, the preprocessor is not run on the
13048 # input file.  (Note that this only needs to work for GNU compilers.)
13049 ac_save_ext=$ac_ext
13050 ac_ext=F
13051 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13052 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13053 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   cat >conftest.$ac_ext <<_ACEOF
13057       program main
13058 #ifndef __GNUC__
13059        choke me
13060 #endif
13061
13062       end
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (ac_try="$ac_compile"
13066 case "(($ac_try" in
13067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068   *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071   (eval "$ac_compile") 2>conftest.er1
13072   ac_status=$?
13073   grep -v '^ *+' conftest.er1 >conftest.err
13074   rm -f conftest.er1
13075   cat conftest.err >&5
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } &&
13078          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13079   { (case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_try") 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; } &&
13088          { ac_try='test -s conftest.$ac_objext'
13089   { (case "(($ac_try" in
13090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091   *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094   (eval "$ac_try") 2>&5
13095   ac_status=$?
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); }; }; then
13098   ac_compiler_gnu=yes
13099 else
13100   echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103         ac_compiler_gnu=no
13104 fi
13105
13106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13108
13109 fi
13110 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13111 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13112 ac_ext=$ac_save_ext
13113 ac_test_FFLAGS=${FFLAGS+set}
13114 ac_save_FFLAGS=$FFLAGS
13115 FFLAGS=
13116 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13117 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13118 if test "${ac_cv_prog_f77_g+set}" = set; then
13119   echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121   FFLAGS=-g
13122 cat >conftest.$ac_ext <<_ACEOF
13123       program main
13124
13125       end
13126 _ACEOF
13127 rm -f conftest.$ac_objext
13128 if { (ac_try="$ac_compile"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_compile") 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13142   { (case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_try") 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest.$ac_objext'
13152   { (case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_try") 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   ac_cv_prog_f77_g=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166         ac_cv_prog_f77_g=no
13167 fi
13168
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170
13171 fi
13172 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13173 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13174 if test "$ac_test_FFLAGS" = set; then
13175   FFLAGS=$ac_save_FFLAGS
13176 elif test $ac_cv_prog_f77_g = yes; then
13177   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13178     FFLAGS="-g -O2"
13179   else
13180     FFLAGS="-g"
13181   fi
13182 else
13183   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13184     FFLAGS="-O2"
13185   else
13186     FFLAGS=
13187   fi
13188 fi
13189
13190 G77=`test $ac_compiler_gnu = yes && echo yes`
13191 ac_ext=c
13192 ac_cpp='$CPP $CPPFLAGS'
13193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13196
13197
13198
13199 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13200
13201 # find the maximum length of command line arguments
13202 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13203 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13204 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207     i=0
13208   teststring="ABCD"
13209
13210   case $build_os in
13211   msdosdjgpp*)
13212     # On DJGPP, this test can blow up pretty badly due to problems in libc
13213     # (any single argument exceeding 2000 bytes causes a buffer overrun
13214     # during glob expansion).  Even if it were fixed, the result of this
13215     # check would be larger than it should be.
13216     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13217     ;;
13218
13219   gnu*)
13220     # Under GNU Hurd, this test is not required because there is
13221     # no limit to the length of command line arguments.
13222     # Libtool will interpret -1 as no limit whatsoever
13223     lt_cv_sys_max_cmd_len=-1;
13224     ;;
13225
13226   cygwin* | mingw*)
13227     # On Win9x/ME, this test blows up -- it succeeds, but takes
13228     # about 5 minutes as the teststring grows exponentially.
13229     # Worse, since 9x/ME are not pre-emptively multitasking,
13230     # you end up with a "frozen" computer, even though with patience
13231     # the test eventually succeeds (with a max line length of 256k).
13232     # Instead, let's just punt: use the minimum linelength reported by
13233     # all of the supported platforms: 8192 (on NT/2K/XP).
13234     lt_cv_sys_max_cmd_len=8192;
13235     ;;
13236
13237   amigaos*)
13238     # On AmigaOS with pdksh, this test takes hours, literally.
13239     # So we just punt and use a minimum line length of 8192.
13240     lt_cv_sys_max_cmd_len=8192;
13241     ;;
13242
13243   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13244     # This has been around since 386BSD, at least.  Likely further.
13245     if test -x /sbin/sysctl; then
13246       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13247     elif test -x /usr/sbin/sysctl; then
13248       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13249     else
13250       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13251     fi
13252     # And add a safety zone
13253     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13254     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13255     ;;
13256
13257   interix*)
13258     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13259     lt_cv_sys_max_cmd_len=196608
13260     ;;
13261
13262   osf*)
13263     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13264     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13265     # nice to cause kernel panics so lets avoid the loop below.
13266     # First set a reasonable default.
13267     lt_cv_sys_max_cmd_len=16384
13268     #
13269     if test -x /sbin/sysconfig; then
13270       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13271         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13272       esac
13273     fi
13274     ;;
13275   sco3.2v5*)
13276     lt_cv_sys_max_cmd_len=102400
13277     ;;
13278   sysv5* | sco5v6* | sysv4.2uw2*)
13279     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13280     if test -n "$kargmax"; then
13281       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13282     else
13283       lt_cv_sys_max_cmd_len=32768
13284     fi
13285     ;;
13286   *)
13287     # If test is not a shell built-in, we'll probably end up computing a
13288     # maximum length that is only half of the actual maximum length, but
13289     # we can't tell.
13290     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13291     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13292                = "XX$teststring") >/dev/null 2>&1 &&
13293             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13294             lt_cv_sys_max_cmd_len=$new_result &&
13295             test $i != 17 # 1/2 MB should be enough
13296     do
13297       i=`expr $i + 1`
13298       teststring=$teststring$teststring
13299     done
13300     teststring=
13301     # Add a significant safety factor because C++ compilers can tack on massive
13302     # amounts of additional arguments before passing them to the linker.
13303     # It appears as though 1/2 is a usable value.
13304     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13305     ;;
13306   esac
13307
13308 fi
13309
13310 if test -n $lt_cv_sys_max_cmd_len ; then
13311   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13312 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13313 else
13314   { echo "$as_me:$LINENO: result: none" >&5
13315 echo "${ECHO_T}none" >&6; }
13316 fi
13317
13318
13319
13320
13321 # Check for command to grab the raw symbol name followed by C symbol from nm.
13322 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13323 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13324 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327
13328 # These are sane defaults that work on at least a few old systems.
13329 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13330
13331 # Character class describing NM global symbol codes.
13332 symcode='[BCDEGRST]'
13333
13334 # Regexp to match symbols that can be accessed directly from C.
13335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13336
13337 # Transform an extracted symbol line into a proper C declaration
13338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13339
13340 # Transform an extracted symbol line into symbol name and symbol address
13341 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'"
13342
13343 # Define system-specific variables.
13344 case $host_os in
13345 aix*)
13346   symcode='[BCDT]'
13347   ;;
13348 cygwin* | mingw* | pw32*)
13349   symcode='[ABCDGISTW]'
13350   ;;
13351 hpux*) # Its linker distinguishes data from code symbols
13352   if test "$host_cpu" = ia64; then
13353     symcode='[ABCDEGRST]'
13354   fi
13355   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13356   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'"
13357   ;;
13358 linux*)
13359   if test "$host_cpu" = ia64; then
13360     symcode='[ABCDGIRSTW]'
13361     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13362     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'"
13363   fi
13364   ;;
13365 irix* | nonstopux*)
13366   symcode='[BCDEGRST]'
13367   ;;
13368 osf*)
13369   symcode='[BCDEGQRST]'
13370   ;;
13371 solaris*)
13372   symcode='[BDRT]'
13373   ;;
13374 sco3.2v5*)
13375   symcode='[DT]'
13376   ;;
13377 sysv4.2uw2*)
13378   symcode='[DT]'
13379   ;;
13380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13381   symcode='[ABDT]'
13382   ;;
13383 sysv4)
13384   symcode='[DFNSTU]'
13385   ;;
13386 esac
13387
13388 # Handle CRLF in mingw tool chain
13389 opt_cr=
13390 case $build_os in
13391 mingw*)
13392   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13393   ;;
13394 esac
13395
13396 # If we're using GNU nm, then use its standard symbol codes.
13397 case `$NM -V 2>&1` in
13398 *GNU* | *'with BFD'*)
13399   symcode='[ABCDGIRSTW]' ;;
13400 esac
13401
13402 # Try without a prefix undercore, then with it.
13403 for ac_symprfx in "" "_"; do
13404
13405   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13406   symxfrm="\\1 $ac_symprfx\\2 \\2"
13407
13408   # Write the raw and C identifiers.
13409   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13410
13411   # Check to see that the pipe works correctly.
13412   pipe_works=no
13413
13414   rm -f conftest*
13415   cat > conftest.$ac_ext <<EOF
13416 #ifdef __cplusplus
13417 extern "C" {
13418 #endif
13419 char nm_test_var;
13420 void nm_test_func(){}
13421 #ifdef __cplusplus
13422 }
13423 #endif
13424 int main(){nm_test_var='a';nm_test_func();return(0);}
13425 EOF
13426
13427   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428   (eval $ac_compile) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; then
13432     # Now try to grab the symbols.
13433     nlist=conftest.nm
13434     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13435   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } && test -s "$nlist"; then
13439       # Try sorting and uniquifying the output.
13440       if sort "$nlist" | uniq > "$nlist"T; then
13441         mv -f "$nlist"T "$nlist"
13442       else
13443         rm -f "$nlist"T
13444       fi
13445
13446       # Make sure that we snagged all the symbols we need.
13447       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13448         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13449           cat <<EOF > conftest.$ac_ext
13450 #ifdef __cplusplus
13451 extern "C" {
13452 #endif
13453
13454 EOF
13455           # Now generate the symbol file.
13456           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13457
13458           cat <<EOF >> conftest.$ac_ext
13459 #if defined (__STDC__) && __STDC__
13460 # define lt_ptr_t void *
13461 #else
13462 # define lt_ptr_t char *
13463 # define const
13464 #endif
13465
13466 /* The mapping between symbol names and symbols. */
13467 const struct {
13468   const char *name;
13469   lt_ptr_t address;
13470 }
13471 lt_preloaded_symbols[] =
13472 {
13473 EOF
13474           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13475           cat <<\EOF >> conftest.$ac_ext
13476   {0, (lt_ptr_t) 0}
13477 };
13478
13479 #ifdef __cplusplus
13480 }
13481 #endif
13482 EOF
13483           # Now try linking the two files.
13484           mv conftest.$ac_objext conftstm.$ac_objext
13485           lt_save_LIBS="$LIBS"
13486           lt_save_CFLAGS="$CFLAGS"
13487           LIBS="conftstm.$ac_objext"
13488           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13489           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490   (eval $ac_link) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13494             pipe_works=yes
13495           fi
13496           LIBS="$lt_save_LIBS"
13497           CFLAGS="$lt_save_CFLAGS"
13498         else
13499           echo "cannot find nm_test_func in $nlist" >&5
13500         fi
13501       else
13502         echo "cannot find nm_test_var in $nlist" >&5
13503       fi
13504     else
13505       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13506     fi
13507   else
13508     echo "$progname: failed program was:" >&5
13509     cat conftest.$ac_ext >&5
13510   fi
13511   rm -f conftest* conftst*
13512
13513   # Do not use the global_symbol_pipe unless it works.
13514   if test "$pipe_works" = yes; then
13515     break
13516   else
13517     lt_cv_sys_global_symbol_pipe=
13518   fi
13519 done
13520
13521 fi
13522
13523 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13524   lt_cv_sys_global_symbol_to_cdecl=
13525 fi
13526 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13527   { echo "$as_me:$LINENO: result: failed" >&5
13528 echo "${ECHO_T}failed" >&6; }
13529 else
13530   { echo "$as_me:$LINENO: result: ok" >&5
13531 echo "${ECHO_T}ok" >&6; }
13532 fi
13533
13534 { echo "$as_me:$LINENO: checking for objdir" >&5
13535 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13536 if test "${lt_cv_objdir+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   rm -f .libs 2>/dev/null
13540 mkdir .libs 2>/dev/null
13541 if test -d .libs; then
13542   lt_cv_objdir=.libs
13543 else
13544   # MS-DOS does not allow filenames that begin with a dot.
13545   lt_cv_objdir=_libs
13546 fi
13547 rmdir .libs 2>/dev/null
13548 fi
13549 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13550 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13551 objdir=$lt_cv_objdir
13552
13553
13554
13555
13556
13557 case $host_os in
13558 aix3*)
13559   # AIX sometimes has problems with the GCC collect2 program.  For some
13560   # reason, if we set the COLLECT_NAMES environment variable, the problems
13561   # vanish in a puff of smoke.
13562   if test "X${COLLECT_NAMES+set}" != Xset; then
13563     COLLECT_NAMES=
13564     export COLLECT_NAMES
13565   fi
13566   ;;
13567 esac
13568
13569 # Sed substitution that helps us do robust quoting.  It backslashifies
13570 # metacharacters that are still active within double-quoted strings.
13571 Xsed='sed -e 1s/^X//'
13572 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13573
13574 # Same as above, but do not quote variable references.
13575 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13576
13577 # Sed substitution to delay expansion of an escaped shell variable in a
13578 # double_quote_subst'ed string.
13579 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13580
13581 # Sed substitution to avoid accidental globbing in evaled expressions
13582 no_glob_subst='s/\*/\\\*/g'
13583
13584 # Constants:
13585 rm="rm -f"
13586
13587 # Global variables:
13588 default_ofile=mklib
13589 can_build_shared=yes
13590
13591 # All known linkers require a `.a' archive for static linking (except MSVC,
13592 # which needs '.lib').
13593 libext=a
13594 ltmain="$ac_aux_dir/ltmain.sh"
13595 ofile="$default_ofile"
13596 with_gnu_ld="$lt_cv_prog_gnu_ld"
13597
13598 if test -n "$ac_tool_prefix"; then
13599   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13600 set dummy ${ac_tool_prefix}ar; ac_word=$2
13601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13603 if test "${ac_cv_prog_AR+set}" = set; then
13604   echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606   if test -n "$AR"; then
13607   ac_cv_prog_AR="$AR" # Let the user override the test.
13608 else
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13611 do
13612   IFS=$as_save_IFS
13613   test -z "$as_dir" && as_dir=.
13614   for ac_exec_ext in '' $ac_executable_extensions; do
13615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13616     ac_cv_prog_AR="${ac_tool_prefix}ar"
13617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13618     break 2
13619   fi
13620 done
13621 done
13622 IFS=$as_save_IFS
13623
13624 fi
13625 fi
13626 AR=$ac_cv_prog_AR
13627 if test -n "$AR"; then
13628   { echo "$as_me:$LINENO: result: $AR" >&5
13629 echo "${ECHO_T}$AR" >&6; }
13630 else
13631   { echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6; }
13633 fi
13634
13635
13636 fi
13637 if test -z "$ac_cv_prog_AR"; then
13638   ac_ct_AR=$AR
13639   # Extract the first word of "ar", so it can be a program name with args.
13640 set dummy ar; ac_word=$2
13641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13643 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13644   echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646   if test -n "$ac_ct_AR"; then
13647   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13648 else
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13651 do
13652   IFS=$as_save_IFS
13653   test -z "$as_dir" && as_dir=.
13654   for ac_exec_ext in '' $ac_executable_extensions; do
13655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13656     ac_cv_prog_ac_ct_AR="ar"
13657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13658     break 2
13659   fi
13660 done
13661 done
13662 IFS=$as_save_IFS
13663
13664 fi
13665 fi
13666 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13667 if test -n "$ac_ct_AR"; then
13668   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13669 echo "${ECHO_T}$ac_ct_AR" >&6; }
13670 else
13671   { echo "$as_me:$LINENO: result: no" >&5
13672 echo "${ECHO_T}no" >&6; }
13673 fi
13674
13675   if test "x$ac_ct_AR" = x; then
13676     AR="false"
13677   else
13678     case $cross_compiling:$ac_tool_warned in
13679 yes:)
13680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13681 whose name does not start with the host triplet.  If you think this
13682 configuration is useful to you, please write to autoconf@gnu.org." >&5
13683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13684 whose name does not start with the host triplet.  If you think this
13685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13686 ac_tool_warned=yes ;;
13687 esac
13688     AR=$ac_ct_AR
13689   fi
13690 else
13691   AR="$ac_cv_prog_AR"
13692 fi
13693
13694 if test -n "$ac_tool_prefix"; then
13695   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13699 if test "${ac_cv_prog_RANLIB+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   if test -n "$RANLIB"; then
13703   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708   IFS=$as_save_IFS
13709   test -z "$as_dir" && as_dir=.
13710   for ac_exec_ext in '' $ac_executable_extensions; do
13711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13712     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13714     break 2
13715   fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 fi
13721 fi
13722 RANLIB=$ac_cv_prog_RANLIB
13723 if test -n "$RANLIB"; then
13724   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13725 echo "${ECHO_T}$RANLIB" >&6; }
13726 else
13727   { echo "$as_me:$LINENO: result: no" >&5
13728 echo "${ECHO_T}no" >&6; }
13729 fi
13730
13731
13732 fi
13733 if test -z "$ac_cv_prog_RANLIB"; then
13734   ac_ct_RANLIB=$RANLIB
13735   # Extract the first word of "ranlib", so it can be a program name with args.
13736 set dummy ranlib; ac_word=$2
13737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13739 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13740   echo $ECHO_N "(cached) $ECHO_C" >&6
13741 else
13742   if test -n "$ac_ct_RANLIB"; then
13743   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748   IFS=$as_save_IFS
13749   test -z "$as_dir" && as_dir=.
13750   for ac_exec_ext in '' $ac_executable_extensions; do
13751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13752     ac_cv_prog_ac_ct_RANLIB="ranlib"
13753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13754     break 2
13755   fi
13756 done
13757 done
13758 IFS=$as_save_IFS
13759
13760 fi
13761 fi
13762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13763 if test -n "$ac_ct_RANLIB"; then
13764   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13765 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13766 else
13767   { echo "$as_me:$LINENO: result: no" >&5
13768 echo "${ECHO_T}no" >&6; }
13769 fi
13770
13771   if test "x$ac_ct_RANLIB" = x; then
13772     RANLIB=":"
13773   else
13774     case $cross_compiling:$ac_tool_warned in
13775 yes:)
13776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13777 whose name does not start with the host triplet.  If you think this
13778 configuration is useful to you, please write to autoconf@gnu.org." >&5
13779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13780 whose name does not start with the host triplet.  If you think this
13781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13782 ac_tool_warned=yes ;;
13783 esac
13784     RANLIB=$ac_ct_RANLIB
13785   fi
13786 else
13787   RANLIB="$ac_cv_prog_RANLIB"
13788 fi
13789
13790 if test -n "$ac_tool_prefix"; then
13791   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13792 set dummy ${ac_tool_prefix}strip; ac_word=$2
13793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13795 if test "${ac_cv_prog_STRIP+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   if test -n "$STRIP"; then
13799   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13800 else
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804   IFS=$as_save_IFS
13805   test -z "$as_dir" && as_dir=.
13806   for ac_exec_ext in '' $ac_executable_extensions; do
13807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13808     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810     break 2
13811   fi
13812 done
13813 done
13814 IFS=$as_save_IFS
13815
13816 fi
13817 fi
13818 STRIP=$ac_cv_prog_STRIP
13819 if test -n "$STRIP"; then
13820   { echo "$as_me:$LINENO: result: $STRIP" >&5
13821 echo "${ECHO_T}$STRIP" >&6; }
13822 else
13823   { echo "$as_me:$LINENO: result: no" >&5
13824 echo "${ECHO_T}no" >&6; }
13825 fi
13826
13827
13828 fi
13829 if test -z "$ac_cv_prog_STRIP"; then
13830   ac_ct_STRIP=$STRIP
13831   # Extract the first word of "strip", so it can be a program name with args.
13832 set dummy strip; ac_word=$2
13833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   if test -n "$ac_ct_STRIP"; then
13839   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13840 else
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13843 do
13844   IFS=$as_save_IFS
13845   test -z "$as_dir" && as_dir=.
13846   for ac_exec_ext in '' $ac_executable_extensions; do
13847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13848     ac_cv_prog_ac_ct_STRIP="strip"
13849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13850     break 2
13851   fi
13852 done
13853 done
13854 IFS=$as_save_IFS
13855
13856 fi
13857 fi
13858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13859 if test -n "$ac_ct_STRIP"; then
13860   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13861 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13862 else
13863   { echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6; }
13865 fi
13866
13867   if test "x$ac_ct_STRIP" = x; then
13868     STRIP=":"
13869   else
13870     case $cross_compiling:$ac_tool_warned in
13871 yes:)
13872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13873 whose name does not start with the host triplet.  If you think this
13874 configuration is useful to you, please write to autoconf@gnu.org." >&5
13875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13876 whose name does not start with the host triplet.  If you think this
13877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13878 ac_tool_warned=yes ;;
13879 esac
13880     STRIP=$ac_ct_STRIP
13881   fi
13882 else
13883   STRIP="$ac_cv_prog_STRIP"
13884 fi
13885
13886
13887 old_CC="$CC"
13888 old_CFLAGS="$CFLAGS"
13889
13890 # Set sane defaults for various variables
13891 test -z "$AR" && AR=ar
13892 test -z "$AR_FLAGS" && AR_FLAGS=cru
13893 test -z "$AS" && AS=as
13894 test -z "$CC" && CC=cc
13895 test -z "$LTCC" && LTCC=$CC
13896 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13897 test -z "$DLLTOOL" && DLLTOOL=dlltool
13898 test -z "$LD" && LD=ld
13899 test -z "$LN_S" && LN_S="ln -s"
13900 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13901 test -z "$NM" && NM=nm
13902 test -z "$SED" && SED=sed
13903 test -z "$OBJDUMP" && OBJDUMP=objdump
13904 test -z "$RANLIB" && RANLIB=:
13905 test -z "$STRIP" && STRIP=:
13906 test -z "$ac_objext" && ac_objext=o
13907
13908 # Determine commands to create old-style static archives.
13909 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13910 old_postinstall_cmds='chmod 644 $oldlib'
13911 old_postuninstall_cmds=
13912
13913 if test -n "$RANLIB"; then
13914   case $host_os in
13915   openbsd*)
13916     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13917     ;;
13918   *)
13919     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13920     ;;
13921   esac
13922   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13923 fi
13924
13925 for cc_temp in $compiler""; do
13926   case $cc_temp in
13927     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13928     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13929     \-*) ;;
13930     *) break;;
13931   esac
13932 done
13933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13934
13935
13936 # Only perform the check for file, if the check method requires it
13937 case $deplibs_check_method in
13938 file_magic*)
13939   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13940     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13941 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13943   echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945   case $MAGIC_CMD in
13946 [\\/*] |  ?:[\\/]*)
13947   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13948   ;;
13949 *)
13950   lt_save_MAGIC_CMD="$MAGIC_CMD"
13951   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13952   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13953   for ac_dir in $ac_dummy; do
13954     IFS="$lt_save_ifs"
13955     test -z "$ac_dir" && ac_dir=.
13956     if test -f $ac_dir/${ac_tool_prefix}file; then
13957       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13958       if test -n "$file_magic_test_file"; then
13959         case $deplibs_check_method in
13960         "file_magic "*)
13961           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13962           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13963           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13964             $EGREP "$file_magic_regex" > /dev/null; then
13965             :
13966           else
13967             cat <<EOF 1>&2
13968
13969 *** Warning: the command libtool uses to detect shared libraries,
13970 *** $file_magic_cmd, produces output that libtool cannot recognize.
13971 *** The result is that libtool may fail to recognize shared libraries
13972 *** as such.  This will affect the creation of libtool libraries that
13973 *** depend on shared libraries, but programs linked with such libtool
13974 *** libraries will work regardless of this problem.  Nevertheless, you
13975 *** may want to report the problem to your system manager and/or to
13976 *** bug-libtool@gnu.org
13977
13978 EOF
13979           fi ;;
13980         esac
13981       fi
13982       break
13983     fi
13984   done
13985   IFS="$lt_save_ifs"
13986   MAGIC_CMD="$lt_save_MAGIC_CMD"
13987   ;;
13988 esac
13989 fi
13990
13991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13992 if test -n "$MAGIC_CMD"; then
13993   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13994 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13995 else
13996   { echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6; }
13998 fi
13999
14000 if test -z "$lt_cv_path_MAGIC_CMD"; then
14001   if test -n "$ac_tool_prefix"; then
14002     { echo "$as_me:$LINENO: checking for file" >&5
14003 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14004 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007   case $MAGIC_CMD in
14008 [\\/*] |  ?:[\\/]*)
14009   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14010   ;;
14011 *)
14012   lt_save_MAGIC_CMD="$MAGIC_CMD"
14013   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14014   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14015   for ac_dir in $ac_dummy; do
14016     IFS="$lt_save_ifs"
14017     test -z "$ac_dir" && ac_dir=.
14018     if test -f $ac_dir/file; then
14019       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14020       if test -n "$file_magic_test_file"; then
14021         case $deplibs_check_method in
14022         "file_magic "*)
14023           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14024           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14025           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14026             $EGREP "$file_magic_regex" > /dev/null; then
14027             :
14028           else
14029             cat <<EOF 1>&2
14030
14031 *** Warning: the command libtool uses to detect shared libraries,
14032 *** $file_magic_cmd, produces output that libtool cannot recognize.
14033 *** The result is that libtool may fail to recognize shared libraries
14034 *** as such.  This will affect the creation of libtool libraries that
14035 *** depend on shared libraries, but programs linked with such libtool
14036 *** libraries will work regardless of this problem.  Nevertheless, you
14037 *** may want to report the problem to your system manager and/or to
14038 *** bug-libtool@gnu.org
14039
14040 EOF
14041           fi ;;
14042         esac
14043       fi
14044       break
14045     fi
14046   done
14047   IFS="$lt_save_ifs"
14048   MAGIC_CMD="$lt_save_MAGIC_CMD"
14049   ;;
14050 esac
14051 fi
14052
14053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14054 if test -n "$MAGIC_CMD"; then
14055   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14056 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14057 else
14058   { echo "$as_me:$LINENO: result: no" >&5
14059 echo "${ECHO_T}no" >&6; }
14060 fi
14061
14062   else
14063     MAGIC_CMD=:
14064   fi
14065 fi
14066
14067   fi
14068   ;;
14069 esac
14070
14071 enable_dlopen=yes
14072 enable_win32_dll=no
14073
14074 # Check whether --enable-libtool-lock was given.
14075 if test "${enable_libtool_lock+set}" = set; then
14076   enableval=$enable_libtool_lock;
14077 fi
14078
14079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14080
14081
14082 # Check whether --with-pic was given.
14083 if test "${with_pic+set}" = set; then
14084   withval=$with_pic; pic_mode="$withval"
14085 else
14086   pic_mode=default
14087 fi
14088
14089 test -z "$pic_mode" && pic_mode=default
14090
14091 # Use C for the default configuration in the libtool script
14092 tagname=
14093 lt_save_CC="$CC"
14094 ac_ext=c
14095 ac_cpp='$CPP $CPPFLAGS'
14096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14099
14100
14101 # Source file extension for C test sources.
14102 ac_ext=c
14103
14104 # Object file extension for compiled C test sources.
14105 objext=o
14106 objext=$objext
14107
14108 # Code to be used in simple compile tests
14109 lt_simple_compile_test_code="int some_variable = 0;\n"
14110
14111 # Code to be used in simple link tests
14112 lt_simple_link_test_code='int main(){return(0);}\n'
14113
14114
14115 # If no C compiler was specified, use CC.
14116 LTCC=${LTCC-"$CC"}
14117
14118 # If no C compiler flags were specified, use CFLAGS.
14119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14120
14121 # Allow CC to be a program name with arguments.
14122 compiler=$CC
14123
14124
14125 # save warnings/boilerplate of simple test code
14126 ac_outfile=conftest.$ac_objext
14127 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14129 _lt_compiler_boilerplate=`cat conftest.err`
14130 $rm conftest*
14131
14132 ac_outfile=conftest.$ac_objext
14133 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14135 _lt_linker_boilerplate=`cat conftest.err`
14136 $rm conftest*
14137
14138
14139
14140 lt_prog_compiler_no_builtin_flag=
14141
14142 if test "$GCC" = yes; then
14143   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14144
14145
14146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14149   echo $ECHO_N "(cached) $ECHO_C" >&6
14150 else
14151   lt_cv_prog_compiler_rtti_exceptions=no
14152   ac_outfile=conftest.$ac_objext
14153    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14154    lt_compiler_flag="-fno-rtti -fno-exceptions"
14155    # Insert the option either (1) after the last *FLAGS variable, or
14156    # (2) before a word containing "conftest.", or (3) at the end.
14157    # Note that $ac_compile itself does not contain backslashes and begins
14158    # with a dollar sign (not a hyphen), so the echo should work correctly.
14159    # The option is referenced via a variable to avoid confusing sed.
14160    lt_compile=`echo "$ac_compile" | $SED \
14161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14163    -e 's:$: $lt_compiler_flag:'`
14164    (eval echo "\"\$as_me:14164: $lt_compile\"" >&5)
14165    (eval "$lt_compile" 2>conftest.err)
14166    ac_status=$?
14167    cat conftest.err >&5
14168    echo "$as_me:14168: \$? = $ac_status" >&5
14169    if (exit $ac_status) && test -s "$ac_outfile"; then
14170      # The compiler can only warn and ignore the option if not recognized
14171      # So say no if there are warnings other than the usual output.
14172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14173      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14174      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14175        lt_cv_prog_compiler_rtti_exceptions=yes
14176      fi
14177    fi
14178    $rm conftest*
14179
14180 fi
14181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14183
14184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14185     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14186 else
14187     :
14188 fi
14189
14190 fi
14191
14192 lt_prog_compiler_wl=
14193 lt_prog_compiler_pic=
14194 lt_prog_compiler_static=
14195
14196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14198
14199   if test "$GCC" = yes; then
14200     lt_prog_compiler_wl='-Wl,'
14201     lt_prog_compiler_static='-static'
14202
14203     case $host_os in
14204       aix*)
14205       # All AIX code is PIC.
14206       if test "$host_cpu" = ia64; then
14207         # AIX 5 now supports IA64 processor
14208         lt_prog_compiler_static='-Bstatic'
14209       fi
14210       ;;
14211
14212     amigaos*)
14213       # FIXME: we need at least 68020 code to build shared libraries, but
14214       # adding the `-m68020' flag to GCC prevents building anything better,
14215       # like `-m68040'.
14216       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14217       ;;
14218
14219     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14220       # PIC is the default for these OSes.
14221       ;;
14222
14223     mingw* | pw32* | os2*)
14224       # This hack is so that the source file can tell whether it is being
14225       # built for inclusion in a dll (and should export symbols for example).
14226       lt_prog_compiler_pic='-DDLL_EXPORT'
14227       ;;
14228
14229     darwin* | rhapsody*)
14230       # PIC is the default on this platform
14231       # Common symbols not allowed in MH_DYLIB files
14232       lt_prog_compiler_pic='-fno-common'
14233       ;;
14234
14235     interix3*)
14236       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14237       # Instead, we relocate shared libraries at runtime.
14238       ;;
14239
14240     msdosdjgpp*)
14241       # Just because we use GCC doesn't mean we suddenly get shared libraries
14242       # on systems that don't support them.
14243       lt_prog_compiler_can_build_shared=no
14244       enable_shared=no
14245       ;;
14246
14247     sysv4*MP*)
14248       if test -d /usr/nec; then
14249         lt_prog_compiler_pic=-Kconform_pic
14250       fi
14251       ;;
14252
14253     hpux*)
14254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255       # not for PA HP-UX.
14256       case $host_cpu in
14257       hppa*64*|ia64*)
14258         # +Z the default
14259         ;;
14260       *)
14261         lt_prog_compiler_pic='-fPIC'
14262         ;;
14263       esac
14264       ;;
14265
14266     *)
14267       lt_prog_compiler_pic='-fPIC'
14268       ;;
14269     esac
14270   else
14271     # PORTME Check for flag to pass linker flags through the system compiler.
14272     case $host_os in
14273     aix*)
14274       lt_prog_compiler_wl='-Wl,'
14275       if test "$host_cpu" = ia64; then
14276         # AIX 5 now supports IA64 processor
14277         lt_prog_compiler_static='-Bstatic'
14278       else
14279         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14280       fi
14281       ;;
14282       darwin*)
14283         # PIC is the default on this platform
14284         # Common symbols not allowed in MH_DYLIB files
14285        case $cc_basename in
14286          xlc*)
14287          lt_prog_compiler_pic='-qnocommon'
14288          lt_prog_compiler_wl='-Wl,'
14289          ;;
14290        esac
14291        ;;
14292
14293     mingw* | pw32* | os2*)
14294       # This hack is so that the source file can tell whether it is being
14295       # built for inclusion in a dll (and should export symbols for example).
14296       lt_prog_compiler_pic='-DDLL_EXPORT'
14297       ;;
14298
14299     hpux9* | hpux10* | hpux11*)
14300       lt_prog_compiler_wl='-Wl,'
14301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302       # not for PA HP-UX.
14303       case $host_cpu in
14304       hppa*64*|ia64*)
14305         # +Z the default
14306         ;;
14307       *)
14308         lt_prog_compiler_pic='+Z'
14309         ;;
14310       esac
14311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312       lt_prog_compiler_static='${wl}-a ${wl}archive'
14313       ;;
14314
14315     irix5* | irix6* | nonstopux*)
14316       lt_prog_compiler_wl='-Wl,'
14317       # PIC (with -KPIC) is the default.
14318       lt_prog_compiler_static='-non_shared'
14319       ;;
14320
14321     newsos6)
14322       lt_prog_compiler_pic='-KPIC'
14323       lt_prog_compiler_static='-Bstatic'
14324       ;;
14325
14326     linux*)
14327       case $cc_basename in
14328       icc* | ecc*)
14329         lt_prog_compiler_wl='-Wl,'
14330         lt_prog_compiler_pic='-KPIC'
14331         lt_prog_compiler_static='-static'
14332         ;;
14333       pgcc* | pgf77* | pgf90* | pgf95*)
14334         # Portland Group compilers (*not* the Pentium gcc compiler,
14335         # which looks to be a dead project)
14336         lt_prog_compiler_wl='-Wl,'
14337         lt_prog_compiler_pic='-fpic'
14338         lt_prog_compiler_static='-Bstatic'
14339         ;;
14340       ccc*)
14341         lt_prog_compiler_wl='-Wl,'
14342         # All Alpha code is PIC.
14343         lt_prog_compiler_static='-non_shared'
14344         ;;
14345       esac
14346       ;;
14347
14348     osf3* | osf4* | osf5*)
14349       lt_prog_compiler_wl='-Wl,'
14350       # All OSF/1 code is PIC.
14351       lt_prog_compiler_static='-non_shared'
14352       ;;
14353
14354     solaris*)
14355       lt_prog_compiler_pic='-KPIC'
14356       lt_prog_compiler_static='-Bstatic'
14357       case $cc_basename in
14358       f77* | f90* | f95*)
14359         lt_prog_compiler_wl='-Qoption ld ';;
14360       *)
14361         lt_prog_compiler_wl='-Wl,';;
14362       esac
14363       ;;
14364
14365     sunos4*)
14366       lt_prog_compiler_wl='-Qoption ld '
14367       lt_prog_compiler_pic='-PIC'
14368       lt_prog_compiler_static='-Bstatic'
14369       ;;
14370
14371     sysv4 | sysv4.2uw2* | sysv4.3*)
14372       lt_prog_compiler_wl='-Wl,'
14373       lt_prog_compiler_pic='-KPIC'
14374       lt_prog_compiler_static='-Bstatic'
14375       ;;
14376
14377     sysv4*MP*)
14378       if test -d /usr/nec ;then
14379         lt_prog_compiler_pic='-Kconform_pic'
14380         lt_prog_compiler_static='-Bstatic'
14381       fi
14382       ;;
14383
14384     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14385       lt_prog_compiler_wl='-Wl,'
14386       lt_prog_compiler_pic='-KPIC'
14387       lt_prog_compiler_static='-Bstatic'
14388       ;;
14389
14390     unicos*)
14391       lt_prog_compiler_wl='-Wl,'
14392       lt_prog_compiler_can_build_shared=no
14393       ;;
14394
14395     uts4*)
14396       lt_prog_compiler_pic='-pic'
14397       lt_prog_compiler_static='-Bstatic'
14398       ;;
14399
14400     *)
14401       lt_prog_compiler_can_build_shared=no
14402       ;;
14403     esac
14404   fi
14405
14406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14407 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14408
14409 #
14410 # Check to make sure the PIC flag actually works.
14411 #
14412 if test -n "$lt_prog_compiler_pic"; then
14413
14414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14416 if test "${lt_prog_compiler_pic_works+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   lt_prog_compiler_pic_works=no
14420   ac_outfile=conftest.$ac_objext
14421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14422    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14423    # Insert the option either (1) after the last *FLAGS variable, or
14424    # (2) before a word containing "conftest.", or (3) at the end.
14425    # Note that $ac_compile itself does not contain backslashes and begins
14426    # with a dollar sign (not a hyphen), so the echo should work correctly.
14427    # The option is referenced via a variable to avoid confusing sed.
14428    lt_compile=`echo "$ac_compile" | $SED \
14429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14431    -e 's:$: $lt_compiler_flag:'`
14432    (eval echo "\"\$as_me:14432: $lt_compile\"" >&5)
14433    (eval "$lt_compile" 2>conftest.err)
14434    ac_status=$?
14435    cat conftest.err >&5
14436    echo "$as_me:14436: \$? = $ac_status" >&5
14437    if (exit $ac_status) && test -s "$ac_outfile"; then
14438      # The compiler can only warn and ignore the option if not recognized
14439      # So say no if there are warnings other than the usual output.
14440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14443        lt_prog_compiler_pic_works=yes
14444      fi
14445    fi
14446    $rm conftest*
14447
14448 fi
14449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14450 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14451
14452 if test x"$lt_prog_compiler_pic_works" = xyes; then
14453     case $lt_prog_compiler_pic in
14454      "" | " "*) ;;
14455      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14456      esac
14457 else
14458     lt_prog_compiler_pic=
14459      lt_prog_compiler_can_build_shared=no
14460 fi
14461
14462 fi
14463 case $host_os in
14464   # For platforms which do not support PIC, -DPIC is meaningless:
14465   *djgpp*)
14466     lt_prog_compiler_pic=
14467     ;;
14468   *)
14469     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14470     ;;
14471 esac
14472
14473 #
14474 # Check to make sure the static flag actually works.
14475 #
14476 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14479 if test "${lt_prog_compiler_static_works+set}" = set; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   lt_prog_compiler_static_works=no
14483    save_LDFLAGS="$LDFLAGS"
14484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14485    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14487      # The linker can only warn and ignore the option if not recognized
14488      # So say no if there are warnings
14489      if test -s conftest.err; then
14490        # Append any errors to the config.log.
14491        cat conftest.err 1>&5
14492        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14494        if diff conftest.exp conftest.er2 >/dev/null; then
14495          lt_prog_compiler_static_works=yes
14496        fi
14497      else
14498        lt_prog_compiler_static_works=yes
14499      fi
14500    fi
14501    $rm conftest*
14502    LDFLAGS="$save_LDFLAGS"
14503
14504 fi
14505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14506 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14507
14508 if test x"$lt_prog_compiler_static_works" = xyes; then
14509     :
14510 else
14511     lt_prog_compiler_static=
14512 fi
14513
14514
14515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14517 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   lt_cv_prog_compiler_c_o=no
14521    $rm -r conftest 2>/dev/null
14522    mkdir conftest
14523    cd conftest
14524    mkdir out
14525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14526
14527    lt_compiler_flag="-o out/conftest2.$ac_objext"
14528    # Insert the option either (1) after the last *FLAGS variable, or
14529    # (2) before a word containing "conftest.", or (3) at the end.
14530    # Note that $ac_compile itself does not contain backslashes and begins
14531    # with a dollar sign (not a hyphen), so the echo should work correctly.
14532    lt_compile=`echo "$ac_compile" | $SED \
14533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535    -e 's:$: $lt_compiler_flag:'`
14536    (eval echo "\"\$as_me:14536: $lt_compile\"" >&5)
14537    (eval "$lt_compile" 2>out/conftest.err)
14538    ac_status=$?
14539    cat out/conftest.err >&5
14540    echo "$as_me:14540: \$? = $ac_status" >&5
14541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14542    then
14543      # The compiler can only warn and ignore the option if not recognized
14544      # So say no if there are warnings
14545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14546      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14547      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14548        lt_cv_prog_compiler_c_o=yes
14549      fi
14550    fi
14551    chmod u+w . 2>&5
14552    $rm conftest*
14553    # SGI C++ compiler will create directory out/ii_files/ for
14554    # template instantiation
14555    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14556    $rm out/* && rmdir out
14557    cd ..
14558    rmdir conftest
14559    $rm conftest*
14560
14561 fi
14562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14564
14565
14566 hard_links="nottested"
14567 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14568   # do not overwrite the value of need_locks provided by the user
14569   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14571   hard_links=yes
14572   $rm conftest*
14573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574   touch conftest.a
14575   ln conftest.a conftest.b 2>&5 || hard_links=no
14576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577   { echo "$as_me:$LINENO: result: $hard_links" >&5
14578 echo "${ECHO_T}$hard_links" >&6; }
14579   if test "$hard_links" = no; then
14580     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14582     need_locks=warn
14583   fi
14584 else
14585   need_locks=no
14586 fi
14587
14588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14590
14591   runpath_var=
14592   allow_undefined_flag=
14593   enable_shared_with_static_runtimes=no
14594   archive_cmds=
14595   archive_expsym_cmds=
14596   old_archive_From_new_cmds=
14597   old_archive_from_expsyms_cmds=
14598   export_dynamic_flag_spec=
14599   whole_archive_flag_spec=
14600   thread_safe_flag_spec=
14601   hardcode_libdir_flag_spec=
14602   hardcode_libdir_flag_spec_ld=
14603   hardcode_libdir_separator=
14604   hardcode_direct=no
14605   hardcode_minus_L=no
14606   hardcode_shlibpath_var=unsupported
14607   link_all_deplibs=unknown
14608   hardcode_automatic=no
14609   module_cmds=
14610   module_expsym_cmds=
14611   always_export_symbols=no
14612   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14613   # include_expsyms should be a list of space-separated symbols to be *always*
14614   # included in the symbol list
14615   include_expsyms=
14616   # exclude_expsyms can be an extended regexp of symbols to exclude
14617   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14618   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14619   # as well as any symbol that contains `d'.
14620   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14621   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14622   # platforms (ab)use it in PIC code, but their linkers get confused if
14623   # the symbol is explicitly referenced.  Since portable code cannot
14624   # rely on this symbol name, it's probably fine to never include it in
14625   # preloaded symbol tables.
14626   extract_expsyms_cmds=
14627   # Just being paranoid about ensuring that cc_basename is set.
14628   for cc_temp in $compiler""; do
14629   case $cc_temp in
14630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14632     \-*) ;;
14633     *) break;;
14634   esac
14635 done
14636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14637
14638   case $host_os in
14639   cygwin* | mingw* | pw32*)
14640     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14641     # When not using gcc, we currently assume that we are using
14642     # Microsoft Visual C++.
14643     if test "$GCC" != yes; then
14644       with_gnu_ld=no
14645     fi
14646     ;;
14647   interix*)
14648     # we just hope/assume this is gcc and not c89 (= MSVC++)
14649     with_gnu_ld=yes
14650     ;;
14651   openbsd*)
14652     with_gnu_ld=no
14653     ;;
14654   esac
14655
14656   ld_shlibs=yes
14657   if test "$with_gnu_ld" = yes; then
14658     # If archive_cmds runs LD, not CC, wlarc should be empty
14659     wlarc='${wl}'
14660
14661     # Set some defaults for GNU ld with shared library support. These
14662     # are reset later if shared libraries are not supported. Putting them
14663     # here allows them to be overridden if necessary.
14664     runpath_var=LD_RUN_PATH
14665     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14666     export_dynamic_flag_spec='${wl}--export-dynamic'
14667     # ancient GNU ld didn't support --whole-archive et. al.
14668     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14669         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14670       else
14671         whole_archive_flag_spec=
14672     fi
14673     supports_anon_versioning=no
14674     case `$LD -v 2>/dev/null` in
14675       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14676       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14677       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14678       *\ 2.11.*) ;; # other 2.11 versions
14679       *) supports_anon_versioning=yes ;;
14680     esac
14681
14682     # See if GNU ld supports shared libraries.
14683     case $host_os in
14684     aix3* | aix4* | aix5*)
14685       # On AIX/PPC, the GNU linker is very broken
14686       if test "$host_cpu" != ia64; then
14687         ld_shlibs=no
14688         cat <<EOF 1>&2
14689
14690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14691 *** to be unable to reliably create shared libraries on AIX.
14692 *** Therefore, libtool is disabling shared libraries support.  If you
14693 *** really care for shared libraries, you may want to modify your PATH
14694 *** so that a non-GNU linker is found, and then restart.
14695
14696 EOF
14697       fi
14698       ;;
14699
14700     amigaos*)
14701       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)'
14702       hardcode_libdir_flag_spec='-L$libdir'
14703       hardcode_minus_L=yes
14704
14705       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14706       # that the semantics of dynamic libraries on AmigaOS, at least up
14707       # to version 4, is to share data among multiple programs linked
14708       # with the same dynamic library.  Since this doesn't match the
14709       # behavior of shared libraries on other platforms, we can't use
14710       # them.
14711       ld_shlibs=no
14712       ;;
14713
14714     beos*)
14715       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14716         allow_undefined_flag=unsupported
14717         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14718         # support --undefined.  This deserves some investigation.  FIXME
14719         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14720       else
14721         ld_shlibs=no
14722       fi
14723       ;;
14724
14725     cygwin* | mingw* | pw32*)
14726       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14727       # as there is no search path for DLLs.
14728       hardcode_libdir_flag_spec='-L$libdir'
14729       allow_undefined_flag=unsupported
14730       always_export_symbols=no
14731       enable_shared_with_static_runtimes=yes
14732       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14733
14734       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14735         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14736         # If the export-symbols file already is a .def file (1st line
14737         # is EXPORTS), use it as is; otherwise, prepend...
14738         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14739           cp $export_symbols $output_objdir/$soname.def;
14740         else
14741           echo EXPORTS > $output_objdir/$soname.def;
14742           cat $export_symbols >> $output_objdir/$soname.def;
14743         fi~
14744         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14745       else
14746         ld_shlibs=no
14747       fi
14748       ;;
14749
14750     interix3*)
14751       hardcode_direct=no
14752       hardcode_shlibpath_var=no
14753       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14754       export_dynamic_flag_spec='${wl}-E'
14755       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14756       # Instead, shared libraries are loaded at an image base (0x10000000 by
14757       # default) and relocated if they conflict, which is a slow very memory
14758       # consuming and fragmenting process.  To avoid this, we pick a random,
14759       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14760       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14761       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14762       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'
14763       ;;
14764
14765     linux*)
14766       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14767         tmp_addflag=
14768         case $cc_basename,$host_cpu in
14769         pgcc*)                          # Portland Group C compiler
14770           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'
14771           tmp_addflag=' $pic_flag'
14772           ;;
14773         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14774           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'
14775           tmp_addflag=' $pic_flag -Mnomain' ;;
14776         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14777           tmp_addflag=' -i_dynamic' ;;
14778         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14779           tmp_addflag=' -i_dynamic -nofor_main' ;;
14780         ifc* | ifort*)                  # Intel Fortran compiler
14781           tmp_addflag=' -nofor_main' ;;
14782         esac
14783         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784
14785         if test $supports_anon_versioning = yes; then
14786           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14787   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14788   $echo "local: *; };" >> $output_objdir/$libname.ver~
14789           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14790         fi
14791       else
14792         ld_shlibs=no
14793       fi
14794       ;;
14795
14796     netbsd*)
14797       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14798         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14799         wlarc=
14800       else
14801         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14803       fi
14804       ;;
14805
14806     solaris*)
14807       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14808         ld_shlibs=no
14809         cat <<EOF 1>&2
14810
14811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14812 *** create shared libraries on Solaris systems.  Therefore, libtool
14813 *** is disabling shared libraries support.  We urge you to upgrade GNU
14814 *** binutils to release 2.9.1 or newer.  Another option is to modify
14815 *** your PATH or compiler configuration so that the native linker is
14816 *** used, and then restart.
14817
14818 EOF
14819       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14821         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14822       else
14823         ld_shlibs=no
14824       fi
14825       ;;
14826
14827     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14828       case `$LD -v 2>&1` in
14829         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14830         ld_shlibs=no
14831         cat <<_LT_EOF 1>&2
14832
14833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14834 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14835 *** is disabling shared libraries support.  We urge you to upgrade GNU
14836 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14837 *** your PATH or compiler configuration so that the native linker is
14838 *** used, and then restart.
14839
14840 _LT_EOF
14841         ;;
14842         *)
14843           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14844             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14845             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14846             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14847           else
14848             ld_shlibs=no
14849           fi
14850         ;;
14851       esac
14852       ;;
14853
14854     sunos4*)
14855       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14856       wlarc=
14857       hardcode_direct=yes
14858       hardcode_shlibpath_var=no
14859       ;;
14860
14861     *)
14862       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14863         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14865       else
14866         ld_shlibs=no
14867       fi
14868       ;;
14869     esac
14870
14871     if test "$ld_shlibs" = no; then
14872       runpath_var=
14873       hardcode_libdir_flag_spec=
14874       export_dynamic_flag_spec=
14875       whole_archive_flag_spec=
14876     fi
14877   else
14878     # PORTME fill in a description of your system's linker (not GNU ld)
14879     case $host_os in
14880     aix3*)
14881       allow_undefined_flag=unsupported
14882       always_export_symbols=yes
14883       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'
14884       # Note: this linker hardcodes the directories in LIBPATH if there
14885       # are no directories specified by -L.
14886       hardcode_minus_L=yes
14887       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14888         # Neither direct hardcoding nor static linking is supported with a
14889         # broken collect2.
14890         hardcode_direct=unsupported
14891       fi
14892       ;;
14893
14894     aix4* | aix5*)
14895       if test "$host_cpu" = ia64; then
14896         # On IA64, the linker does run time linking by default, so we don't
14897         # have to do anything special.
14898         aix_use_runtimelinking=no
14899         exp_sym_flag='-Bexport'
14900         no_entry_flag=""
14901       else
14902         # If we're using GNU nm, then we don't want the "-C" option.
14903         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14904         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14905           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'
14906         else
14907           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'
14908         fi
14909         aix_use_runtimelinking=no
14910
14911         # Test if we are trying to use run time linking or normal
14912         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14913         # need to do runtime linking.
14914         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14915           for ld_flag in $LDFLAGS; do
14916           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14917             aix_use_runtimelinking=yes
14918             break
14919           fi
14920           done
14921           ;;
14922         esac
14923
14924         exp_sym_flag='-bexport'
14925         no_entry_flag='-bnoentry'
14926       fi
14927
14928       # When large executables or shared objects are built, AIX ld can
14929       # have problems creating the table of contents.  If linking a library
14930       # or program results in "error TOC overflow" add -mminimal-toc to
14931       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14932       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14933
14934       archive_cmds=''
14935       hardcode_direct=yes
14936       hardcode_libdir_separator=':'
14937       link_all_deplibs=yes
14938
14939       if test "$GCC" = yes; then
14940         case $host_os in aix4.[012]|aix4.[012].*)
14941         # We only want to do this on AIX 4.2 and lower, the check
14942         # below for broken collect2 doesn't work under 4.3+
14943           collect2name=`${CC} -print-prog-name=collect2`
14944           if test -f "$collect2name" && \
14945            strings "$collect2name" | grep resolve_lib_name >/dev/null
14946           then
14947           # We have reworked collect2
14948           hardcode_direct=yes
14949           else
14950           # We have old collect2
14951           hardcode_direct=unsupported
14952           # It fails to find uninstalled libraries when the uninstalled
14953           # path is not listed in the libpath.  Setting hardcode_minus_L
14954           # to unsupported forces relinking
14955           hardcode_minus_L=yes
14956           hardcode_libdir_flag_spec='-L$libdir'
14957           hardcode_libdir_separator=
14958           fi
14959           ;;
14960         esac
14961         shared_flag='-shared'
14962         if test "$aix_use_runtimelinking" = yes; then
14963           shared_flag="$shared_flag "'${wl}-G'
14964         fi
14965       else
14966         # not using gcc
14967         if test "$host_cpu" = ia64; then
14968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14969         # chokes on -Wl,-G. The following line is correct:
14970           shared_flag='-G'
14971         else
14972           if test "$aix_use_runtimelinking" = yes; then
14973             shared_flag='${wl}-G'
14974           else
14975             shared_flag='${wl}-bM:SRE'
14976           fi
14977         fi
14978       fi
14979
14980       # It seems that -bexpall does not export symbols beginning with
14981       # underscore (_), so it is better to generate a list of symbols to export.
14982       always_export_symbols=yes
14983       if test "$aix_use_runtimelinking" = yes; then
14984         # Warning - without using the other runtime loading flags (-brtl),
14985         # -berok will link without error, but may produce a broken library.
14986         allow_undefined_flag='-berok'
14987        # Determine the default libpath from the value encoded in an empty executable.
14988        cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994
14995 int
14996 main ()
14997 {
14998
14999   ;
15000   return 0;
15001 }
15002 _ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007   *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010   (eval "$ac_link") 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } &&
15017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018   { (case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_try") 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; } &&
15027          { ac_try='test -s conftest$ac_exeext'
15028   { (case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_try") 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037
15038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15039 }'`
15040 # Check for a 64-bit object if we didn't find anything.
15041 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; }
15042 }'`; fi
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047
15048 fi
15049
15050 rm -f core conftest.err conftest.$ac_objext \
15051       conftest$ac_exeext conftest.$ac_ext
15052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15053
15054        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15055         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"
15056        else
15057         if test "$host_cpu" = ia64; then
15058           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15059           allow_undefined_flag="-z nodefs"
15060           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"
15061         else
15062          # Determine the default libpath from the value encoded in an empty executable.
15063          cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h.  */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h.  */
15069
15070 int
15071 main ()
15072 {
15073
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_link") 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093   { (case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_try") 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; } &&
15102          { ac_try='test -s conftest$ac_exeext'
15103   { (case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_try") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112
15113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15114 }'`
15115 # Check for a 64-bit object if we didn't find anything.
15116 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; }
15117 }'`; fi
15118 else
15119   echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15121
15122
15123 fi
15124
15125 rm -f core conftest.err conftest.$ac_objext \
15126       conftest$ac_exeext conftest.$ac_ext
15127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15128
15129          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15130           # Warning - without using the other run time loading flags,
15131           # -berok will link without error, but may produce a broken library.
15132           no_undefined_flag=' ${wl}-bernotok'
15133           allow_undefined_flag=' ${wl}-berok'
15134           # Exported symbols can be pulled into shared objects from archives
15135           whole_archive_flag_spec='$convenience'
15136           archive_cmds_need_lc=yes
15137           # This is similar to how AIX traditionally builds its shared libraries.
15138           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'
15139         fi
15140       fi
15141       ;;
15142
15143     amigaos*)
15144       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)'
15145       hardcode_libdir_flag_spec='-L$libdir'
15146       hardcode_minus_L=yes
15147       # see comment about different semantics on the GNU ld section
15148       ld_shlibs=no
15149       ;;
15150
15151     bsdi[45]*)
15152       export_dynamic_flag_spec=-rdynamic
15153       ;;
15154
15155     cygwin* | mingw* | pw32*)
15156       # When not using gcc, we currently assume that we are using
15157       # Microsoft Visual C++.
15158       # hardcode_libdir_flag_spec is actually meaningless, as there is
15159       # no search path for DLLs.
15160       hardcode_libdir_flag_spec=' '
15161       allow_undefined_flag=unsupported
15162       # Tell ltmain to make .lib files, not .a files.
15163       libext=lib
15164       # Tell ltmain to make .dll files, not .so files.
15165       shrext_cmds=".dll"
15166       # FIXME: Setting linknames here is a bad hack.
15167       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15168       # The linker will automatically build a .lib file if we build a DLL.
15169       old_archive_From_new_cmds='true'
15170       # FIXME: Should let the user specify the lib program.
15171       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15172       fix_srcfile_path='`cygpath -w "$srcfile"`'
15173       enable_shared_with_static_runtimes=yes
15174       ;;
15175
15176     darwin* | rhapsody*)
15177       case $host_os in
15178         rhapsody* | darwin1.[012])
15179          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15180          ;;
15181        *) # Darwin 1.3 on
15182          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15183            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15184          else
15185            case ${MACOSX_DEPLOYMENT_TARGET} in
15186              10.[012])
15187                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15188                ;;
15189              10.*)
15190                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15191                ;;
15192            esac
15193          fi
15194          ;;
15195       esac
15196       archive_cmds_need_lc=no
15197       hardcode_direct=no
15198       hardcode_automatic=yes
15199       hardcode_shlibpath_var=unsupported
15200       whole_archive_flag_spec=''
15201       link_all_deplibs=yes
15202     if test "$GCC" = yes ; then
15203         output_verbose_link_cmd='echo'
15204         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15205       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15206       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15207       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}'
15208       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}'
15209     else
15210       case $cc_basename in
15211         xlc*)
15212          output_verbose_link_cmd='echo'
15213          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15214          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15215           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15216          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}'
15217           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}'
15218           ;;
15219        *)
15220          ld_shlibs=no
15221           ;;
15222       esac
15223     fi
15224       ;;
15225
15226     dgux*)
15227       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15228       hardcode_libdir_flag_spec='-L$libdir'
15229       hardcode_shlibpath_var=no
15230       ;;
15231
15232     freebsd1*)
15233       ld_shlibs=no
15234       ;;
15235
15236     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15237     # support.  Future versions do this automatically, but an explicit c++rt0.o
15238     # does not break anything, and helps significantly (at the cost of a little
15239     # extra space).
15240     freebsd2.2*)
15241       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15242       hardcode_libdir_flag_spec='-R$libdir'
15243       hardcode_direct=yes
15244       hardcode_shlibpath_var=no
15245       ;;
15246
15247     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15248     freebsd2*)
15249       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15250       hardcode_direct=yes
15251       hardcode_minus_L=yes
15252       hardcode_shlibpath_var=no
15253       ;;
15254
15255     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15256     freebsd* | kfreebsd*-gnu | dragonfly*)
15257       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15258       hardcode_libdir_flag_spec='-R$libdir'
15259       hardcode_direct=yes
15260       hardcode_shlibpath_var=no
15261       ;;
15262
15263     hpux9*)
15264       if test "$GCC" = yes; then
15265         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'
15266       else
15267         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'
15268       fi
15269       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15270       hardcode_libdir_separator=:
15271       hardcode_direct=yes
15272
15273       # hardcode_minus_L: Not really in the search PATH,
15274       # but as the default location of the library.
15275       hardcode_minus_L=yes
15276       export_dynamic_flag_spec='${wl}-E'
15277       ;;
15278
15279     hpux10*)
15280       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15281         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15282       else
15283         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15284       fi
15285       if test "$with_gnu_ld" = no; then
15286         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15287         hardcode_libdir_separator=:
15288
15289         hardcode_direct=yes
15290         export_dynamic_flag_spec='${wl}-E'
15291
15292         # hardcode_minus_L: Not really in the search PATH,
15293         # but as the default location of the library.
15294         hardcode_minus_L=yes
15295       fi
15296       ;;
15297
15298     hpux11*)
15299       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15300         case $host_cpu in
15301         hppa*64*)
15302           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15303           ;;
15304         ia64*)
15305           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15306           ;;
15307         *)
15308           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15309           ;;
15310         esac
15311       else
15312         case $host_cpu in
15313         hppa*64*)
15314           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15315           ;;
15316         ia64*)
15317           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15318           ;;
15319         *)
15320           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15321           ;;
15322         esac
15323       fi
15324       if test "$with_gnu_ld" = no; then
15325         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15326         hardcode_libdir_separator=:
15327
15328         case $host_cpu in
15329         hppa*64*|ia64*)
15330           hardcode_libdir_flag_spec_ld='+b $libdir'
15331           hardcode_direct=no
15332           hardcode_shlibpath_var=no
15333           ;;
15334         *)
15335           hardcode_direct=yes
15336           export_dynamic_flag_spec='${wl}-E'
15337
15338           # hardcode_minus_L: Not really in the search PATH,
15339           # but as the default location of the library.
15340           hardcode_minus_L=yes
15341           ;;
15342         esac
15343       fi
15344       ;;
15345
15346     irix5* | irix6* | nonstopux*)
15347       if test "$GCC" = yes; then
15348         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'
15349       else
15350         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'
15351         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15352       fi
15353       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15354       hardcode_libdir_separator=:
15355       link_all_deplibs=yes
15356       ;;
15357
15358     netbsd*)
15359       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15360         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15361       else
15362         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15363       fi
15364       hardcode_libdir_flag_spec='-R$libdir'
15365       hardcode_direct=yes
15366       hardcode_shlibpath_var=no
15367       ;;
15368
15369     newsos6)
15370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371       hardcode_direct=yes
15372       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15373       hardcode_libdir_separator=:
15374       hardcode_shlibpath_var=no
15375       ;;
15376
15377     openbsd*)
15378       hardcode_direct=yes
15379       hardcode_shlibpath_var=no
15380       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15381         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15382         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15383         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15384         export_dynamic_flag_spec='${wl}-E'
15385       else
15386        case $host_os in
15387          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15388            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389            hardcode_libdir_flag_spec='-R$libdir'
15390            ;;
15391          *)
15392            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15393            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15394            ;;
15395        esac
15396       fi
15397       ;;
15398
15399     os2*)
15400       hardcode_libdir_flag_spec='-L$libdir'
15401       hardcode_minus_L=yes
15402       allow_undefined_flag=unsupported
15403       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'
15404       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15405       ;;
15406
15407     osf3*)
15408       if test "$GCC" = yes; then
15409         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15410         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'
15411       else
15412         allow_undefined_flag=' -expect_unresolved \*'
15413         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'
15414       fi
15415       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15416       hardcode_libdir_separator=:
15417       ;;
15418
15419     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15420       if test "$GCC" = yes; then
15421         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15422         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'
15423         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15424       else
15425         allow_undefined_flag=' -expect_unresolved \*'
15426         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'
15427         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15428         $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'
15429
15430         # Both c and cxx compiler support -rpath directly
15431         hardcode_libdir_flag_spec='-rpath $libdir'
15432       fi
15433       hardcode_libdir_separator=:
15434       ;;
15435
15436     solaris*)
15437       no_undefined_flag=' -z text'
15438       if test "$GCC" = yes; then
15439         wlarc='${wl}'
15440         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15441         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15442           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15443       else
15444         wlarc=''
15445         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15447         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15448       fi
15449       hardcode_libdir_flag_spec='-R$libdir'
15450       hardcode_shlibpath_var=no
15451       case $host_os in
15452       solaris2.[0-5] | solaris2.[0-5].*) ;;
15453       *)
15454         # The compiler driver will combine linker options so we
15455         # cannot just pass the convience library names through
15456         # without $wl, iff we do not link with $LD.
15457         # Luckily, gcc supports the same syntax we need for Sun Studio.
15458         # Supported since Solaris 2.6 (maybe 2.5.1?)
15459         case $wlarc in
15460         '')
15461           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15462         *)
15463           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' ;;
15464         esac ;;
15465       esac
15466       link_all_deplibs=yes
15467       ;;
15468
15469     sunos4*)
15470       if test "x$host_vendor" = xsequent; then
15471         # Use $CC to link under sequent, because it throws in some extra .o
15472         # files that make .init and .fini sections work.
15473         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15474       else
15475         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15476       fi
15477       hardcode_libdir_flag_spec='-L$libdir'
15478       hardcode_direct=yes
15479       hardcode_minus_L=yes
15480       hardcode_shlibpath_var=no
15481       ;;
15482
15483     sysv4)
15484       case $host_vendor in
15485         sni)
15486           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487           hardcode_direct=yes # is this really true???
15488         ;;
15489         siemens)
15490           ## LD is ld it makes a PLAMLIB
15491           ## CC just makes a GrossModule.
15492           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15493           reload_cmds='$CC -r -o $output$reload_objs'
15494           hardcode_direct=no
15495         ;;
15496         motorola)
15497           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15499         ;;
15500       esac
15501       runpath_var='LD_RUN_PATH'
15502       hardcode_shlibpath_var=no
15503       ;;
15504
15505     sysv4.3*)
15506       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507       hardcode_shlibpath_var=no
15508       export_dynamic_flag_spec='-Bexport'
15509       ;;
15510
15511     sysv4*MP*)
15512       if test -d /usr/nec; then
15513         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514         hardcode_shlibpath_var=no
15515         runpath_var=LD_RUN_PATH
15516         hardcode_runpath_var=yes
15517         ld_shlibs=yes
15518       fi
15519       ;;
15520
15521     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15522       no_undefined_flag='${wl}-z,text'
15523       archive_cmds_need_lc=no
15524       hardcode_shlibpath_var=no
15525       runpath_var='LD_RUN_PATH'
15526
15527       if test "$GCC" = yes; then
15528         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15530       else
15531         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15532         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15533       fi
15534       ;;
15535
15536     sysv5* | sco3.2v5* | sco5v6*)
15537       # Note: We can NOT use -z defs as we might desire, because we do not
15538       # link with -lc, and that would cause any symbols used from libc to
15539       # always be unresolved, which means just about no library would
15540       # ever link correctly.  If we're not using GNU ld we use -z text
15541       # though, which does catch some bad symbols but isn't as heavy-handed
15542       # as -z defs.
15543       no_undefined_flag='${wl}-z,text'
15544       allow_undefined_flag='${wl}-z,nodefs'
15545       archive_cmds_need_lc=no
15546       hardcode_shlibpath_var=no
15547       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15548       hardcode_libdir_separator=':'
15549       link_all_deplibs=yes
15550       export_dynamic_flag_spec='${wl}-Bexport'
15551       runpath_var='LD_RUN_PATH'
15552
15553       if test "$GCC" = yes; then
15554         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15556       else
15557         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559       fi
15560       ;;
15561
15562     uts4*)
15563       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564       hardcode_libdir_flag_spec='-L$libdir'
15565       hardcode_shlibpath_var=no
15566       ;;
15567
15568     *)
15569       ld_shlibs=no
15570       ;;
15571     esac
15572   fi
15573
15574 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15575 echo "${ECHO_T}$ld_shlibs" >&6; }
15576 test "$ld_shlibs" = no && can_build_shared=no
15577
15578 #
15579 # Do we need to explicitly link libc?
15580 #
15581 case "x$archive_cmds_need_lc" in
15582 x|xyes)
15583   # Assume -lc should be added
15584   archive_cmds_need_lc=yes
15585
15586   if test "$enable_shared" = yes && test "$GCC" = yes; then
15587     case $archive_cmds in
15588     *'~'*)
15589       # FIXME: we may have to deal with multi-command sequences.
15590       ;;
15591     '$CC '*)
15592       # Test whether the compiler implicitly links with -lc since on some
15593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15594       # to ld, don't add -lc before -lgcc.
15595       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15597       $rm conftest*
15598       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15599
15600       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601   (eval $ac_compile) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } 2>conftest.err; then
15605         soname=conftest
15606         lib=conftest
15607         libobjs=conftest.$ac_objext
15608         deplibs=
15609         wl=$lt_prog_compiler_wl
15610         pic_flag=$lt_prog_compiler_pic
15611         compiler_flags=-v
15612         linker_flags=-v
15613         verstring=
15614         output_objdir=.
15615         libname=conftest
15616         lt_save_allow_undefined_flag=$allow_undefined_flag
15617         allow_undefined_flag=
15618         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15619   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15620   ac_status=$?
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); }
15623         then
15624           archive_cmds_need_lc=no
15625         else
15626           archive_cmds_need_lc=yes
15627         fi
15628         allow_undefined_flag=$lt_save_allow_undefined_flag
15629       else
15630         cat conftest.err 1>&5
15631       fi
15632       $rm conftest*
15633       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15634 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15635       ;;
15636     esac
15637   fi
15638   ;;
15639 esac
15640
15641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15643 library_names_spec=
15644 libname_spec='lib$name'
15645 soname_spec=
15646 shrext_cmds=".so"
15647 postinstall_cmds=
15648 postuninstall_cmds=
15649 finish_cmds=
15650 finish_eval=
15651 shlibpath_var=
15652 shlibpath_overrides_runpath=unknown
15653 version_type=none
15654 dynamic_linker="$host_os ld.so"
15655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15656 if test "$GCC" = yes; then
15657   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15658   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15659     # if the path contains ";" then we assume it to be the separator
15660     # otherwise default to the standard path separator (i.e. ":") - it is
15661     # assumed that no part of a normal pathname contains ";" but that should
15662     # okay in the real world where ";" in dirpaths is itself problematic.
15663     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15664   else
15665     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15666   fi
15667 else
15668   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15669 fi
15670 need_lib_prefix=unknown
15671 hardcode_into_libs=no
15672
15673 # when you set need_version to no, make sure it does not cause -set_version
15674 # flags to be left without arguments
15675 need_version=unknown
15676
15677 case $host_os in
15678 aix3*)
15679   version_type=linux
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15681   shlibpath_var=LIBPATH
15682
15683   # AIX 3 has no versioning support, so we append a major version to the name.
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   ;;
15686
15687 aix4* | aix5*)
15688   version_type=linux
15689   need_lib_prefix=no
15690   need_version=no
15691   hardcode_into_libs=yes
15692   if test "$host_cpu" = ia64; then
15693     # AIX 5 supports IA64
15694     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15695     shlibpath_var=LD_LIBRARY_PATH
15696   else
15697     # With GCC up to 2.95.x, collect2 would create an import file
15698     # for dependence libraries.  The import file would start with
15699     # the line `#! .'.  This would cause the generated library to
15700     # depend on `.', always an invalid library.  This was fixed in
15701     # development snapshots of GCC prior to 3.0.
15702     case $host_os in
15703       aix4 | aix4.[01] | aix4.[01].*)
15704       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15705            echo ' yes '
15706            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15707         :
15708       else
15709         can_build_shared=no
15710       fi
15711       ;;
15712     esac
15713     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15714     # soname into executable. Probably we can add versioning support to
15715     # collect2, so additional links can be useful in future.
15716     if test "$aix_use_runtimelinking" = yes; then
15717       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15718       # instead of lib<name>.a to let people know that these are not
15719       # typical AIX shared libraries.
15720       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721     else
15722       # We preserve .a as extension for shared libraries through AIX4.2
15723       # and later when we are not doing run time linking.
15724       library_names_spec='${libname}${release}.a $libname.a'
15725       soname_spec='${libname}${release}${shared_ext}$major'
15726     fi
15727     shlibpath_var=LIBPATH
15728   fi
15729   ;;
15730
15731 amigaos*)
15732   library_names_spec='$libname.ixlibrary $libname.a'
15733   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15734   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'
15735   ;;
15736
15737 beos*)
15738   library_names_spec='${libname}${shared_ext}'
15739   dynamic_linker="$host_os ld.so"
15740   shlibpath_var=LIBRARY_PATH
15741   ;;
15742
15743 bsdi[45]*)
15744   version_type=linux
15745   need_version=no
15746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747   soname_spec='${libname}${release}${shared_ext}$major'
15748   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15749   shlibpath_var=LD_LIBRARY_PATH
15750   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15751   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15752   # the default ld.so.conf also contains /usr/contrib/lib and
15753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15754   # libtool to hard-code these into programs
15755   ;;
15756
15757 cygwin* | mingw* | pw32*)
15758   version_type=windows
15759   shrext_cmds=".dll"
15760   need_version=no
15761   need_lib_prefix=no
15762
15763   case $GCC,$host_os in
15764   yes,cygwin* | yes,mingw* | yes,pw32*)
15765     library_names_spec='$libname.dll.a'
15766     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15767     postinstall_cmds='base_file=`basename \${file}`~
15768       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15769       dldir=$destdir/`dirname \$dlpath`~
15770       test -d \$dldir || mkdir -p \$dldir~
15771       $install_prog $dir/$dlname \$dldir/$dlname~
15772       chmod a+x \$dldir/$dlname'
15773     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15774       dlpath=$dir/\$dldll~
15775        $rm \$dlpath'
15776     shlibpath_overrides_runpath=yes
15777
15778     case $host_os in
15779     cygwin*)
15780       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15781       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15782       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15783       ;;
15784     mingw*)
15785       # MinGW DLLs use traditional 'lib' prefix
15786       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15787       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15788       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15789         # It is most probably a Windows format PATH printed by
15790         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15791         # path with ; separators, and with drive letters. We can handle the
15792         # drive letters (cygwin fileutils understands them), so leave them,
15793         # especially as we might pass files found there to a mingw objdump,
15794         # which wouldn't understand a cygwinified path. Ahh.
15795         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15796       else
15797         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15798       fi
15799       ;;
15800     pw32*)
15801       # pw32 DLLs use 'pw' prefix rather than 'lib'
15802       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15803       ;;
15804     esac
15805     ;;
15806
15807   *)
15808     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15809     ;;
15810   esac
15811   dynamic_linker='Win32 ld.exe'
15812   # FIXME: first we should search . and the directory the executable is in
15813   shlibpath_var=PATH
15814   ;;
15815
15816 darwin* | rhapsody*)
15817   dynamic_linker="$host_os dyld"
15818   version_type=darwin
15819   need_lib_prefix=no
15820   need_version=no
15821   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15822   soname_spec='${libname}${release}${major}$shared_ext'
15823   shlibpath_overrides_runpath=yes
15824   shlibpath_var=DYLD_LIBRARY_PATH
15825   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15826   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15827   if test "$GCC" = yes; then
15828     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"`
15829   else
15830     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15831   fi
15832   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15833   ;;
15834
15835 dgux*)
15836   version_type=linux
15837   need_lib_prefix=no
15838   need_version=no
15839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15840   soname_spec='${libname}${release}${shared_ext}$major'
15841   shlibpath_var=LD_LIBRARY_PATH
15842   ;;
15843
15844 freebsd1*)
15845   dynamic_linker=no
15846   ;;
15847
15848 kfreebsd*-gnu)
15849   version_type=linux
15850   need_lib_prefix=no
15851   need_version=no
15852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15853   soname_spec='${libname}${release}${shared_ext}$major'
15854   shlibpath_var=LD_LIBRARY_PATH
15855   shlibpath_overrides_runpath=no
15856   hardcode_into_libs=yes
15857   dynamic_linker='GNU ld.so'
15858   ;;
15859
15860 freebsd* | dragonfly*)
15861   # DragonFly does not have aout.  When/if they implement a new
15862   # versioning mechanism, adjust this.
15863   if test -x /usr/bin/objformat; then
15864     objformat=`/usr/bin/objformat`
15865   else
15866     case $host_os in
15867     freebsd[123]*) objformat=aout ;;
15868     *) objformat=elf ;;
15869     esac
15870   fi
15871   version_type=freebsd-$objformat
15872   case $version_type in
15873     freebsd-elf*)
15874       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15875       need_version=no
15876       need_lib_prefix=no
15877       ;;
15878     freebsd-*)
15879       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15880       need_version=yes
15881       ;;
15882   esac
15883   shlibpath_var=LD_LIBRARY_PATH
15884   case $host_os in
15885   freebsd2*)
15886     shlibpath_overrides_runpath=yes
15887     ;;
15888   freebsd3.[01]* | freebsdelf3.[01]*)
15889     shlibpath_overrides_runpath=yes
15890     hardcode_into_libs=yes
15891     ;;
15892   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15893   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15894     shlibpath_overrides_runpath=no
15895     hardcode_into_libs=yes
15896     ;;
15897   freebsd*) # from 4.6 on
15898     shlibpath_overrides_runpath=yes
15899     hardcode_into_libs=yes
15900     ;;
15901   esac
15902   ;;
15903
15904 gnu*)
15905   version_type=linux
15906   need_lib_prefix=no
15907   need_version=no
15908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15909   soname_spec='${libname}${release}${shared_ext}$major'
15910   shlibpath_var=LD_LIBRARY_PATH
15911   hardcode_into_libs=yes
15912   ;;
15913
15914 hpux9* | hpux10* | hpux11*)
15915   # Give a soname corresponding to the major version so that dld.sl refuses to
15916   # link against other versions.
15917   version_type=sunos
15918   need_lib_prefix=no
15919   need_version=no
15920   case $host_cpu in
15921   ia64*)
15922     shrext_cmds='.so'
15923     hardcode_into_libs=yes
15924     dynamic_linker="$host_os dld.so"
15925     shlibpath_var=LD_LIBRARY_PATH
15926     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928     soname_spec='${libname}${release}${shared_ext}$major'
15929     if test "X$HPUX_IA64_MODE" = X32; then
15930       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15931     else
15932       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15933     fi
15934     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935     ;;
15936    hppa*64*)
15937      shrext_cmds='.sl'
15938      hardcode_into_libs=yes
15939      dynamic_linker="$host_os dld.sl"
15940      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15941      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15943      soname_spec='${libname}${release}${shared_ext}$major'
15944      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15945      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15946      ;;
15947    *)
15948     shrext_cmds='.sl'
15949     dynamic_linker="$host_os dld.sl"
15950     shlibpath_var=SHLIB_PATH
15951     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953     soname_spec='${libname}${release}${shared_ext}$major'
15954     ;;
15955   esac
15956   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15957   postinstall_cmds='chmod 555 $lib'
15958   ;;
15959
15960 interix3*)
15961   version_type=linux
15962   need_lib_prefix=no
15963   need_version=no
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15965   soname_spec='${libname}${release}${shared_ext}$major'
15966   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15967   shlibpath_var=LD_LIBRARY_PATH
15968   shlibpath_overrides_runpath=no
15969   hardcode_into_libs=yes
15970   ;;
15971
15972 irix5* | irix6* | nonstopux*)
15973   case $host_os in
15974     nonstopux*) version_type=nonstopux ;;
15975     *)
15976         if test "$lt_cv_prog_gnu_ld" = yes; then
15977                 version_type=linux
15978         else
15979                 version_type=irix
15980         fi ;;
15981   esac
15982   need_lib_prefix=no
15983   need_version=no
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15986   case $host_os in
15987   irix5* | nonstopux*)
15988     libsuff= shlibsuff=
15989     ;;
15990   *)
15991     case $LD in # libtool.m4 will add one of these switches to LD
15992     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15993       libsuff= shlibsuff= libmagic=32-bit;;
15994     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15995       libsuff=32 shlibsuff=N32 libmagic=N32;;
15996     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15997       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15998     *) libsuff= shlibsuff= libmagic=never-match;;
15999     esac
16000     ;;
16001   esac
16002   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16003   shlibpath_overrides_runpath=no
16004   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16005   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16006   hardcode_into_libs=yes
16007   ;;
16008
16009 # No shared lib support for Linux oldld, aout, or coff.
16010 linux*oldld* | linux*aout* | linux*coff*)
16011   dynamic_linker=no
16012   ;;
16013
16014 # This must be Linux ELF.
16015 linux*)
16016   version_type=linux
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020   soname_spec='${libname}${release}${shared_ext}$major'
16021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16022   shlibpath_var=LD_LIBRARY_PATH
16023   shlibpath_overrides_runpath=no
16024   # This implies no fast_install, which is unacceptable.
16025   # Some rework will be needed to allow for fast_install
16026   # before this can be enabled.
16027   hardcode_into_libs=yes
16028
16029   # Append ld.so.conf contents to the search path
16030   if test -f /etc/ld.so.conf; then
16031     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' ' '`
16032     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16033   fi
16034
16035   # We used to test for /lib/ld.so.1 and disable shared libraries on
16036   # powerpc, because MkLinux only supported shared libraries with the
16037   # GNU dynamic linker.  Since this was broken with cross compilers,
16038   # most powerpc-linux boxes support dynamic linking these days and
16039   # people can always --disable-shared, the test was removed, and we
16040   # assume the GNU/Linux dynamic linker is in use.
16041   dynamic_linker='GNU/Linux ld.so'
16042   ;;
16043
16044 knetbsd*-gnu)
16045   version_type=linux
16046   need_lib_prefix=no
16047   need_version=no
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   shlibpath_var=LD_LIBRARY_PATH
16051   shlibpath_overrides_runpath=no
16052   hardcode_into_libs=yes
16053   dynamic_linker='GNU ld.so'
16054   ;;
16055
16056 netbsd*)
16057   version_type=sunos
16058   need_lib_prefix=no
16059   need_version=no
16060   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16062     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16063     dynamic_linker='NetBSD (a.out) ld.so'
16064   else
16065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16066     soname_spec='${libname}${release}${shared_ext}$major'
16067     dynamic_linker='NetBSD ld.elf_so'
16068   fi
16069   shlibpath_var=LD_LIBRARY_PATH
16070   shlibpath_overrides_runpath=yes
16071   hardcode_into_libs=yes
16072   ;;
16073
16074 newsos6)
16075   version_type=linux
16076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   shlibpath_overrides_runpath=yes
16079   ;;
16080
16081 nto-qnx*)
16082   version_type=linux
16083   need_lib_prefix=no
16084   need_version=no
16085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086   soname_spec='${libname}${release}${shared_ext}$major'
16087   shlibpath_var=LD_LIBRARY_PATH
16088   shlibpath_overrides_runpath=yes
16089   ;;
16090
16091 openbsd*)
16092   version_type=sunos
16093   sys_lib_dlsearch_path_spec="/usr/lib"
16094   need_lib_prefix=no
16095   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16096   case $host_os in
16097     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16098     *)                         need_version=no  ;;
16099   esac
16100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16104     case $host_os in
16105       openbsd2.[89] | openbsd2.[89].*)
16106         shlibpath_overrides_runpath=no
16107         ;;
16108       *)
16109         shlibpath_overrides_runpath=yes
16110         ;;
16111       esac
16112   else
16113     shlibpath_overrides_runpath=yes
16114   fi
16115   ;;
16116
16117 os2*)
16118   libname_spec='$name'
16119   shrext_cmds=".dll"
16120   need_lib_prefix=no
16121   library_names_spec='$libname${shared_ext} $libname.a'
16122   dynamic_linker='OS/2 ld.exe'
16123   shlibpath_var=LIBPATH
16124   ;;
16125
16126 osf3* | osf4* | osf5*)
16127   version_type=osf
16128   need_lib_prefix=no
16129   need_version=no
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132   shlibpath_var=LD_LIBRARY_PATH
16133   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16134   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16135   ;;
16136
16137 solaris*)
16138   version_type=linux
16139   need_lib_prefix=no
16140   need_version=no
16141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142   soname_spec='${libname}${release}${shared_ext}$major'
16143   shlibpath_var=LD_LIBRARY_PATH
16144   shlibpath_overrides_runpath=yes
16145   hardcode_into_libs=yes
16146   # ldd complains unless libraries are executable
16147   postinstall_cmds='chmod +x $lib'
16148   ;;
16149
16150 sunos4*)
16151   version_type=sunos
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16153   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16154   shlibpath_var=LD_LIBRARY_PATH
16155   shlibpath_overrides_runpath=yes
16156   if test "$with_gnu_ld" = yes; then
16157     need_lib_prefix=no
16158   fi
16159   need_version=yes
16160   ;;
16161
16162 sysv4 | sysv4.3*)
16163   version_type=linux
16164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165   soname_spec='${libname}${release}${shared_ext}$major'
16166   shlibpath_var=LD_LIBRARY_PATH
16167   case $host_vendor in
16168     sni)
16169       shlibpath_overrides_runpath=no
16170       need_lib_prefix=no
16171       export_dynamic_flag_spec='${wl}-Blargedynsym'
16172       runpath_var=LD_RUN_PATH
16173       ;;
16174     siemens)
16175       need_lib_prefix=no
16176       ;;
16177     motorola)
16178       need_lib_prefix=no
16179       need_version=no
16180       shlibpath_overrides_runpath=no
16181       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16182       ;;
16183   esac
16184   ;;
16185
16186 sysv4*MP*)
16187   if test -d /usr/nec ;then
16188     version_type=linux
16189     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16190     soname_spec='$libname${shared_ext}.$major'
16191     shlibpath_var=LD_LIBRARY_PATH
16192   fi
16193   ;;
16194
16195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16196   version_type=freebsd-elf
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16200   soname_spec='${libname}${release}${shared_ext}$major'
16201   shlibpath_var=LD_LIBRARY_PATH
16202   hardcode_into_libs=yes
16203   if test "$with_gnu_ld" = yes; then
16204     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16205     shlibpath_overrides_runpath=no
16206   else
16207     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16208     shlibpath_overrides_runpath=yes
16209     case $host_os in
16210       sco3.2v5*)
16211         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16212         ;;
16213     esac
16214   fi
16215   sys_lib_dlsearch_path_spec='/usr/lib'
16216   ;;
16217
16218 uts4*)
16219   version_type=linux
16220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221   soname_spec='${libname}${release}${shared_ext}$major'
16222   shlibpath_var=LD_LIBRARY_PATH
16223   ;;
16224
16225 *)
16226   dynamic_linker=no
16227   ;;
16228 esac
16229 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16230 echo "${ECHO_T}$dynamic_linker" >&6; }
16231 test "$dynamic_linker" = no && can_build_shared=no
16232
16233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16234 if test "$GCC" = yes; then
16235   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16236 fi
16237
16238 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16239 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16240 hardcode_action=
16241 if test -n "$hardcode_libdir_flag_spec" || \
16242    test -n "$runpath_var" || \
16243    test "X$hardcode_automatic" = "Xyes" ; then
16244
16245   # We can hardcode non-existant directories.
16246   if test "$hardcode_direct" != no &&
16247      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16248      # have to relink, otherwise we might link with an installed library
16249      # when we should be linking with a yet-to-be-installed one
16250      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16251      test "$hardcode_minus_L" != no; then
16252     # Linking always hardcodes the temporary library directory.
16253     hardcode_action=relink
16254   else
16255     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16256     hardcode_action=immediate
16257   fi
16258 else
16259   # We cannot hardcode anything, or else we can only hardcode existing
16260   # directories.
16261   hardcode_action=unsupported
16262 fi
16263 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16264 echo "${ECHO_T}$hardcode_action" >&6; }
16265
16266 if test "$hardcode_action" = relink; then
16267   # Fast installation is not supported
16268   enable_fast_install=no
16269 elif test "$shlibpath_overrides_runpath" = yes ||
16270      test "$enable_shared" = no; then
16271   # Fast installation is not necessary
16272   enable_fast_install=needless
16273 fi
16274
16275 striplib=
16276 old_striplib=
16277 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16278 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16279 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16280   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16281   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16282   { echo "$as_me:$LINENO: result: yes" >&5
16283 echo "${ECHO_T}yes" >&6; }
16284 else
16285 # FIXME - insert some real tests, host_os isn't really good enough
16286   case $host_os in
16287    darwin*)
16288        if test -n "$STRIP" ; then
16289          striplib="$STRIP -x"
16290          { echo "$as_me:$LINENO: result: yes" >&5
16291 echo "${ECHO_T}yes" >&6; }
16292        else
16293   { echo "$as_me:$LINENO: result: no" >&5
16294 echo "${ECHO_T}no" >&6; }
16295 fi
16296        ;;
16297    *)
16298   { echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6; }
16300     ;;
16301   esac
16302 fi
16303
16304 if test "x$enable_dlopen" != xyes; then
16305   enable_dlopen=unknown
16306   enable_dlopen_self=unknown
16307   enable_dlopen_self_static=unknown
16308 else
16309   lt_cv_dlopen=no
16310   lt_cv_dlopen_libs=
16311
16312   case $host_os in
16313   beos*)
16314     lt_cv_dlopen="load_add_on"
16315     lt_cv_dlopen_libs=
16316     lt_cv_dlopen_self=yes
16317     ;;
16318
16319   mingw* | pw32*)
16320     lt_cv_dlopen="LoadLibrary"
16321     lt_cv_dlopen_libs=
16322    ;;
16323
16324   cygwin*)
16325     lt_cv_dlopen="dlopen"
16326     lt_cv_dlopen_libs=
16327    ;;
16328
16329   darwin*)
16330   # if libdl is installed we need to link against it
16331     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16332 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336   ac_check_lib_save_LIBS=$LIBS
16337 LIBS="-ldl  $LIBS"
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344
16345 /* Override any GCC internal prototype to avoid an error.
16346    Use char because int might match the return type of a GCC
16347    builtin and then its argument prototype would still apply.  */
16348 #ifdef __cplusplus
16349 extern "C"
16350 #endif
16351 char dlopen ();
16352 int
16353 main ()
16354 {
16355 return dlopen ();
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_link") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } &&
16374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16375   { (case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_try") 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; } &&
16384          { ac_try='test -s conftest$ac_exeext'
16385   { (case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_try") 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; }; then
16394   ac_cv_lib_dl_dlopen=yes
16395 else
16396   echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16398
16399         ac_cv_lib_dl_dlopen=no
16400 fi
16401
16402 rm -f core conftest.err conftest.$ac_objext \
16403       conftest$ac_exeext conftest.$ac_ext
16404 LIBS=$ac_check_lib_save_LIBS
16405 fi
16406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16408 if test $ac_cv_lib_dl_dlopen = yes; then
16409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16410 else
16411
16412     lt_cv_dlopen="dyld"
16413     lt_cv_dlopen_libs=
16414     lt_cv_dlopen_self=yes
16415
16416 fi
16417
16418    ;;
16419
16420   *)
16421     { echo "$as_me:$LINENO: checking for shl_load" >&5
16422 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16423 if test "${ac_cv_func_shl_load+set}" = set; then
16424   echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426   cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h.  */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h.  */
16432 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16434 #define shl_load innocuous_shl_load
16435
16436 /* System header to define __stub macros and hopefully few prototypes,
16437     which can conflict with char shl_load (); below.
16438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439     <limits.h> exists even on freestanding compilers.  */
16440
16441 #ifdef __STDC__
16442 # include <limits.h>
16443 #else
16444 # include <assert.h>
16445 #endif
16446
16447 #undef shl_load
16448
16449 /* Override any GCC internal prototype to avoid an error.
16450    Use char because int might match the return type of a GCC
16451    builtin and then its argument prototype would still apply.  */
16452 #ifdef __cplusplus
16453 extern "C"
16454 #endif
16455 char shl_load ();
16456 /* The GNU C library defines this for functions which it implements
16457     to always fail with ENOSYS.  Some functions are actually named
16458     something starting with __ and the normal name is an alias.  */
16459 #if defined __stub_shl_load || defined __stub___shl_load
16460 choke me
16461 #endif
16462
16463 int
16464 main ()
16465 {
16466 return shl_load ();
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475   *) ac_try_echo=$ac_try;;
16476 esac
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478   (eval "$ac_link") 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } &&
16485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486   { (case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_try") 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest$ac_exeext'
16496   { (case "(($ac_try" in
16497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498   *) ac_try_echo=$ac_try;;
16499 esac
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501   (eval "$ac_try") 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }; then
16505   ac_cv_func_shl_load=yes
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510         ac_cv_func_shl_load=no
16511 fi
16512
16513 rm -f core conftest.err conftest.$ac_objext \
16514       conftest$ac_exeext conftest.$ac_ext
16515 fi
16516 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16518 if test $ac_cv_func_shl_load = yes; then
16519   lt_cv_dlopen="shl_load"
16520 else
16521   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   ac_check_lib_save_LIBS=$LIBS
16527 LIBS="-ldld  $LIBS"
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534
16535 /* Override any GCC internal prototype to avoid an error.
16536    Use char because int might match the return type of a GCC
16537    builtin and then its argument prototype would still apply.  */
16538 #ifdef __cplusplus
16539 extern "C"
16540 #endif
16541 char shl_load ();
16542 int
16543 main ()
16544 {
16545 return shl_load ();
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (ac_try="$ac_link"
16552 case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_link") 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } &&
16564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565   { (case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_try") 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; } &&
16574          { ac_try='test -s conftest$ac_exeext'
16575   { (case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_try") 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; }; then
16584   ac_cv_lib_dld_shl_load=yes
16585 else
16586   echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589         ac_cv_lib_dld_shl_load=no
16590 fi
16591
16592 rm -f core conftest.err conftest.$ac_objext \
16593       conftest$ac_exeext conftest.$ac_ext
16594 LIBS=$ac_check_lib_save_LIBS
16595 fi
16596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16597 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16598 if test $ac_cv_lib_dld_shl_load = yes; then
16599   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16600 else
16601   { echo "$as_me:$LINENO: checking for dlopen" >&5
16602 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16603 if test "${ac_cv_func_dlopen+set}" = set; then
16604   echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606   cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16614 #define dlopen innocuous_dlopen
16615
16616 /* System header to define __stub macros and hopefully few prototypes,
16617     which can conflict with char dlopen (); below.
16618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16619     <limits.h> exists even on freestanding compilers.  */
16620
16621 #ifdef __STDC__
16622 # include <limits.h>
16623 #else
16624 # include <assert.h>
16625 #endif
16626
16627 #undef dlopen
16628
16629 /* Override any GCC internal prototype to avoid an error.
16630    Use char because int might match the return type of a GCC
16631    builtin and then its argument prototype would still apply.  */
16632 #ifdef __cplusplus
16633 extern "C"
16634 #endif
16635 char dlopen ();
16636 /* The GNU C library defines this for functions which it implements
16637     to always fail with ENOSYS.  Some functions are actually named
16638     something starting with __ and the normal name is an alias.  */
16639 #if defined __stub_dlopen || defined __stub___dlopen
16640 choke me
16641 #endif
16642
16643 int
16644 main ()
16645 {
16646 return dlopen ();
16647   ;
16648   return 0;
16649 }
16650 _ACEOF
16651 rm -f conftest.$ac_objext conftest$ac_exeext
16652 if { (ac_try="$ac_link"
16653 case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_link") 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666   { (case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_try") 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; } &&
16675          { ac_try='test -s conftest$ac_exeext'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_cv_func_dlopen=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690         ac_cv_func_dlopen=no
16691 fi
16692
16693 rm -f core conftest.err conftest.$ac_objext \
16694       conftest$ac_exeext conftest.$ac_ext
16695 fi
16696 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16697 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16698 if test $ac_cv_func_dlopen = yes; then
16699   lt_cv_dlopen="dlopen"
16700 else
16701   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16702 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16703 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   ac_check_lib_save_LIBS=$LIBS
16707 LIBS="-ldl  $LIBS"
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h.  */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h.  */
16714
16715 /* Override any GCC internal prototype to avoid an error.
16716    Use char because int might match the return type of a GCC
16717    builtin and then its argument prototype would still apply.  */
16718 #ifdef __cplusplus
16719 extern "C"
16720 #endif
16721 char dlopen ();
16722 int
16723 main ()
16724 {
16725 return dlopen ();
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (ac_try="$ac_link"
16732 case "(($ac_try" in
16733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734   *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737   (eval "$ac_link") 2>conftest.er1
16738   ac_status=$?
16739   grep -v '^ *+' conftest.er1 >conftest.err
16740   rm -f conftest.er1
16741   cat conftest.err >&5
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } &&
16744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745   { (case "(($ac_try" in
16746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747   *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750   (eval "$ac_try") 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; } &&
16754          { ac_try='test -s conftest$ac_exeext'
16755   { (case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_try") 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; }; then
16764   ac_cv_lib_dl_dlopen=yes
16765 else
16766   echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769         ac_cv_lib_dl_dlopen=no
16770 fi
16771
16772 rm -f core conftest.err conftest.$ac_objext \
16773       conftest$ac_exeext conftest.$ac_ext
16774 LIBS=$ac_check_lib_save_LIBS
16775 fi
16776 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16778 if test $ac_cv_lib_dl_dlopen = yes; then
16779   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16780 else
16781   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16782 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16783 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16784   echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786   ac_check_lib_save_LIBS=$LIBS
16787 LIBS="-lsvld  $LIBS"
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794
16795 /* Override any GCC internal prototype to avoid an error.
16796    Use char because int might match the return type of a GCC
16797    builtin and then its argument prototype would still apply.  */
16798 #ifdef __cplusplus
16799 extern "C"
16800 #endif
16801 char dlopen ();
16802 int
16803 main ()
16804 {
16805 return dlopen ();
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_link") 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; } &&
16834          { ac_try='test -s conftest$ac_exeext'
16835   { (case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_try") 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_cv_lib_svld_dlopen=yes
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849         ac_cv_lib_svld_dlopen=no
16850 fi
16851
16852 rm -f core conftest.err conftest.$ac_objext \
16853       conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_lib_save_LIBS
16855 fi
16856 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16857 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16858 if test $ac_cv_lib_svld_dlopen = yes; then
16859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16860 else
16861   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16862 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16863 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   ac_check_lib_save_LIBS=$LIBS
16867 LIBS="-ldld  $LIBS"
16868 cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h.  */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h.  */
16874
16875 /* Override any GCC internal prototype to avoid an error.
16876    Use char because int might match the return type of a GCC
16877    builtin and then its argument prototype would still apply.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char dld_link ();
16882 int
16883 main ()
16884 {
16885 return dld_link ();
16886   ;
16887   return 0;
16888 }
16889 _ACEOF
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_link") 2>conftest.er1
16898   ac_status=$?
16899   grep -v '^ *+' conftest.er1 >conftest.err
16900   rm -f conftest.er1
16901   cat conftest.err >&5
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   ac_cv_lib_dld_dld_link=yes
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929         ac_cv_lib_dld_dld_link=no
16930 fi
16931
16932 rm -f core conftest.err conftest.$ac_objext \
16933       conftest$ac_exeext conftest.$ac_ext
16934 LIBS=$ac_check_lib_save_LIBS
16935 fi
16936 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16937 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16938 if test $ac_cv_lib_dld_dld_link = yes; then
16939   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16940 fi
16941
16942
16943 fi
16944
16945
16946 fi
16947
16948
16949 fi
16950
16951
16952 fi
16953
16954
16955 fi
16956
16957     ;;
16958   esac
16959
16960   if test "x$lt_cv_dlopen" != xno; then
16961     enable_dlopen=yes
16962   else
16963     enable_dlopen=no
16964   fi
16965
16966   case $lt_cv_dlopen in
16967   dlopen)
16968     save_CPPFLAGS="$CPPFLAGS"
16969     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16970
16971     save_LDFLAGS="$LDFLAGS"
16972     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16973
16974     save_LIBS="$LIBS"
16975     LIBS="$lt_cv_dlopen_libs $LIBS"
16976
16977     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16978 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16979 if test "${lt_cv_dlopen_self+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982           if test "$cross_compiling" = yes; then :
16983   lt_cv_dlopen_self=cross
16984 else
16985   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16986   lt_status=$lt_dlunknown
16987   cat > conftest.$ac_ext <<EOF
16988 #line 16988 "configure"
16989 #include "confdefs.h"
16990
16991 #if HAVE_DLFCN_H
16992 #include <dlfcn.h>
16993 #endif
16994
16995 #include <stdio.h>
16996
16997 #ifdef RTLD_GLOBAL
16998 #  define LT_DLGLOBAL           RTLD_GLOBAL
16999 #else
17000 #  ifdef DL_GLOBAL
17001 #    define LT_DLGLOBAL         DL_GLOBAL
17002 #  else
17003 #    define LT_DLGLOBAL         0
17004 #  endif
17005 #endif
17006
17007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17008    find out it does not work in some platform. */
17009 #ifndef LT_DLLAZY_OR_NOW
17010 #  ifdef RTLD_LAZY
17011 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17012 #  else
17013 #    ifdef DL_LAZY
17014 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17015 #    else
17016 #      ifdef RTLD_NOW
17017 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17018 #      else
17019 #        ifdef DL_NOW
17020 #          define LT_DLLAZY_OR_NOW      DL_NOW
17021 #        else
17022 #          define LT_DLLAZY_OR_NOW      0
17023 #        endif
17024 #      endif
17025 #    endif
17026 #  endif
17027 #endif
17028
17029 #ifdef __cplusplus
17030 extern "C" void exit (int);
17031 #endif
17032
17033 void fnord() { int i=42;}
17034 int main ()
17035 {
17036   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17037   int status = $lt_dlunknown;
17038
17039   if (self)
17040     {
17041       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17042       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17043       /* dlclose (self); */
17044     }
17045   else
17046     puts (dlerror ());
17047
17048     exit (status);
17049 }
17050 EOF
17051   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052   (eval $ac_link) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17056     (./conftest; exit; ) >&5 2>/dev/null
17057     lt_status=$?
17058     case x$lt_status in
17059       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17061       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17062     esac
17063   else :
17064     # compilation failed
17065     lt_cv_dlopen_self=no
17066   fi
17067 fi
17068 rm -fr conftest*
17069
17070
17071 fi
17072 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17074
17075     if test "x$lt_cv_dlopen_self" = xyes; then
17076       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17077       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17079 if test "${lt_cv_dlopen_self_static+set}" = set; then
17080   echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082           if test "$cross_compiling" = yes; then :
17083   lt_cv_dlopen_self_static=cross
17084 else
17085   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17086   lt_status=$lt_dlunknown
17087   cat > conftest.$ac_ext <<EOF
17088 #line 17088 "configure"
17089 #include "confdefs.h"
17090
17091 #if HAVE_DLFCN_H
17092 #include <dlfcn.h>
17093 #endif
17094
17095 #include <stdio.h>
17096
17097 #ifdef RTLD_GLOBAL
17098 #  define LT_DLGLOBAL           RTLD_GLOBAL
17099 #else
17100 #  ifdef DL_GLOBAL
17101 #    define LT_DLGLOBAL         DL_GLOBAL
17102 #  else
17103 #    define LT_DLGLOBAL         0
17104 #  endif
17105 #endif
17106
17107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108    find out it does not work in some platform. */
17109 #ifndef LT_DLLAZY_OR_NOW
17110 #  ifdef RTLD_LAZY
17111 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17112 #  else
17113 #    ifdef DL_LAZY
17114 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17115 #    else
17116 #      ifdef RTLD_NOW
17117 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17118 #      else
17119 #        ifdef DL_NOW
17120 #          define LT_DLLAZY_OR_NOW      DL_NOW
17121 #        else
17122 #          define LT_DLLAZY_OR_NOW      0
17123 #        endif
17124 #      endif
17125 #    endif
17126 #  endif
17127 #endif
17128
17129 #ifdef __cplusplus
17130 extern "C" void exit (int);
17131 #endif
17132
17133 void fnord() { int i=42;}
17134 int main ()
17135 {
17136   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137   int status = $lt_dlunknown;
17138
17139   if (self)
17140     {
17141       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17142       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143       /* dlclose (self); */
17144     }
17145   else
17146     puts (dlerror ());
17147
17148     exit (status);
17149 }
17150 EOF
17151   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152   (eval $ac_link) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17156     (./conftest; exit; ) >&5 2>/dev/null
17157     lt_status=$?
17158     case x$lt_status in
17159       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17160       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17161       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17162     esac
17163   else :
17164     # compilation failed
17165     lt_cv_dlopen_self_static=no
17166   fi
17167 fi
17168 rm -fr conftest*
17169
17170
17171 fi
17172 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17173 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17174     fi
17175
17176     CPPFLAGS="$save_CPPFLAGS"
17177     LDFLAGS="$save_LDFLAGS"
17178     LIBS="$save_LIBS"
17179     ;;
17180   esac
17181
17182   case $lt_cv_dlopen_self in
17183   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17184   *) enable_dlopen_self=unknown ;;
17185   esac
17186
17187   case $lt_cv_dlopen_self_static in
17188   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17189   *) enable_dlopen_self_static=unknown ;;
17190   esac
17191 fi
17192
17193
17194 # Report which library types will actually be built
17195 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17196 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17197 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17198 echo "${ECHO_T}$can_build_shared" >&6; }
17199
17200 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17201 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17202 test "$can_build_shared" = "no" && enable_shared=no
17203
17204 # On AIX, shared libraries and static libraries use the same namespace, and
17205 # are all built from PIC.
17206 case $host_os in
17207 aix3*)
17208   test "$enable_shared" = yes && enable_static=no
17209   if test -n "$RANLIB"; then
17210     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17211     postinstall_cmds='$RANLIB $lib'
17212   fi
17213   ;;
17214
17215 aix4* | aix5*)
17216   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17217     test "$enable_shared" = yes && enable_static=no
17218   fi
17219     ;;
17220 esac
17221 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17222 echo "${ECHO_T}$enable_shared" >&6; }
17223
17224 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17226 # Make sure either enable_shared or enable_static is yes.
17227 test "$enable_shared" = yes || enable_static=yes
17228 { echo "$as_me:$LINENO: result: $enable_static" >&5
17229 echo "${ECHO_T}$enable_static" >&6; }
17230
17231 # The else clause should only fire when bootstrapping the
17232 # libtool distribution, otherwise you forgot to ship ltmain.sh
17233 # with your package, and you will get complaints that there are
17234 # no rules to generate ltmain.sh.
17235 if test -f "$ltmain"; then
17236   # See if we are running on zsh, and set the options which allow our commands through
17237   # without removal of \ escapes.
17238   if test -n "${ZSH_VERSION+set}" ; then
17239     setopt NO_GLOB_SUBST
17240   fi
17241   # Now quote all the things that may contain metacharacters while being
17242   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17243   # variables and quote the copies for generation of the libtool script.
17244   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17245     SED SHELL STRIP \
17246     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17247     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17248     deplibs_check_method reload_flag reload_cmds need_locks \
17249     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17250     lt_cv_sys_global_symbol_to_c_name_address \
17251     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17252     old_postinstall_cmds old_postuninstall_cmds \
17253     compiler \
17254     CC \
17255     LD \
17256     lt_prog_compiler_wl \
17257     lt_prog_compiler_pic \
17258     lt_prog_compiler_static \
17259     lt_prog_compiler_no_builtin_flag \
17260     export_dynamic_flag_spec \
17261     thread_safe_flag_spec \
17262     whole_archive_flag_spec \
17263     enable_shared_with_static_runtimes \
17264     old_archive_cmds \
17265     old_archive_from_new_cmds \
17266     predep_objects \
17267     postdep_objects \
17268     predeps \
17269     postdeps \
17270     compiler_lib_search_path \
17271     archive_cmds \
17272     archive_expsym_cmds \
17273     postinstall_cmds \
17274     postuninstall_cmds \
17275     old_archive_from_expsyms_cmds \
17276     allow_undefined_flag \
17277     no_undefined_flag \
17278     export_symbols_cmds \
17279     hardcode_libdir_flag_spec \
17280     hardcode_libdir_flag_spec_ld \
17281     hardcode_libdir_separator \
17282     hardcode_automatic \
17283     module_cmds \
17284     module_expsym_cmds \
17285     lt_cv_prog_compiler_c_o \
17286     exclude_expsyms \
17287     include_expsyms; do
17288
17289     case $var in
17290     old_archive_cmds | \
17291     old_archive_from_new_cmds | \
17292     archive_cmds | \
17293     archive_expsym_cmds | \
17294     module_cmds | \
17295     module_expsym_cmds | \
17296     old_archive_from_expsyms_cmds | \
17297     export_symbols_cmds | \
17298     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17299     postinstall_cmds | postuninstall_cmds | \
17300     old_postinstall_cmds | old_postuninstall_cmds | \
17301     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17302       # Double-quote double-evaled strings.
17303       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17304       ;;
17305     *)
17306       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17307       ;;
17308     esac
17309   done
17310
17311   case $lt_echo in
17312   *'\$0 --fallback-echo"')
17313     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17314     ;;
17315   esac
17316
17317 cfgfile="${ofile}T"
17318   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17319   $rm -f "$cfgfile"
17320   { echo "$as_me:$LINENO: creating $ofile" >&5
17321 echo "$as_me: creating $ofile" >&6;}
17322
17323   cat <<__EOF__ >> "$cfgfile"
17324 #! $SHELL
17325
17326 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17327 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17328 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17329 #
17330 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17331 # Free Software Foundation, Inc.
17332 #
17333 # This file is part of GNU Libtool:
17334 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17335 #
17336 # This program is free software; you can redistribute it and/or modify
17337 # it under the terms of the GNU General Public License as published by
17338 # the Free Software Foundation; either version 2 of the License, or
17339 # (at your option) any later version.
17340 #
17341 # This program is distributed in the hope that it will be useful, but
17342 # WITHOUT ANY WARRANTY; without even the implied warranty of
17343 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17344 # General Public License for more details.
17345 #
17346 # You should have received a copy of the GNU General Public License
17347 # along with this program; if not, write to the Free Software
17348 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17349 #
17350 # As a special exception to the GNU General Public License, if you
17351 # distribute this file as part of a program that contains a
17352 # configuration script generated by Autoconf, you may include it under
17353 # the same distribution terms that you use for the rest of that program.
17354
17355 # A sed program that does not truncate output.
17356 SED=$lt_SED
17357
17358 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17359 Xsed="$SED -e 1s/^X//"
17360
17361 # The HP-UX ksh and POSIX shell print the target directory to stdout
17362 # if CDPATH is set.
17363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17364
17365 # The names of the tagged configurations supported by this script.
17366 available_tags=
17367
17368 # ### BEGIN LIBTOOL CONFIG
17369
17370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17371
17372 # Shell to use when invoking shell scripts.
17373 SHELL=$lt_SHELL
17374
17375 # Whether or not to build shared libraries.
17376 build_libtool_libs=$enable_shared
17377
17378 # Whether or not to build static libraries.
17379 build_old_libs=$enable_static
17380
17381 # Whether or not to add -lc for building shared libraries.
17382 build_libtool_need_lc=$archive_cmds_need_lc
17383
17384 # Whether or not to disallow shared libs when runtime libs are static
17385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17386
17387 # Whether or not to optimize for fast installation.
17388 fast_install=$enable_fast_install
17389
17390 # The host system.
17391 host_alias=$host_alias
17392 host=$host
17393 host_os=$host_os
17394
17395 # The build system.
17396 build_alias=$build_alias
17397 build=$build
17398 build_os=$build_os
17399
17400 # An echo program that does not interpret backslashes.
17401 echo=$lt_echo
17402
17403 # The archiver.
17404 AR=$lt_AR
17405 AR_FLAGS=$lt_AR_FLAGS
17406
17407 # A C compiler.
17408 LTCC=$lt_LTCC
17409
17410 # LTCC compiler flags.
17411 LTCFLAGS=$lt_LTCFLAGS
17412
17413 # A language-specific compiler.
17414 CC=$lt_compiler
17415
17416 # Is the compiler the GNU C compiler?
17417 with_gcc=$GCC
17418
17419 # An ERE matcher.
17420 EGREP=$lt_EGREP
17421
17422 # The linker used to build libraries.
17423 LD=$lt_LD
17424
17425 # Whether we need hard or soft links.
17426 LN_S=$lt_LN_S
17427
17428 # A BSD-compatible nm program.
17429 NM=$lt_NM
17430
17431 # A symbol stripping program
17432 STRIP=$lt_STRIP
17433
17434 # Used to examine libraries when file_magic_cmd begins "file"
17435 MAGIC_CMD=$MAGIC_CMD
17436
17437 # Used on cygwin: DLL creation program.
17438 DLLTOOL="$DLLTOOL"
17439
17440 # Used on cygwin: object dumper.
17441 OBJDUMP="$OBJDUMP"
17442
17443 # Used on cygwin: assembler.
17444 AS="$AS"
17445
17446 # The name of the directory that contains temporary libtool files.
17447 objdir=$objdir
17448
17449 # How to create reloadable object files.
17450 reload_flag=$lt_reload_flag
17451 reload_cmds=$lt_reload_cmds
17452
17453 # How to pass a linker flag through the compiler.
17454 wl=$lt_lt_prog_compiler_wl
17455
17456 # Object file suffix (normally "o").
17457 objext="$ac_objext"
17458
17459 # Old archive suffix (normally "a").
17460 libext="$libext"
17461
17462 # Shared library suffix (normally ".so").
17463 shrext_cmds='$shrext_cmds'
17464
17465 # Executable file suffix (normally "").
17466 exeext="$exeext"
17467
17468 # Additional compiler flags for building library objects.
17469 pic_flag=$lt_lt_prog_compiler_pic
17470 pic_mode=$pic_mode
17471
17472 # What is the maximum length of a command?
17473 max_cmd_len=$lt_cv_sys_max_cmd_len
17474
17475 # Does compiler simultaneously support -c and -o options?
17476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17477
17478 # Must we lock files when doing compilation?
17479 need_locks=$lt_need_locks
17480
17481 # Do we need the lib prefix for modules?
17482 need_lib_prefix=$need_lib_prefix
17483
17484 # Do we need a version for libraries?
17485 need_version=$need_version
17486
17487 # Whether dlopen is supported.
17488 dlopen_support=$enable_dlopen
17489
17490 # Whether dlopen of programs is supported.
17491 dlopen_self=$enable_dlopen_self
17492
17493 # Whether dlopen of statically linked programs is supported.
17494 dlopen_self_static=$enable_dlopen_self_static
17495
17496 # Compiler flag to prevent dynamic linking.
17497 link_static_flag=$lt_lt_prog_compiler_static
17498
17499 # Compiler flag to turn off builtin functions.
17500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17501
17502 # Compiler flag to allow reflexive dlopens.
17503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17504
17505 # Compiler flag to generate shared objects directly from archives.
17506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17507
17508 # Compiler flag to generate thread-safe objects.
17509 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17510
17511 # Library versioning type.
17512 version_type=$version_type
17513
17514 # Format of library name prefix.
17515 libname_spec=$lt_libname_spec
17516
17517 # List of archive names.  First name is the real one, the rest are links.
17518 # The last name is the one that the linker finds with -lNAME.
17519 library_names_spec=$lt_library_names_spec
17520
17521 # The coded name of the library, if different from the real name.
17522 soname_spec=$lt_soname_spec
17523
17524 # Commands used to build and install an old-style archive.
17525 RANLIB=$lt_RANLIB
17526 old_archive_cmds=$lt_old_archive_cmds
17527 old_postinstall_cmds=$lt_old_postinstall_cmds
17528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17529
17530 # Create an old-style archive from a shared archive.
17531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17532
17533 # Create a temporary old-style archive to link instead of a shared archive.
17534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17535
17536 # Commands used to build and install a shared archive.
17537 archive_cmds=$lt_archive_cmds
17538 archive_expsym_cmds=$lt_archive_expsym_cmds
17539 postinstall_cmds=$lt_postinstall_cmds
17540 postuninstall_cmds=$lt_postuninstall_cmds
17541
17542 # Commands used to build a loadable module (assumed same as above if empty)
17543 module_cmds=$lt_module_cmds
17544 module_expsym_cmds=$lt_module_expsym_cmds
17545
17546 # Commands to strip libraries.
17547 old_striplib=$lt_old_striplib
17548 striplib=$lt_striplib
17549
17550 # Dependencies to place before the objects being linked to create a
17551 # shared library.
17552 predep_objects=$lt_predep_objects
17553
17554 # Dependencies to place after the objects being linked to create a
17555 # shared library.
17556 postdep_objects=$lt_postdep_objects
17557
17558 # Dependencies to place before the objects being linked to create a
17559 # shared library.
17560 predeps=$lt_predeps
17561
17562 # Dependencies to place after the objects being linked to create a
17563 # shared library.
17564 postdeps=$lt_postdeps
17565
17566 # The library search path used internally by the compiler when linking
17567 # a shared library.
17568 compiler_lib_search_path=$lt_compiler_lib_search_path
17569
17570 # Method to check whether dependent libraries are shared objects.
17571 deplibs_check_method=$lt_deplibs_check_method
17572
17573 # Command to use when deplibs_check_method == file_magic.
17574 file_magic_cmd=$lt_file_magic_cmd
17575
17576 # Flag that allows shared libraries with undefined symbols to be built.
17577 allow_undefined_flag=$lt_allow_undefined_flag
17578
17579 # Flag that forces no undefined symbols.
17580 no_undefined_flag=$lt_no_undefined_flag
17581
17582 # Commands used to finish a libtool library installation in a directory.
17583 finish_cmds=$lt_finish_cmds
17584
17585 # Same as above, but a single script fragment to be evaled but not shown.
17586 finish_eval=$lt_finish_eval
17587
17588 # Take the output of nm and produce a listing of raw symbols and C names.
17589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17590
17591 # Transform the output of nm in a proper C declaration
17592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17593
17594 # Transform the output of nm in a C name address pair
17595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17596
17597 # This is the shared library runtime path variable.
17598 runpath_var=$runpath_var
17599
17600 # This is the shared library path variable.
17601 shlibpath_var=$shlibpath_var
17602
17603 # Is shlibpath searched before the hard-coded library search path?
17604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17605
17606 # How to hardcode a shared library path into an executable.
17607 hardcode_action=$hardcode_action
17608
17609 # Whether we should hardcode library paths into libraries.
17610 hardcode_into_libs=$hardcode_into_libs
17611
17612 # Flag to hardcode \$libdir into a binary during linking.
17613 # This must work even if \$libdir does not exist.
17614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17615
17616 # If ld is used when linking, flag to hardcode \$libdir into
17617 # a binary during linking. This must work even if \$libdir does
17618 # not exist.
17619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17620
17621 # Whether we need a single -rpath flag with a separated argument.
17622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17623
17624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17625 # resulting binary.
17626 hardcode_direct=$hardcode_direct
17627
17628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17629 # resulting binary.
17630 hardcode_minus_L=$hardcode_minus_L
17631
17632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17633 # the resulting binary.
17634 hardcode_shlibpath_var=$hardcode_shlibpath_var
17635
17636 # Set to yes if building a shared library automatically hardcodes DIR into the library
17637 # and all subsequent libraries and executables linked against it.
17638 hardcode_automatic=$hardcode_automatic
17639
17640 # Variables whose values should be saved in libtool wrapper scripts and
17641 # restored at relink time.
17642 variables_saved_for_relink="$variables_saved_for_relink"
17643
17644 # Whether libtool must link a program against all its dependency libraries.
17645 link_all_deplibs=$link_all_deplibs
17646
17647 # Compile-time system search path for libraries
17648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17649
17650 # Run-time system search path for libraries
17651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17652
17653 # Fix the shell variable \$srcfile for the compiler.
17654 fix_srcfile_path="$fix_srcfile_path"
17655
17656 # Set to yes if exported symbols are required.
17657 always_export_symbols=$always_export_symbols
17658
17659 # The commands to list exported symbols.
17660 export_symbols_cmds=$lt_export_symbols_cmds
17661
17662 # The commands to extract the exported symbol list from a shared archive.
17663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17664
17665 # Symbols that should not be listed in the preloaded symbols.
17666 exclude_expsyms=$lt_exclude_expsyms
17667
17668 # Symbols that must always be exported.
17669 include_expsyms=$lt_include_expsyms
17670
17671 # ### END LIBTOOL CONFIG
17672
17673 __EOF__
17674
17675
17676   case $host_os in
17677   aix3*)
17678     cat <<\EOF >> "$cfgfile"
17679
17680 # AIX sometimes has problems with the GCC collect2 program.  For some
17681 # reason, if we set the COLLECT_NAMES environment variable, the problems
17682 # vanish in a puff of smoke.
17683 if test "X${COLLECT_NAMES+set}" != Xset; then
17684   COLLECT_NAMES=
17685   export COLLECT_NAMES
17686 fi
17687 EOF
17688     ;;
17689   esac
17690
17691   # We use sed instead of cat because bash on DJGPP gets confused if
17692   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17693   # text mode, it properly converts lines to CR/LF.  This bash problem
17694   # is reportedly fixed, but why not run on old versions too?
17695   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17696
17697   mv -f "$cfgfile" "$ofile" || \
17698     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17699   chmod +x "$ofile"
17700
17701 else
17702   # If there is no Makefile yet, we rely on a make rule to execute
17703   # `config.status --recheck' to rerun these tests and create the
17704   # libtool script then.
17705   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17706   if test -f "$ltmain_in"; then
17707     test -f Makefile && make "$ltmain"
17708   fi
17709 fi
17710
17711
17712 ac_ext=c
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
17718 CC="$lt_save_CC"
17719
17720
17721 # Check whether --with-tags was given.
17722 if test "${with_tags+set}" = set; then
17723   withval=$with_tags; tagnames="$withval"
17724 fi
17725
17726
17727 if test -f "$ltmain" && test -n "$tagnames"; then
17728   if test ! -f "${ofile}"; then
17729     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17730 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17731   fi
17732
17733   if test -z "$LTCC"; then
17734     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17735     if test -z "$LTCC"; then
17736       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17737 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17738     else
17739       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17740 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17741     fi
17742   fi
17743   if test -z "$LTCFLAGS"; then
17744     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17745   fi
17746
17747   # Extract list of available tagged configurations in $ofile.
17748   # Note that this assumes the entire list is on one line.
17749   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17750
17751   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17752   for tagname in $tagnames; do
17753     IFS="$lt_save_ifs"
17754     # Check whether tagname contains only valid characters
17755     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17756     "") ;;
17757     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17758 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17759    { (exit 1); exit 1; }; }
17760         ;;
17761     esac
17762
17763     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17764     then
17765       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17766 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17767    { (exit 1); exit 1; }; }
17768     fi
17769
17770     # Update the list of available tags.
17771     if test -n "$tagname"; then
17772       echo appending configuration tag \"$tagname\" to $ofile
17773
17774       case $tagname in
17775       CXX)
17776         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17777             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17778             (test "X$CXX" != "Xg++"))) ; then
17779           ac_ext=cpp
17780 ac_cpp='$CXXCPP $CPPFLAGS'
17781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17784
17785
17786
17787
17788 archive_cmds_need_lc_CXX=no
17789 allow_undefined_flag_CXX=
17790 always_export_symbols_CXX=no
17791 archive_expsym_cmds_CXX=
17792 export_dynamic_flag_spec_CXX=
17793 hardcode_direct_CXX=no
17794 hardcode_libdir_flag_spec_CXX=
17795 hardcode_libdir_flag_spec_ld_CXX=
17796 hardcode_libdir_separator_CXX=
17797 hardcode_minus_L_CXX=no
17798 hardcode_shlibpath_var_CXX=unsupported
17799 hardcode_automatic_CXX=no
17800 module_cmds_CXX=
17801 module_expsym_cmds_CXX=
17802 link_all_deplibs_CXX=unknown
17803 old_archive_cmds_CXX=$old_archive_cmds
17804 no_undefined_flag_CXX=
17805 whole_archive_flag_spec_CXX=
17806 enable_shared_with_static_runtimes_CXX=no
17807
17808 # Dependencies to place before and after the object being linked:
17809 predep_objects_CXX=
17810 postdep_objects_CXX=
17811 predeps_CXX=
17812 postdeps_CXX=
17813 compiler_lib_search_path_CXX=
17814
17815 # Source file extension for C++ test sources.
17816 ac_ext=cpp
17817
17818 # Object file extension for compiled C++ test sources.
17819 objext=o
17820 objext_CXX=$objext
17821
17822 # Code to be used in simple compile tests
17823 lt_simple_compile_test_code="int some_variable = 0;\n"
17824
17825 # Code to be used in simple link tests
17826 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17827
17828 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17829
17830 # If no C compiler was specified, use CC.
17831 LTCC=${LTCC-"$CC"}
17832
17833 # If no C compiler flags were specified, use CFLAGS.
17834 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17835
17836 # Allow CC to be a program name with arguments.
17837 compiler=$CC
17838
17839
17840 # save warnings/boilerplate of simple test code
17841 ac_outfile=conftest.$ac_objext
17842 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17844 _lt_compiler_boilerplate=`cat conftest.err`
17845 $rm conftest*
17846
17847 ac_outfile=conftest.$ac_objext
17848 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17850 _lt_linker_boilerplate=`cat conftest.err`
17851 $rm conftest*
17852
17853
17854 # Allow CC to be a program name with arguments.
17855 lt_save_CC=$CC
17856 lt_save_LD=$LD
17857 lt_save_GCC=$GCC
17858 GCC=$GXX
17859 lt_save_with_gnu_ld=$with_gnu_ld
17860 lt_save_path_LD=$lt_cv_path_LD
17861 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17862   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17863 else
17864   $as_unset lt_cv_prog_gnu_ld
17865 fi
17866 if test -n "${lt_cv_path_LDCXX+set}"; then
17867   lt_cv_path_LD=$lt_cv_path_LDCXX
17868 else
17869   $as_unset lt_cv_path_LD
17870 fi
17871 test -z "${LDCXX+set}" || LD=$LDCXX
17872 CC=${CXX-"c++"}
17873 compiler=$CC
17874 compiler_CXX=$CC
17875 for cc_temp in $compiler""; do
17876   case $cc_temp in
17877     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17878     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17879     \-*) ;;
17880     *) break;;
17881   esac
17882 done
17883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17884
17885
17886 # We don't want -fno-exception wen compiling C++ code, so set the
17887 # no_builtin_flag separately
17888 if test "$GXX" = yes; then
17889   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17890 else
17891   lt_prog_compiler_no_builtin_flag_CXX=
17892 fi
17893
17894 if test "$GXX" = yes; then
17895   # Set up default GNU C++ configuration
17896
17897
17898 # Check whether --with-gnu-ld was given.
17899 if test "${with_gnu_ld+set}" = set; then
17900   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17901 else
17902   with_gnu_ld=no
17903 fi
17904
17905 ac_prog=ld
17906 if test "$GCC" = yes; then
17907   # Check if gcc -print-prog-name=ld gives a path.
17908   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17909 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17910   case $host in
17911   *-*-mingw*)
17912     # gcc leaves a trailing carriage return which upsets mingw
17913     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17914   *)
17915     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17916   esac
17917   case $ac_prog in
17918     # Accept absolute paths.
17919     [\\/]* | ?:[\\/]*)
17920       re_direlt='/[^/][^/]*/\.\./'
17921       # Canonicalize the pathname of ld
17922       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17923       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17924         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17925       done
17926       test -z "$LD" && LD="$ac_prog"
17927       ;;
17928   "")
17929     # If it fails, then pretend we aren't using GCC.
17930     ac_prog=ld
17931     ;;
17932   *)
17933     # If it is relative, then search for the first ld in PATH.
17934     with_gnu_ld=unknown
17935     ;;
17936   esac
17937 elif test "$with_gnu_ld" = yes; then
17938   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17939 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17940 else
17941   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17942 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17943 fi
17944 if test "${lt_cv_path_LD+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947   if test -z "$LD"; then
17948   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17949   for ac_dir in $PATH; do
17950     IFS="$lt_save_ifs"
17951     test -z "$ac_dir" && ac_dir=.
17952     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17953       lt_cv_path_LD="$ac_dir/$ac_prog"
17954       # Check to see if the program is GNU ld.  I'd rather use --version,
17955       # but apparently some variants of GNU ld only accept -v.
17956       # Break only if it was the GNU/non-GNU ld that we prefer.
17957       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17958       *GNU* | *'with BFD'*)
17959         test "$with_gnu_ld" != no && break
17960         ;;
17961       *)
17962         test "$with_gnu_ld" != yes && break
17963         ;;
17964       esac
17965     fi
17966   done
17967   IFS="$lt_save_ifs"
17968 else
17969   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17970 fi
17971 fi
17972
17973 LD="$lt_cv_path_LD"
17974 if test -n "$LD"; then
17975   { echo "$as_me:$LINENO: result: $LD" >&5
17976 echo "${ECHO_T}$LD" >&6; }
17977 else
17978   { echo "$as_me:$LINENO: result: no" >&5
17979 echo "${ECHO_T}no" >&6; }
17980 fi
17981 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17982 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17983    { (exit 1); exit 1; }; }
17984 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17985 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17986 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17990 case `$LD -v 2>&1 </dev/null` in
17991 *GNU* | *'with BFD'*)
17992   lt_cv_prog_gnu_ld=yes
17993   ;;
17994 *)
17995   lt_cv_prog_gnu_ld=no
17996   ;;
17997 esac
17998 fi
17999 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18000 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18001 with_gnu_ld=$lt_cv_prog_gnu_ld
18002
18003
18004
18005   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18006   # archiving commands below assume that GNU ld is being used.
18007   if test "$with_gnu_ld" = yes; then
18008     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009     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'
18010
18011     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18012     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013
18014     # If archive_cmds runs LD, not CC, wlarc should be empty
18015     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18016     #     investigate it a little bit more. (MM)
18017     wlarc='${wl}'
18018
18019     # ancient GNU ld didn't support --whole-archive et. al.
18020     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18021         grep 'no-whole-archive' > /dev/null; then
18022       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18023     else
18024       whole_archive_flag_spec_CXX=
18025     fi
18026   else
18027     with_gnu_ld=no
18028     wlarc=
18029
18030     # A generic and very simple default shared library creation
18031     # command for GNU C++ for the case where it uses the native
18032     # linker, instead of GNU ld.  If possible, this setting should
18033     # overridden to take advantage of the native linker features on
18034     # the platform it is being used on.
18035     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18036   fi
18037
18038   # Commands to make compiler produce verbose output that lists
18039   # what "hidden" libraries, object files and flags are used when
18040   # linking a shared library.
18041   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18042
18043 else
18044   GXX=no
18045   with_gnu_ld=no
18046   wlarc=
18047 fi
18048
18049 # PORTME: fill in a description of your system's C++ link characteristics
18050 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18052 ld_shlibs_CXX=yes
18053 case $host_os in
18054   aix3*)
18055     # FIXME: insert proper C++ library support
18056     ld_shlibs_CXX=no
18057     ;;
18058   aix4* | aix5*)
18059     if test "$host_cpu" = ia64; then
18060       # On IA64, the linker does run time linking by default, so we don't
18061       # have to do anything special.
18062       aix_use_runtimelinking=no
18063       exp_sym_flag='-Bexport'
18064       no_entry_flag=""
18065     else
18066       aix_use_runtimelinking=no
18067
18068       # Test if we are trying to use run time linking or normal
18069       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18070       # need to do runtime linking.
18071       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18072         for ld_flag in $LDFLAGS; do
18073           case $ld_flag in
18074           *-brtl*)
18075             aix_use_runtimelinking=yes
18076             break
18077             ;;
18078           esac
18079         done
18080         ;;
18081       esac
18082
18083       exp_sym_flag='-bexport'
18084       no_entry_flag='-bnoentry'
18085     fi
18086
18087     # When large executables or shared objects are built, AIX ld can
18088     # have problems creating the table of contents.  If linking a library
18089     # or program results in "error TOC overflow" add -mminimal-toc to
18090     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18091     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18092
18093     archive_cmds_CXX=''
18094     hardcode_direct_CXX=yes
18095     hardcode_libdir_separator_CXX=':'
18096     link_all_deplibs_CXX=yes
18097
18098     if test "$GXX" = yes; then
18099       case $host_os in aix4.[012]|aix4.[012].*)
18100       # We only want to do this on AIX 4.2 and lower, the check
18101       # below for broken collect2 doesn't work under 4.3+
18102         collect2name=`${CC} -print-prog-name=collect2`
18103         if test -f "$collect2name" && \
18104            strings "$collect2name" | grep resolve_lib_name >/dev/null
18105         then
18106           # We have reworked collect2
18107           hardcode_direct_CXX=yes
18108         else
18109           # We have old collect2
18110           hardcode_direct_CXX=unsupported
18111           # It fails to find uninstalled libraries when the uninstalled
18112           # path is not listed in the libpath.  Setting hardcode_minus_L
18113           # to unsupported forces relinking
18114           hardcode_minus_L_CXX=yes
18115           hardcode_libdir_flag_spec_CXX='-L$libdir'
18116           hardcode_libdir_separator_CXX=
18117         fi
18118         ;;
18119       esac
18120       shared_flag='-shared'
18121       if test "$aix_use_runtimelinking" = yes; then
18122         shared_flag="$shared_flag "'${wl}-G'
18123       fi
18124     else
18125       # not using gcc
18126       if test "$host_cpu" = ia64; then
18127         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18128         # chokes on -Wl,-G. The following line is correct:
18129         shared_flag='-G'
18130       else
18131         if test "$aix_use_runtimelinking" = yes; then
18132           shared_flag='${wl}-G'
18133         else
18134           shared_flag='${wl}-bM:SRE'
18135         fi
18136       fi
18137     fi
18138
18139     # It seems that -bexpall does not export symbols beginning with
18140     # underscore (_), so it is better to generate a list of symbols to export.
18141     always_export_symbols_CXX=yes
18142     if test "$aix_use_runtimelinking" = yes; then
18143       # Warning - without using the other runtime loading flags (-brtl),
18144       # -berok will link without error, but may produce a broken library.
18145       allow_undefined_flag_CXX='-berok'
18146       # Determine the default libpath from the value encoded in an empty executable.
18147       cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153
18154 int
18155 main ()
18156 {
18157
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_link") 2>conftest.er1
18170   ac_status=$?
18171   grep -v '^ *+' conftest.er1 >conftest.err
18172   rm -f conftest.er1
18173   cat conftest.err >&5
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } &&
18176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177   { (case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_try") 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest$ac_exeext'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; }; then
18196
18197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18198 }'`
18199 # Check for a 64-bit object if we didn't find anything.
18200 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; }
18201 }'`; fi
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext \
18210       conftest$ac_exeext conftest.$ac_ext
18211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18212
18213       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18214
18215       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"
18216      else
18217       if test "$host_cpu" = ia64; then
18218         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18219         allow_undefined_flag_CXX="-z nodefs"
18220         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"
18221       else
18222         # Determine the default libpath from the value encoded in an empty executable.
18223         cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229
18230 int
18231 main ()
18232 {
18233
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18253   { (case "(($ac_try" in
18254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255   *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258   (eval "$ac_try") 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; } &&
18262          { ac_try='test -s conftest$ac_exeext'
18263   { (case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_try") 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272
18273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18274 }'`
18275 # Check for a 64-bit object if we didn't find anything.
18276 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; }
18277 }'`; fi
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282
18283 fi
18284
18285 rm -f core conftest.err conftest.$ac_objext \
18286       conftest$ac_exeext conftest.$ac_ext
18287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18288
18289         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18290         # Warning - without using the other run time loading flags,
18291         # -berok will link without error, but may produce a broken library.
18292         no_undefined_flag_CXX=' ${wl}-bernotok'
18293         allow_undefined_flag_CXX=' ${wl}-berok'
18294         # Exported symbols can be pulled into shared objects from archives
18295         whole_archive_flag_spec_CXX='$convenience'
18296         archive_cmds_need_lc_CXX=yes
18297         # This is similar to how AIX traditionally builds its shared libraries.
18298         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'
18299       fi
18300     fi
18301     ;;
18302
18303   beos*)
18304     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18305       allow_undefined_flag_CXX=unsupported
18306       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18307       # support --undefined.  This deserves some investigation.  FIXME
18308       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18309     else
18310       ld_shlibs_CXX=no
18311     fi
18312     ;;
18313
18314   chorus*)
18315     case $cc_basename in
18316       *)
18317         # FIXME: insert proper C++ library support
18318         ld_shlibs_CXX=no
18319         ;;
18320     esac
18321     ;;
18322
18323   cygwin* | mingw* | pw32*)
18324     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18325     # as there is no search path for DLLs.
18326     hardcode_libdir_flag_spec_CXX='-L$libdir'
18327     allow_undefined_flag_CXX=unsupported
18328     always_export_symbols_CXX=no
18329     enable_shared_with_static_runtimes_CXX=yes
18330
18331     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18332       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'
18333       # If the export-symbols file already is a .def file (1st line
18334       # is EXPORTS), use it as is; otherwise, prepend...
18335       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18336         cp $export_symbols $output_objdir/$soname.def;
18337       else
18338         echo EXPORTS > $output_objdir/$soname.def;
18339         cat $export_symbols >> $output_objdir/$soname.def;
18340       fi~
18341       $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'
18342     else
18343       ld_shlibs_CXX=no
18344     fi
18345   ;;
18346       darwin* | rhapsody*)
18347         case $host_os in
18348         rhapsody* | darwin1.[012])
18349          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18350          ;;
18351        *) # Darwin 1.3 on
18352          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18353            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18354          else
18355            case ${MACOSX_DEPLOYMENT_TARGET} in
18356              10.[012])
18357                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18358                ;;
18359              10.*)
18360                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18361                ;;
18362            esac
18363          fi
18364          ;;
18365         esac
18366       archive_cmds_need_lc_CXX=no
18367       hardcode_direct_CXX=no
18368       hardcode_automatic_CXX=yes
18369       hardcode_shlibpath_var_CXX=unsupported
18370       whole_archive_flag_spec_CXX=''
18371       link_all_deplibs_CXX=yes
18372
18373     if test "$GXX" = yes ; then
18374       lt_int_apple_cc_single_mod=no
18375       output_verbose_link_cmd='echo'
18376       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18377        lt_int_apple_cc_single_mod=yes
18378       fi
18379       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18380        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18381       else
18382           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'
18383         fi
18384         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18385         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18386           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18387             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}'
18388           else
18389             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}'
18390           fi
18391             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}'
18392       else
18393       case $cc_basename in
18394         xlc*)
18395          output_verbose_link_cmd='echo'
18396           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'
18397           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18398           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18399           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}'
18400           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}'
18401           ;;
18402        *)
18403          ld_shlibs_CXX=no
18404           ;;
18405       esac
18406       fi
18407         ;;
18408
18409   dgux*)
18410     case $cc_basename in
18411       ec++*)
18412         # FIXME: insert proper C++ library support
18413         ld_shlibs_CXX=no
18414         ;;
18415       ghcx*)
18416         # Green Hills C++ Compiler
18417         # FIXME: insert proper C++ library support
18418         ld_shlibs_CXX=no
18419         ;;
18420       *)
18421         # FIXME: insert proper C++ library support
18422         ld_shlibs_CXX=no
18423         ;;
18424     esac
18425     ;;
18426   freebsd[12]*)
18427     # C++ shared libraries reported to be fairly broken before switch to ELF
18428     ld_shlibs_CXX=no
18429     ;;
18430   freebsd-elf*)
18431     archive_cmds_need_lc_CXX=no
18432     ;;
18433   freebsd* | kfreebsd*-gnu | dragonfly*)
18434     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18435     # conventions
18436     ld_shlibs_CXX=yes
18437     ;;
18438   gnu*)
18439     ;;
18440   hpux9*)
18441     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18442     hardcode_libdir_separator_CXX=:
18443     export_dynamic_flag_spec_CXX='${wl}-E'
18444     hardcode_direct_CXX=yes
18445     hardcode_minus_L_CXX=yes # Not in the search PATH,
18446                                 # but as the default
18447                                 # location of the library.
18448
18449     case $cc_basename in
18450     CC*)
18451       # FIXME: insert proper C++ library support
18452       ld_shlibs_CXX=no
18453       ;;
18454     aCC*)
18455       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'
18456       # Commands to make compiler produce verbose output that lists
18457       # what "hidden" libraries, object files and flags are used when
18458       # linking a shared library.
18459       #
18460       # There doesn't appear to be a way to prevent this compiler from
18461       # explicitly linking system object files so we need to strip them
18462       # from the output so that they don't get included in the library
18463       # dependencies.
18464       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'
18465       ;;
18466     *)
18467       if test "$GXX" = yes; then
18468         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'
18469       else
18470         # FIXME: insert proper C++ library support
18471         ld_shlibs_CXX=no
18472       fi
18473       ;;
18474     esac
18475     ;;
18476   hpux10*|hpux11*)
18477     if test $with_gnu_ld = no; then
18478       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18479       hardcode_libdir_separator_CXX=:
18480
18481       case $host_cpu in
18482       hppa*64*|ia64*)
18483         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18484         ;;
18485       *)
18486         export_dynamic_flag_spec_CXX='${wl}-E'
18487         ;;
18488       esac
18489     fi
18490     case $host_cpu in
18491     hppa*64*|ia64*)
18492       hardcode_direct_CXX=no
18493       hardcode_shlibpath_var_CXX=no
18494       ;;
18495     *)
18496       hardcode_direct_CXX=yes
18497       hardcode_minus_L_CXX=yes # Not in the search PATH,
18498                                               # but as the default
18499                                               # location of the library.
18500       ;;
18501     esac
18502
18503     case $cc_basename in
18504       CC*)
18505         # FIXME: insert proper C++ library support
18506         ld_shlibs_CXX=no
18507         ;;
18508       aCC*)
18509         case $host_cpu in
18510         hppa*64*)
18511           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18512           ;;
18513         ia64*)
18514           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18515           ;;
18516         *)
18517           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18518           ;;
18519         esac
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         #
18524         # There doesn't appear to be a way to prevent this compiler from
18525         # explicitly linking system object files so we need to strip them
18526         # from the output so that they don't get included in the library
18527         # dependencies.
18528         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'
18529         ;;
18530       *)
18531         if test "$GXX" = yes; then
18532           if test $with_gnu_ld = no; then
18533             case $host_cpu in
18534             hppa*64*)
18535               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18536               ;;
18537             ia64*)
18538               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18539               ;;
18540             *)
18541               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'
18542               ;;
18543             esac
18544           fi
18545         else
18546           # FIXME: insert proper C++ library support
18547           ld_shlibs_CXX=no
18548         fi
18549         ;;
18550     esac
18551     ;;
18552   interix3*)
18553     hardcode_direct_CXX=no
18554     hardcode_shlibpath_var_CXX=no
18555     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18556     export_dynamic_flag_spec_CXX='${wl}-E'
18557     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18558     # Instead, shared libraries are loaded at an image base (0x10000000 by
18559     # default) and relocated if they conflict, which is a slow very memory
18560     # consuming and fragmenting process.  To avoid this, we pick a random,
18561     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18562     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18563     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'
18564     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'
18565     ;;
18566   irix5* | irix6*)
18567     case $cc_basename in
18568       CC*)
18569         # SGI C++
18570         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'
18571
18572         # Archives containing C++ object files must be created using
18573         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18574         # necessary to make sure instantiated templates are included
18575         # in the archive.
18576         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18577         ;;
18578       *)
18579         if test "$GXX" = yes; then
18580           if test "$with_gnu_ld" = no; then
18581             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'
18582           else
18583             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'
18584           fi
18585         fi
18586         link_all_deplibs_CXX=yes
18587         ;;
18588     esac
18589     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18590     hardcode_libdir_separator_CXX=:
18591     ;;
18592   linux*)
18593     case $cc_basename in
18594       KCC*)
18595         # Kuck and Associates, Inc. (KAI) C++ Compiler
18596
18597         # KCC will only create a shared library if the output file
18598         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18599         # to its proper name (with version) after linking.
18600         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'
18601         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'
18602         # Commands to make compiler produce verbose output that lists
18603         # what "hidden" libraries, object files and flags are used when
18604         # linking a shared library.
18605         #
18606         # There doesn't appear to be a way to prevent this compiler from
18607         # explicitly linking system object files so we need to strip them
18608         # from the output so that they don't get included in the library
18609         # dependencies.
18610         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'
18611
18612         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18613         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18614
18615         # Archives containing C++ object files must be created using
18616         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18617         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18618         ;;
18619       icpc*)
18620         # Intel C++
18621         with_gnu_ld=yes
18622         # version 8.0 and above of icpc choke on multiply defined symbols
18623         # if we add $predep_objects and $postdep_objects, however 7.1 and
18624         # earlier do not add the objects themselves.
18625         case `$CC -V 2>&1` in
18626         *"Version 7."*)
18627           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628           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'
18629           ;;
18630         *)  # Version 8.0 or newer
18631           tmp_idyn=
18632           case $host_cpu in
18633             ia64*) tmp_idyn=' -i_dynamic';;
18634           esac
18635           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18636           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'
18637           ;;
18638         esac
18639         archive_cmds_need_lc_CXX=no
18640         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18641         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18643         ;;
18644       pgCC*)
18645         # Portland Group C++ compiler
18646         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18647         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'
18648
18649         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18650         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18651         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'
18652         ;;
18653       cxx*)
18654         # Compaq C++
18655         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656         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'
18657
18658         runpath_var=LD_RUN_PATH
18659         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18660         hardcode_libdir_separator_CXX=:
18661
18662         # Commands to make compiler produce verbose output that lists
18663         # what "hidden" libraries, object files and flags are used when
18664         # linking a shared library.
18665         #
18666         # There doesn't appear to be a way to prevent this compiler from
18667         # explicitly linking system object files so we need to strip them
18668         # from the output so that they don't get included in the library
18669         # dependencies.
18670         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'
18671         ;;
18672     esac
18673     ;;
18674   lynxos*)
18675     # FIXME: insert proper C++ library support
18676     ld_shlibs_CXX=no
18677     ;;
18678   m88k*)
18679     # FIXME: insert proper C++ library support
18680     ld_shlibs_CXX=no
18681     ;;
18682   mvs*)
18683     case $cc_basename in
18684       cxx*)
18685         # FIXME: insert proper C++ library support
18686         ld_shlibs_CXX=no
18687         ;;
18688       *)
18689         # FIXME: insert proper C++ library support
18690         ld_shlibs_CXX=no
18691         ;;
18692     esac
18693     ;;
18694   netbsd*)
18695     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18696       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18697       wlarc=
18698       hardcode_libdir_flag_spec_CXX='-R$libdir'
18699       hardcode_direct_CXX=yes
18700       hardcode_shlibpath_var_CXX=no
18701     fi
18702     # Workaround some broken pre-1.5 toolchains
18703     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18704     ;;
18705   openbsd2*)
18706     # C++ shared libraries are fairly broken
18707     ld_shlibs_CXX=no
18708     ;;
18709   openbsd*)
18710     hardcode_direct_CXX=yes
18711     hardcode_shlibpath_var_CXX=no
18712     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18713     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18714     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18715       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18716       export_dynamic_flag_spec_CXX='${wl}-E'
18717       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718     fi
18719     output_verbose_link_cmd='echo'
18720     ;;
18721   osf3*)
18722     case $cc_basename in
18723       KCC*)
18724         # Kuck and Associates, Inc. (KAI) C++ Compiler
18725
18726         # KCC will only create a shared library if the output file
18727         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18728         # to its proper name (with version) after linking.
18729         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'
18730
18731         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18732         hardcode_libdir_separator_CXX=:
18733
18734         # Archives containing C++ object files must be created using
18735         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18736         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18737
18738         ;;
18739       RCC*)
18740         # Rational C++ 2.4.1
18741         # FIXME: insert proper C++ library support
18742         ld_shlibs_CXX=no
18743         ;;
18744       cxx*)
18745         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18746         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'
18747
18748         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749         hardcode_libdir_separator_CXX=:
18750
18751         # Commands to make compiler produce verbose output that lists
18752         # what "hidden" libraries, object files and flags are used when
18753         # linking a shared library.
18754         #
18755         # There doesn't appear to be a way to prevent this compiler from
18756         # explicitly linking system object files so we need to strip them
18757         # from the output so that they don't get included in the library
18758         # dependencies.
18759         output_verbose_link_cmd='templist=`$CC -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'
18760         ;;
18761       *)
18762         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18763           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18764           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'
18765
18766           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18767           hardcode_libdir_separator_CXX=:
18768
18769           # Commands to make compiler produce verbose output that lists
18770           # what "hidden" libraries, object files and flags are used when
18771           # linking a shared library.
18772           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18773
18774         else
18775           # FIXME: insert proper C++ library support
18776           ld_shlibs_CXX=no
18777         fi
18778         ;;
18779     esac
18780     ;;
18781   osf4* | osf5*)
18782     case $cc_basename in
18783       KCC*)
18784         # Kuck and Associates, Inc. (KAI) C++ Compiler
18785
18786         # KCC will only create a shared library if the output file
18787         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18788         # to its proper name (with version) after linking.
18789         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'
18790
18791         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18792         hardcode_libdir_separator_CXX=:
18793
18794         # Archives containing C++ object files must be created using
18795         # the KAI C++ compiler.
18796         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18797         ;;
18798       RCC*)
18799         # Rational C++ 2.4.1
18800         # FIXME: insert proper C++ library support
18801         ld_shlibs_CXX=no
18802         ;;
18803       cxx*)
18804         allow_undefined_flag_CXX=' -expect_unresolved \*'
18805         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'
18806         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18807           echo "-hidden">> $lib.exp~
18808           $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~
18809           $rm $lib.exp'
18810
18811         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18812         hardcode_libdir_separator_CXX=:
18813
18814         # Commands to make compiler produce verbose output that lists
18815         # what "hidden" libraries, object files and flags are used when
18816         # linking a shared library.
18817         #
18818         # There doesn't appear to be a way to prevent this compiler from
18819         # explicitly linking system object files so we need to strip them
18820         # from the output so that they don't get included in the library
18821         # dependencies.
18822         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'
18823         ;;
18824       *)
18825         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18826           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18827          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'
18828
18829           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18830           hardcode_libdir_separator_CXX=:
18831
18832           # Commands to make compiler produce verbose output that lists
18833           # what "hidden" libraries, object files and flags are used when
18834           # linking a shared library.
18835           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18836
18837         else
18838           # FIXME: insert proper C++ library support
18839           ld_shlibs_CXX=no
18840         fi
18841         ;;
18842     esac
18843     ;;
18844   psos*)
18845     # FIXME: insert proper C++ library support
18846     ld_shlibs_CXX=no
18847     ;;
18848   sunos4*)
18849     case $cc_basename in
18850       CC*)
18851         # Sun C++ 4.x
18852         # FIXME: insert proper C++ library support
18853         ld_shlibs_CXX=no
18854         ;;
18855       lcc*)
18856         # Lucid
18857         # FIXME: insert proper C++ library support
18858         ld_shlibs_CXX=no
18859         ;;
18860       *)
18861         # FIXME: insert proper C++ library support
18862         ld_shlibs_CXX=no
18863         ;;
18864     esac
18865     ;;
18866   solaris*)
18867     case $cc_basename in
18868       CC*)
18869         # Sun C++ 4.2, 5.x and Centerline C++
18870         archive_cmds_need_lc_CXX=yes
18871         no_undefined_flag_CXX=' -zdefs'
18872         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18874         $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'
18875
18876         hardcode_libdir_flag_spec_CXX='-R$libdir'
18877         hardcode_shlibpath_var_CXX=no
18878         case $host_os in
18879           solaris2.[0-5] | solaris2.[0-5].*) ;;
18880           *)
18881             # The C++ compiler is used as linker so we must use $wl
18882             # flag to pass the commands to the underlying system
18883             # linker. We must also pass each convience library through
18884             # to the system linker between allextract/defaultextract.
18885             # The C++ compiler will combine linker options so we
18886             # cannot just pass the convience library names through
18887             # without $wl.
18888             # Supported since Solaris 2.6 (maybe 2.5.1?)
18889             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'
18890             ;;
18891         esac
18892         link_all_deplibs_CXX=yes
18893
18894         output_verbose_link_cmd='echo'
18895
18896         # Archives containing C++ object files must be created using
18897         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18898         # necessary to make sure instantiated templates are included
18899         # in the archive.
18900         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18901         ;;
18902       gcx*)
18903         # Green Hills C++ Compiler
18904         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18905
18906         # The C++ compiler must be used to create the archive.
18907         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18908         ;;
18909       *)
18910         # GNU C++ compiler with Solaris linker
18911         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18912           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18913           if $CC --version | grep -v '^2\.7' > /dev/null; then
18914             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18915             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18916                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18917
18918             # Commands to make compiler produce verbose output that lists
18919             # what "hidden" libraries, object files and flags are used when
18920             # linking a shared library.
18921             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18922           else
18923             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18924             # platform.
18925             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18926             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18927                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18928
18929             # Commands to make compiler produce verbose output that lists
18930             # what "hidden" libraries, object files and flags are used when
18931             # linking a shared library.
18932             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18933           fi
18934
18935           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18936         fi
18937         ;;
18938     esac
18939     ;;
18940   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18941     no_undefined_flag_CXX='${wl}-z,text'
18942     archive_cmds_need_lc_CXX=no
18943     hardcode_shlibpath_var_CXX=no
18944     runpath_var='LD_RUN_PATH'
18945
18946     case $cc_basename in
18947       CC*)
18948         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18949         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18950         ;;
18951       *)
18952         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18953         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18954         ;;
18955     esac
18956     ;;
18957   sysv5* | sco3.2v5* | sco5v6*)
18958     # Note: We can NOT use -z defs as we might desire, because we do not
18959     # link with -lc, and that would cause any symbols used from libc to
18960     # always be unresolved, which means just about no library would
18961     # ever link correctly.  If we're not using GNU ld we use -z text
18962     # though, which does catch some bad symbols but isn't as heavy-handed
18963     # as -z defs.
18964     # For security reasons, it is highly recommended that you always
18965     # use absolute paths for naming shared libraries, and exclude the
18966     # DT_RUNPATH tag from executables and libraries.  But doing so
18967     # requires that you compile everything twice, which is a pain.
18968     # So that behaviour is only enabled if SCOABSPATH is set to a
18969     # non-empty value in the environment.  Most likely only useful for
18970     # creating official distributions of packages.
18971     # This is a hack until libtool officially supports absolute path
18972     # names for shared libraries.
18973     no_undefined_flag_CXX='${wl}-z,text'
18974     allow_undefined_flag_CXX='${wl}-z,nodefs'
18975     archive_cmds_need_lc_CXX=no
18976     hardcode_shlibpath_var_CXX=no
18977     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18978     hardcode_libdir_separator_CXX=':'
18979     link_all_deplibs_CXX=yes
18980     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18981     runpath_var='LD_RUN_PATH'
18982
18983     case $cc_basename in
18984       CC*)
18985         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18986         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18987         ;;
18988       *)
18989         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18990         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18991         ;;
18992     esac
18993     ;;
18994   tandem*)
18995     case $cc_basename in
18996       NCC*)
18997         # NonStop-UX NCC 3.20
18998         # FIXME: insert proper C++ library support
18999         ld_shlibs_CXX=no
19000         ;;
19001       *)
19002         # FIXME: insert proper C++ library support
19003         ld_shlibs_CXX=no
19004         ;;
19005     esac
19006     ;;
19007   vxworks*)
19008     # FIXME: insert proper C++ library support
19009     ld_shlibs_CXX=no
19010     ;;
19011   *)
19012     # FIXME: insert proper C++ library support
19013     ld_shlibs_CXX=no
19014     ;;
19015 esac
19016 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19017 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19018 test "$ld_shlibs_CXX" = no && can_build_shared=no
19019
19020 GCC_CXX="$GXX"
19021 LD_CXX="$LD"
19022
19023
19024 cat > conftest.$ac_ext <<EOF
19025 class Foo
19026 {
19027 public:
19028   Foo (void) { a = 0; }
19029 private:
19030   int a;
19031 };
19032 EOF
19033
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035   (eval $ac_compile) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; then
19039   # Parse the compiler output and extract the necessary
19040   # objects, libraries and library flags.
19041
19042   # Sentinel used to keep track of whether or not we are before
19043   # the conftest object file.
19044   pre_test_object_deps_done=no
19045
19046   # The `*' in the case matches for architectures that use `case' in
19047   # $output_verbose_cmd can trigger glob expansion during the loop
19048   # eval without this substitution.
19049   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19050
19051   for p in `eval $output_verbose_link_cmd`; do
19052     case $p in
19053
19054     -L* | -R* | -l*)
19055        # Some compilers place space between "-{L,R}" and the path.
19056        # Remove the space.
19057        if test $p = "-L" \
19058           || test $p = "-R"; then
19059          prev=$p
19060          continue
19061        else
19062          prev=
19063        fi
19064
19065        if test "$pre_test_object_deps_done" = no; then
19066          case $p in
19067          -L* | -R*)
19068            # Internal compiler library paths should come after those
19069            # provided the user.  The postdeps already come after the
19070            # user supplied libs so there is no need to process them.
19071            if test -z "$compiler_lib_search_path_CXX"; then
19072              compiler_lib_search_path_CXX="${prev}${p}"
19073            else
19074              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19075            fi
19076            ;;
19077          # The "-l" case would never come before the object being
19078          # linked, so don't bother handling this case.
19079          esac
19080        else
19081          if test -z "$postdeps_CXX"; then
19082            postdeps_CXX="${prev}${p}"
19083          else
19084            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19085          fi
19086        fi
19087        ;;
19088
19089     *.$objext)
19090        # This assumes that the test object file only shows up
19091        # once in the compiler output.
19092        if test "$p" = "conftest.$objext"; then
19093          pre_test_object_deps_done=yes
19094          continue
19095        fi
19096
19097        if test "$pre_test_object_deps_done" = no; then
19098          if test -z "$predep_objects_CXX"; then
19099            predep_objects_CXX="$p"
19100          else
19101            predep_objects_CXX="$predep_objects_CXX $p"
19102          fi
19103        else
19104          if test -z "$postdep_objects_CXX"; then
19105            postdep_objects_CXX="$p"
19106          else
19107            postdep_objects_CXX="$postdep_objects_CXX $p"
19108          fi
19109        fi
19110        ;;
19111
19112     *) ;; # Ignore the rest.
19113
19114     esac
19115   done
19116
19117   # Clean up.
19118   rm -f a.out a.exe
19119 else
19120   echo "libtool.m4: error: problem compiling CXX test program"
19121 fi
19122
19123 $rm -f confest.$objext
19124
19125 # PORTME: override above test on systems where it is broken
19126 case $host_os in
19127 interix3*)
19128   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19129   # hack all around it, let's just trust "g++" to DTRT.
19130   predep_objects_CXX=
19131   postdep_objects_CXX=
19132   postdeps_CXX=
19133   ;;
19134
19135 solaris*)
19136   case $cc_basename in
19137   CC*)
19138     # Adding this requires a known-good setup of shared libraries for
19139     # Sun compiler versions before 5.6, else PIC objects from an old
19140     # archive will be linked into the output, leading to subtle bugs.
19141     postdeps_CXX='-lCstd -lCrun'
19142     ;;
19143   esac
19144   ;;
19145 esac
19146
19147
19148 case " $postdeps_CXX " in
19149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19150 esac
19151
19152 lt_prog_compiler_wl_CXX=
19153 lt_prog_compiler_pic_CXX=
19154 lt_prog_compiler_static_CXX=
19155
19156 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19158
19159   # C++ specific cases for pic, static, wl, etc.
19160   if test "$GXX" = yes; then
19161     lt_prog_compiler_wl_CXX='-Wl,'
19162     lt_prog_compiler_static_CXX='-static'
19163
19164     case $host_os in
19165     aix*)
19166       # All AIX code is PIC.
19167       if test "$host_cpu" = ia64; then
19168         # AIX 5 now supports IA64 processor
19169         lt_prog_compiler_static_CXX='-Bstatic'
19170       fi
19171       ;;
19172     amigaos*)
19173       # FIXME: we need at least 68020 code to build shared libraries, but
19174       # adding the `-m68020' flag to GCC prevents building anything better,
19175       # like `-m68040'.
19176       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19177       ;;
19178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19179       # PIC is the default for these OSes.
19180       ;;
19181     mingw* | os2* | pw32*)
19182       # This hack is so that the source file can tell whether it is being
19183       # built for inclusion in a dll (and should export symbols for example).
19184       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19185       ;;
19186     darwin* | rhapsody*)
19187       # PIC is the default on this platform
19188       # Common symbols not allowed in MH_DYLIB files
19189       lt_prog_compiler_pic_CXX='-fno-common'
19190       ;;
19191     *djgpp*)
19192       # DJGPP does not support shared libraries at all
19193       lt_prog_compiler_pic_CXX=
19194       ;;
19195     interix3*)
19196       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19197       # Instead, we relocate shared libraries at runtime.
19198       ;;
19199     sysv4*MP*)
19200       if test -d /usr/nec; then
19201         lt_prog_compiler_pic_CXX=-Kconform_pic
19202       fi
19203       ;;
19204     hpux*)
19205       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19206       # not for PA HP-UX.
19207       case $host_cpu in
19208       hppa*64*|ia64*)
19209         ;;
19210       *)
19211         lt_prog_compiler_pic_CXX='-fPIC'
19212         ;;
19213       esac
19214       ;;
19215     *)
19216       lt_prog_compiler_pic_CXX='-fPIC'
19217       ;;
19218     esac
19219   else
19220     case $host_os in
19221       aix4* | aix5*)
19222         # All AIX code is PIC.
19223         if test "$host_cpu" = ia64; then
19224           # AIX 5 now supports IA64 processor
19225           lt_prog_compiler_static_CXX='-Bstatic'
19226         else
19227           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19228         fi
19229         ;;
19230       chorus*)
19231         case $cc_basename in
19232         cxch68*)
19233           # Green Hills C++ Compiler
19234           # _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"
19235           ;;
19236         esac
19237         ;;
19238        darwin*)
19239          # PIC is the default on this platform
19240          # Common symbols not allowed in MH_DYLIB files
19241          case $cc_basename in
19242            xlc*)
19243            lt_prog_compiler_pic_CXX='-qnocommon'
19244            lt_prog_compiler_wl_CXX='-Wl,'
19245            ;;
19246          esac
19247        ;;
19248       dgux*)
19249         case $cc_basename in
19250           ec++*)
19251             lt_prog_compiler_pic_CXX='-KPIC'
19252             ;;
19253           ghcx*)
19254             # Green Hills C++ Compiler
19255             lt_prog_compiler_pic_CXX='-pic'
19256             ;;
19257           *)
19258             ;;
19259         esac
19260         ;;
19261       freebsd* | kfreebsd*-gnu | dragonfly*)
19262         # FreeBSD uses GNU C++
19263         ;;
19264       hpux9* | hpux10* | hpux11*)
19265         case $cc_basename in
19266           CC*)
19267             lt_prog_compiler_wl_CXX='-Wl,'
19268             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19269             if test "$host_cpu" != ia64; then
19270               lt_prog_compiler_pic_CXX='+Z'
19271             fi
19272             ;;
19273           aCC*)
19274             lt_prog_compiler_wl_CXX='-Wl,'
19275             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19276             case $host_cpu in
19277             hppa*64*|ia64*)
19278               # +Z the default
19279               ;;
19280             *)
19281               lt_prog_compiler_pic_CXX='+Z'
19282               ;;
19283             esac
19284             ;;
19285           *)
19286             ;;
19287         esac
19288         ;;
19289       interix*)
19290         # This is c89, which is MS Visual C++ (no shared libs)
19291         # Anyone wants to do a port?
19292         ;;
19293       irix5* | irix6* | nonstopux*)
19294         case $cc_basename in
19295           CC*)
19296             lt_prog_compiler_wl_CXX='-Wl,'
19297             lt_prog_compiler_static_CXX='-non_shared'
19298             # CC pic flag -KPIC is the default.
19299             ;;
19300           *)
19301             ;;
19302         esac
19303         ;;
19304       linux*)
19305         case $cc_basename in
19306           KCC*)
19307             # KAI C++ Compiler
19308             lt_prog_compiler_wl_CXX='--backend -Wl,'
19309             lt_prog_compiler_pic_CXX='-fPIC'
19310             ;;
19311           icpc* | ecpc*)
19312             # Intel C++
19313             lt_prog_compiler_wl_CXX='-Wl,'
19314             lt_prog_compiler_pic_CXX='-KPIC'
19315             lt_prog_compiler_static_CXX='-static'
19316             ;;
19317           pgCC*)
19318             # Portland Group C++ compiler.
19319             lt_prog_compiler_wl_CXX='-Wl,'
19320             lt_prog_compiler_pic_CXX='-fpic'
19321             lt_prog_compiler_static_CXX='-Bstatic'
19322             ;;
19323           cxx*)
19324             # Compaq C++
19325             # Make sure the PIC flag is empty.  It appears that all Alpha
19326             # Linux and Compaq Tru64 Unix objects are PIC.
19327             lt_prog_compiler_pic_CXX=
19328             lt_prog_compiler_static_CXX='-non_shared'
19329             ;;
19330           *)
19331             ;;
19332         esac
19333         ;;
19334       lynxos*)
19335         ;;
19336       m88k*)
19337         ;;
19338       mvs*)
19339         case $cc_basename in
19340           cxx*)
19341             lt_prog_compiler_pic_CXX='-W c,exportall'
19342             ;;
19343           *)
19344             ;;
19345         esac
19346         ;;
19347       netbsd*)
19348         ;;
19349       osf3* | osf4* | osf5*)
19350         case $cc_basename in
19351           KCC*)
19352             lt_prog_compiler_wl_CXX='--backend -Wl,'
19353             ;;
19354           RCC*)
19355             # Rational C++ 2.4.1
19356             lt_prog_compiler_pic_CXX='-pic'
19357             ;;
19358           cxx*)
19359             # Digital/Compaq C++
19360             lt_prog_compiler_wl_CXX='-Wl,'
19361             # Make sure the PIC flag is empty.  It appears that all Alpha
19362             # Linux and Compaq Tru64 Unix objects are PIC.
19363             lt_prog_compiler_pic_CXX=
19364             lt_prog_compiler_static_CXX='-non_shared'
19365             ;;
19366           *)
19367             ;;
19368         esac
19369         ;;
19370       psos*)
19371         ;;
19372       solaris*)
19373         case $cc_basename in
19374           CC*)
19375             # Sun C++ 4.2, 5.x and Centerline C++
19376             lt_prog_compiler_pic_CXX='-KPIC'
19377             lt_prog_compiler_static_CXX='-Bstatic'
19378             lt_prog_compiler_wl_CXX='-Qoption ld '
19379             ;;
19380           gcx*)
19381             # Green Hills C++ Compiler
19382             lt_prog_compiler_pic_CXX='-PIC'
19383             ;;
19384           *)
19385             ;;
19386         esac
19387         ;;
19388       sunos4*)
19389         case $cc_basename in
19390           CC*)
19391             # Sun C++ 4.x
19392             lt_prog_compiler_pic_CXX='-pic'
19393             lt_prog_compiler_static_CXX='-Bstatic'
19394             ;;
19395           lcc*)
19396             # Lucid
19397             lt_prog_compiler_pic_CXX='-pic'
19398             ;;
19399           *)
19400             ;;
19401         esac
19402         ;;
19403       tandem*)
19404         case $cc_basename in
19405           NCC*)
19406             # NonStop-UX NCC 3.20
19407             lt_prog_compiler_pic_CXX='-KPIC'
19408             ;;
19409           *)
19410             ;;
19411         esac
19412         ;;
19413       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19414         case $cc_basename in
19415           CC*)
19416             lt_prog_compiler_wl_CXX='-Wl,'
19417             lt_prog_compiler_pic_CXX='-KPIC'
19418             lt_prog_compiler_static_CXX='-Bstatic'
19419             ;;
19420         esac
19421         ;;
19422       vxworks*)
19423         ;;
19424       *)
19425         lt_prog_compiler_can_build_shared_CXX=no
19426         ;;
19427     esac
19428   fi
19429
19430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19432
19433 #
19434 # Check to make sure the PIC flag actually works.
19435 #
19436 if test -n "$lt_prog_compiler_pic_CXX"; then
19437
19438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19441   echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443   lt_prog_compiler_pic_works_CXX=no
19444   ac_outfile=conftest.$ac_objext
19445    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19446    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19447    # Insert the option either (1) after the last *FLAGS variable, or
19448    # (2) before a word containing "conftest.", or (3) at the end.
19449    # Note that $ac_compile itself does not contain backslashes and begins
19450    # with a dollar sign (not a hyphen), so the echo should work correctly.
19451    # The option is referenced via a variable to avoid confusing sed.
19452    lt_compile=`echo "$ac_compile" | $SED \
19453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19455    -e 's:$: $lt_compiler_flag:'`
19456    (eval echo "\"\$as_me:19456: $lt_compile\"" >&5)
19457    (eval "$lt_compile" 2>conftest.err)
19458    ac_status=$?
19459    cat conftest.err >&5
19460    echo "$as_me:19460: \$? = $ac_status" >&5
19461    if (exit $ac_status) && test -s "$ac_outfile"; then
19462      # The compiler can only warn and ignore the option if not recognized
19463      # So say no if there are warnings other than the usual output.
19464      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19465      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19466      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19467        lt_prog_compiler_pic_works_CXX=yes
19468      fi
19469    fi
19470    $rm conftest*
19471
19472 fi
19473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19475
19476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19477     case $lt_prog_compiler_pic_CXX in
19478      "" | " "*) ;;
19479      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19480      esac
19481 else
19482     lt_prog_compiler_pic_CXX=
19483      lt_prog_compiler_can_build_shared_CXX=no
19484 fi
19485
19486 fi
19487 case $host_os in
19488   # For platforms which do not support PIC, -DPIC is meaningless:
19489   *djgpp*)
19490     lt_prog_compiler_pic_CXX=
19491     ;;
19492   *)
19493     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19494     ;;
19495 esac
19496
19497 #
19498 # Check to make sure the static flag actually works.
19499 #
19500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   lt_prog_compiler_static_works_CXX=no
19507    save_LDFLAGS="$LDFLAGS"
19508    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19509    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19510    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19511      # The linker can only warn and ignore the option if not recognized
19512      # So say no if there are warnings
19513      if test -s conftest.err; then
19514        # Append any errors to the config.log.
19515        cat conftest.err 1>&5
19516        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19517        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19518        if diff conftest.exp conftest.er2 >/dev/null; then
19519          lt_prog_compiler_static_works_CXX=yes
19520        fi
19521      else
19522        lt_prog_compiler_static_works_CXX=yes
19523      fi
19524    fi
19525    $rm conftest*
19526    LDFLAGS="$save_LDFLAGS"
19527
19528 fi
19529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19531
19532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19533     :
19534 else
19535     lt_prog_compiler_static_CXX=
19536 fi
19537
19538
19539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544   lt_cv_prog_compiler_c_o_CXX=no
19545    $rm -r conftest 2>/dev/null
19546    mkdir conftest
19547    cd conftest
19548    mkdir out
19549    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19550
19551    lt_compiler_flag="-o out/conftest2.$ac_objext"
19552    # Insert the option either (1) after the last *FLAGS variable, or
19553    # (2) before a word containing "conftest.", or (3) at the end.
19554    # Note that $ac_compile itself does not contain backslashes and begins
19555    # with a dollar sign (not a hyphen), so the echo should work correctly.
19556    lt_compile=`echo "$ac_compile" | $SED \
19557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19559    -e 's:$: $lt_compiler_flag:'`
19560    (eval echo "\"\$as_me:19560: $lt_compile\"" >&5)
19561    (eval "$lt_compile" 2>out/conftest.err)
19562    ac_status=$?
19563    cat out/conftest.err >&5
19564    echo "$as_me:19564: \$? = $ac_status" >&5
19565    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19566    then
19567      # The compiler can only warn and ignore the option if not recognized
19568      # So say no if there are warnings
19569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19570      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19571      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19572        lt_cv_prog_compiler_c_o_CXX=yes
19573      fi
19574    fi
19575    chmod u+w . 2>&5
19576    $rm conftest*
19577    # SGI C++ compiler will create directory out/ii_files/ for
19578    # template instantiation
19579    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19580    $rm out/* && rmdir out
19581    cd ..
19582    rmdir conftest
19583    $rm conftest*
19584
19585 fi
19586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19588
19589
19590 hard_links="nottested"
19591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19592   # do not overwrite the value of need_locks provided by the user
19593   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19595   hard_links=yes
19596   $rm conftest*
19597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19598   touch conftest.a
19599   ln conftest.a conftest.b 2>&5 || hard_links=no
19600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19601   { echo "$as_me:$LINENO: result: $hard_links" >&5
19602 echo "${ECHO_T}$hard_links" >&6; }
19603   if test "$hard_links" = no; then
19604     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19606     need_locks=warn
19607   fi
19608 else
19609   need_locks=no
19610 fi
19611
19612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19614
19615   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19616   case $host_os in
19617   aix4* | aix5*)
19618     # If we're using GNU nm, then we don't want the "-C" option.
19619     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19620     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19621       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'
19622     else
19623       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'
19624     fi
19625     ;;
19626   pw32*)
19627     export_symbols_cmds_CXX="$ltdll_cmds"
19628   ;;
19629   cygwin* | mingw*)
19630     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'
19631   ;;
19632   *)
19633     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19634   ;;
19635   esac
19636
19637 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19638 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19639 test "$ld_shlibs_CXX" = no && can_build_shared=no
19640
19641 #
19642 # Do we need to explicitly link libc?
19643 #
19644 case "x$archive_cmds_need_lc_CXX" in
19645 x|xyes)
19646   # Assume -lc should be added
19647   archive_cmds_need_lc_CXX=yes
19648
19649   if test "$enable_shared" = yes && test "$GCC" = yes; then
19650     case $archive_cmds_CXX in
19651     *'~'*)
19652       # FIXME: we may have to deal with multi-command sequences.
19653       ;;
19654     '$CC '*)
19655       # Test whether the compiler implicitly links with -lc since on some
19656       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19657       # to ld, don't add -lc before -lgcc.
19658       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19660       $rm conftest*
19661       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19662
19663       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664   (eval $ac_compile) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } 2>conftest.err; then
19668         soname=conftest
19669         lib=conftest
19670         libobjs=conftest.$ac_objext
19671         deplibs=
19672         wl=$lt_prog_compiler_wl_CXX
19673         pic_flag=$lt_prog_compiler_pic_CXX
19674         compiler_flags=-v
19675         linker_flags=-v
19676         verstring=
19677         output_objdir=.
19678         libname=conftest
19679         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19680         allow_undefined_flag_CXX=
19681         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19682   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }
19686         then
19687           archive_cmds_need_lc_CXX=no
19688         else
19689           archive_cmds_need_lc_CXX=yes
19690         fi
19691         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19692       else
19693         cat conftest.err 1>&5
19694       fi
19695       $rm conftest*
19696       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19698       ;;
19699     esac
19700   fi
19701   ;;
19702 esac
19703
19704 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19706 library_names_spec=
19707 libname_spec='lib$name'
19708 soname_spec=
19709 shrext_cmds=".so"
19710 postinstall_cmds=
19711 postuninstall_cmds=
19712 finish_cmds=
19713 finish_eval=
19714 shlibpath_var=
19715 shlibpath_overrides_runpath=unknown
19716 version_type=none
19717 dynamic_linker="$host_os ld.so"
19718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19719 if test "$GCC" = yes; then
19720   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19721   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19722     # if the path contains ";" then we assume it to be the separator
19723     # otherwise default to the standard path separator (i.e. ":") - it is
19724     # assumed that no part of a normal pathname contains ";" but that should
19725     # okay in the real world where ";" in dirpaths is itself problematic.
19726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19727   else
19728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19729   fi
19730 else
19731   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19732 fi
19733 need_lib_prefix=unknown
19734 hardcode_into_libs=no
19735
19736 # when you set need_version to no, make sure it does not cause -set_version
19737 # flags to be left without arguments
19738 need_version=unknown
19739
19740 case $host_os in
19741 aix3*)
19742   version_type=linux
19743   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19744   shlibpath_var=LIBPATH
19745
19746   # AIX 3 has no versioning support, so we append a major version to the name.
19747   soname_spec='${libname}${release}${shared_ext}$major'
19748   ;;
19749
19750 aix4* | aix5*)
19751   version_type=linux
19752   need_lib_prefix=no
19753   need_version=no
19754   hardcode_into_libs=yes
19755   if test "$host_cpu" = ia64; then
19756     # AIX 5 supports IA64
19757     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19758     shlibpath_var=LD_LIBRARY_PATH
19759   else
19760     # With GCC up to 2.95.x, collect2 would create an import file
19761     # for dependence libraries.  The import file would start with
19762     # the line `#! .'.  This would cause the generated library to
19763     # depend on `.', always an invalid library.  This was fixed in
19764     # development snapshots of GCC prior to 3.0.
19765     case $host_os in
19766       aix4 | aix4.[01] | aix4.[01].*)
19767       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19768            echo ' yes '
19769            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19770         :
19771       else
19772         can_build_shared=no
19773       fi
19774       ;;
19775     esac
19776     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19777     # soname into executable. Probably we can add versioning support to
19778     # collect2, so additional links can be useful in future.
19779     if test "$aix_use_runtimelinking" = yes; then
19780       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19781       # instead of lib<name>.a to let people know that these are not
19782       # typical AIX shared libraries.
19783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784     else
19785       # We preserve .a as extension for shared libraries through AIX4.2
19786       # and later when we are not doing run time linking.
19787       library_names_spec='${libname}${release}.a $libname.a'
19788       soname_spec='${libname}${release}${shared_ext}$major'
19789     fi
19790     shlibpath_var=LIBPATH
19791   fi
19792   ;;
19793
19794 amigaos*)
19795   library_names_spec='$libname.ixlibrary $libname.a'
19796   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19797   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'
19798   ;;
19799
19800 beos*)
19801   library_names_spec='${libname}${shared_ext}'
19802   dynamic_linker="$host_os ld.so"
19803   shlibpath_var=LIBRARY_PATH
19804   ;;
19805
19806 bsdi[45]*)
19807   version_type=linux
19808   need_version=no
19809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810   soname_spec='${libname}${release}${shared_ext}$major'
19811   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19812   shlibpath_var=LD_LIBRARY_PATH
19813   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19814   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19815   # the default ld.so.conf also contains /usr/contrib/lib and
19816   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19817   # libtool to hard-code these into programs
19818   ;;
19819
19820 cygwin* | mingw* | pw32*)
19821   version_type=windows
19822   shrext_cmds=".dll"
19823   need_version=no
19824   need_lib_prefix=no
19825
19826   case $GCC,$host_os in
19827   yes,cygwin* | yes,mingw* | yes,pw32*)
19828     library_names_spec='$libname.dll.a'
19829     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19830     postinstall_cmds='base_file=`basename \${file}`~
19831       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19832       dldir=$destdir/`dirname \$dlpath`~
19833       test -d \$dldir || mkdir -p \$dldir~
19834       $install_prog $dir/$dlname \$dldir/$dlname~
19835       chmod a+x \$dldir/$dlname'
19836     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19837       dlpath=$dir/\$dldll~
19838        $rm \$dlpath'
19839     shlibpath_overrides_runpath=yes
19840
19841     case $host_os in
19842     cygwin*)
19843       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19844       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19845       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19846       ;;
19847     mingw*)
19848       # MinGW DLLs use traditional 'lib' prefix
19849       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19850       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19851       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19852         # It is most probably a Windows format PATH printed by
19853         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19854         # path with ; separators, and with drive letters. We can handle the
19855         # drive letters (cygwin fileutils understands them), so leave them,
19856         # especially as we might pass files found there to a mingw objdump,
19857         # which wouldn't understand a cygwinified path. Ahh.
19858         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19859       else
19860         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19861       fi
19862       ;;
19863     pw32*)
19864       # pw32 DLLs use 'pw' prefix rather than 'lib'
19865       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19866       ;;
19867     esac
19868     ;;
19869
19870   *)
19871     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19872     ;;
19873   esac
19874   dynamic_linker='Win32 ld.exe'
19875   # FIXME: first we should search . and the directory the executable is in
19876   shlibpath_var=PATH
19877   ;;
19878
19879 darwin* | rhapsody*)
19880   dynamic_linker="$host_os dyld"
19881   version_type=darwin
19882   need_lib_prefix=no
19883   need_version=no
19884   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19885   soname_spec='${libname}${release}${major}$shared_ext'
19886   shlibpath_overrides_runpath=yes
19887   shlibpath_var=DYLD_LIBRARY_PATH
19888   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19889   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19890   if test "$GCC" = yes; then
19891     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"`
19892   else
19893     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19894   fi
19895   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19896   ;;
19897
19898 dgux*)
19899   version_type=linux
19900   need_lib_prefix=no
19901   need_version=no
19902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19903   soname_spec='${libname}${release}${shared_ext}$major'
19904   shlibpath_var=LD_LIBRARY_PATH
19905   ;;
19906
19907 freebsd1*)
19908   dynamic_linker=no
19909   ;;
19910
19911 kfreebsd*-gnu)
19912   version_type=linux
19913   need_lib_prefix=no
19914   need_version=no
19915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19916   soname_spec='${libname}${release}${shared_ext}$major'
19917   shlibpath_var=LD_LIBRARY_PATH
19918   shlibpath_overrides_runpath=no
19919   hardcode_into_libs=yes
19920   dynamic_linker='GNU ld.so'
19921   ;;
19922
19923 freebsd* | dragonfly*)
19924   # DragonFly does not have aout.  When/if they implement a new
19925   # versioning mechanism, adjust this.
19926   if test -x /usr/bin/objformat; then
19927     objformat=`/usr/bin/objformat`
19928   else
19929     case $host_os in
19930     freebsd[123]*) objformat=aout ;;
19931     *) objformat=elf ;;
19932     esac
19933   fi
19934   version_type=freebsd-$objformat
19935   case $version_type in
19936     freebsd-elf*)
19937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19938       need_version=no
19939       need_lib_prefix=no
19940       ;;
19941     freebsd-*)
19942       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19943       need_version=yes
19944       ;;
19945   esac
19946   shlibpath_var=LD_LIBRARY_PATH
19947   case $host_os in
19948   freebsd2*)
19949     shlibpath_overrides_runpath=yes
19950     ;;
19951   freebsd3.[01]* | freebsdelf3.[01]*)
19952     shlibpath_overrides_runpath=yes
19953     hardcode_into_libs=yes
19954     ;;
19955   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19956   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19957     shlibpath_overrides_runpath=no
19958     hardcode_into_libs=yes
19959     ;;
19960   freebsd*) # from 4.6 on
19961     shlibpath_overrides_runpath=yes
19962     hardcode_into_libs=yes
19963     ;;
19964   esac
19965   ;;
19966
19967 gnu*)
19968   version_type=linux
19969   need_lib_prefix=no
19970   need_version=no
19971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19972   soname_spec='${libname}${release}${shared_ext}$major'
19973   shlibpath_var=LD_LIBRARY_PATH
19974   hardcode_into_libs=yes
19975   ;;
19976
19977 hpux9* | hpux10* | hpux11*)
19978   # Give a soname corresponding to the major version so that dld.sl refuses to
19979   # link against other versions.
19980   version_type=sunos
19981   need_lib_prefix=no
19982   need_version=no
19983   case $host_cpu in
19984   ia64*)
19985     shrext_cmds='.so'
19986     hardcode_into_libs=yes
19987     dynamic_linker="$host_os dld.so"
19988     shlibpath_var=LD_LIBRARY_PATH
19989     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19991     soname_spec='${libname}${release}${shared_ext}$major'
19992     if test "X$HPUX_IA64_MODE" = X32; then
19993       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19994     else
19995       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19996     fi
19997     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19998     ;;
19999    hppa*64*)
20000      shrext_cmds='.sl'
20001      hardcode_into_libs=yes
20002      dynamic_linker="$host_os dld.sl"
20003      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20004      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006      soname_spec='${libname}${release}${shared_ext}$major'
20007      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20008      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20009      ;;
20010    *)
20011     shrext_cmds='.sl'
20012     dynamic_linker="$host_os dld.sl"
20013     shlibpath_var=SHLIB_PATH
20014     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20015     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016     soname_spec='${libname}${release}${shared_ext}$major'
20017     ;;
20018   esac
20019   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20020   postinstall_cmds='chmod 555 $lib'
20021   ;;
20022
20023 interix3*)
20024   version_type=linux
20025   need_lib_prefix=no
20026   need_version=no
20027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20028   soname_spec='${libname}${release}${shared_ext}$major'
20029   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20030   shlibpath_var=LD_LIBRARY_PATH
20031   shlibpath_overrides_runpath=no
20032   hardcode_into_libs=yes
20033   ;;
20034
20035 irix5* | irix6* | nonstopux*)
20036   case $host_os in
20037     nonstopux*) version_type=nonstopux ;;
20038     *)
20039         if test "$lt_cv_prog_gnu_ld" = yes; then
20040                 version_type=linux
20041         else
20042                 version_type=irix
20043         fi ;;
20044   esac
20045   need_lib_prefix=no
20046   need_version=no
20047   soname_spec='${libname}${release}${shared_ext}$major'
20048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20049   case $host_os in
20050   irix5* | nonstopux*)
20051     libsuff= shlibsuff=
20052     ;;
20053   *)
20054     case $LD in # libtool.m4 will add one of these switches to LD
20055     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20056       libsuff= shlibsuff= libmagic=32-bit;;
20057     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20058       libsuff=32 shlibsuff=N32 libmagic=N32;;
20059     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20060       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20061     *) libsuff= shlibsuff= libmagic=never-match;;
20062     esac
20063     ;;
20064   esac
20065   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20066   shlibpath_overrides_runpath=no
20067   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20068   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20069   hardcode_into_libs=yes
20070   ;;
20071
20072 # No shared lib support for Linux oldld, aout, or coff.
20073 linux*oldld* | linux*aout* | linux*coff*)
20074   dynamic_linker=no
20075   ;;
20076
20077 # This must be Linux ELF.
20078 linux*)
20079   version_type=linux
20080   need_lib_prefix=no
20081   need_version=no
20082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083   soname_spec='${libname}${release}${shared_ext}$major'
20084   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20085   shlibpath_var=LD_LIBRARY_PATH
20086   shlibpath_overrides_runpath=no
20087   # This implies no fast_install, which is unacceptable.
20088   # Some rework will be needed to allow for fast_install
20089   # before this can be enabled.
20090   hardcode_into_libs=yes
20091
20092   # Append ld.so.conf contents to the search path
20093   if test -f /etc/ld.so.conf; then
20094     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' ' '`
20095     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20096   fi
20097
20098   # We used to test for /lib/ld.so.1 and disable shared libraries on
20099   # powerpc, because MkLinux only supported shared libraries with the
20100   # GNU dynamic linker.  Since this was broken with cross compilers,
20101   # most powerpc-linux boxes support dynamic linking these days and
20102   # people can always --disable-shared, the test was removed, and we
20103   # assume the GNU/Linux dynamic linker is in use.
20104   dynamic_linker='GNU/Linux ld.so'
20105   ;;
20106
20107 knetbsd*-gnu)
20108   version_type=linux
20109   need_lib_prefix=no
20110   need_version=no
20111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20112   soname_spec='${libname}${release}${shared_ext}$major'
20113   shlibpath_var=LD_LIBRARY_PATH
20114   shlibpath_overrides_runpath=no
20115   hardcode_into_libs=yes
20116   dynamic_linker='GNU ld.so'
20117   ;;
20118
20119 netbsd*)
20120   version_type=sunos
20121   need_lib_prefix=no
20122   need_version=no
20123   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20125     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20126     dynamic_linker='NetBSD (a.out) ld.so'
20127   else
20128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20129     soname_spec='${libname}${release}${shared_ext}$major'
20130     dynamic_linker='NetBSD ld.elf_so'
20131   fi
20132   shlibpath_var=LD_LIBRARY_PATH
20133   shlibpath_overrides_runpath=yes
20134   hardcode_into_libs=yes
20135   ;;
20136
20137 newsos6)
20138   version_type=linux
20139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140   shlibpath_var=LD_LIBRARY_PATH
20141   shlibpath_overrides_runpath=yes
20142   ;;
20143
20144 nto-qnx*)
20145   version_type=linux
20146   need_lib_prefix=no
20147   need_version=no
20148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20149   soname_spec='${libname}${release}${shared_ext}$major'
20150   shlibpath_var=LD_LIBRARY_PATH
20151   shlibpath_overrides_runpath=yes
20152   ;;
20153
20154 openbsd*)
20155   version_type=sunos
20156   sys_lib_dlsearch_path_spec="/usr/lib"
20157   need_lib_prefix=no
20158   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20159   case $host_os in
20160     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20161     *)                         need_version=no  ;;
20162   esac
20163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20165   shlibpath_var=LD_LIBRARY_PATH
20166   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20167     case $host_os in
20168       openbsd2.[89] | openbsd2.[89].*)
20169         shlibpath_overrides_runpath=no
20170         ;;
20171       *)
20172         shlibpath_overrides_runpath=yes
20173         ;;
20174       esac
20175   else
20176     shlibpath_overrides_runpath=yes
20177   fi
20178   ;;
20179
20180 os2*)
20181   libname_spec='$name'
20182   shrext_cmds=".dll"
20183   need_lib_prefix=no
20184   library_names_spec='$libname${shared_ext} $libname.a'
20185   dynamic_linker='OS/2 ld.exe'
20186   shlibpath_var=LIBPATH
20187   ;;
20188
20189 osf3* | osf4* | osf5*)
20190   version_type=osf
20191   need_lib_prefix=no
20192   need_version=no
20193   soname_spec='${libname}${release}${shared_ext}$major'
20194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195   shlibpath_var=LD_LIBRARY_PATH
20196   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20197   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20198   ;;
20199
20200 solaris*)
20201   version_type=linux
20202   need_lib_prefix=no
20203   need_version=no
20204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205   soname_spec='${libname}${release}${shared_ext}$major'
20206   shlibpath_var=LD_LIBRARY_PATH
20207   shlibpath_overrides_runpath=yes
20208   hardcode_into_libs=yes
20209   # ldd complains unless libraries are executable
20210   postinstall_cmds='chmod +x $lib'
20211   ;;
20212
20213 sunos4*)
20214   version_type=sunos
20215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20216   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20217   shlibpath_var=LD_LIBRARY_PATH
20218   shlibpath_overrides_runpath=yes
20219   if test "$with_gnu_ld" = yes; then
20220     need_lib_prefix=no
20221   fi
20222   need_version=yes
20223   ;;
20224
20225 sysv4 | sysv4.3*)
20226   version_type=linux
20227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228   soname_spec='${libname}${release}${shared_ext}$major'
20229   shlibpath_var=LD_LIBRARY_PATH
20230   case $host_vendor in
20231     sni)
20232       shlibpath_overrides_runpath=no
20233       need_lib_prefix=no
20234       export_dynamic_flag_spec='${wl}-Blargedynsym'
20235       runpath_var=LD_RUN_PATH
20236       ;;
20237     siemens)
20238       need_lib_prefix=no
20239       ;;
20240     motorola)
20241       need_lib_prefix=no
20242       need_version=no
20243       shlibpath_overrides_runpath=no
20244       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20245       ;;
20246   esac
20247   ;;
20248
20249 sysv4*MP*)
20250   if test -d /usr/nec ;then
20251     version_type=linux
20252     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20253     soname_spec='$libname${shared_ext}.$major'
20254     shlibpath_var=LD_LIBRARY_PATH
20255   fi
20256   ;;
20257
20258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20259   version_type=freebsd-elf
20260   need_lib_prefix=no
20261   need_version=no
20262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20263   soname_spec='${libname}${release}${shared_ext}$major'
20264   shlibpath_var=LD_LIBRARY_PATH
20265   hardcode_into_libs=yes
20266   if test "$with_gnu_ld" = yes; then
20267     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20268     shlibpath_overrides_runpath=no
20269   else
20270     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20271     shlibpath_overrides_runpath=yes
20272     case $host_os in
20273       sco3.2v5*)
20274         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20275         ;;
20276     esac
20277   fi
20278   sys_lib_dlsearch_path_spec='/usr/lib'
20279   ;;
20280
20281 uts4*)
20282   version_type=linux
20283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284   soname_spec='${libname}${release}${shared_ext}$major'
20285   shlibpath_var=LD_LIBRARY_PATH
20286   ;;
20287
20288 *)
20289   dynamic_linker=no
20290   ;;
20291 esac
20292 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20293 echo "${ECHO_T}$dynamic_linker" >&6; }
20294 test "$dynamic_linker" = no && can_build_shared=no
20295
20296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20297 if test "$GCC" = yes; then
20298   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20299 fi
20300
20301 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20303 hardcode_action_CXX=
20304 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20305    test -n "$runpath_var_CXX" || \
20306    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20307
20308   # We can hardcode non-existant directories.
20309   if test "$hardcode_direct_CXX" != no &&
20310      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20311      # have to relink, otherwise we might link with an installed library
20312      # when we should be linking with a yet-to-be-installed one
20313      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20314      test "$hardcode_minus_L_CXX" != no; then
20315     # Linking always hardcodes the temporary library directory.
20316     hardcode_action_CXX=relink
20317   else
20318     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20319     hardcode_action_CXX=immediate
20320   fi
20321 else
20322   # We cannot hardcode anything, or else we can only hardcode existing
20323   # directories.
20324   hardcode_action_CXX=unsupported
20325 fi
20326 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20327 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20328
20329 if test "$hardcode_action_CXX" = relink; then
20330   # Fast installation is not supported
20331   enable_fast_install=no
20332 elif test "$shlibpath_overrides_runpath" = yes ||
20333      test "$enable_shared" = no; then
20334   # Fast installation is not necessary
20335   enable_fast_install=needless
20336 fi
20337
20338
20339 # The else clause should only fire when bootstrapping the
20340 # libtool distribution, otherwise you forgot to ship ltmain.sh
20341 # with your package, and you will get complaints that there are
20342 # no rules to generate ltmain.sh.
20343 if test -f "$ltmain"; then
20344   # See if we are running on zsh, and set the options which allow our commands through
20345   # without removal of \ escapes.
20346   if test -n "${ZSH_VERSION+set}" ; then
20347     setopt NO_GLOB_SUBST
20348   fi
20349   # Now quote all the things that may contain metacharacters while being
20350   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20351   # variables and quote the copies for generation of the libtool script.
20352   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20353     SED SHELL STRIP \
20354     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20355     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20356     deplibs_check_method reload_flag reload_cmds need_locks \
20357     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20358     lt_cv_sys_global_symbol_to_c_name_address \
20359     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20360     old_postinstall_cmds old_postuninstall_cmds \
20361     compiler_CXX \
20362     CC_CXX \
20363     LD_CXX \
20364     lt_prog_compiler_wl_CXX \
20365     lt_prog_compiler_pic_CXX \
20366     lt_prog_compiler_static_CXX \
20367     lt_prog_compiler_no_builtin_flag_CXX \
20368     export_dynamic_flag_spec_CXX \
20369     thread_safe_flag_spec_CXX \
20370     whole_archive_flag_spec_CXX \
20371     enable_shared_with_static_runtimes_CXX \
20372     old_archive_cmds_CXX \
20373     old_archive_from_new_cmds_CXX \
20374     predep_objects_CXX \
20375     postdep_objects_CXX \
20376     predeps_CXX \
20377     postdeps_CXX \
20378     compiler_lib_search_path_CXX \
20379     archive_cmds_CXX \
20380     archive_expsym_cmds_CXX \
20381     postinstall_cmds_CXX \
20382     postuninstall_cmds_CXX \
20383     old_archive_from_expsyms_cmds_CXX \
20384     allow_undefined_flag_CXX \
20385     no_undefined_flag_CXX \
20386     export_symbols_cmds_CXX \
20387     hardcode_libdir_flag_spec_CXX \
20388     hardcode_libdir_flag_spec_ld_CXX \
20389     hardcode_libdir_separator_CXX \
20390     hardcode_automatic_CXX \
20391     module_cmds_CXX \
20392     module_expsym_cmds_CXX \
20393     lt_cv_prog_compiler_c_o_CXX \
20394     exclude_expsyms_CXX \
20395     include_expsyms_CXX; do
20396
20397     case $var in
20398     old_archive_cmds_CXX | \
20399     old_archive_from_new_cmds_CXX | \
20400     archive_cmds_CXX | \
20401     archive_expsym_cmds_CXX | \
20402     module_cmds_CXX | \
20403     module_expsym_cmds_CXX | \
20404     old_archive_from_expsyms_cmds_CXX | \
20405     export_symbols_cmds_CXX | \
20406     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20407     postinstall_cmds | postuninstall_cmds | \
20408     old_postinstall_cmds | old_postuninstall_cmds | \
20409     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20410       # Double-quote double-evaled strings.
20411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20412       ;;
20413     *)
20414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20415       ;;
20416     esac
20417   done
20418
20419   case $lt_echo in
20420   *'\$0 --fallback-echo"')
20421     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20422     ;;
20423   esac
20424
20425 cfgfile="$ofile"
20426
20427   cat <<__EOF__ >> "$cfgfile"
20428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20429
20430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431
20432 # Shell to use when invoking shell scripts.
20433 SHELL=$lt_SHELL
20434
20435 # Whether or not to build shared libraries.
20436 build_libtool_libs=$enable_shared
20437
20438 # Whether or not to build static libraries.
20439 build_old_libs=$enable_static
20440
20441 # Whether or not to add -lc for building shared libraries.
20442 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20443
20444 # Whether or not to disallow shared libs when runtime libs are static
20445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20446
20447 # Whether or not to optimize for fast installation.
20448 fast_install=$enable_fast_install
20449
20450 # The host system.
20451 host_alias=$host_alias
20452 host=$host
20453 host_os=$host_os
20454
20455 # The build system.
20456 build_alias=$build_alias
20457 build=$build
20458 build_os=$build_os
20459
20460 # An echo program that does not interpret backslashes.
20461 echo=$lt_echo
20462
20463 # The archiver.
20464 AR=$lt_AR
20465 AR_FLAGS=$lt_AR_FLAGS
20466
20467 # A C compiler.
20468 LTCC=$lt_LTCC
20469
20470 # LTCC compiler flags.
20471 LTCFLAGS=$lt_LTCFLAGS
20472
20473 # A language-specific compiler.
20474 CC=$lt_compiler_CXX
20475
20476 # Is the compiler the GNU C compiler?
20477 with_gcc=$GCC_CXX
20478
20479 # An ERE matcher.
20480 EGREP=$lt_EGREP
20481
20482 # The linker used to build libraries.
20483 LD=$lt_LD_CXX
20484
20485 # Whether we need hard or soft links.
20486 LN_S=$lt_LN_S
20487
20488 # A BSD-compatible nm program.
20489 NM=$lt_NM
20490
20491 # A symbol stripping program
20492 STRIP=$lt_STRIP
20493
20494 # Used to examine libraries when file_magic_cmd begins "file"
20495 MAGIC_CMD=$MAGIC_CMD
20496
20497 # Used on cygwin: DLL creation program.
20498 DLLTOOL="$DLLTOOL"
20499
20500 # Used on cygwin: object dumper.
20501 OBJDUMP="$OBJDUMP"
20502
20503 # Used on cygwin: assembler.
20504 AS="$AS"
20505
20506 # The name of the directory that contains temporary libtool files.
20507 objdir=$objdir
20508
20509 # How to create reloadable object files.
20510 reload_flag=$lt_reload_flag
20511 reload_cmds=$lt_reload_cmds
20512
20513 # How to pass a linker flag through the compiler.
20514 wl=$lt_lt_prog_compiler_wl_CXX
20515
20516 # Object file suffix (normally "o").
20517 objext="$ac_objext"
20518
20519 # Old archive suffix (normally "a").
20520 libext="$libext"
20521
20522 # Shared library suffix (normally ".so").
20523 shrext_cmds='$shrext_cmds'
20524
20525 # Executable file suffix (normally "").
20526 exeext="$exeext"
20527
20528 # Additional compiler flags for building library objects.
20529 pic_flag=$lt_lt_prog_compiler_pic_CXX
20530 pic_mode=$pic_mode
20531
20532 # What is the maximum length of a command?
20533 max_cmd_len=$lt_cv_sys_max_cmd_len
20534
20535 # Does compiler simultaneously support -c and -o options?
20536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20537
20538 # Must we lock files when doing compilation?
20539 need_locks=$lt_need_locks
20540
20541 # Do we need the lib prefix for modules?
20542 need_lib_prefix=$need_lib_prefix
20543
20544 # Do we need a version for libraries?
20545 need_version=$need_version
20546
20547 # Whether dlopen is supported.
20548 dlopen_support=$enable_dlopen
20549
20550 # Whether dlopen of programs is supported.
20551 dlopen_self=$enable_dlopen_self
20552
20553 # Whether dlopen of statically linked programs is supported.
20554 dlopen_self_static=$enable_dlopen_self_static
20555
20556 # Compiler flag to prevent dynamic linking.
20557 link_static_flag=$lt_lt_prog_compiler_static_CXX
20558
20559 # Compiler flag to turn off builtin functions.
20560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20561
20562 # Compiler flag to allow reflexive dlopens.
20563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20564
20565 # Compiler flag to generate shared objects directly from archives.
20566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20567
20568 # Compiler flag to generate thread-safe objects.
20569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20570
20571 # Library versioning type.
20572 version_type=$version_type
20573
20574 # Format of library name prefix.
20575 libname_spec=$lt_libname_spec
20576
20577 # List of archive names.  First name is the real one, the rest are links.
20578 # The last name is the one that the linker finds with -lNAME.
20579 library_names_spec=$lt_library_names_spec
20580
20581 # The coded name of the library, if different from the real name.
20582 soname_spec=$lt_soname_spec
20583
20584 # Commands used to build and install an old-style archive.
20585 RANLIB=$lt_RANLIB
20586 old_archive_cmds=$lt_old_archive_cmds_CXX
20587 old_postinstall_cmds=$lt_old_postinstall_cmds
20588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20589
20590 # Create an old-style archive from a shared archive.
20591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20592
20593 # Create a temporary old-style archive to link instead of a shared archive.
20594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20595
20596 # Commands used to build and install a shared archive.
20597 archive_cmds=$lt_archive_cmds_CXX
20598 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20599 postinstall_cmds=$lt_postinstall_cmds
20600 postuninstall_cmds=$lt_postuninstall_cmds
20601
20602 # Commands used to build a loadable module (assumed same as above if empty)
20603 module_cmds=$lt_module_cmds_CXX
20604 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20605
20606 # Commands to strip libraries.
20607 old_striplib=$lt_old_striplib
20608 striplib=$lt_striplib
20609
20610 # Dependencies to place before the objects being linked to create a
20611 # shared library.
20612 predep_objects=$lt_predep_objects_CXX
20613
20614 # Dependencies to place after the objects being linked to create a
20615 # shared library.
20616 postdep_objects=$lt_postdep_objects_CXX
20617
20618 # Dependencies to place before the objects being linked to create a
20619 # shared library.
20620 predeps=$lt_predeps_CXX
20621
20622 # Dependencies to place after the objects being linked to create a
20623 # shared library.
20624 postdeps=$lt_postdeps_CXX
20625
20626 # The library search path used internally by the compiler when linking
20627 # a shared library.
20628 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20629
20630 # Method to check whether dependent libraries are shared objects.
20631 deplibs_check_method=$lt_deplibs_check_method
20632
20633 # Command to use when deplibs_check_method == file_magic.
20634 file_magic_cmd=$lt_file_magic_cmd
20635
20636 # Flag that allows shared libraries with undefined symbols to be built.
20637 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20638
20639 # Flag that forces no undefined symbols.
20640 no_undefined_flag=$lt_no_undefined_flag_CXX
20641
20642 # Commands used to finish a libtool library installation in a directory.
20643 finish_cmds=$lt_finish_cmds
20644
20645 # Same as above, but a single script fragment to be evaled but not shown.
20646 finish_eval=$lt_finish_eval
20647
20648 # Take the output of nm and produce a listing of raw symbols and C names.
20649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20650
20651 # Transform the output of nm in a proper C declaration
20652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20653
20654 # Transform the output of nm in a C name address pair
20655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20656
20657 # This is the shared library runtime path variable.
20658 runpath_var=$runpath_var
20659
20660 # This is the shared library path variable.
20661 shlibpath_var=$shlibpath_var
20662
20663 # Is shlibpath searched before the hard-coded library search path?
20664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20665
20666 # How to hardcode a shared library path into an executable.
20667 hardcode_action=$hardcode_action_CXX
20668
20669 # Whether we should hardcode library paths into libraries.
20670 hardcode_into_libs=$hardcode_into_libs
20671
20672 # Flag to hardcode \$libdir into a binary during linking.
20673 # This must work even if \$libdir does not exist.
20674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20675
20676 # If ld is used when linking, flag to hardcode \$libdir into
20677 # a binary during linking. This must work even if \$libdir does
20678 # not exist.
20679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20680
20681 # Whether we need a single -rpath flag with a separated argument.
20682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20683
20684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20685 # resulting binary.
20686 hardcode_direct=$hardcode_direct_CXX
20687
20688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20689 # resulting binary.
20690 hardcode_minus_L=$hardcode_minus_L_CXX
20691
20692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20693 # the resulting binary.
20694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20695
20696 # Set to yes if building a shared library automatically hardcodes DIR into the library
20697 # and all subsequent libraries and executables linked against it.
20698 hardcode_automatic=$hardcode_automatic_CXX
20699
20700 # Variables whose values should be saved in libtool wrapper scripts and
20701 # restored at relink time.
20702 variables_saved_for_relink="$variables_saved_for_relink"
20703
20704 # Whether libtool must link a program against all its dependency libraries.
20705 link_all_deplibs=$link_all_deplibs_CXX
20706
20707 # Compile-time system search path for libraries
20708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20709
20710 # Run-time system search path for libraries
20711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20712
20713 # Fix the shell variable \$srcfile for the compiler.
20714 fix_srcfile_path="$fix_srcfile_path_CXX"
20715
20716 # Set to yes if exported symbols are required.
20717 always_export_symbols=$always_export_symbols_CXX
20718
20719 # The commands to list exported symbols.
20720 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20721
20722 # The commands to extract the exported symbol list from a shared archive.
20723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20724
20725 # Symbols that should not be listed in the preloaded symbols.
20726 exclude_expsyms=$lt_exclude_expsyms_CXX
20727
20728 # Symbols that must always be exported.
20729 include_expsyms=$lt_include_expsyms_CXX
20730
20731 # ### END LIBTOOL TAG CONFIG: $tagname
20732
20733 __EOF__
20734
20735
20736 else
20737   # If there is no Makefile yet, we rely on a make rule to execute
20738   # `config.status --recheck' to rerun these tests and create the
20739   # libtool script then.
20740   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20741   if test -f "$ltmain_in"; then
20742     test -f Makefile && make "$ltmain"
20743   fi
20744 fi
20745
20746
20747 ac_ext=c
20748 ac_cpp='$CPP $CPPFLAGS'
20749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752
20753 CC=$lt_save_CC
20754 LDCXX=$LD
20755 LD=$lt_save_LD
20756 GCC=$lt_save_GCC
20757 with_gnu_ldcxx=$with_gnu_ld
20758 with_gnu_ld=$lt_save_with_gnu_ld
20759 lt_cv_path_LDCXX=$lt_cv_path_LD
20760 lt_cv_path_LD=$lt_save_path_LD
20761 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20762 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20763
20764         else
20765           tagname=""
20766         fi
20767         ;;
20768
20769       F77)
20770         if test -n "$F77" && test "X$F77" != "Xno"; then
20771
20772 ac_ext=f
20773 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20774 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20776
20777
20778 archive_cmds_need_lc_F77=no
20779 allow_undefined_flag_F77=
20780 always_export_symbols_F77=no
20781 archive_expsym_cmds_F77=
20782 export_dynamic_flag_spec_F77=
20783 hardcode_direct_F77=no
20784 hardcode_libdir_flag_spec_F77=
20785 hardcode_libdir_flag_spec_ld_F77=
20786 hardcode_libdir_separator_F77=
20787 hardcode_minus_L_F77=no
20788 hardcode_automatic_F77=no
20789 module_cmds_F77=
20790 module_expsym_cmds_F77=
20791 link_all_deplibs_F77=unknown
20792 old_archive_cmds_F77=$old_archive_cmds
20793 no_undefined_flag_F77=
20794 whole_archive_flag_spec_F77=
20795 enable_shared_with_static_runtimes_F77=no
20796
20797 # Source file extension for f77 test sources.
20798 ac_ext=f
20799
20800 # Object file extension for compiled f77 test sources.
20801 objext=o
20802 objext_F77=$objext
20803
20804 # Code to be used in simple compile tests
20805 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20806
20807 # Code to be used in simple link tests
20808 lt_simple_link_test_code="      program t\n      end\n"
20809
20810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20811
20812 # If no C compiler was specified, use CC.
20813 LTCC=${LTCC-"$CC"}
20814
20815 # If no C compiler flags were specified, use CFLAGS.
20816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20817
20818 # Allow CC to be a program name with arguments.
20819 compiler=$CC
20820
20821
20822 # save warnings/boilerplate of simple test code
20823 ac_outfile=conftest.$ac_objext
20824 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20826 _lt_compiler_boilerplate=`cat conftest.err`
20827 $rm conftest*
20828
20829 ac_outfile=conftest.$ac_objext
20830 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20832 _lt_linker_boilerplate=`cat conftest.err`
20833 $rm conftest*
20834
20835
20836 # Allow CC to be a program name with arguments.
20837 lt_save_CC="$CC"
20838 CC=${F77-"f77"}
20839 compiler=$CC
20840 compiler_F77=$CC
20841 for cc_temp in $compiler""; do
20842   case $cc_temp in
20843     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20844     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20845     \-*) ;;
20846     *) break;;
20847   esac
20848 done
20849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20850
20851
20852 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20853 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20854 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20855 echo "${ECHO_T}$can_build_shared" >&6; }
20856
20857 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20858 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20859 test "$can_build_shared" = "no" && enable_shared=no
20860
20861 # On AIX, shared libraries and static libraries use the same namespace, and
20862 # are all built from PIC.
20863 case $host_os in
20864 aix3*)
20865   test "$enable_shared" = yes && enable_static=no
20866   if test -n "$RANLIB"; then
20867     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20868     postinstall_cmds='$RANLIB $lib'
20869   fi
20870   ;;
20871 aix4* | aix5*)
20872   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20873     test "$enable_shared" = yes && enable_static=no
20874   fi
20875   ;;
20876 esac
20877 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20878 echo "${ECHO_T}$enable_shared" >&6; }
20879
20880 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20881 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20882 # Make sure either enable_shared or enable_static is yes.
20883 test "$enable_shared" = yes || enable_static=yes
20884 { echo "$as_me:$LINENO: result: $enable_static" >&5
20885 echo "${ECHO_T}$enable_static" >&6; }
20886
20887 GCC_F77="$G77"
20888 LD_F77="$LD"
20889
20890 lt_prog_compiler_wl_F77=
20891 lt_prog_compiler_pic_F77=
20892 lt_prog_compiler_static_F77=
20893
20894 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20896
20897   if test "$GCC" = yes; then
20898     lt_prog_compiler_wl_F77='-Wl,'
20899     lt_prog_compiler_static_F77='-static'
20900
20901     case $host_os in
20902       aix*)
20903       # All AIX code is PIC.
20904       if test "$host_cpu" = ia64; then
20905         # AIX 5 now supports IA64 processor
20906         lt_prog_compiler_static_F77='-Bstatic'
20907       fi
20908       ;;
20909
20910     amigaos*)
20911       # FIXME: we need at least 68020 code to build shared libraries, but
20912       # adding the `-m68020' flag to GCC prevents building anything better,
20913       # like `-m68040'.
20914       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20915       ;;
20916
20917     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20918       # PIC is the default for these OSes.
20919       ;;
20920
20921     mingw* | pw32* | os2*)
20922       # This hack is so that the source file can tell whether it is being
20923       # built for inclusion in a dll (and should export symbols for example).
20924       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20925       ;;
20926
20927     darwin* | rhapsody*)
20928       # PIC is the default on this platform
20929       # Common symbols not allowed in MH_DYLIB files
20930       lt_prog_compiler_pic_F77='-fno-common'
20931       ;;
20932
20933     interix3*)
20934       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20935       # Instead, we relocate shared libraries at runtime.
20936       ;;
20937
20938     msdosdjgpp*)
20939       # Just because we use GCC doesn't mean we suddenly get shared libraries
20940       # on systems that don't support them.
20941       lt_prog_compiler_can_build_shared_F77=no
20942       enable_shared=no
20943       ;;
20944
20945     sysv4*MP*)
20946       if test -d /usr/nec; then
20947         lt_prog_compiler_pic_F77=-Kconform_pic
20948       fi
20949       ;;
20950
20951     hpux*)
20952       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20953       # not for PA HP-UX.
20954       case $host_cpu in
20955       hppa*64*|ia64*)
20956         # +Z the default
20957         ;;
20958       *)
20959         lt_prog_compiler_pic_F77='-fPIC'
20960         ;;
20961       esac
20962       ;;
20963
20964     *)
20965       lt_prog_compiler_pic_F77='-fPIC'
20966       ;;
20967     esac
20968   else
20969     # PORTME Check for flag to pass linker flags through the system compiler.
20970     case $host_os in
20971     aix*)
20972       lt_prog_compiler_wl_F77='-Wl,'
20973       if test "$host_cpu" = ia64; then
20974         # AIX 5 now supports IA64 processor
20975         lt_prog_compiler_static_F77='-Bstatic'
20976       else
20977         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20978       fi
20979       ;;
20980       darwin*)
20981         # PIC is the default on this platform
20982         # Common symbols not allowed in MH_DYLIB files
20983        case $cc_basename in
20984          xlc*)
20985          lt_prog_compiler_pic_F77='-qnocommon'
20986          lt_prog_compiler_wl_F77='-Wl,'
20987          ;;
20988        esac
20989        ;;
20990
20991     mingw* | pw32* | os2*)
20992       # This hack is so that the source file can tell whether it is being
20993       # built for inclusion in a dll (and should export symbols for example).
20994       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20995       ;;
20996
20997     hpux9* | hpux10* | hpux11*)
20998       lt_prog_compiler_wl_F77='-Wl,'
20999       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21000       # not for PA HP-UX.
21001       case $host_cpu in
21002       hppa*64*|ia64*)
21003         # +Z the default
21004         ;;
21005       *)
21006         lt_prog_compiler_pic_F77='+Z'
21007         ;;
21008       esac
21009       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21010       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21011       ;;
21012
21013     irix5* | irix6* | nonstopux*)
21014       lt_prog_compiler_wl_F77='-Wl,'
21015       # PIC (with -KPIC) is the default.
21016       lt_prog_compiler_static_F77='-non_shared'
21017       ;;
21018
21019     newsos6)
21020       lt_prog_compiler_pic_F77='-KPIC'
21021       lt_prog_compiler_static_F77='-Bstatic'
21022       ;;
21023
21024     linux*)
21025       case $cc_basename in
21026       icc* | ecc*)
21027         lt_prog_compiler_wl_F77='-Wl,'
21028         lt_prog_compiler_pic_F77='-KPIC'
21029         lt_prog_compiler_static_F77='-static'
21030         ;;
21031       pgcc* | pgf77* | pgf90* | pgf95*)
21032         # Portland Group compilers (*not* the Pentium gcc compiler,
21033         # which looks to be a dead project)
21034         lt_prog_compiler_wl_F77='-Wl,'
21035         lt_prog_compiler_pic_F77='-fpic'
21036         lt_prog_compiler_static_F77='-Bstatic'
21037         ;;
21038       ccc*)
21039         lt_prog_compiler_wl_F77='-Wl,'
21040         # All Alpha code is PIC.
21041         lt_prog_compiler_static_F77='-non_shared'
21042         ;;
21043       esac
21044       ;;
21045
21046     osf3* | osf4* | osf5*)
21047       lt_prog_compiler_wl_F77='-Wl,'
21048       # All OSF/1 code is PIC.
21049       lt_prog_compiler_static_F77='-non_shared'
21050       ;;
21051
21052     solaris*)
21053       lt_prog_compiler_pic_F77='-KPIC'
21054       lt_prog_compiler_static_F77='-Bstatic'
21055       case $cc_basename in
21056       f77* | f90* | f95*)
21057         lt_prog_compiler_wl_F77='-Qoption ld ';;
21058       *)
21059         lt_prog_compiler_wl_F77='-Wl,';;
21060       esac
21061       ;;
21062
21063     sunos4*)
21064       lt_prog_compiler_wl_F77='-Qoption ld '
21065       lt_prog_compiler_pic_F77='-PIC'
21066       lt_prog_compiler_static_F77='-Bstatic'
21067       ;;
21068
21069     sysv4 | sysv4.2uw2* | sysv4.3*)
21070       lt_prog_compiler_wl_F77='-Wl,'
21071       lt_prog_compiler_pic_F77='-KPIC'
21072       lt_prog_compiler_static_F77='-Bstatic'
21073       ;;
21074
21075     sysv4*MP*)
21076       if test -d /usr/nec ;then
21077         lt_prog_compiler_pic_F77='-Kconform_pic'
21078         lt_prog_compiler_static_F77='-Bstatic'
21079       fi
21080       ;;
21081
21082     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21083       lt_prog_compiler_wl_F77='-Wl,'
21084       lt_prog_compiler_pic_F77='-KPIC'
21085       lt_prog_compiler_static_F77='-Bstatic'
21086       ;;
21087
21088     unicos*)
21089       lt_prog_compiler_wl_F77='-Wl,'
21090       lt_prog_compiler_can_build_shared_F77=no
21091       ;;
21092
21093     uts4*)
21094       lt_prog_compiler_pic_F77='-pic'
21095       lt_prog_compiler_static_F77='-Bstatic'
21096       ;;
21097
21098     *)
21099       lt_prog_compiler_can_build_shared_F77=no
21100       ;;
21101     esac
21102   fi
21103
21104 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21105 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21106
21107 #
21108 # Check to make sure the PIC flag actually works.
21109 #
21110 if test -n "$lt_prog_compiler_pic_F77"; then
21111
21112 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21114 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117   lt_prog_compiler_pic_works_F77=no
21118   ac_outfile=conftest.$ac_objext
21119    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21120    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21121    # Insert the option either (1) after the last *FLAGS variable, or
21122    # (2) before a word containing "conftest.", or (3) at the end.
21123    # Note that $ac_compile itself does not contain backslashes and begins
21124    # with a dollar sign (not a hyphen), so the echo should work correctly.
21125    # The option is referenced via a variable to avoid confusing sed.
21126    lt_compile=`echo "$ac_compile" | $SED \
21127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21129    -e 's:$: $lt_compiler_flag:'`
21130    (eval echo "\"\$as_me:21130: $lt_compile\"" >&5)
21131    (eval "$lt_compile" 2>conftest.err)
21132    ac_status=$?
21133    cat conftest.err >&5
21134    echo "$as_me:21134: \$? = $ac_status" >&5
21135    if (exit $ac_status) && test -s "$ac_outfile"; then
21136      # The compiler can only warn and ignore the option if not recognized
21137      # So say no if there are warnings other than the usual output.
21138      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21139      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21140      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21141        lt_prog_compiler_pic_works_F77=yes
21142      fi
21143    fi
21144    $rm conftest*
21145
21146 fi
21147 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21148 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21149
21150 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21151     case $lt_prog_compiler_pic_F77 in
21152      "" | " "*) ;;
21153      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21154      esac
21155 else
21156     lt_prog_compiler_pic_F77=
21157      lt_prog_compiler_can_build_shared_F77=no
21158 fi
21159
21160 fi
21161 case $host_os in
21162   # For platforms which do not support PIC, -DPIC is meaningless:
21163   *djgpp*)
21164     lt_prog_compiler_pic_F77=
21165     ;;
21166   *)
21167     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21168     ;;
21169 esac
21170
21171 #
21172 # Check to make sure the static flag actually works.
21173 #
21174 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21175 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21176 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21177 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21178   echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180   lt_prog_compiler_static_works_F77=no
21181    save_LDFLAGS="$LDFLAGS"
21182    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21183    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21184    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21185      # The linker can only warn and ignore the option if not recognized
21186      # So say no if there are warnings
21187      if test -s conftest.err; then
21188        # Append any errors to the config.log.
21189        cat conftest.err 1>&5
21190        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21191        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21192        if diff conftest.exp conftest.er2 >/dev/null; then
21193          lt_prog_compiler_static_works_F77=yes
21194        fi
21195      else
21196        lt_prog_compiler_static_works_F77=yes
21197      fi
21198    fi
21199    $rm conftest*
21200    LDFLAGS="$save_LDFLAGS"
21201
21202 fi
21203 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21204 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21205
21206 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21207     :
21208 else
21209     lt_prog_compiler_static_F77=
21210 fi
21211
21212
21213 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21214 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21215 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   lt_cv_prog_compiler_c_o_F77=no
21219    $rm -r conftest 2>/dev/null
21220    mkdir conftest
21221    cd conftest
21222    mkdir out
21223    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21224
21225    lt_compiler_flag="-o out/conftest2.$ac_objext"
21226    # Insert the option either (1) after the last *FLAGS variable, or
21227    # (2) before a word containing "conftest.", or (3) at the end.
21228    # Note that $ac_compile itself does not contain backslashes and begins
21229    # with a dollar sign (not a hyphen), so the echo should work correctly.
21230    lt_compile=`echo "$ac_compile" | $SED \
21231    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21233    -e 's:$: $lt_compiler_flag:'`
21234    (eval echo "\"\$as_me:21234: $lt_compile\"" >&5)
21235    (eval "$lt_compile" 2>out/conftest.err)
21236    ac_status=$?
21237    cat out/conftest.err >&5
21238    echo "$as_me:21238: \$? = $ac_status" >&5
21239    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21240    then
21241      # The compiler can only warn and ignore the option if not recognized
21242      # So say no if there are warnings
21243      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21244      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21245      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21246        lt_cv_prog_compiler_c_o_F77=yes
21247      fi
21248    fi
21249    chmod u+w . 2>&5
21250    $rm conftest*
21251    # SGI C++ compiler will create directory out/ii_files/ for
21252    # template instantiation
21253    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21254    $rm out/* && rmdir out
21255    cd ..
21256    rmdir conftest
21257    $rm conftest*
21258
21259 fi
21260 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21262
21263
21264 hard_links="nottested"
21265 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21266   # do not overwrite the value of need_locks provided by the user
21267   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21269   hard_links=yes
21270   $rm conftest*
21271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21272   touch conftest.a
21273   ln conftest.a conftest.b 2>&5 || hard_links=no
21274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21275   { echo "$as_me:$LINENO: result: $hard_links" >&5
21276 echo "${ECHO_T}$hard_links" >&6; }
21277   if test "$hard_links" = no; then
21278     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21280     need_locks=warn
21281   fi
21282 else
21283   need_locks=no
21284 fi
21285
21286 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21288
21289   runpath_var=
21290   allow_undefined_flag_F77=
21291   enable_shared_with_static_runtimes_F77=no
21292   archive_cmds_F77=
21293   archive_expsym_cmds_F77=
21294   old_archive_From_new_cmds_F77=
21295   old_archive_from_expsyms_cmds_F77=
21296   export_dynamic_flag_spec_F77=
21297   whole_archive_flag_spec_F77=
21298   thread_safe_flag_spec_F77=
21299   hardcode_libdir_flag_spec_F77=
21300   hardcode_libdir_flag_spec_ld_F77=
21301   hardcode_libdir_separator_F77=
21302   hardcode_direct_F77=no
21303   hardcode_minus_L_F77=no
21304   hardcode_shlibpath_var_F77=unsupported
21305   link_all_deplibs_F77=unknown
21306   hardcode_automatic_F77=no
21307   module_cmds_F77=
21308   module_expsym_cmds_F77=
21309   always_export_symbols_F77=no
21310   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21311   # include_expsyms should be a list of space-separated symbols to be *always*
21312   # included in the symbol list
21313   include_expsyms_F77=
21314   # exclude_expsyms can be an extended regexp of symbols to exclude
21315   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21316   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21317   # as well as any symbol that contains `d'.
21318   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21319   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21320   # platforms (ab)use it in PIC code, but their linkers get confused if
21321   # the symbol is explicitly referenced.  Since portable code cannot
21322   # rely on this symbol name, it's probably fine to never include it in
21323   # preloaded symbol tables.
21324   extract_expsyms_cmds=
21325   # Just being paranoid about ensuring that cc_basename is set.
21326   for cc_temp in $compiler""; do
21327   case $cc_temp in
21328     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21329     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21330     \-*) ;;
21331     *) break;;
21332   esac
21333 done
21334 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21335
21336   case $host_os in
21337   cygwin* | mingw* | pw32*)
21338     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21339     # When not using gcc, we currently assume that we are using
21340     # Microsoft Visual C++.
21341     if test "$GCC" != yes; then
21342       with_gnu_ld=no
21343     fi
21344     ;;
21345   interix*)
21346     # we just hope/assume this is gcc and not c89 (= MSVC++)
21347     with_gnu_ld=yes
21348     ;;
21349   openbsd*)
21350     with_gnu_ld=no
21351     ;;
21352   esac
21353
21354   ld_shlibs_F77=yes
21355   if test "$with_gnu_ld" = yes; then
21356     # If archive_cmds runs LD, not CC, wlarc should be empty
21357     wlarc='${wl}'
21358
21359     # Set some defaults for GNU ld with shared library support. These
21360     # are reset later if shared libraries are not supported. Putting them
21361     # here allows them to be overridden if necessary.
21362     runpath_var=LD_RUN_PATH
21363     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21364     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21365     # ancient GNU ld didn't support --whole-archive et. al.
21366     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21367         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21368       else
21369         whole_archive_flag_spec_F77=
21370     fi
21371     supports_anon_versioning=no
21372     case `$LD -v 2>/dev/null` in
21373       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21374       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21375       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21376       *\ 2.11.*) ;; # other 2.11 versions
21377       *) supports_anon_versioning=yes ;;
21378     esac
21379
21380     # See if GNU ld supports shared libraries.
21381     case $host_os in
21382     aix3* | aix4* | aix5*)
21383       # On AIX/PPC, the GNU linker is very broken
21384       if test "$host_cpu" != ia64; then
21385         ld_shlibs_F77=no
21386         cat <<EOF 1>&2
21387
21388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21389 *** to be unable to reliably create shared libraries on AIX.
21390 *** Therefore, libtool is disabling shared libraries support.  If you
21391 *** really care for shared libraries, you may want to modify your PATH
21392 *** so that a non-GNU linker is found, and then restart.
21393
21394 EOF
21395       fi
21396       ;;
21397
21398     amigaos*)
21399       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)'
21400       hardcode_libdir_flag_spec_F77='-L$libdir'
21401       hardcode_minus_L_F77=yes
21402
21403       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21404       # that the semantics of dynamic libraries on AmigaOS, at least up
21405       # to version 4, is to share data among multiple programs linked
21406       # with the same dynamic library.  Since this doesn't match the
21407       # behavior of shared libraries on other platforms, we can't use
21408       # them.
21409       ld_shlibs_F77=no
21410       ;;
21411
21412     beos*)
21413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21414         allow_undefined_flag_F77=unsupported
21415         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21416         # support --undefined.  This deserves some investigation.  FIXME
21417         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21418       else
21419         ld_shlibs_F77=no
21420       fi
21421       ;;
21422
21423     cygwin* | mingw* | pw32*)
21424       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21425       # as there is no search path for DLLs.
21426       hardcode_libdir_flag_spec_F77='-L$libdir'
21427       allow_undefined_flag_F77=unsupported
21428       always_export_symbols_F77=no
21429       enable_shared_with_static_runtimes_F77=yes
21430       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21431
21432       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21433         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21434         # If the export-symbols file already is a .def file (1st line
21435         # is EXPORTS), use it as is; otherwise, prepend...
21436         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21437           cp $export_symbols $output_objdir/$soname.def;
21438         else
21439           echo EXPORTS > $output_objdir/$soname.def;
21440           cat $export_symbols >> $output_objdir/$soname.def;
21441         fi~
21442         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21443       else
21444         ld_shlibs_F77=no
21445       fi
21446       ;;
21447
21448     interix3*)
21449       hardcode_direct_F77=no
21450       hardcode_shlibpath_var_F77=no
21451       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21452       export_dynamic_flag_spec_F77='${wl}-E'
21453       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21454       # Instead, shared libraries are loaded at an image base (0x10000000 by
21455       # default) and relocated if they conflict, which is a slow very memory
21456       # consuming and fragmenting process.  To avoid this, we pick a random,
21457       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21458       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21459       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'
21460       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'
21461       ;;
21462
21463     linux*)
21464       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21465         tmp_addflag=
21466         case $cc_basename,$host_cpu in
21467         pgcc*)                          # Portland Group C compiler
21468           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'
21469           tmp_addflag=' $pic_flag'
21470           ;;
21471         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21472           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'
21473           tmp_addflag=' $pic_flag -Mnomain' ;;
21474         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21475           tmp_addflag=' -i_dynamic' ;;
21476         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21477           tmp_addflag=' -i_dynamic -nofor_main' ;;
21478         ifc* | ifort*)                  # Intel Fortran compiler
21479           tmp_addflag=' -nofor_main' ;;
21480         esac
21481         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482
21483         if test $supports_anon_versioning = yes; then
21484           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21485   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21486   $echo "local: *; };" >> $output_objdir/$libname.ver~
21487           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21488         fi
21489       else
21490         ld_shlibs_F77=no
21491       fi
21492       ;;
21493
21494     netbsd*)
21495       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21496         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21497         wlarc=
21498       else
21499         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21500         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21501       fi
21502       ;;
21503
21504     solaris*)
21505       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21506         ld_shlibs_F77=no
21507         cat <<EOF 1>&2
21508
21509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21510 *** create shared libraries on Solaris systems.  Therefore, libtool
21511 *** is disabling shared libraries support.  We urge you to upgrade GNU
21512 *** binutils to release 2.9.1 or newer.  Another option is to modify
21513 *** your PATH or compiler configuration so that the native linker is
21514 *** used, and then restart.
21515
21516 EOF
21517       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21518         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21519         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21520       else
21521         ld_shlibs_F77=no
21522       fi
21523       ;;
21524
21525     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21526       case `$LD -v 2>&1` in
21527         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21528         ld_shlibs_F77=no
21529         cat <<_LT_EOF 1>&2
21530
21531 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21532 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21533 *** is disabling shared libraries support.  We urge you to upgrade GNU
21534 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21535 *** your PATH or compiler configuration so that the native linker is
21536 *** used, and then restart.
21537
21538 _LT_EOF
21539         ;;
21540         *)
21541           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21542             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21543             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21544             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21545           else
21546             ld_shlibs_F77=no
21547           fi
21548         ;;
21549       esac
21550       ;;
21551
21552     sunos4*)
21553       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21554       wlarc=
21555       hardcode_direct_F77=yes
21556       hardcode_shlibpath_var_F77=no
21557       ;;
21558
21559     *)
21560       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21561         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21562         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21563       else
21564         ld_shlibs_F77=no
21565       fi
21566       ;;
21567     esac
21568
21569     if test "$ld_shlibs_F77" = no; then
21570       runpath_var=
21571       hardcode_libdir_flag_spec_F77=
21572       export_dynamic_flag_spec_F77=
21573       whole_archive_flag_spec_F77=
21574     fi
21575   else
21576     # PORTME fill in a description of your system's linker (not GNU ld)
21577     case $host_os in
21578     aix3*)
21579       allow_undefined_flag_F77=unsupported
21580       always_export_symbols_F77=yes
21581       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'
21582       # Note: this linker hardcodes the directories in LIBPATH if there
21583       # are no directories specified by -L.
21584       hardcode_minus_L_F77=yes
21585       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21586         # Neither direct hardcoding nor static linking is supported with a
21587         # broken collect2.
21588         hardcode_direct_F77=unsupported
21589       fi
21590       ;;
21591
21592     aix4* | aix5*)
21593       if test "$host_cpu" = ia64; then
21594         # On IA64, the linker does run time linking by default, so we don't
21595         # have to do anything special.
21596         aix_use_runtimelinking=no
21597         exp_sym_flag='-Bexport'
21598         no_entry_flag=""
21599       else
21600         # If we're using GNU nm, then we don't want the "-C" option.
21601         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21602         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21603           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'
21604         else
21605           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'
21606         fi
21607         aix_use_runtimelinking=no
21608
21609         # Test if we are trying to use run time linking or normal
21610         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21611         # need to do runtime linking.
21612         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21613           for ld_flag in $LDFLAGS; do
21614           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21615             aix_use_runtimelinking=yes
21616             break
21617           fi
21618           done
21619           ;;
21620         esac
21621
21622         exp_sym_flag='-bexport'
21623         no_entry_flag='-bnoentry'
21624       fi
21625
21626       # When large executables or shared objects are built, AIX ld can
21627       # have problems creating the table of contents.  If linking a library
21628       # or program results in "error TOC overflow" add -mminimal-toc to
21629       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21630       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21631
21632       archive_cmds_F77=''
21633       hardcode_direct_F77=yes
21634       hardcode_libdir_separator_F77=':'
21635       link_all_deplibs_F77=yes
21636
21637       if test "$GCC" = yes; then
21638         case $host_os in aix4.[012]|aix4.[012].*)
21639         # We only want to do this on AIX 4.2 and lower, the check
21640         # below for broken collect2 doesn't work under 4.3+
21641           collect2name=`${CC} -print-prog-name=collect2`
21642           if test -f "$collect2name" && \
21643            strings "$collect2name" | grep resolve_lib_name >/dev/null
21644           then
21645           # We have reworked collect2
21646           hardcode_direct_F77=yes
21647           else
21648           # We have old collect2
21649           hardcode_direct_F77=unsupported
21650           # It fails to find uninstalled libraries when the uninstalled
21651           # path is not listed in the libpath.  Setting hardcode_minus_L
21652           # to unsupported forces relinking
21653           hardcode_minus_L_F77=yes
21654           hardcode_libdir_flag_spec_F77='-L$libdir'
21655           hardcode_libdir_separator_F77=
21656           fi
21657           ;;
21658         esac
21659         shared_flag='-shared'
21660         if test "$aix_use_runtimelinking" = yes; then
21661           shared_flag="$shared_flag "'${wl}-G'
21662         fi
21663       else
21664         # not using gcc
21665         if test "$host_cpu" = ia64; then
21666         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21667         # chokes on -Wl,-G. The following line is correct:
21668           shared_flag='-G'
21669         else
21670           if test "$aix_use_runtimelinking" = yes; then
21671             shared_flag='${wl}-G'
21672           else
21673             shared_flag='${wl}-bM:SRE'
21674           fi
21675         fi
21676       fi
21677
21678       # It seems that -bexpall does not export symbols beginning with
21679       # underscore (_), so it is better to generate a list of symbols to export.
21680       always_export_symbols_F77=yes
21681       if test "$aix_use_runtimelinking" = yes; then
21682         # Warning - without using the other runtime loading flags (-brtl),
21683         # -berok will link without error, but may produce a broken library.
21684         allow_undefined_flag_F77='-berok'
21685        # Determine the default libpath from the value encoded in an empty executable.
21686        cat >conftest.$ac_ext <<_ACEOF
21687       program main
21688
21689       end
21690 _ACEOF
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (ac_try="$ac_link"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_link") 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } &&
21705          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21706   { (case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711   (eval "$ac_try") 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; } &&
21715          { ac_try='test -s conftest$ac_exeext'
21716   { (case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721   (eval "$ac_try") 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725
21726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21727 }'`
21728 # Check for a 64-bit object if we didn't find anything.
21729 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; }
21730 }'`; fi
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735
21736 fi
21737
21738 rm -f core conftest.err conftest.$ac_objext \
21739       conftest$ac_exeext conftest.$ac_ext
21740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21741
21742        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21743         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"
21744        else
21745         if test "$host_cpu" = ia64; then
21746           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21747           allow_undefined_flag_F77="-z nodefs"
21748           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"
21749         else
21750          # Determine the default libpath from the value encoded in an empty executable.
21751          cat >conftest.$ac_ext <<_ACEOF
21752       program main
21753
21754       end
21755 _ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_link") 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } &&
21770          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21771   { (case "(($ac_try" in
21772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773   *) ac_try_echo=$ac_try;;
21774 esac
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776   (eval "$ac_try") 2>&5
21777   ac_status=$?
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); }; } &&
21780          { ac_try='test -s conftest$ac_exeext'
21781   { (case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_try") 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; }; then
21790
21791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21792 }'`
21793 # Check for a 64-bit object if we didn't find anything.
21794 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; }
21795 }'`; fi
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext \
21804       conftest$ac_exeext conftest.$ac_ext
21805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21806
21807          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21808           # Warning - without using the other run time loading flags,
21809           # -berok will link without error, but may produce a broken library.
21810           no_undefined_flag_F77=' ${wl}-bernotok'
21811           allow_undefined_flag_F77=' ${wl}-berok'
21812           # Exported symbols can be pulled into shared objects from archives
21813           whole_archive_flag_spec_F77='$convenience'
21814           archive_cmds_need_lc_F77=yes
21815           # This is similar to how AIX traditionally builds its shared libraries.
21816           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'
21817         fi
21818       fi
21819       ;;
21820
21821     amigaos*)
21822       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)'
21823       hardcode_libdir_flag_spec_F77='-L$libdir'
21824       hardcode_minus_L_F77=yes
21825       # see comment about different semantics on the GNU ld section
21826       ld_shlibs_F77=no
21827       ;;
21828
21829     bsdi[45]*)
21830       export_dynamic_flag_spec_F77=-rdynamic
21831       ;;
21832
21833     cygwin* | mingw* | pw32*)
21834       # When not using gcc, we currently assume that we are using
21835       # Microsoft Visual C++.
21836       # hardcode_libdir_flag_spec is actually meaningless, as there is
21837       # no search path for DLLs.
21838       hardcode_libdir_flag_spec_F77=' '
21839       allow_undefined_flag_F77=unsupported
21840       # Tell ltmain to make .lib files, not .a files.
21841       libext=lib
21842       # Tell ltmain to make .dll files, not .so files.
21843       shrext_cmds=".dll"
21844       # FIXME: Setting linknames here is a bad hack.
21845       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21846       # The linker will automatically build a .lib file if we build a DLL.
21847       old_archive_From_new_cmds_F77='true'
21848       # FIXME: Should let the user specify the lib program.
21849       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21850       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21851       enable_shared_with_static_runtimes_F77=yes
21852       ;;
21853
21854     darwin* | rhapsody*)
21855       case $host_os in
21856         rhapsody* | darwin1.[012])
21857          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21858          ;;
21859        *) # Darwin 1.3 on
21860          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21861            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21862          else
21863            case ${MACOSX_DEPLOYMENT_TARGET} in
21864              10.[012])
21865                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21866                ;;
21867              10.*)
21868                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21869                ;;
21870            esac
21871          fi
21872          ;;
21873       esac
21874       archive_cmds_need_lc_F77=no
21875       hardcode_direct_F77=no
21876       hardcode_automatic_F77=yes
21877       hardcode_shlibpath_var_F77=unsupported
21878       whole_archive_flag_spec_F77=''
21879       link_all_deplibs_F77=yes
21880     if test "$GCC" = yes ; then
21881         output_verbose_link_cmd='echo'
21882         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21883       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21884       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21885       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}'
21886       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}'
21887     else
21888       case $cc_basename in
21889         xlc*)
21890          output_verbose_link_cmd='echo'
21891          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21892          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21893           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21894          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}'
21895           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}'
21896           ;;
21897        *)
21898          ld_shlibs_F77=no
21899           ;;
21900       esac
21901     fi
21902       ;;
21903
21904     dgux*)
21905       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21906       hardcode_libdir_flag_spec_F77='-L$libdir'
21907       hardcode_shlibpath_var_F77=no
21908       ;;
21909
21910     freebsd1*)
21911       ld_shlibs_F77=no
21912       ;;
21913
21914     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21915     # support.  Future versions do this automatically, but an explicit c++rt0.o
21916     # does not break anything, and helps significantly (at the cost of a little
21917     # extra space).
21918     freebsd2.2*)
21919       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21920       hardcode_libdir_flag_spec_F77='-R$libdir'
21921       hardcode_direct_F77=yes
21922       hardcode_shlibpath_var_F77=no
21923       ;;
21924
21925     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21926     freebsd2*)
21927       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21928       hardcode_direct_F77=yes
21929       hardcode_minus_L_F77=yes
21930       hardcode_shlibpath_var_F77=no
21931       ;;
21932
21933     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21934     freebsd* | kfreebsd*-gnu | dragonfly*)
21935       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21936       hardcode_libdir_flag_spec_F77='-R$libdir'
21937       hardcode_direct_F77=yes
21938       hardcode_shlibpath_var_F77=no
21939       ;;
21940
21941     hpux9*)
21942       if test "$GCC" = yes; then
21943         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'
21944       else
21945         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'
21946       fi
21947       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21948       hardcode_libdir_separator_F77=:
21949       hardcode_direct_F77=yes
21950
21951       # hardcode_minus_L: Not really in the search PATH,
21952       # but as the default location of the library.
21953       hardcode_minus_L_F77=yes
21954       export_dynamic_flag_spec_F77='${wl}-E'
21955       ;;
21956
21957     hpux10*)
21958       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21959         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21960       else
21961         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21962       fi
21963       if test "$with_gnu_ld" = no; then
21964         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21965         hardcode_libdir_separator_F77=:
21966
21967         hardcode_direct_F77=yes
21968         export_dynamic_flag_spec_F77='${wl}-E'
21969
21970         # hardcode_minus_L: Not really in the search PATH,
21971         # but as the default location of the library.
21972         hardcode_minus_L_F77=yes
21973       fi
21974       ;;
21975
21976     hpux11*)
21977       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21978         case $host_cpu in
21979         hppa*64*)
21980           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21981           ;;
21982         ia64*)
21983           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21984           ;;
21985         *)
21986           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21987           ;;
21988         esac
21989       else
21990         case $host_cpu in
21991         hppa*64*)
21992           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21993           ;;
21994         ia64*)
21995           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21996           ;;
21997         *)
21998           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21999           ;;
22000         esac
22001       fi
22002       if test "$with_gnu_ld" = no; then
22003         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22004         hardcode_libdir_separator_F77=:
22005
22006         case $host_cpu in
22007         hppa*64*|ia64*)
22008           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22009           hardcode_direct_F77=no
22010           hardcode_shlibpath_var_F77=no
22011           ;;
22012         *)
22013           hardcode_direct_F77=yes
22014           export_dynamic_flag_spec_F77='${wl}-E'
22015
22016           # hardcode_minus_L: Not really in the search PATH,
22017           # but as the default location of the library.
22018           hardcode_minus_L_F77=yes
22019           ;;
22020         esac
22021       fi
22022       ;;
22023
22024     irix5* | irix6* | nonstopux*)
22025       if test "$GCC" = yes; then
22026         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'
22027       else
22028         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'
22029         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22030       fi
22031       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22032       hardcode_libdir_separator_F77=:
22033       link_all_deplibs_F77=yes
22034       ;;
22035
22036     netbsd*)
22037       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22038         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22039       else
22040         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22041       fi
22042       hardcode_libdir_flag_spec_F77='-R$libdir'
22043       hardcode_direct_F77=yes
22044       hardcode_shlibpath_var_F77=no
22045       ;;
22046
22047     newsos6)
22048       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22049       hardcode_direct_F77=yes
22050       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22051       hardcode_libdir_separator_F77=:
22052       hardcode_shlibpath_var_F77=no
22053       ;;
22054
22055     openbsd*)
22056       hardcode_direct_F77=yes
22057       hardcode_shlibpath_var_F77=no
22058       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22059         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22060         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22061         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22062         export_dynamic_flag_spec_F77='${wl}-E'
22063       else
22064        case $host_os in
22065          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22066            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22067            hardcode_libdir_flag_spec_F77='-R$libdir'
22068            ;;
22069          *)
22070            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22071            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22072            ;;
22073        esac
22074       fi
22075       ;;
22076
22077     os2*)
22078       hardcode_libdir_flag_spec_F77='-L$libdir'
22079       hardcode_minus_L_F77=yes
22080       allow_undefined_flag_F77=unsupported
22081       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'
22082       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22083       ;;
22084
22085     osf3*)
22086       if test "$GCC" = yes; then
22087         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22088         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'
22089       else
22090         allow_undefined_flag_F77=' -expect_unresolved \*'
22091         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'
22092       fi
22093       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22094       hardcode_libdir_separator_F77=:
22095       ;;
22096
22097     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22098       if test "$GCC" = yes; then
22099         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22100         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'
22101         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22102       else
22103         allow_undefined_flag_F77=' -expect_unresolved \*'
22104         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'
22105         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~
22106         $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'
22107
22108         # Both c and cxx compiler support -rpath directly
22109         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22110       fi
22111       hardcode_libdir_separator_F77=:
22112       ;;
22113
22114     solaris*)
22115       no_undefined_flag_F77=' -z text'
22116       if test "$GCC" = yes; then
22117         wlarc='${wl}'
22118         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22119         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22120           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22121       else
22122         wlarc=''
22123         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22124         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22125         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22126       fi
22127       hardcode_libdir_flag_spec_F77='-R$libdir'
22128       hardcode_shlibpath_var_F77=no
22129       case $host_os in
22130       solaris2.[0-5] | solaris2.[0-5].*) ;;
22131       *)
22132         # The compiler driver will combine linker options so we
22133         # cannot just pass the convience library names through
22134         # without $wl, iff we do not link with $LD.
22135         # Luckily, gcc supports the same syntax we need for Sun Studio.
22136         # Supported since Solaris 2.6 (maybe 2.5.1?)
22137         case $wlarc in
22138         '')
22139           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22140         *)
22141           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' ;;
22142         esac ;;
22143       esac
22144       link_all_deplibs_F77=yes
22145       ;;
22146
22147     sunos4*)
22148       if test "x$host_vendor" = xsequent; then
22149         # Use $CC to link under sequent, because it throws in some extra .o
22150         # files that make .init and .fini sections work.
22151         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22152       else
22153         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22154       fi
22155       hardcode_libdir_flag_spec_F77='-L$libdir'
22156       hardcode_direct_F77=yes
22157       hardcode_minus_L_F77=yes
22158       hardcode_shlibpath_var_F77=no
22159       ;;
22160
22161     sysv4)
22162       case $host_vendor in
22163         sni)
22164           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22165           hardcode_direct_F77=yes # is this really true???
22166         ;;
22167         siemens)
22168           ## LD is ld it makes a PLAMLIB
22169           ## CC just makes a GrossModule.
22170           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22171           reload_cmds_F77='$CC -r -o $output$reload_objs'
22172           hardcode_direct_F77=no
22173         ;;
22174         motorola)
22175           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22176           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22177         ;;
22178       esac
22179       runpath_var='LD_RUN_PATH'
22180       hardcode_shlibpath_var_F77=no
22181       ;;
22182
22183     sysv4.3*)
22184       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22185       hardcode_shlibpath_var_F77=no
22186       export_dynamic_flag_spec_F77='-Bexport'
22187       ;;
22188
22189     sysv4*MP*)
22190       if test -d /usr/nec; then
22191         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192         hardcode_shlibpath_var_F77=no
22193         runpath_var=LD_RUN_PATH
22194         hardcode_runpath_var=yes
22195         ld_shlibs_F77=yes
22196       fi
22197       ;;
22198
22199     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22200       no_undefined_flag_F77='${wl}-z,text'
22201       archive_cmds_need_lc_F77=no
22202       hardcode_shlibpath_var_F77=no
22203       runpath_var='LD_RUN_PATH'
22204
22205       if test "$GCC" = yes; then
22206         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22207         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22208       else
22209         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22210         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22211       fi
22212       ;;
22213
22214     sysv5* | sco3.2v5* | sco5v6*)
22215       # Note: We can NOT use -z defs as we might desire, because we do not
22216       # link with -lc, and that would cause any symbols used from libc to
22217       # always be unresolved, which means just about no library would
22218       # ever link correctly.  If we're not using GNU ld we use -z text
22219       # though, which does catch some bad symbols but isn't as heavy-handed
22220       # as -z defs.
22221       no_undefined_flag_F77='${wl}-z,text'
22222       allow_undefined_flag_F77='${wl}-z,nodefs'
22223       archive_cmds_need_lc_F77=no
22224       hardcode_shlibpath_var_F77=no
22225       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22226       hardcode_libdir_separator_F77=':'
22227       link_all_deplibs_F77=yes
22228       export_dynamic_flag_spec_F77='${wl}-Bexport'
22229       runpath_var='LD_RUN_PATH'
22230
22231       if test "$GCC" = yes; then
22232         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22234       else
22235         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22237       fi
22238       ;;
22239
22240     uts4*)
22241       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22242       hardcode_libdir_flag_spec_F77='-L$libdir'
22243       hardcode_shlibpath_var_F77=no
22244       ;;
22245
22246     *)
22247       ld_shlibs_F77=no
22248       ;;
22249     esac
22250   fi
22251
22252 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22253 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22254 test "$ld_shlibs_F77" = no && can_build_shared=no
22255
22256 #
22257 # Do we need to explicitly link libc?
22258 #
22259 case "x$archive_cmds_need_lc_F77" in
22260 x|xyes)
22261   # Assume -lc should be added
22262   archive_cmds_need_lc_F77=yes
22263
22264   if test "$enable_shared" = yes && test "$GCC" = yes; then
22265     case $archive_cmds_F77 in
22266     *'~'*)
22267       # FIXME: we may have to deal with multi-command sequences.
22268       ;;
22269     '$CC '*)
22270       # Test whether the compiler implicitly links with -lc since on some
22271       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22272       # to ld, don't add -lc before -lgcc.
22273       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22274 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22275       $rm conftest*
22276       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22277
22278       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279   (eval $ac_compile) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } 2>conftest.err; then
22283         soname=conftest
22284         lib=conftest
22285         libobjs=conftest.$ac_objext
22286         deplibs=
22287         wl=$lt_prog_compiler_wl_F77
22288         pic_flag=$lt_prog_compiler_pic_F77
22289         compiler_flags=-v
22290         linker_flags=-v
22291         verstring=
22292         output_objdir=.
22293         libname=conftest
22294         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22295         allow_undefined_flag_F77=
22296         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22297   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22298   ac_status=$?
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); }
22301         then
22302           archive_cmds_need_lc_F77=no
22303         else
22304           archive_cmds_need_lc_F77=yes
22305         fi
22306         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22307       else
22308         cat conftest.err 1>&5
22309       fi
22310       $rm conftest*
22311       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22312 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22313       ;;
22314     esac
22315   fi
22316   ;;
22317 esac
22318
22319 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22320 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22321 library_names_spec=
22322 libname_spec='lib$name'
22323 soname_spec=
22324 shrext_cmds=".so"
22325 postinstall_cmds=
22326 postuninstall_cmds=
22327 finish_cmds=
22328 finish_eval=
22329 shlibpath_var=
22330 shlibpath_overrides_runpath=unknown
22331 version_type=none
22332 dynamic_linker="$host_os ld.so"
22333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22334 if test "$GCC" = yes; then
22335   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22336   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22337     # if the path contains ";" then we assume it to be the separator
22338     # otherwise default to the standard path separator (i.e. ":") - it is
22339     # assumed that no part of a normal pathname contains ";" but that should
22340     # okay in the real world where ";" in dirpaths is itself problematic.
22341     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22342   else
22343     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22344   fi
22345 else
22346   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22347 fi
22348 need_lib_prefix=unknown
22349 hardcode_into_libs=no
22350
22351 # when you set need_version to no, make sure it does not cause -set_version
22352 # flags to be left without arguments
22353 need_version=unknown
22354
22355 case $host_os in
22356 aix3*)
22357   version_type=linux
22358   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359   shlibpath_var=LIBPATH
22360
22361   # AIX 3 has no versioning support, so we append a major version to the name.
22362   soname_spec='${libname}${release}${shared_ext}$major'
22363   ;;
22364
22365 aix4* | aix5*)
22366   version_type=linux
22367   need_lib_prefix=no
22368   need_version=no
22369   hardcode_into_libs=yes
22370   if test "$host_cpu" = ia64; then
22371     # AIX 5 supports IA64
22372     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373     shlibpath_var=LD_LIBRARY_PATH
22374   else
22375     # With GCC up to 2.95.x, collect2 would create an import file
22376     # for dependence libraries.  The import file would start with
22377     # the line `#! .'.  This would cause the generated library to
22378     # depend on `.', always an invalid library.  This was fixed in
22379     # development snapshots of GCC prior to 3.0.
22380     case $host_os in
22381       aix4 | aix4.[01] | aix4.[01].*)
22382       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22383            echo ' yes '
22384            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22385         :
22386       else
22387         can_build_shared=no
22388       fi
22389       ;;
22390     esac
22391     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392     # soname into executable. Probably we can add versioning support to
22393     # collect2, so additional links can be useful in future.
22394     if test "$aix_use_runtimelinking" = yes; then
22395       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396       # instead of lib<name>.a to let people know that these are not
22397       # typical AIX shared libraries.
22398       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22399     else
22400       # We preserve .a as extension for shared libraries through AIX4.2
22401       # and later when we are not doing run time linking.
22402       library_names_spec='${libname}${release}.a $libname.a'
22403       soname_spec='${libname}${release}${shared_ext}$major'
22404     fi
22405     shlibpath_var=LIBPATH
22406   fi
22407   ;;
22408
22409 amigaos*)
22410   library_names_spec='$libname.ixlibrary $libname.a'
22411   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22412   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'
22413   ;;
22414
22415 beos*)
22416   library_names_spec='${libname}${shared_ext}'
22417   dynamic_linker="$host_os ld.so"
22418   shlibpath_var=LIBRARY_PATH
22419   ;;
22420
22421 bsdi[45]*)
22422   version_type=linux
22423   need_version=no
22424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425   soname_spec='${libname}${release}${shared_ext}$major'
22426   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22427   shlibpath_var=LD_LIBRARY_PATH
22428   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22429   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22430   # the default ld.so.conf also contains /usr/contrib/lib and
22431   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22432   # libtool to hard-code these into programs
22433   ;;
22434
22435 cygwin* | mingw* | pw32*)
22436   version_type=windows
22437   shrext_cmds=".dll"
22438   need_version=no
22439   need_lib_prefix=no
22440
22441   case $GCC,$host_os in
22442   yes,cygwin* | yes,mingw* | yes,pw32*)
22443     library_names_spec='$libname.dll.a'
22444     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22445     postinstall_cmds='base_file=`basename \${file}`~
22446       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22447       dldir=$destdir/`dirname \$dlpath`~
22448       test -d \$dldir || mkdir -p \$dldir~
22449       $install_prog $dir/$dlname \$dldir/$dlname~
22450       chmod a+x \$dldir/$dlname'
22451     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22452       dlpath=$dir/\$dldll~
22453        $rm \$dlpath'
22454     shlibpath_overrides_runpath=yes
22455
22456     case $host_os in
22457     cygwin*)
22458       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22459       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22460       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22461       ;;
22462     mingw*)
22463       # MinGW DLLs use traditional 'lib' prefix
22464       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22465       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22466       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22467         # It is most probably a Windows format PATH printed by
22468         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22469         # path with ; separators, and with drive letters. We can handle the
22470         # drive letters (cygwin fileutils understands them), so leave them,
22471         # especially as we might pass files found there to a mingw objdump,
22472         # which wouldn't understand a cygwinified path. Ahh.
22473         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22474       else
22475         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22476       fi
22477       ;;
22478     pw32*)
22479       # pw32 DLLs use 'pw' prefix rather than 'lib'
22480       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22481       ;;
22482     esac
22483     ;;
22484
22485   *)
22486     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22487     ;;
22488   esac
22489   dynamic_linker='Win32 ld.exe'
22490   # FIXME: first we should search . and the directory the executable is in
22491   shlibpath_var=PATH
22492   ;;
22493
22494 darwin* | rhapsody*)
22495   dynamic_linker="$host_os dyld"
22496   version_type=darwin
22497   need_lib_prefix=no
22498   need_version=no
22499   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22500   soname_spec='${libname}${release}${major}$shared_ext'
22501   shlibpath_overrides_runpath=yes
22502   shlibpath_var=DYLD_LIBRARY_PATH
22503   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22504   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22505   if test "$GCC" = yes; then
22506     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"`
22507   else
22508     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22509   fi
22510   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22511   ;;
22512
22513 dgux*)
22514   version_type=linux
22515   need_lib_prefix=no
22516   need_version=no
22517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22518   soname_spec='${libname}${release}${shared_ext}$major'
22519   shlibpath_var=LD_LIBRARY_PATH
22520   ;;
22521
22522 freebsd1*)
22523   dynamic_linker=no
22524   ;;
22525
22526 kfreebsd*-gnu)
22527   version_type=linux
22528   need_lib_prefix=no
22529   need_version=no
22530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22531   soname_spec='${libname}${release}${shared_ext}$major'
22532   shlibpath_var=LD_LIBRARY_PATH
22533   shlibpath_overrides_runpath=no
22534   hardcode_into_libs=yes
22535   dynamic_linker='GNU ld.so'
22536   ;;
22537
22538 freebsd* | dragonfly*)
22539   # DragonFly does not have aout.  When/if they implement a new
22540   # versioning mechanism, adjust this.
22541   if test -x /usr/bin/objformat; then
22542     objformat=`/usr/bin/objformat`
22543   else
22544     case $host_os in
22545     freebsd[123]*) objformat=aout ;;
22546     *) objformat=elf ;;
22547     esac
22548   fi
22549   version_type=freebsd-$objformat
22550   case $version_type in
22551     freebsd-elf*)
22552       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22553       need_version=no
22554       need_lib_prefix=no
22555       ;;
22556     freebsd-*)
22557       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22558       need_version=yes
22559       ;;
22560   esac
22561   shlibpath_var=LD_LIBRARY_PATH
22562   case $host_os in
22563   freebsd2*)
22564     shlibpath_overrides_runpath=yes
22565     ;;
22566   freebsd3.[01]* | freebsdelf3.[01]*)
22567     shlibpath_overrides_runpath=yes
22568     hardcode_into_libs=yes
22569     ;;
22570   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22571   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22572     shlibpath_overrides_runpath=no
22573     hardcode_into_libs=yes
22574     ;;
22575   freebsd*) # from 4.6 on
22576     shlibpath_overrides_runpath=yes
22577     hardcode_into_libs=yes
22578     ;;
22579   esac
22580   ;;
22581
22582 gnu*)
22583   version_type=linux
22584   need_lib_prefix=no
22585   need_version=no
22586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22587   soname_spec='${libname}${release}${shared_ext}$major'
22588   shlibpath_var=LD_LIBRARY_PATH
22589   hardcode_into_libs=yes
22590   ;;
22591
22592 hpux9* | hpux10* | hpux11*)
22593   # Give a soname corresponding to the major version so that dld.sl refuses to
22594   # link against other versions.
22595   version_type=sunos
22596   need_lib_prefix=no
22597   need_version=no
22598   case $host_cpu in
22599   ia64*)
22600     shrext_cmds='.so'
22601     hardcode_into_libs=yes
22602     dynamic_linker="$host_os dld.so"
22603     shlibpath_var=LD_LIBRARY_PATH
22604     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22606     soname_spec='${libname}${release}${shared_ext}$major'
22607     if test "X$HPUX_IA64_MODE" = X32; then
22608       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22609     else
22610       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22611     fi
22612     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22613     ;;
22614    hppa*64*)
22615      shrext_cmds='.sl'
22616      hardcode_into_libs=yes
22617      dynamic_linker="$host_os dld.sl"
22618      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22619      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621      soname_spec='${libname}${release}${shared_ext}$major'
22622      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22623      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22624      ;;
22625    *)
22626     shrext_cmds='.sl'
22627     dynamic_linker="$host_os dld.sl"
22628     shlibpath_var=SHLIB_PATH
22629     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22631     soname_spec='${libname}${release}${shared_ext}$major'
22632     ;;
22633   esac
22634   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22635   postinstall_cmds='chmod 555 $lib'
22636   ;;
22637
22638 interix3*)
22639   version_type=linux
22640   need_lib_prefix=no
22641   need_version=no
22642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22643   soname_spec='${libname}${release}${shared_ext}$major'
22644   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22645   shlibpath_var=LD_LIBRARY_PATH
22646   shlibpath_overrides_runpath=no
22647   hardcode_into_libs=yes
22648   ;;
22649
22650 irix5* | irix6* | nonstopux*)
22651   case $host_os in
22652     nonstopux*) version_type=nonstopux ;;
22653     *)
22654         if test "$lt_cv_prog_gnu_ld" = yes; then
22655                 version_type=linux
22656         else
22657                 version_type=irix
22658         fi ;;
22659   esac
22660   need_lib_prefix=no
22661   need_version=no
22662   soname_spec='${libname}${release}${shared_ext}$major'
22663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22664   case $host_os in
22665   irix5* | nonstopux*)
22666     libsuff= shlibsuff=
22667     ;;
22668   *)
22669     case $LD in # libtool.m4 will add one of these switches to LD
22670     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22671       libsuff= shlibsuff= libmagic=32-bit;;
22672     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22673       libsuff=32 shlibsuff=N32 libmagic=N32;;
22674     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22675       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22676     *) libsuff= shlibsuff= libmagic=never-match;;
22677     esac
22678     ;;
22679   esac
22680   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22681   shlibpath_overrides_runpath=no
22682   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22683   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22684   hardcode_into_libs=yes
22685   ;;
22686
22687 # No shared lib support for Linux oldld, aout, or coff.
22688 linux*oldld* | linux*aout* | linux*coff*)
22689   dynamic_linker=no
22690   ;;
22691
22692 # This must be Linux ELF.
22693 linux*)
22694   version_type=linux
22695   need_lib_prefix=no
22696   need_version=no
22697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698   soname_spec='${libname}${release}${shared_ext}$major'
22699   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22700   shlibpath_var=LD_LIBRARY_PATH
22701   shlibpath_overrides_runpath=no
22702   # This implies no fast_install, which is unacceptable.
22703   # Some rework will be needed to allow for fast_install
22704   # before this can be enabled.
22705   hardcode_into_libs=yes
22706
22707   # Append ld.so.conf contents to the search path
22708   if test -f /etc/ld.so.conf; then
22709     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' ' '`
22710     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22711   fi
22712
22713   # We used to test for /lib/ld.so.1 and disable shared libraries on
22714   # powerpc, because MkLinux only supported shared libraries with the
22715   # GNU dynamic linker.  Since this was broken with cross compilers,
22716   # most powerpc-linux boxes support dynamic linking these days and
22717   # people can always --disable-shared, the test was removed, and we
22718   # assume the GNU/Linux dynamic linker is in use.
22719   dynamic_linker='GNU/Linux ld.so'
22720   ;;
22721
22722 knetbsd*-gnu)
22723   version_type=linux
22724   need_lib_prefix=no
22725   need_version=no
22726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22727   soname_spec='${libname}${release}${shared_ext}$major'
22728   shlibpath_var=LD_LIBRARY_PATH
22729   shlibpath_overrides_runpath=no
22730   hardcode_into_libs=yes
22731   dynamic_linker='GNU ld.so'
22732   ;;
22733
22734 netbsd*)
22735   version_type=sunos
22736   need_lib_prefix=no
22737   need_version=no
22738   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22740     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22741     dynamic_linker='NetBSD (a.out) ld.so'
22742   else
22743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22744     soname_spec='${libname}${release}${shared_ext}$major'
22745     dynamic_linker='NetBSD ld.elf_so'
22746   fi
22747   shlibpath_var=LD_LIBRARY_PATH
22748   shlibpath_overrides_runpath=yes
22749   hardcode_into_libs=yes
22750   ;;
22751
22752 newsos6)
22753   version_type=linux
22754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22755   shlibpath_var=LD_LIBRARY_PATH
22756   shlibpath_overrides_runpath=yes
22757   ;;
22758
22759 nto-qnx*)
22760   version_type=linux
22761   need_lib_prefix=no
22762   need_version=no
22763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764   soname_spec='${libname}${release}${shared_ext}$major'
22765   shlibpath_var=LD_LIBRARY_PATH
22766   shlibpath_overrides_runpath=yes
22767   ;;
22768
22769 openbsd*)
22770   version_type=sunos
22771   sys_lib_dlsearch_path_spec="/usr/lib"
22772   need_lib_prefix=no
22773   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22774   case $host_os in
22775     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22776     *)                         need_version=no  ;;
22777   esac
22778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22779   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22780   shlibpath_var=LD_LIBRARY_PATH
22781   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22782     case $host_os in
22783       openbsd2.[89] | openbsd2.[89].*)
22784         shlibpath_overrides_runpath=no
22785         ;;
22786       *)
22787         shlibpath_overrides_runpath=yes
22788         ;;
22789       esac
22790   else
22791     shlibpath_overrides_runpath=yes
22792   fi
22793   ;;
22794
22795 os2*)
22796   libname_spec='$name'
22797   shrext_cmds=".dll"
22798   need_lib_prefix=no
22799   library_names_spec='$libname${shared_ext} $libname.a'
22800   dynamic_linker='OS/2 ld.exe'
22801   shlibpath_var=LIBPATH
22802   ;;
22803
22804 osf3* | osf4* | osf5*)
22805   version_type=osf
22806   need_lib_prefix=no
22807   need_version=no
22808   soname_spec='${libname}${release}${shared_ext}$major'
22809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22810   shlibpath_var=LD_LIBRARY_PATH
22811   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22812   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22813   ;;
22814
22815 solaris*)
22816   version_type=linux
22817   need_lib_prefix=no
22818   need_version=no
22819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22820   soname_spec='${libname}${release}${shared_ext}$major'
22821   shlibpath_var=LD_LIBRARY_PATH
22822   shlibpath_overrides_runpath=yes
22823   hardcode_into_libs=yes
22824   # ldd complains unless libraries are executable
22825   postinstall_cmds='chmod +x $lib'
22826   ;;
22827
22828 sunos4*)
22829   version_type=sunos
22830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22831   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22832   shlibpath_var=LD_LIBRARY_PATH
22833   shlibpath_overrides_runpath=yes
22834   if test "$with_gnu_ld" = yes; then
22835     need_lib_prefix=no
22836   fi
22837   need_version=yes
22838   ;;
22839
22840 sysv4 | sysv4.3*)
22841   version_type=linux
22842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22843   soname_spec='${libname}${release}${shared_ext}$major'
22844   shlibpath_var=LD_LIBRARY_PATH
22845   case $host_vendor in
22846     sni)
22847       shlibpath_overrides_runpath=no
22848       need_lib_prefix=no
22849       export_dynamic_flag_spec='${wl}-Blargedynsym'
22850       runpath_var=LD_RUN_PATH
22851       ;;
22852     siemens)
22853       need_lib_prefix=no
22854       ;;
22855     motorola)
22856       need_lib_prefix=no
22857       need_version=no
22858       shlibpath_overrides_runpath=no
22859       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22860       ;;
22861   esac
22862   ;;
22863
22864 sysv4*MP*)
22865   if test -d /usr/nec ;then
22866     version_type=linux
22867     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22868     soname_spec='$libname${shared_ext}.$major'
22869     shlibpath_var=LD_LIBRARY_PATH
22870   fi
22871   ;;
22872
22873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22874   version_type=freebsd-elf
22875   need_lib_prefix=no
22876   need_version=no
22877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22878   soname_spec='${libname}${release}${shared_ext}$major'
22879   shlibpath_var=LD_LIBRARY_PATH
22880   hardcode_into_libs=yes
22881   if test "$with_gnu_ld" = yes; then
22882     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22883     shlibpath_overrides_runpath=no
22884   else
22885     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22886     shlibpath_overrides_runpath=yes
22887     case $host_os in
22888       sco3.2v5*)
22889         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22890         ;;
22891     esac
22892   fi
22893   sys_lib_dlsearch_path_spec='/usr/lib'
22894   ;;
22895
22896 uts4*)
22897   version_type=linux
22898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899   soname_spec='${libname}${release}${shared_ext}$major'
22900   shlibpath_var=LD_LIBRARY_PATH
22901   ;;
22902
22903 *)
22904   dynamic_linker=no
22905   ;;
22906 esac
22907 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22908 echo "${ECHO_T}$dynamic_linker" >&6; }
22909 test "$dynamic_linker" = no && can_build_shared=no
22910
22911 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22912 if test "$GCC" = yes; then
22913   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22914 fi
22915
22916 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22917 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22918 hardcode_action_F77=
22919 if test -n "$hardcode_libdir_flag_spec_F77" || \
22920    test -n "$runpath_var_F77" || \
22921    test "X$hardcode_automatic_F77" = "Xyes" ; then
22922
22923   # We can hardcode non-existant directories.
22924   if test "$hardcode_direct_F77" != no &&
22925      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22926      # have to relink, otherwise we might link with an installed library
22927      # when we should be linking with a yet-to-be-installed one
22928      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22929      test "$hardcode_minus_L_F77" != no; then
22930     # Linking always hardcodes the temporary library directory.
22931     hardcode_action_F77=relink
22932   else
22933     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22934     hardcode_action_F77=immediate
22935   fi
22936 else
22937   # We cannot hardcode anything, or else we can only hardcode existing
22938   # directories.
22939   hardcode_action_F77=unsupported
22940 fi
22941 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22942 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22943
22944 if test "$hardcode_action_F77" = relink; then
22945   # Fast installation is not supported
22946   enable_fast_install=no
22947 elif test "$shlibpath_overrides_runpath" = yes ||
22948      test "$enable_shared" = no; then
22949   # Fast installation is not necessary
22950   enable_fast_install=needless
22951 fi
22952
22953
22954 # The else clause should only fire when bootstrapping the
22955 # libtool distribution, otherwise you forgot to ship ltmain.sh
22956 # with your package, and you will get complaints that there are
22957 # no rules to generate ltmain.sh.
22958 if test -f "$ltmain"; then
22959   # See if we are running on zsh, and set the options which allow our commands through
22960   # without removal of \ escapes.
22961   if test -n "${ZSH_VERSION+set}" ; then
22962     setopt NO_GLOB_SUBST
22963   fi
22964   # Now quote all the things that may contain metacharacters while being
22965   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22966   # variables and quote the copies for generation of the libtool script.
22967   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22968     SED SHELL STRIP \
22969     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22970     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22971     deplibs_check_method reload_flag reload_cmds need_locks \
22972     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22973     lt_cv_sys_global_symbol_to_c_name_address \
22974     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22975     old_postinstall_cmds old_postuninstall_cmds \
22976     compiler_F77 \
22977     CC_F77 \
22978     LD_F77 \
22979     lt_prog_compiler_wl_F77 \
22980     lt_prog_compiler_pic_F77 \
22981     lt_prog_compiler_static_F77 \
22982     lt_prog_compiler_no_builtin_flag_F77 \
22983     export_dynamic_flag_spec_F77 \
22984     thread_safe_flag_spec_F77 \
22985     whole_archive_flag_spec_F77 \
22986     enable_shared_with_static_runtimes_F77 \
22987     old_archive_cmds_F77 \
22988     old_archive_from_new_cmds_F77 \
22989     predep_objects_F77 \
22990     postdep_objects_F77 \
22991     predeps_F77 \
22992     postdeps_F77 \
22993     compiler_lib_search_path_F77 \
22994     archive_cmds_F77 \
22995     archive_expsym_cmds_F77 \
22996     postinstall_cmds_F77 \
22997     postuninstall_cmds_F77 \
22998     old_archive_from_expsyms_cmds_F77 \
22999     allow_undefined_flag_F77 \
23000     no_undefined_flag_F77 \
23001     export_symbols_cmds_F77 \
23002     hardcode_libdir_flag_spec_F77 \
23003     hardcode_libdir_flag_spec_ld_F77 \
23004     hardcode_libdir_separator_F77 \
23005     hardcode_automatic_F77 \
23006     module_cmds_F77 \
23007     module_expsym_cmds_F77 \
23008     lt_cv_prog_compiler_c_o_F77 \
23009     exclude_expsyms_F77 \
23010     include_expsyms_F77; do
23011
23012     case $var in
23013     old_archive_cmds_F77 | \
23014     old_archive_from_new_cmds_F77 | \
23015     archive_cmds_F77 | \
23016     archive_expsym_cmds_F77 | \
23017     module_cmds_F77 | \
23018     module_expsym_cmds_F77 | \
23019     old_archive_from_expsyms_cmds_F77 | \
23020     export_symbols_cmds_F77 | \
23021     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23022     postinstall_cmds | postuninstall_cmds | \
23023     old_postinstall_cmds | old_postuninstall_cmds | \
23024     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23025       # Double-quote double-evaled strings.
23026       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23027       ;;
23028     *)
23029       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23030       ;;
23031     esac
23032   done
23033
23034   case $lt_echo in
23035   *'\$0 --fallback-echo"')
23036     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23037     ;;
23038   esac
23039
23040 cfgfile="$ofile"
23041
23042   cat <<__EOF__ >> "$cfgfile"
23043 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23044
23045 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23046
23047 # Shell to use when invoking shell scripts.
23048 SHELL=$lt_SHELL
23049
23050 # Whether or not to build shared libraries.
23051 build_libtool_libs=$enable_shared
23052
23053 # Whether or not to build static libraries.
23054 build_old_libs=$enable_static
23055
23056 # Whether or not to add -lc for building shared libraries.
23057 build_libtool_need_lc=$archive_cmds_need_lc_F77
23058
23059 # Whether or not to disallow shared libs when runtime libs are static
23060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23061
23062 # Whether or not to optimize for fast installation.
23063 fast_install=$enable_fast_install
23064
23065 # The host system.
23066 host_alias=$host_alias
23067 host=$host
23068 host_os=$host_os
23069
23070 # The build system.
23071 build_alias=$build_alias
23072 build=$build
23073 build_os=$build_os
23074
23075 # An echo program that does not interpret backslashes.
23076 echo=$lt_echo
23077
23078 # The archiver.
23079 AR=$lt_AR
23080 AR_FLAGS=$lt_AR_FLAGS
23081
23082 # A C compiler.
23083 LTCC=$lt_LTCC
23084
23085 # LTCC compiler flags.
23086 LTCFLAGS=$lt_LTCFLAGS
23087
23088 # A language-specific compiler.
23089 CC=$lt_compiler_F77
23090
23091 # Is the compiler the GNU C compiler?
23092 with_gcc=$GCC_F77
23093
23094 # An ERE matcher.
23095 EGREP=$lt_EGREP
23096
23097 # The linker used to build libraries.
23098 LD=$lt_LD_F77
23099
23100 # Whether we need hard or soft links.
23101 LN_S=$lt_LN_S
23102
23103 # A BSD-compatible nm program.
23104 NM=$lt_NM
23105
23106 # A symbol stripping program
23107 STRIP=$lt_STRIP
23108
23109 # Used to examine libraries when file_magic_cmd begins "file"
23110 MAGIC_CMD=$MAGIC_CMD
23111
23112 # Used on cygwin: DLL creation program.
23113 DLLTOOL="$DLLTOOL"
23114
23115 # Used on cygwin: object dumper.
23116 OBJDUMP="$OBJDUMP"
23117
23118 # Used on cygwin: assembler.
23119 AS="$AS"
23120
23121 # The name of the directory that contains temporary libtool files.
23122 objdir=$objdir
23123
23124 # How to create reloadable object files.
23125 reload_flag=$lt_reload_flag
23126 reload_cmds=$lt_reload_cmds
23127
23128 # How to pass a linker flag through the compiler.
23129 wl=$lt_lt_prog_compiler_wl_F77
23130
23131 # Object file suffix (normally "o").
23132 objext="$ac_objext"
23133
23134 # Old archive suffix (normally "a").
23135 libext="$libext"
23136
23137 # Shared library suffix (normally ".so").
23138 shrext_cmds='$shrext_cmds'
23139
23140 # Executable file suffix (normally "").
23141 exeext="$exeext"
23142
23143 # Additional compiler flags for building library objects.
23144 pic_flag=$lt_lt_prog_compiler_pic_F77
23145 pic_mode=$pic_mode
23146
23147 # What is the maximum length of a command?
23148 max_cmd_len=$lt_cv_sys_max_cmd_len
23149
23150 # Does compiler simultaneously support -c and -o options?
23151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23152
23153 # Must we lock files when doing compilation?
23154 need_locks=$lt_need_locks
23155
23156 # Do we need the lib prefix for modules?
23157 need_lib_prefix=$need_lib_prefix
23158
23159 # Do we need a version for libraries?
23160 need_version=$need_version
23161
23162 # Whether dlopen is supported.
23163 dlopen_support=$enable_dlopen
23164
23165 # Whether dlopen of programs is supported.
23166 dlopen_self=$enable_dlopen_self
23167
23168 # Whether dlopen of statically linked programs is supported.
23169 dlopen_self_static=$enable_dlopen_self_static
23170
23171 # Compiler flag to prevent dynamic linking.
23172 link_static_flag=$lt_lt_prog_compiler_static_F77
23173
23174 # Compiler flag to turn off builtin functions.
23175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23176
23177 # Compiler flag to allow reflexive dlopens.
23178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23179
23180 # Compiler flag to generate shared objects directly from archives.
23181 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23182
23183 # Compiler flag to generate thread-safe objects.
23184 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23185
23186 # Library versioning type.
23187 version_type=$version_type
23188
23189 # Format of library name prefix.
23190 libname_spec=$lt_libname_spec
23191
23192 # List of archive names.  First name is the real one, the rest are links.
23193 # The last name is the one that the linker finds with -lNAME.
23194 library_names_spec=$lt_library_names_spec
23195
23196 # The coded name of the library, if different from the real name.
23197 soname_spec=$lt_soname_spec
23198
23199 # Commands used to build and install an old-style archive.
23200 RANLIB=$lt_RANLIB
23201 old_archive_cmds=$lt_old_archive_cmds_F77
23202 old_postinstall_cmds=$lt_old_postinstall_cmds
23203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23204
23205 # Create an old-style archive from a shared archive.
23206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23207
23208 # Create a temporary old-style archive to link instead of a shared archive.
23209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23210
23211 # Commands used to build and install a shared archive.
23212 archive_cmds=$lt_archive_cmds_F77
23213 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23214 postinstall_cmds=$lt_postinstall_cmds
23215 postuninstall_cmds=$lt_postuninstall_cmds
23216
23217 # Commands used to build a loadable module (assumed same as above if empty)
23218 module_cmds=$lt_module_cmds_F77
23219 module_expsym_cmds=$lt_module_expsym_cmds_F77
23220
23221 # Commands to strip libraries.
23222 old_striplib=$lt_old_striplib
23223 striplib=$lt_striplib
23224
23225 # Dependencies to place before the objects being linked to create a
23226 # shared library.
23227 predep_objects=$lt_predep_objects_F77
23228
23229 # Dependencies to place after the objects being linked to create a
23230 # shared library.
23231 postdep_objects=$lt_postdep_objects_F77
23232
23233 # Dependencies to place before the objects being linked to create a
23234 # shared library.
23235 predeps=$lt_predeps_F77
23236
23237 # Dependencies to place after the objects being linked to create a
23238 # shared library.
23239 postdeps=$lt_postdeps_F77
23240
23241 # The library search path used internally by the compiler when linking
23242 # a shared library.
23243 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23244
23245 # Method to check whether dependent libraries are shared objects.
23246 deplibs_check_method=$lt_deplibs_check_method
23247
23248 # Command to use when deplibs_check_method == file_magic.
23249 file_magic_cmd=$lt_file_magic_cmd
23250
23251 # Flag that allows shared libraries with undefined symbols to be built.
23252 allow_undefined_flag=$lt_allow_undefined_flag_F77
23253
23254 # Flag that forces no undefined symbols.
23255 no_undefined_flag=$lt_no_undefined_flag_F77
23256
23257 # Commands used to finish a libtool library installation in a directory.
23258 finish_cmds=$lt_finish_cmds
23259
23260 # Same as above, but a single script fragment to be evaled but not shown.
23261 finish_eval=$lt_finish_eval
23262
23263 # Take the output of nm and produce a listing of raw symbols and C names.
23264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23265
23266 # Transform the output of nm in a proper C declaration
23267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23268
23269 # Transform the output of nm in a C name address pair
23270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23271
23272 # This is the shared library runtime path variable.
23273 runpath_var=$runpath_var
23274
23275 # This is the shared library path variable.
23276 shlibpath_var=$shlibpath_var
23277
23278 # Is shlibpath searched before the hard-coded library search path?
23279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23280
23281 # How to hardcode a shared library path into an executable.
23282 hardcode_action=$hardcode_action_F77
23283
23284 # Whether we should hardcode library paths into libraries.
23285 hardcode_into_libs=$hardcode_into_libs
23286
23287 # Flag to hardcode \$libdir into a binary during linking.
23288 # This must work even if \$libdir does not exist.
23289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23290
23291 # If ld is used when linking, flag to hardcode \$libdir into
23292 # a binary during linking. This must work even if \$libdir does
23293 # not exist.
23294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23295
23296 # Whether we need a single -rpath flag with a separated argument.
23297 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23298
23299 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23300 # resulting binary.
23301 hardcode_direct=$hardcode_direct_F77
23302
23303 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23304 # resulting binary.
23305 hardcode_minus_L=$hardcode_minus_L_F77
23306
23307 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23308 # the resulting binary.
23309 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23310
23311 # Set to yes if building a shared library automatically hardcodes DIR into the library
23312 # and all subsequent libraries and executables linked against it.
23313 hardcode_automatic=$hardcode_automatic_F77
23314
23315 # Variables whose values should be saved in libtool wrapper scripts and
23316 # restored at relink time.
23317 variables_saved_for_relink="$variables_saved_for_relink"
23318
23319 # Whether libtool must link a program against all its dependency libraries.
23320 link_all_deplibs=$link_all_deplibs_F77
23321
23322 # Compile-time system search path for libraries
23323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23324
23325 # Run-time system search path for libraries
23326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23327
23328 # Fix the shell variable \$srcfile for the compiler.
23329 fix_srcfile_path="$fix_srcfile_path_F77"
23330
23331 # Set to yes if exported symbols are required.
23332 always_export_symbols=$always_export_symbols_F77
23333
23334 # The commands to list exported symbols.
23335 export_symbols_cmds=$lt_export_symbols_cmds_F77
23336
23337 # The commands to extract the exported symbol list from a shared archive.
23338 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23339
23340 # Symbols that should not be listed in the preloaded symbols.
23341 exclude_expsyms=$lt_exclude_expsyms_F77
23342
23343 # Symbols that must always be exported.
23344 include_expsyms=$lt_include_expsyms_F77
23345
23346 # ### END LIBTOOL TAG CONFIG: $tagname
23347
23348 __EOF__
23349
23350
23351 else
23352   # If there is no Makefile yet, we rely on a make rule to execute
23353   # `config.status --recheck' to rerun these tests and create the
23354   # libtool script then.
23355   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23356   if test -f "$ltmain_in"; then
23357     test -f Makefile && make "$ltmain"
23358   fi
23359 fi
23360
23361
23362 ac_ext=c
23363 ac_cpp='$CPP $CPPFLAGS'
23364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23367
23368 CC="$lt_save_CC"
23369
23370         else
23371           tagname=""
23372         fi
23373         ;;
23374
23375       GCJ)
23376         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23377           ac_ext=c
23378 ac_cpp='$CPP $CPPFLAGS'
23379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23382
23383
23384 # Source file extension for Java test sources.
23385 ac_ext=java
23386
23387 # Object file extension for compiled Java test sources.
23388 objext=o
23389 objext_GCJ=$objext
23390
23391 # Code to be used in simple compile tests
23392 lt_simple_compile_test_code="class foo {}\n"
23393
23394 # Code to be used in simple link tests
23395 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23396
23397 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23398
23399 # If no C compiler was specified, use CC.
23400 LTCC=${LTCC-"$CC"}
23401
23402 # If no C compiler flags were specified, use CFLAGS.
23403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23404
23405 # Allow CC to be a program name with arguments.
23406 compiler=$CC
23407
23408
23409 # save warnings/boilerplate of simple test code
23410 ac_outfile=conftest.$ac_objext
23411 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23413 _lt_compiler_boilerplate=`cat conftest.err`
23414 $rm conftest*
23415
23416 ac_outfile=conftest.$ac_objext
23417 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23419 _lt_linker_boilerplate=`cat conftest.err`
23420 $rm conftest*
23421
23422
23423 # Allow CC to be a program name with arguments.
23424 lt_save_CC="$CC"
23425 CC=${GCJ-"gcj"}
23426 compiler=$CC
23427 compiler_GCJ=$CC
23428 for cc_temp in $compiler""; do
23429   case $cc_temp in
23430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23432     \-*) ;;
23433     *) break;;
23434   esac
23435 done
23436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23437
23438
23439 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23440 archive_cmds_need_lc_GCJ=no
23441
23442 old_archive_cmds_GCJ=$old_archive_cmds
23443
23444
23445 lt_prog_compiler_no_builtin_flag_GCJ=
23446
23447 if test "$GCC" = yes; then
23448   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23449
23450
23451 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23452 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23453 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23454   echo $ECHO_N "(cached) $ECHO_C" >&6
23455 else
23456   lt_cv_prog_compiler_rtti_exceptions=no
23457   ac_outfile=conftest.$ac_objext
23458    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23459    lt_compiler_flag="-fno-rtti -fno-exceptions"
23460    # Insert the option either (1) after the last *FLAGS variable, or
23461    # (2) before a word containing "conftest.", or (3) at the end.
23462    # Note that $ac_compile itself does not contain backslashes and begins
23463    # with a dollar sign (not a hyphen), so the echo should work correctly.
23464    # The option is referenced via a variable to avoid confusing sed.
23465    lt_compile=`echo "$ac_compile" | $SED \
23466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23468    -e 's:$: $lt_compiler_flag:'`
23469    (eval echo "\"\$as_me:23469: $lt_compile\"" >&5)
23470    (eval "$lt_compile" 2>conftest.err)
23471    ac_status=$?
23472    cat conftest.err >&5
23473    echo "$as_me:23473: \$? = $ac_status" >&5
23474    if (exit $ac_status) && test -s "$ac_outfile"; then
23475      # The compiler can only warn and ignore the option if not recognized
23476      # So say no if there are warnings other than the usual output.
23477      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23478      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23479      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23480        lt_cv_prog_compiler_rtti_exceptions=yes
23481      fi
23482    fi
23483    $rm conftest*
23484
23485 fi
23486 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23487 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23488
23489 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23490     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23491 else
23492     :
23493 fi
23494
23495 fi
23496
23497 lt_prog_compiler_wl_GCJ=
23498 lt_prog_compiler_pic_GCJ=
23499 lt_prog_compiler_static_GCJ=
23500
23501 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23503
23504   if test "$GCC" = yes; then
23505     lt_prog_compiler_wl_GCJ='-Wl,'
23506     lt_prog_compiler_static_GCJ='-static'
23507
23508     case $host_os in
23509       aix*)
23510       # All AIX code is PIC.
23511       if test "$host_cpu" = ia64; then
23512         # AIX 5 now supports IA64 processor
23513         lt_prog_compiler_static_GCJ='-Bstatic'
23514       fi
23515       ;;
23516
23517     amigaos*)
23518       # FIXME: we need at least 68020 code to build shared libraries, but
23519       # adding the `-m68020' flag to GCC prevents building anything better,
23520       # like `-m68040'.
23521       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23522       ;;
23523
23524     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23525       # PIC is the default for these OSes.
23526       ;;
23527
23528     mingw* | pw32* | os2*)
23529       # This hack is so that the source file can tell whether it is being
23530       # built for inclusion in a dll (and should export symbols for example).
23531       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23532       ;;
23533
23534     darwin* | rhapsody*)
23535       # PIC is the default on this platform
23536       # Common symbols not allowed in MH_DYLIB files
23537       lt_prog_compiler_pic_GCJ='-fno-common'
23538       ;;
23539
23540     interix3*)
23541       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23542       # Instead, we relocate shared libraries at runtime.
23543       ;;
23544
23545     msdosdjgpp*)
23546       # Just because we use GCC doesn't mean we suddenly get shared libraries
23547       # on systems that don't support them.
23548       lt_prog_compiler_can_build_shared_GCJ=no
23549       enable_shared=no
23550       ;;
23551
23552     sysv4*MP*)
23553       if test -d /usr/nec; then
23554         lt_prog_compiler_pic_GCJ=-Kconform_pic
23555       fi
23556       ;;
23557
23558     hpux*)
23559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23560       # not for PA HP-UX.
23561       case $host_cpu in
23562       hppa*64*|ia64*)
23563         # +Z the default
23564         ;;
23565       *)
23566         lt_prog_compiler_pic_GCJ='-fPIC'
23567         ;;
23568       esac
23569       ;;
23570
23571     *)
23572       lt_prog_compiler_pic_GCJ='-fPIC'
23573       ;;
23574     esac
23575   else
23576     # PORTME Check for flag to pass linker flags through the system compiler.
23577     case $host_os in
23578     aix*)
23579       lt_prog_compiler_wl_GCJ='-Wl,'
23580       if test "$host_cpu" = ia64; then
23581         # AIX 5 now supports IA64 processor
23582         lt_prog_compiler_static_GCJ='-Bstatic'
23583       else
23584         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23585       fi
23586       ;;
23587       darwin*)
23588         # PIC is the default on this platform
23589         # Common symbols not allowed in MH_DYLIB files
23590        case $cc_basename in
23591          xlc*)
23592          lt_prog_compiler_pic_GCJ='-qnocommon'
23593          lt_prog_compiler_wl_GCJ='-Wl,'
23594          ;;
23595        esac
23596        ;;
23597
23598     mingw* | pw32* | os2*)
23599       # This hack is so that the source file can tell whether it is being
23600       # built for inclusion in a dll (and should export symbols for example).
23601       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23602       ;;
23603
23604     hpux9* | hpux10* | hpux11*)
23605       lt_prog_compiler_wl_GCJ='-Wl,'
23606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23607       # not for PA HP-UX.
23608       case $host_cpu in
23609       hppa*64*|ia64*)
23610         # +Z the default
23611         ;;
23612       *)
23613         lt_prog_compiler_pic_GCJ='+Z'
23614         ;;
23615       esac
23616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23617       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23618       ;;
23619
23620     irix5* | irix6* | nonstopux*)
23621       lt_prog_compiler_wl_GCJ='-Wl,'
23622       # PIC (with -KPIC) is the default.
23623       lt_prog_compiler_static_GCJ='-non_shared'
23624       ;;
23625
23626     newsos6)
23627       lt_prog_compiler_pic_GCJ='-KPIC'
23628       lt_prog_compiler_static_GCJ='-Bstatic'
23629       ;;
23630
23631     linux*)
23632       case $cc_basename in
23633       icc* | ecc*)
23634         lt_prog_compiler_wl_GCJ='-Wl,'
23635         lt_prog_compiler_pic_GCJ='-KPIC'
23636         lt_prog_compiler_static_GCJ='-static'
23637         ;;
23638       pgcc* | pgf77* | pgf90* | pgf95*)
23639         # Portland Group compilers (*not* the Pentium gcc compiler,
23640         # which looks to be a dead project)
23641         lt_prog_compiler_wl_GCJ='-Wl,'
23642         lt_prog_compiler_pic_GCJ='-fpic'
23643         lt_prog_compiler_static_GCJ='-Bstatic'
23644         ;;
23645       ccc*)
23646         lt_prog_compiler_wl_GCJ='-Wl,'
23647         # All Alpha code is PIC.
23648         lt_prog_compiler_static_GCJ='-non_shared'
23649         ;;
23650       esac
23651       ;;
23652
23653     osf3* | osf4* | osf5*)
23654       lt_prog_compiler_wl_GCJ='-Wl,'
23655       # All OSF/1 code is PIC.
23656       lt_prog_compiler_static_GCJ='-non_shared'
23657       ;;
23658
23659     solaris*)
23660       lt_prog_compiler_pic_GCJ='-KPIC'
23661       lt_prog_compiler_static_GCJ='-Bstatic'
23662       case $cc_basename in
23663       f77* | f90* | f95*)
23664         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23665       *)
23666         lt_prog_compiler_wl_GCJ='-Wl,';;
23667       esac
23668       ;;
23669
23670     sunos4*)
23671       lt_prog_compiler_wl_GCJ='-Qoption ld '
23672       lt_prog_compiler_pic_GCJ='-PIC'
23673       lt_prog_compiler_static_GCJ='-Bstatic'
23674       ;;
23675
23676     sysv4 | sysv4.2uw2* | sysv4.3*)
23677       lt_prog_compiler_wl_GCJ='-Wl,'
23678       lt_prog_compiler_pic_GCJ='-KPIC'
23679       lt_prog_compiler_static_GCJ='-Bstatic'
23680       ;;
23681
23682     sysv4*MP*)
23683       if test -d /usr/nec ;then
23684         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23685         lt_prog_compiler_static_GCJ='-Bstatic'
23686       fi
23687       ;;
23688
23689     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23690       lt_prog_compiler_wl_GCJ='-Wl,'
23691       lt_prog_compiler_pic_GCJ='-KPIC'
23692       lt_prog_compiler_static_GCJ='-Bstatic'
23693       ;;
23694
23695     unicos*)
23696       lt_prog_compiler_wl_GCJ='-Wl,'
23697       lt_prog_compiler_can_build_shared_GCJ=no
23698       ;;
23699
23700     uts4*)
23701       lt_prog_compiler_pic_GCJ='-pic'
23702       lt_prog_compiler_static_GCJ='-Bstatic'
23703       ;;
23704
23705     *)
23706       lt_prog_compiler_can_build_shared_GCJ=no
23707       ;;
23708     esac
23709   fi
23710
23711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23712 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23713
23714 #
23715 # Check to make sure the PIC flag actually works.
23716 #
23717 if test -n "$lt_prog_compiler_pic_GCJ"; then
23718
23719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23721 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23722   echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724   lt_prog_compiler_pic_works_GCJ=no
23725   ac_outfile=conftest.$ac_objext
23726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23727    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23728    # Insert the option either (1) after the last *FLAGS variable, or
23729    # (2) before a word containing "conftest.", or (3) at the end.
23730    # Note that $ac_compile itself does not contain backslashes and begins
23731    # with a dollar sign (not a hyphen), so the echo should work correctly.
23732    # The option is referenced via a variable to avoid confusing sed.
23733    lt_compile=`echo "$ac_compile" | $SED \
23734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23736    -e 's:$: $lt_compiler_flag:'`
23737    (eval echo "\"\$as_me:23737: $lt_compile\"" >&5)
23738    (eval "$lt_compile" 2>conftest.err)
23739    ac_status=$?
23740    cat conftest.err >&5
23741    echo "$as_me:23741: \$? = $ac_status" >&5
23742    if (exit $ac_status) && test -s "$ac_outfile"; then
23743      # The compiler can only warn and ignore the option if not recognized
23744      # So say no if there are warnings other than the usual output.
23745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23748        lt_prog_compiler_pic_works_GCJ=yes
23749      fi
23750    fi
23751    $rm conftest*
23752
23753 fi
23754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23756
23757 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23758     case $lt_prog_compiler_pic_GCJ in
23759      "" | " "*) ;;
23760      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23761      esac
23762 else
23763     lt_prog_compiler_pic_GCJ=
23764      lt_prog_compiler_can_build_shared_GCJ=no
23765 fi
23766
23767 fi
23768 case $host_os in
23769   # For platforms which do not support PIC, -DPIC is meaningless:
23770   *djgpp*)
23771     lt_prog_compiler_pic_GCJ=
23772     ;;
23773   *)
23774     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23775     ;;
23776 esac
23777
23778 #
23779 # Check to make sure the static flag actually works.
23780 #
23781 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23784 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23785   echo $ECHO_N "(cached) $ECHO_C" >&6
23786 else
23787   lt_prog_compiler_static_works_GCJ=no
23788    save_LDFLAGS="$LDFLAGS"
23789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23790    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23792      # The linker can only warn and ignore the option if not recognized
23793      # So say no if there are warnings
23794      if test -s conftest.err; then
23795        # Append any errors to the config.log.
23796        cat conftest.err 1>&5
23797        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23799        if diff conftest.exp conftest.er2 >/dev/null; then
23800          lt_prog_compiler_static_works_GCJ=yes
23801        fi
23802      else
23803        lt_prog_compiler_static_works_GCJ=yes
23804      fi
23805    fi
23806    $rm conftest*
23807    LDFLAGS="$save_LDFLAGS"
23808
23809 fi
23810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23811 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23812
23813 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23814     :
23815 else
23816     lt_prog_compiler_static_GCJ=
23817 fi
23818
23819
23820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23822 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23823   echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825   lt_cv_prog_compiler_c_o_GCJ=no
23826    $rm -r conftest 2>/dev/null
23827    mkdir conftest
23828    cd conftest
23829    mkdir out
23830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831
23832    lt_compiler_flag="-o out/conftest2.$ac_objext"
23833    # Insert the option either (1) after the last *FLAGS variable, or
23834    # (2) before a word containing "conftest.", or (3) at the end.
23835    # Note that $ac_compile itself does not contain backslashes and begins
23836    # with a dollar sign (not a hyphen), so the echo should work correctly.
23837    lt_compile=`echo "$ac_compile" | $SED \
23838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23840    -e 's:$: $lt_compiler_flag:'`
23841    (eval echo "\"\$as_me:23841: $lt_compile\"" >&5)
23842    (eval "$lt_compile" 2>out/conftest.err)
23843    ac_status=$?
23844    cat out/conftest.err >&5
23845    echo "$as_me:23845: \$? = $ac_status" >&5
23846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23847    then
23848      # The compiler can only warn and ignore the option if not recognized
23849      # So say no if there are warnings
23850      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23853        lt_cv_prog_compiler_c_o_GCJ=yes
23854      fi
23855    fi
23856    chmod u+w . 2>&5
23857    $rm conftest*
23858    # SGI C++ compiler will create directory out/ii_files/ for
23859    # template instantiation
23860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23861    $rm out/* && rmdir out
23862    cd ..
23863    rmdir conftest
23864    $rm conftest*
23865
23866 fi
23867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23869
23870
23871 hard_links="nottested"
23872 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23873   # do not overwrite the value of need_locks provided by the user
23874   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23876   hard_links=yes
23877   $rm conftest*
23878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23879   touch conftest.a
23880   ln conftest.a conftest.b 2>&5 || hard_links=no
23881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23882   { echo "$as_me:$LINENO: result: $hard_links" >&5
23883 echo "${ECHO_T}$hard_links" >&6; }
23884   if test "$hard_links" = no; then
23885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23887     need_locks=warn
23888   fi
23889 else
23890   need_locks=no
23891 fi
23892
23893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23895
23896   runpath_var=
23897   allow_undefined_flag_GCJ=
23898   enable_shared_with_static_runtimes_GCJ=no
23899   archive_cmds_GCJ=
23900   archive_expsym_cmds_GCJ=
23901   old_archive_From_new_cmds_GCJ=
23902   old_archive_from_expsyms_cmds_GCJ=
23903   export_dynamic_flag_spec_GCJ=
23904   whole_archive_flag_spec_GCJ=
23905   thread_safe_flag_spec_GCJ=
23906   hardcode_libdir_flag_spec_GCJ=
23907   hardcode_libdir_flag_spec_ld_GCJ=
23908   hardcode_libdir_separator_GCJ=
23909   hardcode_direct_GCJ=no
23910   hardcode_minus_L_GCJ=no
23911   hardcode_shlibpath_var_GCJ=unsupported
23912   link_all_deplibs_GCJ=unknown
23913   hardcode_automatic_GCJ=no
23914   module_cmds_GCJ=
23915   module_expsym_cmds_GCJ=
23916   always_export_symbols_GCJ=no
23917   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23918   # include_expsyms should be a list of space-separated symbols to be *always*
23919   # included in the symbol list
23920   include_expsyms_GCJ=
23921   # exclude_expsyms can be an extended regexp of symbols to exclude
23922   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23923   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23924   # as well as any symbol that contains `d'.
23925   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23926   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23927   # platforms (ab)use it in PIC code, but their linkers get confused if
23928   # the symbol is explicitly referenced.  Since portable code cannot
23929   # rely on this symbol name, it's probably fine to never include it in
23930   # preloaded symbol tables.
23931   extract_expsyms_cmds=
23932   # Just being paranoid about ensuring that cc_basename is set.
23933   for cc_temp in $compiler""; do
23934   case $cc_temp in
23935     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23936     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23937     \-*) ;;
23938     *) break;;
23939   esac
23940 done
23941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23942
23943   case $host_os in
23944   cygwin* | mingw* | pw32*)
23945     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23946     # When not using gcc, we currently assume that we are using
23947     # Microsoft Visual C++.
23948     if test "$GCC" != yes; then
23949       with_gnu_ld=no
23950     fi
23951     ;;
23952   interix*)
23953     # we just hope/assume this is gcc and not c89 (= MSVC++)
23954     with_gnu_ld=yes
23955     ;;
23956   openbsd*)
23957     with_gnu_ld=no
23958     ;;
23959   esac
23960
23961   ld_shlibs_GCJ=yes
23962   if test "$with_gnu_ld" = yes; then
23963     # If archive_cmds runs LD, not CC, wlarc should be empty
23964     wlarc='${wl}'
23965
23966     # Set some defaults for GNU ld with shared library support. These
23967     # are reset later if shared libraries are not supported. Putting them
23968     # here allows them to be overridden if necessary.
23969     runpath_var=LD_RUN_PATH
23970     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23971     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23972     # ancient GNU ld didn't support --whole-archive et. al.
23973     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23974         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23975       else
23976         whole_archive_flag_spec_GCJ=
23977     fi
23978     supports_anon_versioning=no
23979     case `$LD -v 2>/dev/null` in
23980       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23981       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23982       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23983       *\ 2.11.*) ;; # other 2.11 versions
23984       *) supports_anon_versioning=yes ;;
23985     esac
23986
23987     # See if GNU ld supports shared libraries.
23988     case $host_os in
23989     aix3* | aix4* | aix5*)
23990       # On AIX/PPC, the GNU linker is very broken
23991       if test "$host_cpu" != ia64; then
23992         ld_shlibs_GCJ=no
23993         cat <<EOF 1>&2
23994
23995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23996 *** to be unable to reliably create shared libraries on AIX.
23997 *** Therefore, libtool is disabling shared libraries support.  If you
23998 *** really care for shared libraries, you may want to modify your PATH
23999 *** so that a non-GNU linker is found, and then restart.
24000
24001 EOF
24002       fi
24003       ;;
24004
24005     amigaos*)
24006       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)'
24007       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24008       hardcode_minus_L_GCJ=yes
24009
24010       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24011       # that the semantics of dynamic libraries on AmigaOS, at least up
24012       # to version 4, is to share data among multiple programs linked
24013       # with the same dynamic library.  Since this doesn't match the
24014       # behavior of shared libraries on other platforms, we can't use
24015       # them.
24016       ld_shlibs_GCJ=no
24017       ;;
24018
24019     beos*)
24020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24021         allow_undefined_flag_GCJ=unsupported
24022         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24023         # support --undefined.  This deserves some investigation.  FIXME
24024         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24025       else
24026         ld_shlibs_GCJ=no
24027       fi
24028       ;;
24029
24030     cygwin* | mingw* | pw32*)
24031       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24032       # as there is no search path for DLLs.
24033       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24034       allow_undefined_flag_GCJ=unsupported
24035       always_export_symbols_GCJ=no
24036       enable_shared_with_static_runtimes_GCJ=yes
24037       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24038
24039       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24040         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24041         # If the export-symbols file already is a .def file (1st line
24042         # is EXPORTS), use it as is; otherwise, prepend...
24043         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24044           cp $export_symbols $output_objdir/$soname.def;
24045         else
24046           echo EXPORTS > $output_objdir/$soname.def;
24047           cat $export_symbols >> $output_objdir/$soname.def;
24048         fi~
24049         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24050       else
24051         ld_shlibs_GCJ=no
24052       fi
24053       ;;
24054
24055     interix3*)
24056       hardcode_direct_GCJ=no
24057       hardcode_shlibpath_var_GCJ=no
24058       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24059       export_dynamic_flag_spec_GCJ='${wl}-E'
24060       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24061       # Instead, shared libraries are loaded at an image base (0x10000000 by
24062       # default) and relocated if they conflict, which is a slow very memory
24063       # consuming and fragmenting process.  To avoid this, we pick a random,
24064       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24065       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24066       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'
24067       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'
24068       ;;
24069
24070     linux*)
24071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24072         tmp_addflag=
24073         case $cc_basename,$host_cpu in
24074         pgcc*)                          # Portland Group C compiler
24075           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'
24076           tmp_addflag=' $pic_flag'
24077           ;;
24078         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24079           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'
24080           tmp_addflag=' $pic_flag -Mnomain' ;;
24081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24082           tmp_addflag=' -i_dynamic' ;;
24083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24084           tmp_addflag=' -i_dynamic -nofor_main' ;;
24085         ifc* | ifort*)                  # Intel Fortran compiler
24086           tmp_addflag=' -nofor_main' ;;
24087         esac
24088         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089
24090         if test $supports_anon_versioning = yes; then
24091           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24093   $echo "local: *; };" >> $output_objdir/$libname.ver~
24094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24095         fi
24096       else
24097         ld_shlibs_GCJ=no
24098       fi
24099       ;;
24100
24101     netbsd*)
24102       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24103         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24104         wlarc=
24105       else
24106         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24107         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24108       fi
24109       ;;
24110
24111     solaris*)
24112       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24113         ld_shlibs_GCJ=no
24114         cat <<EOF 1>&2
24115
24116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24117 *** create shared libraries on Solaris systems.  Therefore, libtool
24118 *** is disabling shared libraries support.  We urge you to upgrade GNU
24119 *** binutils to release 2.9.1 or newer.  Another option is to modify
24120 *** your PATH or compiler configuration so that the native linker is
24121 *** used, and then restart.
24122
24123 EOF
24124       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24125         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24126         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24127       else
24128         ld_shlibs_GCJ=no
24129       fi
24130       ;;
24131
24132     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24133       case `$LD -v 2>&1` in
24134         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24135         ld_shlibs_GCJ=no
24136         cat <<_LT_EOF 1>&2
24137
24138 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24139 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24140 *** is disabling shared libraries support.  We urge you to upgrade GNU
24141 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24142 *** your PATH or compiler configuration so that the native linker is
24143 *** used, and then restart.
24144
24145 _LT_EOF
24146         ;;
24147         *)
24148           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24149             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24150             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24151             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24152           else
24153             ld_shlibs_GCJ=no
24154           fi
24155         ;;
24156       esac
24157       ;;
24158
24159     sunos4*)
24160       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24161       wlarc=
24162       hardcode_direct_GCJ=yes
24163       hardcode_shlibpath_var_GCJ=no
24164       ;;
24165
24166     *)
24167       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24168         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24169         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24170       else
24171         ld_shlibs_GCJ=no
24172       fi
24173       ;;
24174     esac
24175
24176     if test "$ld_shlibs_GCJ" = no; then
24177       runpath_var=
24178       hardcode_libdir_flag_spec_GCJ=
24179       export_dynamic_flag_spec_GCJ=
24180       whole_archive_flag_spec_GCJ=
24181     fi
24182   else
24183     # PORTME fill in a description of your system's linker (not GNU ld)
24184     case $host_os in
24185     aix3*)
24186       allow_undefined_flag_GCJ=unsupported
24187       always_export_symbols_GCJ=yes
24188       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'
24189       # Note: this linker hardcodes the directories in LIBPATH if there
24190       # are no directories specified by -L.
24191       hardcode_minus_L_GCJ=yes
24192       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24193         # Neither direct hardcoding nor static linking is supported with a
24194         # broken collect2.
24195         hardcode_direct_GCJ=unsupported
24196       fi
24197       ;;
24198
24199     aix4* | aix5*)
24200       if test "$host_cpu" = ia64; then
24201         # On IA64, the linker does run time linking by default, so we don't
24202         # have to do anything special.
24203         aix_use_runtimelinking=no
24204         exp_sym_flag='-Bexport'
24205         no_entry_flag=""
24206       else
24207         # If we're using GNU nm, then we don't want the "-C" option.
24208         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24209         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24210           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'
24211         else
24212           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'
24213         fi
24214         aix_use_runtimelinking=no
24215
24216         # Test if we are trying to use run time linking or normal
24217         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24218         # need to do runtime linking.
24219         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24220           for ld_flag in $LDFLAGS; do
24221           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24222             aix_use_runtimelinking=yes
24223             break
24224           fi
24225           done
24226           ;;
24227         esac
24228
24229         exp_sym_flag='-bexport'
24230         no_entry_flag='-bnoentry'
24231       fi
24232
24233       # When large executables or shared objects are built, AIX ld can
24234       # have problems creating the table of contents.  If linking a library
24235       # or program results in "error TOC overflow" add -mminimal-toc to
24236       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24237       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24238
24239       archive_cmds_GCJ=''
24240       hardcode_direct_GCJ=yes
24241       hardcode_libdir_separator_GCJ=':'
24242       link_all_deplibs_GCJ=yes
24243
24244       if test "$GCC" = yes; then
24245         case $host_os in aix4.[012]|aix4.[012].*)
24246         # We only want to do this on AIX 4.2 and lower, the check
24247         # below for broken collect2 doesn't work under 4.3+
24248           collect2name=`${CC} -print-prog-name=collect2`
24249           if test -f "$collect2name" && \
24250            strings "$collect2name" | grep resolve_lib_name >/dev/null
24251           then
24252           # We have reworked collect2
24253           hardcode_direct_GCJ=yes
24254           else
24255           # We have old collect2
24256           hardcode_direct_GCJ=unsupported
24257           # It fails to find uninstalled libraries when the uninstalled
24258           # path is not listed in the libpath.  Setting hardcode_minus_L
24259           # to unsupported forces relinking
24260           hardcode_minus_L_GCJ=yes
24261           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24262           hardcode_libdir_separator_GCJ=
24263           fi
24264           ;;
24265         esac
24266         shared_flag='-shared'
24267         if test "$aix_use_runtimelinking" = yes; then
24268           shared_flag="$shared_flag "'${wl}-G'
24269         fi
24270       else
24271         # not using gcc
24272         if test "$host_cpu" = ia64; then
24273         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24274         # chokes on -Wl,-G. The following line is correct:
24275           shared_flag='-G'
24276         else
24277           if test "$aix_use_runtimelinking" = yes; then
24278             shared_flag='${wl}-G'
24279           else
24280             shared_flag='${wl}-bM:SRE'
24281           fi
24282         fi
24283       fi
24284
24285       # It seems that -bexpall does not export symbols beginning with
24286       # underscore (_), so it is better to generate a list of symbols to export.
24287       always_export_symbols_GCJ=yes
24288       if test "$aix_use_runtimelinking" = yes; then
24289         # Warning - without using the other runtime loading flags (-brtl),
24290         # -berok will link without error, but may produce a broken library.
24291         allow_undefined_flag_GCJ='-berok'
24292        # Determine the default libpath from the value encoded in an empty executable.
24293        cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h.  */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h.  */
24299
24300 int
24301 main ()
24302 {
24303
24304   ;
24305   return 0;
24306 }
24307 _ACEOF
24308 rm -f conftest.$ac_objext conftest$ac_exeext
24309 if { (ac_try="$ac_link"
24310 case "(($ac_try" in
24311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312   *) ac_try_echo=$ac_try;;
24313 esac
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315   (eval "$ac_link") 2>conftest.er1
24316   ac_status=$?
24317   grep -v '^ *+' conftest.er1 >conftest.err
24318   rm -f conftest.er1
24319   cat conftest.err >&5
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); } &&
24322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323   { (case "(($ac_try" in
24324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325   *) ac_try_echo=$ac_try;;
24326 esac
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328   (eval "$ac_try") 2>&5
24329   ac_status=$?
24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331   (exit $ac_status); }; } &&
24332          { ac_try='test -s conftest$ac_exeext'
24333   { (case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338   (eval "$ac_try") 2>&5
24339   ac_status=$?
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); }; }; then
24342
24343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24344 }'`
24345 # Check for a 64-bit object if we didn't find anything.
24346 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; }
24347 }'`; fi
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext \
24356       conftest$ac_exeext conftest.$ac_ext
24357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24358
24359        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24360         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"
24361        else
24362         if test "$host_cpu" = ia64; then
24363           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24364           allow_undefined_flag_GCJ="-z nodefs"
24365           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"
24366         else
24367          # Determine the default libpath from the value encoded in an empty executable.
24368          cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374
24375 int
24376 main ()
24377 {
24378
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390   (eval "$ac_link") 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } &&
24397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24398   { (case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_try") 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); }; } &&
24407          { ac_try='test -s conftest$ac_exeext'
24408   { (case "(($ac_try" in
24409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410   *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413   (eval "$ac_try") 2>&5
24414   ac_status=$?
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); }; }; then
24417
24418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24419 }'`
24420 # Check for a 64-bit object if we didn't find anything.
24421 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; }
24422 }'`; fi
24423 else
24424   echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24426
24427
24428 fi
24429
24430 rm -f core conftest.err conftest.$ac_objext \
24431       conftest$ac_exeext conftest.$ac_ext
24432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433
24434          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24435           # Warning - without using the other run time loading flags,
24436           # -berok will link without error, but may produce a broken library.
24437           no_undefined_flag_GCJ=' ${wl}-bernotok'
24438           allow_undefined_flag_GCJ=' ${wl}-berok'
24439           # Exported symbols can be pulled into shared objects from archives
24440           whole_archive_flag_spec_GCJ='$convenience'
24441           archive_cmds_need_lc_GCJ=yes
24442           # This is similar to how AIX traditionally builds its shared libraries.
24443           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'
24444         fi
24445       fi
24446       ;;
24447
24448     amigaos*)
24449       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)'
24450       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24451       hardcode_minus_L_GCJ=yes
24452       # see comment about different semantics on the GNU ld section
24453       ld_shlibs_GCJ=no
24454       ;;
24455
24456     bsdi[45]*)
24457       export_dynamic_flag_spec_GCJ=-rdynamic
24458       ;;
24459
24460     cygwin* | mingw* | pw32*)
24461       # When not using gcc, we currently assume that we are using
24462       # Microsoft Visual C++.
24463       # hardcode_libdir_flag_spec is actually meaningless, as there is
24464       # no search path for DLLs.
24465       hardcode_libdir_flag_spec_GCJ=' '
24466       allow_undefined_flag_GCJ=unsupported
24467       # Tell ltmain to make .lib files, not .a files.
24468       libext=lib
24469       # Tell ltmain to make .dll files, not .so files.
24470       shrext_cmds=".dll"
24471       # FIXME: Setting linknames here is a bad hack.
24472       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24473       # The linker will automatically build a .lib file if we build a DLL.
24474       old_archive_From_new_cmds_GCJ='true'
24475       # FIXME: Should let the user specify the lib program.
24476       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24477       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24478       enable_shared_with_static_runtimes_GCJ=yes
24479       ;;
24480
24481     darwin* | rhapsody*)
24482       case $host_os in
24483         rhapsody* | darwin1.[012])
24484          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24485          ;;
24486        *) # Darwin 1.3 on
24487          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24488            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24489          else
24490            case ${MACOSX_DEPLOYMENT_TARGET} in
24491              10.[012])
24492                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24493                ;;
24494              10.*)
24495                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24496                ;;
24497            esac
24498          fi
24499          ;;
24500       esac
24501       archive_cmds_need_lc_GCJ=no
24502       hardcode_direct_GCJ=no
24503       hardcode_automatic_GCJ=yes
24504       hardcode_shlibpath_var_GCJ=unsupported
24505       whole_archive_flag_spec_GCJ=''
24506       link_all_deplibs_GCJ=yes
24507     if test "$GCC" = yes ; then
24508         output_verbose_link_cmd='echo'
24509         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24510       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24511       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24512       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}'
24513       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}'
24514     else
24515       case $cc_basename in
24516         xlc*)
24517          output_verbose_link_cmd='echo'
24518          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24519          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24520           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24521          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}'
24522           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}'
24523           ;;
24524        *)
24525          ld_shlibs_GCJ=no
24526           ;;
24527       esac
24528     fi
24529       ;;
24530
24531     dgux*)
24532       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24533       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24534       hardcode_shlibpath_var_GCJ=no
24535       ;;
24536
24537     freebsd1*)
24538       ld_shlibs_GCJ=no
24539       ;;
24540
24541     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24542     # support.  Future versions do this automatically, but an explicit c++rt0.o
24543     # does not break anything, and helps significantly (at the cost of a little
24544     # extra space).
24545     freebsd2.2*)
24546       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24547       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24548       hardcode_direct_GCJ=yes
24549       hardcode_shlibpath_var_GCJ=no
24550       ;;
24551
24552     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24553     freebsd2*)
24554       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24555       hardcode_direct_GCJ=yes
24556       hardcode_minus_L_GCJ=yes
24557       hardcode_shlibpath_var_GCJ=no
24558       ;;
24559
24560     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24561     freebsd* | kfreebsd*-gnu | dragonfly*)
24562       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24563       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24564       hardcode_direct_GCJ=yes
24565       hardcode_shlibpath_var_GCJ=no
24566       ;;
24567
24568     hpux9*)
24569       if test "$GCC" = yes; then
24570         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'
24571       else
24572         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'
24573       fi
24574       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24575       hardcode_libdir_separator_GCJ=:
24576       hardcode_direct_GCJ=yes
24577
24578       # hardcode_minus_L: Not really in the search PATH,
24579       # but as the default location of the library.
24580       hardcode_minus_L_GCJ=yes
24581       export_dynamic_flag_spec_GCJ='${wl}-E'
24582       ;;
24583
24584     hpux10*)
24585       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24586         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24587       else
24588         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24589       fi
24590       if test "$with_gnu_ld" = no; then
24591         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24592         hardcode_libdir_separator_GCJ=:
24593
24594         hardcode_direct_GCJ=yes
24595         export_dynamic_flag_spec_GCJ='${wl}-E'
24596
24597         # hardcode_minus_L: Not really in the search PATH,
24598         # but as the default location of the library.
24599         hardcode_minus_L_GCJ=yes
24600       fi
24601       ;;
24602
24603     hpux11*)
24604       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24605         case $host_cpu in
24606         hppa*64*)
24607           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24608           ;;
24609         ia64*)
24610           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24611           ;;
24612         *)
24613           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24614           ;;
24615         esac
24616       else
24617         case $host_cpu in
24618         hppa*64*)
24619           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24620           ;;
24621         ia64*)
24622           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24623           ;;
24624         *)
24625           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24626           ;;
24627         esac
24628       fi
24629       if test "$with_gnu_ld" = no; then
24630         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24631         hardcode_libdir_separator_GCJ=:
24632
24633         case $host_cpu in
24634         hppa*64*|ia64*)
24635           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24636           hardcode_direct_GCJ=no
24637           hardcode_shlibpath_var_GCJ=no
24638           ;;
24639         *)
24640           hardcode_direct_GCJ=yes
24641           export_dynamic_flag_spec_GCJ='${wl}-E'
24642
24643           # hardcode_minus_L: Not really in the search PATH,
24644           # but as the default location of the library.
24645           hardcode_minus_L_GCJ=yes
24646           ;;
24647         esac
24648       fi
24649       ;;
24650
24651     irix5* | irix6* | nonstopux*)
24652       if test "$GCC" = yes; then
24653         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'
24654       else
24655         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'
24656         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24657       fi
24658       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24659       hardcode_libdir_separator_GCJ=:
24660       link_all_deplibs_GCJ=yes
24661       ;;
24662
24663     netbsd*)
24664       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24665         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24666       else
24667         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24668       fi
24669       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24670       hardcode_direct_GCJ=yes
24671       hardcode_shlibpath_var_GCJ=no
24672       ;;
24673
24674     newsos6)
24675       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24676       hardcode_direct_GCJ=yes
24677       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24678       hardcode_libdir_separator_GCJ=:
24679       hardcode_shlibpath_var_GCJ=no
24680       ;;
24681
24682     openbsd*)
24683       hardcode_direct_GCJ=yes
24684       hardcode_shlibpath_var_GCJ=no
24685       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24686         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24687         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24688         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24689         export_dynamic_flag_spec_GCJ='${wl}-E'
24690       else
24691        case $host_os in
24692          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24693            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24694            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24695            ;;
24696          *)
24697            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24698            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24699            ;;
24700        esac
24701       fi
24702       ;;
24703
24704     os2*)
24705       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24706       hardcode_minus_L_GCJ=yes
24707       allow_undefined_flag_GCJ=unsupported
24708       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'
24709       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24710       ;;
24711
24712     osf3*)
24713       if test "$GCC" = yes; then
24714         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24715         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'
24716       else
24717         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24718         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'
24719       fi
24720       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24721       hardcode_libdir_separator_GCJ=:
24722       ;;
24723
24724     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24725       if test "$GCC" = yes; then
24726         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24727         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'
24728         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24729       else
24730         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24731         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'
24732         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~
24733         $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'
24734
24735         # Both c and cxx compiler support -rpath directly
24736         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24737       fi
24738       hardcode_libdir_separator_GCJ=:
24739       ;;
24740
24741     solaris*)
24742       no_undefined_flag_GCJ=' -z text'
24743       if test "$GCC" = yes; then
24744         wlarc='${wl}'
24745         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24746         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24747           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24748       else
24749         wlarc=''
24750         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24751         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24752         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24753       fi
24754       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24755       hardcode_shlibpath_var_GCJ=no
24756       case $host_os in
24757       solaris2.[0-5] | solaris2.[0-5].*) ;;
24758       *)
24759         # The compiler driver will combine linker options so we
24760         # cannot just pass the convience library names through
24761         # without $wl, iff we do not link with $LD.
24762         # Luckily, gcc supports the same syntax we need for Sun Studio.
24763         # Supported since Solaris 2.6 (maybe 2.5.1?)
24764         case $wlarc in
24765         '')
24766           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24767         *)
24768           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' ;;
24769         esac ;;
24770       esac
24771       link_all_deplibs_GCJ=yes
24772       ;;
24773
24774     sunos4*)
24775       if test "x$host_vendor" = xsequent; then
24776         # Use $CC to link under sequent, because it throws in some extra .o
24777         # files that make .init and .fini sections work.
24778         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24779       else
24780         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24781       fi
24782       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24783       hardcode_direct_GCJ=yes
24784       hardcode_minus_L_GCJ=yes
24785       hardcode_shlibpath_var_GCJ=no
24786       ;;
24787
24788     sysv4)
24789       case $host_vendor in
24790         sni)
24791           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24792           hardcode_direct_GCJ=yes # is this really true???
24793         ;;
24794         siemens)
24795           ## LD is ld it makes a PLAMLIB
24796           ## CC just makes a GrossModule.
24797           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24798           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24799           hardcode_direct_GCJ=no
24800         ;;
24801         motorola)
24802           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24803           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24804         ;;
24805       esac
24806       runpath_var='LD_RUN_PATH'
24807       hardcode_shlibpath_var_GCJ=no
24808       ;;
24809
24810     sysv4.3*)
24811       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24812       hardcode_shlibpath_var_GCJ=no
24813       export_dynamic_flag_spec_GCJ='-Bexport'
24814       ;;
24815
24816     sysv4*MP*)
24817       if test -d /usr/nec; then
24818         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819         hardcode_shlibpath_var_GCJ=no
24820         runpath_var=LD_RUN_PATH
24821         hardcode_runpath_var=yes
24822         ld_shlibs_GCJ=yes
24823       fi
24824       ;;
24825
24826     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24827       no_undefined_flag_GCJ='${wl}-z,text'
24828       archive_cmds_need_lc_GCJ=no
24829       hardcode_shlibpath_var_GCJ=no
24830       runpath_var='LD_RUN_PATH'
24831
24832       if test "$GCC" = yes; then
24833         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24834         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24835       else
24836         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24837         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24838       fi
24839       ;;
24840
24841     sysv5* | sco3.2v5* | sco5v6*)
24842       # Note: We can NOT use -z defs as we might desire, because we do not
24843       # link with -lc, and that would cause any symbols used from libc to
24844       # always be unresolved, which means just about no library would
24845       # ever link correctly.  If we're not using GNU ld we use -z text
24846       # though, which does catch some bad symbols but isn't as heavy-handed
24847       # as -z defs.
24848       no_undefined_flag_GCJ='${wl}-z,text'
24849       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24850       archive_cmds_need_lc_GCJ=no
24851       hardcode_shlibpath_var_GCJ=no
24852       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24853       hardcode_libdir_separator_GCJ=':'
24854       link_all_deplibs_GCJ=yes
24855       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24856       runpath_var='LD_RUN_PATH'
24857
24858       if test "$GCC" = yes; then
24859         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24860         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24861       else
24862         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24863         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24864       fi
24865       ;;
24866
24867     uts4*)
24868       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24869       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24870       hardcode_shlibpath_var_GCJ=no
24871       ;;
24872
24873     *)
24874       ld_shlibs_GCJ=no
24875       ;;
24876     esac
24877   fi
24878
24879 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24880 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24881 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24882
24883 #
24884 # Do we need to explicitly link libc?
24885 #
24886 case "x$archive_cmds_need_lc_GCJ" in
24887 x|xyes)
24888   # Assume -lc should be added
24889   archive_cmds_need_lc_GCJ=yes
24890
24891   if test "$enable_shared" = yes && test "$GCC" = yes; then
24892     case $archive_cmds_GCJ in
24893     *'~'*)
24894       # FIXME: we may have to deal with multi-command sequences.
24895       ;;
24896     '$CC '*)
24897       # Test whether the compiler implicitly links with -lc since on some
24898       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24899       # to ld, don't add -lc before -lgcc.
24900       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24901 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24902       $rm conftest*
24903       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24904
24905       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24906   (eval $ac_compile) 2>&5
24907   ac_status=$?
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } 2>conftest.err; then
24910         soname=conftest
24911         lib=conftest
24912         libobjs=conftest.$ac_objext
24913         deplibs=
24914         wl=$lt_prog_compiler_wl_GCJ
24915         pic_flag=$lt_prog_compiler_pic_GCJ
24916         compiler_flags=-v
24917         linker_flags=-v
24918         verstring=
24919         output_objdir=.
24920         libname=conftest
24921         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24922         allow_undefined_flag_GCJ=
24923         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24924   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); }
24928         then
24929           archive_cmds_need_lc_GCJ=no
24930         else
24931           archive_cmds_need_lc_GCJ=yes
24932         fi
24933         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24934       else
24935         cat conftest.err 1>&5
24936       fi
24937       $rm conftest*
24938       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24939 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24940       ;;
24941     esac
24942   fi
24943   ;;
24944 esac
24945
24946 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24948 library_names_spec=
24949 libname_spec='lib$name'
24950 soname_spec=
24951 shrext_cmds=".so"
24952 postinstall_cmds=
24953 postuninstall_cmds=
24954 finish_cmds=
24955 finish_eval=
24956 shlibpath_var=
24957 shlibpath_overrides_runpath=unknown
24958 version_type=none
24959 dynamic_linker="$host_os ld.so"
24960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24961 if test "$GCC" = yes; then
24962   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24963   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24964     # if the path contains ";" then we assume it to be the separator
24965     # otherwise default to the standard path separator (i.e. ":") - it is
24966     # assumed that no part of a normal pathname contains ";" but that should
24967     # okay in the real world where ";" in dirpaths is itself problematic.
24968     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24969   else
24970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24971   fi
24972 else
24973   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24974 fi
24975 need_lib_prefix=unknown
24976 hardcode_into_libs=no
24977
24978 # when you set need_version to no, make sure it does not cause -set_version
24979 # flags to be left without arguments
24980 need_version=unknown
24981
24982 case $host_os in
24983 aix3*)
24984   version_type=linux
24985   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24986   shlibpath_var=LIBPATH
24987
24988   # AIX 3 has no versioning support, so we append a major version to the name.
24989   soname_spec='${libname}${release}${shared_ext}$major'
24990   ;;
24991
24992 aix4* | aix5*)
24993   version_type=linux
24994   need_lib_prefix=no
24995   need_version=no
24996   hardcode_into_libs=yes
24997   if test "$host_cpu" = ia64; then
24998     # AIX 5 supports IA64
24999     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25000     shlibpath_var=LD_LIBRARY_PATH
25001   else
25002     # With GCC up to 2.95.x, collect2 would create an import file
25003     # for dependence libraries.  The import file would start with
25004     # the line `#! .'.  This would cause the generated library to
25005     # depend on `.', always an invalid library.  This was fixed in
25006     # development snapshots of GCC prior to 3.0.
25007     case $host_os in
25008       aix4 | aix4.[01] | aix4.[01].*)
25009       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25010            echo ' yes '
25011            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25012         :
25013       else
25014         can_build_shared=no
25015       fi
25016       ;;
25017     esac
25018     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25019     # soname into executable. Probably we can add versioning support to
25020     # collect2, so additional links can be useful in future.
25021     if test "$aix_use_runtimelinking" = yes; then
25022       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25023       # instead of lib<name>.a to let people know that these are not
25024       # typical AIX shared libraries.
25025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25026     else
25027       # We preserve .a as extension for shared libraries through AIX4.2
25028       # and later when we are not doing run time linking.
25029       library_names_spec='${libname}${release}.a $libname.a'
25030       soname_spec='${libname}${release}${shared_ext}$major'
25031     fi
25032     shlibpath_var=LIBPATH
25033   fi
25034   ;;
25035
25036 amigaos*)
25037   library_names_spec='$libname.ixlibrary $libname.a'
25038   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25039   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'
25040   ;;
25041
25042 beos*)
25043   library_names_spec='${libname}${shared_ext}'
25044   dynamic_linker="$host_os ld.so"
25045   shlibpath_var=LIBRARY_PATH
25046   ;;
25047
25048 bsdi[45]*)
25049   version_type=linux
25050   need_version=no
25051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25052   soname_spec='${libname}${release}${shared_ext}$major'
25053   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25054   shlibpath_var=LD_LIBRARY_PATH
25055   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25056   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25057   # the default ld.so.conf also contains /usr/contrib/lib and
25058   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25059   # libtool to hard-code these into programs
25060   ;;
25061
25062 cygwin* | mingw* | pw32*)
25063   version_type=windows
25064   shrext_cmds=".dll"
25065   need_version=no
25066   need_lib_prefix=no
25067
25068   case $GCC,$host_os in
25069   yes,cygwin* | yes,mingw* | yes,pw32*)
25070     library_names_spec='$libname.dll.a'
25071     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25072     postinstall_cmds='base_file=`basename \${file}`~
25073       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25074       dldir=$destdir/`dirname \$dlpath`~
25075       test -d \$dldir || mkdir -p \$dldir~
25076       $install_prog $dir/$dlname \$dldir/$dlname~
25077       chmod a+x \$dldir/$dlname'
25078     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25079       dlpath=$dir/\$dldll~
25080        $rm \$dlpath'
25081     shlibpath_overrides_runpath=yes
25082
25083     case $host_os in
25084     cygwin*)
25085       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25086       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25087       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25088       ;;
25089     mingw*)
25090       # MinGW DLLs use traditional 'lib' prefix
25091       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25092       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25093       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25094         # It is most probably a Windows format PATH printed by
25095         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25096         # path with ; separators, and with drive letters. We can handle the
25097         # drive letters (cygwin fileutils understands them), so leave them,
25098         # especially as we might pass files found there to a mingw objdump,
25099         # which wouldn't understand a cygwinified path. Ahh.
25100         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25101       else
25102         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25103       fi
25104       ;;
25105     pw32*)
25106       # pw32 DLLs use 'pw' prefix rather than 'lib'
25107       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25108       ;;
25109     esac
25110     ;;
25111
25112   *)
25113     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25114     ;;
25115   esac
25116   dynamic_linker='Win32 ld.exe'
25117   # FIXME: first we should search . and the directory the executable is in
25118   shlibpath_var=PATH
25119   ;;
25120
25121 darwin* | rhapsody*)
25122   dynamic_linker="$host_os dyld"
25123   version_type=darwin
25124   need_lib_prefix=no
25125   need_version=no
25126   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25127   soname_spec='${libname}${release}${major}$shared_ext'
25128   shlibpath_overrides_runpath=yes
25129   shlibpath_var=DYLD_LIBRARY_PATH
25130   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25131   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25132   if test "$GCC" = yes; then
25133     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"`
25134   else
25135     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25136   fi
25137   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25138   ;;
25139
25140 dgux*)
25141   version_type=linux
25142   need_lib_prefix=no
25143   need_version=no
25144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25145   soname_spec='${libname}${release}${shared_ext}$major'
25146   shlibpath_var=LD_LIBRARY_PATH
25147   ;;
25148
25149 freebsd1*)
25150   dynamic_linker=no
25151   ;;
25152
25153 kfreebsd*-gnu)
25154   version_type=linux
25155   need_lib_prefix=no
25156   need_version=no
25157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25158   soname_spec='${libname}${release}${shared_ext}$major'
25159   shlibpath_var=LD_LIBRARY_PATH
25160   shlibpath_overrides_runpath=no
25161   hardcode_into_libs=yes
25162   dynamic_linker='GNU ld.so'
25163   ;;
25164
25165 freebsd* | dragonfly*)
25166   # DragonFly does not have aout.  When/if they implement a new
25167   # versioning mechanism, adjust this.
25168   if test -x /usr/bin/objformat; then
25169     objformat=`/usr/bin/objformat`
25170   else
25171     case $host_os in
25172     freebsd[123]*) objformat=aout ;;
25173     *) objformat=elf ;;
25174     esac
25175   fi
25176   version_type=freebsd-$objformat
25177   case $version_type in
25178     freebsd-elf*)
25179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25180       need_version=no
25181       need_lib_prefix=no
25182       ;;
25183     freebsd-*)
25184       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25185       need_version=yes
25186       ;;
25187   esac
25188   shlibpath_var=LD_LIBRARY_PATH
25189   case $host_os in
25190   freebsd2*)
25191     shlibpath_overrides_runpath=yes
25192     ;;
25193   freebsd3.[01]* | freebsdelf3.[01]*)
25194     shlibpath_overrides_runpath=yes
25195     hardcode_into_libs=yes
25196     ;;
25197   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25198   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25199     shlibpath_overrides_runpath=no
25200     hardcode_into_libs=yes
25201     ;;
25202   freebsd*) # from 4.6 on
25203     shlibpath_overrides_runpath=yes
25204     hardcode_into_libs=yes
25205     ;;
25206   esac
25207   ;;
25208
25209 gnu*)
25210   version_type=linux
25211   need_lib_prefix=no
25212   need_version=no
25213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25214   soname_spec='${libname}${release}${shared_ext}$major'
25215   shlibpath_var=LD_LIBRARY_PATH
25216   hardcode_into_libs=yes
25217   ;;
25218
25219 hpux9* | hpux10* | hpux11*)
25220   # Give a soname corresponding to the major version so that dld.sl refuses to
25221   # link against other versions.
25222   version_type=sunos
25223   need_lib_prefix=no
25224   need_version=no
25225   case $host_cpu in
25226   ia64*)
25227     shrext_cmds='.so'
25228     hardcode_into_libs=yes
25229     dynamic_linker="$host_os dld.so"
25230     shlibpath_var=LD_LIBRARY_PATH
25231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25233     soname_spec='${libname}${release}${shared_ext}$major'
25234     if test "X$HPUX_IA64_MODE" = X32; then
25235       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25236     else
25237       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25238     fi
25239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25240     ;;
25241    hppa*64*)
25242      shrext_cmds='.sl'
25243      hardcode_into_libs=yes
25244      dynamic_linker="$host_os dld.sl"
25245      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25246      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25248      soname_spec='${libname}${release}${shared_ext}$major'
25249      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25250      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25251      ;;
25252    *)
25253     shrext_cmds='.sl'
25254     dynamic_linker="$host_os dld.sl"
25255     shlibpath_var=SHLIB_PATH
25256     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25258     soname_spec='${libname}${release}${shared_ext}$major'
25259     ;;
25260   esac
25261   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25262   postinstall_cmds='chmod 555 $lib'
25263   ;;
25264
25265 interix3*)
25266   version_type=linux
25267   need_lib_prefix=no
25268   need_version=no
25269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25270   soname_spec='${libname}${release}${shared_ext}$major'
25271   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25272   shlibpath_var=LD_LIBRARY_PATH
25273   shlibpath_overrides_runpath=no
25274   hardcode_into_libs=yes
25275   ;;
25276
25277 irix5* | irix6* | nonstopux*)
25278   case $host_os in
25279     nonstopux*) version_type=nonstopux ;;
25280     *)
25281         if test "$lt_cv_prog_gnu_ld" = yes; then
25282                 version_type=linux
25283         else
25284                 version_type=irix
25285         fi ;;
25286   esac
25287   need_lib_prefix=no
25288   need_version=no
25289   soname_spec='${libname}${release}${shared_ext}$major'
25290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25291   case $host_os in
25292   irix5* | nonstopux*)
25293     libsuff= shlibsuff=
25294     ;;
25295   *)
25296     case $LD in # libtool.m4 will add one of these switches to LD
25297     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25298       libsuff= shlibsuff= libmagic=32-bit;;
25299     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25300       libsuff=32 shlibsuff=N32 libmagic=N32;;
25301     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25302       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25303     *) libsuff= shlibsuff= libmagic=never-match;;
25304     esac
25305     ;;
25306   esac
25307   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25308   shlibpath_overrides_runpath=no
25309   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25310   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25311   hardcode_into_libs=yes
25312   ;;
25313
25314 # No shared lib support for Linux oldld, aout, or coff.
25315 linux*oldld* | linux*aout* | linux*coff*)
25316   dynamic_linker=no
25317   ;;
25318
25319 # This must be Linux ELF.
25320 linux*)
25321   version_type=linux
25322   need_lib_prefix=no
25323   need_version=no
25324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325   soname_spec='${libname}${release}${shared_ext}$major'
25326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25327   shlibpath_var=LD_LIBRARY_PATH
25328   shlibpath_overrides_runpath=no
25329   # This implies no fast_install, which is unacceptable.
25330   # Some rework will be needed to allow for fast_install
25331   # before this can be enabled.
25332   hardcode_into_libs=yes
25333
25334   # Append ld.so.conf contents to the search path
25335   if test -f /etc/ld.so.conf; then
25336     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' ' '`
25337     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25338   fi
25339
25340   # We used to test for /lib/ld.so.1 and disable shared libraries on
25341   # powerpc, because MkLinux only supported shared libraries with the
25342   # GNU dynamic linker.  Since this was broken with cross compilers,
25343   # most powerpc-linux boxes support dynamic linking these days and
25344   # people can always --disable-shared, the test was removed, and we
25345   # assume the GNU/Linux dynamic linker is in use.
25346   dynamic_linker='GNU/Linux ld.so'
25347   ;;
25348
25349 knetbsd*-gnu)
25350   version_type=linux
25351   need_lib_prefix=no
25352   need_version=no
25353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25354   soname_spec='${libname}${release}${shared_ext}$major'
25355   shlibpath_var=LD_LIBRARY_PATH
25356   shlibpath_overrides_runpath=no
25357   hardcode_into_libs=yes
25358   dynamic_linker='GNU ld.so'
25359   ;;
25360
25361 netbsd*)
25362   version_type=sunos
25363   need_lib_prefix=no
25364   need_version=no
25365   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25367     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25368     dynamic_linker='NetBSD (a.out) ld.so'
25369   else
25370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25371     soname_spec='${libname}${release}${shared_ext}$major'
25372     dynamic_linker='NetBSD ld.elf_so'
25373   fi
25374   shlibpath_var=LD_LIBRARY_PATH
25375   shlibpath_overrides_runpath=yes
25376   hardcode_into_libs=yes
25377   ;;
25378
25379 newsos6)
25380   version_type=linux
25381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25382   shlibpath_var=LD_LIBRARY_PATH
25383   shlibpath_overrides_runpath=yes
25384   ;;
25385
25386 nto-qnx*)
25387   version_type=linux
25388   need_lib_prefix=no
25389   need_version=no
25390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25391   soname_spec='${libname}${release}${shared_ext}$major'
25392   shlibpath_var=LD_LIBRARY_PATH
25393   shlibpath_overrides_runpath=yes
25394   ;;
25395
25396 openbsd*)
25397   version_type=sunos
25398   sys_lib_dlsearch_path_spec="/usr/lib"
25399   need_lib_prefix=no
25400   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25401   case $host_os in
25402     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25403     *)                         need_version=no  ;;
25404   esac
25405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25407   shlibpath_var=LD_LIBRARY_PATH
25408   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25409     case $host_os in
25410       openbsd2.[89] | openbsd2.[89].*)
25411         shlibpath_overrides_runpath=no
25412         ;;
25413       *)
25414         shlibpath_overrides_runpath=yes
25415         ;;
25416       esac
25417   else
25418     shlibpath_overrides_runpath=yes
25419   fi
25420   ;;
25421
25422 os2*)
25423   libname_spec='$name'
25424   shrext_cmds=".dll"
25425   need_lib_prefix=no
25426   library_names_spec='$libname${shared_ext} $libname.a'
25427   dynamic_linker='OS/2 ld.exe'
25428   shlibpath_var=LIBPATH
25429   ;;
25430
25431 osf3* | osf4* | osf5*)
25432   version_type=osf
25433   need_lib_prefix=no
25434   need_version=no
25435   soname_spec='${libname}${release}${shared_ext}$major'
25436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25437   shlibpath_var=LD_LIBRARY_PATH
25438   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25439   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25440   ;;
25441
25442 solaris*)
25443   version_type=linux
25444   need_lib_prefix=no
25445   need_version=no
25446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25447   soname_spec='${libname}${release}${shared_ext}$major'
25448   shlibpath_var=LD_LIBRARY_PATH
25449   shlibpath_overrides_runpath=yes
25450   hardcode_into_libs=yes
25451   # ldd complains unless libraries are executable
25452   postinstall_cmds='chmod +x $lib'
25453   ;;
25454
25455 sunos4*)
25456   version_type=sunos
25457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25458   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25459   shlibpath_var=LD_LIBRARY_PATH
25460   shlibpath_overrides_runpath=yes
25461   if test "$with_gnu_ld" = yes; then
25462     need_lib_prefix=no
25463   fi
25464   need_version=yes
25465   ;;
25466
25467 sysv4 | sysv4.3*)
25468   version_type=linux
25469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25470   soname_spec='${libname}${release}${shared_ext}$major'
25471   shlibpath_var=LD_LIBRARY_PATH
25472   case $host_vendor in
25473     sni)
25474       shlibpath_overrides_runpath=no
25475       need_lib_prefix=no
25476       export_dynamic_flag_spec='${wl}-Blargedynsym'
25477       runpath_var=LD_RUN_PATH
25478       ;;
25479     siemens)
25480       need_lib_prefix=no
25481       ;;
25482     motorola)
25483       need_lib_prefix=no
25484       need_version=no
25485       shlibpath_overrides_runpath=no
25486       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25487       ;;
25488   esac
25489   ;;
25490
25491 sysv4*MP*)
25492   if test -d /usr/nec ;then
25493     version_type=linux
25494     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25495     soname_spec='$libname${shared_ext}.$major'
25496     shlibpath_var=LD_LIBRARY_PATH
25497   fi
25498   ;;
25499
25500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25501   version_type=freebsd-elf
25502   need_lib_prefix=no
25503   need_version=no
25504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25505   soname_spec='${libname}${release}${shared_ext}$major'
25506   shlibpath_var=LD_LIBRARY_PATH
25507   hardcode_into_libs=yes
25508   if test "$with_gnu_ld" = yes; then
25509     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25510     shlibpath_overrides_runpath=no
25511   else
25512     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25513     shlibpath_overrides_runpath=yes
25514     case $host_os in
25515       sco3.2v5*)
25516         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25517         ;;
25518     esac
25519   fi
25520   sys_lib_dlsearch_path_spec='/usr/lib'
25521   ;;
25522
25523 uts4*)
25524   version_type=linux
25525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526   soname_spec='${libname}${release}${shared_ext}$major'
25527   shlibpath_var=LD_LIBRARY_PATH
25528   ;;
25529
25530 *)
25531   dynamic_linker=no
25532   ;;
25533 esac
25534 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25535 echo "${ECHO_T}$dynamic_linker" >&6; }
25536 test "$dynamic_linker" = no && can_build_shared=no
25537
25538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25539 if test "$GCC" = yes; then
25540   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25541 fi
25542
25543 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25544 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25545 hardcode_action_GCJ=
25546 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25547    test -n "$runpath_var_GCJ" || \
25548    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25549
25550   # We can hardcode non-existant directories.
25551   if test "$hardcode_direct_GCJ" != no &&
25552      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25553      # have to relink, otherwise we might link with an installed library
25554      # when we should be linking with a yet-to-be-installed one
25555      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25556      test "$hardcode_minus_L_GCJ" != no; then
25557     # Linking always hardcodes the temporary library directory.
25558     hardcode_action_GCJ=relink
25559   else
25560     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25561     hardcode_action_GCJ=immediate
25562   fi
25563 else
25564   # We cannot hardcode anything, or else we can only hardcode existing
25565   # directories.
25566   hardcode_action_GCJ=unsupported
25567 fi
25568 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25569 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25570
25571 if test "$hardcode_action_GCJ" = relink; then
25572   # Fast installation is not supported
25573   enable_fast_install=no
25574 elif test "$shlibpath_overrides_runpath" = yes ||
25575      test "$enable_shared" = no; then
25576   # Fast installation is not necessary
25577   enable_fast_install=needless
25578 fi
25579
25580
25581 # The else clause should only fire when bootstrapping the
25582 # libtool distribution, otherwise you forgot to ship ltmain.sh
25583 # with your package, and you will get complaints that there are
25584 # no rules to generate ltmain.sh.
25585 if test -f "$ltmain"; then
25586   # See if we are running on zsh, and set the options which allow our commands through
25587   # without removal of \ escapes.
25588   if test -n "${ZSH_VERSION+set}" ; then
25589     setopt NO_GLOB_SUBST
25590   fi
25591   # Now quote all the things that may contain metacharacters while being
25592   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25593   # variables and quote the copies for generation of the libtool script.
25594   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25595     SED SHELL STRIP \
25596     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25597     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25598     deplibs_check_method reload_flag reload_cmds need_locks \
25599     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25600     lt_cv_sys_global_symbol_to_c_name_address \
25601     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25602     old_postinstall_cmds old_postuninstall_cmds \
25603     compiler_GCJ \
25604     CC_GCJ \
25605     LD_GCJ \
25606     lt_prog_compiler_wl_GCJ \
25607     lt_prog_compiler_pic_GCJ \
25608     lt_prog_compiler_static_GCJ \
25609     lt_prog_compiler_no_builtin_flag_GCJ \
25610     export_dynamic_flag_spec_GCJ \
25611     thread_safe_flag_spec_GCJ \
25612     whole_archive_flag_spec_GCJ \
25613     enable_shared_with_static_runtimes_GCJ \
25614     old_archive_cmds_GCJ \
25615     old_archive_from_new_cmds_GCJ \
25616     predep_objects_GCJ \
25617     postdep_objects_GCJ \
25618     predeps_GCJ \
25619     postdeps_GCJ \
25620     compiler_lib_search_path_GCJ \
25621     archive_cmds_GCJ \
25622     archive_expsym_cmds_GCJ \
25623     postinstall_cmds_GCJ \
25624     postuninstall_cmds_GCJ \
25625     old_archive_from_expsyms_cmds_GCJ \
25626     allow_undefined_flag_GCJ \
25627     no_undefined_flag_GCJ \
25628     export_symbols_cmds_GCJ \
25629     hardcode_libdir_flag_spec_GCJ \
25630     hardcode_libdir_flag_spec_ld_GCJ \
25631     hardcode_libdir_separator_GCJ \
25632     hardcode_automatic_GCJ \
25633     module_cmds_GCJ \
25634     module_expsym_cmds_GCJ \
25635     lt_cv_prog_compiler_c_o_GCJ \
25636     exclude_expsyms_GCJ \
25637     include_expsyms_GCJ; do
25638
25639     case $var in
25640     old_archive_cmds_GCJ | \
25641     old_archive_from_new_cmds_GCJ | \
25642     archive_cmds_GCJ | \
25643     archive_expsym_cmds_GCJ | \
25644     module_cmds_GCJ | \
25645     module_expsym_cmds_GCJ | \
25646     old_archive_from_expsyms_cmds_GCJ | \
25647     export_symbols_cmds_GCJ | \
25648     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25649     postinstall_cmds | postuninstall_cmds | \
25650     old_postinstall_cmds | old_postuninstall_cmds | \
25651     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25652       # Double-quote double-evaled strings.
25653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25654       ;;
25655     *)
25656       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25657       ;;
25658     esac
25659   done
25660
25661   case $lt_echo in
25662   *'\$0 --fallback-echo"')
25663     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25664     ;;
25665   esac
25666
25667 cfgfile="$ofile"
25668
25669   cat <<__EOF__ >> "$cfgfile"
25670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25671
25672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25673
25674 # Shell to use when invoking shell scripts.
25675 SHELL=$lt_SHELL
25676
25677 # Whether or not to build shared libraries.
25678 build_libtool_libs=$enable_shared
25679
25680 # Whether or not to build static libraries.
25681 build_old_libs=$enable_static
25682
25683 # Whether or not to add -lc for building shared libraries.
25684 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25685
25686 # Whether or not to disallow shared libs when runtime libs are static
25687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25688
25689 # Whether or not to optimize for fast installation.
25690 fast_install=$enable_fast_install
25691
25692 # The host system.
25693 host_alias=$host_alias
25694 host=$host
25695 host_os=$host_os
25696
25697 # The build system.
25698 build_alias=$build_alias
25699 build=$build
25700 build_os=$build_os
25701
25702 # An echo program that does not interpret backslashes.
25703 echo=$lt_echo
25704
25705 # The archiver.
25706 AR=$lt_AR
25707 AR_FLAGS=$lt_AR_FLAGS
25708
25709 # A C compiler.
25710 LTCC=$lt_LTCC
25711
25712 # LTCC compiler flags.
25713 LTCFLAGS=$lt_LTCFLAGS
25714
25715 # A language-specific compiler.
25716 CC=$lt_compiler_GCJ
25717
25718 # Is the compiler the GNU C compiler?
25719 with_gcc=$GCC_GCJ
25720
25721 # An ERE matcher.
25722 EGREP=$lt_EGREP
25723
25724 # The linker used to build libraries.
25725 LD=$lt_LD_GCJ
25726
25727 # Whether we need hard or soft links.
25728 LN_S=$lt_LN_S
25729
25730 # A BSD-compatible nm program.
25731 NM=$lt_NM
25732
25733 # A symbol stripping program
25734 STRIP=$lt_STRIP
25735
25736 # Used to examine libraries when file_magic_cmd begins "file"
25737 MAGIC_CMD=$MAGIC_CMD
25738
25739 # Used on cygwin: DLL creation program.
25740 DLLTOOL="$DLLTOOL"
25741
25742 # Used on cygwin: object dumper.
25743 OBJDUMP="$OBJDUMP"
25744
25745 # Used on cygwin: assembler.
25746 AS="$AS"
25747
25748 # The name of the directory that contains temporary libtool files.
25749 objdir=$objdir
25750
25751 # How to create reloadable object files.
25752 reload_flag=$lt_reload_flag
25753 reload_cmds=$lt_reload_cmds
25754
25755 # How to pass a linker flag through the compiler.
25756 wl=$lt_lt_prog_compiler_wl_GCJ
25757
25758 # Object file suffix (normally "o").
25759 objext="$ac_objext"
25760
25761 # Old archive suffix (normally "a").
25762 libext="$libext"
25763
25764 # Shared library suffix (normally ".so").
25765 shrext_cmds='$shrext_cmds'
25766
25767 # Executable file suffix (normally "").
25768 exeext="$exeext"
25769
25770 # Additional compiler flags for building library objects.
25771 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25772 pic_mode=$pic_mode
25773
25774 # What is the maximum length of a command?
25775 max_cmd_len=$lt_cv_sys_max_cmd_len
25776
25777 # Does compiler simultaneously support -c and -o options?
25778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25779
25780 # Must we lock files when doing compilation?
25781 need_locks=$lt_need_locks
25782
25783 # Do we need the lib prefix for modules?
25784 need_lib_prefix=$need_lib_prefix
25785
25786 # Do we need a version for libraries?
25787 need_version=$need_version
25788
25789 # Whether dlopen is supported.
25790 dlopen_support=$enable_dlopen
25791
25792 # Whether dlopen of programs is supported.
25793 dlopen_self=$enable_dlopen_self
25794
25795 # Whether dlopen of statically linked programs is supported.
25796 dlopen_self_static=$enable_dlopen_self_static
25797
25798 # Compiler flag to prevent dynamic linking.
25799 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25800
25801 # Compiler flag to turn off builtin functions.
25802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25803
25804 # Compiler flag to allow reflexive dlopens.
25805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25806
25807 # Compiler flag to generate shared objects directly from archives.
25808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25809
25810 # Compiler flag to generate thread-safe objects.
25811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25812
25813 # Library versioning type.
25814 version_type=$version_type
25815
25816 # Format of library name prefix.
25817 libname_spec=$lt_libname_spec
25818
25819 # List of archive names.  First name is the real one, the rest are links.
25820 # The last name is the one that the linker finds with -lNAME.
25821 library_names_spec=$lt_library_names_spec
25822
25823 # The coded name of the library, if different from the real name.
25824 soname_spec=$lt_soname_spec
25825
25826 # Commands used to build and install an old-style archive.
25827 RANLIB=$lt_RANLIB
25828 old_archive_cmds=$lt_old_archive_cmds_GCJ
25829 old_postinstall_cmds=$lt_old_postinstall_cmds
25830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25831
25832 # Create an old-style archive from a shared archive.
25833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25834
25835 # Create a temporary old-style archive to link instead of a shared archive.
25836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25837
25838 # Commands used to build and install a shared archive.
25839 archive_cmds=$lt_archive_cmds_GCJ
25840 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25841 postinstall_cmds=$lt_postinstall_cmds
25842 postuninstall_cmds=$lt_postuninstall_cmds
25843
25844 # Commands used to build a loadable module (assumed same as above if empty)
25845 module_cmds=$lt_module_cmds_GCJ
25846 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25847
25848 # Commands to strip libraries.
25849 old_striplib=$lt_old_striplib
25850 striplib=$lt_striplib
25851
25852 # Dependencies to place before the objects being linked to create a
25853 # shared library.
25854 predep_objects=$lt_predep_objects_GCJ
25855
25856 # Dependencies to place after the objects being linked to create a
25857 # shared library.
25858 postdep_objects=$lt_postdep_objects_GCJ
25859
25860 # Dependencies to place before the objects being linked to create a
25861 # shared library.
25862 predeps=$lt_predeps_GCJ
25863
25864 # Dependencies to place after the objects being linked to create a
25865 # shared library.
25866 postdeps=$lt_postdeps_GCJ
25867
25868 # The library search path used internally by the compiler when linking
25869 # a shared library.
25870 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25871
25872 # Method to check whether dependent libraries are shared objects.
25873 deplibs_check_method=$lt_deplibs_check_method
25874
25875 # Command to use when deplibs_check_method == file_magic.
25876 file_magic_cmd=$lt_file_magic_cmd
25877
25878 # Flag that allows shared libraries with undefined symbols to be built.
25879 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25880
25881 # Flag that forces no undefined symbols.
25882 no_undefined_flag=$lt_no_undefined_flag_GCJ
25883
25884 # Commands used to finish a libtool library installation in a directory.
25885 finish_cmds=$lt_finish_cmds
25886
25887 # Same as above, but a single script fragment to be evaled but not shown.
25888 finish_eval=$lt_finish_eval
25889
25890 # Take the output of nm and produce a listing of raw symbols and C names.
25891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25892
25893 # Transform the output of nm in a proper C declaration
25894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25895
25896 # Transform the output of nm in a C name address pair
25897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25898
25899 # This is the shared library runtime path variable.
25900 runpath_var=$runpath_var
25901
25902 # This is the shared library path variable.
25903 shlibpath_var=$shlibpath_var
25904
25905 # Is shlibpath searched before the hard-coded library search path?
25906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25907
25908 # How to hardcode a shared library path into an executable.
25909 hardcode_action=$hardcode_action_GCJ
25910
25911 # Whether we should hardcode library paths into libraries.
25912 hardcode_into_libs=$hardcode_into_libs
25913
25914 # Flag to hardcode \$libdir into a binary during linking.
25915 # This must work even if \$libdir does not exist.
25916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25917
25918 # If ld is used when linking, flag to hardcode \$libdir into
25919 # a binary during linking. This must work even if \$libdir does
25920 # not exist.
25921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25922
25923 # Whether we need a single -rpath flag with a separated argument.
25924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25925
25926 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25927 # resulting binary.
25928 hardcode_direct=$hardcode_direct_GCJ
25929
25930 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25931 # resulting binary.
25932 hardcode_minus_L=$hardcode_minus_L_GCJ
25933
25934 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25935 # the resulting binary.
25936 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25937
25938 # Set to yes if building a shared library automatically hardcodes DIR into the library
25939 # and all subsequent libraries and executables linked against it.
25940 hardcode_automatic=$hardcode_automatic_GCJ
25941
25942 # Variables whose values should be saved in libtool wrapper scripts and
25943 # restored at relink time.
25944 variables_saved_for_relink="$variables_saved_for_relink"
25945
25946 # Whether libtool must link a program against all its dependency libraries.
25947 link_all_deplibs=$link_all_deplibs_GCJ
25948
25949 # Compile-time system search path for libraries
25950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25951
25952 # Run-time system search path for libraries
25953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25954
25955 # Fix the shell variable \$srcfile for the compiler.
25956 fix_srcfile_path="$fix_srcfile_path_GCJ"
25957
25958 # Set to yes if exported symbols are required.
25959 always_export_symbols=$always_export_symbols_GCJ
25960
25961 # The commands to list exported symbols.
25962 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25963
25964 # The commands to extract the exported symbol list from a shared archive.
25965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25966
25967 # Symbols that should not be listed in the preloaded symbols.
25968 exclude_expsyms=$lt_exclude_expsyms_GCJ
25969
25970 # Symbols that must always be exported.
25971 include_expsyms=$lt_include_expsyms_GCJ
25972
25973 # ### END LIBTOOL TAG CONFIG: $tagname
25974
25975 __EOF__
25976
25977
25978 else
25979   # If there is no Makefile yet, we rely on a make rule to execute
25980   # `config.status --recheck' to rerun these tests and create the
25981   # libtool script then.
25982   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25983   if test -f "$ltmain_in"; then
25984     test -f Makefile && make "$ltmain"
25985   fi
25986 fi
25987
25988
25989 ac_ext=c
25990 ac_cpp='$CPP $CPPFLAGS'
25991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25994
25995 CC="$lt_save_CC"
25996
25997         else
25998           tagname=""
25999         fi
26000         ;;
26001
26002       RC)
26003         ac_ext=c
26004 ac_cpp='$CPP $CPPFLAGS'
26005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26008
26009
26010 # Source file extension for RC test sources.
26011 ac_ext=rc
26012
26013 # Object file extension for compiled RC test sources.
26014 objext=o
26015 objext_RC=$objext
26016
26017 # Code to be used in simple compile tests
26018 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26019
26020 # Code to be used in simple link tests
26021 lt_simple_link_test_code="$lt_simple_compile_test_code"
26022
26023 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26024
26025 # If no C compiler was specified, use CC.
26026 LTCC=${LTCC-"$CC"}
26027
26028 # If no C compiler flags were specified, use CFLAGS.
26029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26030
26031 # Allow CC to be a program name with arguments.
26032 compiler=$CC
26033
26034
26035 # save warnings/boilerplate of simple test code
26036 ac_outfile=conftest.$ac_objext
26037 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26039 _lt_compiler_boilerplate=`cat conftest.err`
26040 $rm conftest*
26041
26042 ac_outfile=conftest.$ac_objext
26043 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26045 _lt_linker_boilerplate=`cat conftest.err`
26046 $rm conftest*
26047
26048
26049 # Allow CC to be a program name with arguments.
26050 lt_save_CC="$CC"
26051 CC=${RC-"windres"}
26052 compiler=$CC
26053 compiler_RC=$CC
26054 for cc_temp in $compiler""; do
26055   case $cc_temp in
26056     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26057     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26058     \-*) ;;
26059     *) break;;
26060   esac
26061 done
26062 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26063
26064 lt_cv_prog_compiler_c_o_RC=yes
26065
26066 # The else clause should only fire when bootstrapping the
26067 # libtool distribution, otherwise you forgot to ship ltmain.sh
26068 # with your package, and you will get complaints that there are
26069 # no rules to generate ltmain.sh.
26070 if test -f "$ltmain"; then
26071   # See if we are running on zsh, and set the options which allow our commands through
26072   # without removal of \ escapes.
26073   if test -n "${ZSH_VERSION+set}" ; then
26074     setopt NO_GLOB_SUBST
26075   fi
26076   # Now quote all the things that may contain metacharacters while being
26077   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26078   # variables and quote the copies for generation of the libtool script.
26079   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26080     SED SHELL STRIP \
26081     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26082     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26083     deplibs_check_method reload_flag reload_cmds need_locks \
26084     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26085     lt_cv_sys_global_symbol_to_c_name_address \
26086     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26087     old_postinstall_cmds old_postuninstall_cmds \
26088     compiler_RC \
26089     CC_RC \
26090     LD_RC \
26091     lt_prog_compiler_wl_RC \
26092     lt_prog_compiler_pic_RC \
26093     lt_prog_compiler_static_RC \
26094     lt_prog_compiler_no_builtin_flag_RC \
26095     export_dynamic_flag_spec_RC \
26096     thread_safe_flag_spec_RC \
26097     whole_archive_flag_spec_RC \
26098     enable_shared_with_static_runtimes_RC \
26099     old_archive_cmds_RC \
26100     old_archive_from_new_cmds_RC \
26101     predep_objects_RC \
26102     postdep_objects_RC \
26103     predeps_RC \
26104     postdeps_RC \
26105     compiler_lib_search_path_RC \
26106     archive_cmds_RC \
26107     archive_expsym_cmds_RC \
26108     postinstall_cmds_RC \
26109     postuninstall_cmds_RC \
26110     old_archive_from_expsyms_cmds_RC \
26111     allow_undefined_flag_RC \
26112     no_undefined_flag_RC \
26113     export_symbols_cmds_RC \
26114     hardcode_libdir_flag_spec_RC \
26115     hardcode_libdir_flag_spec_ld_RC \
26116     hardcode_libdir_separator_RC \
26117     hardcode_automatic_RC \
26118     module_cmds_RC \
26119     module_expsym_cmds_RC \
26120     lt_cv_prog_compiler_c_o_RC \
26121     exclude_expsyms_RC \
26122     include_expsyms_RC; do
26123
26124     case $var in
26125     old_archive_cmds_RC | \
26126     old_archive_from_new_cmds_RC | \
26127     archive_cmds_RC | \
26128     archive_expsym_cmds_RC | \
26129     module_cmds_RC | \
26130     module_expsym_cmds_RC | \
26131     old_archive_from_expsyms_cmds_RC | \
26132     export_symbols_cmds_RC | \
26133     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26134     postinstall_cmds | postuninstall_cmds | \
26135     old_postinstall_cmds | old_postuninstall_cmds | \
26136     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26137       # Double-quote double-evaled strings.
26138       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26139       ;;
26140     *)
26141       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26142       ;;
26143     esac
26144   done
26145
26146   case $lt_echo in
26147   *'\$0 --fallback-echo"')
26148     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26149     ;;
26150   esac
26151
26152 cfgfile="$ofile"
26153
26154   cat <<__EOF__ >> "$cfgfile"
26155 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26156
26157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26158
26159 # Shell to use when invoking shell scripts.
26160 SHELL=$lt_SHELL
26161
26162 # Whether or not to build shared libraries.
26163 build_libtool_libs=$enable_shared
26164
26165 # Whether or not to build static libraries.
26166 build_old_libs=$enable_static
26167
26168 # Whether or not to add -lc for building shared libraries.
26169 build_libtool_need_lc=$archive_cmds_need_lc_RC
26170
26171 # Whether or not to disallow shared libs when runtime libs are static
26172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26173
26174 # Whether or not to optimize for fast installation.
26175 fast_install=$enable_fast_install
26176
26177 # The host system.
26178 host_alias=$host_alias
26179 host=$host
26180 host_os=$host_os
26181
26182 # The build system.
26183 build_alias=$build_alias
26184 build=$build
26185 build_os=$build_os
26186
26187 # An echo program that does not interpret backslashes.
26188 echo=$lt_echo
26189
26190 # The archiver.
26191 AR=$lt_AR
26192 AR_FLAGS=$lt_AR_FLAGS
26193
26194 # A C compiler.
26195 LTCC=$lt_LTCC
26196
26197 # LTCC compiler flags.
26198 LTCFLAGS=$lt_LTCFLAGS
26199
26200 # A language-specific compiler.
26201 CC=$lt_compiler_RC
26202
26203 # Is the compiler the GNU C compiler?
26204 with_gcc=$GCC_RC
26205
26206 # An ERE matcher.
26207 EGREP=$lt_EGREP
26208
26209 # The linker used to build libraries.
26210 LD=$lt_LD_RC
26211
26212 # Whether we need hard or soft links.
26213 LN_S=$lt_LN_S
26214
26215 # A BSD-compatible nm program.
26216 NM=$lt_NM
26217
26218 # A symbol stripping program
26219 STRIP=$lt_STRIP
26220
26221 # Used to examine libraries when file_magic_cmd begins "file"
26222 MAGIC_CMD=$MAGIC_CMD
26223
26224 # Used on cygwin: DLL creation program.
26225 DLLTOOL="$DLLTOOL"
26226
26227 # Used on cygwin: object dumper.
26228 OBJDUMP="$OBJDUMP"
26229
26230 # Used on cygwin: assembler.
26231 AS="$AS"
26232
26233 # The name of the directory that contains temporary libtool files.
26234 objdir=$objdir
26235
26236 # How to create reloadable object files.
26237 reload_flag=$lt_reload_flag
26238 reload_cmds=$lt_reload_cmds
26239
26240 # How to pass a linker flag through the compiler.
26241 wl=$lt_lt_prog_compiler_wl_RC
26242
26243 # Object file suffix (normally "o").
26244 objext="$ac_objext"
26245
26246 # Old archive suffix (normally "a").
26247 libext="$libext"
26248
26249 # Shared library suffix (normally ".so").
26250 shrext_cmds='$shrext_cmds'
26251
26252 # Executable file suffix (normally "").
26253 exeext="$exeext"
26254
26255 # Additional compiler flags for building library objects.
26256 pic_flag=$lt_lt_prog_compiler_pic_RC
26257 pic_mode=$pic_mode
26258
26259 # What is the maximum length of a command?
26260 max_cmd_len=$lt_cv_sys_max_cmd_len
26261
26262 # Does compiler simultaneously support -c and -o options?
26263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26264
26265 # Must we lock files when doing compilation?
26266 need_locks=$lt_need_locks
26267
26268 # Do we need the lib prefix for modules?
26269 need_lib_prefix=$need_lib_prefix
26270
26271 # Do we need a version for libraries?
26272 need_version=$need_version
26273
26274 # Whether dlopen is supported.
26275 dlopen_support=$enable_dlopen
26276
26277 # Whether dlopen of programs is supported.
26278 dlopen_self=$enable_dlopen_self
26279
26280 # Whether dlopen of statically linked programs is supported.
26281 dlopen_self_static=$enable_dlopen_self_static
26282
26283 # Compiler flag to prevent dynamic linking.
26284 link_static_flag=$lt_lt_prog_compiler_static_RC
26285
26286 # Compiler flag to turn off builtin functions.
26287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26288
26289 # Compiler flag to allow reflexive dlopens.
26290 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26291
26292 # Compiler flag to generate shared objects directly from archives.
26293 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26294
26295 # Compiler flag to generate thread-safe objects.
26296 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26297
26298 # Library versioning type.
26299 version_type=$version_type
26300
26301 # Format of library name prefix.
26302 libname_spec=$lt_libname_spec
26303
26304 # List of archive names.  First name is the real one, the rest are links.
26305 # The last name is the one that the linker finds with -lNAME.
26306 library_names_spec=$lt_library_names_spec
26307
26308 # The coded name of the library, if different from the real name.
26309 soname_spec=$lt_soname_spec
26310
26311 # Commands used to build and install an old-style archive.
26312 RANLIB=$lt_RANLIB
26313 old_archive_cmds=$lt_old_archive_cmds_RC
26314 old_postinstall_cmds=$lt_old_postinstall_cmds
26315 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26316
26317 # Create an old-style archive from a shared archive.
26318 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26319
26320 # Create a temporary old-style archive to link instead of a shared archive.
26321 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26322
26323 # Commands used to build and install a shared archive.
26324 archive_cmds=$lt_archive_cmds_RC
26325 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26326 postinstall_cmds=$lt_postinstall_cmds
26327 postuninstall_cmds=$lt_postuninstall_cmds
26328
26329 # Commands used to build a loadable module (assumed same as above if empty)
26330 module_cmds=$lt_module_cmds_RC
26331 module_expsym_cmds=$lt_module_expsym_cmds_RC
26332
26333 # Commands to strip libraries.
26334 old_striplib=$lt_old_striplib
26335 striplib=$lt_striplib
26336
26337 # Dependencies to place before the objects being linked to create a
26338 # shared library.
26339 predep_objects=$lt_predep_objects_RC
26340
26341 # Dependencies to place after the objects being linked to create a
26342 # shared library.
26343 postdep_objects=$lt_postdep_objects_RC
26344
26345 # Dependencies to place before the objects being linked to create a
26346 # shared library.
26347 predeps=$lt_predeps_RC
26348
26349 # Dependencies to place after the objects being linked to create a
26350 # shared library.
26351 postdeps=$lt_postdeps_RC
26352
26353 # The library search path used internally by the compiler when linking
26354 # a shared library.
26355 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26356
26357 # Method to check whether dependent libraries are shared objects.
26358 deplibs_check_method=$lt_deplibs_check_method
26359
26360 # Command to use when deplibs_check_method == file_magic.
26361 file_magic_cmd=$lt_file_magic_cmd
26362
26363 # Flag that allows shared libraries with undefined symbols to be built.
26364 allow_undefined_flag=$lt_allow_undefined_flag_RC
26365
26366 # Flag that forces no undefined symbols.
26367 no_undefined_flag=$lt_no_undefined_flag_RC
26368
26369 # Commands used to finish a libtool library installation in a directory.
26370 finish_cmds=$lt_finish_cmds
26371
26372 # Same as above, but a single script fragment to be evaled but not shown.
26373 finish_eval=$lt_finish_eval
26374
26375 # Take the output of nm and produce a listing of raw symbols and C names.
26376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26377
26378 # Transform the output of nm in a proper C declaration
26379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26380
26381 # Transform the output of nm in a C name address pair
26382 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26383
26384 # This is the shared library runtime path variable.
26385 runpath_var=$runpath_var
26386
26387 # This is the shared library path variable.
26388 shlibpath_var=$shlibpath_var
26389
26390 # Is shlibpath searched before the hard-coded library search path?
26391 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26392
26393 # How to hardcode a shared library path into an executable.
26394 hardcode_action=$hardcode_action_RC
26395
26396 # Whether we should hardcode library paths into libraries.
26397 hardcode_into_libs=$hardcode_into_libs
26398
26399 # Flag to hardcode \$libdir into a binary during linking.
26400 # This must work even if \$libdir does not exist.
26401 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26402
26403 # If ld is used when linking, flag to hardcode \$libdir into
26404 # a binary during linking. This must work even if \$libdir does
26405 # not exist.
26406 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26407
26408 # Whether we need a single -rpath flag with a separated argument.
26409 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26410
26411 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26412 # resulting binary.
26413 hardcode_direct=$hardcode_direct_RC
26414
26415 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26416 # resulting binary.
26417 hardcode_minus_L=$hardcode_minus_L_RC
26418
26419 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26420 # the resulting binary.
26421 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26422
26423 # Set to yes if building a shared library automatically hardcodes DIR into the library
26424 # and all subsequent libraries and executables linked against it.
26425 hardcode_automatic=$hardcode_automatic_RC
26426
26427 # Variables whose values should be saved in libtool wrapper scripts and
26428 # restored at relink time.
26429 variables_saved_for_relink="$variables_saved_for_relink"
26430
26431 # Whether libtool must link a program against all its dependency libraries.
26432 link_all_deplibs=$link_all_deplibs_RC
26433
26434 # Compile-time system search path for libraries
26435 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26436
26437 # Run-time system search path for libraries
26438 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26439
26440 # Fix the shell variable \$srcfile for the compiler.
26441 fix_srcfile_path="$fix_srcfile_path_RC"
26442
26443 # Set to yes if exported symbols are required.
26444 always_export_symbols=$always_export_symbols_RC
26445
26446 # The commands to list exported symbols.
26447 export_symbols_cmds=$lt_export_symbols_cmds_RC
26448
26449 # The commands to extract the exported symbol list from a shared archive.
26450 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26451
26452 # Symbols that should not be listed in the preloaded symbols.
26453 exclude_expsyms=$lt_exclude_expsyms_RC
26454
26455 # Symbols that must always be exported.
26456 include_expsyms=$lt_include_expsyms_RC
26457
26458 # ### END LIBTOOL TAG CONFIG: $tagname
26459
26460 __EOF__
26461
26462
26463 else
26464   # If there is no Makefile yet, we rely on a make rule to execute
26465   # `config.status --recheck' to rerun these tests and create the
26466   # libtool script then.
26467   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26468   if test -f "$ltmain_in"; then
26469     test -f Makefile && make "$ltmain"
26470   fi
26471 fi
26472
26473
26474 ac_ext=c
26475 ac_cpp='$CPP $CPPFLAGS'
26476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26479
26480 CC="$lt_save_CC"
26481
26482         ;;
26483
26484       *)
26485         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26486 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26487    { (exit 1); exit 1; }; }
26488         ;;
26489       esac
26490
26491       # Append the new tag name to the list of available tags.
26492       if test -n "$tagname" ; then
26493       available_tags="$available_tags $tagname"
26494     fi
26495     fi
26496   done
26497   IFS="$lt_save_ifs"
26498
26499   # Now substitute the updated list of available tags.
26500   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26501     mv "${ofile}T" "$ofile"
26502     chmod +x "$ofile"
26503   else
26504     rm -f "${ofile}T"
26505     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26506 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26507    { (exit 1); exit 1; }; }
26508   fi
26509 fi
26510
26511
26512
26513 # This can be used to rebuild libtool when needed
26514 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26515
26516 # Always use our own libtool.
26517 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26518
26519 # Prevent multiple expansion
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541 if test "$lt_cv_dlopen_self" = "yes" ; then
26542
26543 cat >>confdefs.h <<\_ACEOF
26544 #define CAN_DLOPEN_SELF 1
26545 _ACEOF
26546
26547 fi
26548
26549 etags_version=`$ETAGS --version 2>&1`
26550 case "$etags_version" in
26551         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26552         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26553         *) ETAGSFLAGS="" ;;
26554 esac
26555 ETAGSFLAGS=$ETAGSFLAGS
26556
26557
26558 if test "$WITH_LLVMGCCDIR" = "default" ; then
26559   LLVMGCC="llvm-gcc${EXEEXT}"
26560   LLVMGXX="llvm-g++${EXEEXT}"
26561   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26562 set dummy $LLVMGCC; ac_word=$2
26563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26565 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26566   echo $ECHO_N "(cached) $ECHO_C" >&6
26567 else
26568   case $LLVMGCC in
26569   [\\/]* | ?:[\\/]*)
26570   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26571   ;;
26572   *)
26573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26574 for as_dir in $PATH
26575 do
26576   IFS=$as_save_IFS
26577   test -z "$as_dir" && as_dir=.
26578   for ac_exec_ext in '' $ac_executable_extensions; do
26579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26580     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26582     break 2
26583   fi
26584 done
26585 done
26586 IFS=$as_save_IFS
26587
26588   ;;
26589 esac
26590 fi
26591 LLVMGCC=$ac_cv_path_LLVMGCC
26592 if test -n "$LLVMGCC"; then
26593   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26594 echo "${ECHO_T}$LLVMGCC" >&6; }
26595 else
26596   { echo "$as_me:$LINENO: result: no" >&5
26597 echo "${ECHO_T}no" >&6; }
26598 fi
26599
26600
26601   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26602 set dummy $LLVMGXX; ac_word=$2
26603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26605 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26606   echo $ECHO_N "(cached) $ECHO_C" >&6
26607 else
26608   case $LLVMGXX in
26609   [\\/]* | ?:[\\/]*)
26610   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26611   ;;
26612   *)
26613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26614 for as_dir in $PATH
26615 do
26616   IFS=$as_save_IFS
26617   test -z "$as_dir" && as_dir=.
26618   for ac_exec_ext in '' $ac_executable_extensions; do
26619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26620     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26622     break 2
26623   fi
26624 done
26625 done
26626 IFS=$as_save_IFS
26627
26628   ;;
26629 esac
26630 fi
26631 LLVMGXX=$ac_cv_path_LLVMGXX
26632 if test -n "$LLVMGXX"; then
26633   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26634 echo "${ECHO_T}$LLVMGXX" >&6; }
26635 else
26636   { echo "$as_me:$LINENO: result: no" >&5
26637 echo "${ECHO_T}no" >&6; }
26638 fi
26639
26640
26641 else
26642   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26643   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26644   LLVMGCC=$LLVMGCC
26645
26646   LLVMGXX=$LLVMGXX
26647
26648 fi
26649
26650 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26651 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26652
26653 ICC=no
26654 IXX=no
26655 case $CC in
26656   icc*|icpc*)
26657     ICC=yes
26658     IXX=yes
26659     ;;
26660    *)
26661     ;;
26662 esac
26663
26664 if test "$GCC" != "yes" && test "$ICC" != "yes"
26665 then
26666   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26667 echo "$as_me: error: gcc|icc required but not found" >&2;}
26668    { (exit 1); exit 1; }; }
26669 fi
26670
26671 if test "$GXX" != "yes" && test "$IXX" != "yes"
26672 then
26673   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26674 echo "$as_me: error: g++|icc required but not found" >&2;}
26675    { (exit 1); exit 1; }; }
26676 fi
26677
26678 if test "$GCC" = "yes"
26679 then
26680   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26681   if test "$gccmajor" -lt "3"
26682   then
26683     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26684 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26685    { (exit 1); exit 1; }; }
26686   fi
26687 fi
26688
26689 if test -z "$llvm_cv_gnu_make_command"
26690 then
26691   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26692 echo "$as_me: error: GNU Make required but not found" >&2;}
26693    { (exit 1); exit 1; }; }
26694 fi
26695
26696 { echo "$as_me:$LINENO: result: ok" >&5
26697 echo "${ECHO_T}ok" >&6; }
26698
26699
26700
26701 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26702 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26703 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26704   echo $ECHO_N "(cached) $ECHO_C" >&6
26705 else
26706   ac_check_lib_save_LIBS=$LIBS
26707 LIBS="-lelf  $LIBS"
26708 cat >conftest.$ac_ext <<_ACEOF
26709 /* confdefs.h.  */
26710 _ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h.  */
26714
26715 /* Override any GCC internal prototype to avoid an error.
26716    Use char because int might match the return type of a GCC
26717    builtin and then its argument prototype would still apply.  */
26718 #ifdef __cplusplus
26719 extern "C"
26720 #endif
26721 char elf_begin ();
26722 int
26723 main ()
26724 {
26725 return elf_begin ();
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 rm -f conftest.$ac_objext conftest$ac_exeext
26731 if { (ac_try="$ac_link"
26732 case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26737   (eval "$ac_link") 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } &&
26744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26745   { (case "(($ac_try" in
26746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747   *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750   (eval "$ac_try") 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; } &&
26754          { ac_try='test -s conftest$ac_exeext'
26755   { (case "(($ac_try" in
26756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757   *) ac_try_echo=$ac_try;;
26758 esac
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760   (eval "$ac_try") 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); }; }; then
26764   ac_cv_lib_elf_elf_begin=yes
26765 else
26766   echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769         ac_cv_lib_elf_elf_begin=no
26770 fi
26771
26772 rm -f core conftest.err conftest.$ac_objext \
26773       conftest$ac_exeext conftest.$ac_ext
26774 LIBS=$ac_check_lib_save_LIBS
26775 fi
26776 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26777 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26778 if test $ac_cv_lib_elf_elf_begin = yes; then
26779   cat >>confdefs.h <<_ACEOF
26780 #define HAVE_LIBELF 1
26781 _ACEOF
26782
26783   LIBS="-lelf $LIBS"
26784
26785 fi
26786
26787
26788 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26789 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26790 if test "${ac_cv_lib_m_sin+set}" = set; then
26791   echo $ECHO_N "(cached) $ECHO_C" >&6
26792 else
26793   ac_check_lib_save_LIBS=$LIBS
26794 LIBS="-lm  $LIBS"
26795 cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801
26802 /* Override any GCC internal prototype to avoid an error.
26803    Use char because int might match the return type of a GCC
26804    builtin and then its argument prototype would still apply.  */
26805 #ifdef __cplusplus
26806 extern "C"
26807 #endif
26808 char sin ();
26809 int
26810 main ()
26811 {
26812 return sin ();
26813   ;
26814   return 0;
26815 }
26816 _ACEOF
26817 rm -f conftest.$ac_objext conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_link") 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } &&
26831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26832   { (case "(($ac_try" in
26833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834   *) ac_try_echo=$ac_try;;
26835 esac
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837   (eval "$ac_try") 2>&5
26838   ac_status=$?
26839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840   (exit $ac_status); }; } &&
26841          { ac_try='test -s conftest$ac_exeext'
26842   { (case "(($ac_try" in
26843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844   *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847   (eval "$ac_try") 2>&5
26848   ac_status=$?
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); }; }; then
26851   ac_cv_lib_m_sin=yes
26852 else
26853   echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26855
26856         ac_cv_lib_m_sin=no
26857 fi
26858
26859 rm -f core conftest.err conftest.$ac_objext \
26860       conftest$ac_exeext conftest.$ac_ext
26861 LIBS=$ac_check_lib_save_LIBS
26862 fi
26863 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26864 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26865 if test $ac_cv_lib_m_sin = yes; then
26866   cat >>confdefs.h <<_ACEOF
26867 #define HAVE_LIBM 1
26868 _ACEOF
26869
26870   LIBS="-lm $LIBS"
26871
26872 fi
26873
26874 if test "$llvm_cv_os_type" == "MingW" ; then
26875
26876 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26877 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26878 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26879   echo $ECHO_N "(cached) $ECHO_C" >&6
26880 else
26881   ac_check_lib_save_LIBS=$LIBS
26882 LIBS="-limagehlp  $LIBS"
26883 cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h.  */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h.  */
26889
26890
26891 int
26892 main ()
26893 {
26894 return main ();
26895   ;
26896   return 0;
26897 }
26898 _ACEOF
26899 rm -f conftest.$ac_objext conftest$ac_exeext
26900 if { (ac_try="$ac_link"
26901 case "(($ac_try" in
26902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903   *) ac_try_echo=$ac_try;;
26904 esac
26905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26906   (eval "$ac_link") 2>conftest.er1
26907   ac_status=$?
26908   grep -v '^ *+' conftest.er1 >conftest.err
26909   rm -f conftest.er1
26910   cat conftest.err >&5
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } &&
26913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26914   { (case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_try") 2>&5
26920   ac_status=$?
26921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922   (exit $ac_status); }; } &&
26923          { ac_try='test -s conftest$ac_exeext'
26924   { (case "(($ac_try" in
26925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926   *) ac_try_echo=$ac_try;;
26927 esac
26928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929   (eval "$ac_try") 2>&5
26930   ac_status=$?
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); }; }; then
26933   ac_cv_lib_imagehlp_main=yes
26934 else
26935   echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26937
26938         ac_cv_lib_imagehlp_main=no
26939 fi
26940
26941 rm -f core conftest.err conftest.$ac_objext \
26942       conftest$ac_exeext conftest.$ac_ext
26943 LIBS=$ac_check_lib_save_LIBS
26944 fi
26945 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26946 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26947 if test $ac_cv_lib_imagehlp_main = yes; then
26948   cat >>confdefs.h <<_ACEOF
26949 #define HAVE_LIBIMAGEHLP 1
26950 _ACEOF
26951
26952   LIBS="-limagehlp $LIBS"
26953
26954 fi
26955
26956
26957 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26958 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26959 if test "${ac_cv_lib_psapi_main+set}" = set; then
26960   echo $ECHO_N "(cached) $ECHO_C" >&6
26961 else
26962   ac_check_lib_save_LIBS=$LIBS
26963 LIBS="-lpsapi  $LIBS"
26964 cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970
26971
26972 int
26973 main ()
26974 {
26975 return main ();
26976   ;
26977   return 0;
26978 }
26979 _ACEOF
26980 rm -f conftest.$ac_objext conftest$ac_exeext
26981 if { (ac_try="$ac_link"
26982 case "(($ac_try" in
26983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984   *) ac_try_echo=$ac_try;;
26985 esac
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987   (eval "$ac_link") 2>conftest.er1
26988   ac_status=$?
26989   grep -v '^ *+' conftest.er1 >conftest.err
26990   rm -f conftest.er1
26991   cat conftest.err >&5
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); } &&
26994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26995   { (case "(($ac_try" in
26996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997   *) ac_try_echo=$ac_try;;
26998 esac
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000   (eval "$ac_try") 2>&5
27001   ac_status=$?
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); }; } &&
27004          { ac_try='test -s conftest$ac_exeext'
27005   { (case "(($ac_try" in
27006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007   *) ac_try_echo=$ac_try;;
27008 esac
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010   (eval "$ac_try") 2>&5
27011   ac_status=$?
27012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); }; }; then
27014   ac_cv_lib_psapi_main=yes
27015 else
27016   echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27018
27019         ac_cv_lib_psapi_main=no
27020 fi
27021
27022 rm -f core conftest.err conftest.$ac_objext \
27023       conftest$ac_exeext conftest.$ac_ext
27024 LIBS=$ac_check_lib_save_LIBS
27025 fi
27026 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27027 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27028 if test $ac_cv_lib_psapi_main = yes; then
27029   cat >>confdefs.h <<_ACEOF
27030 #define HAVE_LIBPSAPI 1
27031 _ACEOF
27032
27033   LIBS="-lpsapi $LIBS"
27034
27035 fi
27036
27037 fi
27038
27039 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27040 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27041 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27042   echo $ECHO_N "(cached) $ECHO_C" >&6
27043 else
27044   ac_func_search_save_LIBS=$LIBS
27045 cat >conftest.$ac_ext <<_ACEOF
27046 /* confdefs.h.  */
27047 _ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h.  */
27051
27052 /* Override any GCC internal prototype to avoid an error.
27053    Use char because int might match the return type of a GCC
27054    builtin and then its argument prototype would still apply.  */
27055 #ifdef __cplusplus
27056 extern "C"
27057 #endif
27058 char lt_dlopen ();
27059 int
27060 main ()
27061 {
27062 return lt_dlopen ();
27063   ;
27064   return 0;
27065 }
27066 _ACEOF
27067 for ac_lib in '' ltdl; do
27068   if test -z "$ac_lib"; then
27069     ac_res="none required"
27070   else
27071     ac_res=-l$ac_lib
27072     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27073   fi
27074   rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (ac_try="$ac_link"
27076 case "(($ac_try" in
27077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078   *) ac_try_echo=$ac_try;;
27079 esac
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081   (eval "$ac_link") 2>conftest.er1
27082   ac_status=$?
27083   grep -v '^ *+' conftest.er1 >conftest.err
27084   rm -f conftest.er1
27085   cat conftest.err >&5
27086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); } &&
27088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27089   { (case "(($ac_try" in
27090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091   *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094   (eval "$ac_try") 2>&5
27095   ac_status=$?
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); }; } &&
27098          { ac_try='test -s conftest$ac_exeext'
27099   { (case "(($ac_try" in
27100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101   *) ac_try_echo=$ac_try;;
27102 esac
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104   (eval "$ac_try") 2>&5
27105   ac_status=$?
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); }; }; then
27108   ac_cv_search_lt_dlopen=$ac_res
27109 else
27110   echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113
27114 fi
27115
27116 rm -f core conftest.err conftest.$ac_objext \
27117       conftest$ac_exeext
27118   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27119   break
27120 fi
27121 done
27122 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27123   :
27124 else
27125   ac_cv_search_lt_dlopen=no
27126 fi
27127 rm conftest.$ac_ext
27128 LIBS=$ac_func_search_save_LIBS
27129 fi
27130 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27131 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27132 ac_res=$ac_cv_search_lt_dlopen
27133 if test "$ac_res" != no; then
27134   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27135
27136 cat >>confdefs.h <<\_ACEOF
27137 #define HAVE_LT_DLOPEN 1
27138 _ACEOF
27139
27140 else
27141   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27142                            not be available" >&5
27143 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27144                            not be available" >&2;}
27145 fi
27146
27147
27148 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27149 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27150 if test "${ac_cv_search_dlopen+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   ac_func_search_save_LIBS=$LIBS
27154 cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160
27161 /* Override any GCC internal prototype to avoid an error.
27162    Use char because int might match the return type of a GCC
27163    builtin and then its argument prototype would still apply.  */
27164 #ifdef __cplusplus
27165 extern "C"
27166 #endif
27167 char dlopen ();
27168 int
27169 main ()
27170 {
27171 return dlopen ();
27172   ;
27173   return 0;
27174 }
27175 _ACEOF
27176 for ac_lib in '' dl; do
27177   if test -z "$ac_lib"; then
27178     ac_res="none required"
27179   else
27180     ac_res=-l$ac_lib
27181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27182   fi
27183   rm -f conftest.$ac_objext conftest$ac_exeext
27184 if { (ac_try="$ac_link"
27185 case "(($ac_try" in
27186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187   *) ac_try_echo=$ac_try;;
27188 esac
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190   (eval "$ac_link") 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } &&
27197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198   { (case "(($ac_try" in
27199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200   *) ac_try_echo=$ac_try;;
27201 esac
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203   (eval "$ac_try") 2>&5
27204   ac_status=$?
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); }; } &&
27207          { ac_try='test -s conftest$ac_exeext'
27208   { (case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213   (eval "$ac_try") 2>&5
27214   ac_status=$?
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); }; }; then
27217   ac_cv_search_dlopen=$ac_res
27218 else
27219   echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27221
27222
27223 fi
27224
27225 rm -f core conftest.err conftest.$ac_objext \
27226       conftest$ac_exeext
27227   if test "${ac_cv_search_dlopen+set}" = set; then
27228   break
27229 fi
27230 done
27231 if test "${ac_cv_search_dlopen+set}" = set; then
27232   :
27233 else
27234   ac_cv_search_dlopen=no
27235 fi
27236 rm conftest.$ac_ext
27237 LIBS=$ac_func_search_save_LIBS
27238 fi
27239 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27240 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27241 ac_res=$ac_cv_search_dlopen
27242 if test "$ac_res" != no; then
27243   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27244
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_DLOPEN 1
27247 _ACEOF
27248
27249 else
27250   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27251 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27252 fi
27253
27254
27255 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27256 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27257 if test "${ac_cv_search_mallinfo+set}" = set; then
27258   echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260   ac_func_search_save_LIBS=$LIBS
27261 cat >conftest.$ac_ext <<_ACEOF
27262 /* confdefs.h.  */
27263 _ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h.  */
27267
27268 /* Override any GCC internal prototype to avoid an error.
27269    Use char because int might match the return type of a GCC
27270    builtin and then its argument prototype would still apply.  */
27271 #ifdef __cplusplus
27272 extern "C"
27273 #endif
27274 char mallinfo ();
27275 int
27276 main ()
27277 {
27278 return mallinfo ();
27279   ;
27280   return 0;
27281 }
27282 _ACEOF
27283 for ac_lib in '' malloc; do
27284   if test -z "$ac_lib"; then
27285     ac_res="none required"
27286   else
27287     ac_res=-l$ac_lib
27288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27289   fi
27290   rm -f conftest.$ac_objext conftest$ac_exeext
27291 if { (ac_try="$ac_link"
27292 case "(($ac_try" in
27293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294   *) ac_try_echo=$ac_try;;
27295 esac
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297   (eval "$ac_link") 2>conftest.er1
27298   ac_status=$?
27299   grep -v '^ *+' conftest.er1 >conftest.err
27300   rm -f conftest.er1
27301   cat conftest.err >&5
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } &&
27304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27305   { (case "(($ac_try" in
27306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307   *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310   (eval "$ac_try") 2>&5
27311   ac_status=$?
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); }; } &&
27314          { ac_try='test -s conftest$ac_exeext'
27315   { (case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_try") 2>&5
27321   ac_status=$?
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); }; }; then
27324   ac_cv_search_mallinfo=$ac_res
27325 else
27326   echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27328
27329
27330 fi
27331
27332 rm -f core conftest.err conftest.$ac_objext \
27333       conftest$ac_exeext
27334   if test "${ac_cv_search_mallinfo+set}" = set; then
27335   break
27336 fi
27337 done
27338 if test "${ac_cv_search_mallinfo+set}" = set; then
27339   :
27340 else
27341   ac_cv_search_mallinfo=no
27342 fi
27343 rm conftest.$ac_ext
27344 LIBS=$ac_func_search_save_LIBS
27345 fi
27346 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27347 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27348 ac_res=$ac_cv_search_mallinfo
27349 if test "$ac_res" != no; then
27350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27351
27352 cat >>confdefs.h <<\_ACEOF
27353 #define HAVE_MALLINFO 1
27354 _ACEOF
27355
27356 fi
27357
27358
27359 if test "$ENABLE_THREADS" -eq 1 ; then
27360
27361 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27362 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27363 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27364   echo $ECHO_N "(cached) $ECHO_C" >&6
27365 else
27366   ac_check_lib_save_LIBS=$LIBS
27367 LIBS="-lpthread  $LIBS"
27368 cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374
27375 /* Override any GCC internal prototype to avoid an error.
27376    Use char because int might match the return type of a GCC
27377    builtin and then its argument prototype would still apply.  */
27378 #ifdef __cplusplus
27379 extern "C"
27380 #endif
27381 char pthread_mutex_init ();
27382 int
27383 main ()
27384 {
27385 return pthread_mutex_init ();
27386   ;
27387   return 0;
27388 }
27389 _ACEOF
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (ac_try="$ac_link"
27392 case "(($ac_try" in
27393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394   *) ac_try_echo=$ac_try;;
27395 esac
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397   (eval "$ac_link") 2>conftest.er1
27398   ac_status=$?
27399   grep -v '^ *+' conftest.er1 >conftest.err
27400   rm -f conftest.er1
27401   cat conftest.err >&5
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); } &&
27404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27405   { (case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410   (eval "$ac_try") 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; } &&
27414          { ac_try='test -s conftest$ac_exeext'
27415   { (case "(($ac_try" in
27416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417   *) ac_try_echo=$ac_try;;
27418 esac
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420   (eval "$ac_try") 2>&5
27421   ac_status=$?
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); }; }; then
27424   ac_cv_lib_pthread_pthread_mutex_init=yes
27425 else
27426   echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27428
27429         ac_cv_lib_pthread_pthread_mutex_init=no
27430 fi
27431
27432 rm -f core conftest.err conftest.$ac_objext \
27433       conftest$ac_exeext conftest.$ac_ext
27434 LIBS=$ac_check_lib_save_LIBS
27435 fi
27436 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27437 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27438 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27439   cat >>confdefs.h <<_ACEOF
27440 #define HAVE_LIBPTHREAD 1
27441 _ACEOF
27442
27443   LIBS="-lpthread $LIBS"
27444
27445 fi
27446
27447   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27448 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27449 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27450   echo $ECHO_N "(cached) $ECHO_C" >&6
27451 else
27452   ac_func_search_save_LIBS=$LIBS
27453 cat >conftest.$ac_ext <<_ACEOF
27454 /* confdefs.h.  */
27455 _ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h.  */
27459
27460 /* Override any GCC internal prototype to avoid an error.
27461    Use char because int might match the return type of a GCC
27462    builtin and then its argument prototype would still apply.  */
27463 #ifdef __cplusplus
27464 extern "C"
27465 #endif
27466 char pthread_mutex_lock ();
27467 int
27468 main ()
27469 {
27470 return pthread_mutex_lock ();
27471   ;
27472   return 0;
27473 }
27474 _ACEOF
27475 for ac_lib in '' pthread; do
27476   if test -z "$ac_lib"; then
27477     ac_res="none required"
27478   else
27479     ac_res=-l$ac_lib
27480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27481   fi
27482   rm -f conftest.$ac_objext conftest$ac_exeext
27483 if { (ac_try="$ac_link"
27484 case "(($ac_try" in
27485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486   *) ac_try_echo=$ac_try;;
27487 esac
27488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489   (eval "$ac_link") 2>conftest.er1
27490   ac_status=$?
27491   grep -v '^ *+' conftest.er1 >conftest.err
27492   rm -f conftest.er1
27493   cat conftest.err >&5
27494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); } &&
27496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27497   { (case "(($ac_try" in
27498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499   *) ac_try_echo=$ac_try;;
27500 esac
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502   (eval "$ac_try") 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; } &&
27506          { ac_try='test -s conftest$ac_exeext'
27507   { (case "(($ac_try" in
27508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509   *) ac_try_echo=$ac_try;;
27510 esac
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512   (eval "$ac_try") 2>&5
27513   ac_status=$?
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); }; }; then
27516   ac_cv_search_pthread_mutex_lock=$ac_res
27517 else
27518   echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27520
27521
27522 fi
27523
27524 rm -f core conftest.err conftest.$ac_objext \
27525       conftest$ac_exeext
27526   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27527   break
27528 fi
27529 done
27530 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27531   :
27532 else
27533   ac_cv_search_pthread_mutex_lock=no
27534 fi
27535 rm conftest.$ac_ext
27536 LIBS=$ac_func_search_save_LIBS
27537 fi
27538 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27539 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27540 ac_res=$ac_cv_search_pthread_mutex_lock
27541 if test "$ac_res" != no; then
27542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27543
27544 cat >>confdefs.h <<\_ACEOF
27545 #define HAVE_PTHREAD_MUTEX_LOCK 1
27546 _ACEOF
27547
27548 fi
27549
27550 fi
27551
27552
27553
27554
27555
27556
27557
27558 ac_header_dirent=no
27559 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27560   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27561 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27562 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27564   echo $ECHO_N "(cached) $ECHO_C" >&6
27565 else
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 #include <sys/types.h>
27573 #include <$ac_hdr>
27574
27575 int
27576 main ()
27577 {
27578 if ((DIR *) 0)
27579 return 0;
27580   ;
27581   return 0;
27582 }
27583 _ACEOF
27584 rm -f conftest.$ac_objext
27585 if { (ac_try="$ac_compile"
27586 case "(($ac_try" in
27587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588   *) ac_try_echo=$ac_try;;
27589 esac
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591   (eval "$ac_compile") 2>conftest.er1
27592   ac_status=$?
27593   grep -v '^ *+' conftest.er1 >conftest.err
27594   rm -f conftest.er1
27595   cat conftest.err >&5
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); } &&
27598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27599   { (case "(($ac_try" in
27600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601   *) ac_try_echo=$ac_try;;
27602 esac
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604   (eval "$ac_try") 2>&5
27605   ac_status=$?
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); }; } &&
27608          { ac_try='test -s conftest.$ac_objext'
27609   { (case "(($ac_try" in
27610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27611   *) ac_try_echo=$ac_try;;
27612 esac
27613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27614   (eval "$ac_try") 2>&5
27615   ac_status=$?
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); }; }; then
27618   eval "$as_ac_Header=yes"
27619 else
27620   echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27622
27623         eval "$as_ac_Header=no"
27624 fi
27625
27626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627 fi
27628 ac_res=`eval echo '${'$as_ac_Header'}'`
27629                { echo "$as_me:$LINENO: result: $ac_res" >&5
27630 echo "${ECHO_T}$ac_res" >&6; }
27631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27632   cat >>confdefs.h <<_ACEOF
27633 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27634 _ACEOF
27635
27636 ac_header_dirent=$ac_hdr; break
27637 fi
27638
27639 done
27640 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27641 if test $ac_header_dirent = dirent.h; then
27642   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27643 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27644 if test "${ac_cv_search_opendir+set}" = set; then
27645   echo $ECHO_N "(cached) $ECHO_C" >&6
27646 else
27647   ac_func_search_save_LIBS=$LIBS
27648 cat >conftest.$ac_ext <<_ACEOF
27649 /* confdefs.h.  */
27650 _ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h.  */
27654
27655 /* Override any GCC internal prototype to avoid an error.
27656    Use char because int might match the return type of a GCC
27657    builtin and then its argument prototype would still apply.  */
27658 #ifdef __cplusplus
27659 extern "C"
27660 #endif
27661 char opendir ();
27662 int
27663 main ()
27664 {
27665 return opendir ();
27666   ;
27667   return 0;
27668 }
27669 _ACEOF
27670 for ac_lib in '' dir; do
27671   if test -z "$ac_lib"; then
27672     ac_res="none required"
27673   else
27674     ac_res=-l$ac_lib
27675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27676   fi
27677   rm -f conftest.$ac_objext conftest$ac_exeext
27678 if { (ac_try="$ac_link"
27679 case "(($ac_try" in
27680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681   *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684   (eval "$ac_link") 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } &&
27691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27692   { (case "(($ac_try" in
27693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694   *) ac_try_echo=$ac_try;;
27695 esac
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697   (eval "$ac_try") 2>&5
27698   ac_status=$?
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); }; } &&
27701          { ac_try='test -s conftest$ac_exeext'
27702   { (case "(($ac_try" in
27703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704   *) ac_try_echo=$ac_try;;
27705 esac
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707   (eval "$ac_try") 2>&5
27708   ac_status=$?
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); }; }; then
27711   ac_cv_search_opendir=$ac_res
27712 else
27713   echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27715
27716
27717 fi
27718
27719 rm -f core conftest.err conftest.$ac_objext \
27720       conftest$ac_exeext
27721   if test "${ac_cv_search_opendir+set}" = set; then
27722   break
27723 fi
27724 done
27725 if test "${ac_cv_search_opendir+set}" = set; then
27726   :
27727 else
27728   ac_cv_search_opendir=no
27729 fi
27730 rm conftest.$ac_ext
27731 LIBS=$ac_func_search_save_LIBS
27732 fi
27733 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27734 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27735 ac_res=$ac_cv_search_opendir
27736 if test "$ac_res" != no; then
27737   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27738
27739 fi
27740
27741 else
27742   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27744 if test "${ac_cv_search_opendir+set}" = set; then
27745   echo $ECHO_N "(cached) $ECHO_C" >&6
27746 else
27747   ac_func_search_save_LIBS=$LIBS
27748 cat >conftest.$ac_ext <<_ACEOF
27749 /* confdefs.h.  */
27750 _ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h.  */
27754
27755 /* Override any GCC internal prototype to avoid an error.
27756    Use char because int might match the return type of a GCC
27757    builtin and then its argument prototype would still apply.  */
27758 #ifdef __cplusplus
27759 extern "C"
27760 #endif
27761 char opendir ();
27762 int
27763 main ()
27764 {
27765 return opendir ();
27766   ;
27767   return 0;
27768 }
27769 _ACEOF
27770 for ac_lib in '' x; do
27771   if test -z "$ac_lib"; then
27772     ac_res="none required"
27773   else
27774     ac_res=-l$ac_lib
27775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27776   fi
27777   rm -f conftest.$ac_objext conftest$ac_exeext
27778 if { (ac_try="$ac_link"
27779 case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784   (eval "$ac_link") 2>conftest.er1
27785   ac_status=$?
27786   grep -v '^ *+' conftest.er1 >conftest.err
27787   rm -f conftest.er1
27788   cat conftest.err >&5
27789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790   (exit $ac_status); } &&
27791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792   { (case "(($ac_try" in
27793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794   *) ac_try_echo=$ac_try;;
27795 esac
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797   (eval "$ac_try") 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; } &&
27801          { ac_try='test -s conftest$ac_exeext'
27802   { (case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807   (eval "$ac_try") 2>&5
27808   ac_status=$?
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); }; }; then
27811   ac_cv_search_opendir=$ac_res
27812 else
27813   echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27815
27816
27817 fi
27818
27819 rm -f core conftest.err conftest.$ac_objext \
27820       conftest$ac_exeext
27821   if test "${ac_cv_search_opendir+set}" = set; then
27822   break
27823 fi
27824 done
27825 if test "${ac_cv_search_opendir+set}" = set; then
27826   :
27827 else
27828   ac_cv_search_opendir=no
27829 fi
27830 rm conftest.$ac_ext
27831 LIBS=$ac_func_search_save_LIBS
27832 fi
27833 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27834 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27835 ac_res=$ac_cv_search_opendir
27836 if test "$ac_res" != no; then
27837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27838
27839 fi
27840
27841 fi
27842
27843 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27844 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27845 if test "${ac_cv_header_mmap_anon+set}" = set; then
27846   echo $ECHO_N "(cached) $ECHO_C" >&6
27847 else
27848    ac_ext=c
27849 ac_cpp='$CPP $CPPFLAGS'
27850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27853
27854   cat >conftest.$ac_ext <<_ACEOF
27855 /* confdefs.h.  */
27856 _ACEOF
27857 cat confdefs.h >>conftest.$ac_ext
27858 cat >>conftest.$ac_ext <<_ACEOF
27859 /* end confdefs.h.  */
27860 #include <sys/mman.h>
27861 #include <unistd.h>
27862 #include <fcntl.h>
27863 int
27864 main ()
27865 {
27866 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27867   ;
27868   return 0;
27869 }
27870 _ACEOF
27871 rm -f conftest.$ac_objext
27872 if { (ac_try="$ac_compile"
27873 case "(($ac_try" in
27874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875   *) ac_try_echo=$ac_try;;
27876 esac
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878   (eval "$ac_compile") 2>conftest.er1
27879   ac_status=$?
27880   grep -v '^ *+' conftest.er1 >conftest.err
27881   rm -f conftest.er1
27882   cat conftest.err >&5
27883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884   (exit $ac_status); } &&
27885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886   { (case "(($ac_try" in
27887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888   *) ac_try_echo=$ac_try;;
27889 esac
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891   (eval "$ac_try") 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; } &&
27895          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
27902   ac_status=$?
27903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904   (exit $ac_status); }; }; then
27905   ac_cv_header_mmap_anon=yes
27906 else
27907   echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27909
27910         ac_cv_header_mmap_anon=no
27911 fi
27912
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914   ac_ext=c
27915 ac_cpp='$CPP $CPPFLAGS'
27916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27919
27920
27921 fi
27922 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27923 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27924 if test "$ac_cv_header_mmap_anon" = yes; then
27925
27926 cat >>confdefs.h <<\_ACEOF
27927 #define HAVE_MMAP_ANONYMOUS 1
27928 _ACEOF
27929
27930 fi
27931
27932 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27933 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27934 if test "${ac_cv_header_stat_broken+set}" = set; then
27935   echo $ECHO_N "(cached) $ECHO_C" >&6
27936 else
27937   cat >conftest.$ac_ext <<_ACEOF
27938 /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943 #include <sys/types.h>
27944 #include <sys/stat.h>
27945
27946 #if defined S_ISBLK && defined S_IFDIR
27947 # if S_ISBLK (S_IFDIR)
27948 You lose.
27949 # endif
27950 #endif
27951
27952 #if defined S_ISBLK && defined S_IFCHR
27953 # if S_ISBLK (S_IFCHR)
27954 You lose.
27955 # endif
27956 #endif
27957
27958 #if defined S_ISLNK && defined S_IFREG
27959 # if S_ISLNK (S_IFREG)
27960 You lose.
27961 # endif
27962 #endif
27963
27964 #if defined S_ISSOCK && defined S_IFREG
27965 # if S_ISSOCK (S_IFREG)
27966 You lose.
27967 # endif
27968 #endif
27969
27970 _ACEOF
27971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27972   $EGREP "You lose" >/dev/null 2>&1; then
27973   ac_cv_header_stat_broken=yes
27974 else
27975   ac_cv_header_stat_broken=no
27976 fi
27977 rm -f conftest*
27978
27979 fi
27980 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27981 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27982 if test $ac_cv_header_stat_broken = yes; then
27983
27984 cat >>confdefs.h <<\_ACEOF
27985 #define STAT_MACROS_BROKEN 1
27986 _ACEOF
27987
27988 fi
27989
27990 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27992 if test "${ac_cv_header_stdc+set}" = set; then
27993   echo $ECHO_N "(cached) $ECHO_C" >&6
27994 else
27995   cat >conftest.$ac_ext <<_ACEOF
27996 /* confdefs.h.  */
27997 _ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h.  */
28001 #include <stdlib.h>
28002 #include <stdarg.h>
28003 #include <string.h>
28004 #include <float.h>
28005
28006 int
28007 main ()
28008 {
28009
28010   ;
28011   return 0;
28012 }
28013 _ACEOF
28014 rm -f conftest.$ac_objext
28015 if { (ac_try="$ac_compile"
28016 case "(($ac_try" in
28017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28018   *) ac_try_echo=$ac_try;;
28019 esac
28020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28021   (eval "$ac_compile") 2>conftest.er1
28022   ac_status=$?
28023   grep -v '^ *+' conftest.er1 >conftest.err
28024   rm -f conftest.er1
28025   cat conftest.err >&5
28026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027   (exit $ac_status); } &&
28028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28038          { ac_try='test -s conftest.$ac_objext'
28039   { (case "(($ac_try" in
28040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041   *) ac_try_echo=$ac_try;;
28042 esac
28043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044   (eval "$ac_try") 2>&5
28045   ac_status=$?
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); }; }; then
28048   ac_cv_header_stdc=yes
28049 else
28050   echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28052
28053         ac_cv_header_stdc=no
28054 fi
28055
28056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28057
28058 if test $ac_cv_header_stdc = yes; then
28059   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28060   cat >conftest.$ac_ext <<_ACEOF
28061 /* confdefs.h.  */
28062 _ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h.  */
28066 #include <string.h>
28067
28068 _ACEOF
28069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28070   $EGREP "memchr" >/dev/null 2>&1; then
28071   :
28072 else
28073   ac_cv_header_stdc=no
28074 fi
28075 rm -f conftest*
28076
28077 fi
28078
28079 if test $ac_cv_header_stdc = yes; then
28080   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28081   cat >conftest.$ac_ext <<_ACEOF
28082 /* confdefs.h.  */
28083 _ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h.  */
28087 #include <stdlib.h>
28088
28089 _ACEOF
28090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28091   $EGREP "free" >/dev/null 2>&1; then
28092   :
28093 else
28094   ac_cv_header_stdc=no
28095 fi
28096 rm -f conftest*
28097
28098 fi
28099
28100 if test $ac_cv_header_stdc = yes; then
28101   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28102   if test "$cross_compiling" = yes; then
28103   :
28104 else
28105   cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h.  */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h.  */
28111 #include <ctype.h>
28112 #include <stdlib.h>
28113 #if ((' ' & 0x0FF) == 0x020)
28114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28116 #else
28117 # define ISLOWER(c) \
28118                    (('a' <= (c) && (c) <= 'i') \
28119                      || ('j' <= (c) && (c) <= 'r') \
28120                      || ('s' <= (c) && (c) <= 'z'))
28121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28122 #endif
28123
28124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28125 int
28126 main ()
28127 {
28128   int i;
28129   for (i = 0; i < 256; i++)
28130     if (XOR (islower (i), ISLOWER (i))
28131         || toupper (i) != TOUPPER (i))
28132       return 2;
28133   return 0;
28134 }
28135 _ACEOF
28136 rm -f conftest$ac_exeext
28137 if { (ac_try="$ac_link"
28138 case "(($ac_try" in
28139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140   *) ac_try_echo=$ac_try;;
28141 esac
28142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143   (eval "$ac_link") 2>&5
28144   ac_status=$?
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28147   { (case "(($ac_try" in
28148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149   *) ac_try_echo=$ac_try;;
28150 esac
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152   (eval "$ac_try") 2>&5
28153   ac_status=$?
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); }; }; then
28156   :
28157 else
28158   echo "$as_me: program exited with status $ac_status" >&5
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28161
28162 ( exit $ac_status )
28163 ac_cv_header_stdc=no
28164 fi
28165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28166 fi
28167
28168
28169 fi
28170 fi
28171 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28172 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28173 if test $ac_cv_header_stdc = yes; then
28174
28175 cat >>confdefs.h <<\_ACEOF
28176 #define STDC_HEADERS 1
28177 _ACEOF
28178
28179 fi
28180
28181 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28182 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28183 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28184   echo $ECHO_N "(cached) $ECHO_C" >&6
28185 else
28186   cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192 #include <sys/types.h>
28193 #include <sys/wait.h>
28194 #ifndef WEXITSTATUS
28195 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28196 #endif
28197 #ifndef WIFEXITED
28198 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28199 #endif
28200
28201 int
28202 main ()
28203 {
28204   int s;
28205   wait (&s);
28206   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28207   ;
28208   return 0;
28209 }
28210 _ACEOF
28211 rm -f conftest.$ac_objext
28212 if { (ac_try="$ac_compile"
28213 case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_compile") 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } &&
28225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226   { (case "(($ac_try" in
28227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228   *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231   (eval "$ac_try") 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; } &&
28235          { ac_try='test -s conftest.$ac_objext'
28236   { (case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241   (eval "$ac_try") 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   ac_cv_header_sys_wait_h=yes
28246 else
28247   echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28249
28250         ac_cv_header_sys_wait_h=no
28251 fi
28252
28253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28254 fi
28255 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28256 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28257 if test $ac_cv_header_sys_wait_h = yes; then
28258
28259 cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_SYS_WAIT_H 1
28261 _ACEOF
28262
28263 fi
28264
28265 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28266 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28267 if test "${ac_cv_header_time+set}" = set; then
28268   echo $ECHO_N "(cached) $ECHO_C" >&6
28269 else
28270   cat >conftest.$ac_ext <<_ACEOF
28271 /* confdefs.h.  */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h.  */
28276 #include <sys/types.h>
28277 #include <sys/time.h>
28278 #include <time.h>
28279
28280 int
28281 main ()
28282 {
28283 if ((struct tm *) 0)
28284 return 0;
28285   ;
28286   return 0;
28287 }
28288 _ACEOF
28289 rm -f conftest.$ac_objext
28290 if { (ac_try="$ac_compile"
28291 case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_compile") 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } &&
28303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28304   { (case "(($ac_try" in
28305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306   *) ac_try_echo=$ac_try;;
28307 esac
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309   (eval "$ac_try") 2>&5
28310   ac_status=$?
28311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312   (exit $ac_status); }; } &&
28313          { ac_try='test -s conftest.$ac_objext'
28314   { (case "(($ac_try" in
28315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316   *) ac_try_echo=$ac_try;;
28317 esac
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319   (eval "$ac_try") 2>&5
28320   ac_status=$?
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); }; }; then
28323   ac_cv_header_time=yes
28324 else
28325   echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28327
28328         ac_cv_header_time=no
28329 fi
28330
28331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28332 fi
28333 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28334 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28335 if test $ac_cv_header_time = yes; then
28336
28337 cat >>confdefs.h <<\_ACEOF
28338 #define TIME_WITH_SYS_TIME 1
28339 _ACEOF
28340
28341 fi
28342
28343
28344
28345
28346
28347
28348
28349
28350 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28351 do
28352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28354   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28357   echo $ECHO_N "(cached) $ECHO_C" >&6
28358 fi
28359 ac_res=`eval echo '${'$as_ac_Header'}'`
28360                { echo "$as_me:$LINENO: result: $ac_res" >&5
28361 echo "${ECHO_T}$ac_res" >&6; }
28362 else
28363   # Is the header compilable?
28364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28366 cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h.  */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h.  */
28372 $ac_includes_default
28373 #include <$ac_header>
28374 _ACEOF
28375 rm -f conftest.$ac_objext
28376 if { (ac_try="$ac_compile"
28377 case "(($ac_try" in
28378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379   *) ac_try_echo=$ac_try;;
28380 esac
28381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382   (eval "$ac_compile") 2>conftest.er1
28383   ac_status=$?
28384   grep -v '^ *+' conftest.er1 >conftest.err
28385   rm -f conftest.er1
28386   cat conftest.err >&5
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); } &&
28389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28390   { (case "(($ac_try" in
28391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392   *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395   (eval "$ac_try") 2>&5
28396   ac_status=$?
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); }; } &&
28399          { ac_try='test -s conftest.$ac_objext'
28400   { (case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405   (eval "$ac_try") 2>&5
28406   ac_status=$?
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); }; }; then
28409   ac_header_compiler=yes
28410 else
28411   echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28413
28414         ac_header_compiler=no
28415 fi
28416
28417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28419 echo "${ECHO_T}$ac_header_compiler" >&6; }
28420
28421 # Is the header present?
28422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28424 cat >conftest.$ac_ext <<_ACEOF
28425 /* confdefs.h.  */
28426 _ACEOF
28427 cat confdefs.h >>conftest.$ac_ext
28428 cat >>conftest.$ac_ext <<_ACEOF
28429 /* end confdefs.h.  */
28430 #include <$ac_header>
28431 _ACEOF
28432 if { (ac_try="$ac_cpp conftest.$ac_ext"
28433 case "(($ac_try" in
28434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435   *) ac_try_echo=$ac_try;;
28436 esac
28437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28439   ac_status=$?
28440   grep -v '^ *+' conftest.er1 >conftest.err
28441   rm -f conftest.er1
28442   cat conftest.err >&5
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); } >/dev/null; then
28445   if test -s conftest.err; then
28446     ac_cpp_err=$ac_c_preproc_warn_flag
28447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28448   else
28449     ac_cpp_err=
28450   fi
28451 else
28452   ac_cpp_err=yes
28453 fi
28454 if test -z "$ac_cpp_err"; then
28455   ac_header_preproc=yes
28456 else
28457   echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28459
28460   ac_header_preproc=no
28461 fi
28462
28463 rm -f conftest.err conftest.$ac_ext
28464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28465 echo "${ECHO_T}$ac_header_preproc" >&6; }
28466
28467 # So?  What about this header?
28468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28469   yes:no: )
28470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28474     ac_header_preproc=yes
28475     ;;
28476   no:yes:* )
28477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28489     ( cat <<\_ASBOX
28490 ## ----------------------------------- ##
28491 ## Report this to llvmbugs@cs.uiuc.edu ##
28492 ## ----------------------------------- ##
28493 _ASBOX
28494      ) | sed "s/^/$as_me: WARNING:     /" >&2
28495     ;;
28496 esac
28497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28500   echo $ECHO_N "(cached) $ECHO_C" >&6
28501 else
28502   eval "$as_ac_Header=\$ac_header_preproc"
28503 fi
28504 ac_res=`eval echo '${'$as_ac_Header'}'`
28505                { echo "$as_me:$LINENO: result: $ac_res" >&5
28506 echo "${ECHO_T}$ac_res" >&6; }
28507
28508 fi
28509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28510   cat >>confdefs.h <<_ACEOF
28511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28512 _ACEOF
28513
28514 fi
28515
28516 done
28517
28518
28519
28520
28521
28522
28523
28524 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28525 do
28526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28531   echo $ECHO_N "(cached) $ECHO_C" >&6
28532 fi
28533 ac_res=`eval echo '${'$as_ac_Header'}'`
28534                { echo "$as_me:$LINENO: result: $ac_res" >&5
28535 echo "${ECHO_T}$ac_res" >&6; }
28536 else
28537   # Is the header compilable?
28538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28540 cat >conftest.$ac_ext <<_ACEOF
28541 /* confdefs.h.  */
28542 _ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h.  */
28546 $ac_includes_default
28547 #include <$ac_header>
28548 _ACEOF
28549 rm -f conftest.$ac_objext
28550 if { (ac_try="$ac_compile"
28551 case "(($ac_try" in
28552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553   *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556   (eval "$ac_compile") 2>conftest.er1
28557   ac_status=$?
28558   grep -v '^ *+' conftest.er1 >conftest.err
28559   rm -f conftest.er1
28560   cat conftest.err >&5
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); } &&
28563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28564   { (case "(($ac_try" in
28565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566   *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569   (eval "$ac_try") 2>&5
28570   ac_status=$?
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); }; } &&
28573          { ac_try='test -s conftest.$ac_objext'
28574   { (case "(($ac_try" in
28575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576   *) ac_try_echo=$ac_try;;
28577 esac
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579   (eval "$ac_try") 2>&5
28580   ac_status=$?
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); }; }; then
28583   ac_header_compiler=yes
28584 else
28585   echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588         ac_header_compiler=no
28589 fi
28590
28591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28593 echo "${ECHO_T}$ac_header_compiler" >&6; }
28594
28595 # Is the header present?
28596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28598 cat >conftest.$ac_ext <<_ACEOF
28599 /* confdefs.h.  */
28600 _ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h.  */
28604 #include <$ac_header>
28605 _ACEOF
28606 if { (ac_try="$ac_cpp conftest.$ac_ext"
28607 case "(($ac_try" in
28608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609   *) ac_try_echo=$ac_try;;
28610 esac
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28613   ac_status=$?
28614   grep -v '^ *+' conftest.er1 >conftest.err
28615   rm -f conftest.er1
28616   cat conftest.err >&5
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); } >/dev/null; then
28619   if test -s conftest.err; then
28620     ac_cpp_err=$ac_c_preproc_warn_flag
28621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28622   else
28623     ac_cpp_err=
28624   fi
28625 else
28626   ac_cpp_err=yes
28627 fi
28628 if test -z "$ac_cpp_err"; then
28629   ac_header_preproc=yes
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634   ac_header_preproc=no
28635 fi
28636
28637 rm -f conftest.err conftest.$ac_ext
28638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28639 echo "${ECHO_T}$ac_header_preproc" >&6; }
28640
28641 # So?  What about this header?
28642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28643   yes:no: )
28644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28648     ac_header_preproc=yes
28649     ;;
28650   no:yes:* )
28651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28663     ( cat <<\_ASBOX
28664 ## ----------------------------------- ##
28665 ## Report this to llvmbugs@cs.uiuc.edu ##
28666 ## ----------------------------------- ##
28667 _ASBOX
28668      ) | sed "s/^/$as_me: WARNING:     /" >&2
28669     ;;
28670 esac
28671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28674   echo $ECHO_N "(cached) $ECHO_C" >&6
28675 else
28676   eval "$as_ac_Header=\$ac_header_preproc"
28677 fi
28678 ac_res=`eval echo '${'$as_ac_Header'}'`
28679                { echo "$as_me:$LINENO: result: $ac_res" >&5
28680 echo "${ECHO_T}$ac_res" >&6; }
28681
28682 fi
28683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28684   cat >>confdefs.h <<_ACEOF
28685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28686 _ACEOF
28687
28688 fi
28689
28690 done
28691
28692
28693
28694
28695
28696
28697 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28698 do
28699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28701   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28704   echo $ECHO_N "(cached) $ECHO_C" >&6
28705 fi
28706 ac_res=`eval echo '${'$as_ac_Header'}'`
28707                { echo "$as_me:$LINENO: result: $ac_res" >&5
28708 echo "${ECHO_T}$ac_res" >&6; }
28709 else
28710   # Is the header compilable?
28711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28713 cat >conftest.$ac_ext <<_ACEOF
28714 /* confdefs.h.  */
28715 _ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h.  */
28719 $ac_includes_default
28720 #include <$ac_header>
28721 _ACEOF
28722 rm -f conftest.$ac_objext
28723 if { (ac_try="$ac_compile"
28724 case "(($ac_try" in
28725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726   *) ac_try_echo=$ac_try;;
28727 esac
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729   (eval "$ac_compile") 2>conftest.er1
28730   ac_status=$?
28731   grep -v '^ *+' conftest.er1 >conftest.err
28732   rm -f conftest.er1
28733   cat conftest.err >&5
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); } &&
28736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28737   { (case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742   (eval "$ac_try") 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; } &&
28746          { ac_try='test -s conftest.$ac_objext'
28747   { (case "(($ac_try" in
28748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749   *) ac_try_echo=$ac_try;;
28750 esac
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752   (eval "$ac_try") 2>&5
28753   ac_status=$?
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); }; }; then
28756   ac_header_compiler=yes
28757 else
28758   echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28760
28761         ac_header_compiler=no
28762 fi
28763
28764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28766 echo "${ECHO_T}$ac_header_compiler" >&6; }
28767
28768 # Is the header present?
28769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28771 cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777 #include <$ac_header>
28778 _ACEOF
28779 if { (ac_try="$ac_cpp conftest.$ac_ext"
28780 case "(($ac_try" in
28781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782   *) ac_try_echo=$ac_try;;
28783 esac
28784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28786   ac_status=$?
28787   grep -v '^ *+' conftest.er1 >conftest.err
28788   rm -f conftest.er1
28789   cat conftest.err >&5
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); } >/dev/null; then
28792   if test -s conftest.err; then
28793     ac_cpp_err=$ac_c_preproc_warn_flag
28794     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28795   else
28796     ac_cpp_err=
28797   fi
28798 else
28799   ac_cpp_err=yes
28800 fi
28801 if test -z "$ac_cpp_err"; then
28802   ac_header_preproc=yes
28803 else
28804   echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28806
28807   ac_header_preproc=no
28808 fi
28809
28810 rm -f conftest.err conftest.$ac_ext
28811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28812 echo "${ECHO_T}$ac_header_preproc" >&6; }
28813
28814 # So?  What about this header?
28815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28816   yes:no: )
28817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28821     ac_header_preproc=yes
28822     ;;
28823   no:yes:* )
28824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28836     ( cat <<\_ASBOX
28837 ## ----------------------------------- ##
28838 ## Report this to llvmbugs@cs.uiuc.edu ##
28839 ## ----------------------------------- ##
28840 _ASBOX
28841      ) | sed "s/^/$as_me: WARNING:     /" >&2
28842     ;;
28843 esac
28844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28847   echo $ECHO_N "(cached) $ECHO_C" >&6
28848 else
28849   eval "$as_ac_Header=\$ac_header_preproc"
28850 fi
28851 ac_res=`eval echo '${'$as_ac_Header'}'`
28852                { echo "$as_me:$LINENO: result: $ac_res" >&5
28853 echo "${ECHO_T}$ac_res" >&6; }
28854
28855 fi
28856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28857   cat >>confdefs.h <<_ACEOF
28858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28859 _ACEOF
28860
28861 fi
28862
28863 done
28864
28865
28866
28867
28868 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28869 do
28870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28875   echo $ECHO_N "(cached) $ECHO_C" >&6
28876 fi
28877 ac_res=`eval echo '${'$as_ac_Header'}'`
28878                { echo "$as_me:$LINENO: result: $ac_res" >&5
28879 echo "${ECHO_T}$ac_res" >&6; }
28880 else
28881   # Is the header compilable?
28882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28884 cat >conftest.$ac_ext <<_ACEOF
28885 /* confdefs.h.  */
28886 _ACEOF
28887 cat confdefs.h >>conftest.$ac_ext
28888 cat >>conftest.$ac_ext <<_ACEOF
28889 /* end confdefs.h.  */
28890 $ac_includes_default
28891 #include <$ac_header>
28892 _ACEOF
28893 rm -f conftest.$ac_objext
28894 if { (ac_try="$ac_compile"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_compile") 2>conftest.er1
28901   ac_status=$?
28902   grep -v '^ *+' conftest.er1 >conftest.err
28903   rm -f conftest.er1
28904   cat conftest.err >&5
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } &&
28907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28908   { (case "(($ac_try" in
28909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910   *) ac_try_echo=$ac_try;;
28911 esac
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913   (eval "$ac_try") 2>&5
28914   ac_status=$?
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); }; } &&
28917          { ac_try='test -s conftest.$ac_objext'
28918   { (case "(($ac_try" in
28919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920   *) ac_try_echo=$ac_try;;
28921 esac
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923   (eval "$ac_try") 2>&5
28924   ac_status=$?
28925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); }; }; then
28927   ac_header_compiler=yes
28928 else
28929   echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28931
28932         ac_header_compiler=no
28933 fi
28934
28935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28937 echo "${ECHO_T}$ac_header_compiler" >&6; }
28938
28939 # Is the header present?
28940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28942 cat >conftest.$ac_ext <<_ACEOF
28943 /* confdefs.h.  */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h.  */
28948 #include <$ac_header>
28949 _ACEOF
28950 if { (ac_try="$ac_cpp conftest.$ac_ext"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28957   ac_status=$?
28958   grep -v '^ *+' conftest.er1 >conftest.err
28959   rm -f conftest.er1
28960   cat conftest.err >&5
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); } >/dev/null; then
28963   if test -s conftest.err; then
28964     ac_cpp_err=$ac_c_preproc_warn_flag
28965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28966   else
28967     ac_cpp_err=
28968   fi
28969 else
28970   ac_cpp_err=yes
28971 fi
28972 if test -z "$ac_cpp_err"; then
28973   ac_header_preproc=yes
28974 else
28975   echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28977
28978   ac_header_preproc=no
28979 fi
28980
28981 rm -f conftest.err conftest.$ac_ext
28982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28983 echo "${ECHO_T}$ac_header_preproc" >&6; }
28984
28985 # So?  What about this header?
28986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28987   yes:no: )
28988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28992     ac_header_preproc=yes
28993     ;;
28994   no:yes:* )
28995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29007     ( cat <<\_ASBOX
29008 ## ----------------------------------- ##
29009 ## Report this to llvmbugs@cs.uiuc.edu ##
29010 ## ----------------------------------- ##
29011 _ASBOX
29012      ) | sed "s/^/$as_me: WARNING:     /" >&2
29013     ;;
29014 esac
29015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29018   echo $ECHO_N "(cached) $ECHO_C" >&6
29019 else
29020   eval "$as_ac_Header=\$ac_header_preproc"
29021 fi
29022 ac_res=`eval echo '${'$as_ac_Header'}'`
29023                { echo "$as_me:$LINENO: result: $ac_res" >&5
29024 echo "${ECHO_T}$ac_res" >&6; }
29025
29026 fi
29027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29028   cat >>confdefs.h <<_ACEOF
29029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29030 _ACEOF
29031
29032 fi
29033
29034 done
29035
29036 if test "$ENABLE_THREADS" -eq 1 ; then
29037   if test "${ac_cv_header_pthread_h+set}" = set; then
29038   { echo "$as_me:$LINENO: checking for pthread.h" >&5
29039 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29040 if test "${ac_cv_header_pthread_h+set}" = set; then
29041   echo $ECHO_N "(cached) $ECHO_C" >&6
29042 fi
29043 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29044 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29045 else
29046   # Is the header compilable?
29047 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29048 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29049 cat >conftest.$ac_ext <<_ACEOF
29050 /* confdefs.h.  */
29051 _ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h.  */
29055 $ac_includes_default
29056 #include <pthread.h>
29057 _ACEOF
29058 rm -f conftest.$ac_objext
29059 if { (ac_try="$ac_compile"
29060 case "(($ac_try" in
29061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062   *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065   (eval "$ac_compile") 2>conftest.er1
29066   ac_status=$?
29067   grep -v '^ *+' conftest.er1 >conftest.err
29068   rm -f conftest.er1
29069   cat conftest.err >&5
29070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071   (exit $ac_status); } &&
29072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29073   { (case "(($ac_try" in
29074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075   *) ac_try_echo=$ac_try;;
29076 esac
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078   (eval "$ac_try") 2>&5
29079   ac_status=$?
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); }; } &&
29082          { ac_try='test -s conftest.$ac_objext'
29083   { (case "(($ac_try" in
29084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085   *) ac_try_echo=$ac_try;;
29086 esac
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088   (eval "$ac_try") 2>&5
29089   ac_status=$?
29090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091   (exit $ac_status); }; }; then
29092   ac_header_compiler=yes
29093 else
29094   echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29096
29097         ac_header_compiler=no
29098 fi
29099
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29102 echo "${ECHO_T}$ac_header_compiler" >&6; }
29103
29104 # Is the header present?
29105 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29106 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29107 cat >conftest.$ac_ext <<_ACEOF
29108 /* confdefs.h.  */
29109 _ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h.  */
29113 #include <pthread.h>
29114 _ACEOF
29115 if { (ac_try="$ac_cpp conftest.$ac_ext"
29116 case "(($ac_try" in
29117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29118   *) ac_try_echo=$ac_try;;
29119 esac
29120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29122   ac_status=$?
29123   grep -v '^ *+' conftest.er1 >conftest.err
29124   rm -f conftest.er1
29125   cat conftest.err >&5
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); } >/dev/null; then
29128   if test -s conftest.err; then
29129     ac_cpp_err=$ac_c_preproc_warn_flag
29130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29131   else
29132     ac_cpp_err=
29133   fi
29134 else
29135   ac_cpp_err=yes
29136 fi
29137 if test -z "$ac_cpp_err"; then
29138   ac_header_preproc=yes
29139 else
29140   echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29142
29143   ac_header_preproc=no
29144 fi
29145
29146 rm -f conftest.err conftest.$ac_ext
29147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29148 echo "${ECHO_T}$ac_header_preproc" >&6; }
29149
29150 # So?  What about this header?
29151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29152   yes:no: )
29153     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29154 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29155     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29156 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29157     ac_header_preproc=yes
29158     ;;
29159   no:yes:* )
29160     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29161 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29162     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29163 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29164     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29165 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29166     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29167 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29168     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29169 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29170     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29171 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29172     ( cat <<\_ASBOX
29173 ## ----------------------------------- ##
29174 ## Report this to llvmbugs@cs.uiuc.edu ##
29175 ## ----------------------------------- ##
29176 _ASBOX
29177      ) | sed "s/^/$as_me: WARNING:     /" >&2
29178     ;;
29179 esac
29180 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29181 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29182 if test "${ac_cv_header_pthread_h+set}" = set; then
29183   echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185   ac_cv_header_pthread_h=$ac_header_preproc
29186 fi
29187 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29188 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29189
29190 fi
29191 if test $ac_cv_header_pthread_h = yes; then
29192   HAVE_PTHREAD=1
29193
29194 else
29195   HAVE_PTHREAD=0
29196
29197 fi
29198
29199
29200 else
29201   HAVE_PTHREAD=0
29202
29203 fi
29204
29205
29206
29207   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29208 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29209 if test "${ac_cv_huge_val_sanity+set}" = set; then
29210   echo $ECHO_N "(cached) $ECHO_C" >&6
29211 else
29212
29213     ac_ext=cpp
29214 ac_cpp='$CXXCPP $CPPFLAGS'
29215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29218
29219     CXXFLAGS=-pedantic
29220     if test "$cross_compiling" = yes; then
29221   ac_cv_huge_val_sanity=yes
29222 else
29223   cat >conftest.$ac_ext <<_ACEOF
29224 /* confdefs.h.  */
29225 _ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h.  */
29229 #include <math.h>
29230 int
29231 main ()
29232 {
29233 double x = HUGE_VAL; return x != x;
29234   ;
29235   return 0;
29236 }
29237 _ACEOF
29238 rm -f conftest$ac_exeext
29239 if { (ac_try="$ac_link"
29240 case "(($ac_try" in
29241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242   *) ac_try_echo=$ac_try;;
29243 esac
29244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245   (eval "$ac_link") 2>&5
29246   ac_status=$?
29247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29249   { (case "(($ac_try" in
29250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251   *) ac_try_echo=$ac_try;;
29252 esac
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254   (eval "$ac_try") 2>&5
29255   ac_status=$?
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); }; }; then
29258   ac_cv_huge_val_sanity=yes
29259 else
29260   echo "$as_me: program exited with status $ac_status" >&5
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29263
29264 ( exit $ac_status )
29265 ac_cv_huge_val_sanity=no
29266 fi
29267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29268 fi
29269
29270
29271     ac_ext=c
29272 ac_cpp='$CPP $CPPFLAGS'
29273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29276
29277
29278 fi
29279 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29280 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29281   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29282
29283
29284 { echo "$as_me:$LINENO: checking for pid_t" >&5
29285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29286 if test "${ac_cv_type_pid_t+set}" = set; then
29287   echo $ECHO_N "(cached) $ECHO_C" >&6
29288 else
29289   cat >conftest.$ac_ext <<_ACEOF
29290 /* confdefs.h.  */
29291 _ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h.  */
29295 $ac_includes_default
29296 typedef pid_t ac__type_new_;
29297 int
29298 main ()
29299 {
29300 if ((ac__type_new_ *) 0)
29301   return 0;
29302 if (sizeof (ac__type_new_))
29303   return 0;
29304   ;
29305   return 0;
29306 }
29307 _ACEOF
29308 rm -f conftest.$ac_objext
29309 if { (ac_try="$ac_compile"
29310 case "(($ac_try" in
29311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312   *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315   (eval "$ac_compile") 2>conftest.er1
29316   ac_status=$?
29317   grep -v '^ *+' conftest.er1 >conftest.err
29318   rm -f conftest.er1
29319   cat conftest.err >&5
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); } &&
29322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29323   { (case "(($ac_try" in
29324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29325   *) ac_try_echo=$ac_try;;
29326 esac
29327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29328   (eval "$ac_try") 2>&5
29329   ac_status=$?
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); }; } &&
29332          { ac_try='test -s conftest.$ac_objext'
29333   { (case "(($ac_try" in
29334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335   *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338   (eval "$ac_try") 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; }; then
29342   ac_cv_type_pid_t=yes
29343 else
29344   echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29346
29347         ac_cv_type_pid_t=no
29348 fi
29349
29350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29351 fi
29352 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29353 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29354 if test $ac_cv_type_pid_t = yes; then
29355   :
29356 else
29357
29358 cat >>confdefs.h <<_ACEOF
29359 #define pid_t int
29360 _ACEOF
29361
29362 fi
29363
29364 { echo "$as_me:$LINENO: checking for size_t" >&5
29365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29366 if test "${ac_cv_type_size_t+set}" = set; then
29367   echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369   cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h.  */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h.  */
29375 $ac_includes_default
29376 typedef size_t ac__type_new_;
29377 int
29378 main ()
29379 {
29380 if ((ac__type_new_ *) 0)
29381   return 0;
29382 if (sizeof (ac__type_new_))
29383   return 0;
29384   ;
29385   return 0;
29386 }
29387 _ACEOF
29388 rm -f conftest.$ac_objext
29389 if { (ac_try="$ac_compile"
29390 case "(($ac_try" in
29391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392   *) ac_try_echo=$ac_try;;
29393 esac
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395   (eval "$ac_compile") 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403   { (case "(($ac_try" in
29404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405   *) ac_try_echo=$ac_try;;
29406 esac
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408   (eval "$ac_try") 2>&5
29409   ac_status=$?
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); }; } &&
29412          { ac_try='test -s conftest.$ac_objext'
29413   { (case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_try") 2>&5
29419   ac_status=$?
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); }; }; then
29422   ac_cv_type_size_t=yes
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427         ac_cv_type_size_t=no
29428 fi
29429
29430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29431 fi
29432 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29433 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29434 if test $ac_cv_type_size_t = yes; then
29435   :
29436 else
29437
29438 cat >>confdefs.h <<_ACEOF
29439 #define size_t unsigned int
29440 _ACEOF
29441
29442 fi
29443
29444 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29445 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29446 if test "${ac_cv_type_signal+set}" = set; then
29447   echo $ECHO_N "(cached) $ECHO_C" >&6
29448 else
29449   cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455 #include <sys/types.h>
29456 #include <signal.h>
29457
29458 int
29459 main ()
29460 {
29461 return *(signal (0, 0)) (0) == 1;
29462   ;
29463   return 0;
29464 }
29465 _ACEOF
29466 rm -f conftest.$ac_objext
29467 if { (ac_try="$ac_compile"
29468 case "(($ac_try" in
29469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470   *) ac_try_echo=$ac_try;;
29471 esac
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473   (eval "$ac_compile") 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } &&
29480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29481   { (case "(($ac_try" in
29482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483   *) ac_try_echo=$ac_try;;
29484 esac
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486   (eval "$ac_try") 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; } &&
29490          { ac_try='test -s conftest.$ac_objext'
29491   { (case "(($ac_try" in
29492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493   *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496   (eval "$ac_try") 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); }; }; then
29500   ac_cv_type_signal=int
29501 else
29502   echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505         ac_cv_type_signal=void
29506 fi
29507
29508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29509 fi
29510 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29511 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29512
29513 cat >>confdefs.h <<_ACEOF
29514 #define RETSIGTYPE $ac_cv_type_signal
29515 _ACEOF
29516
29517
29518 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29519 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29520 if test "${ac_cv_struct_tm+set}" = set; then
29521   echo $ECHO_N "(cached) $ECHO_C" >&6
29522 else
29523   cat >conftest.$ac_ext <<_ACEOF
29524 /* confdefs.h.  */
29525 _ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h.  */
29529 #include <sys/types.h>
29530 #include <time.h>
29531
29532 int
29533 main ()
29534 {
29535 struct tm *tp; tp->tm_sec;
29536   ;
29537   return 0;
29538 }
29539 _ACEOF
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544   *) ac_try_echo=$ac_try;;
29545 esac
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547   (eval "$ac_compile") 2>conftest.er1
29548   ac_status=$?
29549   grep -v '^ *+' conftest.er1 >conftest.err
29550   rm -f conftest.er1
29551   cat conftest.err >&5
29552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553   (exit $ac_status); } &&
29554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29555   { (case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_try") 2>&5
29561   ac_status=$?
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); }; } &&
29564          { ac_try='test -s conftest.$ac_objext'
29565   { (case "(($ac_try" in
29566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567   *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570   (eval "$ac_try") 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; }; then
29574   ac_cv_struct_tm=time.h
29575 else
29576   echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29578
29579         ac_cv_struct_tm=sys/time.h
29580 fi
29581
29582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29583 fi
29584 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29585 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29586 if test $ac_cv_struct_tm = sys/time.h; then
29587
29588 cat >>confdefs.h <<\_ACEOF
29589 #define TM_IN_SYS_TIME 1
29590 _ACEOF
29591
29592 fi
29593
29594 { echo "$as_me:$LINENO: checking for int64_t" >&5
29595 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29596 if test "${ac_cv_type_int64_t+set}" = set; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599   cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605 $ac_includes_default
29606 typedef int64_t ac__type_new_;
29607 int
29608 main ()
29609 {
29610 if ((ac__type_new_ *) 0)
29611   return 0;
29612 if (sizeof (ac__type_new_))
29613   return 0;
29614   ;
29615   return 0;
29616 }
29617 _ACEOF
29618 rm -f conftest.$ac_objext
29619 if { (ac_try="$ac_compile"
29620 case "(($ac_try" in
29621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622   *) ac_try_echo=$ac_try;;
29623 esac
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625   (eval "$ac_compile") 2>conftest.er1
29626   ac_status=$?
29627   grep -v '^ *+' conftest.er1 >conftest.err
29628   rm -f conftest.er1
29629   cat conftest.err >&5
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); } &&
29632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633   { (case "(($ac_try" in
29634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635   *) ac_try_echo=$ac_try;;
29636 esac
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638   (eval "$ac_try") 2>&5
29639   ac_status=$?
29640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641   (exit $ac_status); }; } &&
29642          { ac_try='test -s conftest.$ac_objext'
29643   { (case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_try") 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; }; then
29652   ac_cv_type_int64_t=yes
29653 else
29654   echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657         ac_cv_type_int64_t=no
29658 fi
29659
29660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29661 fi
29662 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29663 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29664 if test $ac_cv_type_int64_t = yes; then
29665
29666 cat >>confdefs.h <<_ACEOF
29667 #define HAVE_INT64_T 1
29668 _ACEOF
29669
29670
29671 else
29672   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29673 echo "$as_me: error: Type int64_t required but not found" >&2;}
29674    { (exit 1); exit 1; }; }
29675 fi
29676
29677 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29678 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29679 if test "${ac_cv_type_uint64_t+set}" = set; then
29680   echo $ECHO_N "(cached) $ECHO_C" >&6
29681 else
29682   cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 $ac_includes_default
29689 typedef uint64_t ac__type_new_;
29690 int
29691 main ()
29692 {
29693 if ((ac__type_new_ *) 0)
29694   return 0;
29695 if (sizeof (ac__type_new_))
29696   return 0;
29697   ;
29698   return 0;
29699 }
29700 _ACEOF
29701 rm -f conftest.$ac_objext
29702 if { (ac_try="$ac_compile"
29703 case "(($ac_try" in
29704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705   *) ac_try_echo=$ac_try;;
29706 esac
29707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708   (eval "$ac_compile") 2>conftest.er1
29709   ac_status=$?
29710   grep -v '^ *+' conftest.er1 >conftest.err
29711   rm -f conftest.er1
29712   cat conftest.err >&5
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); } &&
29715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716   { (case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_try") 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; } &&
29725          { ac_try='test -s conftest.$ac_objext'
29726   { (case "(($ac_try" in
29727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728   *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731   (eval "$ac_try") 2>&5
29732   ac_status=$?
29733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); }; }; then
29735   ac_cv_type_uint64_t=yes
29736 else
29737   echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29739
29740         ac_cv_type_uint64_t=no
29741 fi
29742
29743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29744 fi
29745 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29746 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29747 if test $ac_cv_type_uint64_t = yes; then
29748
29749 cat >>confdefs.h <<_ACEOF
29750 #define HAVE_UINT64_T 1
29751 _ACEOF
29752
29753
29754 else
29755   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29756 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29757 if test "${ac_cv_type_u_int64_t+set}" = set; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760   cat >conftest.$ac_ext <<_ACEOF
29761 /* confdefs.h.  */
29762 _ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h.  */
29766 $ac_includes_default
29767 typedef u_int64_t ac__type_new_;
29768 int
29769 main ()
29770 {
29771 if ((ac__type_new_ *) 0)
29772   return 0;
29773 if (sizeof (ac__type_new_))
29774   return 0;
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 rm -f conftest.$ac_objext
29780 if { (ac_try="$ac_compile"
29781 case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_compile") 2>conftest.er1
29787   ac_status=$?
29788   grep -v '^ *+' conftest.er1 >conftest.err
29789   rm -f conftest.er1
29790   cat conftest.err >&5
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); } &&
29793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29794   { (case "(($ac_try" in
29795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796   *) ac_try_echo=$ac_try;;
29797 esac
29798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799   (eval "$ac_try") 2>&5
29800   ac_status=$?
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); }; } &&
29803          { ac_try='test -s conftest.$ac_objext'
29804   { (case "(($ac_try" in
29805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806   *) ac_try_echo=$ac_try;;
29807 esac
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809   (eval "$ac_try") 2>&5
29810   ac_status=$?
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); }; }; then
29813   ac_cv_type_u_int64_t=yes
29814 else
29815   echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29817
29818         ac_cv_type_u_int64_t=no
29819 fi
29820
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29822 fi
29823 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29824 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29825 if test $ac_cv_type_u_int64_t = yes; then
29826
29827 cat >>confdefs.h <<_ACEOF
29828 #define HAVE_U_INT64_T 1
29829 _ACEOF
29830
29831
29832 else
29833   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29834 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29835    { (exit 1); exit 1; }; }
29836 fi
29837
29838 fi
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29850 do
29851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29855   echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857   cat >conftest.$ac_ext <<_ACEOF
29858 /* confdefs.h.  */
29859 _ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h.  */
29863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29865 #define $ac_func innocuous_$ac_func
29866
29867 /* System header to define __stub macros and hopefully few prototypes,
29868     which can conflict with char $ac_func (); below.
29869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29870     <limits.h> exists even on freestanding compilers.  */
29871
29872 #ifdef __STDC__
29873 # include <limits.h>
29874 #else
29875 # include <assert.h>
29876 #endif
29877
29878 #undef $ac_func
29879
29880 /* Override any GCC internal prototype to avoid an error.
29881    Use char because int might match the return type of a GCC
29882    builtin and then its argument prototype would still apply.  */
29883 #ifdef __cplusplus
29884 extern "C"
29885 #endif
29886 char $ac_func ();
29887 /* The GNU C library defines this for functions which it implements
29888     to always fail with ENOSYS.  Some functions are actually named
29889     something starting with __ and the normal name is an alias.  */
29890 #if defined __stub_$ac_func || defined __stub___$ac_func
29891 choke me
29892 #endif
29893
29894 int
29895 main ()
29896 {
29897 return $ac_func ();
29898   ;
29899   return 0;
29900 }
29901 _ACEOF
29902 rm -f conftest.$ac_objext conftest$ac_exeext
29903 if { (ac_try="$ac_link"
29904 case "(($ac_try" in
29905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906   *) ac_try_echo=$ac_try;;
29907 esac
29908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909   (eval "$ac_link") 2>conftest.er1
29910   ac_status=$?
29911   grep -v '^ *+' conftest.er1 >conftest.err
29912   rm -f conftest.er1
29913   cat conftest.err >&5
29914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915   (exit $ac_status); } &&
29916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29917   { (case "(($ac_try" in
29918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919   *) ac_try_echo=$ac_try;;
29920 esac
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922   (eval "$ac_try") 2>&5
29923   ac_status=$?
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); }; } &&
29926          { ac_try='test -s conftest$ac_exeext'
29927   { (case "(($ac_try" in
29928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929   *) ac_try_echo=$ac_try;;
29930 esac
29931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932   (eval "$ac_try") 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; }; then
29936   eval "$as_ac_var=yes"
29937 else
29938   echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941         eval "$as_ac_var=no"
29942 fi
29943
29944 rm -f core conftest.err conftest.$ac_objext \
29945       conftest$ac_exeext conftest.$ac_ext
29946 fi
29947 ac_res=`eval echo '${'$as_ac_var'}'`
29948                { echo "$as_me:$LINENO: result: $ac_res" >&5
29949 echo "${ECHO_T}$ac_res" >&6; }
29950 if test `eval echo '${'$as_ac_var'}'` = yes; then
29951   cat >>confdefs.h <<_ACEOF
29952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29953 _ACEOF
29954
29955 fi
29956 done
29957
29958
29959
29960
29961
29962
29963
29964 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29965 do
29966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29970   echo $ECHO_N "(cached) $ECHO_C" >&6
29971 else
29972   cat >conftest.$ac_ext <<_ACEOF
29973 /* confdefs.h.  */
29974 _ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h.  */
29978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29980 #define $ac_func innocuous_$ac_func
29981
29982 /* System header to define __stub macros and hopefully few prototypes,
29983     which can conflict with char $ac_func (); below.
29984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29985     <limits.h> exists even on freestanding compilers.  */
29986
29987 #ifdef __STDC__
29988 # include <limits.h>
29989 #else
29990 # include <assert.h>
29991 #endif
29992
29993 #undef $ac_func
29994
29995 /* Override any GCC internal prototype to avoid an error.
29996    Use char because int might match the return type of a GCC
29997    builtin and then its argument prototype would still apply.  */
29998 #ifdef __cplusplus
29999 extern "C"
30000 #endif
30001 char $ac_func ();
30002 /* The GNU C library defines this for functions which it implements
30003     to always fail with ENOSYS.  Some functions are actually named
30004     something starting with __ and the normal name is an alias.  */
30005 #if defined __stub_$ac_func || defined __stub___$ac_func
30006 choke me
30007 #endif
30008
30009 int
30010 main ()
30011 {
30012 return $ac_func ();
30013   ;
30014   return 0;
30015 }
30016 _ACEOF
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (ac_try="$ac_link"
30019 case "(($ac_try" in
30020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021   *) ac_try_echo=$ac_try;;
30022 esac
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024   (eval "$ac_link") 2>conftest.er1
30025   ac_status=$?
30026   grep -v '^ *+' conftest.er1 >conftest.err
30027   rm -f conftest.er1
30028   cat conftest.err >&5
30029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); } &&
30031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30032   { (case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037   (eval "$ac_try") 2>&5
30038   ac_status=$?
30039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040   (exit $ac_status); }; } &&
30041          { ac_try='test -s conftest$ac_exeext'
30042   { (case "(($ac_try" in
30043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044   *) ac_try_echo=$ac_try;;
30045 esac
30046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047   (eval "$ac_try") 2>&5
30048   ac_status=$?
30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050   (exit $ac_status); }; }; then
30051   eval "$as_ac_var=yes"
30052 else
30053   echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30055
30056         eval "$as_ac_var=no"
30057 fi
30058
30059 rm -f core conftest.err conftest.$ac_objext \
30060       conftest$ac_exeext conftest.$ac_ext
30061 fi
30062 ac_res=`eval echo '${'$as_ac_var'}'`
30063                { echo "$as_me:$LINENO: result: $ac_res" >&5
30064 echo "${ECHO_T}$ac_res" >&6; }
30065 if test `eval echo '${'$as_ac_var'}'` = yes; then
30066   cat >>confdefs.h <<_ACEOF
30067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30068 _ACEOF
30069
30070 fi
30071 done
30072
30073
30074
30075
30076
30077
30078
30079
30080 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30081 do
30082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30086   echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088   cat >conftest.$ac_ext <<_ACEOF
30089 /* confdefs.h.  */
30090 _ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h.  */
30094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30096 #define $ac_func innocuous_$ac_func
30097
30098 /* System header to define __stub macros and hopefully few prototypes,
30099     which can conflict with char $ac_func (); below.
30100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30101     <limits.h> exists even on freestanding compilers.  */
30102
30103 #ifdef __STDC__
30104 # include <limits.h>
30105 #else
30106 # include <assert.h>
30107 #endif
30108
30109 #undef $ac_func
30110
30111 /* Override any GCC internal prototype to avoid an error.
30112    Use char because int might match the return type of a GCC
30113    builtin and then its argument prototype would still apply.  */
30114 #ifdef __cplusplus
30115 extern "C"
30116 #endif
30117 char $ac_func ();
30118 /* The GNU C library defines this for functions which it implements
30119     to always fail with ENOSYS.  Some functions are actually named
30120     something starting with __ and the normal name is an alias.  */
30121 #if defined __stub_$ac_func || defined __stub___$ac_func
30122 choke me
30123 #endif
30124
30125 int
30126 main ()
30127 {
30128 return $ac_func ();
30129   ;
30130   return 0;
30131 }
30132 _ACEOF
30133 rm -f conftest.$ac_objext conftest$ac_exeext
30134 if { (ac_try="$ac_link"
30135 case "(($ac_try" in
30136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137   *) ac_try_echo=$ac_try;;
30138 esac
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140   (eval "$ac_link") 2>conftest.er1
30141   ac_status=$?
30142   grep -v '^ *+' conftest.er1 >conftest.err
30143   rm -f conftest.er1
30144   cat conftest.err >&5
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); } &&
30147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30148   { (case "(($ac_try" in
30149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150   *) ac_try_echo=$ac_try;;
30151 esac
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153   (eval "$ac_try") 2>&5
30154   ac_status=$?
30155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156   (exit $ac_status); }; } &&
30157          { ac_try='test -s conftest$ac_exeext'
30158   { (case "(($ac_try" in
30159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160   *) ac_try_echo=$ac_try;;
30161 esac
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163   (eval "$ac_try") 2>&5
30164   ac_status=$?
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); }; }; then
30167   eval "$as_ac_var=yes"
30168 else
30169   echo "$as_me: failed program was:" >&5
30170 sed 's/^/| /' conftest.$ac_ext >&5
30171
30172         eval "$as_ac_var=no"
30173 fi
30174
30175 rm -f core conftest.err conftest.$ac_objext \
30176       conftest$ac_exeext conftest.$ac_ext
30177 fi
30178 ac_res=`eval echo '${'$as_ac_var'}'`
30179                { echo "$as_me:$LINENO: result: $ac_res" >&5
30180 echo "${ECHO_T}$ac_res" >&6; }
30181 if test `eval echo '${'$as_ac_var'}'` = yes; then
30182   cat >>confdefs.h <<_ACEOF
30183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30184 _ACEOF
30185
30186 fi
30187 done
30188
30189
30190
30191
30192
30193 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30194 do
30195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199   echo $ECHO_N "(cached) $ECHO_C" >&6
30200 else
30201   cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h.  */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h.  */
30207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30209 #define $ac_func innocuous_$ac_func
30210
30211 /* System header to define __stub macros and hopefully few prototypes,
30212     which can conflict with char $ac_func (); below.
30213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214     <limits.h> exists even on freestanding compilers.  */
30215
30216 #ifdef __STDC__
30217 # include <limits.h>
30218 #else
30219 # include <assert.h>
30220 #endif
30221
30222 #undef $ac_func
30223
30224 /* Override any GCC internal prototype to avoid an error.
30225    Use char because int might match the return type of a GCC
30226    builtin and then its argument prototype would still apply.  */
30227 #ifdef __cplusplus
30228 extern "C"
30229 #endif
30230 char $ac_func ();
30231 /* The GNU C library defines this for functions which it implements
30232     to always fail with ENOSYS.  Some functions are actually named
30233     something starting with __ and the normal name is an alias.  */
30234 #if defined __stub_$ac_func || defined __stub___$ac_func
30235 choke me
30236 #endif
30237
30238 int
30239 main ()
30240 {
30241 return $ac_func ();
30242   ;
30243   return 0;
30244 }
30245 _ACEOF
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250   *) ac_try_echo=$ac_try;;
30251 esac
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253   (eval "$ac_link") 2>conftest.er1
30254   ac_status=$?
30255   grep -v '^ *+' conftest.er1 >conftest.err
30256   rm -f conftest.er1
30257   cat conftest.err >&5
30258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259   (exit $ac_status); } &&
30260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30261   { (case "(($ac_try" in
30262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263   *) ac_try_echo=$ac_try;;
30264 esac
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266   (eval "$ac_try") 2>&5
30267   ac_status=$?
30268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269   (exit $ac_status); }; } &&
30270          { ac_try='test -s conftest$ac_exeext'
30271   { (case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_try") 2>&5
30277   ac_status=$?
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); }; }; then
30280   eval "$as_ac_var=yes"
30281 else
30282   echo "$as_me: failed program was:" >&5
30283 sed 's/^/| /' conftest.$ac_ext >&5
30284
30285         eval "$as_ac_var=no"
30286 fi
30287
30288 rm -f core conftest.err conftest.$ac_objext \
30289       conftest$ac_exeext conftest.$ac_ext
30290 fi
30291 ac_res=`eval echo '${'$as_ac_var'}'`
30292                { echo "$as_me:$LINENO: result: $ac_res" >&5
30293 echo "${ECHO_T}$ac_res" >&6; }
30294 if test `eval echo '${'$as_ac_var'}'` = yes; then
30295   cat >>confdefs.h <<_ACEOF
30296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30297 _ACEOF
30298
30299 fi
30300 done
30301
30302
30303
30304
30305
30306 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30307 do
30308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h.  */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h.  */
30320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30322 #define $ac_func innocuous_$ac_func
30323
30324 /* System header to define __stub macros and hopefully few prototypes,
30325     which can conflict with char $ac_func (); below.
30326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30327     <limits.h> exists even on freestanding compilers.  */
30328
30329 #ifdef __STDC__
30330 # include <limits.h>
30331 #else
30332 # include <assert.h>
30333 #endif
30334
30335 #undef $ac_func
30336
30337 /* Override any GCC internal prototype to avoid an error.
30338    Use char because int might match the return type of a GCC
30339    builtin and then its argument prototype would still apply.  */
30340 #ifdef __cplusplus
30341 extern "C"
30342 #endif
30343 char $ac_func ();
30344 /* The GNU C library defines this for functions which it implements
30345     to always fail with ENOSYS.  Some functions are actually named
30346     something starting with __ and the normal name is an alias.  */
30347 #if defined __stub_$ac_func || defined __stub___$ac_func
30348 choke me
30349 #endif
30350
30351 int
30352 main ()
30353 {
30354 return $ac_func ();
30355   ;
30356   return 0;
30357 }
30358 _ACEOF
30359 rm -f conftest.$ac_objext conftest$ac_exeext
30360 if { (ac_try="$ac_link"
30361 case "(($ac_try" in
30362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363   *) ac_try_echo=$ac_try;;
30364 esac
30365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366   (eval "$ac_link") 2>conftest.er1
30367   ac_status=$?
30368   grep -v '^ *+' conftest.er1 >conftest.err
30369   rm -f conftest.er1
30370   cat conftest.err >&5
30371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372   (exit $ac_status); } &&
30373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30374   { (case "(($ac_try" in
30375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30376   *) ac_try_echo=$ac_try;;
30377 esac
30378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30379   (eval "$ac_try") 2>&5
30380   ac_status=$?
30381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382   (exit $ac_status); }; } &&
30383          { ac_try='test -s conftest$ac_exeext'
30384   { (case "(($ac_try" in
30385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386   *) ac_try_echo=$ac_try;;
30387 esac
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389   (eval "$ac_try") 2>&5
30390   ac_status=$?
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); }; }; then
30393   eval "$as_ac_var=yes"
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398         eval "$as_ac_var=no"
30399 fi
30400
30401 rm -f core conftest.err conftest.$ac_objext \
30402       conftest$ac_exeext conftest.$ac_ext
30403 fi
30404 ac_res=`eval echo '${'$as_ac_var'}'`
30405                { echo "$as_me:$LINENO: result: $ac_res" >&5
30406 echo "${ECHO_T}$ac_res" >&6; }
30407 if test `eval echo '${'$as_ac_var'}'` = yes; then
30408   cat >>confdefs.h <<_ACEOF
30409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30410 _ACEOF
30411
30412 fi
30413 done
30414
30415 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30416 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30417 if test "${llvm_cv_c_printf_a+set}" = set; then
30418   echo $ECHO_N "(cached) $ECHO_C" >&6
30419 else
30420   ac_ext=c
30421 ac_cpp='$CPP $CPPFLAGS'
30422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30425
30426  if test "$cross_compiling" = yes; then
30427   llvmac_cv_c_printf_a=no
30428 else
30429   cat >conftest.$ac_ext <<_ACEOF
30430
30431   /* confdefs.h.  */
30432 _ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h.  */
30436
30437 #include <stdio.h>
30438 #include <stdlib.h>
30439
30440 int
30441 main ()
30442 {
30443
30444 volatile double A, B;
30445 char Buffer[100];
30446 A = 1;
30447 A /= 10.0;
30448 sprintf(Buffer, "%a", A);
30449 B = atof(Buffer);
30450 if (A != B)
30451   return (1);
30452 if (A != 0x1.999999999999ap-4)
30453   return (1);
30454 return (0);
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest$ac_exeext
30460 if { (ac_try="$ac_link"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_link") 2>&5
30467   ac_status=$?
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30470   { (case "(($ac_try" in
30471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472   *) ac_try_echo=$ac_try;;
30473 esac
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475   (eval "$ac_try") 2>&5
30476   ac_status=$?
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); }; }; then
30479   llvm_cv_c_printf_a=yes
30480 else
30481   echo "$as_me: program exited with status $ac_status" >&5
30482 echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30484
30485 ( exit $ac_status )
30486 llvmac_cv_c_printf_a=no
30487 fi
30488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30489 fi
30490
30491
30492  ac_ext=c
30493 ac_cpp='$CPP $CPPFLAGS'
30494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30497
30498 fi
30499 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30500 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30501  if test "$llvm_cv_c_printf_a" = "yes"; then
30502
30503 cat >>confdefs.h <<\_ACEOF
30504 #define HAVE_PRINTF_A 1
30505 _ACEOF
30506
30507  fi
30508
30509 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30510 # for constant arguments.  Useless!
30511 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30512 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30513 if test "${ac_cv_working_alloca_h+set}" = set; then
30514   echo $ECHO_N "(cached) $ECHO_C" >&6
30515 else
30516   cat >conftest.$ac_ext <<_ACEOF
30517 /* confdefs.h.  */
30518 _ACEOF
30519 cat confdefs.h >>conftest.$ac_ext
30520 cat >>conftest.$ac_ext <<_ACEOF
30521 /* end confdefs.h.  */
30522 #include <alloca.h>
30523 int
30524 main ()
30525 {
30526 char *p = (char *) alloca (2 * sizeof (int));
30527                           if (p) return 0;
30528   ;
30529   return 0;
30530 }
30531 _ACEOF
30532 rm -f conftest.$ac_objext conftest$ac_exeext
30533 if { (ac_try="$ac_link"
30534 case "(($ac_try" in
30535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536   *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539   (eval "$ac_link") 2>conftest.er1
30540   ac_status=$?
30541   grep -v '^ *+' conftest.er1 >conftest.err
30542   rm -f conftest.er1
30543   cat conftest.err >&5
30544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545   (exit $ac_status); } &&
30546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30547   { (case "(($ac_try" in
30548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549   *) ac_try_echo=$ac_try;;
30550 esac
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552   (eval "$ac_try") 2>&5
30553   ac_status=$?
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); }; } &&
30556          { ac_try='test -s conftest$ac_exeext'
30557   { (case "(($ac_try" in
30558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30559   *) ac_try_echo=$ac_try;;
30560 esac
30561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30562   (eval "$ac_try") 2>&5
30563   ac_status=$?
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); }; }; then
30566   ac_cv_working_alloca_h=yes
30567 else
30568   echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30570
30571         ac_cv_working_alloca_h=no
30572 fi
30573
30574 rm -f core conftest.err conftest.$ac_objext \
30575       conftest$ac_exeext conftest.$ac_ext
30576 fi
30577 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30578 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30579 if test $ac_cv_working_alloca_h = yes; then
30580
30581 cat >>confdefs.h <<\_ACEOF
30582 #define HAVE_ALLOCA_H 1
30583 _ACEOF
30584
30585 fi
30586
30587 { echo "$as_me:$LINENO: checking for alloca" >&5
30588 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30589 if test "${ac_cv_func_alloca_works+set}" = set; then
30590   echo $ECHO_N "(cached) $ECHO_C" >&6
30591 else
30592   cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h.  */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h.  */
30598 #ifdef __GNUC__
30599 # define alloca __builtin_alloca
30600 #else
30601 # ifdef _MSC_VER
30602 #  include <malloc.h>
30603 #  define alloca _alloca
30604 # else
30605 #  if HAVE_ALLOCA_H
30606 #   include <alloca.h>
30607 #  else
30608 #   ifdef _AIX
30609  #pragma alloca
30610 #   else
30611 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30612 char *alloca ();
30613 #    endif
30614 #   endif
30615 #  endif
30616 # endif
30617 #endif
30618
30619 int
30620 main ()
30621 {
30622 char *p = (char *) alloca (1);
30623                                     if (p) return 0;
30624   ;
30625   return 0;
30626 }
30627 _ACEOF
30628 rm -f conftest.$ac_objext conftest$ac_exeext
30629 if { (ac_try="$ac_link"
30630 case "(($ac_try" in
30631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632   *) ac_try_echo=$ac_try;;
30633 esac
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635   (eval "$ac_link") 2>conftest.er1
30636   ac_status=$?
30637   grep -v '^ *+' conftest.er1 >conftest.err
30638   rm -f conftest.er1
30639   cat conftest.err >&5
30640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641   (exit $ac_status); } &&
30642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643   { (case "(($ac_try" in
30644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645   *) ac_try_echo=$ac_try;;
30646 esac
30647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648   (eval "$ac_try") 2>&5
30649   ac_status=$?
30650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); }; } &&
30652          { ac_try='test -s conftest$ac_exeext'
30653   { (case "(($ac_try" in
30654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655   *) ac_try_echo=$ac_try;;
30656 esac
30657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658   (eval "$ac_try") 2>&5
30659   ac_status=$?
30660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661   (exit $ac_status); }; }; then
30662   ac_cv_func_alloca_works=yes
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667         ac_cv_func_alloca_works=no
30668 fi
30669
30670 rm -f core conftest.err conftest.$ac_objext \
30671       conftest$ac_exeext conftest.$ac_ext
30672 fi
30673 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30674 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30675
30676 if test $ac_cv_func_alloca_works = yes; then
30677
30678 cat >>confdefs.h <<\_ACEOF
30679 #define HAVE_ALLOCA 1
30680 _ACEOF
30681
30682 else
30683   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30684 # that cause trouble.  Some versions do not even contain alloca or
30685 # contain a buggy version.  If you still want to use their alloca,
30686 # use ar to extract alloca.o from them instead of compiling alloca.c.
30687
30688 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30689
30690 cat >>confdefs.h <<\_ACEOF
30691 #define C_ALLOCA 1
30692 _ACEOF
30693
30694
30695 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30696 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30697 if test "${ac_cv_os_cray+set}" = set; then
30698   echo $ECHO_N "(cached) $ECHO_C" >&6
30699 else
30700   cat >conftest.$ac_ext <<_ACEOF
30701 /* confdefs.h.  */
30702 _ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h.  */
30706 #if defined CRAY && ! defined CRAY2
30707 webecray
30708 #else
30709 wenotbecray
30710 #endif
30711
30712 _ACEOF
30713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30714   $EGREP "webecray" >/dev/null 2>&1; then
30715   ac_cv_os_cray=yes
30716 else
30717   ac_cv_os_cray=no
30718 fi
30719 rm -f conftest*
30720
30721 fi
30722 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30723 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30724 if test $ac_cv_os_cray = yes; then
30725   for ac_func in _getb67 GETB67 getb67; do
30726     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30730   echo $ECHO_N "(cached) $ECHO_C" >&6
30731 else
30732   cat >conftest.$ac_ext <<_ACEOF
30733 /* confdefs.h.  */
30734 _ACEOF
30735 cat confdefs.h >>conftest.$ac_ext
30736 cat >>conftest.$ac_ext <<_ACEOF
30737 /* end confdefs.h.  */
30738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30740 #define $ac_func innocuous_$ac_func
30741
30742 /* System header to define __stub macros and hopefully few prototypes,
30743     which can conflict with char $ac_func (); below.
30744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30745     <limits.h> exists even on freestanding compilers.  */
30746
30747 #ifdef __STDC__
30748 # include <limits.h>
30749 #else
30750 # include <assert.h>
30751 #endif
30752
30753 #undef $ac_func
30754
30755 /* Override any GCC internal prototype to avoid an error.
30756    Use char because int might match the return type of a GCC
30757    builtin and then its argument prototype would still apply.  */
30758 #ifdef __cplusplus
30759 extern "C"
30760 #endif
30761 char $ac_func ();
30762 /* The GNU C library defines this for functions which it implements
30763     to always fail with ENOSYS.  Some functions are actually named
30764     something starting with __ and the normal name is an alias.  */
30765 #if defined __stub_$ac_func || defined __stub___$ac_func
30766 choke me
30767 #endif
30768
30769 int
30770 main ()
30771 {
30772 return $ac_func ();
30773   ;
30774   return 0;
30775 }
30776 _ACEOF
30777 rm -f conftest.$ac_objext conftest$ac_exeext
30778 if { (ac_try="$ac_link"
30779 case "(($ac_try" in
30780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781   *) ac_try_echo=$ac_try;;
30782 esac
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784   (eval "$ac_link") 2>conftest.er1
30785   ac_status=$?
30786   grep -v '^ *+' conftest.er1 >conftest.err
30787   rm -f conftest.er1
30788   cat conftest.err >&5
30789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790   (exit $ac_status); } &&
30791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30792   { (case "(($ac_try" in
30793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794   *) ac_try_echo=$ac_try;;
30795 esac
30796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30797   (eval "$ac_try") 2>&5
30798   ac_status=$?
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); }; } &&
30801          { ac_try='test -s conftest$ac_exeext'
30802   { (case "(($ac_try" in
30803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804   *) ac_try_echo=$ac_try;;
30805 esac
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807   (eval "$ac_try") 2>&5
30808   ac_status=$?
30809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810   (exit $ac_status); }; }; then
30811   eval "$as_ac_var=yes"
30812 else
30813   echo "$as_me: failed program was:" >&5
30814 sed 's/^/| /' conftest.$ac_ext >&5
30815
30816         eval "$as_ac_var=no"
30817 fi
30818
30819 rm -f core conftest.err conftest.$ac_objext \
30820       conftest$ac_exeext conftest.$ac_ext
30821 fi
30822 ac_res=`eval echo '${'$as_ac_var'}'`
30823                { echo "$as_me:$LINENO: result: $ac_res" >&5
30824 echo "${ECHO_T}$ac_res" >&6; }
30825 if test `eval echo '${'$as_ac_var'}'` = yes; then
30826
30827 cat >>confdefs.h <<_ACEOF
30828 #define CRAY_STACKSEG_END $ac_func
30829 _ACEOF
30830
30831     break
30832 fi
30833
30834   done
30835 fi
30836
30837 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30838 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30839 if test "${ac_cv_c_stack_direction+set}" = set; then
30840   echo $ECHO_N "(cached) $ECHO_C" >&6
30841 else
30842   if test "$cross_compiling" = yes; then
30843   ac_cv_c_stack_direction=0
30844 else
30845   cat >conftest.$ac_ext <<_ACEOF
30846 /* confdefs.h.  */
30847 _ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h.  */
30851 $ac_includes_default
30852 int
30853 find_stack_direction ()
30854 {
30855   static char *addr = 0;
30856   auto char dummy;
30857   if (addr == 0)
30858     {
30859       addr = &dummy;
30860       return find_stack_direction ();
30861     }
30862   else
30863     return (&dummy > addr) ? 1 : -1;
30864 }
30865
30866 int
30867 main ()
30868 {
30869   return find_stack_direction () < 0;
30870 }
30871 _ACEOF
30872 rm -f conftest$ac_exeext
30873 if { (ac_try="$ac_link"
30874 case "(($ac_try" in
30875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876   *) ac_try_echo=$ac_try;;
30877 esac
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879   (eval "$ac_link") 2>&5
30880   ac_status=$?
30881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30883   { (case "(($ac_try" in
30884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30885   *) ac_try_echo=$ac_try;;
30886 esac
30887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30888   (eval "$ac_try") 2>&5
30889   ac_status=$?
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); }; }; then
30892   ac_cv_c_stack_direction=1
30893 else
30894   echo "$as_me: program exited with status $ac_status" >&5
30895 echo "$as_me: failed program was:" >&5
30896 sed 's/^/| /' conftest.$ac_ext >&5
30897
30898 ( exit $ac_status )
30899 ac_cv_c_stack_direction=-1
30900 fi
30901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30902 fi
30903
30904
30905 fi
30906 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30908
30909 cat >>confdefs.h <<_ACEOF
30910 #define STACK_DIRECTION $ac_cv_c_stack_direction
30911 _ACEOF
30912
30913
30914 fi
30915
30916
30917 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30918 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30919 if test "${ac_cv_func_rand48+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   ac_ext=cpp
30923 ac_cpp='$CXXCPP $CPPFLAGS'
30924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30927
30928    cat >conftest.$ac_ext <<_ACEOF
30929 /* confdefs.h.  */
30930 _ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h.  */
30934 #include <stdlib.h>
30935 int
30936 main ()
30937 {
30938 srand48(0);lrand48();drand48();
30939   ;
30940   return 0;
30941 }
30942 _ACEOF
30943 rm -f conftest.$ac_objext
30944 if { (ac_try="$ac_compile"
30945 case "(($ac_try" in
30946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947   *) ac_try_echo=$ac_try;;
30948 esac
30949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950   (eval "$ac_compile") 2>conftest.er1
30951   ac_status=$?
30952   grep -v '^ *+' conftest.er1 >conftest.err
30953   rm -f conftest.er1
30954   cat conftest.err >&5
30955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956   (exit $ac_status); } &&
30957          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30958   { (case "(($ac_try" in
30959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960   *) ac_try_echo=$ac_try;;
30961 esac
30962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963   (eval "$ac_try") 2>&5
30964   ac_status=$?
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); }; } &&
30967          { ac_try='test -s conftest.$ac_objext'
30968   { (case "(($ac_try" in
30969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970   *) ac_try_echo=$ac_try;;
30971 esac
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973   (eval "$ac_try") 2>&5
30974   ac_status=$?
30975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); }; }; then
30977   ac_cv_func_rand48=yes
30978 else
30979   echo "$as_me: failed program was:" >&5
30980 sed 's/^/| /' conftest.$ac_ext >&5
30981
30982         ac_cv_func_rand48=no
30983 fi
30984
30985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30986   ac_ext=c
30987 ac_cpp='$CPP $CPPFLAGS'
30988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30991
30992 fi
30993 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30994 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30995
30996 if test "$ac_cv_func_rand48" = "yes" ; then
30997
30998 cat >>confdefs.h <<\_ACEOF
30999 #define HAVE_RAND48 1
31000 _ACEOF
31001
31002 fi
31003
31004
31005 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31006 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31007 if test "${ac_cv_cxx_namespaces+set}" = set; then
31008   echo $ECHO_N "(cached) $ECHO_C" >&6
31009 else
31010   ac_ext=cpp
31011 ac_cpp='$CXXCPP $CPPFLAGS'
31012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31015
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 namespace Outer { namespace Inner { int i = 0; }}
31023 int
31024 main ()
31025 {
31026 using namespace Outer::Inner; return i;
31027   ;
31028   return 0;
31029 }
31030 _ACEOF
31031 rm -f conftest.$ac_objext
31032 if { (ac_try="$ac_compile"
31033 case "(($ac_try" in
31034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035   *) ac_try_echo=$ac_try;;
31036 esac
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038   (eval "$ac_compile") 2>conftest.er1
31039   ac_status=$?
31040   grep -v '^ *+' conftest.er1 >conftest.err
31041   rm -f conftest.er1
31042   cat conftest.err >&5
31043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044   (exit $ac_status); } &&
31045          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31046   { (case "(($ac_try" in
31047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048   *) ac_try_echo=$ac_try;;
31049 esac
31050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051   (eval "$ac_try") 2>&5
31052   ac_status=$?
31053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054   (exit $ac_status); }; } &&
31055          { ac_try='test -s conftest.$ac_objext'
31056   { (case "(($ac_try" in
31057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058   *) ac_try_echo=$ac_try;;
31059 esac
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061   (eval "$ac_try") 2>&5
31062   ac_status=$?
31063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064   (exit $ac_status); }; }; then
31065   ac_cv_cxx_namespaces=yes
31066 else
31067   echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31069
31070         ac_cv_cxx_namespaces=no
31071 fi
31072
31073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31074  ac_ext=c
31075 ac_cpp='$CPP $CPPFLAGS'
31076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31079
31080
31081 fi
31082 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31083 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31084 if test "$ac_cv_cxx_namespaces" = yes; then
31085
31086 cat >>confdefs.h <<\_ACEOF
31087 #define HAVE_NAMESPACES
31088 _ACEOF
31089
31090 fi
31091
31092 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31093 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31094 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31095   echo $ECHO_N "(cached) $ECHO_C" >&6
31096 else
31097
31098   ac_ext=cpp
31099 ac_cpp='$CXXCPP $CPPFLAGS'
31100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31103
31104   cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h.  */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h.  */
31110 #include <ext/hash_map>
31111 #ifdef HAVE_NAMESPACES
31112 using namespace std;
31113 #endif
31114 int
31115 main ()
31116 {
31117 hash_map<int, int> t;
31118   ;
31119   return 0;
31120 }
31121 _ACEOF
31122 rm -f conftest.$ac_objext
31123 if { (ac_try="$ac_compile"
31124 case "(($ac_try" in
31125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126   *) ac_try_echo=$ac_try;;
31127 esac
31128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129   (eval "$ac_compile") 2>conftest.er1
31130   ac_status=$?
31131   grep -v '^ *+' conftest.er1 >conftest.err
31132   rm -f conftest.er1
31133   cat conftest.err >&5
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); } &&
31136          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31137   { (case "(($ac_try" in
31138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139   *) ac_try_echo=$ac_try;;
31140 esac
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142   (eval "$ac_try") 2>&5
31143   ac_status=$?
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); }; } &&
31146          { ac_try='test -s conftest.$ac_objext'
31147   { (case "(($ac_try" in
31148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149   *) ac_try_echo=$ac_try;;
31150 esac
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152   (eval "$ac_try") 2>&5
31153   ac_status=$?
31154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); }; }; then
31156   ac_cv_cxx_have_std_ext_hash_map=yes
31157 else
31158   echo "$as_me: failed program was:" >&5
31159 sed 's/^/| /' conftest.$ac_ext >&5
31160
31161         ac_cv_cxx_have_std_ext_hash_map=no
31162 fi
31163
31164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31165   ac_ext=c
31166 ac_cpp='$CPP $CPPFLAGS'
31167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31170
31171 fi
31172 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31173 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31174  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31175  then
31176
31177 cat >>confdefs.h <<\_ACEOF
31178 #define HAVE_STD_EXT_HASH_MAP 1
31179 _ACEOF
31180
31181  else
31182
31183 cat >>confdefs.h <<\_ACEOF
31184 #define HAVE_STD_EXT_HASH_MAP 0
31185 _ACEOF
31186
31187  fi
31188
31189  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31190 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31191 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31192   echo $ECHO_N "(cached) $ECHO_C" >&6
31193 else
31194
31195   ac_ext=cpp
31196 ac_cpp='$CXXCPP $CPPFLAGS'
31197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31200
31201   cat >conftest.$ac_ext <<_ACEOF
31202 /* confdefs.h.  */
31203 _ACEOF
31204 cat confdefs.h >>conftest.$ac_ext
31205 cat >>conftest.$ac_ext <<_ACEOF
31206 /* end confdefs.h.  */
31207 #include <ext/hash_map>
31208 #ifdef HAVE_NAMESPACES
31209 using namespace __gnu_cxx;
31210 #endif
31211 int
31212 main ()
31213 {
31214 hash_map<int,int> t;
31215   ;
31216   return 0;
31217 }
31218 _ACEOF
31219 rm -f conftest.$ac_objext
31220 if { (ac_try="$ac_compile"
31221 case "(($ac_try" in
31222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223   *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226   (eval "$ac_compile") 2>conftest.er1
31227   ac_status=$?
31228   grep -v '^ *+' conftest.er1 >conftest.err
31229   rm -f conftest.er1
31230   cat conftest.err >&5
31231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232   (exit $ac_status); } &&
31233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31234   { (case "(($ac_try" in
31235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236   *) ac_try_echo=$ac_try;;
31237 esac
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239   (eval "$ac_try") 2>&5
31240   ac_status=$?
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); }; } &&
31243          { ac_try='test -s conftest.$ac_objext'
31244   { (case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_try") 2>&5
31250   ac_status=$?
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); }; }; then
31253   ac_cv_cxx_have_gnu_ext_hash_map=yes
31254 else
31255   echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31257
31258         ac_cv_cxx_have_gnu_ext_hash_map=no
31259 fi
31260
31261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31262   ac_ext=c
31263 ac_cpp='$CPP $CPPFLAGS'
31264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31267
31268 fi
31269 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31270 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31271  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31272  then
31273
31274 cat >>confdefs.h <<\_ACEOF
31275 #define HAVE_GNU_EXT_HASH_MAP 1
31276 _ACEOF
31277
31278  else
31279
31280 cat >>confdefs.h <<\_ACEOF
31281 #define HAVE_GNU_EXT_HASH_MAP 0
31282 _ACEOF
31283
31284  fi
31285
31286  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31287 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31288 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31289   echo $ECHO_N "(cached) $ECHO_C" >&6
31290 else
31291
31292   ac_ext=cpp
31293 ac_cpp='$CXXCPP $CPPFLAGS'
31294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31297
31298   cat >conftest.$ac_ext <<_ACEOF
31299 /* confdefs.h.  */
31300 _ACEOF
31301 cat confdefs.h >>conftest.$ac_ext
31302 cat >>conftest.$ac_ext <<_ACEOF
31303 /* end confdefs.h.  */
31304 #include <hash_map>
31305 int
31306 main ()
31307 {
31308 hash_map<int,int> t;
31309   ;
31310   return 0;
31311 }
31312 _ACEOF
31313 rm -f conftest.$ac_objext
31314 if { (ac_try="$ac_compile"
31315 case "(($ac_try" in
31316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317   *) ac_try_echo=$ac_try;;
31318 esac
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320   (eval "$ac_compile") 2>conftest.er1
31321   ac_status=$?
31322   grep -v '^ *+' conftest.er1 >conftest.err
31323   rm -f conftest.er1
31324   cat conftest.err >&5
31325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326   (exit $ac_status); } &&
31327          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31328   { (case "(($ac_try" in
31329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330   *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333   (eval "$ac_try") 2>&5
31334   ac_status=$?
31335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336   (exit $ac_status); }; } &&
31337          { ac_try='test -s conftest.$ac_objext'
31338   { (case "(($ac_try" in
31339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340   *) ac_try_echo=$ac_try;;
31341 esac
31342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343   (eval "$ac_try") 2>&5
31344   ac_status=$?
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); }; }; then
31347   ac_cv_cxx_have_global_hash_map=yes
31348 else
31349   echo "$as_me: failed program was:" >&5
31350 sed 's/^/| /' conftest.$ac_ext >&5
31351
31352         ac_cv_cxx_have_global_hash_map=no
31353 fi
31354
31355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31356   ac_ext=c
31357 ac_cpp='$CPP $CPPFLAGS'
31358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31361
31362 fi
31363 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31364 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31365  if test "$ac_cv_cxx_have_global_hash_map" = yes
31366  then
31367
31368 cat >>confdefs.h <<\_ACEOF
31369 #define HAVE_GLOBAL_HASH_MAP 1
31370 _ACEOF
31371
31372  else
31373
31374 cat >>confdefs.h <<\_ACEOF
31375 #define HAVE_GLOBAL_HASH_MAP 0
31376 _ACEOF
31377
31378  fi
31379
31380 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31381 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31382 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31383   echo $ECHO_N "(cached) $ECHO_C" >&6
31384 else
31385
31386   ac_ext=cpp
31387 ac_cpp='$CXXCPP $CPPFLAGS'
31388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31391
31392   cat >conftest.$ac_ext <<_ACEOF
31393 /* confdefs.h.  */
31394 _ACEOF
31395 cat confdefs.h >>conftest.$ac_ext
31396 cat >>conftest.$ac_ext <<_ACEOF
31397 /* end confdefs.h.  */
31398 #include <ext/hash_set>
31399 #ifdef HAVE_NAMESPACES
31400 using namespace std;
31401 #endif
31402 int
31403 main ()
31404 {
31405 hash_set<int> t;
31406   ;
31407   return 0;
31408 }
31409 _ACEOF
31410 rm -f conftest.$ac_objext
31411 if { (ac_try="$ac_compile"
31412 case "(($ac_try" in
31413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414   *) ac_try_echo=$ac_try;;
31415 esac
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417   (eval "$ac_compile") 2>conftest.er1
31418   ac_status=$?
31419   grep -v '^ *+' conftest.er1 >conftest.err
31420   rm -f conftest.er1
31421   cat conftest.err >&5
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); } &&
31424          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31425   { (case "(($ac_try" in
31426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427   *) ac_try_echo=$ac_try;;
31428 esac
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430   (eval "$ac_try") 2>&5
31431   ac_status=$?
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); }; } &&
31434          { ac_try='test -s conftest.$ac_objext'
31435   { (case "(($ac_try" in
31436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437   *) ac_try_echo=$ac_try;;
31438 esac
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440   (eval "$ac_try") 2>&5
31441   ac_status=$?
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); }; }; then
31444   ac_cv_cxx_have_std_ext_hash_set=yes
31445 else
31446   echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449         ac_cv_cxx_have_std_ext_hash_set=no
31450 fi
31451
31452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31453   ac_ext=c
31454 ac_cpp='$CPP $CPPFLAGS'
31455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31458
31459 fi
31460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31461 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31462  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31463  then
31464
31465 cat >>confdefs.h <<\_ACEOF
31466 #define HAVE_STD_EXT_HASH_SET 1
31467 _ACEOF
31468
31469  else
31470
31471 cat >>confdefs.h <<\_ACEOF
31472 #define HAVE_STD_EXT_HASH_SET 0
31473 _ACEOF
31474
31475  fi
31476
31477  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31478 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31479 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31480   echo $ECHO_N "(cached) $ECHO_C" >&6
31481 else
31482
31483   ac_ext=cpp
31484 ac_cpp='$CXXCPP $CPPFLAGS'
31485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31488
31489   cat >conftest.$ac_ext <<_ACEOF
31490 /* confdefs.h.  */
31491 _ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h.  */
31495 #include <ext/hash_set>
31496 #ifdef HAVE_NAMESPACES
31497 using namespace __gnu_cxx;
31498 #endif
31499 int
31500 main ()
31501 {
31502 hash_set<int> t;
31503   ;
31504   return 0;
31505 }
31506 _ACEOF
31507 rm -f conftest.$ac_objext
31508 if { (ac_try="$ac_compile"
31509 case "(($ac_try" in
31510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511   *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514   (eval "$ac_compile") 2>conftest.er1
31515   ac_status=$?
31516   grep -v '^ *+' conftest.er1 >conftest.err
31517   rm -f conftest.er1
31518   cat conftest.err >&5
31519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520   (exit $ac_status); } &&
31521          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31522   { (case "(($ac_try" in
31523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524   *) ac_try_echo=$ac_try;;
31525 esac
31526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527   (eval "$ac_try") 2>&5
31528   ac_status=$?
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); }; } &&
31531          { ac_try='test -s conftest.$ac_objext'
31532   { (case "(($ac_try" in
31533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534   *) ac_try_echo=$ac_try;;
31535 esac
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537   (eval "$ac_try") 2>&5
31538   ac_status=$?
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); }; }; then
31541   ac_cv_cxx_have_gnu_ext_hash_set=yes
31542 else
31543   echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31545
31546         ac_cv_cxx_have_gnu_ext_hash_set=no
31547 fi
31548
31549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31550   ac_ext=c
31551 ac_cpp='$CPP $CPPFLAGS'
31552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31555
31556 fi
31557 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31558 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31559  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31560  then
31561
31562 cat >>confdefs.h <<\_ACEOF
31563 #define HAVE_GNU_EXT_HASH_SET 1
31564 _ACEOF
31565
31566  else
31567
31568 cat >>confdefs.h <<\_ACEOF
31569 #define HAVE_GNU_EXT_HASH_SET 0
31570 _ACEOF
31571
31572  fi
31573
31574  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31575 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31576 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31577   echo $ECHO_N "(cached) $ECHO_C" >&6
31578 else
31579
31580   ac_ext=cpp
31581 ac_cpp='$CXXCPP $CPPFLAGS'
31582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31585
31586   cat >conftest.$ac_ext <<_ACEOF
31587 /* confdefs.h.  */
31588 _ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h.  */
31592 #include <hash_set>
31593 int
31594 main ()
31595 {
31596 hash_set<int> t; return 0;
31597   ;
31598   return 0;
31599 }
31600 _ACEOF
31601 rm -f conftest.$ac_objext
31602 if { (ac_try="$ac_compile"
31603 case "(($ac_try" in
31604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605   *) ac_try_echo=$ac_try;;
31606 esac
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608   (eval "$ac_compile") 2>conftest.er1
31609   ac_status=$?
31610   grep -v '^ *+' conftest.er1 >conftest.err
31611   rm -f conftest.er1
31612   cat conftest.err >&5
31613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614   (exit $ac_status); } &&
31615          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31616   { (case "(($ac_try" in
31617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618   *) ac_try_echo=$ac_try;;
31619 esac
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621   (eval "$ac_try") 2>&5
31622   ac_status=$?
31623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624   (exit $ac_status); }; } &&
31625          { ac_try='test -s conftest.$ac_objext'
31626   { (case "(($ac_try" in
31627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31628   *) ac_try_echo=$ac_try;;
31629 esac
31630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31631   (eval "$ac_try") 2>&5
31632   ac_status=$?
31633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634   (exit $ac_status); }; }; then
31635   ac_cv_cxx_have_global_hash_set=yes
31636 else
31637   echo "$as_me: failed program was:" >&5
31638 sed 's/^/| /' conftest.$ac_ext >&5
31639
31640         ac_cv_cxx_have_global_hash_set=no
31641 fi
31642
31643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31644   ac_ext=c
31645 ac_cpp='$CPP $CPPFLAGS'
31646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31649
31650 fi
31651 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31652 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31653  if test "$ac_cv_cxx_have_global_hash_set" = yes
31654  then
31655
31656 cat >>confdefs.h <<\_ACEOF
31657 #define HAVE_GLOBAL_HASH_SET 1
31658 _ACEOF
31659
31660  else
31661
31662 cat >>confdefs.h <<\_ACEOF
31663 #define HAVE_GLOBAL_HASH_SET 0
31664 _ACEOF
31665
31666  fi
31667
31668 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31669 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31670 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31671   echo $ECHO_N "(cached) $ECHO_C" >&6
31672 else
31673
31674   ac_ext=cpp
31675 ac_cpp='$CXXCPP $CPPFLAGS'
31676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31679
31680   cat >conftest.$ac_ext <<_ACEOF
31681 /* confdefs.h.  */
31682 _ACEOF
31683 cat confdefs.h >>conftest.$ac_ext
31684 cat >>conftest.$ac_ext <<_ACEOF
31685 /* end confdefs.h.  */
31686 #include <iterator>
31687 #ifdef HAVE_NAMESPACES
31688 using namespace std;
31689 #endif
31690 int
31691 main ()
31692 {
31693 iterator<int,int,int> t; return 0;
31694   ;
31695   return 0;
31696 }
31697 _ACEOF
31698 rm -f conftest.$ac_objext
31699 if { (ac_try="$ac_compile"
31700 case "(($ac_try" in
31701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702   *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705   (eval "$ac_compile") 2>conftest.er1
31706   ac_status=$?
31707   grep -v '^ *+' conftest.er1 >conftest.err
31708   rm -f conftest.er1
31709   cat conftest.err >&5
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); } &&
31712          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31713   { (case "(($ac_try" in
31714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715   *) ac_try_echo=$ac_try;;
31716 esac
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718   (eval "$ac_try") 2>&5
31719   ac_status=$?
31720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721   (exit $ac_status); }; } &&
31722          { ac_try='test -s conftest.$ac_objext'
31723   { (case "(($ac_try" in
31724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725   *) ac_try_echo=$ac_try;;
31726 esac
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728   (eval "$ac_try") 2>&5
31729   ac_status=$?
31730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731   (exit $ac_status); }; }; then
31732   ac_cv_cxx_have_std_iterator=yes
31733 else
31734   echo "$as_me: failed program was:" >&5
31735 sed 's/^/| /' conftest.$ac_ext >&5
31736
31737         ac_cv_cxx_have_std_iterator=no
31738 fi
31739
31740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31741   ac_ext=c
31742 ac_cpp='$CPP $CPPFLAGS'
31743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31746
31747
31748 fi
31749 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31750 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31751 if test "$ac_cv_cxx_have_std_iterator" = yes
31752 then
31753
31754 cat >>confdefs.h <<\_ACEOF
31755 #define HAVE_STD_ITERATOR 1
31756 _ACEOF
31757
31758 else
31759
31760 cat >>confdefs.h <<\_ACEOF
31761 #define HAVE_STD_ITERATOR 0
31762 _ACEOF
31763
31764 fi
31765
31766 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31767 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31768 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31769   echo $ECHO_N "(cached) $ECHO_C" >&6
31770 else
31771
31772   ac_ext=cpp
31773 ac_cpp='$CXXCPP $CPPFLAGS'
31774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31777
31778   cat >conftest.$ac_ext <<_ACEOF
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784 #include <iterator>
31785 #ifdef HAVE_NAMESPACES
31786 using namespace std;
31787 #endif
31788 int
31789 main ()
31790 {
31791 bidirectional_iterator<int,int> t; return 0;
31792   ;
31793   return 0;
31794 }
31795 _ACEOF
31796 rm -f conftest.$ac_objext
31797 if { (ac_try="$ac_compile"
31798 case "(($ac_try" in
31799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800   *) ac_try_echo=$ac_try;;
31801 esac
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803   (eval "$ac_compile") 2>conftest.er1
31804   ac_status=$?
31805   grep -v '^ *+' conftest.er1 >conftest.err
31806   rm -f conftest.er1
31807   cat conftest.err >&5
31808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809   (exit $ac_status); } &&
31810          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
31820          { ac_try='test -s conftest.$ac_objext'
31821   { (case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_try") 2>&5
31827   ac_status=$?
31828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829   (exit $ac_status); }; }; then
31830   ac_cv_cxx_have_bi_iterator=yes
31831 else
31832   echo "$as_me: failed program was:" >&5
31833 sed 's/^/| /' conftest.$ac_ext >&5
31834
31835         ac_cv_cxx_have_bi_iterator=no
31836 fi
31837
31838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31839   ac_ext=c
31840 ac_cpp='$CPP $CPPFLAGS'
31841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31844
31845
31846 fi
31847 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31848 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31849 if test "$ac_cv_cxx_have_bi_iterator" = yes
31850 then
31851
31852 cat >>confdefs.h <<\_ACEOF
31853 #define HAVE_BI_ITERATOR 1
31854 _ACEOF
31855
31856 else
31857
31858 cat >>confdefs.h <<\_ACEOF
31859 #define HAVE_BI_ITERATOR 0
31860 _ACEOF
31861
31862 fi
31863
31864 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31865 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31866 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31867   echo $ECHO_N "(cached) $ECHO_C" >&6
31868 else
31869
31870   ac_ext=cpp
31871 ac_cpp='$CXXCPP $CPPFLAGS'
31872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31875
31876   cat >conftest.$ac_ext <<_ACEOF
31877 /* confdefs.h.  */
31878 _ACEOF
31879 cat confdefs.h >>conftest.$ac_ext
31880 cat >>conftest.$ac_ext <<_ACEOF
31881 /* end confdefs.h.  */
31882 #include <iterator>
31883 #ifdef HAVE_NAMESPACES
31884 using namespace std;
31885 #endif
31886 int
31887 main ()
31888 {
31889 forward_iterator<int,int> t; return 0;
31890   ;
31891   return 0;
31892 }
31893 _ACEOF
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31902   ac_status=$?
31903   grep -v '^ *+' conftest.er1 >conftest.err
31904   rm -f conftest.er1
31905   cat conftest.err >&5
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); } &&
31908          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31909   { (case "(($ac_try" in
31910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911   *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914   (eval "$ac_try") 2>&5
31915   ac_status=$?
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); }; } &&
31918          { ac_try='test -s conftest.$ac_objext'
31919   { (case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_try") 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); }; }; then
31928   ac_cv_cxx_have_fwd_iterator=yes
31929 else
31930   echo "$as_me: failed program was:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31932
31933         ac_cv_cxx_have_fwd_iterator=no
31934 fi
31935
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31937   ac_ext=c
31938 ac_cpp='$CPP $CPPFLAGS'
31939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31942
31943
31944 fi
31945 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31946 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31947 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31948 then
31949
31950 cat >>confdefs.h <<\_ACEOF
31951 #define HAVE_FWD_ITERATOR 1
31952 _ACEOF
31953
31954 else
31955
31956 cat >>confdefs.h <<\_ACEOF
31957 #define HAVE_FWD_ITERATOR 0
31958 _ACEOF
31959
31960 fi
31961
31962
31963 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31964 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31965 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31966   echo $ECHO_N "(cached) $ECHO_C" >&6
31967 else
31968   ac_ext=cpp
31969 ac_cpp='$CXXCPP $CPPFLAGS'
31970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31973
31974    cat >conftest.$ac_ext <<_ACEOF
31975 /* confdefs.h.  */
31976 _ACEOF
31977 cat confdefs.h >>conftest.$ac_ext
31978 cat >>conftest.$ac_ext <<_ACEOF
31979 /* end confdefs.h.  */
31980 #include <math.h>
31981 int
31982 main ()
31983 {
31984 float f; isnan(f);
31985   ;
31986   return 0;
31987 }
31988 _ACEOF
31989 rm -f conftest.$ac_objext
31990 if { (ac_try="$ac_compile"
31991 case "(($ac_try" in
31992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993   *) ac_try_echo=$ac_try;;
31994 esac
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996   (eval "$ac_compile") 2>conftest.er1
31997   ac_status=$?
31998   grep -v '^ *+' conftest.er1 >conftest.err
31999   rm -f conftest.er1
32000   cat conftest.err >&5
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); } &&
32003          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32004   { (case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009   (eval "$ac_try") 2>&5
32010   ac_status=$?
32011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012   (exit $ac_status); }; } &&
32013          { ac_try='test -s conftest.$ac_objext'
32014   { (case "(($ac_try" in
32015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016   *) ac_try_echo=$ac_try;;
32017 esac
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019   (eval "$ac_try") 2>&5
32020   ac_status=$?
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); }; }; then
32023   ac_cv_func_isnan_in_math_h=yes
32024 else
32025   echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32027
32028         ac_cv_func_isnan_in_math_h=no
32029 fi
32030
32031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32032   ac_ext=c
32033 ac_cpp='$CPP $CPPFLAGS'
32034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32037
32038 fi
32039 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32040 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32041
32042
32043 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32044
32045 cat >>confdefs.h <<\_ACEOF
32046 #define HAVE_ISNAN_IN_MATH_H 1
32047 _ACEOF
32048
32049 fi
32050
32051 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32052 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32053 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32054   echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32056   ac_ext=cpp
32057 ac_cpp='$CXXCPP $CPPFLAGS'
32058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32061
32062    cat >conftest.$ac_ext <<_ACEOF
32063 /* confdefs.h.  */
32064 _ACEOF
32065 cat confdefs.h >>conftest.$ac_ext
32066 cat >>conftest.$ac_ext <<_ACEOF
32067 /* end confdefs.h.  */
32068 #include <cmath>
32069 int
32070 main ()
32071 {
32072 float f; isnan(f);
32073   ;
32074   return 0;
32075 }
32076 _ACEOF
32077 rm -f conftest.$ac_objext
32078 if { (ac_try="$ac_compile"
32079 case "(($ac_try" in
32080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081   *) ac_try_echo=$ac_try;;
32082 esac
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084   (eval "$ac_compile") 2>conftest.er1
32085   ac_status=$?
32086   grep -v '^ *+' conftest.er1 >conftest.err
32087   rm -f conftest.er1
32088   cat conftest.err >&5
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); } &&
32091          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32092   { (case "(($ac_try" in
32093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094   *) ac_try_echo=$ac_try;;
32095 esac
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097   (eval "$ac_try") 2>&5
32098   ac_status=$?
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); }; } &&
32101          { ac_try='test -s conftest.$ac_objext'
32102   { (case "(($ac_try" in
32103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32104   *) ac_try_echo=$ac_try;;
32105 esac
32106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32107   (eval "$ac_try") 2>&5
32108   ac_status=$?
32109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110   (exit $ac_status); }; }; then
32111   ac_cv_func_isnan_in_cmath=yes
32112 else
32113   echo "$as_me: failed program was:" >&5
32114 sed 's/^/| /' conftest.$ac_ext >&5
32115
32116         ac_cv_func_isnan_in_cmath=no
32117 fi
32118
32119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32120   ac_ext=c
32121 ac_cpp='$CPP $CPPFLAGS'
32122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32125
32126 fi
32127 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32128 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32129
32130 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32131
32132 cat >>confdefs.h <<\_ACEOF
32133 #define HAVE_ISNAN_IN_CMATH 1
32134 _ACEOF
32135
32136 fi
32137
32138 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32139 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32140 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32141   echo $ECHO_N "(cached) $ECHO_C" >&6
32142 else
32143   ac_ext=cpp
32144 ac_cpp='$CXXCPP $CPPFLAGS'
32145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32148
32149    cat >conftest.$ac_ext <<_ACEOF
32150 /* confdefs.h.  */
32151 _ACEOF
32152 cat confdefs.h >>conftest.$ac_ext
32153 cat >>conftest.$ac_ext <<_ACEOF
32154 /* end confdefs.h.  */
32155 #include <cmath>
32156 int
32157 main ()
32158 {
32159 float f; std::isnan(f);
32160   ;
32161   return 0;
32162 }
32163 _ACEOF
32164 rm -f conftest.$ac_objext
32165 if { (ac_try="$ac_compile"
32166 case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171   (eval "$ac_compile") 2>conftest.er1
32172   ac_status=$?
32173   grep -v '^ *+' conftest.er1 >conftest.err
32174   rm -f conftest.er1
32175   cat conftest.err >&5
32176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177   (exit $ac_status); } &&
32178          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32179   { (case "(($ac_try" in
32180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181   *) ac_try_echo=$ac_try;;
32182 esac
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184   (eval "$ac_try") 2>&5
32185   ac_status=$?
32186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187   (exit $ac_status); }; } &&
32188          { ac_try='test -s conftest.$ac_objext'
32189   { (case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194   (eval "$ac_try") 2>&5
32195   ac_status=$?
32196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197   (exit $ac_status); }; }; then
32198   ac_cv_func_std_isnan_in_cmath=yes
32199 else
32200   echo "$as_me: failed program was:" >&5
32201 sed 's/^/| /' conftest.$ac_ext >&5
32202
32203         ac_cv_func_std_isnan_in_cmath=no
32204 fi
32205
32206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32207   ac_ext=c
32208 ac_cpp='$CPP $CPPFLAGS'
32209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32212
32213 fi
32214 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32215 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32216
32217 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32218
32219 cat >>confdefs.h <<\_ACEOF
32220 #define HAVE_STD_ISNAN_IN_CMATH 1
32221 _ACEOF
32222
32223 fi
32224
32225
32226 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32227 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32228 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32229   echo $ECHO_N "(cached) $ECHO_C" >&6
32230 else
32231   ac_ext=cpp
32232 ac_cpp='$CXXCPP $CPPFLAGS'
32233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32236
32237    cat >conftest.$ac_ext <<_ACEOF
32238 /* confdefs.h.  */
32239 _ACEOF
32240 cat confdefs.h >>conftest.$ac_ext
32241 cat >>conftest.$ac_ext <<_ACEOF
32242 /* end confdefs.h.  */
32243 #include <math.h>
32244 int
32245 main ()
32246 {
32247 float f; isinf(f);
32248   ;
32249   return 0;
32250 }
32251 _ACEOF
32252 rm -f conftest.$ac_objext
32253 if { (ac_try="$ac_compile"
32254 case "(($ac_try" in
32255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32256   *) ac_try_echo=$ac_try;;
32257 esac
32258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259   (eval "$ac_compile") 2>conftest.er1
32260   ac_status=$?
32261   grep -v '^ *+' conftest.er1 >conftest.err
32262   rm -f conftest.er1
32263   cat conftest.err >&5
32264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265   (exit $ac_status); } &&
32266          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32267   { (case "(($ac_try" in
32268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269   *) ac_try_echo=$ac_try;;
32270 esac
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272   (eval "$ac_try") 2>&5
32273   ac_status=$?
32274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275   (exit $ac_status); }; } &&
32276          { ac_try='test -s conftest.$ac_objext'
32277   { (case "(($ac_try" in
32278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279   *) ac_try_echo=$ac_try;;
32280 esac
32281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282   (eval "$ac_try") 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; }; then
32286   ac_cv_func_isinf_in_math_h=yes
32287 else
32288   echo "$as_me: failed program was:" >&5
32289 sed 's/^/| /' conftest.$ac_ext >&5
32290
32291         ac_cv_func_isinf_in_math_h=no
32292 fi
32293
32294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32295   ac_ext=c
32296 ac_cpp='$CPP $CPPFLAGS'
32297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32300
32301 fi
32302 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32303 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32304
32305 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32306
32307 cat >>confdefs.h <<\_ACEOF
32308 #define HAVE_ISINF_IN_MATH_H 1
32309 _ACEOF
32310
32311 fi
32312
32313 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32314 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32315 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32316   echo $ECHO_N "(cached) $ECHO_C" >&6
32317 else
32318   ac_ext=cpp
32319 ac_cpp='$CXXCPP $CPPFLAGS'
32320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32323
32324    cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330 #include <cmath>
32331 int
32332 main ()
32333 {
32334 float f; isinf(f);
32335   ;
32336   return 0;
32337 }
32338 _ACEOF
32339 rm -f conftest.$ac_objext
32340 if { (ac_try="$ac_compile"
32341 case "(($ac_try" in
32342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343   *) ac_try_echo=$ac_try;;
32344 esac
32345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346   (eval "$ac_compile") 2>conftest.er1
32347   ac_status=$?
32348   grep -v '^ *+' conftest.er1 >conftest.err
32349   rm -f conftest.er1
32350   cat conftest.err >&5
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); } &&
32353          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32354   { (case "(($ac_try" in
32355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356   *) ac_try_echo=$ac_try;;
32357 esac
32358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359   (eval "$ac_try") 2>&5
32360   ac_status=$?
32361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362   (exit $ac_status); }; } &&
32363          { ac_try='test -s conftest.$ac_objext'
32364   { (case "(($ac_try" in
32365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366   *) ac_try_echo=$ac_try;;
32367 esac
32368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369   (eval "$ac_try") 2>&5
32370   ac_status=$?
32371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372   (exit $ac_status); }; }; then
32373   ac_cv_func_isinf_in_cmath=yes
32374 else
32375   echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32377
32378         ac_cv_func_isinf_in_cmath=no
32379 fi
32380
32381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32382   ac_ext=c
32383 ac_cpp='$CPP $CPPFLAGS'
32384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32387
32388 fi
32389 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32390 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32391
32392 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32393
32394 cat >>confdefs.h <<\_ACEOF
32395 #define HAVE_ISINF_IN_CMATH 1
32396 _ACEOF
32397
32398 fi
32399
32400 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32401 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32402 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32403   echo $ECHO_N "(cached) $ECHO_C" >&6
32404 else
32405   ac_ext=cpp
32406 ac_cpp='$CXXCPP $CPPFLAGS'
32407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32410
32411    cat >conftest.$ac_ext <<_ACEOF
32412 /* confdefs.h.  */
32413 _ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h.  */
32417 #include <cmath>
32418 int
32419 main ()
32420 {
32421 float f; std::isinf(f)}
32422   ;
32423   return 0;
32424 }
32425 _ACEOF
32426 rm -f conftest.$ac_objext
32427 if { (ac_try="$ac_compile"
32428 case "(($ac_try" in
32429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430   *) ac_try_echo=$ac_try;;
32431 esac
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433   (eval "$ac_compile") 2>conftest.er1
32434   ac_status=$?
32435   grep -v '^ *+' conftest.er1 >conftest.err
32436   rm -f conftest.er1
32437   cat conftest.err >&5
32438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439   (exit $ac_status); } &&
32440          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32441   { (case "(($ac_try" in
32442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32443   *) ac_try_echo=$ac_try;;
32444 esac
32445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32446   (eval "$ac_try") 2>&5
32447   ac_status=$?
32448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449   (exit $ac_status); }; } &&
32450          { ac_try='test -s conftest.$ac_objext'
32451   { (case "(($ac_try" in
32452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453   *) ac_try_echo=$ac_try;;
32454 esac
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456   (eval "$ac_try") 2>&5
32457   ac_status=$?
32458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459   (exit $ac_status); }; }; then
32460   ac_cv_func_std_isinf_in_cmath=yes
32461 else
32462   echo "$as_me: failed program was:" >&5
32463 sed 's/^/| /' conftest.$ac_ext >&5
32464
32465         ac_cv_func_std_isinf_in_cmath=no
32466 fi
32467
32468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32469   ac_ext=c
32470 ac_cpp='$CPP $CPPFLAGS'
32471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32474
32475 fi
32476 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32477 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32478
32479 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32480
32481 cat >>confdefs.h <<\_ACEOF
32482 #define HAVE_STD_ISINF_IN_CMATH 1
32483 _ACEOF
32484
32485 fi
32486
32487 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32488 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32489 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32490   echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492   ac_ext=cpp
32493 ac_cpp='$CXXCPP $CPPFLAGS'
32494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32497
32498    cat >conftest.$ac_ext <<_ACEOF
32499 /* confdefs.h.  */
32500 _ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h.  */
32504 #include <ieeefp.h>
32505 int
32506 main ()
32507 {
32508 float f; finite(f);
32509   ;
32510   return 0;
32511 }
32512 _ACEOF
32513 rm -f conftest.$ac_objext
32514 if { (ac_try="$ac_compile"
32515 case "(($ac_try" in
32516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517   *) ac_try_echo=$ac_try;;
32518 esac
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520   (eval "$ac_compile") 2>conftest.er1
32521   ac_status=$?
32522   grep -v '^ *+' conftest.er1 >conftest.err
32523   rm -f conftest.er1
32524   cat conftest.err >&5
32525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526   (exit $ac_status); } &&
32527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528   { (case "(($ac_try" in
32529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530   *) ac_try_echo=$ac_try;;
32531 esac
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533   (eval "$ac_try") 2>&5
32534   ac_status=$?
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); }; } &&
32537          { ac_try='test -s conftest.$ac_objext'
32538   { (case "(($ac_try" in
32539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540   *) ac_try_echo=$ac_try;;
32541 esac
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543   (eval "$ac_try") 2>&5
32544   ac_status=$?
32545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546   (exit $ac_status); }; }; then
32547   ac_cv_func_finite_in_ieeefp_h=yes
32548 else
32549   echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32551
32552         ac_cv_func_finite_in_ieeefp_h=no
32553 fi
32554
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32556   ac_ext=c
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562 fi
32563 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32564 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32565
32566 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32567
32568 cat >>confdefs.h <<\_ACEOF
32569 #define HAVE_FINITE_IN_IEEEFP_H 1
32570 _ACEOF
32571
32572 fi
32573
32574
32575
32576
32577
32578 for ac_header in stdlib.h unistd.h
32579 do
32580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32582   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 fi
32587 ac_res=`eval echo '${'$as_ac_Header'}'`
32588                { echo "$as_me:$LINENO: result: $ac_res" >&5
32589 echo "${ECHO_T}$ac_res" >&6; }
32590 else
32591   # Is the header compilable?
32592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32594 cat >conftest.$ac_ext <<_ACEOF
32595 /* confdefs.h.  */
32596 _ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h.  */
32600 $ac_includes_default
32601 #include <$ac_header>
32602 _ACEOF
32603 rm -f conftest.$ac_objext
32604 if { (ac_try="$ac_compile"
32605 case "(($ac_try" in
32606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607   *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610   (eval "$ac_compile") 2>conftest.er1
32611   ac_status=$?
32612   grep -v '^ *+' conftest.er1 >conftest.err
32613   rm -f conftest.er1
32614   cat conftest.err >&5
32615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616   (exit $ac_status); } &&
32617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32618   { (case "(($ac_try" in
32619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32620   *) ac_try_echo=$ac_try;;
32621 esac
32622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32623   (eval "$ac_try") 2>&5
32624   ac_status=$?
32625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626   (exit $ac_status); }; } &&
32627          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32634   ac_status=$?
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); }; }; then
32637   ac_header_compiler=yes
32638 else
32639   echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32641
32642         ac_header_compiler=no
32643 fi
32644
32645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32647 echo "${ECHO_T}$ac_header_compiler" >&6; }
32648
32649 # Is the header present?
32650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32652 cat >conftest.$ac_ext <<_ACEOF
32653 /* confdefs.h.  */
32654 _ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h.  */
32658 #include <$ac_header>
32659 _ACEOF
32660 if { (ac_try="$ac_cpp conftest.$ac_ext"
32661 case "(($ac_try" in
32662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663   *) ac_try_echo=$ac_try;;
32664 esac
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32667   ac_status=$?
32668   grep -v '^ *+' conftest.er1 >conftest.err
32669   rm -f conftest.er1
32670   cat conftest.err >&5
32671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672   (exit $ac_status); } >/dev/null; then
32673   if test -s conftest.err; then
32674     ac_cpp_err=$ac_c_preproc_warn_flag
32675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32676   else
32677     ac_cpp_err=
32678   fi
32679 else
32680   ac_cpp_err=yes
32681 fi
32682 if test -z "$ac_cpp_err"; then
32683   ac_header_preproc=yes
32684 else
32685   echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32687
32688   ac_header_preproc=no
32689 fi
32690
32691 rm -f conftest.err conftest.$ac_ext
32692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32693 echo "${ECHO_T}$ac_header_preproc" >&6; }
32694
32695 # So?  What about this header?
32696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32697   yes:no: )
32698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32702     ac_header_preproc=yes
32703     ;;
32704   no:yes:* )
32705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32717     ( cat <<\_ASBOX
32718 ## ----------------------------------- ##
32719 ## Report this to llvmbugs@cs.uiuc.edu ##
32720 ## ----------------------------------- ##
32721 _ASBOX
32722      ) | sed "s/^/$as_me: WARNING:     /" >&2
32723     ;;
32724 esac
32725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32728   echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730   eval "$as_ac_Header=\$ac_header_preproc"
32731 fi
32732 ac_res=`eval echo '${'$as_ac_Header'}'`
32733                { echo "$as_me:$LINENO: result: $ac_res" >&5
32734 echo "${ECHO_T}$ac_res" >&6; }
32735
32736 fi
32737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32738   cat >>confdefs.h <<_ACEOF
32739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32740 _ACEOF
32741
32742 fi
32743
32744 done
32745
32746
32747 for ac_func in getpagesize
32748 do
32749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32753   echo $ECHO_N "(cached) $ECHO_C" >&6
32754 else
32755   cat >conftest.$ac_ext <<_ACEOF
32756 /* confdefs.h.  */
32757 _ACEOF
32758 cat confdefs.h >>conftest.$ac_ext
32759 cat >>conftest.$ac_ext <<_ACEOF
32760 /* end confdefs.h.  */
32761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32763 #define $ac_func innocuous_$ac_func
32764
32765 /* System header to define __stub macros and hopefully few prototypes,
32766     which can conflict with char $ac_func (); below.
32767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32768     <limits.h> exists even on freestanding compilers.  */
32769
32770 #ifdef __STDC__
32771 # include <limits.h>
32772 #else
32773 # include <assert.h>
32774 #endif
32775
32776 #undef $ac_func
32777
32778 /* Override any GCC internal prototype to avoid an error.
32779    Use char because int might match the return type of a GCC
32780    builtin and then its argument prototype would still apply.  */
32781 #ifdef __cplusplus
32782 extern "C"
32783 #endif
32784 char $ac_func ();
32785 /* The GNU C library defines this for functions which it implements
32786     to always fail with ENOSYS.  Some functions are actually named
32787     something starting with __ and the normal name is an alias.  */
32788 #if defined __stub_$ac_func || defined __stub___$ac_func
32789 choke me
32790 #endif
32791
32792 int
32793 main ()
32794 {
32795 return $ac_func ();
32796   ;
32797   return 0;
32798 }
32799 _ACEOF
32800 rm -f conftest.$ac_objext conftest$ac_exeext
32801 if { (ac_try="$ac_link"
32802 case "(($ac_try" in
32803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804   *) ac_try_echo=$ac_try;;
32805 esac
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807   (eval "$ac_link") 2>conftest.er1
32808   ac_status=$?
32809   grep -v '^ *+' conftest.er1 >conftest.err
32810   rm -f conftest.er1
32811   cat conftest.err >&5
32812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813   (exit $ac_status); } &&
32814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32815   { (case "(($ac_try" in
32816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817   *) ac_try_echo=$ac_try;;
32818 esac
32819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820   (eval "$ac_try") 2>&5
32821   ac_status=$?
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); }; } &&
32824          { ac_try='test -s conftest$ac_exeext'
32825   { (case "(($ac_try" in
32826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827   *) ac_try_echo=$ac_try;;
32828 esac
32829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830   (eval "$ac_try") 2>&5
32831   ac_status=$?
32832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833   (exit $ac_status); }; }; then
32834   eval "$as_ac_var=yes"
32835 else
32836   echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32838
32839         eval "$as_ac_var=no"
32840 fi
32841
32842 rm -f core conftest.err conftest.$ac_objext \
32843       conftest$ac_exeext conftest.$ac_ext
32844 fi
32845 ac_res=`eval echo '${'$as_ac_var'}'`
32846                { echo "$as_me:$LINENO: result: $ac_res" >&5
32847 echo "${ECHO_T}$ac_res" >&6; }
32848 if test `eval echo '${'$as_ac_var'}'` = yes; then
32849   cat >>confdefs.h <<_ACEOF
32850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32851 _ACEOF
32852
32853 fi
32854 done
32855
32856 { echo "$as_me:$LINENO: checking for working mmap" >&5
32857 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32859   echo $ECHO_N "(cached) $ECHO_C" >&6
32860 else
32861   if test "$cross_compiling" = yes; then
32862   ac_cv_func_mmap_fixed_mapped=no
32863 else
32864   cat >conftest.$ac_ext <<_ACEOF
32865 /* confdefs.h.  */
32866 _ACEOF
32867 cat confdefs.h >>conftest.$ac_ext
32868 cat >>conftest.$ac_ext <<_ACEOF
32869 /* end confdefs.h.  */
32870 $ac_includes_default
32871 /* malloc might have been renamed as rpl_malloc. */
32872 #undef malloc
32873
32874 /* Thanks to Mike Haertel and Jim Avera for this test.
32875    Here is a matrix of mmap possibilities:
32876         mmap private not fixed
32877         mmap private fixed at somewhere currently unmapped
32878         mmap private fixed at somewhere already mapped
32879         mmap shared not fixed
32880         mmap shared fixed at somewhere currently unmapped
32881         mmap shared fixed at somewhere already mapped
32882    For private mappings, we should verify that changes cannot be read()
32883    back from the file, nor mmap's back from the file at a different
32884    address.  (There have been systems where private was not correctly
32885    implemented like the infamous i386 svr4.0, and systems where the
32886    VM page cache was not coherent with the file system buffer cache
32887    like early versions of FreeBSD and possibly contemporary NetBSD.)
32888    For shared mappings, we should conversely verify that changes get
32889    propagated back to all the places they're supposed to be.
32890
32891    Grep wants private fixed already mapped.
32892    The main things grep needs to know about mmap are:
32893    * does it exist and is it safe to write into the mmap'd area
32894    * how to use it (BSD variants)  */
32895
32896 #include <fcntl.h>
32897 #include <sys/mman.h>
32898
32899 #if !STDC_HEADERS && !HAVE_STDLIB_H
32900 char *malloc ();
32901 #endif
32902
32903 /* This mess was copied from the GNU getpagesize.h.  */
32904 #if !HAVE_GETPAGESIZE
32905 /* Assume that all systems that can run configure have sys/param.h.  */
32906 # if !HAVE_SYS_PARAM_H
32907 #  define HAVE_SYS_PARAM_H 1
32908 # endif
32909
32910 # ifdef _SC_PAGESIZE
32911 #  define getpagesize() sysconf(_SC_PAGESIZE)
32912 # else /* no _SC_PAGESIZE */
32913 #  if HAVE_SYS_PARAM_H
32914 #   include <sys/param.h>
32915 #   ifdef EXEC_PAGESIZE
32916 #    define getpagesize() EXEC_PAGESIZE
32917 #   else /* no EXEC_PAGESIZE */
32918 #    ifdef NBPG
32919 #     define getpagesize() NBPG * CLSIZE
32920 #     ifndef CLSIZE
32921 #      define CLSIZE 1
32922 #     endif /* no CLSIZE */
32923 #    else /* no NBPG */
32924 #     ifdef NBPC
32925 #      define getpagesize() NBPC
32926 #     else /* no NBPC */
32927 #      ifdef PAGESIZE
32928 #       define getpagesize() PAGESIZE
32929 #      endif /* PAGESIZE */
32930 #     endif /* no NBPC */
32931 #    endif /* no NBPG */
32932 #   endif /* no EXEC_PAGESIZE */
32933 #  else /* no HAVE_SYS_PARAM_H */
32934 #   define getpagesize() 8192   /* punt totally */
32935 #  endif /* no HAVE_SYS_PARAM_H */
32936 # endif /* no _SC_PAGESIZE */
32937
32938 #endif /* no HAVE_GETPAGESIZE */
32939
32940 int
32941 main ()
32942 {
32943   char *data, *data2, *data3;
32944   int i, pagesize;
32945   int fd;
32946
32947   pagesize = getpagesize ();
32948
32949   /* First, make a file with some known garbage in it. */
32950   data = (char *) malloc (pagesize);
32951   if (!data)
32952     return 1;
32953   for (i = 0; i < pagesize; ++i)
32954     *(data + i) = rand ();
32955   umask (0);
32956   fd = creat ("conftest.mmap", 0600);
32957   if (fd < 0)
32958     return 1;
32959   if (write (fd, data, pagesize) != pagesize)
32960     return 1;
32961   close (fd);
32962
32963   /* Next, try to mmap the file at a fixed address which already has
32964      something else allocated at it.  If we can, also make sure that
32965      we see the same garbage.  */
32966   fd = open ("conftest.mmap", O_RDWR);
32967   if (fd < 0)
32968     return 1;
32969   data2 = (char *) malloc (2 * pagesize);
32970   if (!data2)
32971     return 1;
32972   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32973   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32974                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
32975     return 1;
32976   for (i = 0; i < pagesize; ++i)
32977     if (*(data + i) != *(data2 + i))
32978       return 1;
32979
32980   /* Finally, make sure that changes to the mapped area do not
32981      percolate back to the file as seen by read().  (This is a bug on
32982      some variants of i386 svr4.0.)  */
32983   for (i = 0; i < pagesize; ++i)
32984     *(data2 + i) = *(data2 + i) + 1;
32985   data3 = (char *) malloc (pagesize);
32986   if (!data3)
32987     return 1;
32988   if (read (fd, data3, pagesize) != pagesize)
32989     return 1;
32990   for (i = 0; i < pagesize; ++i)
32991     if (*(data + i) != *(data3 + i))
32992       return 1;
32993   close (fd);
32994   return 0;
32995 }
32996 _ACEOF
32997 rm -f conftest$ac_exeext
32998 if { (ac_try="$ac_link"
32999 case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_link") 2>&5
33005   ac_status=$?
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33008   { (case "(($ac_try" in
33009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010   *) ac_try_echo=$ac_try;;
33011 esac
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013   (eval "$ac_try") 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; }; then
33017   ac_cv_func_mmap_fixed_mapped=yes
33018 else
33019   echo "$as_me: program exited with status $ac_status" >&5
33020 echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023 ( exit $ac_status )
33024 ac_cv_func_mmap_fixed_mapped=no
33025 fi
33026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33027 fi
33028
33029
33030 fi
33031 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33032 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33033 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33034
33035 cat >>confdefs.h <<\_ACEOF
33036 #define HAVE_MMAP 1
33037 _ACEOF
33038
33039 fi
33040 rm -f conftest.mmap
33041
33042 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33043 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33044 if test "${ac_cv_func_mmap_file+set}" = set; then
33045   echo $ECHO_N "(cached) $ECHO_C" >&6
33046 else
33047    ac_ext=c
33048 ac_cpp='$CPP $CPPFLAGS'
33049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33052
33053   if test "$cross_compiling" = yes; then
33054   ac_cv_func_mmap_file=no
33055 else
33056   cat >conftest.$ac_ext <<_ACEOF
33057
33058     /* confdefs.h.  */
33059 _ACEOF
33060 cat confdefs.h >>conftest.$ac_ext
33061 cat >>conftest.$ac_ext <<_ACEOF
33062 /* end confdefs.h.  */
33063
33064 #include <sys/types.h>
33065 #include <sys/mman.h>
33066 #include <fcntl.h>
33067
33068 int
33069 main ()
33070 {
33071
33072   int fd;
33073   fd = creat ("foo",0777);
33074   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33075   unlink ("foo");
33076   return (fd != (int) MAP_FAILED);
33077   ;
33078   return 0;
33079 }
33080 _ACEOF
33081 rm -f conftest$ac_exeext
33082 if { (ac_try="$ac_link"
33083 case "(($ac_try" in
33084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085   *) ac_try_echo=$ac_try;;
33086 esac
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088   (eval "$ac_link") 2>&5
33089   ac_status=$?
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33092   { (case "(($ac_try" in
33093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094   *) ac_try_echo=$ac_try;;
33095 esac
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097   (eval "$ac_try") 2>&5
33098   ac_status=$?
33099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100   (exit $ac_status); }; }; then
33101   ac_cv_func_mmap_file=yes
33102 else
33103   echo "$as_me: program exited with status $ac_status" >&5
33104 echo "$as_me: failed program was:" >&5
33105 sed 's/^/| /' conftest.$ac_ext >&5
33106
33107 ( exit $ac_status )
33108 ac_cv_func_mmap_file=no
33109 fi
33110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33111 fi
33112
33113
33114   ac_ext=c
33115 ac_cpp='$CPP $CPPFLAGS'
33116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33119
33120
33121 fi
33122 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33123 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33124 if test "$ac_cv_func_mmap_file" = yes; then
33125
33126 cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_MMAP_FILE
33128 _ACEOF
33129
33130    MMAP_FILE=yes
33131
33132 fi
33133
33134 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33135 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33136 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33137   echo $ECHO_N "(cached) $ECHO_C" >&6
33138 else
33139   if test "$llvm_cv_os_type" = "Interix" ; then
33140    ac_cv_need_dev_zero_for_mmap=yes
33141  else
33142    ac_cv_need_dev_zero_for_mmap=no
33143  fi
33144
33145 fi
33146 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33147 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33148 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33149
33150 cat >>confdefs.h <<\_ACEOF
33151 #define NEED_DEV_ZERO_FOR_MMAP 1
33152 _ACEOF
33153
33154 fi
33155 { echo "$as_me:$LINENO: checking for mprotect" >&5
33156 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33157 if test "${ac_cv_func_mprotect+set}" = set; then
33158   echo $ECHO_N "(cached) $ECHO_C" >&6
33159 else
33160   cat >conftest.$ac_ext <<_ACEOF
33161 /* confdefs.h.  */
33162 _ACEOF
33163 cat confdefs.h >>conftest.$ac_ext
33164 cat >>conftest.$ac_ext <<_ACEOF
33165 /* end confdefs.h.  */
33166 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33168 #define mprotect innocuous_mprotect
33169
33170 /* System header to define __stub macros and hopefully few prototypes,
33171     which can conflict with char mprotect (); below.
33172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33173     <limits.h> exists even on freestanding compilers.  */
33174
33175 #ifdef __STDC__
33176 # include <limits.h>
33177 #else
33178 # include <assert.h>
33179 #endif
33180
33181 #undef mprotect
33182
33183 /* Override any GCC internal prototype to avoid an error.
33184    Use char because int might match the return type of a GCC
33185    builtin and then its argument prototype would still apply.  */
33186 #ifdef __cplusplus
33187 extern "C"
33188 #endif
33189 char mprotect ();
33190 /* The GNU C library defines this for functions which it implements
33191     to always fail with ENOSYS.  Some functions are actually named
33192     something starting with __ and the normal name is an alias.  */
33193 #if defined __stub_mprotect || defined __stub___mprotect
33194 choke me
33195 #endif
33196
33197 int
33198 main ()
33199 {
33200 return mprotect ();
33201   ;
33202   return 0;
33203 }
33204 _ACEOF
33205 rm -f conftest.$ac_objext conftest$ac_exeext
33206 if { (ac_try="$ac_link"
33207 case "(($ac_try" in
33208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209   *) ac_try_echo=$ac_try;;
33210 esac
33211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212   (eval "$ac_link") 2>conftest.er1
33213   ac_status=$?
33214   grep -v '^ *+' conftest.er1 >conftest.err
33215   rm -f conftest.er1
33216   cat conftest.err >&5
33217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218   (exit $ac_status); } &&
33219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33220   { (case "(($ac_try" in
33221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222   *) ac_try_echo=$ac_try;;
33223 esac
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225   (eval "$ac_try") 2>&5
33226   ac_status=$?
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); }; } &&
33229          { ac_try='test -s conftest$ac_exeext'
33230   { (case "(($ac_try" in
33231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232   *) ac_try_echo=$ac_try;;
33233 esac
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235   (eval "$ac_try") 2>&5
33236   ac_status=$?
33237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238   (exit $ac_status); }; }; then
33239   ac_cv_func_mprotect=yes
33240 else
33241   echo "$as_me: failed program was:" >&5
33242 sed 's/^/| /' conftest.$ac_ext >&5
33243
33244         ac_cv_func_mprotect=no
33245 fi
33246
33247 rm -f core conftest.err conftest.$ac_objext \
33248       conftest$ac_exeext conftest.$ac_ext
33249 fi
33250 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33251 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33252 if test $ac_cv_func_mprotect = yes; then
33253   :
33254 else
33255   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33256 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33257    { (exit 1); exit 1; }; }
33258 fi
33259
33260
33261 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33262 then
33263   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33264 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33265 fi
33266 if test "$ac_cv_func_mmap_file" = "no"
33267 then
33268   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33269 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33270 fi
33271
33272
33273 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33274 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33275 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33276   echo $ECHO_N "(cached) $ECHO_C" >&6
33277 else
33278   llvm_cv_llvmgcc_sanity="no"
33279 if test -x "$LLVMGCC" ; then
33280   cp /dev/null conftest.c
33281   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33282   if test $? -eq 0 ; then
33283     llvm_cv_llvmgcc_sanity="yes"
33284   fi
33285   rm conftest.c
33286 fi
33287 fi
33288 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33289 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33290
33291 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33292   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33293   LLVMCC1=$llvmcc1path
33294
33295   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33296   LLVMCC1PLUS=$llvmcc1pluspath
33297
33298   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33299   LLVMGCCDIR=$llvmgccdir
33300
33301   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33302   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33303   LLVMGCC_VERSION=$llvmgccversion
33304
33305   LLVMGCC_MAJVERS=$llvmgccmajvers
33306
33307 fi
33308
33309 SHLIBEXT=$libltdl_cv_shlibext
33310
33311
33312 # Translate the various configuration directories and other basic
33313 # information into substitutions that will end up in Makefile.config.in
33314 # that these configured values can be used by the makefiles
33315 if test "${prefix}" == "NONE" ; then
33316   prefix="/usr/local"
33317 fi
33318 eval LLVM_PREFIX="${prefix}";
33319 eval LLVM_BINDIR="${prefix}/bin";
33320 eval LLVM_LIBDIR="${prefix}/lib";
33321 eval LLVM_DATADIR="${prefix}/share/llvm";
33322 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33323 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33324 eval LLVM_INCLUDEDIR="${prefix}/include";
33325 eval LLVM_INFODIR="${prefix}/info";
33326 eval LLVM_MANDIR="${prefix}/man";
33327 LLVM_CONFIGTIME=`date`
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339 # Place the various directores into the config.h file as #defines so that we
33340 # can know about the installation paths within LLVM.
33341
33342 cat >>confdefs.h <<_ACEOF
33343 #define LLVM_PREFIX "$LLVM_PREFIX"
33344 _ACEOF
33345
33346
33347 cat >>confdefs.h <<_ACEOF
33348 #define LLVM_BINDIR "$LLVM_BINDIR"
33349 _ACEOF
33350
33351
33352 cat >>confdefs.h <<_ACEOF
33353 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33354 _ACEOF
33355
33356
33357 cat >>confdefs.h <<_ACEOF
33358 #define LLVM_DATADIR "$LLVM_DATADIR"
33359 _ACEOF
33360
33361
33362 cat >>confdefs.h <<_ACEOF
33363 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33364 _ACEOF
33365
33366
33367 cat >>confdefs.h <<_ACEOF
33368 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33369 _ACEOF
33370
33371
33372 cat >>confdefs.h <<_ACEOF
33373 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33374 _ACEOF
33375
33376
33377 cat >>confdefs.h <<_ACEOF
33378 #define LLVM_INFODIR "$LLVM_INFODIR"
33379 _ACEOF
33380
33381
33382 cat >>confdefs.h <<_ACEOF
33383 #define LLVM_MANDIR "$LLVM_MANDIR"
33384 _ACEOF
33385
33386
33387 cat >>confdefs.h <<_ACEOF
33388 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33389 _ACEOF
33390
33391
33392
33393 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33394
33395 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33396
33397 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33398
33399 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33400
33401 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33402
33403
33404 ac_config_files="$ac_config_files Makefile.config"
33405
33406
33407 ac_config_files="$ac_config_files llvm.spec"
33408
33409
33410 ac_config_files="$ac_config_files docs/doxygen.cfg"
33411
33412
33413 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33414
33415
33416 ac_config_commands="$ac_config_commands setup"
33417
33418 ac_config_commands="$ac_config_commands Makefile"
33419
33420
33421 ac_config_commands="$ac_config_commands Makefile.common"
33422
33423
33424 ac_config_commands="$ac_config_commands examples/Makefile"
33425
33426
33427 ac_config_commands="$ac_config_commands lib/Makefile"
33428
33429
33430 ac_config_commands="$ac_config_commands runtime/Makefile"
33431
33432
33433 ac_config_commands="$ac_config_commands test/Makefile"
33434
33435
33436 ac_config_commands="$ac_config_commands test/Makefile.tests"
33437
33438
33439 ac_config_commands="$ac_config_commands tools/Makefile"
33440
33441
33442 ac_config_commands="$ac_config_commands utils/Makefile"
33443
33444
33445 ac_config_commands="$ac_config_commands projects/Makefile"
33446
33447
33448
33449 cat >confcache <<\_ACEOF
33450 # This file is a shell script that caches the results of configure
33451 # tests run on this system so they can be shared between configure
33452 # scripts and configure runs, see configure's option --config-cache.
33453 # It is not useful on other systems.  If it contains results you don't
33454 # want to keep, you may remove or edit it.
33455 #
33456 # config.status only pays attention to the cache file if you give it
33457 # the --recheck option to rerun configure.
33458 #
33459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33461 # following values.
33462
33463 _ACEOF
33464
33465 # The following way of writing the cache mishandles newlines in values,
33466 # but we know of no workaround that is simple, portable, and efficient.
33467 # So, we kill variables containing newlines.
33468 # Ultrix sh set writes to stderr and can't be redirected directly,
33469 # and sets the high bit in the cache file unless we assign to the vars.
33470 (
33471   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33472     eval ac_val=\$$ac_var
33473     case $ac_val in #(
33474     *${as_nl}*)
33475       case $ac_var in #(
33476       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33478       esac
33479       case $ac_var in #(
33480       _ | IFS | as_nl) ;; #(
33481       *) $as_unset $ac_var ;;
33482       esac ;;
33483     esac
33484   done
33485
33486   (set) 2>&1 |
33487     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33488     *${as_nl}ac_space=\ *)
33489       # `set' does not quote correctly, so add quotes (double-quote
33490       # substitution turns \\\\ into \\, and sed turns \\ into \).
33491       sed -n \
33492         "s/'/'\\\\''/g;
33493           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33494       ;; #(
33495     *)
33496       # `set' quotes correctly as required by POSIX, so do not add quotes.
33497       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33498       ;;
33499     esac |
33500     sort
33501 ) |
33502   sed '
33503      /^ac_cv_env_/b end
33504      t clear
33505      :clear
33506      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33507      t end
33508      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33509      :end' >>confcache
33510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33511   if test -w "$cache_file"; then
33512     test "x$cache_file" != "x/dev/null" &&
33513       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33514 echo "$as_me: updating cache $cache_file" >&6;}
33515     cat confcache >$cache_file
33516   else
33517     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33518 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33519   fi
33520 fi
33521 rm -f confcache
33522
33523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33524 # Let make expand exec_prefix.
33525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33526
33527 DEFS=-DHAVE_CONFIG_H
33528
33529 ac_libobjs=
33530 ac_ltlibobjs=
33531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33532   # 1. Remove the extension, and $U if already installed.
33533   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33534   ac_i=`echo "$ac_i" | sed "$ac_script"`
33535   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33536   #    will be set to the directory where LIBOBJS objects are built.
33537   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33538   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33539 done
33540 LIBOBJS=$ac_libobjs
33541
33542 LTLIBOBJS=$ac_ltlibobjs
33543
33544
33545 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33546   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33547 Usually this means the macro was only invoked conditionally." >&5
33548 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33549 Usually this means the macro was only invoked conditionally." >&2;}
33550    { (exit 1); exit 1; }; }
33551 fi
33552 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33553   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33554 Usually this means the macro was only invoked conditionally." >&5
33555 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33556 Usually this means the macro was only invoked conditionally." >&2;}
33557    { (exit 1); exit 1; }; }
33558 fi
33559
33560 : ${CONFIG_STATUS=./config.status}
33561 ac_clean_files_save=$ac_clean_files
33562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33563 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33564 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33565 cat >$CONFIG_STATUS <<_ACEOF
33566 #! $SHELL
33567 # Generated by $as_me.
33568 # Run this file to recreate the current configuration.
33569 # Compiler output produced by configure, useful for debugging
33570 # configure, is in config.log if it exists.
33571
33572 debug=false
33573 ac_cs_recheck=false
33574 ac_cs_silent=false
33575 SHELL=\${CONFIG_SHELL-$SHELL}
33576 _ACEOF
33577
33578 cat >>$CONFIG_STATUS <<\_ACEOF
33579 ## --------------------- ##
33580 ## M4sh Initialization.  ##
33581 ## --------------------- ##
33582
33583 # Be Bourne compatible
33584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33585   emulate sh
33586   NULLCMD=:
33587   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33588   # is contrary to our usage.  Disable this feature.
33589   alias -g '${1+"$@"}'='"$@"'
33590   setopt NO_GLOB_SUBST
33591 else
33592   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33593 fi
33594 BIN_SH=xpg4; export BIN_SH # for Tru64
33595 DUALCASE=1; export DUALCASE # for MKS sh
33596
33597
33598 # PATH needs CR
33599 # Avoid depending upon Character Ranges.
33600 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33601 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33602 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33603 as_cr_digits='0123456789'
33604 as_cr_alnum=$as_cr_Letters$as_cr_digits
33605
33606 # The user is always right.
33607 if test "${PATH_SEPARATOR+set}" != set; then
33608   echo "#! /bin/sh" >conf$$.sh
33609   echo  "exit 0"   >>conf$$.sh
33610   chmod +x conf$$.sh
33611   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33612     PATH_SEPARATOR=';'
33613   else
33614     PATH_SEPARATOR=:
33615   fi
33616   rm -f conf$$.sh
33617 fi
33618
33619 # Support unset when possible.
33620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33621   as_unset=unset
33622 else
33623   as_unset=false
33624 fi
33625
33626
33627 # IFS
33628 # We need space, tab and new line, in precisely that order.  Quoting is
33629 # there to prevent editors from complaining about space-tab.
33630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33631 # splitting by setting IFS to empty value.)
33632 as_nl='
33633 '
33634 IFS=" ""        $as_nl"
33635
33636 # Find who we are.  Look in the path if we contain no directory separator.
33637 case $0 in
33638   *[\\/]* ) as_myself=$0 ;;
33639   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33640 for as_dir in $PATH
33641 do
33642   IFS=$as_save_IFS
33643   test -z "$as_dir" && as_dir=.
33644   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33645 done
33646 IFS=$as_save_IFS
33647
33648      ;;
33649 esac
33650 # We did not find ourselves, most probably we were run as `sh COMMAND'
33651 # in which case we are not to be found in the path.
33652 if test "x$as_myself" = x; then
33653   as_myself=$0
33654 fi
33655 if test ! -f "$as_myself"; then
33656   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33657   { (exit 1); exit 1; }
33658 fi
33659
33660 # Work around bugs in pre-3.0 UWIN ksh.
33661 for as_var in ENV MAIL MAILPATH
33662 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33663 done
33664 PS1='$ '
33665 PS2='> '
33666 PS4='+ '
33667
33668 # NLS nuisances.
33669 for as_var in \
33670   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33671   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33672   LC_TELEPHONE LC_TIME
33673 do
33674   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33675     eval $as_var=C; export $as_var
33676   else
33677     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33678   fi
33679 done
33680
33681 # Required to use basename.
33682 if expr a : '\(a\)' >/dev/null 2>&1 &&
33683    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33684   as_expr=expr
33685 else
33686   as_expr=false
33687 fi
33688
33689 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33690   as_basename=basename
33691 else
33692   as_basename=false
33693 fi
33694
33695
33696 # Name of the executable.
33697 as_me=`$as_basename -- "$0" ||
33698 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33699          X"$0" : 'X\(//\)$' \| \
33700          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33701 echo X/"$0" |
33702     sed '/^.*\/\([^/][^/]*\)\/*$/{
33703             s//\1/
33704             q
33705           }
33706           /^X\/\(\/\/\)$/{
33707             s//\1/
33708             q
33709           }
33710           /^X\/\(\/\).*/{
33711             s//\1/
33712             q
33713           }
33714           s/.*/./; q'`
33715
33716 # CDPATH.
33717 $as_unset CDPATH
33718
33719
33720
33721   as_lineno_1=$LINENO
33722   as_lineno_2=$LINENO
33723   test "x$as_lineno_1" != "x$as_lineno_2" &&
33724   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33725
33726   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33727   # uniformly replaced by the line number.  The first 'sed' inserts a
33728   # line-number line after each line using $LINENO; the second 'sed'
33729   # does the real work.  The second script uses 'N' to pair each
33730   # line-number line with the line containing $LINENO, and appends
33731   # trailing '-' during substitution so that $LINENO is not a special
33732   # case at line end.
33733   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33734   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33735   # E. McMahon (1931-1989) for sed's syntax.  :-)
33736   sed -n '
33737     p
33738     /[$]LINENO/=
33739   ' <$as_myself |
33740     sed '
33741       s/[$]LINENO.*/&-/
33742       t lineno
33743       b
33744       :lineno
33745       N
33746       :loop
33747       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33748       t loop
33749       s/-\n.*//
33750     ' >$as_me.lineno &&
33751   chmod +x "$as_me.lineno" ||
33752     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33753    { (exit 1); exit 1; }; }
33754
33755   # Don't try to exec as it changes $[0], causing all sort of problems
33756   # (the dirname of $[0] is not the place where we might find the
33757   # original and so on.  Autoconf is especially sensitive to this).
33758   . "./$as_me.lineno"
33759   # Exit status is that of the last command.
33760   exit
33761 }
33762
33763
33764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33765   as_dirname=dirname
33766 else
33767   as_dirname=false
33768 fi
33769
33770 ECHO_C= ECHO_N= ECHO_T=
33771 case `echo -n x` in
33772 -n*)
33773   case `echo 'x\c'` in
33774   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33775   *)   ECHO_C='\c';;
33776   esac;;
33777 *)
33778   ECHO_N='-n';;
33779 esac
33780
33781 if expr a : '\(a\)' >/dev/null 2>&1 &&
33782    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33783   as_expr=expr
33784 else
33785   as_expr=false
33786 fi
33787
33788 rm -f conf$$ conf$$.exe conf$$.file
33789 if test -d conf$$.dir; then
33790   rm -f conf$$.dir/conf$$.file
33791 else
33792   rm -f conf$$.dir
33793   mkdir conf$$.dir
33794 fi
33795 echo >conf$$.file
33796 if ln -s conf$$.file conf$$ 2>/dev/null; then
33797   as_ln_s='ln -s'
33798   # ... but there are two gotchas:
33799   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33800   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33801   # In both cases, we have to default to `cp -p'.
33802   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33803     as_ln_s='cp -p'
33804 elif ln conf$$.file conf$$ 2>/dev/null; then
33805   as_ln_s=ln
33806 else
33807   as_ln_s='cp -p'
33808 fi
33809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33810 rmdir conf$$.dir 2>/dev/null
33811
33812 if mkdir -p . 2>/dev/null; then
33813   as_mkdir_p=:
33814 else
33815   test -d ./-p && rmdir ./-p
33816   as_mkdir_p=false
33817 fi
33818
33819 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33820 # systems may use methods other than mode bits to determine executability.
33821 cat >conf$$.file <<_ASEOF
33822 #! /bin/sh
33823 exit 0
33824 _ASEOF
33825 chmod +x conf$$.file
33826 if test -x conf$$.file >/dev/null 2>&1; then
33827   as_executable_p="test -x"
33828 else
33829   as_executable_p=:
33830 fi
33831 rm -f conf$$.file
33832
33833 # Sed expression to map a string onto a valid CPP name.
33834 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33835
33836 # Sed expression to map a string onto a valid variable name.
33837 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33838
33839
33840 exec 6>&1
33841
33842 # Save the log message, to keep $[0] and so on meaningful, and to
33843 # report actual input values of CONFIG_FILES etc. instead of their
33844 # values after options handling.
33845 ac_log="
33846 This file was extended by llvm $as_me 2.0cvs, which was
33847 generated by GNU Autoconf 2.60.  Invocation command line was
33848
33849   CONFIG_FILES    = $CONFIG_FILES
33850   CONFIG_HEADERS  = $CONFIG_HEADERS
33851   CONFIG_LINKS    = $CONFIG_LINKS
33852   CONFIG_COMMANDS = $CONFIG_COMMANDS
33853   $ $0 $@
33854
33855 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33856 "
33857
33858 _ACEOF
33859
33860 cat >>$CONFIG_STATUS <<_ACEOF
33861 # Files that config.status was made for.
33862 config_files="$ac_config_files"
33863 config_headers="$ac_config_headers"
33864 config_commands="$ac_config_commands"
33865
33866 _ACEOF
33867
33868 cat >>$CONFIG_STATUS <<\_ACEOF
33869 ac_cs_usage="\
33870 \`$as_me' instantiates files from templates according to the
33871 current configuration.
33872
33873 Usage: $0 [OPTIONS] [FILE]...
33874
33875   -h, --help       print this help, then exit
33876   -V, --version    print version number, then exit
33877   -q, --quiet      do not print progress messages
33878   -d, --debug      don't remove temporary files
33879       --recheck    update $as_me by reconfiguring in the same conditions
33880   --file=FILE[:TEMPLATE]
33881                    instantiate the configuration file FILE
33882   --header=FILE[:TEMPLATE]
33883                    instantiate the configuration header FILE
33884
33885 Configuration files:
33886 $config_files
33887
33888 Configuration headers:
33889 $config_headers
33890
33891 Configuration commands:
33892 $config_commands
33893
33894 Report bugs to <bug-autoconf@gnu.org>."
33895
33896 _ACEOF
33897 cat >>$CONFIG_STATUS <<_ACEOF
33898 ac_cs_version="\\
33899 llvm config.status 2.0cvs
33900 configured by $0, generated by GNU Autoconf 2.60,
33901   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33902
33903 Copyright (C) 2006 Free Software Foundation, Inc.
33904 This config.status script is free software; the Free Software Foundation
33905 gives unlimited permission to copy, distribute and modify it."
33906
33907 ac_pwd='$ac_pwd'
33908 srcdir='$srcdir'
33909 INSTALL='$INSTALL'
33910 _ACEOF
33911
33912 cat >>$CONFIG_STATUS <<\_ACEOF
33913 # If no file are specified by the user, then we need to provide default
33914 # value.  By we need to know if files were specified by the user.
33915 ac_need_defaults=:
33916 while test $# != 0
33917 do
33918   case $1 in
33919   --*=*)
33920     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33921     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33922     ac_shift=:
33923     ;;
33924   *)
33925     ac_option=$1
33926     ac_optarg=$2
33927     ac_shift=shift
33928     ;;
33929   esac
33930
33931   case $ac_option in
33932   # Handling of the options.
33933   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33934     ac_cs_recheck=: ;;
33935   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33936     echo "$ac_cs_version"; exit ;;
33937   --debug | --debu | --deb | --de | --d | -d )
33938     debug=: ;;
33939   --file | --fil | --fi | --f )
33940     $ac_shift
33941     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33942     ac_need_defaults=false;;
33943   --header | --heade | --head | --hea )
33944     $ac_shift
33945     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33946     ac_need_defaults=false;;
33947   --he | --h)
33948     # Conflict between --help and --header
33949     { echo "$as_me: error: ambiguous option: $1
33950 Try \`$0 --help' for more information." >&2
33951    { (exit 1); exit 1; }; };;
33952   --help | --hel | -h )
33953     echo "$ac_cs_usage"; exit ;;
33954   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33955   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33956     ac_cs_silent=: ;;
33957
33958   # This is an error.
33959   -*) { echo "$as_me: error: unrecognized option: $1
33960 Try \`$0 --help' for more information." >&2
33961    { (exit 1); exit 1; }; } ;;
33962
33963   *) ac_config_targets="$ac_config_targets $1"
33964      ac_need_defaults=false ;;
33965
33966   esac
33967   shift
33968 done
33969
33970 ac_configure_extra_args=
33971
33972 if $ac_cs_silent; then
33973   exec 6>/dev/null
33974   ac_configure_extra_args="$ac_configure_extra_args --silent"
33975 fi
33976
33977 _ACEOF
33978 cat >>$CONFIG_STATUS <<_ACEOF
33979 if \$ac_cs_recheck; then
33980   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33981   CONFIG_SHELL=$SHELL
33982   export CONFIG_SHELL
33983   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33984 fi
33985
33986 _ACEOF
33987 cat >>$CONFIG_STATUS <<\_ACEOF
33988 exec 5>>config.log
33989 {
33990   echo
33991   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33992 ## Running $as_me. ##
33993 _ASBOX
33994   echo "$ac_log"
33995 } >&5
33996
33997 _ACEOF
33998 cat >>$CONFIG_STATUS <<_ACEOF
33999 #
34000 # INIT-COMMANDS
34001 #
34002 llvm_src="${srcdir}"
34003
34004 _ACEOF
34005
34006 cat >>$CONFIG_STATUS <<\_ACEOF
34007
34008 # Handling of arguments.
34009 for ac_config_target in $ac_config_targets
34010 do
34011   case $ac_config_target in
34012     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34013     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34014     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34015     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34016     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34017     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34018     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34019     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34020     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34021     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34022     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34023     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34024     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34025     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34026     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34027     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34028     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34029     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34030     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34031     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34032
34033   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34035    { (exit 1); exit 1; }; };;
34036   esac
34037 done
34038
34039
34040 # If the user did not use the arguments to specify the items to instantiate,
34041 # then the envvar interface is used.  Set only those that are not.
34042 # We use the long form for the default assignment because of an extremely
34043 # bizarre bug on SunOS 4.1.3.
34044 if $ac_need_defaults; then
34045   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34046   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34047   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34048 fi
34049
34050 # Have a temporary directory for convenience.  Make it in the build tree
34051 # simply because there is no reason against having it here, and in addition,
34052 # creating and moving files from /tmp can sometimes cause problems.
34053 # Hook for its removal unless debugging.
34054 # Note that there is a small window in which the directory will not be cleaned:
34055 # after its creation but before its name has been assigned to `$tmp'.
34056 $debug ||
34057 {
34058   tmp=
34059   trap 'exit_status=$?
34060   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34061 ' 0
34062   trap '{ (exit 1); exit 1; }' 1 2 13 15
34063 }
34064 # Create a (secure) tmp directory for tmp files.
34065
34066 {
34067   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34068   test -n "$tmp" && test -d "$tmp"
34069 }  ||
34070 {
34071   tmp=./conf$$-$RANDOM
34072   (umask 077 && mkdir "$tmp")
34073 } ||
34074 {
34075    echo "$me: cannot create a temporary directory in ." >&2
34076    { (exit 1); exit 1; }
34077 }
34078
34079 #
34080 # Set up the sed scripts for CONFIG_FILES section.
34081 #
34082
34083 # No need to generate the scripts if there are no CONFIG_FILES.
34084 # This happens for instance when ./config.status config.h
34085 if test -n "$CONFIG_FILES"; then
34086
34087 _ACEOF
34088
34089
34090
34091 ac_delim='%!_!# '
34092 for ac_last_try in false false false false false :; do
34093   cat >conf$$subs.sed <<_ACEOF
34094 SHELL!$SHELL$ac_delim
34095 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34096 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34097 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34098 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34099 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34100 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34101 exec_prefix!$exec_prefix$ac_delim
34102 prefix!$prefix$ac_delim
34103 program_transform_name!$program_transform_name$ac_delim
34104 bindir!$bindir$ac_delim
34105 sbindir!$sbindir$ac_delim
34106 libexecdir!$libexecdir$ac_delim
34107 datarootdir!$datarootdir$ac_delim
34108 datadir!$datadir$ac_delim
34109 sysconfdir!$sysconfdir$ac_delim
34110 sharedstatedir!$sharedstatedir$ac_delim
34111 localstatedir!$localstatedir$ac_delim
34112 includedir!$includedir$ac_delim
34113 oldincludedir!$oldincludedir$ac_delim
34114 docdir!$docdir$ac_delim
34115 infodir!$infodir$ac_delim
34116 htmldir!$htmldir$ac_delim
34117 dvidir!$dvidir$ac_delim
34118 pdfdir!$pdfdir$ac_delim
34119 psdir!$psdir$ac_delim
34120 libdir!$libdir$ac_delim
34121 localedir!$localedir$ac_delim
34122 mandir!$mandir$ac_delim
34123 DEFS!$DEFS$ac_delim
34124 ECHO_C!$ECHO_C$ac_delim
34125 ECHO_N!$ECHO_N$ac_delim
34126 ECHO_T!$ECHO_T$ac_delim
34127 LIBS!$LIBS$ac_delim
34128 build_alias!$build_alias$ac_delim
34129 host_alias!$host_alias$ac_delim
34130 target_alias!$target_alias$ac_delim
34131 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34132 subdirs!$subdirs$ac_delim
34133 build!$build$ac_delim
34134 build_cpu!$build_cpu$ac_delim
34135 build_vendor!$build_vendor$ac_delim
34136 build_os!$build_os$ac_delim
34137 host!$host$ac_delim
34138 host_cpu!$host_cpu$ac_delim
34139 host_vendor!$host_vendor$ac_delim
34140 host_os!$host_os$ac_delim
34141 target!$target$ac_delim
34142 target_cpu!$target_cpu$ac_delim
34143 target_vendor!$target_vendor$ac_delim
34144 target_os!$target_os$ac_delim
34145 OS!$OS$ac_delim
34146 LINKALL!$LINKALL$ac_delim
34147 NOLINKALL!$NOLINKALL$ac_delim
34148 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34149 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34150 ARCH!$ARCH$ac_delim
34151 ENDIAN!$ENDIAN$ac_delim
34152 CC!$CC$ac_delim
34153 CFLAGS!$CFLAGS$ac_delim
34154 LDFLAGS!$LDFLAGS$ac_delim
34155 CPPFLAGS!$CPPFLAGS$ac_delim
34156 ac_ct_CC!$ac_ct_CC$ac_delim
34157 EXEEXT!$EXEEXT$ac_delim
34158 OBJEXT!$OBJEXT$ac_delim
34159 CPP!$CPP$ac_delim
34160 GREP!$GREP$ac_delim
34161 EGREP!$EGREP$ac_delim
34162 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34163 BUILD_CC!$BUILD_CC$ac_delim
34164 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34165 CVSBUILD!$CVSBUILD$ac_delim
34166 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34167 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34168 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34169 JIT!$JIT$ac_delim
34170 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34171 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34172 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34173 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34174 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34175 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34176 CXX!$CXX$ac_delim
34177 CXXFLAGS!$CXXFLAGS$ac_delim
34178 ac_ct_CXX!$ac_ct_CXX$ac_delim
34179 LEX!$LEX$ac_delim
34180 LEXLIB!$LEXLIB$ac_delim
34181 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34182 FLEX!$FLEX$ac_delim
34183 YACC!$YACC$ac_delim
34184 YFLAGS!$YFLAGS$ac_delim
34185 BISON!$BISON$ac_delim
34186 NM!$NM$ac_delim
34187 ifGNUmake!$ifGNUmake$ac_delim
34188 LN_S!$LN_S$ac_delim
34189 CMP!$CMP$ac_delim
34190 CP!$CP$ac_delim
34191 _ACEOF
34192
34193   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34194     break
34195   elif $ac_last_try; then
34196     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34197 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34198    { (exit 1); exit 1; }; }
34199   else
34200     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34201   fi
34202 done
34203
34204 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34205 if test -n "$ac_eof"; then
34206   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34207   ac_eof=`expr $ac_eof + 1`
34208 fi
34209
34210 cat >>$CONFIG_STATUS <<_ACEOF
34211 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34213 _ACEOF
34214 sed '
34215 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34216 s/^/s,@/; s/!/@,|#_!!_#|/
34217 :n
34218 t n
34219 s/'"$ac_delim"'$/,g/; t
34220 s/$/\\/; p
34221 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34222 ' >>$CONFIG_STATUS <conf$$subs.sed
34223 rm -f conf$$subs.sed
34224 cat >>$CONFIG_STATUS <<_ACEOF
34225 CEOF$ac_eof
34226 _ACEOF
34227
34228
34229 ac_delim='%!_!# '
34230 for ac_last_try in false false false false false :; do
34231   cat >conf$$subs.sed <<_ACEOF
34232 DATE!$DATE$ac_delim
34233 FIND!$FIND$ac_delim
34234 MKDIR!$MKDIR$ac_delim
34235 MV!$MV$ac_delim
34236 RANLIB!$RANLIB$ac_delim
34237 RM!$RM$ac_delim
34238 SED!$SED$ac_delim
34239 TAR!$TAR$ac_delim
34240 BINPWD!$BINPWD$ac_delim
34241 GRAPHVIZ!$GRAPHVIZ$ac_delim
34242 DOT!$DOT$ac_delim
34243 GV!$GV$ac_delim
34244 DOTTY!$DOTTY$ac_delim
34245 PERL!$PERL$ac_delim
34246 HAVE_PERL!$HAVE_PERL$ac_delim
34247 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34248 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34249 INSTALL_DATA!$INSTALL_DATA$ac_delim
34250 BZIP2!$BZIP2$ac_delim
34251 DOXYGEN!$DOXYGEN$ac_delim
34252 GROFF!$GROFF$ac_delim
34253 GZIP!$GZIP$ac_delim
34254 POD2HTML!$POD2HTML$ac_delim
34255 POD2MAN!$POD2MAN$ac_delim
34256 RUNTEST!$RUNTEST$ac_delim
34257 TCLSH!$TCLSH$ac_delim
34258 ZIP!$ZIP$ac_delim
34259 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34260 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34261 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34262 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34263 LIBADD_DL!$LIBADD_DL$ac_delim
34264 ECHO!$ECHO$ac_delim
34265 AR!$AR$ac_delim
34266 STRIP!$STRIP$ac_delim
34267 CXXCPP!$CXXCPP$ac_delim
34268 F77!$F77$ac_delim
34269 FFLAGS!$FFLAGS$ac_delim
34270 ac_ct_F77!$ac_ct_F77$ac_delim
34271 LIBTOOL!$LIBTOOL$ac_delim
34272 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34273 LLVMGCC!$LLVMGCC$ac_delim
34274 LLVMGXX!$LLVMGXX$ac_delim
34275 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34276 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34277 ALLOCA!$ALLOCA$ac_delim
34278 MMAP_FILE!$MMAP_FILE$ac_delim
34279 LLVMCC1!$LLVMCC1$ac_delim
34280 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34281 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34282 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34283 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34284 SHLIBEXT!$SHLIBEXT$ac_delim
34285 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34286 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34287 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34288 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34289 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34290 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34291 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34292 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34293 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34294 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34295 LIBOBJS!$LIBOBJS$ac_delim
34296 LTLIBOBJS!$LTLIBOBJS$ac_delim
34297 _ACEOF
34298
34299   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
34300     break
34301   elif $ac_last_try; then
34302     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34304    { (exit 1); exit 1; }; }
34305   else
34306     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34307   fi
34308 done
34309
34310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34311 if test -n "$ac_eof"; then
34312   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34313   ac_eof=`expr $ac_eof + 1`
34314 fi
34315
34316 cat >>$CONFIG_STATUS <<_ACEOF
34317 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34319 _ACEOF
34320 sed '
34321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34322 s/^/s,@/; s/!/@,|#_!!_#|/
34323 :n
34324 t n
34325 s/'"$ac_delim"'$/,g/; t
34326 s/$/\\/; p
34327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34328 ' >>$CONFIG_STATUS <conf$$subs.sed
34329 rm -f conf$$subs.sed
34330 cat >>$CONFIG_STATUS <<_ACEOF
34331 :end
34332 s/|#_!!_#|//g
34333 CEOF$ac_eof
34334 _ACEOF
34335
34336
34337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34339 # trailing colons and then remove the whole line if VPATH becomes empty
34340 # (actually we leave an empty line to preserve line numbers).
34341 if test "x$srcdir" = x.; then
34342   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34343 s/:*\$(srcdir):*/:/
34344 s/:*\${srcdir}:*/:/
34345 s/:*@srcdir@:*/:/
34346 s/^\([^=]*=[     ]*\):*/\1/
34347 s/:*$//
34348 s/^[^=]*=[       ]*$//
34349 }'
34350 fi
34351
34352 cat >>$CONFIG_STATUS <<\_ACEOF
34353 fi # test -n "$CONFIG_FILES"
34354
34355
34356 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34357 do
34358   case $ac_tag in
34359   :[FHLC]) ac_mode=$ac_tag; continue;;
34360   esac
34361   case $ac_mode$ac_tag in
34362   :[FHL]*:*);;
34363   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34364 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34365    { (exit 1); exit 1; }; };;
34366   :[FH]-) ac_tag=-:-;;
34367   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34368   esac
34369   ac_save_IFS=$IFS
34370   IFS=:
34371   set x $ac_tag
34372   IFS=$ac_save_IFS
34373   shift
34374   ac_file=$1
34375   shift
34376
34377   case $ac_mode in
34378   :L) ac_source=$1;;
34379   :[FH])
34380     ac_file_inputs=
34381     for ac_f
34382     do
34383       case $ac_f in
34384       -) ac_f="$tmp/stdin";;
34385       *) # Look for the file first in the build tree, then in the source tree
34386          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34387          # because $ac_f cannot contain `:'.
34388          test -f "$ac_f" ||
34389            case $ac_f in
34390            [\\/$]*) false;;
34391            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34392            esac ||
34393            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34394 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34395    { (exit 1); exit 1; }; };;
34396       esac
34397       ac_file_inputs="$ac_file_inputs $ac_f"
34398     done
34399
34400     # Let's still pretend it is `configure' which instantiates (i.e., don't
34401     # use $as_me), people would be surprised to read:
34402     #    /* config.h.  Generated by config.status.  */
34403     configure_input="Generated from "`IFS=:
34404           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34405     if test x"$ac_file" != x-; then
34406       configure_input="$ac_file.  $configure_input"
34407       { echo "$as_me:$LINENO: creating $ac_file" >&5
34408 echo "$as_me: creating $ac_file" >&6;}
34409     fi
34410
34411     case $ac_tag in
34412     *:-:* | *:-) cat >"$tmp/stdin";;
34413     esac
34414     ;;
34415   esac
34416
34417   ac_dir=`$as_dirname -- "$ac_file" ||
34418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34419          X"$ac_file" : 'X\(//\)[^/]' \| \
34420          X"$ac_file" : 'X\(//\)$' \| \
34421          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34422 echo X"$ac_file" |
34423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34424             s//\1/
34425             q
34426           }
34427           /^X\(\/\/\)[^/].*/{
34428             s//\1/
34429             q
34430           }
34431           /^X\(\/\/\)$/{
34432             s//\1/
34433             q
34434           }
34435           /^X\(\/\).*/{
34436             s//\1/
34437             q
34438           }
34439           s/.*/./; q'`
34440   { as_dir="$ac_dir"
34441   case $as_dir in #(
34442   -*) as_dir=./$as_dir;;
34443   esac
34444   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34445     as_dirs=
34446     while :; do
34447       case $as_dir in #(
34448       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34449       *) as_qdir=$as_dir;;
34450       esac
34451       as_dirs="'$as_qdir' $as_dirs"
34452       as_dir=`$as_dirname -- "$as_dir" ||
34453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34454          X"$as_dir" : 'X\(//\)[^/]' \| \
34455          X"$as_dir" : 'X\(//\)$' \| \
34456          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34457 echo X"$as_dir" |
34458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34459             s//\1/
34460             q
34461           }
34462           /^X\(\/\/\)[^/].*/{
34463             s//\1/
34464             q
34465           }
34466           /^X\(\/\/\)$/{
34467             s//\1/
34468             q
34469           }
34470           /^X\(\/\).*/{
34471             s//\1/
34472             q
34473           }
34474           s/.*/./; q'`
34475       test -d "$as_dir" && break
34476     done
34477     test -z "$as_dirs" || eval "mkdir $as_dirs"
34478   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34480    { (exit 1); exit 1; }; }; }
34481   ac_builddir=.
34482
34483 case "$ac_dir" in
34484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34485 *)
34486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34487   # A ".." for each directory in $ac_dir_suffix.
34488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34489   case $ac_top_builddir_sub in
34490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34492   esac ;;
34493 esac
34494 ac_abs_top_builddir=$ac_pwd
34495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34496 # for backward compatibility:
34497 ac_top_builddir=$ac_top_build_prefix
34498
34499 case $srcdir in
34500   .)  # We are building in place.
34501     ac_srcdir=.
34502     ac_top_srcdir=$ac_top_builddir_sub
34503     ac_abs_top_srcdir=$ac_pwd ;;
34504   [\\/]* | ?:[\\/]* )  # Absolute name.
34505     ac_srcdir=$srcdir$ac_dir_suffix;
34506     ac_top_srcdir=$srcdir
34507     ac_abs_top_srcdir=$srcdir ;;
34508   *) # Relative name.
34509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34510     ac_top_srcdir=$ac_top_build_prefix$srcdir
34511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34512 esac
34513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34514
34515
34516   case $ac_mode in
34517   :F)
34518   #
34519   # CONFIG_FILE
34520   #
34521
34522   case $INSTALL in
34523   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34524   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34525   esac
34526 _ACEOF
34527
34528 cat >>$CONFIG_STATUS <<\_ACEOF
34529 # If the template does not know about datarootdir, expand it.
34530 # FIXME: This hack should be removed a few years after 2.60.
34531 ac_datarootdir_hack=; ac_datarootdir_seen=
34532
34533 case `sed -n '/datarootdir/ {
34534   p
34535   q
34536 }
34537 /@datadir@/p
34538 /@docdir@/p
34539 /@infodir@/p
34540 /@localedir@/p
34541 /@mandir@/p
34542 ' $ac_file_inputs` in
34543 *datarootdir*) ac_datarootdir_seen=yes;;
34544 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34545   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34546 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34547 _ACEOF
34548 cat >>$CONFIG_STATUS <<_ACEOF
34549   ac_datarootdir_hack='
34550   s&@datadir@&$datadir&g
34551   s&@docdir@&$docdir&g
34552   s&@infodir@&$infodir&g
34553   s&@localedir@&$localedir&g
34554   s&@mandir@&$mandir&g
34555     s&\\\${datarootdir}&$datarootdir&g' ;;
34556 esac
34557 _ACEOF
34558
34559 # Neutralize VPATH when `$srcdir' = `.'.
34560 # Shell code in configure.ac might set extrasub.
34561 # FIXME: do we really want to maintain this feature?
34562 cat >>$CONFIG_STATUS <<_ACEOF
34563   sed "$ac_vpsub
34564 $extrasub
34565 _ACEOF
34566 cat >>$CONFIG_STATUS <<\_ACEOF
34567 :t
34568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34569 s&@configure_input@&$configure_input&;t t
34570 s&@top_builddir@&$ac_top_builddir_sub&;t t
34571 s&@srcdir@&$ac_srcdir&;t t
34572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34573 s&@top_srcdir@&$ac_top_srcdir&;t t
34574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34575 s&@builddir@&$ac_builddir&;t t
34576 s&@abs_builddir@&$ac_abs_builddir&;t t
34577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34578 s&@INSTALL@&$ac_INSTALL&;t t
34579 $ac_datarootdir_hack
34580 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34581
34582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34583   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34584   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34585   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34586 which seems to be undefined.  Please make sure it is defined." >&5
34587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34588 which seems to be undefined.  Please make sure it is defined." >&2;}
34589
34590   rm -f "$tmp/stdin"
34591   case $ac_file in
34592   -) cat "$tmp/out"; rm -f "$tmp/out";;
34593   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34594   esac
34595  ;;
34596   :H)
34597   #
34598   # CONFIG_HEADER
34599   #
34600 _ACEOF
34601
34602 # Transform confdefs.h into a sed script `conftest.defines', that
34603 # substitutes the proper values into config.h.in to produce config.h.
34604 rm -f conftest.defines conftest.tail
34605 # First, append a space to every undef/define line, to ease matching.
34606 echo 's/$/ /' >conftest.defines
34607 # Then, protect against being on the right side of a sed subst, or in
34608 # an unquoted here document, in config.status.  If some macros were
34609 # called several times there might be several #defines for the same
34610 # symbol, which is useless.  But do not sort them, since the last
34611 # AC_DEFINE must be honored.
34612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34613 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34614 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34615 # PARAMS is the parameter list in the macro definition--in most cases, it's
34616 # just an empty string.
34617 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34618 ac_dB='\\)[      (].*,\\1define\\2'
34619 ac_dC=' '
34620 ac_dD=' ,'
34621
34622 uniq confdefs.h |
34623   sed -n '
34624         t rset
34625         :rset
34626         s/^[     ]*#[    ]*define[       ][      ]*//
34627         t ok
34628         d
34629         :ok
34630         s/[\\&,]/\\&/g
34631         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34632         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34633   ' >>conftest.defines
34634
34635 # Remove the space that was appended to ease matching.
34636 # Then replace #undef with comments.  This is necessary, for
34637 # example, in the case of _POSIX_SOURCE, which is predefined and required
34638 # on some systems where configure will not decide to define it.
34639 # (The regexp can be short, since the line contains either #define or #undef.)
34640 echo 's/ $//
34641 s,^[     #]*u.*,/* & */,' >>conftest.defines
34642
34643 # Break up conftest.defines:
34644 ac_max_sed_lines=50
34645
34646 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34647 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34648 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34649 # et cetera.
34650 ac_in='$ac_file_inputs'
34651 ac_out='"$tmp/out1"'
34652 ac_nxt='"$tmp/out2"'
34653
34654 while :
34655 do
34656   # Write a here document:
34657     cat >>$CONFIG_STATUS <<_ACEOF
34658     # First, check the format of the line:
34659     cat >"\$tmp/defines.sed" <<\\CEOF
34660 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34661 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34662 b
34663 :def
34664 _ACEOF
34665   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34666   echo 'CEOF
34667     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34668   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34669   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34670   grep . conftest.tail >/dev/null || break
34671   rm -f conftest.defines
34672   mv conftest.tail conftest.defines
34673 done
34674 rm -f conftest.defines conftest.tail
34675
34676 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34677 cat >>$CONFIG_STATUS <<\_ACEOF
34678   if test x"$ac_file" != x-; then
34679     echo "/* $configure_input  */" >"$tmp/config.h"
34680     cat "$ac_result" >>"$tmp/config.h"
34681     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34682       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34683 echo "$as_me: $ac_file is unchanged" >&6;}
34684     else
34685       rm -f $ac_file
34686       mv "$tmp/config.h" $ac_file
34687     fi
34688   else
34689     echo "/* $configure_input  */"
34690     cat "$ac_result"
34691   fi
34692   rm -f "$tmp/out12"
34693  ;;
34694
34695   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34696 echo "$as_me: executing $ac_file commands" >&6;}
34697  ;;
34698   esac
34699
34700
34701   case $ac_file$ac_mode in
34702     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34703    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34704     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34705    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34706     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34707    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34708     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34709    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34710     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34711    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34712     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34713    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34714     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34715    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34716     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34717    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34718     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34719    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34720     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34721    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34722
34723   esac
34724 done # for ac_tag
34725
34726
34727 { (exit 0); exit 0; }
34728 _ACEOF
34729 chmod +x $CONFIG_STATUS
34730 ac_clean_files=$ac_clean_files_save
34731
34732
34733 # configure is writing to config.log, and then calls config.status.
34734 # config.status does its own redirection, appending to config.log.
34735 # Unfortunately, on DOS this fails, as config.log is still kept open
34736 # by configure, so config.status won't be able to write to it; its
34737 # output is simply discarded.  So we exec the FD to /dev/null,
34738 # effectively closing config.log, so it can be properly (re)opened and
34739 # appended to by config.status.  When coming back to configure, we
34740 # need to make the FD available again.
34741 if test "$no_create" != yes; then
34742   ac_cs_success=:
34743   ac_config_status_args=
34744   test "$silent" = yes &&
34745     ac_config_status_args="$ac_config_status_args --quiet"
34746   exec 5>/dev/null
34747   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34748   exec 5>>config.log
34749   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34750   # would make configure fail if this is the last instruction.
34751   $ac_cs_success || { (exit 1); exit 1; }
34752 fi
34753
34754 #
34755 # CONFIG_SUBDIRS section.
34756 #
34757 if test "$no_recursion" != yes; then
34758
34759   # Remove --cache-file and --srcdir arguments so they do not pile up.
34760   ac_sub_configure_args=
34761   ac_prev=
34762   eval "set x $ac_configure_args"
34763   shift
34764   for ac_arg
34765   do
34766     if test -n "$ac_prev"; then
34767       ac_prev=
34768       continue
34769     fi
34770     case $ac_arg in
34771     -cache-file | --cache-file | --cache-fil | --cache-fi \
34772     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34773       ac_prev=cache_file ;;
34774     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34775     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34776     | --c=*)
34777       ;;
34778     --config-cache | -C)
34779       ;;
34780     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34781       ac_prev=srcdir ;;
34782     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34783       ;;
34784     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34785       ac_prev=prefix ;;
34786     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34787       ;;
34788     *)
34789       case $ac_arg in
34790       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34791       esac
34792       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34793     esac
34794   done
34795
34796   # Always prepend --prefix to ensure using the same prefix
34797   # in subdir configurations.
34798   ac_arg="--prefix=$prefix"
34799   case $ac_arg in
34800   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34801   esac
34802   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34803
34804   ac_popdir=`pwd`
34805   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34806
34807     # Do not complain, so a configure script can configure whichever
34808     # parts of a large source tree are present.
34809     test -d "$srcdir/$ac_dir" || continue
34810
34811     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34812     echo "$as_me:$LINENO: $ac_msg" >&5
34813     echo "$ac_msg" >&6
34814     { as_dir="$ac_dir"
34815   case $as_dir in #(
34816   -*) as_dir=./$as_dir;;
34817   esac
34818   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34819     as_dirs=
34820     while :; do
34821       case $as_dir in #(
34822       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34823       *) as_qdir=$as_dir;;
34824       esac
34825       as_dirs="'$as_qdir' $as_dirs"
34826       as_dir=`$as_dirname -- "$as_dir" ||
34827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34828          X"$as_dir" : 'X\(//\)[^/]' \| \
34829          X"$as_dir" : 'X\(//\)$' \| \
34830          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34831 echo X"$as_dir" |
34832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34833             s//\1/
34834             q
34835           }
34836           /^X\(\/\/\)[^/].*/{
34837             s//\1/
34838             q
34839           }
34840           /^X\(\/\/\)$/{
34841             s//\1/
34842             q
34843           }
34844           /^X\(\/\).*/{
34845             s//\1/
34846             q
34847           }
34848           s/.*/./; q'`
34849       test -d "$as_dir" && break
34850     done
34851     test -z "$as_dirs" || eval "mkdir $as_dirs"
34852   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34853 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34854    { (exit 1); exit 1; }; }; }
34855     ac_builddir=.
34856
34857 case "$ac_dir" in
34858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34859 *)
34860   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34861   # A ".." for each directory in $ac_dir_suffix.
34862   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34863   case $ac_top_builddir_sub in
34864   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34865   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34866   esac ;;
34867 esac
34868 ac_abs_top_builddir=$ac_pwd
34869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34870 # for backward compatibility:
34871 ac_top_builddir=$ac_top_build_prefix
34872
34873 case $srcdir in
34874   .)  # We are building in place.
34875     ac_srcdir=.
34876     ac_top_srcdir=$ac_top_builddir_sub
34877     ac_abs_top_srcdir=$ac_pwd ;;
34878   [\\/]* | ?:[\\/]* )  # Absolute name.
34879     ac_srcdir=$srcdir$ac_dir_suffix;
34880     ac_top_srcdir=$srcdir
34881     ac_abs_top_srcdir=$srcdir ;;
34882   *) # Relative name.
34883     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34884     ac_top_srcdir=$ac_top_build_prefix$srcdir
34885     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34886 esac
34887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34888
34889
34890     cd "$ac_dir"
34891
34892     # Check for guested configure; otherwise get Cygnus style configure.
34893     if test -f "$ac_srcdir/configure.gnu"; then
34894       ac_sub_configure=$ac_srcdir/configure.gnu
34895     elif test -f "$ac_srcdir/configure"; then
34896       ac_sub_configure=$ac_srcdir/configure
34897     elif test -f "$ac_srcdir/configure.in"; then
34898       # This should be Cygnus configure.
34899       ac_sub_configure=$ac_aux_dir/configure
34900     else
34901       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34902 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34903       ac_sub_configure=
34904     fi
34905
34906     # The recursion is here.
34907     if test -n "$ac_sub_configure"; then
34908       # Make the cache file name correct relative to the subdirectory.
34909       case $cache_file in
34910       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34911       *) # Relative name.
34912         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34913       esac
34914
34915       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34916 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34917       # The eval makes quoting arguments work.
34918       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34919            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34920         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34921 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34922    { (exit 1); exit 1; }; }
34923     fi
34924
34925     cd "$ac_popdir"
34926   done
34927 fi
34928
34929