Add a new variable, LLVMGCCLIBEXEC to get the libexec directory where the
[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 ENABLE_PIC
839 TARGETS_TO_BUILD
840 ENABLE_CBE_PRINTF_A
841 EXTRA_OPTIONS
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 LEX
846 LEXLIB
847 LEX_OUTPUT_ROOT
848 FLEX
849 YACC
850 YFLAGS
851 BISON
852 NM
853 ifGNUmake
854 LN_S
855 CMP
856 CP
857 DATE
858 FIND
859 MKDIR
860 MV
861 RANLIB
862 RM
863 SED
864 TAR
865 BINPWD
866 GRAPHVIZ
867 DOT
868 GV
869 DOTTY
870 PERL
871 HAVE_PERL
872 INSTALL_PROGRAM
873 INSTALL_SCRIPT
874 INSTALL_DATA
875 BZIP2
876 DOXYGEN
877 GROFF
878 GZIP
879 POD2HTML
880 POD2MAN
881 RUNTEST
882 TCLSH
883 ZIP
884 INSTALL_LTDL_TRUE
885 INSTALL_LTDL_FALSE
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
888 LIBADD_DL
889 ECHO
890 AR
891 STRIP
892 CXXCPP
893 F77
894 FFLAGS
895 ac_ct_F77
896 LIBTOOL
897 ETAGSFLAGS
898 LLVMGCC
899 LLVMGXX
900 HAVE_PTHREAD
901 HUGE_VAL_SANITY
902 ALLOCA
903 MMAP_FILE
904 LLVMCC1
905 LLVMCC1PLUS
906 LLVMGCCDIR
907 LLVMGCCLIBEXEC
908 LLVMGCC_VERSION
909 LLVMGCC_MAJVERS
910 SHLIBEXT
911 LLVM_PREFIX
912 LLVM_BINDIR
913 LLVM_LIBDIR
914 LLVM_DATADIR
915 LLVM_DOCSDIR
916 LLVM_ETCDIR
917 LLVM_INCLUDEDIR
918 LLVM_INFODIR
919 LLVM_MANDIR
920 LLVM_CONFIGTIME
921 LIBOBJS
922 LTLIBOBJS'
923 ac_subst_files=''
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 CPPFLAGS
931 CPP
932 CXX
933 CXXFLAGS
934 CCC
935 YACC
936 YFLAGS
937 CXXCPP
938 F77
939 FFLAGS'
940 ac_subdirs_all='projects/sample
941 projects/Stacker
942 projects/privbracket
943 projects/llvm-test
944 projects/llvm-reopt
945 projects/llvm-gcc
946 projects/llvm-java
947 projects/llvm-tv
948 projects/llvm-poolalloc
949 projects/llvm-kernel'
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1058     eval enable_$ac_feature=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075    { (exit 1); exit 1; }; }
1076     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1077     eval enable_$ac_feature=\$ac_optarg ;;
1078
1079   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081   | --exec | --exe | --ex)
1082     ac_prev=exec_prefix ;;
1083   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085   | --exec=* | --exe=* | --ex=*)
1086     exec_prefix=$ac_optarg ;;
1087
1088   -gas | --gas | --ga | --g)
1089     # Obsolete; use --with-gas.
1090     with_gas=yes ;;
1091
1092   -help | --help | --hel | --he | -h)
1093     ac_init_help=long ;;
1094   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095     ac_init_help=recursive ;;
1096   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097     ac_init_help=short ;;
1098
1099   -host | --host | --hos | --ho)
1100     ac_prev=host_alias ;;
1101   -host=* | --host=* | --hos=* | --ho=*)
1102     host_alias=$ac_optarg ;;
1103
1104   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105     ac_prev=htmldir ;;
1106   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107   | --ht=*)
1108     htmldir=$ac_optarg ;;
1109
1110   -includedir | --includedir | --includedi | --included | --include \
1111   | --includ | --inclu | --incl | --inc)
1112     ac_prev=includedir ;;
1113   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114   | --includ=* | --inclu=* | --incl=* | --inc=*)
1115     includedir=$ac_optarg ;;
1116
1117   -infodir | --infodir | --infodi | --infod | --info | --inf)
1118     ac_prev=infodir ;;
1119   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120     infodir=$ac_optarg ;;
1121
1122   -libdir | --libdir | --libdi | --libd)
1123     ac_prev=libdir ;;
1124   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125     libdir=$ac_optarg ;;
1126
1127   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128   | --libexe | --libex | --libe)
1129     ac_prev=libexecdir ;;
1130   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131   | --libexe=* | --libex=* | --libe=*)
1132     libexecdir=$ac_optarg ;;
1133
1134   -localedir | --localedir | --localedi | --localed | --locale)
1135     ac_prev=localedir ;;
1136   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137     localedir=$ac_optarg ;;
1138
1139   -localstatedir | --localstatedir | --localstatedi | --localstated \
1140   | --localstate | --localstat | --localsta | --localst | --locals)
1141     ac_prev=localstatedir ;;
1142   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144     localstatedir=$ac_optarg ;;
1145
1146   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147     ac_prev=mandir ;;
1148   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149     mandir=$ac_optarg ;;
1150
1151   -nfp | --nfp | --nf)
1152     # Obsolete; use --without-fp.
1153     with_fp=no ;;
1154
1155   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156   | --no-cr | --no-c | -n)
1157     no_create=yes ;;
1158
1159   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161     no_recursion=yes ;;
1162
1163   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165   | --oldin | --oldi | --old | --ol | --o)
1166     ac_prev=oldincludedir ;;
1167   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170     oldincludedir=$ac_optarg ;;
1171
1172   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173     ac_prev=prefix ;;
1174   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175     prefix=$ac_optarg ;;
1176
1177   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178   | --program-pre | --program-pr | --program-p)
1179     ac_prev=program_prefix ;;
1180   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182     program_prefix=$ac_optarg ;;
1183
1184   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185   | --program-suf | --program-su | --program-s)
1186     ac_prev=program_suffix ;;
1187   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189     program_suffix=$ac_optarg ;;
1190
1191   -program-transform-name | --program-transform-name \
1192   | --program-transform-nam | --program-transform-na \
1193   | --program-transform-n | --program-transform- \
1194   | --program-transform | --program-transfor \
1195   | --program-transfo | --program-transf \
1196   | --program-trans | --program-tran \
1197   | --progr-tra | --program-tr | --program-t)
1198     ac_prev=program_transform_name ;;
1199   -program-transform-name=* | --program-transform-name=* \
1200   | --program-transform-nam=* | --program-transform-na=* \
1201   | --program-transform-n=* | --program-transform-=* \
1202   | --program-transform=* | --program-transfor=* \
1203   | --program-transfo=* | --program-transf=* \
1204   | --program-trans=* | --program-tran=* \
1205   | --progr-tra=* | --program-tr=* | --program-t=*)
1206     program_transform_name=$ac_optarg ;;
1207
1208   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209     ac_prev=pdfdir ;;
1210   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211     pdfdir=$ac_optarg ;;
1212
1213   -psdir | --psdir | --psdi | --psd | --ps)
1214     ac_prev=psdir ;;
1215   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216     psdir=$ac_optarg ;;
1217
1218   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219   | -silent | --silent | --silen | --sile | --sil)
1220     silent=yes ;;
1221
1222   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223     ac_prev=sbindir ;;
1224   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225   | --sbi=* | --sb=*)
1226     sbindir=$ac_optarg ;;
1227
1228   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230   | --sharedst | --shareds | --shared | --share | --shar \
1231   | --sha | --sh)
1232     ac_prev=sharedstatedir ;;
1233   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236   | --sha=* | --sh=*)
1237     sharedstatedir=$ac_optarg ;;
1238
1239   -site | --site | --sit)
1240     ac_prev=site ;;
1241   -site=* | --site=* | --sit=*)
1242     site=$ac_optarg ;;
1243
1244   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245     ac_prev=srcdir ;;
1246   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247     srcdir=$ac_optarg ;;
1248
1249   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250   | --syscon | --sysco | --sysc | --sys | --sy)
1251     ac_prev=sysconfdir ;;
1252   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254     sysconfdir=$ac_optarg ;;
1255
1256   -target | --target | --targe | --targ | --tar | --ta | --t)
1257     ac_prev=target_alias ;;
1258   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259     target_alias=$ac_optarg ;;
1260
1261   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262     verbose=yes ;;
1263
1264   -version | --version | --versio | --versi | --vers | -V)
1265     ac_init_version=: ;;
1266
1267   -with-* | --with-*)
1268     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid package name: $ac_package" >&2
1272    { (exit 1); exit 1; }; }
1273     ac_package=`echo $ac_package| sed 's/-/_/g'`
1274     eval with_$ac_package=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package | sed 's/-/_/g'`
1283     eval with_$ac_package=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305    { (exit 1); exit 1; }; }
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313    { (exit 1); exit 1; }; }
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   { echo "$as_me: error: missing argument to $ac_option" >&2
1331    { (exit 1); exit 1; }; }
1332 fi
1333
1334 # Be sure to have absolute directory names.
1335 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336                 datadir sysconfdir sharedstatedir localstatedir includedir \
1337                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338                 libdir localedir mandir
1339 do
1340   eval ac_val=\$$ac_var
1341   case $ac_val in
1342     [\\/$]* | ?:[\\/]* )  continue;;
1343     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344   esac
1345   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346    { (exit 1); exit 1; }; }
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358   if test "x$build_alias" = x; then
1359     cross_compiling=maybe
1360     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361     If a cross compiler is detected then cross compile mode will be used." >&2
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   { echo "$as_me: error: Working directory cannot be determined" >&2
1377    { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   { echo "$as_me: error: pwd does not report name of working directory" >&2
1380    { (exit 1); exit 1; }; }
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385   ac_srcdir_defaulted=yes
1386   # Try the directory containing this script, then the parent directory.
1387   ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389          X"$0" : 'X\(//\)[^/]' \| \
1390          X"$0" : 'X\(//\)$' \| \
1391          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 echo X"$0" |
1393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)[^/].*/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\).*/{
1406             s//\1/
1407             q
1408           }
1409           s/.*/./; q'`
1410   srcdir=$ac_confdir
1411   if test ! -r "$srcdir/$ac_unique_file"; then
1412     srcdir=..
1413   fi
1414 else
1415   ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425    { (exit 1); exit 1; }; }
1426         pwd)`
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429   srcdir=.
1430 fi
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1434 case $srcdir in
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 esac
1437 for ac_var in $ac_precious_vars; do
1438   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_env_${ac_var}_value=\$${ac_var}
1440   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1443
1444 #
1445 # Report the --help message.
1446 #
1447 if test "$ac_init_help" = "long"; then
1448   # Omit some internal or obsolete options to make the list less imposing.
1449   # This message is too long to be a string in the A/UX 3.1 sh.
1450   cat <<_ACEOF
1451 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1452
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458 Defaults for the options are specified in brackets.
1459
1460 Configuration:
1461   -h, --help              display this help and exit
1462       --help=short        display options specific to this package
1463       --help=recursive    display the short help of all the included packages
1464   -V, --version           display version information and exit
1465   -q, --quiet, --silent   do not print \`checking...' messages
1466       --cache-file=FILE   cache test results in FILE [disabled]
1467   -C, --config-cache      alias for \`--cache-file=config.cache'
1468   -n, --no-create         do not create output files
1469       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471 Installation directories:
1472   --prefix=PREFIX         install architecture-independent files in PREFIX
1473                           [$ac_default_prefix]
1474   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475                           [PREFIX]
1476
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1481
1482 For better control, use the options below.
1483
1484 Fine tuning of the installation directories:
1485   --bindir=DIR           user executables [EPREFIX/bin]
1486   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1487   --libexecdir=DIR       program executables [EPREFIX/libexec]
1488   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1489   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1490   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1491   --libdir=DIR           object code libraries [EPREFIX/lib]
1492   --includedir=DIR       C header files [PREFIX/include]
1493   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1494   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1495   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1496   --infodir=DIR          info documentation [DATAROOTDIR/info]
1497   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1498   --mandir=DIR           man documentation [DATAROOTDIR/man]
1499   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1500   --htmldir=DIR          html documentation [DOCDIR]
1501   --dvidir=DIR           dvi documentation [DOCDIR]
1502   --pdfdir=DIR           pdf documentation [DOCDIR]
1503   --psdir=DIR            ps documentation [DOCDIR]
1504 _ACEOF
1505
1506   cat <<\_ACEOF
1507
1508 System types:
1509   --build=BUILD     configure for building on BUILD [guessed]
1510   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511   --target=TARGET   configure for building compilers for TARGET [HOST]
1512 _ACEOF
1513 fi
1514
1515 if test -n "$ac_init_help"; then
1516   case $ac_init_help in
1517      short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1518    esac
1519   cat <<\_ACEOF
1520
1521 Optional Features:
1522   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1523   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1524   --enable-optimized
1525   --enable-assertions
1526   --enable-debug-runtime
1527   --enable-jit            Enable Just In Time Compiling (default is YES)
1528   --enable-doxygen        Build doxygen documentation (default is NO)
1529   --enable-threads        Use threads if available (default is YES)
1530   --enable-pic            Build LLVM with Position Independent Code (default
1531                           is NO)
1532   --enable-targets        Build specific host targets:
1533                           all,host-only,{target-name} (default=all)
1534   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1535                           %a (default is YES)
1536   --enable-ltdl-install   install libltdl
1537   --enable-shared[=PKGS]  build shared libraries
1538                           [default=enable_shared_default]
1539   --enable-static[=PKGS]  build static libraries
1540                           [default=enable_static_default]
1541   --enable-fast-install[=PKGS]
1542                           optimize for fast installation
1543                           [default=enable_Fast_install_default]
1544   --disable-libtool-lock  avoid locking (might break parallel builds)
1545
1546 Optional Packages:
1547   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1548   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1549   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1550                           searches PATH)
1551   --with-extra-options    Specify addtional options to compile LLVM with
1552   --with-tclinclude       directory where tcl headers are
1553   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1554   --with-pic              try to use only PIC/non-PIC objects [default=use
1555                           both]
1556   --with-tags[=TAGS]      include additional configurations [automatic]
1557
1558 Some influential environment variables:
1559   CC          C compiler command
1560   CFLAGS      C compiler flags
1561   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562               nonstandard directory <lib dir>
1563   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564               you have headers in a nonstandard directory <include dir>
1565   CPP         C preprocessor
1566   CXX         C++ compiler command
1567   CXXFLAGS    C++ compiler flags
1568   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1569               the first program found out of: `bison -y', `byacc', `yacc'.
1570   YFLAGS      The list of arguments that will be passed by default to $YACC.
1571               This script will default YFLAGS to the empty string to avoid a
1572               default value of `-d' given by some make applications.
1573   CXXCPP      C++ preprocessor
1574   F77         Fortran 77 compiler command
1575   FFLAGS      Fortran 77 compiler flags
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to <llvmbugs@cs.uiuc.edu>.
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586   # If there are subdirs, report their specific --help.
1587   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588     test -d "$ac_dir" || continue
1589     ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595   # A ".." for each directory in $ac_dir_suffix.
1596   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597   case $ac_top_builddir_sub in
1598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600   esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608   .)  # We are building in place.
1609     ac_srcdir=.
1610     ac_top_srcdir=$ac_top_builddir_sub
1611     ac_abs_top_srcdir=$ac_pwd ;;
1612   [\\/]* | ?:[\\/]* )  # Absolute name.
1613     ac_srcdir=$srcdir$ac_dir_suffix;
1614     ac_top_srcdir=$srcdir
1615     ac_abs_top_srcdir=$srcdir ;;
1616   *) # Relative name.
1617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618     ac_top_srcdir=$ac_top_build_prefix$srcdir
1619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623     cd "$ac_dir" || { ac_status=$?; continue; }
1624     # Check for guested configure.
1625     if test -f "$ac_srcdir/configure.gnu"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628     elif test -f "$ac_srcdir/configure"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure" --help=recursive
1631     else
1632       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633     fi || ac_status=$?
1634     cd "$ac_pwd" || { ac_status=$?; break; }
1635   done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640   cat <<\_ACEOF
1641 llvm configure 2.0cvs
1642 generated by GNU Autoconf 2.60
1643
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648
1649 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1650 _ACEOF
1651   exit
1652 fi
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1656
1657 It was created by llvm $as_me 2.0cvs, which was
1658 generated by GNU Autoconf 2.60.  Invocation command line was
1659
1660   $ $0 $@
1661
1662 _ACEOF
1663 exec 5>>config.log
1664 {
1665 cat <<_ASUNAME
1666 ## --------- ##
1667 ## Platform. ##
1668 ## --------- ##
1669
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675
1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1678
1679 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1680 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1682 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1683 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1684 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1685 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1686
1687 _ASUNAME
1688
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   echo "PATH: $as_dir"
1695 done
1696 IFS=$as_save_IFS
1697
1698 } >&5
1699
1700 cat >&5 <<_ACEOF
1701
1702
1703 ## ----------- ##
1704 ## Core tests. ##
1705 ## ----------- ##
1706
1707 _ACEOF
1708
1709
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_configure_args=
1716 ac_configure_args0=
1717 ac_configure_args1=
1718 ac_must_keep_next=false
1719 for ac_pass in 1 2
1720 do
1721   for ac_arg
1722   do
1723     case $ac_arg in
1724     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726     | -silent | --silent | --silen | --sile | --sil)
1727       continue ;;
1728     *\'*)
1729       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730     esac
1731     case $ac_pass in
1732     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733     2)
1734       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735       if test $ac_must_keep_next = true; then
1736         ac_must_keep_next=false # Got value, back to normal.
1737       else
1738         case $ac_arg in
1739           *=* | --config-cache | -C | -disable-* | --disable-* \
1740           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742           | -with-* | --with-* | -without-* | --without-* | --x)
1743             case "$ac_configure_args0 " in
1744               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745             esac
1746             ;;
1747           -* ) ac_must_keep_next=true ;;
1748         esac
1749       fi
1750       ac_configure_args="$ac_configure_args '$ac_arg'"
1751       ;;
1752     esac
1753   done
1754 done
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log.  We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764   # Save into config.log some information that might help in debugging.
1765   {
1766     echo
1767
1768     cat <<\_ASBOX
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1772 _ASBOX
1773     echo
1774     # The following way of writing the cache mishandles newlines in values,
1775 (
1776   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777     eval ac_val=\$$ac_var
1778     case $ac_val in #(
1779     *${as_nl}*)
1780       case $ac_var in #(
1781       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783       esac
1784       case $ac_var in #(
1785       _ | IFS | as_nl) ;; #(
1786       *) $as_unset $ac_var ;;
1787       esac ;;
1788     esac
1789   done
1790   (set) 2>&1 |
1791     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792     *${as_nl}ac_space=\ *)
1793       sed -n \
1794         "s/'\''/'\''\\\\'\'''\''/g;
1795           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796       ;; #(
1797     *)
1798       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799       ;;
1800     esac |
1801     sort
1802 )
1803     echo
1804
1805     cat <<\_ASBOX
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1809 _ASBOX
1810     echo
1811     for ac_var in $ac_subst_vars
1812     do
1813       eval ac_val=\$$ac_var
1814       case $ac_val in
1815       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816       esac
1817       echo "$ac_var='\''$ac_val'\''"
1818     done | sort
1819     echo
1820
1821     if test -n "$ac_subst_files"; then
1822       cat <<\_ASBOX
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1826 _ASBOX
1827       echo
1828       for ac_var in $ac_subst_files
1829       do
1830         eval ac_val=\$$ac_var
1831         case $ac_val in
1832         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833         esac
1834         echo "$ac_var='\''$ac_val'\''"
1835       done | sort
1836       echo
1837     fi
1838
1839     if test -s confdefs.h; then
1840       cat <<\_ASBOX
1841 ## ----------- ##
1842 ## confdefs.h. ##
1843 ## ----------- ##
1844 _ASBOX
1845       echo
1846       cat confdefs.h
1847       echo
1848     fi
1849     test "$ac_signal" != 0 &&
1850       echo "$as_me: caught signal $ac_signal"
1851     echo "$as_me: exit $exit_status"
1852   } >&5
1853   rm -f core *.core core.conftest.* &&
1854     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855     exit $exit_status
1856 ' 0
1857 for ac_signal in 1 2 13 15; do
1858   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 done
1860 ac_signal=0
1861
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1864
1865 # Predefined preprocessor variables.
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1890
1891
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer explicitly selected file to automatically selected ones.
1894 if test -n "$CONFIG_SITE"; then
1895   set x "$CONFIG_SITE"
1896 elif test "x$prefix" != xNONE; then
1897   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1898 else
1899   set x "$ac_default_prefix/share/config.site" \
1900         "$ac_default_prefix/etc/config.site"
1901 fi
1902 shift
1903 for ac_site_file
1904 do
1905   if test -r "$ac_site_file"; then
1906     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907 echo "$as_me: loading site script $ac_site_file" >&6;}
1908     sed 's/^/| /' "$ac_site_file" >&5
1909     . "$ac_site_file"
1910   fi
1911 done
1912
1913 if test -r "$cache_file"; then
1914   # Some versions of bash will fail to source /dev/null (special
1915   # files actually), so we avoid doing that.
1916   if test -f "$cache_file"; then
1917     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918 echo "$as_me: loading cache $cache_file" >&6;}
1919     case $cache_file in
1920       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921       *)                      . "./$cache_file";;
1922     esac
1923   fi
1924 else
1925   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926 echo "$as_me: creating cache $cache_file" >&6;}
1927   >$cache_file
1928 fi
1929
1930 # Check that the precious variables saved in the cache have kept the same
1931 # value.
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935   eval ac_new_set=\$ac_env_${ac_var}_set
1936   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937   eval ac_new_val=\$ac_env_${ac_var}_value
1938   case $ac_old_set,$ac_new_set in
1939     set,)
1940       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942       ac_cache_corrupted=: ;;
1943     ,set)
1944       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946       ac_cache_corrupted=: ;;
1947     ,);;
1948     *)
1949       if test "x$ac_old_val" != "x$ac_new_val"; then
1950         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1951 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1952         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1953 echo "$as_me:   former value:  $ac_old_val" >&2;}
1954         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1955 echo "$as_me:   current value: $ac_new_val" >&2;}
1956         ac_cache_corrupted=:
1957       fi;;
1958   esac
1959   # Pass precious variables to config.status.
1960   if test "$ac_new_set" = set; then
1961     case $ac_new_val in
1962     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963     *) ac_arg=$ac_var=$ac_new_val ;;
1964     esac
1965     case " $ac_configure_args " in
1966       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1967       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968     esac
1969   fi
1970 done
1971 if $ac_cache_corrupted; then
1972   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010
2011 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2012
2013
2014
2015
2016
2017
2018
2019 ac_aux_dir=
2020 for ac_dir in autoconf "$srcdir"/autoconf; do
2021   if 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/install.sh"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/install.sh -c"
2028     break
2029   elif test -f "$ac_dir/shtool"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/shtool install -c"
2032     break
2033   fi
2034 done
2035 if test -z "$ac_aux_dir"; then
2036   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2037 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040
2041 # These three variables are undocumented and unsupported,
2042 # and are intended to be withdrawn in a future Autoconf release.
2043 # They can cause serious problems if a builder's source tree is in a directory
2044 # whose full name contains unusual characters.
2045 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2046 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2047 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2048
2049
2050
2051 if test ${srcdir} != "." ; then
2052   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2053     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2054 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2055    { (exit 1); exit 1; }; }
2056   fi
2057 fi
2058
2059 for i in `ls ${srcdir}/projects`
2060 do
2061   if test -d ${srcdir}/projects/${i} ; then
2062     case ${i} in
2063       "CVS") ;;
2064       "sample")       subdirs="$subdirs projects/sample"
2065     ;;
2066       "Stacker")      subdirs="$subdirs projects/Stacker"
2067    ;;
2068       "privbracket")  subdirs="$subdirs projects/privbracket"
2069  ;;
2070       "llvm-test")    subdirs="$subdirs projects/llvm-test"
2071  ;;
2072       "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2073 ;;
2074       "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2075   ;;
2076       "llvm-java")    subdirs="$subdirs projects/llvm-java"
2077  ;;
2078       "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2079    ;;
2080       "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2081  ;;
2082       "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2083  ;;
2084       *)
2085         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2086 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2087         ;;
2088     esac
2089   fi
2090 done
2091
2092
2093 # Make sure we can run config.sub.
2094 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2095   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2096 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2097    { (exit 1); exit 1; }; }
2098
2099 { echo "$as_me:$LINENO: checking build system type" >&5
2100 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_build+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   ac_build_alias=$build_alias
2105 test "x$ac_build_alias" = x &&
2106   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2107 test "x$ac_build_alias" = x &&
2108   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2109 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2110    { (exit 1); exit 1; }; }
2111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2112   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2114    { (exit 1); exit 1; }; }
2115
2116 fi
2117 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2118 echo "${ECHO_T}$ac_cv_build" >&6; }
2119 case $ac_cv_build in
2120 *-*-*) ;;
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2122 echo "$as_me: error: invalid value of canonical build" >&2;}
2123    { (exit 1); exit 1; }; };;
2124 esac
2125 build=$ac_cv_build
2126 ac_save_IFS=$IFS; IFS='-'
2127 set x $ac_cv_build
2128 shift
2129 build_cpu=$1
2130 build_vendor=$2
2131 shift; shift
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2134 build_os=$*
2135 IFS=$ac_save_IFS
2136 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2137
2138
2139 { echo "$as_me:$LINENO: checking host system type" >&5
2140 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_host+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test "x$host_alias" = x; then
2145   ac_cv_host=$ac_cv_build
2146 else
2147   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2148     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2150    { (exit 1); exit 1; }; }
2151 fi
2152
2153 fi
2154 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2155 echo "${ECHO_T}$ac_cv_host" >&6; }
2156 case $ac_cv_host in
2157 *-*-*) ;;
2158 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2159 echo "$as_me: error: invalid value of canonical host" >&2;}
2160    { (exit 1); exit 1; }; };;
2161 esac
2162 host=$ac_cv_host
2163 ac_save_IFS=$IFS; IFS='-'
2164 set x $ac_cv_host
2165 shift
2166 host_cpu=$1
2167 host_vendor=$2
2168 shift; shift
2169 # Remember, the first character of IFS is used to create $*,
2170 # except with old shells:
2171 host_os=$*
2172 IFS=$ac_save_IFS
2173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2174
2175
2176 { echo "$as_me:$LINENO: checking target system type" >&5
2177 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2178 if test "${ac_cv_target+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test "x$target_alias" = x; then
2182   ac_cv_target=$ac_cv_host
2183 else
2184   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2185     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2186 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2187    { (exit 1); exit 1; }; }
2188 fi
2189
2190 fi
2191 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192 echo "${ECHO_T}$ac_cv_target" >&6; }
2193 case $ac_cv_target in
2194 *-*-*) ;;
2195 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2196 echo "$as_me: error: invalid value of canonical target" >&2;}
2197    { (exit 1); exit 1; }; };;
2198 esac
2199 target=$ac_cv_target
2200 ac_save_IFS=$IFS; IFS='-'
2201 set x $ac_cv_target
2202 shift
2203 target_cpu=$1
2204 target_vendor=$2
2205 shift; shift
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2208 target_os=$*
2209 IFS=$ac_save_IFS
2210 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2211
2212
2213 # The aliases save the names the user supplied, while $host etc.
2214 # will get canonicalized.
2215 test -n "$target_alias" &&
2216   test "$program_prefix$program_suffix$program_transform_name" = \
2217     NONENONEs,x,x, &&
2218   program_prefix=${target_alias}-
2219
2220 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2221 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2222 if test "${llvm_cv_os_type+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   case $host in
2226   *-*-aix*)
2227     llvm_cv_link_all_option="-Wl,--whole-archive"
2228     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229     llvm_cv_os_type="AIX"
2230     llvm_cv_platform_type="Unix" ;;
2231   *-*-irix*)
2232     llvm_cv_link_all_option="-Wl,--whole-archive"
2233     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234     llvm_cv_os_type="IRIX"
2235     llvm_cv_platform_type="Unix" ;;
2236   *-*-cygwin*)
2237     llvm_cv_link_all_option="-Wl,--whole-archive"
2238     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239     llvm_cv_os_type="Cygwin"
2240     llvm_cv_platform_type="Unix" ;;
2241   *-*-darwin*)
2242     llvm_cv_link_all_option="-Wl,-all_load"
2243     llvm_cv_link_all_option="-Wl,-noall_load"
2244     llvm_cv_os_type="Darwin"
2245     llvm_cv_platform_type="Unix" ;;
2246   *-*-freebsd*)
2247     llvm_cv_link_all_option="-Wl,--whole-archive"
2248     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249     llvm_cv_os_type="FreeBSD"
2250     llvm_cv_platform_type="Unix" ;;
2251   *-*-openbsd*)
2252     llvm_cv_link_all_option="-Wl,--whole-archive"
2253     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254     llvm_cv_os_type="OpenBSD"
2255     llvm_cv_platform_type="Unix" ;;
2256   *-*-hpux*)
2257     llvm_cv_link_all_option="-Wl,--whole-archive"
2258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259     llvm_cv_os_type="HP-UX"
2260     llvm_cv_platform_type="Unix" ;;
2261   *-*-interix*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="Interix"
2265     llvm_cv_platform_type="Unix" ;;
2266   *-*-linux*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="Linux"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-solaris*)
2272     llvm_cv_link_all_option="-Wl,-z,allextract"
2273     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2274     llvm_cv_os_type="SunOS"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-win32*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="Win32"
2280     llvm_cv_platform_type="Win32" ;;
2281   *-*-mingw*)
2282     llvm_cv_link_all_option="-Wl,--whole-archive"
2283     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284     llvm_cv_os_type="MingW"
2285     llvm_cv_platform_type="Win32" ;;
2286   *)
2287     llvm_cv_link_all_option=""
2288     llvm_cv_no_link_all_option=""
2289     llvm_cv_os_type="Unknown"
2290     llvm_cv_platform_type="Unknown" ;;
2291 esac
2292 fi
2293 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2294 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2295
2296 if test "$llvm_cv_os_type" = "Unknown" ; then
2297   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2298 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302 OS=$llvm_cv_os_type
2303
2304
2305 LINKALL=$llvm_cv_link_all_option
2306
2307 NOLINKALL=$llvm_cv_no_link_all_option
2308
2309
2310 case $llvm_cv_platform_type in
2311   Unix)
2312
2313 cat >>confdefs.h <<\_ACEOF
2314 #define LLVM_ON_UNIX 1
2315 _ACEOF
2316
2317     LLVM_ON_UNIX=1
2318
2319     LLVM_ON_WIN32=0
2320
2321     ;;
2322   Win32)
2323
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_WIN32 1
2326 _ACEOF
2327
2328     LLVM_ON_UNIX=0
2329
2330     LLVM_ON_WIN32=1
2331
2332     ;;
2333 esac
2334
2335 { echo "$as_me:$LINENO: checking target architecture" >&5
2336 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2337 if test "${llvm_cv_target_arch+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   case $target in
2341   i?86-*)                 llvm_cv_target_arch="x86" ;;
2342   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2343   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2344   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2345   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2346   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2347   *)                      llvm_cv_target_arch="Unknown" ;;
2348 esac
2349 fi
2350 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2351 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2352
2353 if test "$llvm_cv_target_arch" = "Unknown" ; then
2354   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2355 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2356 fi
2357
2358 ARCH=$llvm_cv_target_arch
2359
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 if test -n "$ac_tool_prefix"; then
2367   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   if test -n "$CC"; then
2375   ac_cv_prog_CC="$CC" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2384     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396   { echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6; }
2398 else
2399   { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2401 fi
2402
2403
2404 fi
2405 if test -z "$ac_cv_prog_CC"; then
2406   ac_ct_CC=$CC
2407   # Extract the first word of "gcc", so it can be a program name with args.
2408 set dummy gcc; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   if test -n "$ac_ct_CC"; then
2415   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_exec_ext in '' $ac_executable_extensions; do
2423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2424     ac_cv_prog_ac_ct_CC="gcc"
2425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433 fi
2434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2435 if test -n "$ac_ct_CC"; then
2436   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2437 echo "${ECHO_T}$ac_ct_CC" >&6; }
2438 else
2439   { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2441 fi
2442
2443   if test "x$ac_ct_CC" = x; then
2444     CC=""
2445   else
2446     case $cross_compiling:$ac_tool_warned in
2447 yes:)
2448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet.  If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet.  If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2455 esac
2456     CC=$ac_ct_CC
2457   fi
2458 else
2459   CC="$ac_cv_prog_CC"
2460 fi
2461
2462 if test -z "$CC"; then
2463           if test -n "$ac_tool_prefix"; then
2464     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}cc; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$CC"; then
2472   ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_CC="${ac_tool_prefix}cc"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 CC=$ac_cv_prog_CC
2492 if test -n "$CC"; then
2493   { echo "$as_me:$LINENO: result: $CC" >&5
2494 echo "${ECHO_T}$CC" >&6; }
2495 else
2496   { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fi
2499
2500
2501   fi
2502 fi
2503 if test -z "$CC"; then
2504   # Extract the first word of "cc", so it can be a program name with args.
2505 set dummy cc; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   if test -n "$CC"; then
2512   ac_cv_prog_CC="$CC" # Let the user override the test.
2513 else
2514   ac_prog_rejected=no
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520   for ac_exec_ext in '' $ac_executable_extensions; do
2521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2522     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2523        ac_prog_rejected=yes
2524        continue
2525      fi
2526     ac_cv_prog_CC="cc"
2527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528     break 2
2529   fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 if test $ac_prog_rejected = yes; then
2535   # We found a bogon in the path, so make sure we never use it.
2536   set dummy $ac_cv_prog_CC
2537   shift
2538   if test $# != 0; then
2539     # We chose a different compiler from the bogus one.
2540     # However, it has the same basename, so the bogon will be chosen
2541     # first if we set CC to just the basename; use the full file name.
2542     shift
2543     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544   fi
2545 fi
2546 fi
2547 fi
2548 CC=$ac_cv_prog_CC
2549 if test -n "$CC"; then
2550   { echo "$as_me:$LINENO: result: $CC" >&5
2551 echo "${ECHO_T}$CC" >&6; }
2552 else
2553   { echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$CC"; then
2560   if test -n "$ac_tool_prefix"; then
2561   for ac_prog in cl.exe
2562   do
2563     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$CC"; then
2571   ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2580     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592   { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2594 else
2595   { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2597 fi
2598
2599
2600     test -n "$CC" && break
2601   done
2602 fi
2603 if test -z "$CC"; then
2604   ac_ct_CC=$CC
2605   for ac_prog in cl.exe
2606 do
2607   # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   if test -n "$ac_ct_CC"; then
2615   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622   for ac_exec_ext in '' $ac_executable_extensions; do
2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2624     ac_cv_prog_ac_ct_CC="$ac_prog"
2625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637 echo "${ECHO_T}$ac_ct_CC" >&6; }
2638 else
2639   { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2641 fi
2642
2643
2644   test -n "$ac_ct_CC" && break
2645 done
2646
2647   if test "x$ac_ct_CC" = x; then
2648     CC=""
2649   else
2650     case $cross_compiling:$ac_tool_warned in
2651 yes:)
2652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2653 whose name does not start with the host triplet.  If you think this
2654 configuration is useful to you, please write to autoconf@gnu.org." >&5
2655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet.  If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2658 ac_tool_warned=yes ;;
2659 esac
2660     CC=$ac_ct_CC
2661   fi
2662 fi
2663
2664 fi
2665
2666
2667 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: no acceptable C compiler found in \$PATH
2670 See \`config.log' for more details." >&2;}
2671    { (exit 1); exit 1; }; }
2672
2673 # Provide some information about the compiler.
2674 echo "$as_me:$LINENO: checking for C compiler version" >&5
2675 ac_compiler=`set X $ac_compile; echo $2`
2676 { (ac_try="$ac_compiler --version >&5"
2677 case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682   (eval "$ac_compiler --version >&5") 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }
2686 { (ac_try="$ac_compiler -v >&5"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692   (eval "$ac_compiler -v >&5") 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696 { (ac_try="$ac_compiler -V >&5"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compiler -V >&5") 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }
2706
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h.  */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h.  */
2713
2714 int
2715 main ()
2716 {
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 ac_clean_files_save=$ac_clean_files
2723 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2724 # Try to create an executable without -o first, disregard a.out.
2725 # It will help us diagnose broken compilers, and finding out an intuition
2726 # of exeext.
2727 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2728 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2729 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2730 #
2731 # List of possible output files, starting from the most likely.
2732 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2733 # only as a last resort.  b.out is created by i960 compilers.
2734 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2735 #
2736 # The IRIX 6 linker writes into existing files which may not be
2737 # executable, retaining their permissions.  Remove them first so a
2738 # subsequent execution test works.
2739 ac_rmfiles=
2740 for ac_file in $ac_files
2741 do
2742   case $ac_file in
2743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2744     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2745   esac
2746 done
2747 rm -f $ac_rmfiles
2748
2749 if { (ac_try="$ac_link_default"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_link_default") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; then
2759   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2760 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2761 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2762 # so that the user can short-circuit this test for compilers unknown to
2763 # Autoconf.
2764 for ac_file in $ac_files
2765 do
2766   test -f "$ac_file" || continue
2767   case $ac_file in
2768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2769         ;;
2770     [ab].out )
2771         # We found the default executable, but exeext='' is most
2772         # certainly right.
2773         break;;
2774     *.* )
2775         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2776         then :; else
2777            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778         fi
2779         # We set ac_cv_exeext here because the later test for it is not
2780         # safe: cross compilers may not add the suffix if given an `-o'
2781         # argument, so we may need to know it at that point already.
2782         # Even if this section looks crufty: it has the advantage of
2783         # actually working.
2784         break;;
2785     * )
2786         break;;
2787   esac
2788 done
2789 test "$ac_cv_exeext" = no && ac_cv_exeext=
2790
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&2;}
2799    { (exit 77); exit 77; }; }
2800 fi
2801
2802 ac_exeext=$ac_cv_exeext
2803 { echo "$as_me:$LINENO: result: $ac_file" >&5
2804 echo "${ECHO_T}$ac_file" >&6; }
2805
2806 # Check that the compiler produces executables we can run.  If not, either
2807 # the compiler is broken, or we cross compile.
2808 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813   if { ac_try='./$ac_file'
2814   { (case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819   (eval "$ac_try") 2>&5
2820   ac_status=$?
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); }; }; then
2823     cross_compiling=no
2824   else
2825     if test "$cross_compiling" = maybe; then
2826         cross_compiling=yes
2827     else
2828         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot run C compiled programs.
2832 If you meant to cross compile, use \`--host'.
2833 See \`config.log' for more details." >&2;}
2834    { (exit 1); exit 1; }; }
2835     fi
2836   fi
2837 fi
2838 { echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6; }
2840
2841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2842 ac_clean_files=$ac_clean_files_save
2843 # Check that the compiler produces executables we can run.  If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848 echo "${ECHO_T}$cross_compiling" >&6; }
2849
2850 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852 if { (ac_try="$ac_link"
2853 case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858   (eval "$ac_link") 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; then
2862   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe'), while it won't with
2865 # `rm'.
2866 for ac_file in conftest.exe conftest conftest.*; do
2867   test -f "$ac_file" || continue
2868   case $ac_file in
2869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871           break;;
2872     * ) break;;
2873   esac
2874 done
2875 else
2876   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&2;}
2880    { (exit 1); exit 1; }; }
2881 fi
2882
2883 rm -f conftest$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2886
2887 rm -f conftest.$ac_ext
2888 EXEEXT=$ac_cv_exeext
2889 ac_exeext=$EXEEXT
2890 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2892 if test "${ac_cv_objext+set}" = set; then
2893   echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895   cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901
2902 int
2903 main ()
2904 {
2905
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 rm -f conftest.o conftest.obj
2911 if { (ac_try="$ac_compile"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compile") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; then
2921   for ac_file in conftest.o conftest.obj conftest.*; do
2922   test -f "$ac_file" || continue;
2923   case $ac_file in
2924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2925     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926        break;;
2927   esac
2928 done
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details." >&2;}
2937    { (exit 1); exit 1; }; }
2938 fi
2939
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2941 fi
2942 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2943 echo "${ECHO_T}$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2945 ac_objext=$OBJEXT
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3017 GCC=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CFLAGS=${CFLAGS+set}
3019 ac_save_CFLAGS=$CFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cc_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_c_werror_flag=$ac_c_werror_flag
3026    ac_c_werror_flag=yes
3027    ac_cv_prog_cc_g=no
3028    CFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cc_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_c_werror_flag=$ac_save_c_werror_flag
3139          CFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cc_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_c_werror_flag=$ac_save_c_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209   CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211   if test "$GCC" = yes; then
3212     CFLAGS="-g -O2"
3213   else
3214     CFLAGS="-g"
3215   fi
3216 else
3217   if test "$GCC" = yes; then
3218     CFLAGS="-O2"
3219   else
3220     CFLAGS=
3221   fi
3222 fi
3223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   ac_cv_prog_cc_c89=no
3229 ac_save_CC=$CC
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236 #include <stdarg.h>
3237 #include <stdio.h>
3238 #include <sys/types.h>
3239 #include <sys/stat.h>
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3244      char **p;
3245      int i;
3246 {
3247   return p[i];
3248 }
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3250 {
3251   char *s;
3252   va_list v;
3253   va_start (v,p);
3254   s = g (p, va_arg (v,int));
3255   va_end (v);
3256   return s;
3257 }
3258
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3260    function prototypes and stuff, but not '\xHH' hex character constants.
3261    These don't provoke an error unfortunately, instead are silently treated
3262    as 'x'.  The following induces an error, until -std is added to get
3263    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3264    array size at least.  It's necessary to write '\x00'==0 to get something
3265    that's true only with -std.  */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269    inside strings and character constants.  */
3270 #define FOO(x) 'x'
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 int argc;
3278 char **argv;
3279 int
3280 main ()
3281 {
3282 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 do
3290   CC="$ac_save_CC $ac_arg"
3291   rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_compile") 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } &&
3305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3306   { (case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311   (eval "$ac_try") 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; } &&
3315          { ac_try='test -s conftest.$ac_objext'
3316   { (case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_try") 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; }; then
3325   ac_cv_prog_cc_c89=$ac_arg
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330
3331 fi
3332
3333 rm -f core conftest.err conftest.$ac_objext
3334   test "x$ac_cv_prog_cc_c89" != "xno" && break
3335 done
3336 rm -f conftest.$ac_ext
3337 CC=$ac_save_CC
3338
3339 fi
3340 # AC_CACHE_VAL
3341 case "x$ac_cv_prog_cc_c89" in
3342   x)
3343     { echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6; } ;;
3345   xno)
3346     { echo "$as_me:$LINENO: result: unsupported" >&5
3347 echo "${ECHO_T}unsupported" >&6; } ;;
3348   *)
3349     CC="$CC $ac_cv_prog_cc_c89"
3350     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3351 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3352 esac
3353
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360
3361
3362 ac_ext=c
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3368 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3369 # On Suns, sometimes $CPP names a directory.
3370 if test -n "$CPP" && test -d "$CPP"; then
3371   CPP=
3372 fi
3373 if test -z "$CPP"; then
3374   if test "${ac_cv_prog_CPP+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377       # Double quotes because CPP needs to be expanded
3378     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379     do
3380       ac_preproc_ok=false
3381 for ac_c_preproc_warn_flag in '' yes
3382 do
3383   # Use a header file that comes with gcc, so configuring glibc
3384   # with a fresh cross-compiler works.
3385   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386   # <limits.h> exists even on freestanding compilers.
3387   # On the NeXT, cc -E runs the code through the compiler's parser,
3388   # not just through cpp. "Syntax error" is here to catch this case.
3389   cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #ifdef __STDC__
3396 # include <limits.h>
3397 #else
3398 # include <assert.h>
3399 #endif
3400                      Syntax error
3401 _ACEOF
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } >/dev/null; then
3415   if test -s conftest.err; then
3416     ac_cpp_err=$ac_c_preproc_warn_flag
3417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418   else
3419     ac_cpp_err=
3420   fi
3421 else
3422   ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425   :
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Broken: fails on valid input.
3431 continue
3432 fi
3433
3434 rm -f conftest.err conftest.$ac_ext
3435
3436   # OK, works on sane cases.  Now check whether nonexistent headers
3437   # can be detected and how.
3438   cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444 #include <ac_nonexistent.h>
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } >/dev/null; then
3459   if test -s conftest.err; then
3460     ac_cpp_err=$ac_c_preproc_warn_flag
3461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462   else
3463     ac_cpp_err=
3464   fi
3465 else
3466   ac_cpp_err=yes
3467 fi
3468 if test -z "$ac_cpp_err"; then
3469   # Broken: success on invalid input.
3470 continue
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475   # Passes both tests.
3476 ac_preproc_ok=:
3477 break
3478 fi
3479
3480 rm -f conftest.err conftest.$ac_ext
3481
3482 done
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then
3486   break
3487 fi
3488
3489     done
3490     ac_cv_prog_CPP=$CPP
3491
3492 fi
3493   CPP=$ac_cv_prog_CPP
3494 else
3495   ac_cv_prog_CPP=$CPP
3496 fi
3497 { echo "$as_me:$LINENO: result: $CPP" >&5
3498 echo "${ECHO_T}$CPP" >&6; }
3499 ac_preproc_ok=false
3500 for ac_c_preproc_warn_flag in '' yes
3501 do
3502   # Use a header file that comes with gcc, so configuring glibc
3503   # with a fresh cross-compiler works.
3504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505   # <limits.h> exists even on freestanding compilers.
3506   # On the NeXT, cc -E runs the code through the compiler's parser,
3507   # not just through cpp. "Syntax error" is here to catch this case.
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #ifdef __STDC__
3515 # include <limits.h>
3516 #else
3517 # include <assert.h>
3518 #endif
3519                      Syntax error
3520 _ACEOF
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } >/dev/null; then
3534   if test -s conftest.err; then
3535     ac_cpp_err=$ac_c_preproc_warn_flag
3536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537   else
3538     ac_cpp_err=
3539   fi
3540 else
3541   ac_cpp_err=yes
3542 fi
3543 if test -z "$ac_cpp_err"; then
3544   :
3545 else
3546   echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549   # Broken: fails on valid input.
3550 continue
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555   # OK, works on sane cases.  Now check whether nonexistent headers
3556   # can be detected and how.
3557   cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 #include <ac_nonexistent.h>
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } >/dev/null; then
3578   if test -s conftest.err; then
3579     ac_cpp_err=$ac_c_preproc_warn_flag
3580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581   else
3582     ac_cpp_err=
3583   fi
3584 else
3585   ac_cpp_err=yes
3586 fi
3587 if test -z "$ac_cpp_err"; then
3588   # Broken: success on invalid input.
3589 continue
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594   # Passes both tests.
3595 ac_preproc_ok=:
3596 break
3597 fi
3598
3599 rm -f conftest.err conftest.$ac_ext
3600
3601 done
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then
3605   :
3606 else
3607   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&5
3609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   # Extract the first word of "grep ggrep" to use in msg output
3627 if test -z "$GREP"; then
3628 set dummy grep ggrep; ac_prog_name=$2
3629 if test "${ac_cv_path_GREP+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639   for ac_prog in grep ggrep; do
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3643     # Check for GNU ac_path_GREP and select it if it is found.
3644   # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3646 *GNU*)
3647   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648 *)
3649   ac_count=0
3650   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3651   while :
3652   do
3653     cat "conftest.in" "conftest.in" >"conftest.tmp"
3654     mv "conftest.tmp" "conftest.in"
3655     cp "conftest.in" "conftest.nl"
3656     echo 'GREP' >> "conftest.nl"
3657     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659     ac_count=`expr $ac_count + 1`
3660     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661       # Best one so far, save it but keep looking for a better one
3662       ac_cv_path_GREP="$ac_path_GREP"
3663       ac_path_GREP_max=$ac_count
3664     fi
3665     # 10*(2^10) chars as input seems more than enough
3666     test $ac_count -gt 10 && break
3667   done
3668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3670
3671
3672     $ac_path_GREP_found && break 3
3673   done
3674 done
3675
3676 done
3677 IFS=$as_save_IFS
3678
3679
3680 fi
3681
3682 GREP="$ac_cv_path_GREP"
3683 if test -z "$GREP"; then
3684   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686    { (exit 1); exit 1; }; }
3687 fi
3688
3689 else
3690   ac_cv_path_GREP=$GREP
3691 fi
3692
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697  GREP="$ac_cv_path_GREP"
3698
3699
3700 { echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706    then ac_cv_path_EGREP="$GREP -E"
3707    else
3708      # Extract the first word of "egrep" to use in msg output
3709 if test -z "$EGREP"; then
3710 set dummy egrep; ac_prog_name=$2
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   ac_path_EGREP_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_prog in egrep; do
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3724     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3725     # Check for GNU ac_path_EGREP and select it if it is found.
3726   # Check for GNU $ac_path_EGREP
3727 case `"$ac_path_EGREP" --version 2>&1` in
3728 *GNU*)
3729   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3730 *)
3731   ac_count=0
3732   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733   while :
3734   do
3735     cat "conftest.in" "conftest.in" >"conftest.tmp"
3736     mv "conftest.tmp" "conftest.in"
3737     cp "conftest.in" "conftest.nl"
3738     echo 'EGREP' >> "conftest.nl"
3739     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741     ac_count=`expr $ac_count + 1`
3742     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743       # Best one so far, save it but keep looking for a better one
3744       ac_cv_path_EGREP="$ac_path_EGREP"
3745       ac_path_EGREP_max=$ac_count
3746     fi
3747     # 10*(2^10) chars as input seems more than enough
3748     test $ac_count -gt 10 && break
3749   done
3750   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 esac
3752
3753
3754     $ac_path_EGREP_found && break 3
3755   done
3756 done
3757
3758 done
3759 IFS=$as_save_IFS
3760
3761
3762 fi
3763
3764 EGREP="$ac_cv_path_EGREP"
3765 if test -z "$EGREP"; then
3766   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768    { (exit 1); exit 1; }; }
3769 fi
3770
3771 else
3772   ac_cv_path_EGREP=$EGREP
3773 fi
3774
3775
3776    fi
3777 fi
3778 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780  EGREP="$ac_cv_path_EGREP"
3781
3782
3783 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3785 if test "${ac_cv_header_stdc+set}" = set; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 #include <stdlib.h>
3795 #include <stdarg.h>
3796 #include <string.h>
3797 #include <float.h>
3798
3799 int
3800 main ()
3801 {
3802
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3809 case "(($ac_try" in
3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811   *) ac_try_echo=$ac_try;;
3812 esac
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814   (eval "$ac_compile") 2>conftest.er1
3815   ac_status=$?
3816   grep -v '^ *+' conftest.er1 >conftest.err
3817   rm -f conftest.er1
3818   cat conftest.err >&5
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } &&
3821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3822   { (case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827   (eval "$ac_try") 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }; } &&
3831          { ac_try='test -s conftest.$ac_objext'
3832   { (case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837   (eval "$ac_try") 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }; }; then
3841   ac_cv_header_stdc=yes
3842 else
3843   echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846         ac_cv_header_stdc=no
3847 fi
3848
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850
3851 if test $ac_cv_header_stdc = yes; then
3852   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3853   cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h.  */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h.  */
3859 #include <string.h>
3860
3861 _ACEOF
3862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863   $EGREP "memchr" >/dev/null 2>&1; then
3864   :
3865 else
3866   ac_cv_header_stdc=no
3867 fi
3868 rm -f conftest*
3869
3870 fi
3871
3872 if test $ac_cv_header_stdc = yes; then
3873   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3874   cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880 #include <stdlib.h>
3881
3882 _ACEOF
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884   $EGREP "free" >/dev/null 2>&1; then
3885   :
3886 else
3887   ac_cv_header_stdc=no
3888 fi
3889 rm -f conftest*
3890
3891 fi
3892
3893 if test $ac_cv_header_stdc = yes; then
3894   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895   if test "$cross_compiling" = yes; then
3896   :
3897 else
3898   cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <ctype.h>
3905 #include <stdlib.h>
3906 #if ((' ' & 0x0FF) == 0x020)
3907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3909 #else
3910 # define ISLOWER(c) \
3911                    (('a' <= (c) && (c) <= 'i') \
3912                      || ('j' <= (c) && (c) <= 'r') \
3913                      || ('s' <= (c) && (c) <= 'z'))
3914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3915 #endif
3916
3917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3918 int
3919 main ()
3920 {
3921   int i;
3922   for (i = 0; i < 256; i++)
3923     if (XOR (islower (i), ISLOWER (i))
3924         || toupper (i) != TOUPPER (i))
3925       return 2;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest$ac_exeext
3930 if { (ac_try="$ac_link"
3931 case "(($ac_try" in
3932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933   *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936   (eval "$ac_link") 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3940   { (case "(($ac_try" in
3941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942   *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945   (eval "$ac_try") 2>&5
3946   ac_status=$?
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); }; }; then
3949   :
3950 else
3951   echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 ( exit $ac_status )
3956 ac_cv_header_stdc=no
3957 fi
3958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 fi
3960
3961
3962 fi
3963 fi
3964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3966 if test $ac_cv_header_stdc = yes; then
3967
3968 cat >>confdefs.h <<\_ACEOF
3969 #define STDC_HEADERS 1
3970 _ACEOF
3971
3972 fi
3973
3974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3985                   inttypes.h stdint.h unistd.h
3986 do
3987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h.  */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h.  */
3999 $ac_includes_default
4000
4001 #include <$ac_header>
4002 _ACEOF
4003 rm -f conftest.$ac_objext
4004 if { (ac_try="$ac_compile"
4005 case "(($ac_try" in
4006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007   *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010   (eval "$ac_compile") 2>conftest.er1
4011   ac_status=$?
4012   grep -v '^ *+' conftest.er1 >conftest.err
4013   rm -f conftest.er1
4014   cat conftest.err >&5
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } &&
4017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4018   { (case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023   (eval "$ac_try") 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); }; } &&
4027          { ac_try='test -s conftest.$ac_objext'
4028   { (case "(($ac_try" in
4029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030   *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033   (eval "$ac_try") 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   eval "$as_ac_Header=yes"
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042         eval "$as_ac_Header=no"
4043 fi
4044
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 fi
4047 ac_res=`eval echo '${'$as_ac_Header'}'`
4048                { echo "$as_me:$LINENO: result: $ac_res" >&5
4049 echo "${ECHO_T}$ac_res" >&6; }
4050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4051   cat >>confdefs.h <<_ACEOF
4052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4053 _ACEOF
4054
4055 fi
4056
4057 done
4058
4059
4060 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4061 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4062 if test "${ac_cv_c_bigendian+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   # See if sys/param.h defines the BYTE_ORDER macro.
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 #include <sys/types.h>
4073 #include <sys/param.h>
4074
4075 int
4076 main ()
4077 {
4078 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4079  bogus endian macros
4080 #endif
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093   (eval "$ac_compile") 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } &&
4100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101   { (case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_try") 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; } &&
4110          { ac_try='test -s conftest.$ac_objext'
4111   { (case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_try") 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; }; then
4120   # It does; now see whether it defined to BIG_ENDIAN or not.
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <sys/types.h>
4128 #include <sys/param.h>
4129
4130 int
4131 main ()
4132 {
4133 #if BYTE_ORDER != BIG_ENDIAN
4134  not big endian
4135 #endif
4136
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148   (eval "$ac_compile") 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156   { (case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_try") 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; } &&
4165          { ac_try='test -s conftest.$ac_objext'
4166   { (case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171   (eval "$ac_try") 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; }; then
4175   ac_cv_c_bigendian=yes
4176 else
4177   echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180         ac_cv_c_bigendian=no
4181 fi
4182
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188         # It does not; compile a test program.
4189 if test "$cross_compiling" = yes; then
4190   # try to guess the endianness by grepping values into an object file
4191   ac_cv_c_bigendian=unknown
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4199 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4200 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4201 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4202 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4203 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4204 int
4205 main ()
4206 {
4207  _ascii (); _ebcdic ();
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219   (eval "$ac_compile") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } &&
4226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; } &&
4236          { ac_try='test -s conftest.$ac_objext'
4237   { (case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_try") 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4247   ac_cv_c_bigendian=yes
4248 fi
4249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4250   if test "$ac_cv_c_bigendian" = unknown; then
4251     ac_cv_c_bigendian=no
4252   else
4253     # finding both strings is unlikely to happen, but who knows?
4254     ac_cv_c_bigendian=unknown
4255   fi
4256 fi
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261
4262 fi
4263
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 else
4266   cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h.  */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h.  */
4272 $ac_includes_default
4273 int
4274 main ()
4275 {
4276
4277   /* Are we little or big endian?  From Harbison&Steele.  */
4278   union
4279   {
4280     long int l;
4281     char c[sizeof (long int)];
4282   } u;
4283   u.l = 1;
4284   return u.c[sizeof (long int) - 1] == 1;
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest$ac_exeext
4291 if { (ac_try="$ac_link"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_link") 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4301   { (case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_try") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; }; then
4310   ac_cv_c_bigendian=no
4311 else
4312   echo "$as_me: program exited with status $ac_status" >&5
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ( exit $ac_status )
4317 ac_cv_c_bigendian=yes
4318 fi
4319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4320 fi
4321
4322
4323 fi
4324
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4329 case $ac_cv_c_bigendian in
4330   yes)
4331     ENDIAN=big
4332  ;;
4333   no)
4334     ENDIAN=little
4335  ;;
4336   *)
4337     { { echo "$as_me:$LINENO: error: unknown endianness
4338 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4339 echo "$as_me: error: unknown endianness
4340 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4341    { (exit 1); exit 1; }; } ;;
4342 esac
4343
4344
4345 if test "$cross_compiling" = yes; then
4346   LLVM_CROSS_COMPILING=1
4347
4348
4349 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4350 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4351 if test "${ac_cv_build_exeext+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4355   ac_cv_build_exeext=.exe
4356 else
4357   ac_build_prefix=${build_alias}-
4358
4359   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4360 set dummy ${ac_build_prefix}gcc; ac_word=$2
4361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   if test -n "$BUILD_CC"; then
4367   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374   for ac_exec_ext in '' $ac_executable_extensions; do
4375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4376     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 BUILD_CC=$ac_cv_prog_BUILD_CC
4387 if test -n "$BUILD_CC"; then
4388   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4389 echo "${ECHO_T}$BUILD_CC" >&6; }
4390 else
4391   { echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6; }
4393 fi
4394
4395
4396   if test -z "$BUILD_CC"; then
4397      # Extract the first word of "gcc", so it can be a program name with args.
4398 set dummy gcc; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   if test -n "$BUILD_CC"; then
4405   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410   IFS=$as_save_IFS
4411   test -z "$as_dir" && as_dir=.
4412   for ac_exec_ext in '' $ac_executable_extensions; do
4413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414     ac_cv_prog_BUILD_CC="gcc"
4415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416     break 2
4417   fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 BUILD_CC=$ac_cv_prog_BUILD_CC
4425 if test -n "$BUILD_CC"; then
4426   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4427 echo "${ECHO_T}$BUILD_CC" >&6; }
4428 else
4429   { echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6; }
4431 fi
4432
4433
4434      if test -z "$BUILD_CC"; then
4435        # Extract the first word of "cc", so it can be a program name with args.
4436 set dummy cc; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$BUILD_CC"; then
4443   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 else
4445   ac_prog_rejected=no
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4454        ac_prog_rejected=yes
4455        continue
4456      fi
4457     ac_cv_prog_BUILD_CC="cc"
4458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465 if test $ac_prog_rejected = yes; then
4466   # We found a bogon in the path, so make sure we never use it.
4467   set dummy $ac_cv_prog_BUILD_CC
4468   shift
4469   if test $# != 0; then
4470     # We chose a different compiler from the bogus one.
4471     # However, it has the same basename, so the bogon will be chosen
4472     # first if we set BUILD_CC to just the basename; use the full file name.
4473     shift
4474     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4475   fi
4476 fi
4477 fi
4478 fi
4479 BUILD_CC=$ac_cv_prog_BUILD_CC
4480 if test -n "$BUILD_CC"; then
4481   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482 echo "${ECHO_T}$BUILD_CC" >&6; }
4483 else
4484   { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4486 fi
4487
4488
4489      fi
4490   fi
4491   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4492 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4493    { (exit 1); exit 1; }; }
4494   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4495   rm -f conftest*
4496   echo 'int main () { return 0; }' > conftest.$ac_ext
4497   ac_cv_build_exeext=
4498   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4499   (eval $ac_build_link) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; then
4503     for file in conftest.*; do
4504       case $file in
4505       *.c | *.o | *.obj) ;;
4506       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4507       esac
4508     done
4509   else
4510     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4511 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4512    { (exit 1); exit 1; }; }
4513   fi
4514   rm -f conftest*
4515   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4516 fi
4517 fi
4518
4519 BUILD_EXEEXT=""
4520 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4521 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4522 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4523 ac_build_exeext=$BUILD_EXEEXT
4524
4525 else
4526   LLVM_CROSS_COMPILING=0
4527
4528 fi
4529
4530 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4531   cvsbuild="yes"
4532   optimize="no"
4533   CVSBUILD=CVSBUILD=1
4534
4535 else
4536   cvsbuild="no"
4537   optimize="yes"
4538 fi
4539
4540
4541 # Check whether --enable-optimized was given.
4542 if test "${enable_optimized+set}" = set; then
4543   enableval=$enable_optimized;
4544 else
4545   enableval=$optimize
4546 fi
4547
4548 if test ${enableval} = "no" ; then
4549   ENABLE_OPTIMIZED=
4550
4551 else
4552   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4553
4554 fi
4555
4556 # Check whether --enable-assertions was given.
4557 if test "${enable_assertions+set}" = set; then
4558   enableval=$enable_assertions;
4559 else
4560   enableval="yes"
4561 fi
4562
4563 if test ${enableval} = "yes" ; then
4564   DISABLE_ASSERTIONS=
4565
4566 else
4567   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4568
4569 fi
4570
4571 # Check whether --enable-debug-runtime was given.
4572 if test "${enable_debug_runtime+set}" = set; then
4573   enableval=$enable_debug_runtime;
4574 else
4575   enableval=no
4576 fi
4577
4578 if test ${enableval} = "no" ; then
4579   DEBUG_RUNTIME=
4580
4581 else
4582   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4583
4584 fi
4585
4586 # Check whether --enable-jit was given.
4587 if test "${enable_jit+set}" = set; then
4588   enableval=$enable_jit;
4589 else
4590   enableval=default
4591 fi
4592
4593 if test ${enableval} = "no"
4594 then
4595   JIT=
4596
4597 else
4598   case "$llvm_cv_target_arch" in
4599     x86)     TARGET_HAS_JIT=1
4600  ;;
4601     Sparc)   TARGET_HAS_JIT=1
4602  ;;
4603     PowerPC) TARGET_HAS_JIT=1
4604  ;;
4605     x86_64)  TARGET_HAS_JIT=0
4606  ;;
4607     Alpha)   TARGET_HAS_JIT=1
4608  ;;
4609     IA64)    TARGET_HAS_JIT=0
4610  ;;
4611     *)       TARGET_HAS_JIT=0
4612  ;;
4613   esac
4614 fi
4615
4616 # Check whether --enable-doxygen was given.
4617 if test "${enable_doxygen+set}" = set; then
4618   enableval=$enable_doxygen;
4619 else
4620   enableval=default
4621 fi
4622
4623 case "$enableval" in
4624   yes) ENABLE_DOXYGEN=1
4625  ;;
4626   no)  ENABLE_DOXYGEN=0
4627  ;;
4628   default) ENABLE_DOXYGEN=0
4629  ;;
4630   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4631 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4632    { (exit 1); exit 1; }; } ;;
4633 esac
4634
4635 # Check whether --enable-threads was given.
4636 if test "${enable_threads+set}" = set; then
4637   enableval=$enable_threads;
4638 else
4639   enableval=default
4640 fi
4641
4642 case "$enableval" in
4643   yes) ENABLE_THREADS=1
4644  ;;
4645   no)  ENABLE_THREADS=0
4646  ;;
4647   default) ENABLE_THREADS=1
4648  ;;
4649   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4650 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4651    { (exit 1); exit 1; }; } ;;
4652 esac
4653
4654 cat >>confdefs.h <<_ACEOF
4655 #define ENABLE_THREADS $ENABLE_THREADS
4656 _ACEOF
4657
4658
4659 # Check whether --enable-pic was given.
4660 if test "${enable_pic+set}" = set; then
4661   enableval=$enable_pic;
4662 else
4663   enableval=default
4664 fi
4665
4666 case "$enableval" in
4667   yes) ENABLE_PIC=1
4668  ;;
4669   no)  ENABLE_PIC=0
4670  ;;
4671   default) ENABLE_PIC=0
4672  ;;
4673   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4674 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4675    { (exit 1); exit 1; }; } ;;
4676 esac
4677
4678 cat >>confdefs.h <<_ACEOF
4679 #define ENABLE_PIC $ENABLE_PIC
4680 _ACEOF
4681
4682
4683 TARGETS_TO_BUILD=""
4684 # Check whether --enable-targets was given.
4685 if test "${enable_targets+set}" = set; then
4686   enableval=$enable_targets;
4687 else
4688   enableval=all
4689 fi
4690
4691 case "$enableval" in
4692   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4693   host-only)
4694     case "$llvm_cv_target_arch" in
4695       x86)     TARGETS_TO_BUILD="X86" ;;
4696       x86_64)  TARGETS_TO_BUILD="X86" ;;
4697       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4698       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4699       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4700       IA64)    TARGETS_TO_BUILD="IA64" ;;
4701       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4702 echo "$as_me: error: Can not set target to build" >&2;}
4703    { (exit 1); exit 1; }; } ;;
4704     esac
4705     ;;
4706   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4707       case "$a_target" in
4708         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4710         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4711         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4712         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4713         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4714         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4715 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4716    { (exit 1); exit 1; }; } ;;
4717       esac
4718   done
4719   ;;
4720 esac
4721 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4722 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4723
4724
4725 # Check whether --enable-cbe-printf-a was given.
4726 if test "${enable_cbe_printf_a+set}" = set; then
4727   enableval=$enable_cbe_printf_a;
4728 else
4729   enableval=default
4730 fi
4731
4732 case "$enableval" in
4733   yes) ENABLE_CBE_PRINTF_A=1
4734  ;;
4735   no)  ENABLE_CBE_PRINTF_A=0
4736  ;;
4737   default)  ENABLE_CBE_PRINTF_A=1
4738  ;;
4739   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4740 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4741    { (exit 1); exit 1; }; } ;;
4742 esac
4743
4744 cat >>confdefs.h <<_ACEOF
4745 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4746 _ACEOF
4747
4748
4749
4750 # Check whether --with-llvmgccdir was given.
4751 if test "${with_llvmgccdir+set}" = set; then
4752   withval=$with_llvmgccdir;
4753 else
4754   withval=default
4755 fi
4756
4757 case "$withval" in
4758   default) WITH_LLVMGCCDIR=default ;;
4759   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4760   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4761 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4762    { (exit 1); exit 1; }; } ;;
4763 esac
4764
4765
4766 # Check whether --with-extra-options was given.
4767 if test "${with_extra_options+set}" = set; then
4768   withval=$with_extra_options;
4769 else
4770   withval=default
4771 fi
4772
4773 case "$withval" in
4774   default) EXTRA_OPTIONS= ;;
4775   *) EXTRA_OPTIONS=$withval ;;
4776 esac
4777 EXTRA_OPTIONS=$EXTRA_OPTIONS
4778
4779
4780
4781 ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4787 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4788 # On Suns, sometimes $CPP names a directory.
4789 if test -n "$CPP" && test -d "$CPP"; then
4790   CPP=
4791 fi
4792 if test -z "$CPP"; then
4793   if test "${ac_cv_prog_CPP+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796       # Double quotes because CPP needs to be expanded
4797     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4798     do
4799       ac_preproc_ok=false
4800 for ac_c_preproc_warn_flag in '' yes
4801 do
4802   # Use a header file that comes with gcc, so configuring glibc
4803   # with a fresh cross-compiler works.
4804   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805   # <limits.h> exists even on freestanding compilers.
4806   # On the NeXT, cc -E runs the code through the compiler's parser,
4807   # not just through cpp. "Syntax error" is here to catch this case.
4808   cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h.  */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h.  */
4814 #ifdef __STDC__
4815 # include <limits.h>
4816 #else
4817 # include <assert.h>
4818 #endif
4819                      Syntax error
4820 _ACEOF
4821 if { (ac_try="$ac_cpp conftest.$ac_ext"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } >/dev/null; then
4834   if test -s conftest.err; then
4835     ac_cpp_err=$ac_c_preproc_warn_flag
4836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4837   else
4838     ac_cpp_err=
4839   fi
4840 else
4841   ac_cpp_err=yes
4842 fi
4843 if test -z "$ac_cpp_err"; then
4844   :
4845 else
4846   echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849   # Broken: fails on valid input.
4850 continue
4851 fi
4852
4853 rm -f conftest.err conftest.$ac_ext
4854
4855   # OK, works on sane cases.  Now check whether nonexistent headers
4856   # can be detected and how.
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 #include <ac_nonexistent.h>
4864 _ACEOF
4865 if { (ac_try="$ac_cpp conftest.$ac_ext"
4866 case "(($ac_try" in
4867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868   *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
4875   cat conftest.err >&5
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } >/dev/null; then
4878   if test -s conftest.err; then
4879     ac_cpp_err=$ac_c_preproc_warn_flag
4880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881   else
4882     ac_cpp_err=
4883   fi
4884 else
4885   ac_cpp_err=yes
4886 fi
4887 if test -z "$ac_cpp_err"; then
4888   # Broken: success on invalid input.
4889 continue
4890 else
4891   echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894   # Passes both tests.
4895 ac_preproc_ok=:
4896 break
4897 fi
4898
4899 rm -f conftest.err conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then
4905   break
4906 fi
4907
4908     done
4909     ac_cv_prog_CPP=$CPP
4910
4911 fi
4912   CPP=$ac_cv_prog_CPP
4913 else
4914   ac_cv_prog_CPP=$CPP
4915 fi
4916 { echo "$as_me:$LINENO: result: $CPP" >&5
4917 echo "${ECHO_T}$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921   # Use a header file that comes with gcc, so configuring glibc
4922   # with a fresh cross-compiler works.
4923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924   # <limits.h> exists even on freestanding compilers.
4925   # On the NeXT, cc -E runs the code through the compiler's parser,
4926   # not just through cpp. "Syntax error" is here to catch this case.
4927   cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938                      Syntax error
4939 _ACEOF
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } >/dev/null; then
4953   if test -s conftest.err; then
4954     ac_cpp_err=$ac_c_preproc_warn_flag
4955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4956   else
4957     ac_cpp_err=
4958   fi
4959 else
4960   ac_cpp_err=yes
4961 fi
4962 if test -z "$ac_cpp_err"; then
4963   :
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4967
4968   # Broken: fails on valid input.
4969 continue
4970 fi
4971
4972 rm -f conftest.err conftest.$ac_ext
4973
4974   # OK, works on sane cases.  Now check whether nonexistent headers
4975   # can be detected and how.
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 #include <ac_nonexistent.h>
4983 _ACEOF
4984 if { (ac_try="$ac_cpp conftest.$ac_ext"
4985 case "(($ac_try" in
4986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987   *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_c_preproc_warn_flag
4999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5000   else
5001     ac_cpp_err=
5002   fi
5003 else
5004   ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007   # Broken: success on invalid input.
5008 continue
5009 else
5010   echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013   # Passes both tests.
5014 ac_preproc_ok=:
5015 break
5016 fi
5017
5018 rm -f conftest.err conftest.$ac_ext
5019
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then
5024   :
5025 else
5026   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5027 See \`config.log' for more details." >&5
5028 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5029 See \`config.log' for more details." >&2;}
5030    { (exit 1); exit 1; }; }
5031 fi
5032
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039 ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 if test -n "$ac_tool_prefix"; then
5045   for ac_prog in gcc
5046   do
5047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_CC+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$CC"; then
5055   ac_cv_prog_CC="$CC" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 CC=$ac_cv_prog_CC
5075 if test -n "$CC"; then
5076   { echo "$as_me:$LINENO: result: $CC" >&5
5077 echo "${ECHO_T}$CC" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084     test -n "$CC" && break
5085   done
5086 fi
5087 if test -z "$CC"; then
5088   ac_ct_CC=$CC
5089   for ac_prog in gcc
5090 do
5091   # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   if test -n "$ac_ct_CC"; then
5099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_prog_ac_ct_CC="$ac_prog"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 fi
5117 fi
5118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5119 if test -n "$ac_ct_CC"; then
5120   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5121 echo "${ECHO_T}$ac_ct_CC" >&6; }
5122 else
5123   { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5125 fi
5126
5127
5128   test -n "$ac_ct_CC" && break
5129 done
5130
5131   if test "x$ac_ct_CC" = x; then
5132     CC=""
5133   else
5134     case $cross_compiling:$ac_tool_warned in
5135 yes:)
5136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5137 whose name does not start with the host triplet.  If you think this
5138 configuration is useful to you, please write to autoconf@gnu.org." >&5
5139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5140 whose name does not start with the host triplet.  If you think this
5141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5142 ac_tool_warned=yes ;;
5143 esac
5144     CC=$ac_ct_CC
5145   fi
5146 fi
5147
5148
5149 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5150 See \`config.log' for more details." >&5
5151 echo "$as_me: error: no acceptable C compiler found in \$PATH
5152 See \`config.log' for more details." >&2;}
5153    { (exit 1); exit 1; }; }
5154
5155 # Provide some information about the compiler.
5156 echo "$as_me:$LINENO: checking for C compiler version" >&5
5157 ac_compiler=`set X $ac_compile; echo $2`
5158 { (ac_try="$ac_compiler --version >&5"
5159 case "(($ac_try" in
5160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161   *) ac_try_echo=$ac_try;;
5162 esac
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164   (eval "$ac_compiler --version >&5") 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }
5168 { (ac_try="$ac_compiler -v >&5"
5169 case "(($ac_try" in
5170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171   *) ac_try_echo=$ac_try;;
5172 esac
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174   (eval "$ac_compiler -v >&5") 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }
5178 { (ac_try="$ac_compiler -V >&5"
5179 case "(($ac_try" in
5180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181   *) ac_try_echo=$ac_try;;
5182 esac
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184   (eval "$ac_compiler -V >&5") 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); }
5188
5189 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200
5201 int
5202 main ()
5203 {
5204 #ifndef __GNUC__
5205        choke me
5206 #endif
5207
5208   ;
5209   return 0;
5210 }
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5214 case "(($ac_try" in
5215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216   *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219   (eval "$ac_compile") 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } &&
5226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5227   { (case "(($ac_try" in
5228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229   *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232   (eval "$ac_try") 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; } &&
5236          { ac_try='test -s conftest.$ac_objext'
5237   { (case "(($ac_try" in
5238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239   *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242   (eval "$ac_try") 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }; }; then
5246   ac_compiler_gnu=yes
5247 else
5248   echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5250
5251         ac_compiler_gnu=no
5252 fi
5253
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5256
5257 fi
5258 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5259 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5260 GCC=`test $ac_compiler_gnu = yes && echo yes`
5261 ac_test_CFLAGS=${CFLAGS+set}
5262 ac_save_CFLAGS=$CFLAGS
5263 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5265 if test "${ac_cv_prog_cc_g+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   ac_save_c_werror_flag=$ac_c_werror_flag
5269    ac_c_werror_flag=yes
5270    ac_cv_prog_cc_g=no
5271    CFLAGS="-g"
5272    cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278
5279 int
5280 main ()
5281 {
5282
5283   ;
5284   return 0;
5285 }
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_compile") 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302   { (case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_try") 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; } &&
5311          { ac_try='test -s conftest.$ac_objext'
5312   { (case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317   (eval "$ac_try") 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_cv_prog_cc_g=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326         CFLAGS=""
5327       cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333
5334 int
5335 main ()
5336 {
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5344 case "(($ac_try" in
5345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346   *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349   (eval "$ac_compile") 2>conftest.er1
5350   ac_status=$?
5351   grep -v '^ *+' conftest.er1 >conftest.err
5352   rm -f conftest.er1
5353   cat conftest.err >&5
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } &&
5356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5357   { (case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362   (eval "$ac_try") 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }; } &&
5366          { ac_try='test -s conftest.$ac_objext'
5367   { (case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_try") 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   :
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381         ac_c_werror_flag=$ac_save_c_werror_flag
5382          CFLAGS="-g"
5383          cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h.  */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h.  */
5389
5390 int
5391 main ()
5392 {
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_compile") 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413   { (case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_try") 2>&5
5419   ac_status=$?
5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); }; } &&
5422          { ac_try='test -s conftest.$ac_objext'
5423   { (case "(($ac_try" in
5424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425   *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428   (eval "$ac_try") 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; }; then
5432   ac_cv_prog_cc_g=yes
5433 else
5434   echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437
5438 fi
5439
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 fi
5442
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447    ac_c_werror_flag=$ac_save_c_werror_flag
5448 fi
5449 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5451 if test "$ac_test_CFLAGS" = set; then
5452   CFLAGS=$ac_save_CFLAGS
5453 elif test $ac_cv_prog_cc_g = yes; then
5454   if test "$GCC" = yes; then
5455     CFLAGS="-g -O2"
5456   else
5457     CFLAGS="-g"
5458   fi
5459 else
5460   if test "$GCC" = yes; then
5461     CFLAGS="-O2"
5462   else
5463     CFLAGS=
5464   fi
5465 fi
5466 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5467 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5468 if test "${ac_cv_prog_cc_c89+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   ac_cv_prog_cc_c89=no
5472 ac_save_CC=$CC
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 #include <stdarg.h>
5480 #include <stdio.h>
5481 #include <sys/types.h>
5482 #include <sys/stat.h>
5483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5484 struct buf { int x; };
5485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5486 static char *e (p, i)
5487      char **p;
5488      int i;
5489 {
5490   return p[i];
5491 }
5492 static char *f (char * (*g) (char **, int), char **p, ...)
5493 {
5494   char *s;
5495   va_list v;
5496   va_start (v,p);
5497   s = g (p, va_arg (v,int));
5498   va_end (v);
5499   return s;
5500 }
5501
5502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5503    function prototypes and stuff, but not '\xHH' hex character constants.
5504    These don't provoke an error unfortunately, instead are silently treated
5505    as 'x'.  The following induces an error, until -std is added to get
5506    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5507    array size at least.  It's necessary to write '\x00'==0 to get something
5508    that's true only with -std.  */
5509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5510
5511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5512    inside strings and character constants.  */
5513 #define FOO(x) 'x'
5514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5515
5516 int test (int i, double x);
5517 struct s1 {int (*f) (int a);};
5518 struct s2 {int (*f) (double a);};
5519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5520 int argc;
5521 char **argv;
5522 int
5523 main ()
5524 {
5525 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5531         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5532 do
5533   CC="$ac_save_CC $ac_arg"
5534   rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538   *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541   (eval "$ac_compile") 2>conftest.er1
5542   ac_status=$?
5543   grep -v '^ *+' conftest.er1 >conftest.err
5544   rm -f conftest.er1
5545   cat conftest.err >&5
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } &&
5548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5549   { (case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554   (eval "$ac_try") 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; } &&
5558          { ac_try='test -s conftest.$ac_objext'
5559   { (case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_try") 2>&5
5565   ac_status=$?
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); }; }; then
5568   ac_cv_prog_cc_c89=$ac_arg
5569 else
5570   echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573
5574 fi
5575
5576 rm -f core conftest.err conftest.$ac_objext
5577   test "x$ac_cv_prog_cc_c89" != "xno" && break
5578 done
5579 rm -f conftest.$ac_ext
5580 CC=$ac_save_CC
5581
5582 fi
5583 # AC_CACHE_VAL
5584 case "x$ac_cv_prog_cc_c89" in
5585   x)
5586     { echo "$as_me:$LINENO: result: none needed" >&5
5587 echo "${ECHO_T}none needed" >&6; } ;;
5588   xno)
5589     { echo "$as_me:$LINENO: result: unsupported" >&5
5590 echo "${ECHO_T}unsupported" >&6; } ;;
5591   *)
5592     CC="$CC $ac_cv_prog_cc_c89"
5593     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5595 esac
5596
5597
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603
5604 ac_ext=cpp
5605 ac_cpp='$CXXCPP $CPPFLAGS'
5606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5609 if test -z "$CXX"; then
5610   if test -n "$CCC"; then
5611     CXX=$CCC
5612   else
5613     if test -n "$ac_tool_prefix"; then
5614   for ac_prog in g++
5615   do
5616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5620 if test "${ac_cv_prog_CXX+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   if test -n "$CXX"; then
5624   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631   for ac_exec_ext in '' $ac_executable_extensions; do
5632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5633     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 CXX=$ac_cv_prog_CXX
5644 if test -n "$CXX"; then
5645   { echo "$as_me:$LINENO: result: $CXX" >&5
5646 echo "${ECHO_T}$CXX" >&6; }
5647 else
5648   { echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6; }
5650 fi
5651
5652
5653     test -n "$CXX" && break
5654   done
5655 fi
5656 if test -z "$CXX"; then
5657   ac_ct_CXX=$CXX
5658   for ac_prog in g++
5659 do
5660   # Extract the first word of "$ac_prog", so it can be a program name with args.
5661 set dummy $ac_prog; ac_word=$2
5662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   if test -n "$ac_ct_CXX"; then
5668   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_prog_ac_ct_CXX="$ac_prog"
5678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5688 if test -n "$ac_ct_CXX"; then
5689   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5690 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5691 else
5692   { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5694 fi
5695
5696
5697   test -n "$ac_ct_CXX" && break
5698 done
5699
5700   if test "x$ac_ct_CXX" = x; then
5701     CXX="g++"
5702   else
5703     case $cross_compiling:$ac_tool_warned in
5704 yes:)
5705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5706 whose name does not start with the host triplet.  If you think this
5707 configuration is useful to you, please write to autoconf@gnu.org." >&5
5708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5709 whose name does not start with the host triplet.  If you think this
5710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5711 ac_tool_warned=yes ;;
5712 esac
5713     CXX=$ac_ct_CXX
5714   fi
5715 fi
5716
5717   fi
5718 fi
5719 # Provide some information about the compiler.
5720 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5721 ac_compiler=`set X $ac_compile; echo $2`
5722 { (ac_try="$ac_compiler --version >&5"
5723 case "(($ac_try" in
5724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725   *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728   (eval "$ac_compiler --version >&5") 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }
5732 { (ac_try="$ac_compiler -v >&5"
5733 case "(($ac_try" in
5734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735   *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738   (eval "$ac_compiler -v >&5") 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }
5742 { (ac_try="$ac_compiler -V >&5"
5743 case "(($ac_try" in
5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745   *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748   (eval "$ac_compiler -V >&5") 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }
5752
5753 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5754 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5755 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764
5765 int
5766 main ()
5767 {
5768 #ifndef __GNUC__
5769        choke me
5770 #endif
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_compile") 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5791   { (case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_try") 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; } &&
5800          { ac_try='test -s conftest.$ac_objext'
5801   { (case "(($ac_try" in
5802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803   *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806   (eval "$ac_try") 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; }; then
5810   ac_compiler_gnu=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815         ac_compiler_gnu=no
5816 fi
5817
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5820
5821 fi
5822 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5823 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5824 GXX=`test $ac_compiler_gnu = yes && echo yes`
5825 ac_test_CXXFLAGS=${CXXFLAGS+set}
5826 ac_save_CXXFLAGS=$CXXFLAGS
5827 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5828 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5829 if test "${ac_cv_prog_cxx_g+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5833    ac_cxx_werror_flag=yes
5834    ac_cv_prog_cxx_g=no
5835    CXXFLAGS="-g"
5836    cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842
5843 int
5844 main ()
5845 {
5846
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_compile") 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5866   { (case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_try") 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_try") 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; }; then
5885   ac_cv_prog_cxx_g=yes
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890         CXXFLAGS=""
5891       cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897
5898 int
5899 main ()
5900 {
5901
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910   *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913   (eval "$ac_compile") 2>conftest.er1
5914   ac_status=$?
5915   grep -v '^ *+' conftest.er1 >conftest.err
5916   rm -f conftest.er1
5917   cat conftest.err >&5
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5921   { (case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926   (eval "$ac_try") 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; } &&
5930          { ac_try='test -s conftest.$ac_objext'
5931   { (case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936   (eval "$ac_try") 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; }; then
5940   :
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5946          CXXFLAGS="-g"
5947          cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h.  */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h.  */
5953
5954 int
5955 main ()
5956 {
5957
5958   ;
5959   return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966   *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969   (eval "$ac_compile") 2>conftest.er1
5970   ac_status=$?
5971   grep -v '^ *+' conftest.er1 >conftest.err
5972   rm -f conftest.er1
5973   cat conftest.err >&5
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } &&
5976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5977   { (case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_try") 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; } &&
5986          { ac_try='test -s conftest.$ac_objext'
5987   { (case "(($ac_try" in
5988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989   *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992   (eval "$ac_try") 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   ac_cv_prog_cxx_g=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001
6002 fi
6003
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 fi
6006
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6012 fi
6013 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6014 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6015 if test "$ac_test_CXXFLAGS" = set; then
6016   CXXFLAGS=$ac_save_CXXFLAGS
6017 elif test $ac_cv_prog_cxx_g = yes; then
6018   if test "$GXX" = yes; then
6019     CXXFLAGS="-g -O2"
6020   else
6021     CXXFLAGS="-g"
6022   fi
6023 else
6024   if test "$GXX" = yes; then
6025     CXXFLAGS="-O2"
6026   else
6027     CXXFLAGS=
6028   fi
6029 fi
6030 ac_ext=c
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036 { echo "$as_me:$LINENO: checking " >&5
6037 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6038 if test "${ac_cv_has_flex+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   for ac_prog in flex lex
6042 do
6043   # Extract the first word of "$ac_prog", so it can be a program name with args.
6044 set dummy $ac_prog; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_LEX+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   if test -n "$LEX"; then
6051   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058   for ac_exec_ext in '' $ac_executable_extensions; do
6059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060     ac_cv_prog_LEX="$ac_prog"
6061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 LEX=$ac_cv_prog_LEX
6071 if test -n "$LEX"; then
6072   { echo "$as_me:$LINENO: result: $LEX" >&5
6073 echo "${ECHO_T}$LEX" >&6; }
6074 else
6075   { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6077 fi
6078
6079
6080   test -n "$LEX" && break
6081 done
6082 test -n "$LEX" || LEX=":"
6083
6084 if test -z "$LEXLIB"
6085 then
6086   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6087 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6088 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-lfl  $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099
6100 /* Override any GCC internal prototype to avoid an error.
6101    Use char because int might match the return type of a GCC
6102    builtin and then its argument prototype would still apply.  */
6103 #ifdef __cplusplus
6104 extern "C"
6105 #endif
6106 char yywrap ();
6107 int
6108 main ()
6109 {
6110 return yywrap ();
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (ac_try="$ac_link"
6117 case "(($ac_try" in
6118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119   *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122   (eval "$ac_link") 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } &&
6129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6130   { (case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_try") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; } &&
6139          { ac_try='test -s conftest$ac_exeext'
6140   { (case "(($ac_try" in
6141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142   *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145   (eval "$ac_try") 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; }; then
6149   ac_cv_lib_fl_yywrap=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154         ac_cv_lib_fl_yywrap=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext \
6158       conftest$ac_exeext conftest.$ac_ext
6159 LIBS=$ac_check_lib_save_LIBS
6160 fi
6161 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6162 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6163 if test $ac_cv_lib_fl_yywrap = yes; then
6164   LEXLIB="-lfl"
6165 else
6166   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6167 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6168 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   ac_check_lib_save_LIBS=$LIBS
6172 LIBS="-ll  $LIBS"
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179
6180 /* Override any GCC internal prototype to avoid an error.
6181    Use char because int might match the return type of a GCC
6182    builtin and then its argument prototype would still apply.  */
6183 #ifdef __cplusplus
6184 extern "C"
6185 #endif
6186 char yywrap ();
6187 int
6188 main ()
6189 {
6190 return yywrap ();
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6197 case "(($ac_try" in
6198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199   *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202   (eval "$ac_link") 2>conftest.er1
6203   ac_status=$?
6204   grep -v '^ *+' conftest.er1 >conftest.err
6205   rm -f conftest.er1
6206   cat conftest.err >&5
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } &&
6209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6210   { (case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_try") 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; } &&
6219          { ac_try='test -s conftest$ac_exeext'
6220   { (case "(($ac_try" in
6221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222   *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225   (eval "$ac_try") 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   ac_cv_lib_l_yywrap=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234         ac_cv_lib_l_yywrap=no
6235 fi
6236
6237 rm -f core conftest.err conftest.$ac_objext \
6238       conftest$ac_exeext conftest.$ac_ext
6239 LIBS=$ac_check_lib_save_LIBS
6240 fi
6241 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6242 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6243 if test $ac_cv_lib_l_yywrap = yes; then
6244   LEXLIB="-ll"
6245 fi
6246
6247 fi
6248
6249 fi
6250
6251 if test "x$LEX" != "x:"; then
6252   { echo "$as_me:$LINENO: checking lex output file root" >&5
6253 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_lex_root+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   # The minimal lex program is just a single line: %%.  But some broken lexes
6258 # (Solaris, I think it was) want two %% lines, so accommodate them.
6259 cat >conftest.l <<_ACEOF
6260 %%
6261 %%
6262 _ACEOF
6263 { (ac_try="$LEX conftest.l"
6264 case "(($ac_try" in
6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266   *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269   (eval "$LEX conftest.l") 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }
6273 if test -f lex.yy.c; then
6274   ac_cv_prog_lex_root=lex.yy
6275 elif test -f lexyy.c; then
6276   ac_cv_prog_lex_root=lexyy
6277 else
6278   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6279 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6280    { (exit 1); exit 1; }; }
6281 fi
6282 fi
6283 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6284 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6285 rm -f conftest.l
6286 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6287
6288 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6289 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   # POSIX says lex can declare yytext either as a pointer or an array; the
6294 # default is implementation-dependent. Figure out which it is, since
6295 # not all implementations provide the %pointer and %array declarations.
6296 ac_cv_prog_lex_yytext_pointer=no
6297 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6298 ac_save_LIBS=$LIBS
6299 LIBS="$LIBS $LEXLIB"
6300 cat >conftest.$ac_ext <<_ACEOF
6301 `cat $LEX_OUTPUT_ROOT.c`
6302 _ACEOF
6303 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (ac_try="$ac_link"
6305 case "(($ac_try" in
6306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307   *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310   (eval "$ac_link") 2>conftest.er1
6311   ac_status=$?
6312   grep -v '^ *+' conftest.er1 >conftest.err
6313   rm -f conftest.er1
6314   cat conftest.err >&5
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } &&
6317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6318   { (case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_try") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; } &&
6327          { ac_try='test -s conftest$ac_exeext'
6328   { (case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_try") 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; }; then
6337   ac_cv_prog_lex_yytext_pointer=yes
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342
6343 fi
6344
6345 rm -f core conftest.err conftest.$ac_objext \
6346       conftest$ac_exeext conftest.$ac_ext
6347 LIBS=$ac_save_LIBS
6348 rm -f "${LEX_OUTPUT_ROOT}.c"
6349
6350 fi
6351 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6352 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6353 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define YYTEXT_POINTER 1
6357 _ACEOF
6358
6359 fi
6360
6361 fi
6362
6363 fi
6364 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6365 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6366 if test "$LEX" != "flex"; then
6367   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6368 echo "$as_me: error: flex not found but required" >&2;}
6369    { (exit 1); exit 1; }; }
6370 else
6371   FLEX=flex
6372
6373 fi
6374
6375 { echo "$as_me:$LINENO: checking " >&5
6376 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6377 if test "${llvm_cv_has_bison+set}" = set; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   for ac_prog in 'bison -y' byacc
6381 do
6382   # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_YACC+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   if test -n "$YACC"; then
6390   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_prog_YACC="$ac_prog"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 YACC=$ac_cv_prog_YACC
6410 if test -n "$YACC"; then
6411   { echo "$as_me:$LINENO: result: $YACC" >&5
6412 echo "${ECHO_T}$YACC" >&6; }
6413 else
6414   { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6416 fi
6417
6418
6419   test -n "$YACC" && break
6420 done
6421 test -n "$YACC" || YACC="yacc"
6422
6423 fi
6424 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6425 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6426 if test "$YACC" != "bison -y"; then
6427
6428   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6429 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6430 else
6431   BISON=bison
6432
6433 fi
6434
6435 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6436 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6437 if test "${lt_cv_path_NM+set}" = set; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   if test -n "$NM"; then
6441   # Let the user override the test.
6442   lt_cv_path_NM="$NM"
6443 else
6444   lt_nm_to_check="${ac_tool_prefix}nm"
6445   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6446     lt_nm_to_check="$lt_nm_to_check nm"
6447   fi
6448   for lt_tmp_nm in $lt_nm_to_check; do
6449     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6451       IFS="$lt_save_ifs"
6452       test -z "$ac_dir" && ac_dir=.
6453       tmp_nm="$ac_dir/$lt_tmp_nm"
6454       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6455         # Check to see if the nm accepts a BSD-compat flag.
6456         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6457         #   nm: unknown option "B" ignored
6458         # Tru64's nm complains that /dev/null is an invalid object file
6459         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6460         */dev/null* | *'Invalid file or object type'*)
6461           lt_cv_path_NM="$tmp_nm -B"
6462           break
6463           ;;
6464         *)
6465           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6466           */dev/null*)
6467             lt_cv_path_NM="$tmp_nm -p"
6468             break
6469             ;;
6470           *)
6471             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6472             continue # so that we can try to find one that supports BSD flags
6473             ;;
6474           esac
6475           ;;
6476         esac
6477       fi
6478     done
6479     IFS="$lt_save_ifs"
6480   done
6481   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6482 fi
6483 fi
6484 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6485 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6486 NM="$lt_cv_path_NM"
6487
6488
6489
6490 { echo "$as_me:$LINENO: checking for GNU make" >&5
6491 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6492 if test "${llvm_cv_gnu_make_command+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   llvm_cv_gnu_make_command=''
6496  for a in "$MAKE" make gmake gnumake ; do
6497   if test -z "$a" ; then continue ; fi ;
6498   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6499   then
6500    llvm_cv_gnu_make_command=$a ;
6501    break;
6502   fi
6503  done
6504 fi
6505 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6506 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6507  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6508    ifGNUmake='' ;
6509  else
6510    ifGNUmake='#' ;
6511    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6512 echo "${ECHO_T}\"Not found\"" >&6; };
6513  fi
6514
6515
6516 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6517 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6518 LN_S=$as_ln_s
6519 if test "$LN_S" = "ln -s"; then
6520   { echo "$as_me:$LINENO: result: yes" >&5
6521 echo "${ECHO_T}yes" >&6; }
6522 else
6523   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6524 echo "${ECHO_T}no, using $LN_S" >&6; }
6525 fi
6526
6527 # Extract the first word of "cmp", so it can be a program name with args.
6528 set dummy cmp; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_path_CMP+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   case $CMP in
6535   [\\/]* | ?:[\\/]*)
6536   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6537   ;;
6538   *)
6539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544   for ac_exec_ext in '' $ac_executable_extensions; do
6545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551 done
6552 IFS=$as_save_IFS
6553
6554   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6555   ;;
6556 esac
6557 fi
6558 CMP=$ac_cv_path_CMP
6559 if test -n "$CMP"; then
6560   { echo "$as_me:$LINENO: result: $CMP" >&5
6561 echo "${ECHO_T}$CMP" >&6; }
6562 else
6563   { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6565 fi
6566
6567
6568 # Extract the first word of "cp", so it can be a program name with args.
6569 set dummy cp; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_path_CP+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   case $CP in
6576   [\\/]* | ?:[\\/]*)
6577   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6578   ;;
6579   *)
6580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6596   ;;
6597 esac
6598 fi
6599 CP=$ac_cv_path_CP
6600 if test -n "$CP"; then
6601   { echo "$as_me:$LINENO: result: $CP" >&5
6602 echo "${ECHO_T}$CP" >&6; }
6603 else
6604   { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6606 fi
6607
6608
6609 # Extract the first word of "date", so it can be a program name with args.
6610 set dummy date; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_path_DATE+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   case $DATE in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626   for ac_exec_ext in '' $ac_executable_extensions; do
6627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6628     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6637   ;;
6638 esac
6639 fi
6640 DATE=$ac_cv_path_DATE
6641 if test -n "$DATE"; then
6642   { echo "$as_me:$LINENO: result: $DATE" >&5
6643 echo "${ECHO_T}$DATE" >&6; }
6644 else
6645   { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6647 fi
6648
6649
6650 # Extract the first word of "find", so it can be a program name with args.
6651 set dummy find; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_path_FIND+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   case $FIND in
6658   [\\/]* | ?:[\\/]*)
6659   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6660   ;;
6661   *)
6662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667   for ac_exec_ext in '' $ac_executable_extensions; do
6668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6669     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6678   ;;
6679 esac
6680 fi
6681 FIND=$ac_cv_path_FIND
6682 if test -n "$FIND"; then
6683   { echo "$as_me:$LINENO: result: $FIND" >&5
6684 echo "${ECHO_T}$FIND" >&6; }
6685 else
6686   { echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6; }
6688 fi
6689
6690
6691 # Extract the first word of "grep", so it can be a program name with args.
6692 set dummy grep; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_path_GREP+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   case $GREP in
6699   [\\/]* | ?:[\\/]*)
6700   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6701   ;;
6702   *)
6703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708   for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6719   ;;
6720 esac
6721 fi
6722 GREP=$ac_cv_path_GREP
6723 if test -n "$GREP"; then
6724   { echo "$as_me:$LINENO: result: $GREP" >&5
6725 echo "${ECHO_T}$GREP" >&6; }
6726 else
6727   { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6729 fi
6730
6731
6732 # Extract the first word of "mkdir", so it can be a program name with args.
6733 set dummy mkdir; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_MKDIR+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   case $MKDIR in
6740   [\\/]* | ?:[\\/]*)
6741   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6742   ;;
6743   *)
6744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6760   ;;
6761 esac
6762 fi
6763 MKDIR=$ac_cv_path_MKDIR
6764 if test -n "$MKDIR"; then
6765   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6766 echo "${ECHO_T}$MKDIR" >&6; }
6767 else
6768   { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6770 fi
6771
6772
6773 # Extract the first word of "mv", so it can be a program name with args.
6774 set dummy mv; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_path_MV+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   case $MV in
6781   [\\/]* | ?:[\\/]*)
6782   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6783   ;;
6784   *)
6785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790   for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6801   ;;
6802 esac
6803 fi
6804 MV=$ac_cv_path_MV
6805 if test -n "$MV"; then
6806   { echo "$as_me:$LINENO: result: $MV" >&5
6807 echo "${ECHO_T}$MV" >&6; }
6808 else
6809   { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6812
6813
6814 if test -n "$ac_tool_prefix"; then
6815   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_RANLIB+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   if test -n "$RANLIB"; then
6823   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830   for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 RANLIB=$ac_cv_prog_RANLIB
6843 if test -n "$RANLIB"; then
6844   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6845 echo "${ECHO_T}$RANLIB" >&6; }
6846 else
6847   { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_RANLIB"; then
6854   ac_ct_RANLIB=$RANLIB
6855   # Extract the first word of "ranlib", so it can be a program name with args.
6856 set dummy ranlib; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   if test -n "$ac_ct_RANLIB"; then
6863   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_ac_ct_RANLIB="ranlib"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6883 if test -n "$ac_ct_RANLIB"; then
6884   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6885 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891   if test "x$ac_ct_RANLIB" = x; then
6892     RANLIB=":"
6893   else
6894     case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet.  If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     RANLIB=$ac_ct_RANLIB
6905   fi
6906 else
6907   RANLIB="$ac_cv_prog_RANLIB"
6908 fi
6909
6910 # Extract the first word of "rm", so it can be a program name with args.
6911 set dummy rm; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_RM+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   case $RM in
6918   [\\/]* | ?:[\\/]*)
6919   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6920   ;;
6921   *)
6922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6938   ;;
6939 esac
6940 fi
6941 RM=$ac_cv_path_RM
6942 if test -n "$RM"; then
6943   { echo "$as_me:$LINENO: result: $RM" >&5
6944 echo "${ECHO_T}$RM" >&6; }
6945 else
6946   { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6948 fi
6949
6950
6951 # Extract the first word of "sed", so it can be a program name with args.
6952 set dummy sed; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_path_SED+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   case $SED in
6959   [\\/]* | ?:[\\/]*)
6960   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6961   ;;
6962   *)
6963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968   for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6979   ;;
6980 esac
6981 fi
6982 SED=$ac_cv_path_SED
6983 if test -n "$SED"; then
6984   { echo "$as_me:$LINENO: result: $SED" >&5
6985 echo "${ECHO_T}$SED" >&6; }
6986 else
6987   { echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6; }
6989 fi
6990
6991
6992 # Extract the first word of "tar", so it can be a program name with args.
6993 set dummy tar; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_TAR+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   case $TAR in
7000   [\\/]* | ?:[\\/]*)
7001   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7002   ;;
7003   *)
7004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009   for ac_exec_ext in '' $ac_executable_extensions; do
7010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7020   ;;
7021 esac
7022 fi
7023 TAR=$ac_cv_path_TAR
7024 if test -n "$TAR"; then
7025   { echo "$as_me:$LINENO: result: $TAR" >&5
7026 echo "${ECHO_T}$TAR" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032
7033 # Extract the first word of "pwd", so it can be a program name with args.
7034 set dummy pwd; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_path_BINPWD+set}" = set; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   case $BINPWD in
7041   [\\/]* | ?:[\\/]*)
7042   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7043   ;;
7044   *)
7045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050   for ac_exec_ext in '' $ac_executable_extensions; do
7051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054     break 2
7055   fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7061   ;;
7062 esac
7063 fi
7064 BINPWD=$ac_cv_path_BINPWD
7065 if test -n "$BINPWD"; then
7066   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7067 echo "${ECHO_T}$BINPWD" >&6; }
7068 else
7069   { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7071 fi
7072
7073
7074
7075 # Extract the first word of "Graphviz", so it can be a program name with args.
7076 set dummy Graphviz; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   case $GRAPHVIZ in
7083   [\\/]* | ?:[\\/]*)
7084   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7085   ;;
7086   *)
7087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7103   ;;
7104 esac
7105 fi
7106 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7107 if test -n "$GRAPHVIZ"; then
7108   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7109 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115
7116 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7117
7118 cat >>confdefs.h <<\_ACEOF
7119 #define HAVE_GRAPHVIZ 1
7120 _ACEOF
7121
7122     if test "$llvm_cv_os_type" == "MingW" ; then
7123     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7124   fi
7125
7126 cat >>confdefs.h <<_ACEOF
7127 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7128 _ACEOF
7129
7130 fi
7131 # Extract the first word of "dot", so it can be a program name with args.
7132 set dummy dot; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_DOT+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   case $DOT in
7139   [\\/]* | ?:[\\/]*)
7140   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7141   ;;
7142   *)
7143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148   for ac_exec_ext in '' $ac_executable_extensions; do
7149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7159   ;;
7160 esac
7161 fi
7162 DOT=$ac_cv_path_DOT
7163 if test -n "$DOT"; then
7164   { echo "$as_me:$LINENO: result: $DOT" >&5
7165 echo "${ECHO_T}$DOT" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171
7172 if test "$DOT" != "echo dot" ; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define HAVE_DOT 1
7176 _ACEOF
7177
7178     if test "$llvm_cv_os_type" == "MingW" ; then
7179     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7180   fi
7181
7182 cat >>confdefs.h <<_ACEOF
7183 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7184 _ACEOF
7185
7186 fi
7187 for ac_prog in gv gsview32
7188 do
7189   # Extract the first word of "$ac_prog", so it can be a program name with args.
7190 set dummy $ac_prog; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_GV+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $GV in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   ;;
7217 esac
7218 fi
7219 GV=$ac_cv_path_GV
7220 if test -n "$GV"; then
7221   { echo "$as_me:$LINENO: result: $GV" >&5
7222 echo "${ECHO_T}$GV" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229   test -n "$GV" && break
7230 done
7231 test -n "$GV" || GV="echo gv"
7232
7233 if test "$GV" != "echo gv" ; then
7234
7235 cat >>confdefs.h <<\_ACEOF
7236 #define HAVE_GV 1
7237 _ACEOF
7238
7239     if test "$llvm_cv_os_type" == "MingW" ; then
7240     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7241   fi
7242
7243 cat >>confdefs.h <<_ACEOF
7244 #define LLVM_PATH_GV "$GV${EXEEXT}"
7245 _ACEOF
7246
7247 fi
7248 # Extract the first word of "dotty", so it can be a program name with args.
7249 set dummy dotty; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_path_DOTTY+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   case $DOTTY in
7256   [\\/]* | ?:[\\/]*)
7257   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7258   ;;
7259   *)
7260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265   for ac_exec_ext in '' $ac_executable_extensions; do
7266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7276   ;;
7277 esac
7278 fi
7279 DOTTY=$ac_cv_path_DOTTY
7280 if test -n "$DOTTY"; then
7281   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7282 echo "${ECHO_T}$DOTTY" >&6; }
7283 else
7284   { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7286 fi
7287
7288
7289 if test "$DOTTY" != "echo dotty" ; then
7290
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_DOTTY 1
7293 _ACEOF
7294
7295     if test "$llvm_cv_os_type" == "MingW" ; then
7296     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7297   fi
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7301 _ACEOF
7302
7303 fi
7304
7305
7306 # Extract the first word of "perl", so it can be a program name with args.
7307 set dummy perl; ac_word=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_path_PERL+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   case $PERL in
7314   [\\/]* | ?:[\\/]*)
7315   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7316   ;;
7317   *)
7318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321   IFS=$as_save_IFS
7322   test -z "$as_dir" && as_dir=.
7323   for ac_exec_ext in '' $ac_executable_extensions; do
7324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327     break 2
7328   fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7334   ;;
7335 esac
7336 fi
7337 PERL=$ac_cv_path_PERL
7338 if test -n "$PERL"; then
7339   { echo "$as_me:$LINENO: result: $PERL" >&5
7340 echo "${ECHO_T}$PERL" >&6; }
7341 else
7342   { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7344 fi
7345
7346
7347 if test "$PERL" != "none"; then
7348   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7349 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7350   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7351     { echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6; }
7353   else
7354     PERL=none
7355     { echo "$as_me:$LINENO: result: not found" >&5
7356 echo "${ECHO_T}not found" >&6; }
7357   fi
7358 fi
7359
7360
7361 if test x"$PERL" = xnone; then
7362    HAVE_PERL=0
7363
7364 else
7365    HAVE_PERL=1
7366
7367 fi
7368
7369 # Find a good install program.  We prefer a C program (faster),
7370 # so one script is as good as another.  But avoid the broken or
7371 # incompatible versions:
7372 # SysV /etc/install, /usr/sbin/install
7373 # SunOS /usr/etc/install
7374 # IRIX /sbin/install
7375 # AIX /bin/install
7376 # AmigaOS /C/install, which installs bootblocks on floppy discs
7377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7380 # OS/2's system install, which has a completely different semantic
7381 # ./install, which can be erroneously created by make from ./install.sh.
7382 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7383 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7384 if test -z "$INSTALL"; then
7385 if test "${ac_cv_path_install+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393   # Account for people who put trailing slashes in PATH elements.
7394 case $as_dir/ in
7395   ./ | .// | /cC/* | \
7396   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7397   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7398   /usr/ucb/* ) ;;
7399   *)
7400     # OSF1 and SCO ODT 3.0 have their own names for install.
7401     # Don't use installbsd from OSF since it installs stuff as root
7402     # by default.
7403     for ac_prog in ginstall scoinst install; do
7404       for ac_exec_ext in '' $ac_executable_extensions; do
7405         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7406           if test $ac_prog = install &&
7407             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7408             # AIX install.  It has an incompatible calling convention.
7409             :
7410           elif test $ac_prog = install &&
7411             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7412             # program-specific install script used by HP pwplus--don't use.
7413             :
7414           else
7415             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7416             break 3
7417           fi
7418         fi
7419       done
7420     done
7421     ;;
7422 esac
7423 done
7424 IFS=$as_save_IFS
7425
7426
7427 fi
7428   if test "${ac_cv_path_install+set}" = set; then
7429     INSTALL=$ac_cv_path_install
7430   else
7431     # As a last resort, use the slow shell script.  Don't cache a
7432     # value for INSTALL within a source directory, because that will
7433     # break other packages using the cache if that directory is
7434     # removed, or if the value is a relative name.
7435     INSTALL=$ac_install_sh
7436   fi
7437 fi
7438 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7439 echo "${ECHO_T}$INSTALL" >&6; }
7440
7441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7442 # It thinks the first close brace ends the variable substitution.
7443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7444
7445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7446
7447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7448
7449
7450 # Extract the first word of "bzip2", so it can be a program name with args.
7451 set dummy bzip2; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_BZIP2+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $BZIP2 in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7478   ;;
7479 esac
7480 fi
7481 BZIP2=$ac_cv_path_BZIP2
7482 if test -n "$BZIP2"; then
7483   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7484 echo "${ECHO_T}$BZIP2" >&6; }
7485 else
7486   { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7488 fi
7489
7490
7491 # Extract the first word of "doxygen", so it can be a program name with args.
7492 set dummy doxygen; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $DOXYGEN in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7519   ;;
7520 esac
7521 fi
7522 DOXYGEN=$ac_cv_path_DOXYGEN
7523 if test -n "$DOXYGEN"; then
7524   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7525 echo "${ECHO_T}$DOXYGEN" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532 # Extract the first word of "groff", so it can be a program name with args.
7533 set dummy groff; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_path_GROFF+set}" = set; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539   case $GROFF in
7540   [\\/]* | ?:[\\/]*)
7541   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7542   ;;
7543   *)
7544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549   for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7560   ;;
7561 esac
7562 fi
7563 GROFF=$ac_cv_path_GROFF
7564 if test -n "$GROFF"; then
7565   { echo "$as_me:$LINENO: result: $GROFF" >&5
7566 echo "${ECHO_T}$GROFF" >&6; }
7567 else
7568   { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7570 fi
7571
7572
7573 # Extract the first word of "gzip", so it can be a program name with args.
7574 set dummy gzip; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_path_GZIP+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   case $GZIP in
7581   [\\/]* | ?:[\\/]*)
7582   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7583   ;;
7584   *)
7585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590   for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7601   ;;
7602 esac
7603 fi
7604 GZIP=$ac_cv_path_GZIP
7605 if test -n "$GZIP"; then
7606   { echo "$as_me:$LINENO: result: $GZIP" >&5
7607 echo "${ECHO_T}$GZIP" >&6; }
7608 else
7609   { echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6; }
7611 fi
7612
7613
7614 # Extract the first word of "pod2html", so it can be a program name with args.
7615 set dummy pod2html; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_POD2HTML+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $POD2HTML in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7642   ;;
7643 esac
7644 fi
7645 POD2HTML=$ac_cv_path_POD2HTML
7646 if test -n "$POD2HTML"; then
7647   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7648 echo "${ECHO_T}$POD2HTML" >&6; }
7649 else
7650   { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7652 fi
7653
7654
7655 # Extract the first word of "pod2man", so it can be a program name with args.
7656 set dummy pod2man; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_POD2MAN+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   case $POD2MAN in
7663   [\\/]* | ?:[\\/]*)
7664   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7665   ;;
7666   *)
7667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672   for ac_exec_ext in '' $ac_executable_extensions; do
7673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7683   ;;
7684 esac
7685 fi
7686 POD2MAN=$ac_cv_path_POD2MAN
7687 if test -n "$POD2MAN"; then
7688   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7689 echo "${ECHO_T}$POD2MAN" >&6; }
7690 else
7691   { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7693 fi
7694
7695
7696 # Extract the first word of "runtest", so it can be a program name with args.
7697 set dummy runtest; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_path_RUNTEST+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   case $RUNTEST in
7704   [\\/]* | ?:[\\/]*)
7705   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7706   ;;
7707   *)
7708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713   for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7724   ;;
7725 esac
7726 fi
7727 RUNTEST=$ac_cv_path_RUNTEST
7728 if test -n "$RUNTEST"; then
7729   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7730 echo "${ECHO_T}$RUNTEST" >&6; }
7731 else
7732   { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7734 fi
7735
7736
7737
7738 no_itcl=true
7739 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7740 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7741
7742 # Check whether --with-tclinclude was given.
7743 if test "${with_tclinclude+set}" = set; then
7744   withval=$with_tclinclude; with_tclinclude=${withval}
7745 else
7746   with_tclinclude=''
7747 fi
7748
7749 if test "${ac_cv_path_tclsh+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752
7753 if test x"${with_tclinclude}" != x ; then
7754   if test -f ${with_tclinclude}/tclsh ; then
7755     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7756   elif test -f ${with_tclinclude}/src/tclsh ; then
7757     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7758   else
7759     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7760 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7761    { (exit 1); exit 1; }; }
7762   fi
7763 fi
7764
7765 if test x"${ac_cv_path_tclsh}" = x ; then
7766   { echo "$as_me:$LINENO: result: none" >&5
7767 echo "${ECHO_T}none" >&6; }
7768   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
7769 do
7770   # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_TCLSH+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   case $TCLSH in
7778   [\\/]* | ?:[\\/]*)
7779   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7780   ;;
7781   *)
7782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787   for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797   ;;
7798 esac
7799 fi
7800 TCLSH=$ac_cv_path_TCLSH
7801 if test -n "$TCLSH"; then
7802   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7803 echo "${ECHO_T}$TCLSH" >&6; }
7804 else
7805   { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7807 fi
7808
7809
7810   test -n "$TCLSH" && break
7811 done
7812
7813   if test x"${TCLSH}" = x ; then
7814     ac_cv_path_tclsh='';
7815   else
7816     ac_cv_path_tclsh="${TCLSH}";
7817   fi
7818 else
7819   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7820 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7821   TCLSH="${ac_cv_path_tclsh}"
7822
7823 fi
7824
7825 fi
7826
7827 # Extract the first word of "zip", so it can be a program name with args.
7828 set dummy zip; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_ZIP+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   case $ZIP in
7835   [\\/]* | ?:[\\/]*)
7836   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7837   ;;
7838   *)
7839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844   for ac_exec_ext in '' $ac_executable_extensions; do
7845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7855   ;;
7856 esac
7857 fi
7858 ZIP=$ac_cv_path_ZIP
7859 if test -n "$ZIP"; then
7860   { echo "$as_me:$LINENO: result: $ZIP" >&5
7861 echo "${ECHO_T}$ZIP" >&6; }
7862 else
7863   { echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6; }
7865 fi
7866
7867
7868
7869 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7870 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_use_r+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874    ac_ext=c
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880   oldcflags="$CFLAGS"
7881   CFLAGS="$CFLAGS -Wl,-R."
7882   cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h.  */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h.  */
7888
7889 int
7890 main ()
7891 {
7892 int main() { return 0; }
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_link") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } &&
7911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912   { (case "(($ac_try" in
7913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914   *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917   (eval "$ac_try") 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest$ac_exeext'
7922   { (case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_try") 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   llvm_cv_link_use_r=yes
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936         llvm_cv_link_use_r=no
7937 fi
7938
7939 rm -f core conftest.err conftest.$ac_objext \
7940       conftest$ac_exeext conftest.$ac_ext
7941   CFLAGS="$oldcflags"
7942   ac_ext=c
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948
7949 fi
7950 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7951 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7952 if test "$llvm_cv_link_use_r" = yes ; then
7953
7954 cat >>confdefs.h <<\_ACEOF
7955 #define HAVE_LINK_R 1
7956 _ACEOF
7957
7958   fi
7959
7960
7961
7962
7963 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7964 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7965 if test "${ac_cv_c_const+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974
7975 int
7976 main ()
7977 {
7978 /* FIXME: Include the comments suggested by Paul. */
7979 #ifndef __cplusplus
7980   /* Ultrix mips cc rejects this.  */
7981   typedef int charset[2];
7982   const charset x;
7983   /* SunOS 4.1.1 cc rejects this.  */
7984   char const *const *ccp;
7985   char **p;
7986   /* NEC SVR4.0.2 mips cc rejects this.  */
7987   struct point {int x, y;};
7988   static struct point const zero = {0,0};
7989   /* AIX XL C 1.02.0.0 rejects this.
7990      It does not let you subtract one const X* pointer from another in
7991      an arm of an if-expression whose if-part is not a constant
7992      expression */
7993   const char *g = "string";
7994   ccp = &g + (g ? g-g : 0);
7995   /* HPUX 7.0 cc rejects these. */
7996   ++ccp;
7997   p = (char**) ccp;
7998   ccp = (char const *const *) p;
7999   { /* SCO 3.2v4 cc rejects this.  */
8000     char *t;
8001     char const *s = 0 ? (char *) 0 : (char const *) 0;
8002
8003     *t++ = 0;
8004     if (s) return 0;
8005   }
8006   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8007     int x[] = {25, 17};
8008     const int *foo = &x[0];
8009     ++foo;
8010   }
8011   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8012     typedef const int *iptr;
8013     iptr p = 0;
8014     ++p;
8015   }
8016   { /* AIX XL C 1.02.0.0 rejects this saying
8017        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8018     struct s { int j; const int *ap[3]; };
8019     struct s *b; b->j = 5;
8020   }
8021   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8022     const int foo = 10;
8023     if (!foo) return 0;
8024   }
8025   return !x[0] && !zero.x;
8026 #endif
8027
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_compile") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047   { (case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_try") 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest.$ac_objext'
8057   { (case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062   (eval "$ac_try") 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   ac_cv_c_const=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071         ac_cv_c_const=no
8072 fi
8073
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 fi
8076 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8077 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8078 if test $ac_cv_c_const = no; then
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define const
8082 _ACEOF
8083
8084 fi
8085
8086
8087
8088
8089
8090
8091 ac_header_dirent=no
8092 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8093   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8094 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8095 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 #include <sys/types.h>
8106 #include <$ac_hdr>
8107
8108 int
8109 main ()
8110 {
8111 if ((DIR *) 0)
8112 return 0;
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8119 case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_compile") 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; } &&
8141          { ac_try='test -s conftest.$ac_objext'
8142   { (case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_try") 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; }; then
8151   eval "$as_ac_Header=yes"
8152 else
8153   echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156         eval "$as_ac_Header=no"
8157 fi
8158
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 fi
8161 ac_res=`eval echo '${'$as_ac_Header'}'`
8162                { echo "$as_me:$LINENO: result: $ac_res" >&5
8163 echo "${ECHO_T}$ac_res" >&6; }
8164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8165   cat >>confdefs.h <<_ACEOF
8166 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8167 _ACEOF
8168
8169 ac_header_dirent=$ac_hdr; break
8170 fi
8171
8172 done
8173 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8174 if test $ac_header_dirent = dirent.h; then
8175   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8177 if test "${ac_cv_search_opendir+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   ac_func_search_save_LIBS=$LIBS
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187
8188 /* Override any GCC internal prototype to avoid an error.
8189    Use char because int might match the return type of a GCC
8190    builtin and then its argument prototype would still apply.  */
8191 #ifdef __cplusplus
8192 extern "C"
8193 #endif
8194 char opendir ();
8195 int
8196 main ()
8197 {
8198 return opendir ();
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 for ac_lib in '' dir; do
8204   if test -z "$ac_lib"; then
8205     ac_res="none required"
8206   else
8207     ac_res=-l$ac_lib
8208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8209   fi
8210   rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (ac_try="$ac_link"
8212 case "(($ac_try" in
8213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214   *) ac_try_echo=$ac_try;;
8215 esac
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217   (eval "$ac_link") 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225   { (case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_try") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; } &&
8234          { ac_try='test -s conftest$ac_exeext'
8235   { (case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_try") 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); }; }; then
8244   ac_cv_search_opendir=$ac_res
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249
8250 fi
8251
8252 rm -f core conftest.err conftest.$ac_objext \
8253       conftest$ac_exeext
8254   if test "${ac_cv_search_opendir+set}" = set; then
8255   break
8256 fi
8257 done
8258 if test "${ac_cv_search_opendir+set}" = set; then
8259   :
8260 else
8261   ac_cv_search_opendir=no
8262 fi
8263 rm conftest.$ac_ext
8264 LIBS=$ac_func_search_save_LIBS
8265 fi
8266 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8267 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8268 ac_res=$ac_cv_search_opendir
8269 if test "$ac_res" != no; then
8270   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8271
8272 fi
8273
8274 else
8275   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8276 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8277 if test "${ac_cv_search_opendir+set}" = set; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280   ac_func_search_save_LIBS=$LIBS
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 /* Override any GCC internal prototype to avoid an error.
8289    Use char because int might match the return type of a GCC
8290    builtin and then its argument prototype would still apply.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 char opendir ();
8295 int
8296 main ()
8297 {
8298 return opendir ();
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 for ac_lib in '' x; do
8304   if test -z "$ac_lib"; then
8305     ac_res="none required"
8306   else
8307     ac_res=-l$ac_lib
8308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8309   fi
8310   rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8312 case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_link") 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } &&
8324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325   { (case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330   (eval "$ac_try") 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; } &&
8334          { ac_try='test -s conftest$ac_exeext'
8335   { (case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340   (eval "$ac_try") 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   ac_cv_search_opendir=$ac_res
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349
8350 fi
8351
8352 rm -f core conftest.err conftest.$ac_objext \
8353       conftest$ac_exeext
8354   if test "${ac_cv_search_opendir+set}" = set; then
8355   break
8356 fi
8357 done
8358 if test "${ac_cv_search_opendir+set}" = set; then
8359   :
8360 else
8361   ac_cv_search_opendir=no
8362 fi
8363 rm conftest.$ac_ext
8364 LIBS=$ac_func_search_save_LIBS
8365 fi
8366 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8367 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8368 ac_res=$ac_cv_search_opendir
8369 if test "$ac_res" != no; then
8370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8371
8372 fi
8373
8374 fi
8375
8376
8377 for ac_header in dlfcn.h
8378 do
8379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 fi
8386 ac_res=`eval echo '${'$as_ac_Header'}'`
8387                { echo "$as_me:$LINENO: result: $ac_res" >&5
8388 echo "${ECHO_T}$ac_res" >&6; }
8389 else
8390   # Is the header compilable?
8391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h.  */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h.  */
8399 $ac_includes_default
8400 #include <$ac_header>
8401 _ACEOF
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8404 case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_compile") 2>conftest.er1
8410   ac_status=$?
8411   grep -v '^ *+' conftest.er1 >conftest.err
8412   rm -f conftest.er1
8413   cat conftest.err >&5
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } &&
8416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417   { (case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422   (eval "$ac_try") 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; } &&
8426          { ac_try='test -s conftest.$ac_objext'
8427   { (case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432   (eval "$ac_try") 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_header_compiler=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441         ac_header_compiler=no
8442 fi
8443
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8446 echo "${ECHO_T}$ac_header_compiler" >&6; }
8447
8448 # Is the header present?
8449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457 #include <$ac_header>
8458 _ACEOF
8459 if { (ac_try="$ac_cpp conftest.$ac_ext"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } >/dev/null; then
8472   if test -s conftest.err; then
8473     ac_cpp_err=$ac_c_preproc_warn_flag
8474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8475   else
8476     ac_cpp_err=
8477   fi
8478 else
8479   ac_cpp_err=yes
8480 fi
8481 if test -z "$ac_cpp_err"; then
8482   ac_header_preproc=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487   ac_header_preproc=no
8488 fi
8489
8490 rm -f conftest.err conftest.$ac_ext
8491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8492 echo "${ECHO_T}$ac_header_preproc" >&6; }
8493
8494 # So?  What about this header?
8495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8496   yes:no: )
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8501     ac_header_preproc=yes
8502     ;;
8503   no:yes:* )
8504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8516     ( cat <<\_ASBOX
8517 ## ----------------------------------- ##
8518 ## Report this to llvmbugs@cs.uiuc.edu ##
8519 ## ----------------------------------- ##
8520 _ASBOX
8521      ) | sed "s/^/$as_me: WARNING:     /" >&2
8522     ;;
8523 esac
8524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   eval "$as_ac_Header=\$ac_header_preproc"
8530 fi
8531 ac_res=`eval echo '${'$as_ac_Header'}'`
8532                { echo "$as_me:$LINENO: result: $ac_res" >&5
8533 echo "${ECHO_T}$ac_res" >&6; }
8534
8535 fi
8536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8537   cat >>confdefs.h <<_ACEOF
8538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8539 _ACEOF
8540
8541 fi
8542
8543 done
8544
8545 # Check whether --enable-ltdl-install was given.
8546 if test "${enable_ltdl_install+set}" = set; then
8547   enableval=$enable_ltdl_install;
8548 fi
8549
8550
8551
8552
8553 if test x"${enable_ltdl_install-no}" != xno; then
8554   INSTALL_LTDL_TRUE=
8555   INSTALL_LTDL_FALSE='#'
8556 else
8557   INSTALL_LTDL_TRUE='#'
8558   INSTALL_LTDL_FALSE=
8559 fi
8560
8561
8562
8563 if test x"${enable_ltdl_convenience-no}" != xno; then
8564   CONVENIENCE_LTDL_TRUE=
8565   CONVENIENCE_LTDL_FALSE='#'
8566 else
8567   CONVENIENCE_LTDL_TRUE='#'
8568   CONVENIENCE_LTDL_FALSE=
8569 fi
8570
8571
8572 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8573 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8574 library_names_spec=
8575 libname_spec='lib$name'
8576 soname_spec=
8577 shrext_cmds=".so"
8578 postinstall_cmds=
8579 postuninstall_cmds=
8580 finish_cmds=
8581 finish_eval=
8582 shlibpath_var=
8583 shlibpath_overrides_runpath=unknown
8584 version_type=none
8585 dynamic_linker="$host_os ld.so"
8586 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8587 if test "$GCC" = yes; then
8588   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8589   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8590     # if the path contains ";" then we assume it to be the separator
8591     # otherwise default to the standard path separator (i.e. ":") - it is
8592     # assumed that no part of a normal pathname contains ";" but that should
8593     # okay in the real world where ";" in dirpaths is itself problematic.
8594     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8595   else
8596     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8597   fi
8598 else
8599   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8600 fi
8601 need_lib_prefix=unknown
8602 hardcode_into_libs=no
8603
8604 # when you set need_version to no, make sure it does not cause -set_version
8605 # flags to be left without arguments
8606 need_version=unknown
8607
8608 case $host_os in
8609 aix3*)
8610   version_type=linux
8611   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8612   shlibpath_var=LIBPATH
8613
8614   # AIX 3 has no versioning support, so we append a major version to the name.
8615   soname_spec='${libname}${release}${shared_ext}$major'
8616   ;;
8617
8618 aix4* | aix5*)
8619   version_type=linux
8620   need_lib_prefix=no
8621   need_version=no
8622   hardcode_into_libs=yes
8623   if test "$host_cpu" = ia64; then
8624     # AIX 5 supports IA64
8625     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8626     shlibpath_var=LD_LIBRARY_PATH
8627   else
8628     # With GCC up to 2.95.x, collect2 would create an import file
8629     # for dependence libraries.  The import file would start with
8630     # the line `#! .'.  This would cause the generated library to
8631     # depend on `.', always an invalid library.  This was fixed in
8632     # development snapshots of GCC prior to 3.0.
8633     case $host_os in
8634       aix4 | aix4.[01] | aix4.[01].*)
8635       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8636            echo ' yes '
8637            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8638         :
8639       else
8640         can_build_shared=no
8641       fi
8642       ;;
8643     esac
8644     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8645     # soname into executable. Probably we can add versioning support to
8646     # collect2, so additional links can be useful in future.
8647     if test "$aix_use_runtimelinking" = yes; then
8648       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8649       # instead of lib<name>.a to let people know that these are not
8650       # typical AIX shared libraries.
8651       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652     else
8653       # We preserve .a as extension for shared libraries through AIX4.2
8654       # and later when we are not doing run time linking.
8655       library_names_spec='${libname}${release}.a $libname.a'
8656       soname_spec='${libname}${release}${shared_ext}$major'
8657     fi
8658     shlibpath_var=LIBPATH
8659   fi
8660   ;;
8661
8662 amigaos*)
8663   library_names_spec='$libname.ixlibrary $libname.a'
8664   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8665   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'
8666   ;;
8667
8668 beos*)
8669   library_names_spec='${libname}${shared_ext}'
8670   dynamic_linker="$host_os ld.so"
8671   shlibpath_var=LIBRARY_PATH
8672   ;;
8673
8674 bsdi[45]*)
8675   version_type=linux
8676   need_version=no
8677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678   soname_spec='${libname}${release}${shared_ext}$major'
8679   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8680   shlibpath_var=LD_LIBRARY_PATH
8681   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8682   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8683   # the default ld.so.conf also contains /usr/contrib/lib and
8684   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8685   # libtool to hard-code these into programs
8686   ;;
8687
8688 cygwin* | mingw* | pw32*)
8689   version_type=windows
8690   shrext_cmds=".dll"
8691   need_version=no
8692   need_lib_prefix=no
8693
8694   case $GCC,$host_os in
8695   yes,cygwin* | yes,mingw* | yes,pw32*)
8696     library_names_spec='$libname.dll.a'
8697     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8698     postinstall_cmds='base_file=`basename \${file}`~
8699       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8700       dldir=$destdir/`dirname \$dlpath`~
8701       test -d \$dldir || mkdir -p \$dldir~
8702       $install_prog $dir/$dlname \$dldir/$dlname~
8703       chmod a+x \$dldir/$dlname'
8704     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8705       dlpath=$dir/\$dldll~
8706        $rm \$dlpath'
8707     shlibpath_overrides_runpath=yes
8708
8709     case $host_os in
8710     cygwin*)
8711       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8712       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8713       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8714       ;;
8715     mingw*)
8716       # MinGW DLLs use traditional 'lib' prefix
8717       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8719       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8720         # It is most probably a Windows format PATH printed by
8721         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8722         # path with ; separators, and with drive letters. We can handle the
8723         # drive letters (cygwin fileutils understands them), so leave them,
8724         # especially as we might pass files found there to a mingw objdump,
8725         # which wouldn't understand a cygwinified path. Ahh.
8726         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8727       else
8728         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8729       fi
8730       ;;
8731     pw32*)
8732       # pw32 DLLs use 'pw' prefix rather than 'lib'
8733       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734       ;;
8735     esac
8736     ;;
8737
8738   *)
8739     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8740     ;;
8741   esac
8742   dynamic_linker='Win32 ld.exe'
8743   # FIXME: first we should search . and the directory the executable is in
8744   shlibpath_var=PATH
8745   ;;
8746
8747 darwin* | rhapsody*)
8748   dynamic_linker="$host_os dyld"
8749   version_type=darwin
8750   need_lib_prefix=no
8751   need_version=no
8752   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8753   soname_spec='${libname}${release}${major}$shared_ext'
8754   shlibpath_overrides_runpath=yes
8755   shlibpath_var=DYLD_LIBRARY_PATH
8756   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8757   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8758   if test "$GCC" = yes; then
8759     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"`
8760   else
8761     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8762   fi
8763   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8764   ;;
8765
8766 dgux*)
8767   version_type=linux
8768   need_lib_prefix=no
8769   need_version=no
8770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8771   soname_spec='${libname}${release}${shared_ext}$major'
8772   shlibpath_var=LD_LIBRARY_PATH
8773   ;;
8774
8775 freebsd1*)
8776   dynamic_linker=no
8777   ;;
8778
8779 kfreebsd*-gnu)
8780   version_type=linux
8781   need_lib_prefix=no
8782   need_version=no
8783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8784   soname_spec='${libname}${release}${shared_ext}$major'
8785   shlibpath_var=LD_LIBRARY_PATH
8786   shlibpath_overrides_runpath=no
8787   hardcode_into_libs=yes
8788   dynamic_linker='GNU ld.so'
8789   ;;
8790
8791 freebsd* | dragonfly*)
8792   # DragonFly does not have aout.  When/if they implement a new
8793   # versioning mechanism, adjust this.
8794   if test -x /usr/bin/objformat; then
8795     objformat=`/usr/bin/objformat`
8796   else
8797     case $host_os in
8798     freebsd[123]*) objformat=aout ;;
8799     *) objformat=elf ;;
8800     esac
8801   fi
8802   version_type=freebsd-$objformat
8803   case $version_type in
8804     freebsd-elf*)
8805       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8806       need_version=no
8807       need_lib_prefix=no
8808       ;;
8809     freebsd-*)
8810       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8811       need_version=yes
8812       ;;
8813   esac
8814   shlibpath_var=LD_LIBRARY_PATH
8815   case $host_os in
8816   freebsd2*)
8817     shlibpath_overrides_runpath=yes
8818     ;;
8819   freebsd3.[01]* | freebsdelf3.[01]*)
8820     shlibpath_overrides_runpath=yes
8821     hardcode_into_libs=yes
8822     ;;
8823   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8824   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8825     shlibpath_overrides_runpath=no
8826     hardcode_into_libs=yes
8827     ;;
8828   freebsd*) # from 4.6 on
8829     shlibpath_overrides_runpath=yes
8830     hardcode_into_libs=yes
8831     ;;
8832   esac
8833   ;;
8834
8835 gnu*)
8836   version_type=linux
8837   need_lib_prefix=no
8838   need_version=no
8839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8840   soname_spec='${libname}${release}${shared_ext}$major'
8841   shlibpath_var=LD_LIBRARY_PATH
8842   hardcode_into_libs=yes
8843   ;;
8844
8845 hpux9* | hpux10* | hpux11*)
8846   # Give a soname corresponding to the major version so that dld.sl refuses to
8847   # link against other versions.
8848   version_type=sunos
8849   need_lib_prefix=no
8850   need_version=no
8851   case $host_cpu in
8852   ia64*)
8853     shrext_cmds='.so'
8854     hardcode_into_libs=yes
8855     dynamic_linker="$host_os dld.so"
8856     shlibpath_var=LD_LIBRARY_PATH
8857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859     soname_spec='${libname}${release}${shared_ext}$major'
8860     if test "X$HPUX_IA64_MODE" = X32; then
8861       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8862     else
8863       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8864     fi
8865     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866     ;;
8867    hppa*64*)
8868      shrext_cmds='.sl'
8869      hardcode_into_libs=yes
8870      dynamic_linker="$host_os dld.sl"
8871      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8872      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874      soname_spec='${libname}${release}${shared_ext}$major'
8875      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8876      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8877      ;;
8878    *)
8879     shrext_cmds='.sl'
8880     dynamic_linker="$host_os dld.sl"
8881     shlibpath_var=SHLIB_PATH
8882     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884     soname_spec='${libname}${release}${shared_ext}$major'
8885     ;;
8886   esac
8887   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8888   postinstall_cmds='chmod 555 $lib'
8889   ;;
8890
8891 interix3*)
8892   version_type=linux
8893   need_lib_prefix=no
8894   need_version=no
8895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896   soname_spec='${libname}${release}${shared_ext}$major'
8897   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8898   shlibpath_var=LD_LIBRARY_PATH
8899   shlibpath_overrides_runpath=no
8900   hardcode_into_libs=yes
8901   ;;
8902
8903 irix5* | irix6* | nonstopux*)
8904   case $host_os in
8905     nonstopux*) version_type=nonstopux ;;
8906     *)
8907         if test "$lt_cv_prog_gnu_ld" = yes; then
8908                 version_type=linux
8909         else
8910                 version_type=irix
8911         fi ;;
8912   esac
8913   need_lib_prefix=no
8914   need_version=no
8915   soname_spec='${libname}${release}${shared_ext}$major'
8916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8917   case $host_os in
8918   irix5* | nonstopux*)
8919     libsuff= shlibsuff=
8920     ;;
8921   *)
8922     case $LD in # libtool.m4 will add one of these switches to LD
8923     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8924       libsuff= shlibsuff= libmagic=32-bit;;
8925     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8926       libsuff=32 shlibsuff=N32 libmagic=N32;;
8927     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8928       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8929     *) libsuff= shlibsuff= libmagic=never-match;;
8930     esac
8931     ;;
8932   esac
8933   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8934   shlibpath_overrides_runpath=no
8935   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8936   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8937   hardcode_into_libs=yes
8938   ;;
8939
8940 # No shared lib support for Linux oldld, aout, or coff.
8941 linux*oldld* | linux*aout* | linux*coff*)
8942   dynamic_linker=no
8943   ;;
8944
8945 # This must be Linux ELF.
8946 linux*)
8947   version_type=linux
8948   need_lib_prefix=no
8949   need_version=no
8950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951   soname_spec='${libname}${release}${shared_ext}$major'
8952   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8953   shlibpath_var=LD_LIBRARY_PATH
8954   shlibpath_overrides_runpath=no
8955   # This implies no fast_install, which is unacceptable.
8956   # Some rework will be needed to allow for fast_install
8957   # before this can be enabled.
8958   hardcode_into_libs=yes
8959
8960   # Append ld.so.conf contents to the search path
8961   if test -f /etc/ld.so.conf; then
8962     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' ' '`
8963     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8964   fi
8965
8966   # We used to test for /lib/ld.so.1 and disable shared libraries on
8967   # powerpc, because MkLinux only supported shared libraries with the
8968   # GNU dynamic linker.  Since this was broken with cross compilers,
8969   # most powerpc-linux boxes support dynamic linking these days and
8970   # people can always --disable-shared, the test was removed, and we
8971   # assume the GNU/Linux dynamic linker is in use.
8972   dynamic_linker='GNU/Linux ld.so'
8973   ;;
8974
8975 knetbsd*-gnu)
8976   version_type=linux
8977   need_lib_prefix=no
8978   need_version=no
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   shlibpath_overrides_runpath=no
8983   hardcode_into_libs=yes
8984   dynamic_linker='GNU ld.so'
8985   ;;
8986
8987 netbsd*)
8988   version_type=sunos
8989   need_lib_prefix=no
8990   need_version=no
8991   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8993     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8994     dynamic_linker='NetBSD (a.out) ld.so'
8995   else
8996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8997     soname_spec='${libname}${release}${shared_ext}$major'
8998     dynamic_linker='NetBSD ld.elf_so'
8999   fi
9000   shlibpath_var=LD_LIBRARY_PATH
9001   shlibpath_overrides_runpath=yes
9002   hardcode_into_libs=yes
9003   ;;
9004
9005 newsos6)
9006   version_type=linux
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008   shlibpath_var=LD_LIBRARY_PATH
9009   shlibpath_overrides_runpath=yes
9010   ;;
9011
9012 nto-qnx*)
9013   version_type=linux
9014   need_lib_prefix=no
9015   need_version=no
9016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017   soname_spec='${libname}${release}${shared_ext}$major'
9018   shlibpath_var=LD_LIBRARY_PATH
9019   shlibpath_overrides_runpath=yes
9020   ;;
9021
9022 openbsd*)
9023   version_type=sunos
9024   sys_lib_dlsearch_path_spec="/usr/lib"
9025   need_lib_prefix=no
9026   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9027   case $host_os in
9028     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9029     *)                         need_version=no  ;;
9030   esac
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033   shlibpath_var=LD_LIBRARY_PATH
9034   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9035     case $host_os in
9036       openbsd2.[89] | openbsd2.[89].*)
9037         shlibpath_overrides_runpath=no
9038         ;;
9039       *)
9040         shlibpath_overrides_runpath=yes
9041         ;;
9042       esac
9043   else
9044     shlibpath_overrides_runpath=yes
9045   fi
9046   ;;
9047
9048 os2*)
9049   libname_spec='$name'
9050   shrext_cmds=".dll"
9051   need_lib_prefix=no
9052   library_names_spec='$libname${shared_ext} $libname.a'
9053   dynamic_linker='OS/2 ld.exe'
9054   shlibpath_var=LIBPATH
9055   ;;
9056
9057 osf3* | osf4* | osf5*)
9058   version_type=osf
9059   need_lib_prefix=no
9060   need_version=no
9061   soname_spec='${libname}${release}${shared_ext}$major'
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063   shlibpath_var=LD_LIBRARY_PATH
9064   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9065   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9066   ;;
9067
9068 solaris*)
9069   version_type=linux
9070   need_lib_prefix=no
9071   need_version=no
9072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073   soname_spec='${libname}${release}${shared_ext}$major'
9074   shlibpath_var=LD_LIBRARY_PATH
9075   shlibpath_overrides_runpath=yes
9076   hardcode_into_libs=yes
9077   # ldd complains unless libraries are executable
9078   postinstall_cmds='chmod +x $lib'
9079   ;;
9080
9081 sunos4*)
9082   version_type=sunos
9083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   shlibpath_overrides_runpath=yes
9087   if test "$with_gnu_ld" = yes; then
9088     need_lib_prefix=no
9089   fi
9090   need_version=yes
9091   ;;
9092
9093 sysv4 | sysv4.3*)
9094   version_type=linux
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   case $host_vendor in
9099     sni)
9100       shlibpath_overrides_runpath=no
9101       need_lib_prefix=no
9102       export_dynamic_flag_spec='${wl}-Blargedynsym'
9103       runpath_var=LD_RUN_PATH
9104       ;;
9105     siemens)
9106       need_lib_prefix=no
9107       ;;
9108     motorola)
9109       need_lib_prefix=no
9110       need_version=no
9111       shlibpath_overrides_runpath=no
9112       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9113       ;;
9114   esac
9115   ;;
9116
9117 sysv4*MP*)
9118   if test -d /usr/nec ;then
9119     version_type=linux
9120     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9121     soname_spec='$libname${shared_ext}.$major'
9122     shlibpath_var=LD_LIBRARY_PATH
9123   fi
9124   ;;
9125
9126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9127   version_type=freebsd-elf
9128   need_lib_prefix=no
9129   need_version=no
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9131   soname_spec='${libname}${release}${shared_ext}$major'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   hardcode_into_libs=yes
9134   if test "$with_gnu_ld" = yes; then
9135     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9136     shlibpath_overrides_runpath=no
9137   else
9138     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9139     shlibpath_overrides_runpath=yes
9140     case $host_os in
9141       sco3.2v5*)
9142         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9143         ;;
9144     esac
9145   fi
9146   sys_lib_dlsearch_path_spec='/usr/lib'
9147   ;;
9148
9149 uts4*)
9150   version_type=linux
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   ;;
9155
9156 *)
9157   dynamic_linker=no
9158   ;;
9159 esac
9160 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9161 echo "${ECHO_T}$dynamic_linker" >&6; }
9162 test "$dynamic_linker" = no && can_build_shared=no
9163
9164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9165 if test "$GCC" = yes; then
9166   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9167 fi
9168
9169
9170 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9171 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9172 if test "${libltdl_cv_shlibext+set}" = set; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175
9176 module=yes
9177 eval libltdl_cv_shlibext=$shrext_cmds
9178
9179 fi
9180 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9181 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9182 if test -n "$libltdl_cv_shlibext"; then
9183
9184 cat >>confdefs.h <<_ACEOF
9185 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9186 _ACEOF
9187
9188 fi
9189
9190
9191 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9192 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9193 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   libltdl_cv_shlibpath_var="$shlibpath_var"
9197 fi
9198 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9199 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9200 if test -n "$libltdl_cv_shlibpath_var"; then
9201
9202 cat >>confdefs.h <<_ACEOF
9203 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9204 _ACEOF
9205
9206 fi
9207
9208
9209 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9210 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9211 if test "${libltdl_cv_sys_search_path+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9215 fi
9216 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9217 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9218 if test -n "$libltdl_cv_sys_search_path"; then
9219   sys_search_path=
9220   for dir in $libltdl_cv_sys_search_path; do
9221     if test -z "$sys_search_path"; then
9222       sys_search_path="$dir"
9223     else
9224       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9225     fi
9226   done
9227
9228 cat >>confdefs.h <<_ACEOF
9229 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9230 _ACEOF
9231
9232 fi
9233
9234 { echo "$as_me:$LINENO: checking for objdir" >&5
9235 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9236 if test "${libltdl_cv_objdir+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   libltdl_cv_objdir="$objdir"
9240   if test -n "$objdir"; then
9241     :
9242   else
9243     rm -f .libs 2>/dev/null
9244     mkdir .libs 2>/dev/null
9245     if test -d .libs; then
9246       libltdl_cv_objdir=.libs
9247     else
9248       # MS-DOS does not allow filenames that begin with a dot.
9249       libltdl_cv_objdir=_libs
9250     fi
9251   rmdir .libs 2>/dev/null
9252   fi
9253
9254 fi
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9256 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9257
9258 cat >>confdefs.h <<_ACEOF
9259 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9260 _ACEOF
9261
9262
9263
9264
9265
9266
9267 # Check for command to grab the raw symbol name followed by C symbol from nm.
9268 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9269 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9270 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273
9274 # These are sane defaults that work on at least a few old systems.
9275 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9276
9277 # Character class describing NM global symbol codes.
9278 symcode='[BCDEGRST]'
9279
9280 # Regexp to match symbols that can be accessed directly from C.
9281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9282
9283 # Transform an extracted symbol line into a proper C declaration
9284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9285
9286 # Transform an extracted symbol line into symbol name and symbol address
9287 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'"
9288
9289 # Define system-specific variables.
9290 case $host_os in
9291 aix*)
9292   symcode='[BCDT]'
9293   ;;
9294 cygwin* | mingw* | pw32*)
9295   symcode='[ABCDGISTW]'
9296   ;;
9297 hpux*) # Its linker distinguishes data from code symbols
9298   if test "$host_cpu" = ia64; then
9299     symcode='[ABCDEGRST]'
9300   fi
9301   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9302   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'"
9303   ;;
9304 linux*)
9305   if test "$host_cpu" = ia64; then
9306     symcode='[ABCDGIRSTW]'
9307     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9308     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'"
9309   fi
9310   ;;
9311 irix* | nonstopux*)
9312   symcode='[BCDEGRST]'
9313   ;;
9314 osf*)
9315   symcode='[BCDEGQRST]'
9316   ;;
9317 solaris*)
9318   symcode='[BDRT]'
9319   ;;
9320 sco3.2v5*)
9321   symcode='[DT]'
9322   ;;
9323 sysv4.2uw2*)
9324   symcode='[DT]'
9325   ;;
9326 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9327   symcode='[ABDT]'
9328   ;;
9329 sysv4)
9330   symcode='[DFNSTU]'
9331   ;;
9332 esac
9333
9334 # Handle CRLF in mingw tool chain
9335 opt_cr=
9336 case $build_os in
9337 mingw*)
9338   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9339   ;;
9340 esac
9341
9342 # If we're using GNU nm, then use its standard symbol codes.
9343 case `$NM -V 2>&1` in
9344 *GNU* | *'with BFD'*)
9345   symcode='[ABCDGIRSTW]' ;;
9346 esac
9347
9348 # Try without a prefix undercore, then with it.
9349 for ac_symprfx in "" "_"; do
9350
9351   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9352   symxfrm="\\1 $ac_symprfx\\2 \\2"
9353
9354   # Write the raw and C identifiers.
9355   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9356
9357   # Check to see that the pipe works correctly.
9358   pipe_works=no
9359
9360   rm -f conftest*
9361   cat > conftest.$ac_ext <<EOF
9362 #ifdef __cplusplus
9363 extern "C" {
9364 #endif
9365 char nm_test_var;
9366 void nm_test_func(){}
9367 #ifdef __cplusplus
9368 }
9369 #endif
9370 int main(){nm_test_var='a';nm_test_func();return(0);}
9371 EOF
9372
9373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374   (eval $ac_compile) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; then
9378     # Now try to grab the symbols.
9379     nlist=conftest.nm
9380     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9381   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && test -s "$nlist"; then
9385       # Try sorting and uniquifying the output.
9386       if sort "$nlist" | uniq > "$nlist"T; then
9387         mv -f "$nlist"T "$nlist"
9388       else
9389         rm -f "$nlist"T
9390       fi
9391
9392       # Make sure that we snagged all the symbols we need.
9393       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9394         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9395           cat <<EOF > conftest.$ac_ext
9396 #ifdef __cplusplus
9397 extern "C" {
9398 #endif
9399
9400 EOF
9401           # Now generate the symbol file.
9402           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9403
9404           cat <<EOF >> conftest.$ac_ext
9405 #if defined (__STDC__) && __STDC__
9406 # define lt_ptr_t void *
9407 #else
9408 # define lt_ptr_t char *
9409 # define const
9410 #endif
9411
9412 /* The mapping between symbol names and symbols. */
9413 const struct {
9414   const char *name;
9415   lt_ptr_t address;
9416 }
9417 lt_preloaded_symbols[] =
9418 {
9419 EOF
9420           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9421           cat <<\EOF >> conftest.$ac_ext
9422   {0, (lt_ptr_t) 0}
9423 };
9424
9425 #ifdef __cplusplus
9426 }
9427 #endif
9428 EOF
9429           # Now try linking the two files.
9430           mv conftest.$ac_objext conftstm.$ac_objext
9431           lt_save_LIBS="$LIBS"
9432           lt_save_CFLAGS="$CFLAGS"
9433           LIBS="conftstm.$ac_objext"
9434           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9435           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436   (eval $ac_link) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9440             pipe_works=yes
9441           fi
9442           LIBS="$lt_save_LIBS"
9443           CFLAGS="$lt_save_CFLAGS"
9444         else
9445           echo "cannot find nm_test_func in $nlist" >&5
9446         fi
9447       else
9448         echo "cannot find nm_test_var in $nlist" >&5
9449       fi
9450     else
9451       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9452     fi
9453   else
9454     echo "$progname: failed program was:" >&5
9455     cat conftest.$ac_ext >&5
9456   fi
9457   rm -f conftest* conftst*
9458
9459   # Do not use the global_symbol_pipe unless it works.
9460   if test "$pipe_works" = yes; then
9461     break
9462   else
9463     lt_cv_sys_global_symbol_pipe=
9464   fi
9465 done
9466
9467 fi
9468
9469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9470   lt_cv_sys_global_symbol_to_cdecl=
9471 fi
9472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9473   { echo "$as_me:$LINENO: result: failed" >&5
9474 echo "${ECHO_T}failed" >&6; }
9475 else
9476   { echo "$as_me:$LINENO: result: ok" >&5
9477 echo "${ECHO_T}ok" >&6; }
9478 fi
9479
9480
9481 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9482 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9483 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9487     libltdl_cv_preloaded_symbols=yes
9488   else
9489     libltdl_cv_preloaded_symbols=no
9490   fi
9491
9492 fi
9493 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9494 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9495 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_PRELOADED_SYMBOLS 1
9499 _ACEOF
9500
9501 fi
9502
9503 LIBADD_DL=
9504
9505 ac_ext=c
9506 ac_cpp='$CPP $CPPFLAGS'
9507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9510
9511
9512 { echo "$as_me:$LINENO: checking for shl_load" >&5
9513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9514 if test "${ac_cv_func_shl_load+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9525 #define shl_load innocuous_shl_load
9526
9527 /* System header to define __stub macros and hopefully few prototypes,
9528     which can conflict with char shl_load (); below.
9529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9530     <limits.h> exists even on freestanding compilers.  */
9531
9532 #ifdef __STDC__
9533 # include <limits.h>
9534 #else
9535 # include <assert.h>
9536 #endif
9537
9538 #undef shl_load
9539
9540 /* Override any GCC internal prototype to avoid an error.
9541    Use char because int might match the return type of a GCC
9542    builtin and then its argument prototype would still apply.  */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 char shl_load ();
9547 /* The GNU C library defines this for functions which it implements
9548     to always fail with ENOSYS.  Some functions are actually named
9549     something starting with __ and the normal name is an alias.  */
9550 #if defined __stub_shl_load || defined __stub___shl_load
9551 choke me
9552 #endif
9553
9554 int
9555 main ()
9556 {
9557 return shl_load ();
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9564 case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_link") 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577   { (case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_try") 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; } &&
9586          { ac_try='test -s conftest$ac_exeext'
9587   { (case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592   (eval "$ac_try") 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; }; then
9596   ac_cv_func_shl_load=yes
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601         ac_cv_func_shl_load=no
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext \
9605       conftest$ac_exeext conftest.$ac_ext
9606 fi
9607 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9608 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9609 if test $ac_cv_func_shl_load = yes; then
9610
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_SHL_LOAD 1
9613 _ACEOF
9614
9615 else
9616   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9617 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9618 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9619   echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621   ac_check_lib_save_LIBS=$LIBS
9622 LIBS="-ldld  $LIBS"
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629
9630 /* Override any GCC internal prototype to avoid an error.
9631    Use char because int might match the return type of a GCC
9632    builtin and then its argument prototype would still apply.  */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 char shl_load ();
9637 int
9638 main ()
9639 {
9640 return shl_load ();
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_link") 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660   { (case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_try") 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest$ac_exeext'
9670   { (case "(($ac_try" in
9671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672   *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675   (eval "$ac_try") 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   ac_cv_lib_dld_shl_load=yes
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684         ac_cv_lib_dld_shl_load=no
9685 fi
9686
9687 rm -f core conftest.err conftest.$ac_objext \
9688       conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_lib_save_LIBS
9690 fi
9691 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9692 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9693 if test $ac_cv_lib_dld_shl_load = yes; then
9694
9695 cat >>confdefs.h <<\_ACEOF
9696 #define HAVE_SHL_LOAD 1
9697 _ACEOF
9698
9699         LIBADD_DL="$LIBADD_DL -ldld"
9700 else
9701   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9702 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9703 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   ac_check_lib_save_LIBS=$LIBS
9707 LIBS="-ldl  $LIBS"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714
9715 /* Override any GCC internal prototype to avoid an error.
9716    Use char because int might match the return type of a GCC
9717    builtin and then its argument prototype would still apply.  */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 char dlopen ();
9722 int
9723 main ()
9724 {
9725 return dlopen ();
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9732 case "(($ac_try" in
9733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734   *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737   (eval "$ac_link") 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745   { (case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_try") 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; } &&
9754          { ac_try='test -s conftest$ac_exeext'
9755   { (case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760   (eval "$ac_try") 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764   ac_cv_lib_dl_dlopen=yes
9765 else
9766   echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769         ac_cv_lib_dl_dlopen=no
9770 fi
9771
9772 rm -f core conftest.err conftest.$ac_objext \
9773       conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9775 fi
9776 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9778 if test $ac_cv_lib_dl_dlopen = yes; then
9779
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_LIBDL 1
9782 _ACEOF
9783
9784                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 #if HAVE_DLFCN_H
9793 #  include <dlfcn.h>
9794 #endif
9795
9796 int
9797 main ()
9798 {
9799 dlopen(0, 0);
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9806 case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_link") 2>conftest.er1
9812   ac_status=$?
9813   grep -v '^ *+' conftest.er1 >conftest.err
9814   rm -f conftest.er1
9815   cat conftest.err >&5
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819   { (case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_try") 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest$ac_exeext'
9829   { (case "(($ac_try" in
9830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831   *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834   (eval "$ac_try") 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; }; then
9838
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_LIBDL 1
9841 _ACEOF
9842  libltdl_cv_func_dlopen="yes"
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9848 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-lsvld  $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862    Use char because int might match the return type of a GCC
9863    builtin and then its argument prototype would still apply.  */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char dlopen ();
9868 int
9869 main ()
9870 {
9871 return dlopen ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_link") 2>conftest.er1
9884   ac_status=$?
9885   grep -v '^ *+' conftest.er1 >conftest.err
9886   rm -f conftest.er1
9887   cat conftest.err >&5
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); } &&
9890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891   { (case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_try") 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (case "(($ac_try" in
9902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903   *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906   (eval "$ac_try") 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910   ac_cv_lib_svld_dlopen=yes
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915         ac_cv_lib_svld_dlopen=no
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9921 fi
9922 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9923 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9924 if test $ac_cv_lib_svld_dlopen = yes; then
9925
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_LIBDL 1
9928 _ACEOF
9929
9930                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9931 else
9932   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937   ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-ldld  $LIBS"
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h.  */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h.  */
9945
9946 /* Override any GCC internal prototype to avoid an error.
9947    Use char because int might match the return type of a GCC
9948    builtin and then its argument prototype would still apply.  */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char dld_link ();
9953 int
9954 main ()
9955 {
9956 return dld_link ();
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_link") 2>conftest.er1
9969   ac_status=$?
9970   grep -v '^ *+' conftest.er1 >conftest.err
9971   rm -f conftest.er1
9972   cat conftest.err >&5
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } &&
9975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; } &&
9985          { ac_try='test -s conftest$ac_exeext'
9986   { (case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991   (eval "$ac_try") 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   ac_cv_lib_dld_dld_link=yes
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000         ac_cv_lib_dld_dld_link=no
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext \
10004       conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_lib_save_LIBS
10006 fi
10007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10008 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10009 if test $ac_cv_lib_dld_dld_link = yes; then
10010
10011 cat >>confdefs.h <<\_ACEOF
10012 #define HAVE_DLD 1
10013 _ACEOF
10014
10015                 LIBADD_DL="$LIBADD_DL -ldld"
10016 else
10017   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10018 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10019 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10030 #define _dyld_func_lookup innocuous__dyld_func_lookup
10031
10032 /* System header to define __stub macros and hopefully few prototypes,
10033     which can conflict with char _dyld_func_lookup (); below.
10034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035     <limits.h> exists even on freestanding compilers.  */
10036
10037 #ifdef __STDC__
10038 # include <limits.h>
10039 #else
10040 # include <assert.h>
10041 #endif
10042
10043 #undef _dyld_func_lookup
10044
10045 /* Override any GCC internal prototype to avoid an error.
10046    Use char because int might match the return type of a GCC
10047    builtin and then its argument prototype would still apply.  */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 char _dyld_func_lookup ();
10052 /* The GNU C library defines this for functions which it implements
10053     to always fail with ENOSYS.  Some functions are actually named
10054     something starting with __ and the normal name is an alias.  */
10055 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10056 choke me
10057 #endif
10058
10059 int
10060 main ()
10061 {
10062 return _dyld_func_lookup ();
10063   ;
10064   return 0;
10065 }
10066 _ACEOF
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_link") 2>conftest.er1
10075   ac_status=$?
10076   grep -v '^ *+' conftest.er1 >conftest.err
10077   rm -f conftest.er1
10078   cat conftest.err >&5
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); } &&
10081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082   { (case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_try") 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; } &&
10091          { ac_try='test -s conftest$ac_exeext'
10092   { (case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097   (eval "$ac_try") 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; }; then
10101   ac_cv_func__dyld_func_lookup=yes
10102 else
10103   echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106         ac_cv_func__dyld_func_lookup=no
10107 fi
10108
10109 rm -f core conftest.err conftest.$ac_objext \
10110       conftest$ac_exeext conftest.$ac_ext
10111 fi
10112 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10113 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10114 if test $ac_cv_func__dyld_func_lookup = yes; then
10115
10116 cat >>confdefs.h <<\_ACEOF
10117 #define HAVE_DYLD 1
10118 _ACEOF
10119
10120 fi
10121
10122
10123 fi
10124
10125
10126 fi
10127
10128
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext \
10132       conftest$ac_exeext conftest.$ac_ext
10133
10134 fi
10135
10136
10137 fi
10138
10139
10140 fi
10141
10142
10143 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10144 then
10145   lt_save_LIBS="$LIBS"
10146   LIBS="$LIBS $LIBADD_DL"
10147
10148 for ac_func in dlerror
10149 do
10150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10164 #define $ac_func innocuous_$ac_func
10165
10166 /* System header to define __stub macros and hopefully few prototypes,
10167     which can conflict with char $ac_func (); below.
10168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10169     <limits.h> exists even on freestanding compilers.  */
10170
10171 #ifdef __STDC__
10172 # include <limits.h>
10173 #else
10174 # include <assert.h>
10175 #endif
10176
10177 #undef $ac_func
10178
10179 /* Override any GCC internal prototype to avoid an error.
10180    Use char because int might match the return type of a GCC
10181    builtin and then its argument prototype would still apply.  */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char $ac_func ();
10186 /* The GNU C library defines this for functions which it implements
10187     to always fail with ENOSYS.  Some functions are actually named
10188     something starting with __ and the normal name is an alias.  */
10189 #if defined __stub_$ac_func || defined __stub___$ac_func
10190 choke me
10191 #endif
10192
10193 int
10194 main ()
10195 {
10196 return $ac_func ();
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_link") 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest$ac_exeext'
10226   { (case "(($ac_try" in
10227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228   *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231   (eval "$ac_try") 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; }; then
10235   eval "$as_ac_var=yes"
10236 else
10237   echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240         eval "$as_ac_var=no"
10241 fi
10242
10243 rm -f core conftest.err conftest.$ac_objext \
10244       conftest$ac_exeext conftest.$ac_ext
10245 fi
10246 ac_res=`eval echo '${'$as_ac_var'}'`
10247                { echo "$as_me:$LINENO: result: $ac_res" >&5
10248 echo "${ECHO_T}$ac_res" >&6; }
10249 if test `eval echo '${'$as_ac_var'}'` = yes; then
10250   cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10252 _ACEOF
10253
10254 fi
10255 done
10256
10257   LIBS="$lt_save_LIBS"
10258 fi
10259 ac_ext=c
10260 ac_cpp='$CPP $CPPFLAGS'
10261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10264
10265
10266
10267 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10268 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10269 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10270   echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272   ac_cv_sys_symbol_underscore=no
10273   cat > conftest.$ac_ext <<EOF
10274 void nm_test_func(){}
10275 int main(){nm_test_func;return 0;}
10276 EOF
10277   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278   (eval $ac_compile) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; then
10282     # Now try to grab the symbols.
10283     ac_nlist=conftest.nm
10284     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10285   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } && test -s "$ac_nlist"; then
10289       # See whether the symbols have a leading underscore.
10290       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10291         ac_cv_sys_symbol_underscore=yes
10292       else
10293         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10294           :
10295         else
10296           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10297         fi
10298       fi
10299     else
10300       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10301     fi
10302   else
10303     echo "configure: failed program was:" >&5
10304     cat conftest.c >&5
10305   fi
10306   rm -rf conftest*
10307
10308 fi
10309 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10310 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10311
10312
10313 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10314   if test x"$libltdl_cv_func_dlopen" = xyes ||
10315      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10316         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10317 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10318 if test "${libltdl_cv_need_uscore+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   libltdl_cv_need_uscore=unknown
10322           save_LIBS="$LIBS"
10323           LIBS="$LIBS $LIBADD_DL"
10324           if test "$cross_compiling" = yes; then :
10325   libltdl_cv_need_uscore=cross
10326 else
10327   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10328   lt_status=$lt_dlunknown
10329   cat > conftest.$ac_ext <<EOF
10330 #line 10330 "configure"
10331 #include "confdefs.h"
10332
10333 #if HAVE_DLFCN_H
10334 #include <dlfcn.h>
10335 #endif
10336
10337 #include <stdio.h>
10338
10339 #ifdef RTLD_GLOBAL
10340 #  define LT_DLGLOBAL           RTLD_GLOBAL
10341 #else
10342 #  ifdef DL_GLOBAL
10343 #    define LT_DLGLOBAL         DL_GLOBAL
10344 #  else
10345 #    define LT_DLGLOBAL         0
10346 #  endif
10347 #endif
10348
10349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10350    find out it does not work in some platform. */
10351 #ifndef LT_DLLAZY_OR_NOW
10352 #  ifdef RTLD_LAZY
10353 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10354 #  else
10355 #    ifdef DL_LAZY
10356 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10357 #    else
10358 #      ifdef RTLD_NOW
10359 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10360 #      else
10361 #        ifdef DL_NOW
10362 #          define LT_DLLAZY_OR_NOW      DL_NOW
10363 #        else
10364 #          define LT_DLLAZY_OR_NOW      0
10365 #        endif
10366 #      endif
10367 #    endif
10368 #  endif
10369 #endif
10370
10371 #ifdef __cplusplus
10372 extern "C" void exit (int);
10373 #endif
10374
10375 void fnord() { int i=42;}
10376 int main ()
10377 {
10378   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10379   int status = $lt_dlunknown;
10380
10381   if (self)
10382     {
10383       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10384       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10385       /* dlclose (self); */
10386     }
10387   else
10388     puts (dlerror ());
10389
10390     exit (status);
10391 }
10392 EOF
10393   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394   (eval $ac_link) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10398     (./conftest; exit; ) >&5 2>/dev/null
10399     lt_status=$?
10400     case x$lt_status in
10401       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10402       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10403       x$lt_dlunknown|x*)  ;;
10404     esac
10405   else :
10406     # compilation failed
10407
10408   fi
10409 fi
10410 rm -fr conftest*
10411
10412           LIBS="$save_LIBS"
10413
10414 fi
10415 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10416 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10417   fi
10418 fi
10419
10420 if test x"$libltdl_cv_need_uscore" = xyes; then
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define NEED_USCORE 1
10424 _ACEOF
10425
10426 fi
10427
10428
10429 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10430 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10431 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   # PORTME does your system automatically load deplibs for dlopen?
10435   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10436   # For now, we just catch OSes we know something about -- in the
10437   # future, we'll try test this programmatically.
10438   libltdl_cv_sys_dlopen_deplibs=unknown
10439   case "$host_os" in
10440   aix3*|aix4.1.*|aix4.2.*)
10441     # Unknown whether this is true for these versions of AIX, but
10442     # we want this `case' here to explicitly catch those versions.
10443     libltdl_cv_sys_dlopen_deplibs=unknown
10444     ;;
10445   aix[45]*)
10446     libltdl_cv_sys_dlopen_deplibs=yes
10447     ;;
10448   darwin*)
10449     # Assuming the user has installed a libdl from somewhere, this is true
10450     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10451     libltdl_cv_sys_dlopen_deplibs=yes
10452     ;;
10453   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10454     # GNU and its variants, using gnu ld.so (Glibc)
10455     libltdl_cv_sys_dlopen_deplibs=yes
10456     ;;
10457   hpux10*|hpux11*)
10458     libltdl_cv_sys_dlopen_deplibs=yes
10459     ;;
10460   interix*)
10461     libltdl_cv_sys_dlopen_deplibs=yes
10462     ;;
10463   irix[12345]*|irix6.[01]*)
10464     # Catch all versions of IRIX before 6.2, and indicate that we don't
10465     # know how it worked for any of those versions.
10466     libltdl_cv_sys_dlopen_deplibs=unknown
10467     ;;
10468   irix*)
10469     # The case above catches anything before 6.2, and it's known that
10470     # at 6.2 and later dlopen does load deplibs.
10471     libltdl_cv_sys_dlopen_deplibs=yes
10472     ;;
10473   netbsd*)
10474     libltdl_cv_sys_dlopen_deplibs=yes
10475     ;;
10476   openbsd*)
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   osf[1234]*)
10480     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10481     # it did *not* use an RPATH in a shared library to find objects the
10482     # library depends on, so we explictly say `no'.
10483     libltdl_cv_sys_dlopen_deplibs=no
10484     ;;
10485   osf5.0|osf5.0a|osf5.1)
10486     # dlopen *does* load deplibs and with the right loader patch applied
10487     # it even uses RPATH in a shared library to search for shared objects
10488     # that the library depends on, but there's no easy way to know if that
10489     # patch is installed.  Since this is the case, all we can really
10490     # say is unknown -- it depends on the patch being installed.  If
10491     # it is, this changes to `yes'.  Without it, it would be `no'.
10492     libltdl_cv_sys_dlopen_deplibs=unknown
10493     ;;
10494   osf*)
10495     # the two cases above should catch all versions of osf <= 5.1.  Read
10496     # the comments above for what we know about them.
10497     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10498     # is used to find them so we can finally say `yes'.
10499     libltdl_cv_sys_dlopen_deplibs=yes
10500     ;;
10501   solaris*)
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10505     libltdl_cv_sys_dlopen_deplibs=yes
10506     ;;
10507   esac
10508
10509 fi
10510 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10511 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10512 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10513
10514 cat >>confdefs.h <<\_ACEOF
10515 #define LTDL_DLOPEN_DEPLIBS 1
10516 _ACEOF
10517
10518 fi
10519
10520
10521 for ac_header in argz.h
10522 do
10523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 fi
10530 ac_res=`eval echo '${'$as_ac_Header'}'`
10531                { echo "$as_me:$LINENO: result: $ac_res" >&5
10532 echo "${ECHO_T}$ac_res" >&6; }
10533 else
10534   # Is the header compilable?
10535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h.  */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h.  */
10543 $ac_includes_default
10544 #include <$ac_header>
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (ac_try="$ac_compile"
10548 case "(($ac_try" in
10549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550   *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553   (eval "$ac_compile") 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } &&
10560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561   { (case "(($ac_try" in
10562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563   *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566   (eval "$ac_try") 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; } &&
10570          { ac_try='test -s conftest.$ac_objext'
10571   { (case "(($ac_try" in
10572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573   *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576   (eval "$ac_try") 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; }; then
10580   ac_header_compiler=yes
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585         ac_header_compiler=no
10586 fi
10587
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10590 echo "${ECHO_T}$ac_header_compiler" >&6; }
10591
10592 # Is the header present?
10593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601 #include <$ac_header>
10602 _ACEOF
10603 if { (ac_try="$ac_cpp conftest.$ac_ext"
10604 case "(($ac_try" in
10605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606   *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } >/dev/null; then
10616   if test -s conftest.err; then
10617     ac_cpp_err=$ac_c_preproc_warn_flag
10618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10619   else
10620     ac_cpp_err=
10621   fi
10622 else
10623   ac_cpp_err=yes
10624 fi
10625 if test -z "$ac_cpp_err"; then
10626   ac_header_preproc=yes
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631   ac_header_preproc=no
10632 fi
10633
10634 rm -f conftest.err conftest.$ac_ext
10635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 echo "${ECHO_T}$ac_header_preproc" >&6; }
10637
10638 # So?  What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640   yes:no: )
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645     ac_header_preproc=yes
10646     ;;
10647   no:yes:* )
10648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10660     ( cat <<\_ASBOX
10661 ## ----------------------------------- ##
10662 ## Report this to llvmbugs@cs.uiuc.edu ##
10663 ## ----------------------------------- ##
10664 _ASBOX
10665      ) | sed "s/^/$as_me: WARNING:     /" >&2
10666     ;;
10667 esac
10668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   eval "$as_ac_Header=\$ac_header_preproc"
10674 fi
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676                { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678
10679 fi
10680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10681   cat >>confdefs.h <<_ACEOF
10682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10683 _ACEOF
10684
10685 fi
10686
10687 done
10688
10689
10690 { echo "$as_me:$LINENO: checking for error_t" >&5
10691 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10692 if test "${ac_cv_type_error_t+set}" = set; then
10693   echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695   cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701 #if HAVE_ARGZ_H
10702 #  include <argz.h>
10703 #endif
10704
10705 typedef error_t ac__type_new_;
10706 int
10707 main ()
10708 {
10709 if ((ac__type_new_ *) 0)
10710   return 0;
10711 if (sizeof (ac__type_new_))
10712   return 0;
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_compile") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } &&
10731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732   { (case "(($ac_try" in
10733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734   *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737   (eval "$ac_try") 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest.$ac_objext'
10742   { (case "(($ac_try" in
10743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744   *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747   (eval "$ac_try") 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }; }; then
10751   ac_cv_type_error_t=yes
10752 else
10753   echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756         ac_cv_type_error_t=no
10757 fi
10758
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 fi
10761 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10762 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10763 if test $ac_cv_type_error_t = yes; then
10764
10765 cat >>confdefs.h <<_ACEOF
10766 #define HAVE_ERROR_T 1
10767 _ACEOF
10768
10769
10770 else
10771
10772 cat >>confdefs.h <<\_ACEOF
10773 #define error_t int
10774 _ACEOF
10775
10776 fi
10777
10778
10779
10780
10781
10782
10783
10784 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10785 do
10786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10800 #define $ac_func innocuous_$ac_func
10801
10802 /* System header to define __stub macros and hopefully few prototypes,
10803     which can conflict with char $ac_func (); below.
10804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805     <limits.h> exists even on freestanding compilers.  */
10806
10807 #ifdef __STDC__
10808 # include <limits.h>
10809 #else
10810 # include <assert.h>
10811 #endif
10812
10813 #undef $ac_func
10814
10815 /* Override any GCC internal prototype to avoid an error.
10816    Use char because int might match the return type of a GCC
10817    builtin and then its argument prototype would still apply.  */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char $ac_func ();
10822 /* The GNU C library defines this for functions which it implements
10823     to always fail with ENOSYS.  Some functions are actually named
10824     something starting with __ and the normal name is an alias.  */
10825 #if defined __stub_$ac_func || defined __stub___$ac_func
10826 choke me
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832 return $ac_func ();
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_link") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; } &&
10861          { ac_try='test -s conftest$ac_exeext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   eval "$as_ac_var=yes"
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         eval "$as_ac_var=no"
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext \
10880       conftest$ac_exeext conftest.$ac_ext
10881 fi
10882 ac_res=`eval echo '${'$as_ac_var'}'`
10883                { echo "$as_me:$LINENO: result: $ac_res" >&5
10884 echo "${ECHO_T}$ac_res" >&6; }
10885 if test `eval echo '${'$as_ac_var'}'` = yes; then
10886   cat >>confdefs.h <<_ACEOF
10887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10888 _ACEOF
10889
10890 fi
10891 done
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10921                   stdio.h unistd.h
10922 do
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 fi
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931                { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10933 else
10934   # Is the header compilable?
10935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943 $ac_includes_default
10944 #include <$ac_header>
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (ac_try="$ac_compile"
10948 case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_compile") 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } &&
10960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; } &&
10970          { ac_try='test -s conftest.$ac_objext'
10971   { (case "(($ac_try" in
10972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973   *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976   (eval "$ac_try") 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   ac_header_compiler=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985         ac_header_compiler=no
10986 fi
10987
10988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6; }
10991
10992 # Is the header present?
10993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001 #include <$ac_header>
11002 _ACEOF
11003 if { (ac_try="$ac_cpp conftest.$ac_ext"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } >/dev/null; then
11016   if test -s conftest.err; then
11017     ac_cpp_err=$ac_c_preproc_warn_flag
11018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11019   else
11020     ac_cpp_err=
11021   fi
11022 else
11023   ac_cpp_err=yes
11024 fi
11025 if test -z "$ac_cpp_err"; then
11026   ac_header_preproc=yes
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031   ac_header_preproc=no
11032 fi
11033
11034 rm -f conftest.err conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036 echo "${ECHO_T}$ac_header_preproc" >&6; }
11037
11038 # So?  What about this header?
11039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11040   yes:no: )
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045     ac_header_preproc=yes
11046     ;;
11047   no:yes:* )
11048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11060     ( cat <<\_ASBOX
11061 ## ----------------------------------- ##
11062 ## Report this to llvmbugs@cs.uiuc.edu ##
11063 ## ----------------------------------- ##
11064 _ASBOX
11065      ) | sed "s/^/$as_me: WARNING:     /" >&2
11066     ;;
11067 esac
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   eval "$as_ac_Header=\$ac_header_preproc"
11074 fi
11075 ac_res=`eval echo '${'$as_ac_Header'}'`
11076                { echo "$as_me:$LINENO: result: $ac_res" >&5
11077 echo "${ECHO_T}$ac_res" >&6; }
11078
11079 fi
11080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11081   cat >>confdefs.h <<_ACEOF
11082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11083 _ACEOF
11084
11085 fi
11086
11087 done
11088
11089
11090
11091
11092
11093 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11094 do
11095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 fi
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103                { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11105 else
11106   # Is the header compilable?
11107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 $ac_includes_default
11116 #include <$ac_header>
11117 _ACEOF
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_compile") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; } &&
11142          { ac_try='test -s conftest.$ac_objext'
11143   { (case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148   (eval "$ac_try") 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_header_compiler=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157         ac_header_compiler=no
11158 fi
11159
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162 echo "${ECHO_T}$ac_header_compiler" >&6; }
11163
11164 # Is the header present?
11165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 #include <$ac_header>
11174 _ACEOF
11175 if { (ac_try="$ac_cpp conftest.$ac_ext"
11176 case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11182   ac_status=$?
11183   grep -v '^ *+' conftest.er1 >conftest.err
11184   rm -f conftest.er1
11185   cat conftest.err >&5
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } >/dev/null; then
11188   if test -s conftest.err; then
11189     ac_cpp_err=$ac_c_preproc_warn_flag
11190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191   else
11192     ac_cpp_err=
11193   fi
11194 else
11195   ac_cpp_err=yes
11196 fi
11197 if test -z "$ac_cpp_err"; then
11198   ac_header_preproc=yes
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203   ac_header_preproc=no
11204 fi
11205
11206 rm -f conftest.err conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6; }
11209
11210 # So?  What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212   yes:no: )
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217     ac_header_preproc=yes
11218     ;;
11219   no:yes:* )
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232     ( cat <<\_ASBOX
11233 ## ----------------------------------- ##
11234 ## Report this to llvmbugs@cs.uiuc.edu ##
11235 ## ----------------------------------- ##
11236 _ASBOX
11237      ) | sed "s/^/$as_me: WARNING:     /" >&2
11238     ;;
11239 esac
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   eval "$as_ac_Header=\$ac_header_preproc"
11246 fi
11247 ac_res=`eval echo '${'$as_ac_Header'}'`
11248                { echo "$as_me:$LINENO: result: $ac_res" >&5
11249 echo "${ECHO_T}$ac_res" >&6; }
11250
11251 fi
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253   cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255 _ACEOF
11256
11257 fi
11258
11259 done
11260
11261
11262
11263 for ac_header in string.h strings.h
11264 do
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273                { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11275 else
11276   # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 $ac_includes_default
11286 #include <$ac_header>
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_compile") 2>conftest.er1
11296   ac_status=$?
11297   grep -v '^ *+' conftest.er1 >conftest.err
11298   rm -f conftest.er1
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } &&
11302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303   { (case "(($ac_try" in
11304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305   *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308   (eval "$ac_try") 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; } &&
11312          { ac_try='test -s conftest.$ac_objext'
11313   { (case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_try") 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_header_compiler=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327         ac_header_compiler=no
11328 fi
11329
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11333
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 #include <$ac_header>
11344 _ACEOF
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } >/dev/null; then
11358   if test -s conftest.err; then
11359     ac_cpp_err=$ac_c_preproc_warn_flag
11360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361   else
11362     ac_cpp_err=
11363   fi
11364 else
11365   ac_cpp_err=yes
11366 fi
11367 if test -z "$ac_cpp_err"; then
11368   ac_header_preproc=yes
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373   ac_header_preproc=no
11374 fi
11375
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11379
11380 # So?  What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382   yes:no: )
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387     ac_header_preproc=yes
11388     ;;
11389   no:yes:* )
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402     ( cat <<\_ASBOX
11403 ## ----------------------------------- ##
11404 ## Report this to llvmbugs@cs.uiuc.edu ##
11405 ## ----------------------------------- ##
11406 _ASBOX
11407      ) | sed "s/^/$as_me: WARNING:     /" >&2
11408     ;;
11409 esac
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   eval "$as_ac_Header=\$ac_header_preproc"
11416 fi
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418                { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420
11421 fi
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423   cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 _ACEOF
11426  break
11427 fi
11428
11429 done
11430
11431
11432
11433
11434 for ac_func in strchr index
11435 do
11436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11450 #define $ac_func innocuous_$ac_func
11451
11452 /* System header to define __stub macros and hopefully few prototypes,
11453     which can conflict with char $ac_func (); below.
11454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11455     <limits.h> exists even on freestanding compilers.  */
11456
11457 #ifdef __STDC__
11458 # include <limits.h>
11459 #else
11460 # include <assert.h>
11461 #endif
11462
11463 #undef $ac_func
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466    Use char because int might match the return type of a GCC
11467    builtin and then its argument prototype would still apply.  */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char $ac_func ();
11472 /* The GNU C library defines this for functions which it implements
11473     to always fail with ENOSYS.  Some functions are actually named
11474     something starting with __ and the normal name is an alias.  */
11475 #if defined __stub_$ac_func || defined __stub___$ac_func
11476 choke me
11477 #endif
11478
11479 int
11480 main ()
11481 {
11482 return $ac_func ();
11483   ;
11484   return 0;
11485 }
11486 _ACEOF
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_link") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } &&
11501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest$ac_exeext'
11512   { (case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_try") 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   eval "$as_ac_var=yes"
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526         eval "$as_ac_var=no"
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext \
11530       conftest$ac_exeext conftest.$ac_ext
11531 fi
11532 ac_res=`eval echo '${'$as_ac_var'}'`
11533                { echo "$as_me:$LINENO: result: $ac_res" >&5
11534 echo "${ECHO_T}$ac_res" >&6; }
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536   cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538 _ACEOF
11539  break
11540 fi
11541 done
11542
11543
11544
11545 for ac_func in strrchr rindex
11546 do
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11561 #define $ac_func innocuous_$ac_func
11562
11563 /* System header to define __stub macros and hopefully few prototypes,
11564     which can conflict with char $ac_func (); below.
11565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11566     <limits.h> exists even on freestanding compilers.  */
11567
11568 #ifdef __STDC__
11569 # include <limits.h>
11570 #else
11571 # include <assert.h>
11572 #endif
11573
11574 #undef $ac_func
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577    Use char because int might match the return type of a GCC
11578    builtin and then its argument prototype would still apply.  */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char $ac_func ();
11583 /* The GNU C library defines this for functions which it implements
11584     to always fail with ENOSYS.  Some functions are actually named
11585     something starting with __ and the normal name is an alias.  */
11586 #if defined __stub_$ac_func || defined __stub___$ac_func
11587 choke me
11588 #endif
11589
11590 int
11591 main ()
11592 {
11593 return $ac_func ();
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (ac_try="$ac_link"
11600 case "(($ac_try" in
11601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602   *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605   (eval "$ac_link") 2>conftest.er1
11606   ac_status=$?
11607   grep -v '^ *+' conftest.er1 >conftest.err
11608   rm -f conftest.er1
11609   cat conftest.err >&5
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613   { (case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_try") 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; } &&
11622          { ac_try='test -s conftest$ac_exeext'
11623   { (case "(($ac_try" in
11624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625   *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628   (eval "$ac_try") 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; }; then
11632   eval "$as_ac_var=yes"
11633 else
11634   echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637         eval "$as_ac_var=no"
11638 fi
11639
11640 rm -f core conftest.err conftest.$ac_objext \
11641       conftest$ac_exeext conftest.$ac_ext
11642 fi
11643 ac_res=`eval echo '${'$as_ac_var'}'`
11644                { echo "$as_me:$LINENO: result: $ac_res" >&5
11645 echo "${ECHO_T}$ac_res" >&6; }
11646 if test `eval echo '${'$as_ac_var'}'` = yes; then
11647   cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 _ACEOF
11650  break
11651 fi
11652 done
11653
11654
11655
11656 for ac_func in memcpy bcopy
11657 do
11658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h.  */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h.  */
11670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11672 #define $ac_func innocuous_$ac_func
11673
11674 /* System header to define __stub macros and hopefully few prototypes,
11675     which can conflict with char $ac_func (); below.
11676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677     <limits.h> exists even on freestanding compilers.  */
11678
11679 #ifdef __STDC__
11680 # include <limits.h>
11681 #else
11682 # include <assert.h>
11683 #endif
11684
11685 #undef $ac_func
11686
11687 /* Override any GCC internal prototype to avoid an error.
11688    Use char because int might match the return type of a GCC
11689    builtin and then its argument prototype would still apply.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 char $ac_func ();
11694 /* The GNU C library defines this for functions which it implements
11695     to always fail with ENOSYS.  Some functions are actually named
11696     something starting with __ and the normal name is an alias.  */
11697 #if defined __stub_$ac_func || defined __stub___$ac_func
11698 choke me
11699 #endif
11700
11701 int
11702 main ()
11703 {
11704 return $ac_func ();
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_link") 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } &&
11723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11724   { (case "(($ac_try" in
11725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726   *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729   (eval "$ac_try") 2>&5
11730   ac_status=$?
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); }; } &&
11733          { ac_try='test -s conftest$ac_exeext'
11734   { (case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_try") 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }; then
11743   eval "$as_ac_var=yes"
11744 else
11745   echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748         eval "$as_ac_var=no"
11749 fi
11750
11751 rm -f core conftest.err conftest.$ac_objext \
11752       conftest$ac_exeext conftest.$ac_ext
11753 fi
11754 ac_res=`eval echo '${'$as_ac_var'}'`
11755                { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11757 if test `eval echo '${'$as_ac_var'}'` = yes; then
11758   cat >>confdefs.h <<_ACEOF
11759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11760 _ACEOF
11761  break
11762 fi
11763 done
11764
11765
11766
11767 for ac_func in memmove strcmp
11768 do
11769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775   cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11783 #define $ac_func innocuous_$ac_func
11784
11785 /* System header to define __stub macros and hopefully few prototypes,
11786     which can conflict with char $ac_func (); below.
11787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788     <limits.h> exists even on freestanding compilers.  */
11789
11790 #ifdef __STDC__
11791 # include <limits.h>
11792 #else
11793 # include <assert.h>
11794 #endif
11795
11796 #undef $ac_func
11797
11798 /* Override any GCC internal prototype to avoid an error.
11799    Use char because int might match the return type of a GCC
11800    builtin and then its argument prototype would still apply.  */
11801 #ifdef __cplusplus
11802 extern "C"
11803 #endif
11804 char $ac_func ();
11805 /* The GNU C library defines this for functions which it implements
11806     to always fail with ENOSYS.  Some functions are actually named
11807     something starting with __ and the normal name is an alias.  */
11808 #if defined __stub_$ac_func || defined __stub___$ac_func
11809 choke me
11810 #endif
11811
11812 int
11813 main ()
11814 {
11815 return $ac_func ();
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (ac_try="$ac_link"
11822 case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_link") 2>conftest.er1
11828   ac_status=$?
11829   grep -v '^ *+' conftest.er1 >conftest.err
11830   rm -f conftest.er1
11831   cat conftest.err >&5
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); } &&
11834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11835   { (case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_try") 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }; } &&
11844          { ac_try='test -s conftest$ac_exeext'
11845   { (case "(($ac_try" in
11846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847   *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850   (eval "$ac_try") 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   eval "$as_ac_var=yes"
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859         eval "$as_ac_var=no"
11860 fi
11861
11862 rm -f core conftest.err conftest.$ac_objext \
11863       conftest$ac_exeext conftest.$ac_ext
11864 fi
11865 ac_res=`eval echo '${'$as_ac_var'}'`
11866                { echo "$as_me:$LINENO: result: $ac_res" >&5
11867 echo "${ECHO_T}$ac_res" >&6; }
11868 if test `eval echo '${'$as_ac_var'}'` = yes; then
11869   cat >>confdefs.h <<_ACEOF
11870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11871 _ACEOF
11872
11873 fi
11874 done
11875
11876
11877
11878
11879 for ac_func in closedir opendir readdir
11880 do
11881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11895 #define $ac_func innocuous_$ac_func
11896
11897 /* System header to define __stub macros and hopefully few prototypes,
11898     which can conflict with char $ac_func (); below.
11899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900     <limits.h> exists even on freestanding compilers.  */
11901
11902 #ifdef __STDC__
11903 # include <limits.h>
11904 #else
11905 # include <assert.h>
11906 #endif
11907
11908 #undef $ac_func
11909
11910 /* Override any GCC internal prototype to avoid an error.
11911    Use char because int might match the return type of a GCC
11912    builtin and then its argument prototype would still apply.  */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 char $ac_func ();
11917 /* The GNU C library defines this for functions which it implements
11918     to always fail with ENOSYS.  Some functions are actually named
11919     something starting with __ and the normal name is an alias.  */
11920 #if defined __stub_$ac_func || defined __stub___$ac_func
11921 choke me
11922 #endif
11923
11924 int
11925 main ()
11926 {
11927 return $ac_func ();
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936   *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939   (eval "$ac_link") 2>conftest.er1
11940   ac_status=$?
11941   grep -v '^ *+' conftest.er1 >conftest.err
11942   rm -f conftest.er1
11943   cat conftest.err >&5
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947   { (case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_try") 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; } &&
11956          { ac_try='test -s conftest$ac_exeext'
11957   { (case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_try") 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; }; then
11966   eval "$as_ac_var=yes"
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971         eval "$as_ac_var=no"
11972 fi
11973
11974 rm -f core conftest.err conftest.$ac_objext \
11975       conftest$ac_exeext conftest.$ac_ext
11976 fi
11977 ac_res=`eval echo '${'$as_ac_var'}'`
11978                { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981   cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 _ACEOF
11984
11985 fi
11986 done
11987
11988
11989 # Check whether --enable-shared was given.
11990 if test "${enable_shared+set}" = set; then
11991   enableval=$enable_shared; p=${PACKAGE-default}
11992     case $enableval in
11993     yes) enable_shared=yes ;;
11994     no) enable_shared=no ;;
11995     *)
11996       enable_shared=no
11997       # Look at the argument we got.  We use all the common list separators.
11998       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11999       for pkg in $enableval; do
12000         IFS="$lt_save_ifs"
12001         if test "X$pkg" = "X$p"; then
12002           enable_shared=yes
12003         fi
12004       done
12005       IFS="$lt_save_ifs"
12006       ;;
12007     esac
12008 else
12009   enable_shared=yes
12010 fi
12011
12012
12013 # Check whether --enable-static was given.
12014 if test "${enable_static+set}" = set; then
12015   enableval=$enable_static; p=${PACKAGE-default}
12016     case $enableval in
12017     yes) enable_static=yes ;;
12018     no) enable_static=no ;;
12019     *)
12020      enable_static=no
12021       # Look at the argument we got.  We use all the common list separators.
12022       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12023       for pkg in $enableval; do
12024         IFS="$lt_save_ifs"
12025         if test "X$pkg" = "X$p"; then
12026           enable_static=yes
12027         fi
12028       done
12029       IFS="$lt_save_ifs"
12030       ;;
12031     esac
12032 else
12033   enable_static=yes
12034 fi
12035
12036
12037 # Check whether --enable-fast-install was given.
12038 if test "${enable_fast_install+set}" = set; then
12039   enableval=$enable_fast_install; p=${PACKAGE-default}
12040     case $enableval in
12041     yes) enable_fast_install=yes ;;
12042     no) enable_fast_install=no ;;
12043     *)
12044       enable_fast_install=no
12045       # Look at the argument we got.  We use all the common list separators.
12046       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12047       for pkg in $enableval; do
12048         IFS="$lt_save_ifs"
12049         if test "X$pkg" = "X$p"; then
12050           enable_fast_install=yes
12051         fi
12052       done
12053       IFS="$lt_save_ifs"
12054       ;;
12055     esac
12056 else
12057   enable_fast_install=yes
12058 fi
12059
12060
12061 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12062 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12063 if test "${lt_cv_path_SED+set}" = set; then
12064   echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066   # Loop through the user's path and test for sed and gsed.
12067 # Then use that list of sed's as ones to test for truncation.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071   IFS=$as_save_IFS
12072   test -z "$as_dir" && as_dir=.
12073   for lt_ac_prog in sed gsed; do
12074     for ac_exec_ext in '' $ac_executable_extensions; do
12075       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12076         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12077       fi
12078     done
12079   done
12080 done
12081 lt_ac_max=0
12082 lt_ac_count=0
12083 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12084 # along with /bin/sed that truncates output.
12085 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12086   test ! -f $lt_ac_sed && continue
12087   cat /dev/null > conftest.in
12088   lt_ac_count=0
12089   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12090   # Check for GNU sed and select it if it is found.
12091   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12092     lt_cv_path_SED=$lt_ac_sed
12093     break
12094   fi
12095   while true; do
12096     cat conftest.in conftest.in >conftest.tmp
12097     mv conftest.tmp conftest.in
12098     cp conftest.in conftest.nl
12099     echo >>conftest.nl
12100     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12101     cmp -s conftest.out conftest.nl || break
12102     # 10000 chars as input seems more than enough
12103     test $lt_ac_count -gt 10 && break
12104     lt_ac_count=`expr $lt_ac_count + 1`
12105     if test $lt_ac_count -gt $lt_ac_max; then
12106       lt_ac_max=$lt_ac_count
12107       lt_cv_path_SED=$lt_ac_sed
12108     fi
12109   done
12110 done
12111
12112 fi
12113
12114 SED=$lt_cv_path_SED
12115 { echo "$as_me:$LINENO: result: $SED" >&5
12116 echo "${ECHO_T}$SED" >&6; }
12117
12118
12119 # Check whether --with-gnu-ld was given.
12120 if test "${with_gnu_ld+set}" = set; then
12121   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12122 else
12123   with_gnu_ld=no
12124 fi
12125
12126 ac_prog=ld
12127 if test "$GCC" = yes; then
12128   # Check if gcc -print-prog-name=ld gives a path.
12129   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12131   case $host in
12132   *-*-mingw*)
12133     # gcc leaves a trailing carriage return which upsets mingw
12134     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12135   *)
12136     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12137   esac
12138   case $ac_prog in
12139     # Accept absolute paths.
12140     [\\/]* | ?:[\\/]*)
12141       re_direlt='/[^/][^/]*/\.\./'
12142       # Canonicalize the pathname of ld
12143       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12144       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12145         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12146       done
12147       test -z "$LD" && LD="$ac_prog"
12148       ;;
12149   "")
12150     # If it fails, then pretend we aren't using GCC.
12151     ac_prog=ld
12152     ;;
12153   *)
12154     # If it is relative, then search for the first ld in PATH.
12155     with_gnu_ld=unknown
12156     ;;
12157   esac
12158 elif test "$with_gnu_ld" = yes; then
12159   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12161 else
12162   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12164 fi
12165 if test "${lt_cv_path_LD+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   if test -z "$LD"; then
12169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12170   for ac_dir in $PATH; do
12171     IFS="$lt_save_ifs"
12172     test -z "$ac_dir" && ac_dir=.
12173     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12174       lt_cv_path_LD="$ac_dir/$ac_prog"
12175       # Check to see if the program is GNU ld.  I'd rather use --version,
12176       # but apparently some variants of GNU ld only accept -v.
12177       # Break only if it was the GNU/non-GNU ld that we prefer.
12178       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12179       *GNU* | *'with BFD'*)
12180         test "$with_gnu_ld" != no && break
12181         ;;
12182       *)
12183         test "$with_gnu_ld" != yes && break
12184         ;;
12185       esac
12186     fi
12187   done
12188   IFS="$lt_save_ifs"
12189 else
12190   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12191 fi
12192 fi
12193
12194 LD="$lt_cv_path_LD"
12195 if test -n "$LD"; then
12196   { echo "$as_me:$LINENO: result: $LD" >&5
12197 echo "${ECHO_T}$LD" >&6; }
12198 else
12199   { echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6; }
12201 fi
12202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12204    { (exit 1); exit 1; }; }
12205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12211 case `$LD -v 2>&1 </dev/null` in
12212 *GNU* | *'with BFD'*)
12213   lt_cv_prog_gnu_ld=yes
12214   ;;
12215 *)
12216   lt_cv_prog_gnu_ld=no
12217   ;;
12218 esac
12219 fi
12220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12222 with_gnu_ld=$lt_cv_prog_gnu_ld
12223
12224
12225 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12226 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12227 if test "${lt_cv_ld_reload_flag+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   lt_cv_ld_reload_flag='-r'
12231 fi
12232 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12233 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12234 reload_flag=$lt_cv_ld_reload_flag
12235 case $reload_flag in
12236 "" | " "*) ;;
12237 *) reload_flag=" $reload_flag" ;;
12238 esac
12239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12240 case $host_os in
12241   darwin*)
12242     if test "$GCC" = yes; then
12243       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12244     else
12245       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12246     fi
12247     ;;
12248 esac
12249
12250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12252 if test "${lt_cv_deplibs_check_method+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   lt_cv_file_magic_cmd='$MAGIC_CMD'
12256 lt_cv_file_magic_test_file=
12257 lt_cv_deplibs_check_method='unknown'
12258 # Need to set the preceding variable on all platforms that support
12259 # interlibrary dependencies.
12260 # 'none' -- dependencies not supported.
12261 # `unknown' -- same as none, but documents that we really don't know.
12262 # 'pass_all' -- all dependencies passed with no checks.
12263 # 'test_compile' -- check by making test program.
12264 # 'file_magic [[regex]]' -- check by looking for files in library path
12265 # which responds to the $file_magic_cmd with a given extended regex.
12266 # If you have `file' or equivalent on your system and you're not sure
12267 # whether `pass_all' will *always* work, you probably want this one.
12268
12269 case $host_os in
12270 aix4* | aix5*)
12271   lt_cv_deplibs_check_method=pass_all
12272   ;;
12273
12274 beos*)
12275   lt_cv_deplibs_check_method=pass_all
12276   ;;
12277
12278 bsdi[45]*)
12279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12280   lt_cv_file_magic_cmd='/usr/bin/file -L'
12281   lt_cv_file_magic_test_file=/shlib/libc.so
12282   ;;
12283
12284 cygwin*)
12285   # func_win32_libid is a shell function defined in ltmain.sh
12286   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12287   lt_cv_file_magic_cmd='func_win32_libid'
12288   ;;
12289
12290 mingw* | pw32*)
12291   # Base MSYS/MinGW do not provide the 'file' command needed by
12292   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12293   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12294   lt_cv_file_magic_cmd='$OBJDUMP -f'
12295   ;;
12296
12297 darwin* | rhapsody*)
12298   lt_cv_deplibs_check_method=pass_all
12299   ;;
12300
12301 freebsd* | kfreebsd*-gnu | dragonfly*)
12302   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12303     case $host_cpu in
12304     i*86 )
12305       # Not sure whether the presence of OpenBSD here was a mistake.
12306       # Let's accept both of them until this is cleared up.
12307       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12308       lt_cv_file_magic_cmd=/usr/bin/file
12309       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12310       ;;
12311     esac
12312   else
12313     lt_cv_deplibs_check_method=pass_all
12314   fi
12315   ;;
12316
12317 gnu*)
12318   lt_cv_deplibs_check_method=pass_all
12319   ;;
12320
12321 hpux10.20* | hpux11*)
12322   lt_cv_file_magic_cmd=/usr/bin/file
12323   case $host_cpu in
12324   ia64*)
12325     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12326     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12327     ;;
12328   hppa*64*)
12329     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]'
12330     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12331     ;;
12332   *)
12333     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12334     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12335     ;;
12336   esac
12337   ;;
12338
12339 interix3*)
12340   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12341   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12342   ;;
12343
12344 irix5* | irix6* | nonstopux*)
12345   case $LD in
12346   *-32|*"-32 ") libmagic=32-bit;;
12347   *-n32|*"-n32 ") libmagic=N32;;
12348   *-64|*"-64 ") libmagic=64-bit;;
12349   *) libmagic=never-match;;
12350   esac
12351   lt_cv_deplibs_check_method=pass_all
12352   ;;
12353
12354 # This must be Linux ELF.
12355 linux*)
12356   lt_cv_deplibs_check_method=pass_all
12357   ;;
12358
12359 netbsd*)
12360   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12361     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12362   else
12363     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12364   fi
12365   ;;
12366
12367 newos6*)
12368   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12369   lt_cv_file_magic_cmd=/usr/bin/file
12370   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12371   ;;
12372
12373 nto-qnx*)
12374   lt_cv_deplibs_check_method=unknown
12375   ;;
12376
12377 openbsd*)
12378   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12379     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12380   else
12381     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12382   fi
12383   ;;
12384
12385 osf3* | osf4* | osf5*)
12386   lt_cv_deplibs_check_method=pass_all
12387   ;;
12388
12389 solaris*)
12390   lt_cv_deplibs_check_method=pass_all
12391   ;;
12392
12393 sysv4 | sysv4.3*)
12394   case $host_vendor in
12395   motorola)
12396     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]'
12397     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12398     ;;
12399   ncr)
12400     lt_cv_deplibs_check_method=pass_all
12401     ;;
12402   sequent)
12403     lt_cv_file_magic_cmd='/bin/file'
12404     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12405     ;;
12406   sni)
12407     lt_cv_file_magic_cmd='/bin/file'
12408     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12409     lt_cv_file_magic_test_file=/lib/libc.so
12410     ;;
12411   siemens)
12412     lt_cv_deplibs_check_method=pass_all
12413     ;;
12414   pc)
12415     lt_cv_deplibs_check_method=pass_all
12416     ;;
12417   esac
12418   ;;
12419
12420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12421   lt_cv_deplibs_check_method=pass_all
12422   ;;
12423 esac
12424
12425 fi
12426 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12427 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12428 file_magic_cmd=$lt_cv_file_magic_cmd
12429 deplibs_check_method=$lt_cv_deplibs_check_method
12430 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12431
12432
12433
12434 # If no C compiler was specified, use CC.
12435 LTCC=${LTCC-"$CC"}
12436
12437 # If no C compiler flags were specified, use CFLAGS.
12438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12439
12440 # Allow CC to be a program name with arguments.
12441 compiler=$CC
12442
12443 # Check whether --enable-libtool-lock was given.
12444 if test "${enable_libtool_lock+set}" = set; then
12445   enableval=$enable_libtool_lock;
12446 fi
12447
12448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12449
12450 # Some flags need to be propagated to the compiler or linker for good
12451 # libtool support.
12452 case $host in
12453 ia64-*-hpux*)
12454   # Find out which ABI we are using.
12455   echo 'int i;' > conftest.$ac_ext
12456   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457   (eval $ac_compile) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; then
12461     case `/usr/bin/file conftest.$ac_objext` in
12462     *ELF-32*)
12463       HPUX_IA64_MODE="32"
12464       ;;
12465     *ELF-64*)
12466       HPUX_IA64_MODE="64"
12467       ;;
12468     esac
12469   fi
12470   rm -rf conftest*
12471   ;;
12472 *-*-irix6*)
12473   # Find out which ABI we are using.
12474   echo '#line 12474 "configure"' > conftest.$ac_ext
12475   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; then
12480    if test "$lt_cv_prog_gnu_ld" = yes; then
12481     case `/usr/bin/file conftest.$ac_objext` in
12482     *32-bit*)
12483       LD="${LD-ld} -melf32bsmip"
12484       ;;
12485     *N32*)
12486       LD="${LD-ld} -melf32bmipn32"
12487       ;;
12488     *64-bit*)
12489       LD="${LD-ld} -melf64bmip"
12490       ;;
12491     esac
12492    else
12493     case `/usr/bin/file conftest.$ac_objext` in
12494     *32-bit*)
12495       LD="${LD-ld} -32"
12496       ;;
12497     *N32*)
12498       LD="${LD-ld} -n32"
12499       ;;
12500     *64-bit*)
12501       LD="${LD-ld} -64"
12502       ;;
12503     esac
12504    fi
12505   fi
12506   rm -rf conftest*
12507   ;;
12508
12509 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12510   # Find out which ABI we are using.
12511   echo 'int i;' > conftest.$ac_ext
12512   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513   (eval $ac_compile) 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; then
12517     case `/usr/bin/file conftest.o` in
12518     *32-bit*)
12519       case $host in
12520         x86_64-*linux*)
12521           LD="${LD-ld} -m elf_i386"
12522           ;;
12523         ppc64-*linux*|powerpc64-*linux*)
12524           LD="${LD-ld} -m elf32ppclinux"
12525           ;;
12526         s390x-*linux*)
12527           LD="${LD-ld} -m elf_s390"
12528           ;;
12529         sparc64-*linux*)
12530           LD="${LD-ld} -m elf32_sparc"
12531           ;;
12532       esac
12533       ;;
12534     *64-bit*)
12535       case $host in
12536         x86_64-*linux*)
12537           LD="${LD-ld} -m elf_x86_64"
12538           ;;
12539         ppc*-*linux*|powerpc*-*linux*)
12540           LD="${LD-ld} -m elf64ppc"
12541           ;;
12542         s390*-*linux*)
12543           LD="${LD-ld} -m elf64_s390"
12544           ;;
12545         sparc*-*linux*)
12546           LD="${LD-ld} -m elf64_sparc"
12547           ;;
12548       esac
12549       ;;
12550     esac
12551   fi
12552   rm -rf conftest*
12553   ;;
12554
12555 *-*-sco3.2v5*)
12556   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12557   SAVE_CFLAGS="$CFLAGS"
12558   CFLAGS="$CFLAGS -belf"
12559   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12560 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12561 if test "${lt_cv_cc_needs_belf+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   ac_ext=c
12565 ac_cpp='$CPP $CPPFLAGS'
12566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12569
12570      cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576
12577 int
12578 main ()
12579 {
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600   { (case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_try") 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_try") 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   lt_cv_cc_needs_belf=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         lt_cv_cc_needs_belf=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext \
12628       conftest$ac_exeext conftest.$ac_ext
12629      ac_ext=c
12630 ac_cpp='$CPP $CPPFLAGS'
12631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12634
12635 fi
12636 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12637 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12638   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12639     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12640     CFLAGS="$SAVE_CFLAGS"
12641   fi
12642   ;;
12643 sparc*-*solaris*)
12644   # Find out which ABI we are using.
12645   echo 'int i;' > conftest.$ac_ext
12646   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647   (eval $ac_compile) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; then
12651     case `/usr/bin/file conftest.o` in
12652     *64-bit*)
12653       case $lt_cv_prog_gnu_ld in
12654       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12655       *)    LD="${LD-ld} -64" ;;
12656       esac
12657       ;;
12658     esac
12659   fi
12660   rm -rf conftest*
12661   ;;
12662
12663
12664 esac
12665
12666 need_locks="$enable_libtool_lock"
12667
12668
12669
12670
12671 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12672     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12673     (test "X$CXX" != "Xg++"))) ; then
12674   ac_ext=cpp
12675 ac_cpp='$CXXCPP $CPPFLAGS'
12676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12679 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12680 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12681 if test -z "$CXXCPP"; then
12682   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12683   echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685       # Double quotes because CXXCPP needs to be expanded
12686     for CXXCPP in "$CXX -E" "/lib/cpp"
12687     do
12688       ac_preproc_ok=false
12689 for ac_cxx_preproc_warn_flag in '' yes
12690 do
12691   # Use a header file that comes with gcc, so configuring glibc
12692   # with a fresh cross-compiler works.
12693   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12694   # <limits.h> exists even on freestanding compilers.
12695   # On the NeXT, cc -E runs the code through the compiler's parser,
12696   # not just through cpp. "Syntax error" is here to catch this case.
12697   cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 #ifdef __STDC__
12704 # include <limits.h>
12705 #else
12706 # include <assert.h>
12707 #endif
12708                      Syntax error
12709 _ACEOF
12710 if { (ac_try="$ac_cpp conftest.$ac_ext"
12711 case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
12720   cat conftest.err >&5
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } >/dev/null; then
12723   if test -s conftest.err; then
12724     ac_cpp_err=$ac_cxx_preproc_warn_flag
12725     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12726   else
12727     ac_cpp_err=
12728   fi
12729 else
12730   ac_cpp_err=yes
12731 fi
12732 if test -z "$ac_cpp_err"; then
12733   :
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738   # Broken: fails on valid input.
12739 continue
12740 fi
12741
12742 rm -f conftest.err conftest.$ac_ext
12743
12744   # OK, works on sane cases.  Now check whether nonexistent headers
12745   # can be detected and how.
12746   cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752 #include <ac_nonexistent.h>
12753 _ACEOF
12754 if { (ac_try="$ac_cpp conftest.$ac_ext"
12755 case "(($ac_try" in
12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757   *) ac_try_echo=$ac_try;;
12758 esac
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12761   ac_status=$?
12762   grep -v '^ *+' conftest.er1 >conftest.err
12763   rm -f conftest.er1
12764   cat conftest.err >&5
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } >/dev/null; then
12767   if test -s conftest.err; then
12768     ac_cpp_err=$ac_cxx_preproc_warn_flag
12769     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12770   else
12771     ac_cpp_err=
12772   fi
12773 else
12774   ac_cpp_err=yes
12775 fi
12776 if test -z "$ac_cpp_err"; then
12777   # Broken: success on invalid input.
12778 continue
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783   # Passes both tests.
12784 ac_preproc_ok=:
12785 break
12786 fi
12787
12788 rm -f conftest.err conftest.$ac_ext
12789
12790 done
12791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12792 rm -f conftest.err conftest.$ac_ext
12793 if $ac_preproc_ok; then
12794   break
12795 fi
12796
12797     done
12798     ac_cv_prog_CXXCPP=$CXXCPP
12799
12800 fi
12801   CXXCPP=$ac_cv_prog_CXXCPP
12802 else
12803   ac_cv_prog_CXXCPP=$CXXCPP
12804 fi
12805 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12806 echo "${ECHO_T}$CXXCPP" >&6; }
12807 ac_preproc_ok=false
12808 for ac_cxx_preproc_warn_flag in '' yes
12809 do
12810   # Use a header file that comes with gcc, so configuring glibc
12811   # with a fresh cross-compiler works.
12812   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12813   # <limits.h> exists even on freestanding compilers.
12814   # On the NeXT, cc -E runs the code through the compiler's parser,
12815   # not just through cpp. "Syntax error" is here to catch this case.
12816   cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822 #ifdef __STDC__
12823 # include <limits.h>
12824 #else
12825 # include <assert.h>
12826 #endif
12827                      Syntax error
12828 _ACEOF
12829 if { (ac_try="$ac_cpp conftest.$ac_ext"
12830 case "(($ac_try" in
12831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832   *) ac_try_echo=$ac_try;;
12833 esac
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12836   ac_status=$?
12837   grep -v '^ *+' conftest.er1 >conftest.err
12838   rm -f conftest.er1
12839   cat conftest.err >&5
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } >/dev/null; then
12842   if test -s conftest.err; then
12843     ac_cpp_err=$ac_cxx_preproc_warn_flag
12844     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12845   else
12846     ac_cpp_err=
12847   fi
12848 else
12849   ac_cpp_err=yes
12850 fi
12851 if test -z "$ac_cpp_err"; then
12852   :
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857   # Broken: fails on valid input.
12858 continue
12859 fi
12860
12861 rm -f conftest.err conftest.$ac_ext
12862
12863   # OK, works on sane cases.  Now check whether nonexistent headers
12864   # can be detected and how.
12865   cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h.  */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h.  */
12871 #include <ac_nonexistent.h>
12872 _ACEOF
12873 if { (ac_try="$ac_cpp conftest.$ac_ext"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12880   ac_status=$?
12881   grep -v '^ *+' conftest.er1 >conftest.err
12882   rm -f conftest.er1
12883   cat conftest.err >&5
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } >/dev/null; then
12886   if test -s conftest.err; then
12887     ac_cpp_err=$ac_cxx_preproc_warn_flag
12888     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12889   else
12890     ac_cpp_err=
12891   fi
12892 else
12893   ac_cpp_err=yes
12894 fi
12895 if test -z "$ac_cpp_err"; then
12896   # Broken: success on invalid input.
12897 continue
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902   # Passes both tests.
12903 ac_preproc_ok=:
12904 break
12905 fi
12906
12907 rm -f conftest.err conftest.$ac_ext
12908
12909 done
12910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12911 rm -f conftest.err conftest.$ac_ext
12912 if $ac_preproc_ok; then
12913   :
12914 else
12915   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12916 See \`config.log' for more details." >&5
12917 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12918 See \`config.log' for more details." >&2;}
12919    { (exit 1); exit 1; }; }
12920 fi
12921
12922 ac_ext=cpp
12923 ac_cpp='$CXXCPP $CPPFLAGS'
12924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12927
12928 fi
12929
12930
12931 ac_ext=f
12932 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12933 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12935 if test -n "$ac_tool_prefix"; then
12936   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
12937   do
12938     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12942 if test "${ac_cv_prog_F77+set}" = set; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945   if test -n "$F77"; then
12946   ac_cv_prog_F77="$F77" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951   IFS=$as_save_IFS
12952   test -z "$as_dir" && as_dir=.
12953   for ac_exec_ext in '' $ac_executable_extensions; do
12954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12955     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12957     break 2
12958   fi
12959 done
12960 done
12961 IFS=$as_save_IFS
12962
12963 fi
12964 fi
12965 F77=$ac_cv_prog_F77
12966 if test -n "$F77"; then
12967   { echo "$as_me:$LINENO: result: $F77" >&5
12968 echo "${ECHO_T}$F77" >&6; }
12969 else
12970   { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12972 fi
12973
12974
12975     test -n "$F77" && break
12976   done
12977 fi
12978 if test -z "$F77"; then
12979   ac_ct_F77=$F77
12980   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
12981 do
12982   # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12986 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   if test -n "$ac_ct_F77"; then
12990   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12991 else
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12994 do
12995   IFS=$as_save_IFS
12996   test -z "$as_dir" && as_dir=.
12997   for ac_exec_ext in '' $ac_executable_extensions; do
12998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12999     ac_cv_prog_ac_ct_F77="$ac_prog"
13000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13001     break 2
13002   fi
13003 done
13004 done
13005 IFS=$as_save_IFS
13006
13007 fi
13008 fi
13009 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13010 if test -n "$ac_ct_F77"; then
13011   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13012 echo "${ECHO_T}$ac_ct_F77" >&6; }
13013 else
13014   { echo "$as_me:$LINENO: result: no" >&5
13015 echo "${ECHO_T}no" >&6; }
13016 fi
13017
13018
13019   test -n "$ac_ct_F77" && break
13020 done
13021
13022   if test "x$ac_ct_F77" = x; then
13023     F77=""
13024   else
13025     case $cross_compiling:$ac_tool_warned in
13026 yes:)
13027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13028 whose name does not start with the host triplet.  If you think this
13029 configuration is useful to you, please write to autoconf@gnu.org." >&5
13030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13031 whose name does not start with the host triplet.  If you think this
13032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13033 ac_tool_warned=yes ;;
13034 esac
13035     F77=$ac_ct_F77
13036   fi
13037 fi
13038
13039
13040 # Provide some information about the compiler.
13041 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13042 ac_compiler=`set X $ac_compile; echo $2`
13043 { (ac_try="$ac_compiler --version >&5"
13044 case "(($ac_try" in
13045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046   *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049   (eval "$ac_compiler --version >&5") 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }
13053 { (ac_try="$ac_compiler -v >&5"
13054 case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_compiler -v >&5") 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }
13063 { (ac_try="$ac_compiler -V >&5"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_compiler -V >&5") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }
13073 rm -f a.out
13074
13075 # If we don't use `.F' as extension, the preprocessor is not run on the
13076 # input file.  (Note that this only needs to work for GNU compilers.)
13077 ac_save_ext=$ac_ext
13078 ac_ext=F
13079 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13080 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13081 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084   cat >conftest.$ac_ext <<_ACEOF
13085       program main
13086 #ifndef __GNUC__
13087        choke me
13088 #endif
13089
13090       end
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096   *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099   (eval "$ac_compile") 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
13103   cat conftest.err >&5
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13107   { (case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112   (eval "$ac_try") 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; } &&
13116          { ac_try='test -s conftest.$ac_objext'
13117   { (case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_try") 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; }; then
13126   ac_compiler_gnu=yes
13127 else
13128   echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131         ac_compiler_gnu=no
13132 fi
13133
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13136
13137 fi
13138 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13139 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13140 ac_ext=$ac_save_ext
13141 ac_test_FFLAGS=${FFLAGS+set}
13142 ac_save_FFLAGS=$FFLAGS
13143 FFLAGS=
13144 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13145 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13146 if test "${ac_cv_prog_f77_g+set}" = set; then
13147   echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149   FFLAGS=-g
13150 cat >conftest.$ac_ext <<_ACEOF
13151       program main
13152
13153       end
13154 _ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (ac_try="$ac_compile"
13157 case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_compile") 2>conftest.er1
13163   ac_status=$?
13164   grep -v '^ *+' conftest.er1 >conftest.err
13165   rm -f conftest.er1
13166   cat conftest.err >&5
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } &&
13169          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13170   { (case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_try") 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; } &&
13179          { ac_try='test -s conftest.$ac_objext'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_try") 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   ac_cv_prog_f77_g=yes
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194         ac_cv_prog_f77_g=no
13195 fi
13196
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198
13199 fi
13200 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13201 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13202 if test "$ac_test_FFLAGS" = set; then
13203   FFLAGS=$ac_save_FFLAGS
13204 elif test $ac_cv_prog_f77_g = yes; then
13205   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13206     FFLAGS="-g -O2"
13207   else
13208     FFLAGS="-g"
13209   fi
13210 else
13211   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13212     FFLAGS="-O2"
13213   else
13214     FFLAGS=
13215   fi
13216 fi
13217
13218 G77=`test $ac_compiler_gnu = yes && echo yes`
13219 ac_ext=c
13220 ac_cpp='$CPP $CPPFLAGS'
13221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13224
13225
13226
13227 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13228
13229 # find the maximum length of command line arguments
13230 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13231 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13232 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235     i=0
13236   teststring="ABCD"
13237
13238   case $build_os in
13239   msdosdjgpp*)
13240     # On DJGPP, this test can blow up pretty badly due to problems in libc
13241     # (any single argument exceeding 2000 bytes causes a buffer overrun
13242     # during glob expansion).  Even if it were fixed, the result of this
13243     # check would be larger than it should be.
13244     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13245     ;;
13246
13247   gnu*)
13248     # Under GNU Hurd, this test is not required because there is
13249     # no limit to the length of command line arguments.
13250     # Libtool will interpret -1 as no limit whatsoever
13251     lt_cv_sys_max_cmd_len=-1;
13252     ;;
13253
13254   cygwin* | mingw*)
13255     # On Win9x/ME, this test blows up -- it succeeds, but takes
13256     # about 5 minutes as the teststring grows exponentially.
13257     # Worse, since 9x/ME are not pre-emptively multitasking,
13258     # you end up with a "frozen" computer, even though with patience
13259     # the test eventually succeeds (with a max line length of 256k).
13260     # Instead, let's just punt: use the minimum linelength reported by
13261     # all of the supported platforms: 8192 (on NT/2K/XP).
13262     lt_cv_sys_max_cmd_len=8192;
13263     ;;
13264
13265   amigaos*)
13266     # On AmigaOS with pdksh, this test takes hours, literally.
13267     # So we just punt and use a minimum line length of 8192.
13268     lt_cv_sys_max_cmd_len=8192;
13269     ;;
13270
13271   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13272     # This has been around since 386BSD, at least.  Likely further.
13273     if test -x /sbin/sysctl; then
13274       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13275     elif test -x /usr/sbin/sysctl; then
13276       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13277     else
13278       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13279     fi
13280     # And add a safety zone
13281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13282     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13283     ;;
13284
13285   interix*)
13286     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13287     lt_cv_sys_max_cmd_len=196608
13288     ;;
13289
13290   osf*)
13291     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13292     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13293     # nice to cause kernel panics so lets avoid the loop below.
13294     # First set a reasonable default.
13295     lt_cv_sys_max_cmd_len=16384
13296     #
13297     if test -x /sbin/sysconfig; then
13298       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13299         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13300       esac
13301     fi
13302     ;;
13303   sco3.2v5*)
13304     lt_cv_sys_max_cmd_len=102400
13305     ;;
13306   sysv5* | sco5v6* | sysv4.2uw2*)
13307     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13308     if test -n "$kargmax"; then
13309       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13310     else
13311       lt_cv_sys_max_cmd_len=32768
13312     fi
13313     ;;
13314   *)
13315     # If test is not a shell built-in, we'll probably end up computing a
13316     # maximum length that is only half of the actual maximum length, but
13317     # we can't tell.
13318     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13319     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13320                = "XX$teststring") >/dev/null 2>&1 &&
13321             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13322             lt_cv_sys_max_cmd_len=$new_result &&
13323             test $i != 17 # 1/2 MB should be enough
13324     do
13325       i=`expr $i + 1`
13326       teststring=$teststring$teststring
13327     done
13328     teststring=
13329     # Add a significant safety factor because C++ compilers can tack on massive
13330     # amounts of additional arguments before passing them to the linker.
13331     # It appears as though 1/2 is a usable value.
13332     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13333     ;;
13334   esac
13335
13336 fi
13337
13338 if test -n $lt_cv_sys_max_cmd_len ; then
13339   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13340 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13341 else
13342   { echo "$as_me:$LINENO: result: none" >&5
13343 echo "${ECHO_T}none" >&6; }
13344 fi
13345
13346
13347
13348
13349 # Check for command to grab the raw symbol name followed by C symbol from nm.
13350 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13351 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13352 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355
13356 # These are sane defaults that work on at least a few old systems.
13357 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13358
13359 # Character class describing NM global symbol codes.
13360 symcode='[BCDEGRST]'
13361
13362 # Regexp to match symbols that can be accessed directly from C.
13363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13364
13365 # Transform an extracted symbol line into a proper C declaration
13366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13367
13368 # Transform an extracted symbol line into symbol name and symbol address
13369 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'"
13370
13371 # Define system-specific variables.
13372 case $host_os in
13373 aix*)
13374   symcode='[BCDT]'
13375   ;;
13376 cygwin* | mingw* | pw32*)
13377   symcode='[ABCDGISTW]'
13378   ;;
13379 hpux*) # Its linker distinguishes data from code symbols
13380   if test "$host_cpu" = ia64; then
13381     symcode='[ABCDEGRST]'
13382   fi
13383   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13384   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'"
13385   ;;
13386 linux*)
13387   if test "$host_cpu" = ia64; then
13388     symcode='[ABCDGIRSTW]'
13389     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13390     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'"
13391   fi
13392   ;;
13393 irix* | nonstopux*)
13394   symcode='[BCDEGRST]'
13395   ;;
13396 osf*)
13397   symcode='[BCDEGQRST]'
13398   ;;
13399 solaris*)
13400   symcode='[BDRT]'
13401   ;;
13402 sco3.2v5*)
13403   symcode='[DT]'
13404   ;;
13405 sysv4.2uw2*)
13406   symcode='[DT]'
13407   ;;
13408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13409   symcode='[ABDT]'
13410   ;;
13411 sysv4)
13412   symcode='[DFNSTU]'
13413   ;;
13414 esac
13415
13416 # Handle CRLF in mingw tool chain
13417 opt_cr=
13418 case $build_os in
13419 mingw*)
13420   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13421   ;;
13422 esac
13423
13424 # If we're using GNU nm, then use its standard symbol codes.
13425 case `$NM -V 2>&1` in
13426 *GNU* | *'with BFD'*)
13427   symcode='[ABCDGIRSTW]' ;;
13428 esac
13429
13430 # Try without a prefix undercore, then with it.
13431 for ac_symprfx in "" "_"; do
13432
13433   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13434   symxfrm="\\1 $ac_symprfx\\2 \\2"
13435
13436   # Write the raw and C identifiers.
13437   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13438
13439   # Check to see that the pipe works correctly.
13440   pipe_works=no
13441
13442   rm -f conftest*
13443   cat > conftest.$ac_ext <<EOF
13444 #ifdef __cplusplus
13445 extern "C" {
13446 #endif
13447 char nm_test_var;
13448 void nm_test_func(){}
13449 #ifdef __cplusplus
13450 }
13451 #endif
13452 int main(){nm_test_var='a';nm_test_func();return(0);}
13453 EOF
13454
13455   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456   (eval $ac_compile) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; then
13460     # Now try to grab the symbols.
13461     nlist=conftest.nm
13462     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13463   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } && test -s "$nlist"; then
13467       # Try sorting and uniquifying the output.
13468       if sort "$nlist" | uniq > "$nlist"T; then
13469         mv -f "$nlist"T "$nlist"
13470       else
13471         rm -f "$nlist"T
13472       fi
13473
13474       # Make sure that we snagged all the symbols we need.
13475       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13476         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13477           cat <<EOF > conftest.$ac_ext
13478 #ifdef __cplusplus
13479 extern "C" {
13480 #endif
13481
13482 EOF
13483           # Now generate the symbol file.
13484           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13485
13486           cat <<EOF >> conftest.$ac_ext
13487 #if defined (__STDC__) && __STDC__
13488 # define lt_ptr_t void *
13489 #else
13490 # define lt_ptr_t char *
13491 # define const
13492 #endif
13493
13494 /* The mapping between symbol names and symbols. */
13495 const struct {
13496   const char *name;
13497   lt_ptr_t address;
13498 }
13499 lt_preloaded_symbols[] =
13500 {
13501 EOF
13502           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13503           cat <<\EOF >> conftest.$ac_ext
13504   {0, (lt_ptr_t) 0}
13505 };
13506
13507 #ifdef __cplusplus
13508 }
13509 #endif
13510 EOF
13511           # Now try linking the two files.
13512           mv conftest.$ac_objext conftstm.$ac_objext
13513           lt_save_LIBS="$LIBS"
13514           lt_save_CFLAGS="$CFLAGS"
13515           LIBS="conftstm.$ac_objext"
13516           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13517           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518   (eval $ac_link) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13522             pipe_works=yes
13523           fi
13524           LIBS="$lt_save_LIBS"
13525           CFLAGS="$lt_save_CFLAGS"
13526         else
13527           echo "cannot find nm_test_func in $nlist" >&5
13528         fi
13529       else
13530         echo "cannot find nm_test_var in $nlist" >&5
13531       fi
13532     else
13533       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13534     fi
13535   else
13536     echo "$progname: failed program was:" >&5
13537     cat conftest.$ac_ext >&5
13538   fi
13539   rm -f conftest* conftst*
13540
13541   # Do not use the global_symbol_pipe unless it works.
13542   if test "$pipe_works" = yes; then
13543     break
13544   else
13545     lt_cv_sys_global_symbol_pipe=
13546   fi
13547 done
13548
13549 fi
13550
13551 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13552   lt_cv_sys_global_symbol_to_cdecl=
13553 fi
13554 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13555   { echo "$as_me:$LINENO: result: failed" >&5
13556 echo "${ECHO_T}failed" >&6; }
13557 else
13558   { echo "$as_me:$LINENO: result: ok" >&5
13559 echo "${ECHO_T}ok" >&6; }
13560 fi
13561
13562 { echo "$as_me:$LINENO: checking for objdir" >&5
13563 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13564 if test "${lt_cv_objdir+set}" = set; then
13565   echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567   rm -f .libs 2>/dev/null
13568 mkdir .libs 2>/dev/null
13569 if test -d .libs; then
13570   lt_cv_objdir=.libs
13571 else
13572   # MS-DOS does not allow filenames that begin with a dot.
13573   lt_cv_objdir=_libs
13574 fi
13575 rmdir .libs 2>/dev/null
13576 fi
13577 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13578 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13579 objdir=$lt_cv_objdir
13580
13581
13582
13583
13584
13585 case $host_os in
13586 aix3*)
13587   # AIX sometimes has problems with the GCC collect2 program.  For some
13588   # reason, if we set the COLLECT_NAMES environment variable, the problems
13589   # vanish in a puff of smoke.
13590   if test "X${COLLECT_NAMES+set}" != Xset; then
13591     COLLECT_NAMES=
13592     export COLLECT_NAMES
13593   fi
13594   ;;
13595 esac
13596
13597 # Sed substitution that helps us do robust quoting.  It backslashifies
13598 # metacharacters that are still active within double-quoted strings.
13599 Xsed='sed -e 1s/^X//'
13600 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13601
13602 # Same as above, but do not quote variable references.
13603 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13604
13605 # Sed substitution to delay expansion of an escaped shell variable in a
13606 # double_quote_subst'ed string.
13607 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13608
13609 # Sed substitution to avoid accidental globbing in evaled expressions
13610 no_glob_subst='s/\*/\\\*/g'
13611
13612 # Constants:
13613 rm="rm -f"
13614
13615 # Global variables:
13616 default_ofile=mklib
13617 can_build_shared=yes
13618
13619 # All known linkers require a `.a' archive for static linking (except MSVC,
13620 # which needs '.lib').
13621 libext=a
13622 ltmain="$ac_aux_dir/ltmain.sh"
13623 ofile="$default_ofile"
13624 with_gnu_ld="$lt_cv_prog_gnu_ld"
13625
13626 if test -n "$ac_tool_prefix"; then
13627   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13628 set dummy ${ac_tool_prefix}ar; ac_word=$2
13629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13631 if test "${ac_cv_prog_AR+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   if test -n "$AR"; then
13635   ac_cv_prog_AR="$AR" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13639 do
13640   IFS=$as_save_IFS
13641   test -z "$as_dir" && as_dir=.
13642   for ac_exec_ext in '' $ac_executable_extensions; do
13643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13644     ac_cv_prog_AR="${ac_tool_prefix}ar"
13645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646     break 2
13647   fi
13648 done
13649 done
13650 IFS=$as_save_IFS
13651
13652 fi
13653 fi
13654 AR=$ac_cv_prog_AR
13655 if test -n "$AR"; then
13656   { echo "$as_me:$LINENO: result: $AR" >&5
13657 echo "${ECHO_T}$AR" >&6; }
13658 else
13659   { echo "$as_me:$LINENO: result: no" >&5
13660 echo "${ECHO_T}no" >&6; }
13661 fi
13662
13663
13664 fi
13665 if test -z "$ac_cv_prog_AR"; then
13666   ac_ct_AR=$AR
13667   # Extract the first word of "ar", so it can be a program name with args.
13668 set dummy ar; ac_word=$2
13669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13671 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   if test -n "$ac_ct_AR"; then
13675   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680   IFS=$as_save_IFS
13681   test -z "$as_dir" && as_dir=.
13682   for ac_exec_ext in '' $ac_executable_extensions; do
13683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13684     ac_cv_prog_ac_ct_AR="ar"
13685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13686     break 2
13687   fi
13688 done
13689 done
13690 IFS=$as_save_IFS
13691
13692 fi
13693 fi
13694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13695 if test -n "$ac_ct_AR"; then
13696   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13697 echo "${ECHO_T}$ac_ct_AR" >&6; }
13698 else
13699   { echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6; }
13701 fi
13702
13703   if test "x$ac_ct_AR" = x; then
13704     AR="false"
13705   else
13706     case $cross_compiling:$ac_tool_warned in
13707 yes:)
13708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13709 whose name does not start with the host triplet.  If you think this
13710 configuration is useful to you, please write to autoconf@gnu.org." >&5
13711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13712 whose name does not start with the host triplet.  If you think this
13713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13714 ac_tool_warned=yes ;;
13715 esac
13716     AR=$ac_ct_AR
13717   fi
13718 else
13719   AR="$ac_cv_prog_AR"
13720 fi
13721
13722 if test -n "$ac_tool_prefix"; then
13723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13727 if test "${ac_cv_prog_RANLIB+set}" = set; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730   if test -n "$RANLIB"; then
13731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736   IFS=$as_save_IFS
13737   test -z "$as_dir" && as_dir=.
13738   for ac_exec_ext in '' $ac_executable_extensions; do
13739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13742     break 2
13743   fi
13744 done
13745 done
13746 IFS=$as_save_IFS
13747
13748 fi
13749 fi
13750 RANLIB=$ac_cv_prog_RANLIB
13751 if test -n "$RANLIB"; then
13752   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13753 echo "${ECHO_T}$RANLIB" >&6; }
13754 else
13755   { echo "$as_me:$LINENO: result: no" >&5
13756 echo "${ECHO_T}no" >&6; }
13757 fi
13758
13759
13760 fi
13761 if test -z "$ac_cv_prog_RANLIB"; then
13762   ac_ct_RANLIB=$RANLIB
13763   # Extract the first word of "ranlib", so it can be a program name with args.
13764 set dummy ranlib; ac_word=$2
13765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   if test -n "$ac_ct_RANLIB"; then
13771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13772 else
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13775 do
13776   IFS=$as_save_IFS
13777   test -z "$as_dir" && as_dir=.
13778   for ac_exec_ext in '' $ac_executable_extensions; do
13779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13780     ac_cv_prog_ac_ct_RANLIB="ranlib"
13781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13782     break 2
13783   fi
13784 done
13785 done
13786 IFS=$as_save_IFS
13787
13788 fi
13789 fi
13790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13791 if test -n "$ac_ct_RANLIB"; then
13792   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13793 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13794 else
13795   { echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6; }
13797 fi
13798
13799   if test "x$ac_ct_RANLIB" = x; then
13800     RANLIB=":"
13801   else
13802     case $cross_compiling:$ac_tool_warned in
13803 yes:)
13804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13805 whose name does not start with the host triplet.  If you think this
13806 configuration is useful to you, please write to autoconf@gnu.org." >&5
13807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13808 whose name does not start with the host triplet.  If you think this
13809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13810 ac_tool_warned=yes ;;
13811 esac
13812     RANLIB=$ac_ct_RANLIB
13813   fi
13814 else
13815   RANLIB="$ac_cv_prog_RANLIB"
13816 fi
13817
13818 if test -n "$ac_tool_prefix"; then
13819   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}strip; ac_word=$2
13821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13823 if test "${ac_cv_prog_STRIP+set}" = set; then
13824   echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826   if test -n "$STRIP"; then
13827   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832   IFS=$as_save_IFS
13833   test -z "$as_dir" && as_dir=.
13834   for ac_exec_ext in '' $ac_executable_extensions; do
13835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13836     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13838     break 2
13839   fi
13840 done
13841 done
13842 IFS=$as_save_IFS
13843
13844 fi
13845 fi
13846 STRIP=$ac_cv_prog_STRIP
13847 if test -n "$STRIP"; then
13848   { echo "$as_me:$LINENO: result: $STRIP" >&5
13849 echo "${ECHO_T}$STRIP" >&6; }
13850 else
13851   { echo "$as_me:$LINENO: result: no" >&5
13852 echo "${ECHO_T}no" >&6; }
13853 fi
13854
13855
13856 fi
13857 if test -z "$ac_cv_prog_STRIP"; then
13858   ac_ct_STRIP=$STRIP
13859   # Extract the first word of "strip", so it can be a program name with args.
13860 set dummy strip; ac_word=$2
13861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13863 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866   if test -n "$ac_ct_STRIP"; then
13867   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13868 else
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13871 do
13872   IFS=$as_save_IFS
13873   test -z "$as_dir" && as_dir=.
13874   for ac_exec_ext in '' $ac_executable_extensions; do
13875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13876     ac_cv_prog_ac_ct_STRIP="strip"
13877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13878     break 2
13879   fi
13880 done
13881 done
13882 IFS=$as_save_IFS
13883
13884 fi
13885 fi
13886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13887 if test -n "$ac_ct_STRIP"; then
13888   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13889 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13890 else
13891   { echo "$as_me:$LINENO: result: no" >&5
13892 echo "${ECHO_T}no" >&6; }
13893 fi
13894
13895   if test "x$ac_ct_STRIP" = x; then
13896     STRIP=":"
13897   else
13898     case $cross_compiling:$ac_tool_warned in
13899 yes:)
13900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13901 whose name does not start with the host triplet.  If you think this
13902 configuration is useful to you, please write to autoconf@gnu.org." >&5
13903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13904 whose name does not start with the host triplet.  If you think this
13905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13906 ac_tool_warned=yes ;;
13907 esac
13908     STRIP=$ac_ct_STRIP
13909   fi
13910 else
13911   STRIP="$ac_cv_prog_STRIP"
13912 fi
13913
13914
13915 old_CC="$CC"
13916 old_CFLAGS="$CFLAGS"
13917
13918 # Set sane defaults for various variables
13919 test -z "$AR" && AR=ar
13920 test -z "$AR_FLAGS" && AR_FLAGS=cru
13921 test -z "$AS" && AS=as
13922 test -z "$CC" && CC=cc
13923 test -z "$LTCC" && LTCC=$CC
13924 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13925 test -z "$DLLTOOL" && DLLTOOL=dlltool
13926 test -z "$LD" && LD=ld
13927 test -z "$LN_S" && LN_S="ln -s"
13928 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13929 test -z "$NM" && NM=nm
13930 test -z "$SED" && SED=sed
13931 test -z "$OBJDUMP" && OBJDUMP=objdump
13932 test -z "$RANLIB" && RANLIB=:
13933 test -z "$STRIP" && STRIP=:
13934 test -z "$ac_objext" && ac_objext=o
13935
13936 # Determine commands to create old-style static archives.
13937 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13938 old_postinstall_cmds='chmod 644 $oldlib'
13939 old_postuninstall_cmds=
13940
13941 if test -n "$RANLIB"; then
13942   case $host_os in
13943   openbsd*)
13944     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13945     ;;
13946   *)
13947     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13948     ;;
13949   esac
13950   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13951 fi
13952
13953 for cc_temp in $compiler""; do
13954   case $cc_temp in
13955     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13956     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13957     \-*) ;;
13958     *) break;;
13959   esac
13960 done
13961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13962
13963
13964 # Only perform the check for file, if the check method requires it
13965 case $deplibs_check_method in
13966 file_magic*)
13967   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13968     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13969 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   case $MAGIC_CMD in
13974 [\\/*] |  ?:[\\/]*)
13975   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13976   ;;
13977 *)
13978   lt_save_MAGIC_CMD="$MAGIC_CMD"
13979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13981   for ac_dir in $ac_dummy; do
13982     IFS="$lt_save_ifs"
13983     test -z "$ac_dir" && ac_dir=.
13984     if test -f $ac_dir/${ac_tool_prefix}file; then
13985       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13986       if test -n "$file_magic_test_file"; then
13987         case $deplibs_check_method in
13988         "file_magic "*)
13989           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13990           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13992             $EGREP "$file_magic_regex" > /dev/null; then
13993             :
13994           else
13995             cat <<EOF 1>&2
13996
13997 *** Warning: the command libtool uses to detect shared libraries,
13998 *** $file_magic_cmd, produces output that libtool cannot recognize.
13999 *** The result is that libtool may fail to recognize shared libraries
14000 *** as such.  This will affect the creation of libtool libraries that
14001 *** depend on shared libraries, but programs linked with such libtool
14002 *** libraries will work regardless of this problem.  Nevertheless, you
14003 *** may want to report the problem to your system manager and/or to
14004 *** bug-libtool@gnu.org
14005
14006 EOF
14007           fi ;;
14008         esac
14009       fi
14010       break
14011     fi
14012   done
14013   IFS="$lt_save_ifs"
14014   MAGIC_CMD="$lt_save_MAGIC_CMD"
14015   ;;
14016 esac
14017 fi
14018
14019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14020 if test -n "$MAGIC_CMD"; then
14021   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14022 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14023 else
14024   { echo "$as_me:$LINENO: result: no" >&5
14025 echo "${ECHO_T}no" >&6; }
14026 fi
14027
14028 if test -z "$lt_cv_path_MAGIC_CMD"; then
14029   if test -n "$ac_tool_prefix"; then
14030     { echo "$as_me:$LINENO: checking for file" >&5
14031 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14032 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   case $MAGIC_CMD in
14036 [\\/*] |  ?:[\\/]*)
14037   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14038   ;;
14039 *)
14040   lt_save_MAGIC_CMD="$MAGIC_CMD"
14041   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14042   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14043   for ac_dir in $ac_dummy; do
14044     IFS="$lt_save_ifs"
14045     test -z "$ac_dir" && ac_dir=.
14046     if test -f $ac_dir/file; then
14047       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14048       if test -n "$file_magic_test_file"; then
14049         case $deplibs_check_method in
14050         "file_magic "*)
14051           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14052           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14054             $EGREP "$file_magic_regex" > /dev/null; then
14055             :
14056           else
14057             cat <<EOF 1>&2
14058
14059 *** Warning: the command libtool uses to detect shared libraries,
14060 *** $file_magic_cmd, produces output that libtool cannot recognize.
14061 *** The result is that libtool may fail to recognize shared libraries
14062 *** as such.  This will affect the creation of libtool libraries that
14063 *** depend on shared libraries, but programs linked with such libtool
14064 *** libraries will work regardless of this problem.  Nevertheless, you
14065 *** may want to report the problem to your system manager and/or to
14066 *** bug-libtool@gnu.org
14067
14068 EOF
14069           fi ;;
14070         esac
14071       fi
14072       break
14073     fi
14074   done
14075   IFS="$lt_save_ifs"
14076   MAGIC_CMD="$lt_save_MAGIC_CMD"
14077   ;;
14078 esac
14079 fi
14080
14081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14082 if test -n "$MAGIC_CMD"; then
14083   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14084 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14085 else
14086   { echo "$as_me:$LINENO: result: no" >&5
14087 echo "${ECHO_T}no" >&6; }
14088 fi
14089
14090   else
14091     MAGIC_CMD=:
14092   fi
14093 fi
14094
14095   fi
14096   ;;
14097 esac
14098
14099 enable_dlopen=yes
14100 enable_win32_dll=no
14101
14102 # Check whether --enable-libtool-lock was given.
14103 if test "${enable_libtool_lock+set}" = set; then
14104   enableval=$enable_libtool_lock;
14105 fi
14106
14107 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14108
14109
14110 # Check whether --with-pic was given.
14111 if test "${with_pic+set}" = set; then
14112   withval=$with_pic; pic_mode="$withval"
14113 else
14114   pic_mode=default
14115 fi
14116
14117 test -z "$pic_mode" && pic_mode=default
14118
14119 # Use C for the default configuration in the libtool script
14120 tagname=
14121 lt_save_CC="$CC"
14122 ac_ext=c
14123 ac_cpp='$CPP $CPPFLAGS'
14124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14127
14128
14129 # Source file extension for C test sources.
14130 ac_ext=c
14131
14132 # Object file extension for compiled C test sources.
14133 objext=o
14134 objext=$objext
14135
14136 # Code to be used in simple compile tests
14137 lt_simple_compile_test_code="int some_variable = 0;\n"
14138
14139 # Code to be used in simple link tests
14140 lt_simple_link_test_code='int main(){return(0);}\n'
14141
14142
14143 # If no C compiler was specified, use CC.
14144 LTCC=${LTCC-"$CC"}
14145
14146 # If no C compiler flags were specified, use CFLAGS.
14147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14148
14149 # Allow CC to be a program name with arguments.
14150 compiler=$CC
14151
14152
14153 # save warnings/boilerplate of simple test code
14154 ac_outfile=conftest.$ac_objext
14155 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14156 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14157 _lt_compiler_boilerplate=`cat conftest.err`
14158 $rm conftest*
14159
14160 ac_outfile=conftest.$ac_objext
14161 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14162 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14163 _lt_linker_boilerplate=`cat conftest.err`
14164 $rm conftest*
14165
14166
14167
14168 lt_prog_compiler_no_builtin_flag=
14169
14170 if test "$GCC" = yes; then
14171   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14172
14173
14174 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14175 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14176 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   lt_cv_prog_compiler_rtti_exceptions=no
14180   ac_outfile=conftest.$ac_objext
14181    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14182    lt_compiler_flag="-fno-rtti -fno-exceptions"
14183    # Insert the option either (1) after the last *FLAGS variable, or
14184    # (2) before a word containing "conftest.", or (3) at the end.
14185    # Note that $ac_compile itself does not contain backslashes and begins
14186    # with a dollar sign (not a hyphen), so the echo should work correctly.
14187    # The option is referenced via a variable to avoid confusing sed.
14188    lt_compile=`echo "$ac_compile" | $SED \
14189    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14190    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14191    -e 's:$: $lt_compiler_flag:'`
14192    (eval echo "\"\$as_me:14192: $lt_compile\"" >&5)
14193    (eval "$lt_compile" 2>conftest.err)
14194    ac_status=$?
14195    cat conftest.err >&5
14196    echo "$as_me:14196: \$? = $ac_status" >&5
14197    if (exit $ac_status) && test -s "$ac_outfile"; then
14198      # The compiler can only warn and ignore the option if not recognized
14199      # So say no if there are warnings other than the usual output.
14200      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14201      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14202      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14203        lt_cv_prog_compiler_rtti_exceptions=yes
14204      fi
14205    fi
14206    $rm conftest*
14207
14208 fi
14209 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14210 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14211
14212 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14213     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14214 else
14215     :
14216 fi
14217
14218 fi
14219
14220 lt_prog_compiler_wl=
14221 lt_prog_compiler_pic=
14222 lt_prog_compiler_static=
14223
14224 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14225 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14226
14227   if test "$GCC" = yes; then
14228     lt_prog_compiler_wl='-Wl,'
14229     lt_prog_compiler_static='-static'
14230
14231     case $host_os in
14232       aix*)
14233       # All AIX code is PIC.
14234       if test "$host_cpu" = ia64; then
14235         # AIX 5 now supports IA64 processor
14236         lt_prog_compiler_static='-Bstatic'
14237       fi
14238       ;;
14239
14240     amigaos*)
14241       # FIXME: we need at least 68020 code to build shared libraries, but
14242       # adding the `-m68020' flag to GCC prevents building anything better,
14243       # like `-m68040'.
14244       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14245       ;;
14246
14247     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14248       # PIC is the default for these OSes.
14249       ;;
14250
14251     mingw* | pw32* | os2*)
14252       # This hack is so that the source file can tell whether it is being
14253       # built for inclusion in a dll (and should export symbols for example).
14254       lt_prog_compiler_pic='-DDLL_EXPORT'
14255       ;;
14256
14257     darwin* | rhapsody*)
14258       # PIC is the default on this platform
14259       # Common symbols not allowed in MH_DYLIB files
14260       lt_prog_compiler_pic='-fno-common'
14261       ;;
14262
14263     interix3*)
14264       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14265       # Instead, we relocate shared libraries at runtime.
14266       ;;
14267
14268     msdosdjgpp*)
14269       # Just because we use GCC doesn't mean we suddenly get shared libraries
14270       # on systems that don't support them.
14271       lt_prog_compiler_can_build_shared=no
14272       enable_shared=no
14273       ;;
14274
14275     sysv4*MP*)
14276       if test -d /usr/nec; then
14277         lt_prog_compiler_pic=-Kconform_pic
14278       fi
14279       ;;
14280
14281     hpux*)
14282       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14283       # not for PA HP-UX.
14284       case $host_cpu in
14285       hppa*64*|ia64*)
14286         # +Z the default
14287         ;;
14288       *)
14289         lt_prog_compiler_pic='-fPIC'
14290         ;;
14291       esac
14292       ;;
14293
14294     *)
14295       lt_prog_compiler_pic='-fPIC'
14296       ;;
14297     esac
14298   else
14299     # PORTME Check for flag to pass linker flags through the system compiler.
14300     case $host_os in
14301     aix*)
14302       lt_prog_compiler_wl='-Wl,'
14303       if test "$host_cpu" = ia64; then
14304         # AIX 5 now supports IA64 processor
14305         lt_prog_compiler_static='-Bstatic'
14306       else
14307         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14308       fi
14309       ;;
14310       darwin*)
14311         # PIC is the default on this platform
14312         # Common symbols not allowed in MH_DYLIB files
14313        case $cc_basename in
14314          xlc*)
14315          lt_prog_compiler_pic='-qnocommon'
14316          lt_prog_compiler_wl='-Wl,'
14317          ;;
14318        esac
14319        ;;
14320
14321     mingw* | pw32* | os2*)
14322       # This hack is so that the source file can tell whether it is being
14323       # built for inclusion in a dll (and should export symbols for example).
14324       lt_prog_compiler_pic='-DDLL_EXPORT'
14325       ;;
14326
14327     hpux9* | hpux10* | hpux11*)
14328       lt_prog_compiler_wl='-Wl,'
14329       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14330       # not for PA HP-UX.
14331       case $host_cpu in
14332       hppa*64*|ia64*)
14333         # +Z the default
14334         ;;
14335       *)
14336         lt_prog_compiler_pic='+Z'
14337         ;;
14338       esac
14339       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14340       lt_prog_compiler_static='${wl}-a ${wl}archive'
14341       ;;
14342
14343     irix5* | irix6* | nonstopux*)
14344       lt_prog_compiler_wl='-Wl,'
14345       # PIC (with -KPIC) is the default.
14346       lt_prog_compiler_static='-non_shared'
14347       ;;
14348
14349     newsos6)
14350       lt_prog_compiler_pic='-KPIC'
14351       lt_prog_compiler_static='-Bstatic'
14352       ;;
14353
14354     linux*)
14355       case $cc_basename in
14356       icc* | ecc*)
14357         lt_prog_compiler_wl='-Wl,'
14358         lt_prog_compiler_pic='-KPIC'
14359         lt_prog_compiler_static='-static'
14360         ;;
14361       pgcc* | pgf77* | pgf90* | pgf95*)
14362         # Portland Group compilers (*not* the Pentium gcc compiler,
14363         # which looks to be a dead project)
14364         lt_prog_compiler_wl='-Wl,'
14365         lt_prog_compiler_pic='-fpic'
14366         lt_prog_compiler_static='-Bstatic'
14367         ;;
14368       ccc*)
14369         lt_prog_compiler_wl='-Wl,'
14370         # All Alpha code is PIC.
14371         lt_prog_compiler_static='-non_shared'
14372         ;;
14373       esac
14374       ;;
14375
14376     osf3* | osf4* | osf5*)
14377       lt_prog_compiler_wl='-Wl,'
14378       # All OSF/1 code is PIC.
14379       lt_prog_compiler_static='-non_shared'
14380       ;;
14381
14382     solaris*)
14383       lt_prog_compiler_pic='-KPIC'
14384       lt_prog_compiler_static='-Bstatic'
14385       case $cc_basename in
14386       f77* | f90* | f95*)
14387         lt_prog_compiler_wl='-Qoption ld ';;
14388       *)
14389         lt_prog_compiler_wl='-Wl,';;
14390       esac
14391       ;;
14392
14393     sunos4*)
14394       lt_prog_compiler_wl='-Qoption ld '
14395       lt_prog_compiler_pic='-PIC'
14396       lt_prog_compiler_static='-Bstatic'
14397       ;;
14398
14399     sysv4 | sysv4.2uw2* | sysv4.3*)
14400       lt_prog_compiler_wl='-Wl,'
14401       lt_prog_compiler_pic='-KPIC'
14402       lt_prog_compiler_static='-Bstatic'
14403       ;;
14404
14405     sysv4*MP*)
14406       if test -d /usr/nec ;then
14407         lt_prog_compiler_pic='-Kconform_pic'
14408         lt_prog_compiler_static='-Bstatic'
14409       fi
14410       ;;
14411
14412     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14413       lt_prog_compiler_wl='-Wl,'
14414       lt_prog_compiler_pic='-KPIC'
14415       lt_prog_compiler_static='-Bstatic'
14416       ;;
14417
14418     unicos*)
14419       lt_prog_compiler_wl='-Wl,'
14420       lt_prog_compiler_can_build_shared=no
14421       ;;
14422
14423     uts4*)
14424       lt_prog_compiler_pic='-pic'
14425       lt_prog_compiler_static='-Bstatic'
14426       ;;
14427
14428     *)
14429       lt_prog_compiler_can_build_shared=no
14430       ;;
14431     esac
14432   fi
14433
14434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14435 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14436
14437 #
14438 # Check to make sure the PIC flag actually works.
14439 #
14440 if test -n "$lt_prog_compiler_pic"; then
14441
14442 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14443 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14444 if test "${lt_prog_compiler_pic_works+set}" = set; then
14445   echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447   lt_prog_compiler_pic_works=no
14448   ac_outfile=conftest.$ac_objext
14449    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14450    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14451    # Insert the option either (1) after the last *FLAGS variable, or
14452    # (2) before a word containing "conftest.", or (3) at the end.
14453    # Note that $ac_compile itself does not contain backslashes and begins
14454    # with a dollar sign (not a hyphen), so the echo should work correctly.
14455    # The option is referenced via a variable to avoid confusing sed.
14456    lt_compile=`echo "$ac_compile" | $SED \
14457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14459    -e 's:$: $lt_compiler_flag:'`
14460    (eval echo "\"\$as_me:14460: $lt_compile\"" >&5)
14461    (eval "$lt_compile" 2>conftest.err)
14462    ac_status=$?
14463    cat conftest.err >&5
14464    echo "$as_me:14464: \$? = $ac_status" >&5
14465    if (exit $ac_status) && test -s "$ac_outfile"; then
14466      # The compiler can only warn and ignore the option if not recognized
14467      # So say no if there are warnings other than the usual output.
14468      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14469      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14470      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14471        lt_prog_compiler_pic_works=yes
14472      fi
14473    fi
14474    $rm conftest*
14475
14476 fi
14477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14478 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14479
14480 if test x"$lt_prog_compiler_pic_works" = xyes; then
14481     case $lt_prog_compiler_pic in
14482      "" | " "*) ;;
14483      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14484      esac
14485 else
14486     lt_prog_compiler_pic=
14487      lt_prog_compiler_can_build_shared=no
14488 fi
14489
14490 fi
14491 case $host_os in
14492   # For platforms which do not support PIC, -DPIC is meaningless:
14493   *djgpp*)
14494     lt_prog_compiler_pic=
14495     ;;
14496   *)
14497     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14498     ;;
14499 esac
14500
14501 #
14502 # Check to make sure the static flag actually works.
14503 #
14504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14505 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14507 if test "${lt_prog_compiler_static_works+set}" = set; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   lt_prog_compiler_static_works=no
14511    save_LDFLAGS="$LDFLAGS"
14512    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14513    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14514    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14515      # The linker can only warn and ignore the option if not recognized
14516      # So say no if there are warnings
14517      if test -s conftest.err; then
14518        # Append any errors to the config.log.
14519        cat conftest.err 1>&5
14520        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14521        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14522        if diff conftest.exp conftest.er2 >/dev/null; then
14523          lt_prog_compiler_static_works=yes
14524        fi
14525      else
14526        lt_prog_compiler_static_works=yes
14527      fi
14528    fi
14529    $rm conftest*
14530    LDFLAGS="$save_LDFLAGS"
14531
14532 fi
14533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14534 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14535
14536 if test x"$lt_prog_compiler_static_works" = xyes; then
14537     :
14538 else
14539     lt_prog_compiler_static=
14540 fi
14541
14542
14543 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   lt_cv_prog_compiler_c_o=no
14549    $rm -r conftest 2>/dev/null
14550    mkdir conftest
14551    cd conftest
14552    mkdir out
14553    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14554
14555    lt_compiler_flag="-o out/conftest2.$ac_objext"
14556    # Insert the option either (1) after the last *FLAGS variable, or
14557    # (2) before a word containing "conftest.", or (3) at the end.
14558    # Note that $ac_compile itself does not contain backslashes and begins
14559    # with a dollar sign (not a hyphen), so the echo should work correctly.
14560    lt_compile=`echo "$ac_compile" | $SED \
14561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563    -e 's:$: $lt_compiler_flag:'`
14564    (eval echo "\"\$as_me:14564: $lt_compile\"" >&5)
14565    (eval "$lt_compile" 2>out/conftest.err)
14566    ac_status=$?
14567    cat out/conftest.err >&5
14568    echo "$as_me:14568: \$? = $ac_status" >&5
14569    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14570    then
14571      # The compiler can only warn and ignore the option if not recognized
14572      # So say no if there are warnings
14573      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14574      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14575      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14576        lt_cv_prog_compiler_c_o=yes
14577      fi
14578    fi
14579    chmod u+w . 2>&5
14580    $rm conftest*
14581    # SGI C++ compiler will create directory out/ii_files/ for
14582    # template instantiation
14583    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14584    $rm out/* && rmdir out
14585    cd ..
14586    rmdir conftest
14587    $rm conftest*
14588
14589 fi
14590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14591 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14592
14593
14594 hard_links="nottested"
14595 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14596   # do not overwrite the value of need_locks provided by the user
14597   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14598 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14599   hard_links=yes
14600   $rm conftest*
14601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14602   touch conftest.a
14603   ln conftest.a conftest.b 2>&5 || hard_links=no
14604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14605   { echo "$as_me:$LINENO: result: $hard_links" >&5
14606 echo "${ECHO_T}$hard_links" >&6; }
14607   if test "$hard_links" = no; then
14608     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14609 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14610     need_locks=warn
14611   fi
14612 else
14613   need_locks=no
14614 fi
14615
14616 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14618
14619   runpath_var=
14620   allow_undefined_flag=
14621   enable_shared_with_static_runtimes=no
14622   archive_cmds=
14623   archive_expsym_cmds=
14624   old_archive_From_new_cmds=
14625   old_archive_from_expsyms_cmds=
14626   export_dynamic_flag_spec=
14627   whole_archive_flag_spec=
14628   thread_safe_flag_spec=
14629   hardcode_libdir_flag_spec=
14630   hardcode_libdir_flag_spec_ld=
14631   hardcode_libdir_separator=
14632   hardcode_direct=no
14633   hardcode_minus_L=no
14634   hardcode_shlibpath_var=unsupported
14635   link_all_deplibs=unknown
14636   hardcode_automatic=no
14637   module_cmds=
14638   module_expsym_cmds=
14639   always_export_symbols=no
14640   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14641   # include_expsyms should be a list of space-separated symbols to be *always*
14642   # included in the symbol list
14643   include_expsyms=
14644   # exclude_expsyms can be an extended regexp of symbols to exclude
14645   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14646   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14647   # as well as any symbol that contains `d'.
14648   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14649   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14650   # platforms (ab)use it in PIC code, but their linkers get confused if
14651   # the symbol is explicitly referenced.  Since portable code cannot
14652   # rely on this symbol name, it's probably fine to never include it in
14653   # preloaded symbol tables.
14654   extract_expsyms_cmds=
14655   # Just being paranoid about ensuring that cc_basename is set.
14656   for cc_temp in $compiler""; do
14657   case $cc_temp in
14658     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14659     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14660     \-*) ;;
14661     *) break;;
14662   esac
14663 done
14664 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14665
14666   case $host_os in
14667   cygwin* | mingw* | pw32*)
14668     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14669     # When not using gcc, we currently assume that we are using
14670     # Microsoft Visual C++.
14671     if test "$GCC" != yes; then
14672       with_gnu_ld=no
14673     fi
14674     ;;
14675   interix*)
14676     # we just hope/assume this is gcc and not c89 (= MSVC++)
14677     with_gnu_ld=yes
14678     ;;
14679   openbsd*)
14680     with_gnu_ld=no
14681     ;;
14682   esac
14683
14684   ld_shlibs=yes
14685   if test "$with_gnu_ld" = yes; then
14686     # If archive_cmds runs LD, not CC, wlarc should be empty
14687     wlarc='${wl}'
14688
14689     # Set some defaults for GNU ld with shared library support. These
14690     # are reset later if shared libraries are not supported. Putting them
14691     # here allows them to be overridden if necessary.
14692     runpath_var=LD_RUN_PATH
14693     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14694     export_dynamic_flag_spec='${wl}--export-dynamic'
14695     # ancient GNU ld didn't support --whole-archive et. al.
14696     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14697         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14698       else
14699         whole_archive_flag_spec=
14700     fi
14701     supports_anon_versioning=no
14702     case `$LD -v 2>/dev/null` in
14703       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14704       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14705       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14706       *\ 2.11.*) ;; # other 2.11 versions
14707       *) supports_anon_versioning=yes ;;
14708     esac
14709
14710     # See if GNU ld supports shared libraries.
14711     case $host_os in
14712     aix3* | aix4* | aix5*)
14713       # On AIX/PPC, the GNU linker is very broken
14714       if test "$host_cpu" != ia64; then
14715         ld_shlibs=no
14716         cat <<EOF 1>&2
14717
14718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14719 *** to be unable to reliably create shared libraries on AIX.
14720 *** Therefore, libtool is disabling shared libraries support.  If you
14721 *** really care for shared libraries, you may want to modify your PATH
14722 *** so that a non-GNU linker is found, and then restart.
14723
14724 EOF
14725       fi
14726       ;;
14727
14728     amigaos*)
14729       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)'
14730       hardcode_libdir_flag_spec='-L$libdir'
14731       hardcode_minus_L=yes
14732
14733       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14734       # that the semantics of dynamic libraries on AmigaOS, at least up
14735       # to version 4, is to share data among multiple programs linked
14736       # with the same dynamic library.  Since this doesn't match the
14737       # behavior of shared libraries on other platforms, we can't use
14738       # them.
14739       ld_shlibs=no
14740       ;;
14741
14742     beos*)
14743       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14744         allow_undefined_flag=unsupported
14745         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14746         # support --undefined.  This deserves some investigation.  FIXME
14747         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748       else
14749         ld_shlibs=no
14750       fi
14751       ;;
14752
14753     cygwin* | mingw* | pw32*)
14754       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14755       # as there is no search path for DLLs.
14756       hardcode_libdir_flag_spec='-L$libdir'
14757       allow_undefined_flag=unsupported
14758       always_export_symbols=no
14759       enable_shared_with_static_runtimes=yes
14760       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14761
14762       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14764         # If the export-symbols file already is a .def file (1st line
14765         # is EXPORTS), use it as is; otherwise, prepend...
14766         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14767           cp $export_symbols $output_objdir/$soname.def;
14768         else
14769           echo EXPORTS > $output_objdir/$soname.def;
14770           cat $export_symbols >> $output_objdir/$soname.def;
14771         fi~
14772         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14773       else
14774         ld_shlibs=no
14775       fi
14776       ;;
14777
14778     interix3*)
14779       hardcode_direct=no
14780       hardcode_shlibpath_var=no
14781       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14782       export_dynamic_flag_spec='${wl}-E'
14783       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14784       # Instead, shared libraries are loaded at an image base (0x10000000 by
14785       # default) and relocated if they conflict, which is a slow very memory
14786       # consuming and fragmenting process.  To avoid this, we pick a random,
14787       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14788       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14789       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14790       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'
14791       ;;
14792
14793     linux*)
14794       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795         tmp_addflag=
14796         case $cc_basename,$host_cpu in
14797         pgcc*)                          # Portland Group C compiler
14798           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'
14799           tmp_addflag=' $pic_flag'
14800           ;;
14801         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14802           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'
14803           tmp_addflag=' $pic_flag -Mnomain' ;;
14804         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14805           tmp_addflag=' -i_dynamic' ;;
14806         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14807           tmp_addflag=' -i_dynamic -nofor_main' ;;
14808         ifc* | ifort*)                  # Intel Fortran compiler
14809           tmp_addflag=' -nofor_main' ;;
14810         esac
14811         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812
14813         if test $supports_anon_versioning = yes; then
14814           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14815   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14816   $echo "local: *; };" >> $output_objdir/$libname.ver~
14817           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14818         fi
14819       else
14820         ld_shlibs=no
14821       fi
14822       ;;
14823
14824     netbsd*)
14825       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14826         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14827         wlarc=
14828       else
14829         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14830         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14831       fi
14832       ;;
14833
14834     solaris*)
14835       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14836         ld_shlibs=no
14837         cat <<EOF 1>&2
14838
14839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14840 *** create shared libraries on Solaris systems.  Therefore, libtool
14841 *** is disabling shared libraries support.  We urge you to upgrade GNU
14842 *** binutils to release 2.9.1 or newer.  Another option is to modify
14843 *** your PATH or compiler configuration so that the native linker is
14844 *** used, and then restart.
14845
14846 EOF
14847       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14850       else
14851         ld_shlibs=no
14852       fi
14853       ;;
14854
14855     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14856       case `$LD -v 2>&1` in
14857         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14858         ld_shlibs=no
14859         cat <<_LT_EOF 1>&2
14860
14861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14862 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14863 *** is disabling shared libraries support.  We urge you to upgrade GNU
14864 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14865 *** your PATH or compiler configuration so that the native linker is
14866 *** used, and then restart.
14867
14868 _LT_EOF
14869         ;;
14870         *)
14871           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14872             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14873             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14874             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14875           else
14876             ld_shlibs=no
14877           fi
14878         ;;
14879       esac
14880       ;;
14881
14882     sunos4*)
14883       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884       wlarc=
14885       hardcode_direct=yes
14886       hardcode_shlibpath_var=no
14887       ;;
14888
14889     *)
14890       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14891         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14893       else
14894         ld_shlibs=no
14895       fi
14896       ;;
14897     esac
14898
14899     if test "$ld_shlibs" = no; then
14900       runpath_var=
14901       hardcode_libdir_flag_spec=
14902       export_dynamic_flag_spec=
14903       whole_archive_flag_spec=
14904     fi
14905   else
14906     # PORTME fill in a description of your system's linker (not GNU ld)
14907     case $host_os in
14908     aix3*)
14909       allow_undefined_flag=unsupported
14910       always_export_symbols=yes
14911       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'
14912       # Note: this linker hardcodes the directories in LIBPATH if there
14913       # are no directories specified by -L.
14914       hardcode_minus_L=yes
14915       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14916         # Neither direct hardcoding nor static linking is supported with a
14917         # broken collect2.
14918         hardcode_direct=unsupported
14919       fi
14920       ;;
14921
14922     aix4* | aix5*)
14923       if test "$host_cpu" = ia64; then
14924         # On IA64, the linker does run time linking by default, so we don't
14925         # have to do anything special.
14926         aix_use_runtimelinking=no
14927         exp_sym_flag='-Bexport'
14928         no_entry_flag=""
14929       else
14930         # If we're using GNU nm, then we don't want the "-C" option.
14931         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14932         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14933           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'
14934         else
14935           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'
14936         fi
14937         aix_use_runtimelinking=no
14938
14939         # Test if we are trying to use run time linking or normal
14940         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14941         # need to do runtime linking.
14942         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14943           for ld_flag in $LDFLAGS; do
14944           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14945             aix_use_runtimelinking=yes
14946             break
14947           fi
14948           done
14949           ;;
14950         esac
14951
14952         exp_sym_flag='-bexport'
14953         no_entry_flag='-bnoentry'
14954       fi
14955
14956       # When large executables or shared objects are built, AIX ld can
14957       # have problems creating the table of contents.  If linking a library
14958       # or program results in "error TOC overflow" add -mminimal-toc to
14959       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14960       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14961
14962       archive_cmds=''
14963       hardcode_direct=yes
14964       hardcode_libdir_separator=':'
14965       link_all_deplibs=yes
14966
14967       if test "$GCC" = yes; then
14968         case $host_os in aix4.[012]|aix4.[012].*)
14969         # We only want to do this on AIX 4.2 and lower, the check
14970         # below for broken collect2 doesn't work under 4.3+
14971           collect2name=`${CC} -print-prog-name=collect2`
14972           if test -f "$collect2name" && \
14973            strings "$collect2name" | grep resolve_lib_name >/dev/null
14974           then
14975           # We have reworked collect2
14976           hardcode_direct=yes
14977           else
14978           # We have old collect2
14979           hardcode_direct=unsupported
14980           # It fails to find uninstalled libraries when the uninstalled
14981           # path is not listed in the libpath.  Setting hardcode_minus_L
14982           # to unsupported forces relinking
14983           hardcode_minus_L=yes
14984           hardcode_libdir_flag_spec='-L$libdir'
14985           hardcode_libdir_separator=
14986           fi
14987           ;;
14988         esac
14989         shared_flag='-shared'
14990         if test "$aix_use_runtimelinking" = yes; then
14991           shared_flag="$shared_flag "'${wl}-G'
14992         fi
14993       else
14994         # not using gcc
14995         if test "$host_cpu" = ia64; then
14996         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14997         # chokes on -Wl,-G. The following line is correct:
14998           shared_flag='-G'
14999         else
15000           if test "$aix_use_runtimelinking" = yes; then
15001             shared_flag='${wl}-G'
15002           else
15003             shared_flag='${wl}-bM:SRE'
15004           fi
15005         fi
15006       fi
15007
15008       # It seems that -bexpall does not export symbols beginning with
15009       # underscore (_), so it is better to generate a list of symbols to export.
15010       always_export_symbols=yes
15011       if test "$aix_use_runtimelinking" = yes; then
15012         # Warning - without using the other runtime loading flags (-brtl),
15013         # -berok will link without error, but may produce a broken library.
15014         allow_undefined_flag='-berok'
15015        # Determine the default libpath from the value encoded in an empty executable.
15016        cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022
15023 int
15024 main ()
15025 {
15026
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_link") 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046   { (case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_try") 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest$ac_exeext'
15056   { (case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_try") 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; }; then
15065
15066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15067 }'`
15068 # Check for a 64-bit object if we didn't find anything.
15069 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; }
15070 }'`; fi
15071 else
15072   echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075
15076 fi
15077
15078 rm -f core conftest.err conftest.$ac_objext \
15079       conftest$ac_exeext conftest.$ac_ext
15080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15081
15082        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15083         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"
15084        else
15085         if test "$host_cpu" = ia64; then
15086           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15087           allow_undefined_flag="-z nodefs"
15088           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"
15089         else
15090          # Determine the default libpath from the value encoded in an empty executable.
15091          cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097
15098 int
15099 main ()
15100 {
15101
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext conftest$ac_exeext
15107 if { (ac_try="$ac_link"
15108 case "(($ac_try" in
15109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110   *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113   (eval "$ac_link") 2>conftest.er1
15114   ac_status=$?
15115   grep -v '^ *+' conftest.er1 >conftest.err
15116   rm -f conftest.er1
15117   cat conftest.err >&5
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); } &&
15120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15121   { (case "(($ac_try" in
15122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123   *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126   (eval "$ac_try") 2>&5
15127   ac_status=$?
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); }; } &&
15130          { ac_try='test -s conftest$ac_exeext'
15131   { (case "(($ac_try" in
15132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133   *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136   (eval "$ac_try") 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); }; }; then
15140
15141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15142 }'`
15143 # Check for a 64-bit object if we didn't find anything.
15144 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; }
15145 }'`; fi
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150
15151 fi
15152
15153 rm -f core conftest.err conftest.$ac_objext \
15154       conftest$ac_exeext conftest.$ac_ext
15155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15156
15157          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15158           # Warning - without using the other run time loading flags,
15159           # -berok will link without error, but may produce a broken library.
15160           no_undefined_flag=' ${wl}-bernotok'
15161           allow_undefined_flag=' ${wl}-berok'
15162           # Exported symbols can be pulled into shared objects from archives
15163           whole_archive_flag_spec='$convenience'
15164           archive_cmds_need_lc=yes
15165           # This is similar to how AIX traditionally builds its shared libraries.
15166           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'
15167         fi
15168       fi
15169       ;;
15170
15171     amigaos*)
15172       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)'
15173       hardcode_libdir_flag_spec='-L$libdir'
15174       hardcode_minus_L=yes
15175       # see comment about different semantics on the GNU ld section
15176       ld_shlibs=no
15177       ;;
15178
15179     bsdi[45]*)
15180       export_dynamic_flag_spec=-rdynamic
15181       ;;
15182
15183     cygwin* | mingw* | pw32*)
15184       # When not using gcc, we currently assume that we are using
15185       # Microsoft Visual C++.
15186       # hardcode_libdir_flag_spec is actually meaningless, as there is
15187       # no search path for DLLs.
15188       hardcode_libdir_flag_spec=' '
15189       allow_undefined_flag=unsupported
15190       # Tell ltmain to make .lib files, not .a files.
15191       libext=lib
15192       # Tell ltmain to make .dll files, not .so files.
15193       shrext_cmds=".dll"
15194       # FIXME: Setting linknames here is a bad hack.
15195       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15196       # The linker will automatically build a .lib file if we build a DLL.
15197       old_archive_From_new_cmds='true'
15198       # FIXME: Should let the user specify the lib program.
15199       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15200       fix_srcfile_path='`cygpath -w "$srcfile"`'
15201       enable_shared_with_static_runtimes=yes
15202       ;;
15203
15204     darwin* | rhapsody*)
15205       case $host_os in
15206         rhapsody* | darwin1.[012])
15207          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15208          ;;
15209        *) # Darwin 1.3 on
15210          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15211            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15212          else
15213            case ${MACOSX_DEPLOYMENT_TARGET} in
15214              10.[012])
15215                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15216                ;;
15217              10.*)
15218                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15219                ;;
15220            esac
15221          fi
15222          ;;
15223       esac
15224       archive_cmds_need_lc=no
15225       hardcode_direct=no
15226       hardcode_automatic=yes
15227       hardcode_shlibpath_var=unsupported
15228       whole_archive_flag_spec=''
15229       link_all_deplibs=yes
15230     if test "$GCC" = yes ; then
15231         output_verbose_link_cmd='echo'
15232         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15233       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15234       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15235       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}'
15236       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}'
15237     else
15238       case $cc_basename in
15239         xlc*)
15240          output_verbose_link_cmd='echo'
15241          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15242          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15243           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15244          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}'
15245           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}'
15246           ;;
15247        *)
15248          ld_shlibs=no
15249           ;;
15250       esac
15251     fi
15252       ;;
15253
15254     dgux*)
15255       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256       hardcode_libdir_flag_spec='-L$libdir'
15257       hardcode_shlibpath_var=no
15258       ;;
15259
15260     freebsd1*)
15261       ld_shlibs=no
15262       ;;
15263
15264     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15265     # support.  Future versions do this automatically, but an explicit c++rt0.o
15266     # does not break anything, and helps significantly (at the cost of a little
15267     # extra space).
15268     freebsd2.2*)
15269       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15270       hardcode_libdir_flag_spec='-R$libdir'
15271       hardcode_direct=yes
15272       hardcode_shlibpath_var=no
15273       ;;
15274
15275     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15276     freebsd2*)
15277       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15278       hardcode_direct=yes
15279       hardcode_minus_L=yes
15280       hardcode_shlibpath_var=no
15281       ;;
15282
15283     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15284     freebsd* | kfreebsd*-gnu | dragonfly*)
15285       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15286       hardcode_libdir_flag_spec='-R$libdir'
15287       hardcode_direct=yes
15288       hardcode_shlibpath_var=no
15289       ;;
15290
15291     hpux9*)
15292       if test "$GCC" = yes; then
15293         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'
15294       else
15295         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'
15296       fi
15297       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15298       hardcode_libdir_separator=:
15299       hardcode_direct=yes
15300
15301       # hardcode_minus_L: Not really in the search PATH,
15302       # but as the default location of the library.
15303       hardcode_minus_L=yes
15304       export_dynamic_flag_spec='${wl}-E'
15305       ;;
15306
15307     hpux10*)
15308       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15309         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15310       else
15311         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15312       fi
15313       if test "$with_gnu_ld" = no; then
15314         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15315         hardcode_libdir_separator=:
15316
15317         hardcode_direct=yes
15318         export_dynamic_flag_spec='${wl}-E'
15319
15320         # hardcode_minus_L: Not really in the search PATH,
15321         # but as the default location of the library.
15322         hardcode_minus_L=yes
15323       fi
15324       ;;
15325
15326     hpux11*)
15327       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15328         case $host_cpu in
15329         hppa*64*)
15330           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15331           ;;
15332         ia64*)
15333           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15334           ;;
15335         *)
15336           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15337           ;;
15338         esac
15339       else
15340         case $host_cpu in
15341         hppa*64*)
15342           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343           ;;
15344         ia64*)
15345           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15346           ;;
15347         *)
15348           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15349           ;;
15350         esac
15351       fi
15352       if test "$with_gnu_ld" = no; then
15353         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354         hardcode_libdir_separator=:
15355
15356         case $host_cpu in
15357         hppa*64*|ia64*)
15358           hardcode_libdir_flag_spec_ld='+b $libdir'
15359           hardcode_direct=no
15360           hardcode_shlibpath_var=no
15361           ;;
15362         *)
15363           hardcode_direct=yes
15364           export_dynamic_flag_spec='${wl}-E'
15365
15366           # hardcode_minus_L: Not really in the search PATH,
15367           # but as the default location of the library.
15368           hardcode_minus_L=yes
15369           ;;
15370         esac
15371       fi
15372       ;;
15373
15374     irix5* | irix6* | nonstopux*)
15375       if test "$GCC" = yes; then
15376         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'
15377       else
15378         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'
15379         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15380       fi
15381       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15382       hardcode_libdir_separator=:
15383       link_all_deplibs=yes
15384       ;;
15385
15386     netbsd*)
15387       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15388         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15389       else
15390         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15391       fi
15392       hardcode_libdir_flag_spec='-R$libdir'
15393       hardcode_direct=yes
15394       hardcode_shlibpath_var=no
15395       ;;
15396
15397     newsos6)
15398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399       hardcode_direct=yes
15400       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15401       hardcode_libdir_separator=:
15402       hardcode_shlibpath_var=no
15403       ;;
15404
15405     openbsd*)
15406       hardcode_direct=yes
15407       hardcode_shlibpath_var=no
15408       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15409         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15410         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15411         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15412         export_dynamic_flag_spec='${wl}-E'
15413       else
15414        case $host_os in
15415          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15416            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15417            hardcode_libdir_flag_spec='-R$libdir'
15418            ;;
15419          *)
15420            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15421            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15422            ;;
15423        esac
15424       fi
15425       ;;
15426
15427     os2*)
15428       hardcode_libdir_flag_spec='-L$libdir'
15429       hardcode_minus_L=yes
15430       allow_undefined_flag=unsupported
15431       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'
15432       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15433       ;;
15434
15435     osf3*)
15436       if test "$GCC" = yes; then
15437         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15438         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'
15439       else
15440         allow_undefined_flag=' -expect_unresolved \*'
15441         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'
15442       fi
15443       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15444       hardcode_libdir_separator=:
15445       ;;
15446
15447     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15448       if test "$GCC" = yes; then
15449         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15450         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'
15451         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15452       else
15453         allow_undefined_flag=' -expect_unresolved \*'
15454         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'
15455         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15456         $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'
15457
15458         # Both c and cxx compiler support -rpath directly
15459         hardcode_libdir_flag_spec='-rpath $libdir'
15460       fi
15461       hardcode_libdir_separator=:
15462       ;;
15463
15464     solaris*)
15465       no_undefined_flag=' -z text'
15466       if test "$GCC" = yes; then
15467         wlarc='${wl}'
15468         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15470           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15471       else
15472         wlarc=''
15473         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15475         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15476       fi
15477       hardcode_libdir_flag_spec='-R$libdir'
15478       hardcode_shlibpath_var=no
15479       case $host_os in
15480       solaris2.[0-5] | solaris2.[0-5].*) ;;
15481       *)
15482         # The compiler driver will combine linker options so we
15483         # cannot just pass the convience library names through
15484         # without $wl, iff we do not link with $LD.
15485         # Luckily, gcc supports the same syntax we need for Sun Studio.
15486         # Supported since Solaris 2.6 (maybe 2.5.1?)
15487         case $wlarc in
15488         '')
15489           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15490         *)
15491           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' ;;
15492         esac ;;
15493       esac
15494       link_all_deplibs=yes
15495       ;;
15496
15497     sunos4*)
15498       if test "x$host_vendor" = xsequent; then
15499         # Use $CC to link under sequent, because it throws in some extra .o
15500         # files that make .init and .fini sections work.
15501         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15502       else
15503         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15504       fi
15505       hardcode_libdir_flag_spec='-L$libdir'
15506       hardcode_direct=yes
15507       hardcode_minus_L=yes
15508       hardcode_shlibpath_var=no
15509       ;;
15510
15511     sysv4)
15512       case $host_vendor in
15513         sni)
15514           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515           hardcode_direct=yes # is this really true???
15516         ;;
15517         siemens)
15518           ## LD is ld it makes a PLAMLIB
15519           ## CC just makes a GrossModule.
15520           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15521           reload_cmds='$CC -r -o $output$reload_objs'
15522           hardcode_direct=no
15523         ;;
15524         motorola)
15525           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15527         ;;
15528       esac
15529       runpath_var='LD_RUN_PATH'
15530       hardcode_shlibpath_var=no
15531       ;;
15532
15533     sysv4.3*)
15534       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15535       hardcode_shlibpath_var=no
15536       export_dynamic_flag_spec='-Bexport'
15537       ;;
15538
15539     sysv4*MP*)
15540       if test -d /usr/nec; then
15541         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542         hardcode_shlibpath_var=no
15543         runpath_var=LD_RUN_PATH
15544         hardcode_runpath_var=yes
15545         ld_shlibs=yes
15546       fi
15547       ;;
15548
15549     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15550       no_undefined_flag='${wl}-z,text'
15551       archive_cmds_need_lc=no
15552       hardcode_shlibpath_var=no
15553       runpath_var='LD_RUN_PATH'
15554
15555       if test "$GCC" = yes; then
15556         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15558       else
15559         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15561       fi
15562       ;;
15563
15564     sysv5* | sco3.2v5* | sco5v6*)
15565       # Note: We can NOT use -z defs as we might desire, because we do not
15566       # link with -lc, and that would cause any symbols used from libc to
15567       # always be unresolved, which means just about no library would
15568       # ever link correctly.  If we're not using GNU ld we use -z text
15569       # though, which does catch some bad symbols but isn't as heavy-handed
15570       # as -z defs.
15571       no_undefined_flag='${wl}-z,text'
15572       allow_undefined_flag='${wl}-z,nodefs'
15573       archive_cmds_need_lc=no
15574       hardcode_shlibpath_var=no
15575       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15576       hardcode_libdir_separator=':'
15577       link_all_deplibs=yes
15578       export_dynamic_flag_spec='${wl}-Bexport'
15579       runpath_var='LD_RUN_PATH'
15580
15581       if test "$GCC" = yes; then
15582         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15584       else
15585         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15587       fi
15588       ;;
15589
15590     uts4*)
15591       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592       hardcode_libdir_flag_spec='-L$libdir'
15593       hardcode_shlibpath_var=no
15594       ;;
15595
15596     *)
15597       ld_shlibs=no
15598       ;;
15599     esac
15600   fi
15601
15602 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15603 echo "${ECHO_T}$ld_shlibs" >&6; }
15604 test "$ld_shlibs" = no && can_build_shared=no
15605
15606 #
15607 # Do we need to explicitly link libc?
15608 #
15609 case "x$archive_cmds_need_lc" in
15610 x|xyes)
15611   # Assume -lc should be added
15612   archive_cmds_need_lc=yes
15613
15614   if test "$enable_shared" = yes && test "$GCC" = yes; then
15615     case $archive_cmds in
15616     *'~'*)
15617       # FIXME: we may have to deal with multi-command sequences.
15618       ;;
15619     '$CC '*)
15620       # Test whether the compiler implicitly links with -lc since on some
15621       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15622       # to ld, don't add -lc before -lgcc.
15623       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15625       $rm conftest*
15626       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15627
15628       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629   (eval $ac_compile) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } 2>conftest.err; then
15633         soname=conftest
15634         lib=conftest
15635         libobjs=conftest.$ac_objext
15636         deplibs=
15637         wl=$lt_prog_compiler_wl
15638         pic_flag=$lt_prog_compiler_pic
15639         compiler_flags=-v
15640         linker_flags=-v
15641         verstring=
15642         output_objdir=.
15643         libname=conftest
15644         lt_save_allow_undefined_flag=$allow_undefined_flag
15645         allow_undefined_flag=
15646         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15647   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }
15651         then
15652           archive_cmds_need_lc=no
15653         else
15654           archive_cmds_need_lc=yes
15655         fi
15656         allow_undefined_flag=$lt_save_allow_undefined_flag
15657       else
15658         cat conftest.err 1>&5
15659       fi
15660       $rm conftest*
15661       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15662 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15663       ;;
15664     esac
15665   fi
15666   ;;
15667 esac
15668
15669 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15670 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15671 library_names_spec=
15672 libname_spec='lib$name'
15673 soname_spec=
15674 shrext_cmds=".so"
15675 postinstall_cmds=
15676 postuninstall_cmds=
15677 finish_cmds=
15678 finish_eval=
15679 shlibpath_var=
15680 shlibpath_overrides_runpath=unknown
15681 version_type=none
15682 dynamic_linker="$host_os ld.so"
15683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15684 if test "$GCC" = yes; then
15685   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15687     # if the path contains ";" then we assume it to be the separator
15688     # otherwise default to the standard path separator (i.e. ":") - it is
15689     # assumed that no part of a normal pathname contains ";" but that should
15690     # okay in the real world where ";" in dirpaths is itself problematic.
15691     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15692   else
15693     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15694   fi
15695 else
15696   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15697 fi
15698 need_lib_prefix=unknown
15699 hardcode_into_libs=no
15700
15701 # when you set need_version to no, make sure it does not cause -set_version
15702 # flags to be left without arguments
15703 need_version=unknown
15704
15705 case $host_os in
15706 aix3*)
15707   version_type=linux
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15709   shlibpath_var=LIBPATH
15710
15711   # AIX 3 has no versioning support, so we append a major version to the name.
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   ;;
15714
15715 aix4* | aix5*)
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   hardcode_into_libs=yes
15720   if test "$host_cpu" = ia64; then
15721     # AIX 5 supports IA64
15722     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15723     shlibpath_var=LD_LIBRARY_PATH
15724   else
15725     # With GCC up to 2.95.x, collect2 would create an import file
15726     # for dependence libraries.  The import file would start with
15727     # the line `#! .'.  This would cause the generated library to
15728     # depend on `.', always an invalid library.  This was fixed in
15729     # development snapshots of GCC prior to 3.0.
15730     case $host_os in
15731       aix4 | aix4.[01] | aix4.[01].*)
15732       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15733            echo ' yes '
15734            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15735         :
15736       else
15737         can_build_shared=no
15738       fi
15739       ;;
15740     esac
15741     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15742     # soname into executable. Probably we can add versioning support to
15743     # collect2, so additional links can be useful in future.
15744     if test "$aix_use_runtimelinking" = yes; then
15745       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15746       # instead of lib<name>.a to let people know that these are not
15747       # typical AIX shared libraries.
15748       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749     else
15750       # We preserve .a as extension for shared libraries through AIX4.2
15751       # and later when we are not doing run time linking.
15752       library_names_spec='${libname}${release}.a $libname.a'
15753       soname_spec='${libname}${release}${shared_ext}$major'
15754     fi
15755     shlibpath_var=LIBPATH
15756   fi
15757   ;;
15758
15759 amigaos*)
15760   library_names_spec='$libname.ixlibrary $libname.a'
15761   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15762   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'
15763   ;;
15764
15765 beos*)
15766   library_names_spec='${libname}${shared_ext}'
15767   dynamic_linker="$host_os ld.so"
15768   shlibpath_var=LIBRARY_PATH
15769   ;;
15770
15771 bsdi[45]*)
15772   version_type=linux
15773   need_version=no
15774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775   soname_spec='${libname}${release}${shared_ext}$major'
15776   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15779   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15780   # the default ld.so.conf also contains /usr/contrib/lib and
15781   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15782   # libtool to hard-code these into programs
15783   ;;
15784
15785 cygwin* | mingw* | pw32*)
15786   version_type=windows
15787   shrext_cmds=".dll"
15788   need_version=no
15789   need_lib_prefix=no
15790
15791   case $GCC,$host_os in
15792   yes,cygwin* | yes,mingw* | yes,pw32*)
15793     library_names_spec='$libname.dll.a'
15794     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15795     postinstall_cmds='base_file=`basename \${file}`~
15796       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15797       dldir=$destdir/`dirname \$dlpath`~
15798       test -d \$dldir || mkdir -p \$dldir~
15799       $install_prog $dir/$dlname \$dldir/$dlname~
15800       chmod a+x \$dldir/$dlname'
15801     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15802       dlpath=$dir/\$dldll~
15803        $rm \$dlpath'
15804     shlibpath_overrides_runpath=yes
15805
15806     case $host_os in
15807     cygwin*)
15808       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15809       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15810       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15811       ;;
15812     mingw*)
15813       # MinGW DLLs use traditional 'lib' prefix
15814       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15815       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15816       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15817         # It is most probably a Windows format PATH printed by
15818         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15819         # path with ; separators, and with drive letters. We can handle the
15820         # drive letters (cygwin fileutils understands them), so leave them,
15821         # especially as we might pass files found there to a mingw objdump,
15822         # which wouldn't understand a cygwinified path. Ahh.
15823         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824       else
15825         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15826       fi
15827       ;;
15828     pw32*)
15829       # pw32 DLLs use 'pw' prefix rather than 'lib'
15830       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15831       ;;
15832     esac
15833     ;;
15834
15835   *)
15836     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15837     ;;
15838   esac
15839   dynamic_linker='Win32 ld.exe'
15840   # FIXME: first we should search . and the directory the executable is in
15841   shlibpath_var=PATH
15842   ;;
15843
15844 darwin* | rhapsody*)
15845   dynamic_linker="$host_os dyld"
15846   version_type=darwin
15847   need_lib_prefix=no
15848   need_version=no
15849   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15850   soname_spec='${libname}${release}${major}$shared_ext'
15851   shlibpath_overrides_runpath=yes
15852   shlibpath_var=DYLD_LIBRARY_PATH
15853   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15854   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15855   if test "$GCC" = yes; then
15856     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"`
15857   else
15858     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15859   fi
15860   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15861   ;;
15862
15863 dgux*)
15864   version_type=linux
15865   need_lib_prefix=no
15866   need_version=no
15867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15868   soname_spec='${libname}${release}${shared_ext}$major'
15869   shlibpath_var=LD_LIBRARY_PATH
15870   ;;
15871
15872 freebsd1*)
15873   dynamic_linker=no
15874   ;;
15875
15876 kfreebsd*-gnu)
15877   version_type=linux
15878   need_lib_prefix=no
15879   need_version=no
15880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881   soname_spec='${libname}${release}${shared_ext}$major'
15882   shlibpath_var=LD_LIBRARY_PATH
15883   shlibpath_overrides_runpath=no
15884   hardcode_into_libs=yes
15885   dynamic_linker='GNU ld.so'
15886   ;;
15887
15888 freebsd* | dragonfly*)
15889   # DragonFly does not have aout.  When/if they implement a new
15890   # versioning mechanism, adjust this.
15891   if test -x /usr/bin/objformat; then
15892     objformat=`/usr/bin/objformat`
15893   else
15894     case $host_os in
15895     freebsd[123]*) objformat=aout ;;
15896     *) objformat=elf ;;
15897     esac
15898   fi
15899   version_type=freebsd-$objformat
15900   case $version_type in
15901     freebsd-elf*)
15902       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15903       need_version=no
15904       need_lib_prefix=no
15905       ;;
15906     freebsd-*)
15907       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15908       need_version=yes
15909       ;;
15910   esac
15911   shlibpath_var=LD_LIBRARY_PATH
15912   case $host_os in
15913   freebsd2*)
15914     shlibpath_overrides_runpath=yes
15915     ;;
15916   freebsd3.[01]* | freebsdelf3.[01]*)
15917     shlibpath_overrides_runpath=yes
15918     hardcode_into_libs=yes
15919     ;;
15920   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15921   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15922     shlibpath_overrides_runpath=no
15923     hardcode_into_libs=yes
15924     ;;
15925   freebsd*) # from 4.6 on
15926     shlibpath_overrides_runpath=yes
15927     hardcode_into_libs=yes
15928     ;;
15929   esac
15930   ;;
15931
15932 gnu*)
15933   version_type=linux
15934   need_lib_prefix=no
15935   need_version=no
15936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15937   soname_spec='${libname}${release}${shared_ext}$major'
15938   shlibpath_var=LD_LIBRARY_PATH
15939   hardcode_into_libs=yes
15940   ;;
15941
15942 hpux9* | hpux10* | hpux11*)
15943   # Give a soname corresponding to the major version so that dld.sl refuses to
15944   # link against other versions.
15945   version_type=sunos
15946   need_lib_prefix=no
15947   need_version=no
15948   case $host_cpu in
15949   ia64*)
15950     shrext_cmds='.so'
15951     hardcode_into_libs=yes
15952     dynamic_linker="$host_os dld.so"
15953     shlibpath_var=LD_LIBRARY_PATH
15954     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956     soname_spec='${libname}${release}${shared_ext}$major'
15957     if test "X$HPUX_IA64_MODE" = X32; then
15958       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15959     else
15960       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15961     fi
15962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15963     ;;
15964    hppa*64*)
15965      shrext_cmds='.sl'
15966      hardcode_into_libs=yes
15967      dynamic_linker="$host_os dld.sl"
15968      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15969      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971      soname_spec='${libname}${release}${shared_ext}$major'
15972      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15973      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15974      ;;
15975    *)
15976     shrext_cmds='.sl'
15977     dynamic_linker="$host_os dld.sl"
15978     shlibpath_var=SHLIB_PATH
15979     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981     soname_spec='${libname}${release}${shared_ext}$major'
15982     ;;
15983   esac
15984   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15985   postinstall_cmds='chmod 555 $lib'
15986   ;;
15987
15988 interix3*)
15989   version_type=linux
15990   need_lib_prefix=no
15991   need_version=no
15992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15993   soname_spec='${libname}${release}${shared_ext}$major'
15994   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15995   shlibpath_var=LD_LIBRARY_PATH
15996   shlibpath_overrides_runpath=no
15997   hardcode_into_libs=yes
15998   ;;
15999
16000 irix5* | irix6* | nonstopux*)
16001   case $host_os in
16002     nonstopux*) version_type=nonstopux ;;
16003     *)
16004         if test "$lt_cv_prog_gnu_ld" = yes; then
16005                 version_type=linux
16006         else
16007                 version_type=irix
16008         fi ;;
16009   esac
16010   need_lib_prefix=no
16011   need_version=no
16012   soname_spec='${libname}${release}${shared_ext}$major'
16013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16014   case $host_os in
16015   irix5* | nonstopux*)
16016     libsuff= shlibsuff=
16017     ;;
16018   *)
16019     case $LD in # libtool.m4 will add one of these switches to LD
16020     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16021       libsuff= shlibsuff= libmagic=32-bit;;
16022     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16023       libsuff=32 shlibsuff=N32 libmagic=N32;;
16024     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16025       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16026     *) libsuff= shlibsuff= libmagic=never-match;;
16027     esac
16028     ;;
16029   esac
16030   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16031   shlibpath_overrides_runpath=no
16032   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16033   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16034   hardcode_into_libs=yes
16035   ;;
16036
16037 # No shared lib support for Linux oldld, aout, or coff.
16038 linux*oldld* | linux*aout* | linux*coff*)
16039   dynamic_linker=no
16040   ;;
16041
16042 # This must be Linux ELF.
16043 linux*)
16044   version_type=linux
16045   need_lib_prefix=no
16046   need_version=no
16047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048   soname_spec='${libname}${release}${shared_ext}$major'
16049   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16050   shlibpath_var=LD_LIBRARY_PATH
16051   shlibpath_overrides_runpath=no
16052   # This implies no fast_install, which is unacceptable.
16053   # Some rework will be needed to allow for fast_install
16054   # before this can be enabled.
16055   hardcode_into_libs=yes
16056
16057   # Append ld.so.conf contents to the search path
16058   if test -f /etc/ld.so.conf; then
16059     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' ' '`
16060     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16061   fi
16062
16063   # We used to test for /lib/ld.so.1 and disable shared libraries on
16064   # powerpc, because MkLinux only supported shared libraries with the
16065   # GNU dynamic linker.  Since this was broken with cross compilers,
16066   # most powerpc-linux boxes support dynamic linking these days and
16067   # people can always --disable-shared, the test was removed, and we
16068   # assume the GNU/Linux dynamic linker is in use.
16069   dynamic_linker='GNU/Linux ld.so'
16070   ;;
16071
16072 knetbsd*-gnu)
16073   version_type=linux
16074   need_lib_prefix=no
16075   need_version=no
16076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16077   soname_spec='${libname}${release}${shared_ext}$major'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   shlibpath_overrides_runpath=no
16080   hardcode_into_libs=yes
16081   dynamic_linker='GNU ld.so'
16082   ;;
16083
16084 netbsd*)
16085   version_type=sunos
16086   need_lib_prefix=no
16087   need_version=no
16088   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091     dynamic_linker='NetBSD (a.out) ld.so'
16092   else
16093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16094     soname_spec='${libname}${release}${shared_ext}$major'
16095     dynamic_linker='NetBSD ld.elf_so'
16096   fi
16097   shlibpath_var=LD_LIBRARY_PATH
16098   shlibpath_overrides_runpath=yes
16099   hardcode_into_libs=yes
16100   ;;
16101
16102 newsos6)
16103   version_type=linux
16104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105   shlibpath_var=LD_LIBRARY_PATH
16106   shlibpath_overrides_runpath=yes
16107   ;;
16108
16109 nto-qnx*)
16110   version_type=linux
16111   need_lib_prefix=no
16112   need_version=no
16113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114   soname_spec='${libname}${release}${shared_ext}$major'
16115   shlibpath_var=LD_LIBRARY_PATH
16116   shlibpath_overrides_runpath=yes
16117   ;;
16118
16119 openbsd*)
16120   version_type=sunos
16121   sys_lib_dlsearch_path_spec="/usr/lib"
16122   need_lib_prefix=no
16123   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16124   case $host_os in
16125     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16126     *)                         need_version=no  ;;
16127   esac
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130   shlibpath_var=LD_LIBRARY_PATH
16131   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16132     case $host_os in
16133       openbsd2.[89] | openbsd2.[89].*)
16134         shlibpath_overrides_runpath=no
16135         ;;
16136       *)
16137         shlibpath_overrides_runpath=yes
16138         ;;
16139       esac
16140   else
16141     shlibpath_overrides_runpath=yes
16142   fi
16143   ;;
16144
16145 os2*)
16146   libname_spec='$name'
16147   shrext_cmds=".dll"
16148   need_lib_prefix=no
16149   library_names_spec='$libname${shared_ext} $libname.a'
16150   dynamic_linker='OS/2 ld.exe'
16151   shlibpath_var=LIBPATH
16152   ;;
16153
16154 osf3* | osf4* | osf5*)
16155   version_type=osf
16156   need_lib_prefix=no
16157   need_version=no
16158   soname_spec='${libname}${release}${shared_ext}$major'
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160   shlibpath_var=LD_LIBRARY_PATH
16161   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16163   ;;
16164
16165 solaris*)
16166   version_type=linux
16167   need_lib_prefix=no
16168   need_version=no
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170   soname_spec='${libname}${release}${shared_ext}$major'
16171   shlibpath_var=LD_LIBRARY_PATH
16172   shlibpath_overrides_runpath=yes
16173   hardcode_into_libs=yes
16174   # ldd complains unless libraries are executable
16175   postinstall_cmds='chmod +x $lib'
16176   ;;
16177
16178 sunos4*)
16179   version_type=sunos
16180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182   shlibpath_var=LD_LIBRARY_PATH
16183   shlibpath_overrides_runpath=yes
16184   if test "$with_gnu_ld" = yes; then
16185     need_lib_prefix=no
16186   fi
16187   need_version=yes
16188   ;;
16189
16190 sysv4 | sysv4.3*)
16191   version_type=linux
16192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193   soname_spec='${libname}${release}${shared_ext}$major'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   case $host_vendor in
16196     sni)
16197       shlibpath_overrides_runpath=no
16198       need_lib_prefix=no
16199       export_dynamic_flag_spec='${wl}-Blargedynsym'
16200       runpath_var=LD_RUN_PATH
16201       ;;
16202     siemens)
16203       need_lib_prefix=no
16204       ;;
16205     motorola)
16206       need_lib_prefix=no
16207       need_version=no
16208       shlibpath_overrides_runpath=no
16209       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16210       ;;
16211   esac
16212   ;;
16213
16214 sysv4*MP*)
16215   if test -d /usr/nec ;then
16216     version_type=linux
16217     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218     soname_spec='$libname${shared_ext}.$major'
16219     shlibpath_var=LD_LIBRARY_PATH
16220   fi
16221   ;;
16222
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224   version_type=freebsd-elf
16225   need_lib_prefix=no
16226   need_version=no
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228   soname_spec='${libname}${release}${shared_ext}$major'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   hardcode_into_libs=yes
16231   if test "$with_gnu_ld" = yes; then
16232     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233     shlibpath_overrides_runpath=no
16234   else
16235     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236     shlibpath_overrides_runpath=yes
16237     case $host_os in
16238       sco3.2v5*)
16239         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16240         ;;
16241     esac
16242   fi
16243   sys_lib_dlsearch_path_spec='/usr/lib'
16244   ;;
16245
16246 uts4*)
16247   version_type=linux
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   ;;
16252
16253 *)
16254   dynamic_linker=no
16255   ;;
16256 esac
16257 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258 echo "${ECHO_T}$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16260
16261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262 if test "$GCC" = yes; then
16263   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264 fi
16265
16266 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268 hardcode_action=
16269 if test -n "$hardcode_libdir_flag_spec" || \
16270    test -n "$runpath_var" || \
16271    test "X$hardcode_automatic" = "Xyes" ; then
16272
16273   # We can hardcode non-existant directories.
16274   if test "$hardcode_direct" != no &&
16275      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276      # have to relink, otherwise we might link with an installed library
16277      # when we should be linking with a yet-to-be-installed one
16278      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16279      test "$hardcode_minus_L" != no; then
16280     # Linking always hardcodes the temporary library directory.
16281     hardcode_action=relink
16282   else
16283     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284     hardcode_action=immediate
16285   fi
16286 else
16287   # We cannot hardcode anything, or else we can only hardcode existing
16288   # directories.
16289   hardcode_action=unsupported
16290 fi
16291 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16292 echo "${ECHO_T}$hardcode_action" >&6; }
16293
16294 if test "$hardcode_action" = relink; then
16295   # Fast installation is not supported
16296   enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298      test "$enable_shared" = no; then
16299   # Fast installation is not necessary
16300   enable_fast_install=needless
16301 fi
16302
16303 striplib=
16304 old_striplib=
16305 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16306 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16307 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16308   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16309   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16310   { echo "$as_me:$LINENO: result: yes" >&5
16311 echo "${ECHO_T}yes" >&6; }
16312 else
16313 # FIXME - insert some real tests, host_os isn't really good enough
16314   case $host_os in
16315    darwin*)
16316        if test -n "$STRIP" ; then
16317          striplib="$STRIP -x"
16318          { echo "$as_me:$LINENO: result: yes" >&5
16319 echo "${ECHO_T}yes" >&6; }
16320        else
16321   { echo "$as_me:$LINENO: result: no" >&5
16322 echo "${ECHO_T}no" >&6; }
16323 fi
16324        ;;
16325    *)
16326   { echo "$as_me:$LINENO: result: no" >&5
16327 echo "${ECHO_T}no" >&6; }
16328     ;;
16329   esac
16330 fi
16331
16332 if test "x$enable_dlopen" != xyes; then
16333   enable_dlopen=unknown
16334   enable_dlopen_self=unknown
16335   enable_dlopen_self_static=unknown
16336 else
16337   lt_cv_dlopen=no
16338   lt_cv_dlopen_libs=
16339
16340   case $host_os in
16341   beos*)
16342     lt_cv_dlopen="load_add_on"
16343     lt_cv_dlopen_libs=
16344     lt_cv_dlopen_self=yes
16345     ;;
16346
16347   mingw* | pw32*)
16348     lt_cv_dlopen="LoadLibrary"
16349     lt_cv_dlopen_libs=
16350    ;;
16351
16352   cygwin*)
16353     lt_cv_dlopen="dlopen"
16354     lt_cv_dlopen_libs=
16355    ;;
16356
16357   darwin*)
16358   # if libdl is installed we need to link against it
16359     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16360 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16361 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   ac_check_lib_save_LIBS=$LIBS
16365 LIBS="-ldl  $LIBS"
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h.  */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h.  */
16372
16373 /* Override any GCC internal prototype to avoid an error.
16374    Use char because int might match the return type of a GCC
16375    builtin and then its argument prototype would still apply.  */
16376 #ifdef __cplusplus
16377 extern "C"
16378 #endif
16379 char dlopen ();
16380 int
16381 main ()
16382 {
16383 return dlopen ();
16384   ;
16385   return 0;
16386 }
16387 _ACEOF
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_link") 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } &&
16402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403   { (case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_try") 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; } &&
16412          { ac_try='test -s conftest$ac_exeext'
16413   { (case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_try") 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; }; then
16422   ac_cv_lib_dl_dlopen=yes
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427         ac_cv_lib_dl_dlopen=no
16428 fi
16429
16430 rm -f core conftest.err conftest.$ac_objext \
16431       conftest$ac_exeext conftest.$ac_ext
16432 LIBS=$ac_check_lib_save_LIBS
16433 fi
16434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16435 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16436 if test $ac_cv_lib_dl_dlopen = yes; then
16437   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16438 else
16439
16440     lt_cv_dlopen="dyld"
16441     lt_cv_dlopen_libs=
16442     lt_cv_dlopen_self=yes
16443
16444 fi
16445
16446    ;;
16447
16448   *)
16449     { echo "$as_me:$LINENO: checking for shl_load" >&5
16450 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16451 if test "${ac_cv_func_shl_load+set}" = set; then
16452   echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454   cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16462 #define shl_load innocuous_shl_load
16463
16464 /* System header to define __stub macros and hopefully few prototypes,
16465     which can conflict with char shl_load (); below.
16466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16467     <limits.h> exists even on freestanding compilers.  */
16468
16469 #ifdef __STDC__
16470 # include <limits.h>
16471 #else
16472 # include <assert.h>
16473 #endif
16474
16475 #undef shl_load
16476
16477 /* Override any GCC internal prototype to avoid an error.
16478    Use char because int might match the return type of a GCC
16479    builtin and then its argument prototype would still apply.  */
16480 #ifdef __cplusplus
16481 extern "C"
16482 #endif
16483 char shl_load ();
16484 /* The GNU C library defines this for functions which it implements
16485     to always fail with ENOSYS.  Some functions are actually named
16486     something starting with __ and the normal name is an alias.  */
16487 #if defined __stub_shl_load || defined __stub___shl_load
16488 choke me
16489 #endif
16490
16491 int
16492 main ()
16493 {
16494 return shl_load ();
16495   ;
16496   return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext conftest$ac_exeext
16500 if { (ac_try="$ac_link"
16501 case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_link") 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } &&
16513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514   { (case "(($ac_try" in
16515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516   *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519   (eval "$ac_try") 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; } &&
16523          { ac_try='test -s conftest$ac_exeext'
16524   { (case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; }; then
16533   ac_cv_func_shl_load=yes
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538         ac_cv_func_shl_load=no
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext \
16542       conftest$ac_exeext conftest.$ac_ext
16543 fi
16544 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16546 if test $ac_cv_func_shl_load = yes; then
16547   lt_cv_dlopen="shl_load"
16548 else
16549   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   ac_check_lib_save_LIBS=$LIBS
16555 LIBS="-ldld  $LIBS"
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562
16563 /* Override any GCC internal prototype to avoid an error.
16564    Use char because int might match the return type of a GCC
16565    builtin and then its argument prototype would still apply.  */
16566 #ifdef __cplusplus
16567 extern "C"
16568 #endif
16569 char shl_load ();
16570 int
16571 main ()
16572 {
16573 return shl_load ();
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (ac_try="$ac_link"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_link") 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } &&
16592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593   { (case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_try") 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); }; } &&
16602          { ac_try='test -s conftest$ac_exeext'
16603   { (case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608   (eval "$ac_try") 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_cv_lib_dld_shl_load=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617         ac_cv_lib_dld_shl_load=no
16618 fi
16619
16620 rm -f core conftest.err conftest.$ac_objext \
16621       conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16623 fi
16624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16625 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16626 if test $ac_cv_lib_dld_shl_load = yes; then
16627   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16628 else
16629   { echo "$as_me:$LINENO: checking for dlopen" >&5
16630 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16631 if test "${ac_cv_func_dlopen+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h.  */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h.  */
16640 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16642 #define dlopen innocuous_dlopen
16643
16644 /* System header to define __stub macros and hopefully few prototypes,
16645     which can conflict with char dlopen (); below.
16646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647     <limits.h> exists even on freestanding compilers.  */
16648
16649 #ifdef __STDC__
16650 # include <limits.h>
16651 #else
16652 # include <assert.h>
16653 #endif
16654
16655 #undef dlopen
16656
16657 /* Override any GCC internal prototype to avoid an error.
16658    Use char because int might match the return type of a GCC
16659    builtin and then its argument prototype would still apply.  */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 char dlopen ();
16664 /* The GNU C library defines this for functions which it implements
16665     to always fail with ENOSYS.  Some functions are actually named
16666     something starting with __ and the normal name is an alias.  */
16667 #if defined __stub_dlopen || defined __stub___dlopen
16668 choke me
16669 #endif
16670
16671 int
16672 main ()
16673 {
16674 return dlopen ();
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_link") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } &&
16693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694   { (case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_try") 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; } &&
16703          { ac_try='test -s conftest$ac_exeext'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; }; then
16713   ac_cv_func_dlopen=yes
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718         ac_cv_func_dlopen=no
16719 fi
16720
16721 rm -f core conftest.err conftest.$ac_objext \
16722       conftest$ac_exeext conftest.$ac_ext
16723 fi
16724 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16725 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16726 if test $ac_cv_func_dlopen = yes; then
16727   lt_cv_dlopen="dlopen"
16728 else
16729   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   ac_check_lib_save_LIBS=$LIBS
16735 LIBS="-ldl  $LIBS"
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742
16743 /* Override any GCC internal prototype to avoid an error.
16744    Use char because int might match the return type of a GCC
16745    builtin and then its argument prototype would still apply.  */
16746 #ifdef __cplusplus
16747 extern "C"
16748 #endif
16749 char dlopen ();
16750 int
16751 main ()
16752 {
16753 return dlopen ();
16754   ;
16755   return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_link") 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773   { (case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_try") 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest$ac_exeext'
16783   { (case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_try") 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792   ac_cv_lib_dl_dlopen=yes
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797         ac_cv_lib_dl_dlopen=no
16798 fi
16799
16800 rm -f core conftest.err conftest.$ac_objext \
16801       conftest$ac_exeext conftest.$ac_ext
16802 LIBS=$ac_check_lib_save_LIBS
16803 fi
16804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16805 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16806 if test $ac_cv_lib_dl_dlopen = yes; then
16807   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16808 else
16809   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16810 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16811 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   ac_check_lib_save_LIBS=$LIBS
16815 LIBS="-lsvld  $LIBS"
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h.  */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h.  */
16822
16823 /* Override any GCC internal prototype to avoid an error.
16824    Use char because int might match the return type of a GCC
16825    builtin and then its argument prototype would still apply.  */
16826 #ifdef __cplusplus
16827 extern "C"
16828 #endif
16829 char dlopen ();
16830 int
16831 main ()
16832 {
16833 return dlopen ();
16834   ;
16835   return 0;
16836 }
16837 _ACEOF
16838 rm -f conftest.$ac_objext conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_link") 2>conftest.er1
16846   ac_status=$?
16847   grep -v '^ *+' conftest.er1 >conftest.err
16848   rm -f conftest.er1
16849   cat conftest.err >&5
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } &&
16852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853   { (case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_try") 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; } &&
16862          { ac_try='test -s conftest$ac_exeext'
16863   { (case "(($ac_try" in
16864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865   *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868   (eval "$ac_try") 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_lib_svld_dlopen=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877         ac_cv_lib_svld_dlopen=no
16878 fi
16879
16880 rm -f core conftest.err conftest.$ac_objext \
16881       conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16883 fi
16884 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16886 if test $ac_cv_lib_svld_dlopen = yes; then
16887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16888 else
16889   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   ac_check_lib_save_LIBS=$LIBS
16895 LIBS="-ldld  $LIBS"
16896 cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h.  */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h.  */
16902
16903 /* Override any GCC internal prototype to avoid an error.
16904    Use char because int might match the return type of a GCC
16905    builtin and then its argument prototype would still apply.  */
16906 #ifdef __cplusplus
16907 extern "C"
16908 #endif
16909 char dld_link ();
16910 int
16911 main ()
16912 {
16913 return dld_link ();
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (ac_try="$ac_link"
16920 case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_link") 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } &&
16932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16933   { (case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_try") 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; } &&
16942          { ac_try='test -s conftest$ac_exeext'
16943   { (case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_try") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_cv_lib_dld_dld_link=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957         ac_cv_lib_dld_dld_link=no
16958 fi
16959
16960 rm -f core conftest.err conftest.$ac_objext \
16961       conftest$ac_exeext conftest.$ac_ext
16962 LIBS=$ac_check_lib_save_LIBS
16963 fi
16964 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16965 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16966 if test $ac_cv_lib_dld_dld_link = yes; then
16967   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16968 fi
16969
16970
16971 fi
16972
16973
16974 fi
16975
16976
16977 fi
16978
16979
16980 fi
16981
16982
16983 fi
16984
16985     ;;
16986   esac
16987
16988   if test "x$lt_cv_dlopen" != xno; then
16989     enable_dlopen=yes
16990   else
16991     enable_dlopen=no
16992   fi
16993
16994   case $lt_cv_dlopen in
16995   dlopen)
16996     save_CPPFLAGS="$CPPFLAGS"
16997     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16998
16999     save_LDFLAGS="$LDFLAGS"
17000     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17001
17002     save_LIBS="$LIBS"
17003     LIBS="$lt_cv_dlopen_libs $LIBS"
17004
17005     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17006 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17007 if test "${lt_cv_dlopen_self+set}" = set; then
17008   echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010           if test "$cross_compiling" = yes; then :
17011   lt_cv_dlopen_self=cross
17012 else
17013   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17014   lt_status=$lt_dlunknown
17015   cat > conftest.$ac_ext <<EOF
17016 #line 17016 "configure"
17017 #include "confdefs.h"
17018
17019 #if HAVE_DLFCN_H
17020 #include <dlfcn.h>
17021 #endif
17022
17023 #include <stdio.h>
17024
17025 #ifdef RTLD_GLOBAL
17026 #  define LT_DLGLOBAL           RTLD_GLOBAL
17027 #else
17028 #  ifdef DL_GLOBAL
17029 #    define LT_DLGLOBAL         DL_GLOBAL
17030 #  else
17031 #    define LT_DLGLOBAL         0
17032 #  endif
17033 #endif
17034
17035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17036    find out it does not work in some platform. */
17037 #ifndef LT_DLLAZY_OR_NOW
17038 #  ifdef RTLD_LAZY
17039 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17040 #  else
17041 #    ifdef DL_LAZY
17042 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17043 #    else
17044 #      ifdef RTLD_NOW
17045 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17046 #      else
17047 #        ifdef DL_NOW
17048 #          define LT_DLLAZY_OR_NOW      DL_NOW
17049 #        else
17050 #          define LT_DLLAZY_OR_NOW      0
17051 #        endif
17052 #      endif
17053 #    endif
17054 #  endif
17055 #endif
17056
17057 #ifdef __cplusplus
17058 extern "C" void exit (int);
17059 #endif
17060
17061 void fnord() { int i=42;}
17062 int main ()
17063 {
17064   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17065   int status = $lt_dlunknown;
17066
17067   if (self)
17068     {
17069       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17070       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17071       /* dlclose (self); */
17072     }
17073   else
17074     puts (dlerror ());
17075
17076     exit (status);
17077 }
17078 EOF
17079   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080   (eval $ac_link) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17084     (./conftest; exit; ) >&5 2>/dev/null
17085     lt_status=$?
17086     case x$lt_status in
17087       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17088       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17089       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17090     esac
17091   else :
17092     # compilation failed
17093     lt_cv_dlopen_self=no
17094   fi
17095 fi
17096 rm -fr conftest*
17097
17098
17099 fi
17100 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17101 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17102
17103     if test "x$lt_cv_dlopen_self" = xyes; then
17104       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17105       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17106 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17107 if test "${lt_cv_dlopen_self_static+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110           if test "$cross_compiling" = yes; then :
17111   lt_cv_dlopen_self_static=cross
17112 else
17113   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17114   lt_status=$lt_dlunknown
17115   cat > conftest.$ac_ext <<EOF
17116 #line 17116 "configure"
17117 #include "confdefs.h"
17118
17119 #if HAVE_DLFCN_H
17120 #include <dlfcn.h>
17121 #endif
17122
17123 #include <stdio.h>
17124
17125 #ifdef RTLD_GLOBAL
17126 #  define LT_DLGLOBAL           RTLD_GLOBAL
17127 #else
17128 #  ifdef DL_GLOBAL
17129 #    define LT_DLGLOBAL         DL_GLOBAL
17130 #  else
17131 #    define LT_DLGLOBAL         0
17132 #  endif
17133 #endif
17134
17135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17136    find out it does not work in some platform. */
17137 #ifndef LT_DLLAZY_OR_NOW
17138 #  ifdef RTLD_LAZY
17139 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17140 #  else
17141 #    ifdef DL_LAZY
17142 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17143 #    else
17144 #      ifdef RTLD_NOW
17145 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17146 #      else
17147 #        ifdef DL_NOW
17148 #          define LT_DLLAZY_OR_NOW      DL_NOW
17149 #        else
17150 #          define LT_DLLAZY_OR_NOW      0
17151 #        endif
17152 #      endif
17153 #    endif
17154 #  endif
17155 #endif
17156
17157 #ifdef __cplusplus
17158 extern "C" void exit (int);
17159 #endif
17160
17161 void fnord() { int i=42;}
17162 int main ()
17163 {
17164   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17165   int status = $lt_dlunknown;
17166
17167   if (self)
17168     {
17169       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17170       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17171       /* dlclose (self); */
17172     }
17173   else
17174     puts (dlerror ());
17175
17176     exit (status);
17177 }
17178 EOF
17179   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180   (eval $ac_link) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17184     (./conftest; exit; ) >&5 2>/dev/null
17185     lt_status=$?
17186     case x$lt_status in
17187       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17188       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17189       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17190     esac
17191   else :
17192     # compilation failed
17193     lt_cv_dlopen_self_static=no
17194   fi
17195 fi
17196 rm -fr conftest*
17197
17198
17199 fi
17200 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17201 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17202     fi
17203
17204     CPPFLAGS="$save_CPPFLAGS"
17205     LDFLAGS="$save_LDFLAGS"
17206     LIBS="$save_LIBS"
17207     ;;
17208   esac
17209
17210   case $lt_cv_dlopen_self in
17211   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17212   *) enable_dlopen_self=unknown ;;
17213   esac
17214
17215   case $lt_cv_dlopen_self_static in
17216   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17217   *) enable_dlopen_self_static=unknown ;;
17218   esac
17219 fi
17220
17221
17222 # Report which library types will actually be built
17223 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17224 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17225 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17226 echo "${ECHO_T}$can_build_shared" >&6; }
17227
17228 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17229 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17230 test "$can_build_shared" = "no" && enable_shared=no
17231
17232 # On AIX, shared libraries and static libraries use the same namespace, and
17233 # are all built from PIC.
17234 case $host_os in
17235 aix3*)
17236   test "$enable_shared" = yes && enable_static=no
17237   if test -n "$RANLIB"; then
17238     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17239     postinstall_cmds='$RANLIB $lib'
17240   fi
17241   ;;
17242
17243 aix4* | aix5*)
17244   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17245     test "$enable_shared" = yes && enable_static=no
17246   fi
17247     ;;
17248 esac
17249 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17250 echo "${ECHO_T}$enable_shared" >&6; }
17251
17252 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17254 # Make sure either enable_shared or enable_static is yes.
17255 test "$enable_shared" = yes || enable_static=yes
17256 { echo "$as_me:$LINENO: result: $enable_static" >&5
17257 echo "${ECHO_T}$enable_static" >&6; }
17258
17259 # The else clause should only fire when bootstrapping the
17260 # libtool distribution, otherwise you forgot to ship ltmain.sh
17261 # with your package, and you will get complaints that there are
17262 # no rules to generate ltmain.sh.
17263 if test -f "$ltmain"; then
17264   # See if we are running on zsh, and set the options which allow our commands through
17265   # without removal of \ escapes.
17266   if test -n "${ZSH_VERSION+set}" ; then
17267     setopt NO_GLOB_SUBST
17268   fi
17269   # Now quote all the things that may contain metacharacters while being
17270   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17271   # variables and quote the copies for generation of the libtool script.
17272   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17273     SED SHELL STRIP \
17274     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17275     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17276     deplibs_check_method reload_flag reload_cmds need_locks \
17277     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17278     lt_cv_sys_global_symbol_to_c_name_address \
17279     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17280     old_postinstall_cmds old_postuninstall_cmds \
17281     compiler \
17282     CC \
17283     LD \
17284     lt_prog_compiler_wl \
17285     lt_prog_compiler_pic \
17286     lt_prog_compiler_static \
17287     lt_prog_compiler_no_builtin_flag \
17288     export_dynamic_flag_spec \
17289     thread_safe_flag_spec \
17290     whole_archive_flag_spec \
17291     enable_shared_with_static_runtimes \
17292     old_archive_cmds \
17293     old_archive_from_new_cmds \
17294     predep_objects \
17295     postdep_objects \
17296     predeps \
17297     postdeps \
17298     compiler_lib_search_path \
17299     archive_cmds \
17300     archive_expsym_cmds \
17301     postinstall_cmds \
17302     postuninstall_cmds \
17303     old_archive_from_expsyms_cmds \
17304     allow_undefined_flag \
17305     no_undefined_flag \
17306     export_symbols_cmds \
17307     hardcode_libdir_flag_spec \
17308     hardcode_libdir_flag_spec_ld \
17309     hardcode_libdir_separator \
17310     hardcode_automatic \
17311     module_cmds \
17312     module_expsym_cmds \
17313     lt_cv_prog_compiler_c_o \
17314     exclude_expsyms \
17315     include_expsyms; do
17316
17317     case $var in
17318     old_archive_cmds | \
17319     old_archive_from_new_cmds | \
17320     archive_cmds | \
17321     archive_expsym_cmds | \
17322     module_cmds | \
17323     module_expsym_cmds | \
17324     old_archive_from_expsyms_cmds | \
17325     export_symbols_cmds | \
17326     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17327     postinstall_cmds | postuninstall_cmds | \
17328     old_postinstall_cmds | old_postuninstall_cmds | \
17329     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17330       # Double-quote double-evaled strings.
17331       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17332       ;;
17333     *)
17334       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17335       ;;
17336     esac
17337   done
17338
17339   case $lt_echo in
17340   *'\$0 --fallback-echo"')
17341     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17342     ;;
17343   esac
17344
17345 cfgfile="${ofile}T"
17346   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17347   $rm -f "$cfgfile"
17348   { echo "$as_me:$LINENO: creating $ofile" >&5
17349 echo "$as_me: creating $ofile" >&6;}
17350
17351   cat <<__EOF__ >> "$cfgfile"
17352 #! $SHELL
17353
17354 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17355 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17356 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17357 #
17358 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17359 # Free Software Foundation, Inc.
17360 #
17361 # This file is part of GNU Libtool:
17362 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17363 #
17364 # This program is free software; you can redistribute it and/or modify
17365 # it under the terms of the GNU General Public License as published by
17366 # the Free Software Foundation; either version 2 of the License, or
17367 # (at your option) any later version.
17368 #
17369 # This program is distributed in the hope that it will be useful, but
17370 # WITHOUT ANY WARRANTY; without even the implied warranty of
17371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17372 # General Public License for more details.
17373 #
17374 # You should have received a copy of the GNU General Public License
17375 # along with this program; if not, write to the Free Software
17376 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17377 #
17378 # As a special exception to the GNU General Public License, if you
17379 # distribute this file as part of a program that contains a
17380 # configuration script generated by Autoconf, you may include it under
17381 # the same distribution terms that you use for the rest of that program.
17382
17383 # A sed program that does not truncate output.
17384 SED=$lt_SED
17385
17386 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17387 Xsed="$SED -e 1s/^X//"
17388
17389 # The HP-UX ksh and POSIX shell print the target directory to stdout
17390 # if CDPATH is set.
17391 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17392
17393 # The names of the tagged configurations supported by this script.
17394 available_tags=
17395
17396 # ### BEGIN LIBTOOL CONFIG
17397
17398 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17399
17400 # Shell to use when invoking shell scripts.
17401 SHELL=$lt_SHELL
17402
17403 # Whether or not to build shared libraries.
17404 build_libtool_libs=$enable_shared
17405
17406 # Whether or not to build static libraries.
17407 build_old_libs=$enable_static
17408
17409 # Whether or not to add -lc for building shared libraries.
17410 build_libtool_need_lc=$archive_cmds_need_lc
17411
17412 # Whether or not to disallow shared libs when runtime libs are static
17413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17414
17415 # Whether or not to optimize for fast installation.
17416 fast_install=$enable_fast_install
17417
17418 # The host system.
17419 host_alias=$host_alias
17420 host=$host
17421 host_os=$host_os
17422
17423 # The build system.
17424 build_alias=$build_alias
17425 build=$build
17426 build_os=$build_os
17427
17428 # An echo program that does not interpret backslashes.
17429 echo=$lt_echo
17430
17431 # The archiver.
17432 AR=$lt_AR
17433 AR_FLAGS=$lt_AR_FLAGS
17434
17435 # A C compiler.
17436 LTCC=$lt_LTCC
17437
17438 # LTCC compiler flags.
17439 LTCFLAGS=$lt_LTCFLAGS
17440
17441 # A language-specific compiler.
17442 CC=$lt_compiler
17443
17444 # Is the compiler the GNU C compiler?
17445 with_gcc=$GCC
17446
17447 # An ERE matcher.
17448 EGREP=$lt_EGREP
17449
17450 # The linker used to build libraries.
17451 LD=$lt_LD
17452
17453 # Whether we need hard or soft links.
17454 LN_S=$lt_LN_S
17455
17456 # A BSD-compatible nm program.
17457 NM=$lt_NM
17458
17459 # A symbol stripping program
17460 STRIP=$lt_STRIP
17461
17462 # Used to examine libraries when file_magic_cmd begins "file"
17463 MAGIC_CMD=$MAGIC_CMD
17464
17465 # Used on cygwin: DLL creation program.
17466 DLLTOOL="$DLLTOOL"
17467
17468 # Used on cygwin: object dumper.
17469 OBJDUMP="$OBJDUMP"
17470
17471 # Used on cygwin: assembler.
17472 AS="$AS"
17473
17474 # The name of the directory that contains temporary libtool files.
17475 objdir=$objdir
17476
17477 # How to create reloadable object files.
17478 reload_flag=$lt_reload_flag
17479 reload_cmds=$lt_reload_cmds
17480
17481 # How to pass a linker flag through the compiler.
17482 wl=$lt_lt_prog_compiler_wl
17483
17484 # Object file suffix (normally "o").
17485 objext="$ac_objext"
17486
17487 # Old archive suffix (normally "a").
17488 libext="$libext"
17489
17490 # Shared library suffix (normally ".so").
17491 shrext_cmds='$shrext_cmds'
17492
17493 # Executable file suffix (normally "").
17494 exeext="$exeext"
17495
17496 # Additional compiler flags for building library objects.
17497 pic_flag=$lt_lt_prog_compiler_pic
17498 pic_mode=$pic_mode
17499
17500 # What is the maximum length of a command?
17501 max_cmd_len=$lt_cv_sys_max_cmd_len
17502
17503 # Does compiler simultaneously support -c and -o options?
17504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17505
17506 # Must we lock files when doing compilation?
17507 need_locks=$lt_need_locks
17508
17509 # Do we need the lib prefix for modules?
17510 need_lib_prefix=$need_lib_prefix
17511
17512 # Do we need a version for libraries?
17513 need_version=$need_version
17514
17515 # Whether dlopen is supported.
17516 dlopen_support=$enable_dlopen
17517
17518 # Whether dlopen of programs is supported.
17519 dlopen_self=$enable_dlopen_self
17520
17521 # Whether dlopen of statically linked programs is supported.
17522 dlopen_self_static=$enable_dlopen_self_static
17523
17524 # Compiler flag to prevent dynamic linking.
17525 link_static_flag=$lt_lt_prog_compiler_static
17526
17527 # Compiler flag to turn off builtin functions.
17528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17529
17530 # Compiler flag to allow reflexive dlopens.
17531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17532
17533 # Compiler flag to generate shared objects directly from archives.
17534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17535
17536 # Compiler flag to generate thread-safe objects.
17537 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17538
17539 # Library versioning type.
17540 version_type=$version_type
17541
17542 # Format of library name prefix.
17543 libname_spec=$lt_libname_spec
17544
17545 # List of archive names.  First name is the real one, the rest are links.
17546 # The last name is the one that the linker finds with -lNAME.
17547 library_names_spec=$lt_library_names_spec
17548
17549 # The coded name of the library, if different from the real name.
17550 soname_spec=$lt_soname_spec
17551
17552 # Commands used to build and install an old-style archive.
17553 RANLIB=$lt_RANLIB
17554 old_archive_cmds=$lt_old_archive_cmds
17555 old_postinstall_cmds=$lt_old_postinstall_cmds
17556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17557
17558 # Create an old-style archive from a shared archive.
17559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17560
17561 # Create a temporary old-style archive to link instead of a shared archive.
17562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17563
17564 # Commands used to build and install a shared archive.
17565 archive_cmds=$lt_archive_cmds
17566 archive_expsym_cmds=$lt_archive_expsym_cmds
17567 postinstall_cmds=$lt_postinstall_cmds
17568 postuninstall_cmds=$lt_postuninstall_cmds
17569
17570 # Commands used to build a loadable module (assumed same as above if empty)
17571 module_cmds=$lt_module_cmds
17572 module_expsym_cmds=$lt_module_expsym_cmds
17573
17574 # Commands to strip libraries.
17575 old_striplib=$lt_old_striplib
17576 striplib=$lt_striplib
17577
17578 # Dependencies to place before the objects being linked to create a
17579 # shared library.
17580 predep_objects=$lt_predep_objects
17581
17582 # Dependencies to place after the objects being linked to create a
17583 # shared library.
17584 postdep_objects=$lt_postdep_objects
17585
17586 # Dependencies to place before the objects being linked to create a
17587 # shared library.
17588 predeps=$lt_predeps
17589
17590 # Dependencies to place after the objects being linked to create a
17591 # shared library.
17592 postdeps=$lt_postdeps
17593
17594 # The library search path used internally by the compiler when linking
17595 # a shared library.
17596 compiler_lib_search_path=$lt_compiler_lib_search_path
17597
17598 # Method to check whether dependent libraries are shared objects.
17599 deplibs_check_method=$lt_deplibs_check_method
17600
17601 # Command to use when deplibs_check_method == file_magic.
17602 file_magic_cmd=$lt_file_magic_cmd
17603
17604 # Flag that allows shared libraries with undefined symbols to be built.
17605 allow_undefined_flag=$lt_allow_undefined_flag
17606
17607 # Flag that forces no undefined symbols.
17608 no_undefined_flag=$lt_no_undefined_flag
17609
17610 # Commands used to finish a libtool library installation in a directory.
17611 finish_cmds=$lt_finish_cmds
17612
17613 # Same as above, but a single script fragment to be evaled but not shown.
17614 finish_eval=$lt_finish_eval
17615
17616 # Take the output of nm and produce a listing of raw symbols and C names.
17617 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17618
17619 # Transform the output of nm in a proper C declaration
17620 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17621
17622 # Transform the output of nm in a C name address pair
17623 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17624
17625 # This is the shared library runtime path variable.
17626 runpath_var=$runpath_var
17627
17628 # This is the shared library path variable.
17629 shlibpath_var=$shlibpath_var
17630
17631 # Is shlibpath searched before the hard-coded library search path?
17632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17633
17634 # How to hardcode a shared library path into an executable.
17635 hardcode_action=$hardcode_action
17636
17637 # Whether we should hardcode library paths into libraries.
17638 hardcode_into_libs=$hardcode_into_libs
17639
17640 # Flag to hardcode \$libdir into a binary during linking.
17641 # This must work even if \$libdir does not exist.
17642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17643
17644 # If ld is used when linking, flag to hardcode \$libdir into
17645 # a binary during linking. This must work even if \$libdir does
17646 # not exist.
17647 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17648
17649 # Whether we need a single -rpath flag with a separated argument.
17650 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17651
17652 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17653 # resulting binary.
17654 hardcode_direct=$hardcode_direct
17655
17656 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17657 # resulting binary.
17658 hardcode_minus_L=$hardcode_minus_L
17659
17660 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17661 # the resulting binary.
17662 hardcode_shlibpath_var=$hardcode_shlibpath_var
17663
17664 # Set to yes if building a shared library automatically hardcodes DIR into the library
17665 # and all subsequent libraries and executables linked against it.
17666 hardcode_automatic=$hardcode_automatic
17667
17668 # Variables whose values should be saved in libtool wrapper scripts and
17669 # restored at relink time.
17670 variables_saved_for_relink="$variables_saved_for_relink"
17671
17672 # Whether libtool must link a program against all its dependency libraries.
17673 link_all_deplibs=$link_all_deplibs
17674
17675 # Compile-time system search path for libraries
17676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17677
17678 # Run-time system search path for libraries
17679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17680
17681 # Fix the shell variable \$srcfile for the compiler.
17682 fix_srcfile_path="$fix_srcfile_path"
17683
17684 # Set to yes if exported symbols are required.
17685 always_export_symbols=$always_export_symbols
17686
17687 # The commands to list exported symbols.
17688 export_symbols_cmds=$lt_export_symbols_cmds
17689
17690 # The commands to extract the exported symbol list from a shared archive.
17691 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17692
17693 # Symbols that should not be listed in the preloaded symbols.
17694 exclude_expsyms=$lt_exclude_expsyms
17695
17696 # Symbols that must always be exported.
17697 include_expsyms=$lt_include_expsyms
17698
17699 # ### END LIBTOOL CONFIG
17700
17701 __EOF__
17702
17703
17704   case $host_os in
17705   aix3*)
17706     cat <<\EOF >> "$cfgfile"
17707
17708 # AIX sometimes has problems with the GCC collect2 program.  For some
17709 # reason, if we set the COLLECT_NAMES environment variable, the problems
17710 # vanish in a puff of smoke.
17711 if test "X${COLLECT_NAMES+set}" != Xset; then
17712   COLLECT_NAMES=
17713   export COLLECT_NAMES
17714 fi
17715 EOF
17716     ;;
17717   esac
17718
17719   # We use sed instead of cat because bash on DJGPP gets confused if
17720   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17721   # text mode, it properly converts lines to CR/LF.  This bash problem
17722   # is reportedly fixed, but why not run on old versions too?
17723   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17724
17725   mv -f "$cfgfile" "$ofile" || \
17726     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17727   chmod +x "$ofile"
17728
17729 else
17730   # If there is no Makefile yet, we rely on a make rule to execute
17731   # `config.status --recheck' to rerun these tests and create the
17732   # libtool script then.
17733   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17734   if test -f "$ltmain_in"; then
17735     test -f Makefile && make "$ltmain"
17736   fi
17737 fi
17738
17739
17740 ac_ext=c
17741 ac_cpp='$CPP $CPPFLAGS'
17742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17745
17746 CC="$lt_save_CC"
17747
17748
17749 # Check whether --with-tags was given.
17750 if test "${with_tags+set}" = set; then
17751   withval=$with_tags; tagnames="$withval"
17752 fi
17753
17754
17755 if test -f "$ltmain" && test -n "$tagnames"; then
17756   if test ! -f "${ofile}"; then
17757     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17758 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17759   fi
17760
17761   if test -z "$LTCC"; then
17762     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17763     if test -z "$LTCC"; then
17764       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17765 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17766     else
17767       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17768 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17769     fi
17770   fi
17771   if test -z "$LTCFLAGS"; then
17772     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17773   fi
17774
17775   # Extract list of available tagged configurations in $ofile.
17776   # Note that this assumes the entire list is on one line.
17777   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17778
17779   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17780   for tagname in $tagnames; do
17781     IFS="$lt_save_ifs"
17782     # Check whether tagname contains only valid characters
17783     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17784     "") ;;
17785     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17786 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17787    { (exit 1); exit 1; }; }
17788         ;;
17789     esac
17790
17791     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17792     then
17793       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17794 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17795    { (exit 1); exit 1; }; }
17796     fi
17797
17798     # Update the list of available tags.
17799     if test -n "$tagname"; then
17800       echo appending configuration tag \"$tagname\" to $ofile
17801
17802       case $tagname in
17803       CXX)
17804         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17805             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17806             (test "X$CXX" != "Xg++"))) ; then
17807           ac_ext=cpp
17808 ac_cpp='$CXXCPP $CPPFLAGS'
17809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17812
17813
17814
17815
17816 archive_cmds_need_lc_CXX=no
17817 allow_undefined_flag_CXX=
17818 always_export_symbols_CXX=no
17819 archive_expsym_cmds_CXX=
17820 export_dynamic_flag_spec_CXX=
17821 hardcode_direct_CXX=no
17822 hardcode_libdir_flag_spec_CXX=
17823 hardcode_libdir_flag_spec_ld_CXX=
17824 hardcode_libdir_separator_CXX=
17825 hardcode_minus_L_CXX=no
17826 hardcode_shlibpath_var_CXX=unsupported
17827 hardcode_automatic_CXX=no
17828 module_cmds_CXX=
17829 module_expsym_cmds_CXX=
17830 link_all_deplibs_CXX=unknown
17831 old_archive_cmds_CXX=$old_archive_cmds
17832 no_undefined_flag_CXX=
17833 whole_archive_flag_spec_CXX=
17834 enable_shared_with_static_runtimes_CXX=no
17835
17836 # Dependencies to place before and after the object being linked:
17837 predep_objects_CXX=
17838 postdep_objects_CXX=
17839 predeps_CXX=
17840 postdeps_CXX=
17841 compiler_lib_search_path_CXX=
17842
17843 # Source file extension for C++ test sources.
17844 ac_ext=cpp
17845
17846 # Object file extension for compiled C++ test sources.
17847 objext=o
17848 objext_CXX=$objext
17849
17850 # Code to be used in simple compile tests
17851 lt_simple_compile_test_code="int some_variable = 0;\n"
17852
17853 # Code to be used in simple link tests
17854 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17855
17856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17857
17858 # If no C compiler was specified, use CC.
17859 LTCC=${LTCC-"$CC"}
17860
17861 # If no C compiler flags were specified, use CFLAGS.
17862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17863
17864 # Allow CC to be a program name with arguments.
17865 compiler=$CC
17866
17867
17868 # save warnings/boilerplate of simple test code
17869 ac_outfile=conftest.$ac_objext
17870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17872 _lt_compiler_boilerplate=`cat conftest.err`
17873 $rm conftest*
17874
17875 ac_outfile=conftest.$ac_objext
17876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17878 _lt_linker_boilerplate=`cat conftest.err`
17879 $rm conftest*
17880
17881
17882 # Allow CC to be a program name with arguments.
17883 lt_save_CC=$CC
17884 lt_save_LD=$LD
17885 lt_save_GCC=$GCC
17886 GCC=$GXX
17887 lt_save_with_gnu_ld=$with_gnu_ld
17888 lt_save_path_LD=$lt_cv_path_LD
17889 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17890   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17891 else
17892   $as_unset lt_cv_prog_gnu_ld
17893 fi
17894 if test -n "${lt_cv_path_LDCXX+set}"; then
17895   lt_cv_path_LD=$lt_cv_path_LDCXX
17896 else
17897   $as_unset lt_cv_path_LD
17898 fi
17899 test -z "${LDCXX+set}" || LD=$LDCXX
17900 CC=${CXX-"c++"}
17901 compiler=$CC
17902 compiler_CXX=$CC
17903 for cc_temp in $compiler""; do
17904   case $cc_temp in
17905     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17906     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17907     \-*) ;;
17908     *) break;;
17909   esac
17910 done
17911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17912
17913
17914 # We don't want -fno-exception wen compiling C++ code, so set the
17915 # no_builtin_flag separately
17916 if test "$GXX" = yes; then
17917   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17918 else
17919   lt_prog_compiler_no_builtin_flag_CXX=
17920 fi
17921
17922 if test "$GXX" = yes; then
17923   # Set up default GNU C++ configuration
17924
17925
17926 # Check whether --with-gnu-ld was given.
17927 if test "${with_gnu_ld+set}" = set; then
17928   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17929 else
17930   with_gnu_ld=no
17931 fi
17932
17933 ac_prog=ld
17934 if test "$GCC" = yes; then
17935   # Check if gcc -print-prog-name=ld gives a path.
17936   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17937 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17938   case $host in
17939   *-*-mingw*)
17940     # gcc leaves a trailing carriage return which upsets mingw
17941     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17942   *)
17943     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17944   esac
17945   case $ac_prog in
17946     # Accept absolute paths.
17947     [\\/]* | ?:[\\/]*)
17948       re_direlt='/[^/][^/]*/\.\./'
17949       # Canonicalize the pathname of ld
17950       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17951       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17952         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17953       done
17954       test -z "$LD" && LD="$ac_prog"
17955       ;;
17956   "")
17957     # If it fails, then pretend we aren't using GCC.
17958     ac_prog=ld
17959     ;;
17960   *)
17961     # If it is relative, then search for the first ld in PATH.
17962     with_gnu_ld=unknown
17963     ;;
17964   esac
17965 elif test "$with_gnu_ld" = yes; then
17966   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17967 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17968 else
17969   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17970 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17971 fi
17972 if test "${lt_cv_path_LD+set}" = set; then
17973   echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17975   if test -z "$LD"; then
17976   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17977   for ac_dir in $PATH; do
17978     IFS="$lt_save_ifs"
17979     test -z "$ac_dir" && ac_dir=.
17980     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17981       lt_cv_path_LD="$ac_dir/$ac_prog"
17982       # Check to see if the program is GNU ld.  I'd rather use --version,
17983       # but apparently some variants of GNU ld only accept -v.
17984       # Break only if it was the GNU/non-GNU ld that we prefer.
17985       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17986       *GNU* | *'with BFD'*)
17987         test "$with_gnu_ld" != no && break
17988         ;;
17989       *)
17990         test "$with_gnu_ld" != yes && break
17991         ;;
17992       esac
17993     fi
17994   done
17995   IFS="$lt_save_ifs"
17996 else
17997   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17998 fi
17999 fi
18000
18001 LD="$lt_cv_path_LD"
18002 if test -n "$LD"; then
18003   { echo "$as_me:$LINENO: result: $LD" >&5
18004 echo "${ECHO_T}$LD" >&6; }
18005 else
18006   { echo "$as_me:$LINENO: result: no" >&5
18007 echo "${ECHO_T}no" >&6; }
18008 fi
18009 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18010 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18011    { (exit 1); exit 1; }; }
18012 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18013 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18014 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18018 case `$LD -v 2>&1 </dev/null` in
18019 *GNU* | *'with BFD'*)
18020   lt_cv_prog_gnu_ld=yes
18021   ;;
18022 *)
18023   lt_cv_prog_gnu_ld=no
18024   ;;
18025 esac
18026 fi
18027 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18028 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18029 with_gnu_ld=$lt_cv_prog_gnu_ld
18030
18031
18032
18033   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18034   # archiving commands below assume that GNU ld is being used.
18035   if test "$with_gnu_ld" = yes; then
18036     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18037     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'
18038
18039     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18040     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18041
18042     # If archive_cmds runs LD, not CC, wlarc should be empty
18043     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18044     #     investigate it a little bit more. (MM)
18045     wlarc='${wl}'
18046
18047     # ancient GNU ld didn't support --whole-archive et. al.
18048     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18049         grep 'no-whole-archive' > /dev/null; then
18050       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18051     else
18052       whole_archive_flag_spec_CXX=
18053     fi
18054   else
18055     with_gnu_ld=no
18056     wlarc=
18057
18058     # A generic and very simple default shared library creation
18059     # command for GNU C++ for the case where it uses the native
18060     # linker, instead of GNU ld.  If possible, this setting should
18061     # overridden to take advantage of the native linker features on
18062     # the platform it is being used on.
18063     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18064   fi
18065
18066   # Commands to make compiler produce verbose output that lists
18067   # what "hidden" libraries, object files and flags are used when
18068   # linking a shared library.
18069   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18070
18071 else
18072   GXX=no
18073   with_gnu_ld=no
18074   wlarc=
18075 fi
18076
18077 # PORTME: fill in a description of your system's C++ link characteristics
18078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18080 ld_shlibs_CXX=yes
18081 case $host_os in
18082   aix3*)
18083     # FIXME: insert proper C++ library support
18084     ld_shlibs_CXX=no
18085     ;;
18086   aix4* | aix5*)
18087     if test "$host_cpu" = ia64; then
18088       # On IA64, the linker does run time linking by default, so we don't
18089       # have to do anything special.
18090       aix_use_runtimelinking=no
18091       exp_sym_flag='-Bexport'
18092       no_entry_flag=""
18093     else
18094       aix_use_runtimelinking=no
18095
18096       # Test if we are trying to use run time linking or normal
18097       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18098       # need to do runtime linking.
18099       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18100         for ld_flag in $LDFLAGS; do
18101           case $ld_flag in
18102           *-brtl*)
18103             aix_use_runtimelinking=yes
18104             break
18105             ;;
18106           esac
18107         done
18108         ;;
18109       esac
18110
18111       exp_sym_flag='-bexport'
18112       no_entry_flag='-bnoentry'
18113     fi
18114
18115     # When large executables or shared objects are built, AIX ld can
18116     # have problems creating the table of contents.  If linking a library
18117     # or program results in "error TOC overflow" add -mminimal-toc to
18118     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18119     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18120
18121     archive_cmds_CXX=''
18122     hardcode_direct_CXX=yes
18123     hardcode_libdir_separator_CXX=':'
18124     link_all_deplibs_CXX=yes
18125
18126     if test "$GXX" = yes; then
18127       case $host_os in aix4.[012]|aix4.[012].*)
18128       # We only want to do this on AIX 4.2 and lower, the check
18129       # below for broken collect2 doesn't work under 4.3+
18130         collect2name=`${CC} -print-prog-name=collect2`
18131         if test -f "$collect2name" && \
18132            strings "$collect2name" | grep resolve_lib_name >/dev/null
18133         then
18134           # We have reworked collect2
18135           hardcode_direct_CXX=yes
18136         else
18137           # We have old collect2
18138           hardcode_direct_CXX=unsupported
18139           # It fails to find uninstalled libraries when the uninstalled
18140           # path is not listed in the libpath.  Setting hardcode_minus_L
18141           # to unsupported forces relinking
18142           hardcode_minus_L_CXX=yes
18143           hardcode_libdir_flag_spec_CXX='-L$libdir'
18144           hardcode_libdir_separator_CXX=
18145         fi
18146         ;;
18147       esac
18148       shared_flag='-shared'
18149       if test "$aix_use_runtimelinking" = yes; then
18150         shared_flag="$shared_flag "'${wl}-G'
18151       fi
18152     else
18153       # not using gcc
18154       if test "$host_cpu" = ia64; then
18155         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18156         # chokes on -Wl,-G. The following line is correct:
18157         shared_flag='-G'
18158       else
18159         if test "$aix_use_runtimelinking" = yes; then
18160           shared_flag='${wl}-G'
18161         else
18162           shared_flag='${wl}-bM:SRE'
18163         fi
18164       fi
18165     fi
18166
18167     # It seems that -bexpall does not export symbols beginning with
18168     # underscore (_), so it is better to generate a list of symbols to export.
18169     always_export_symbols_CXX=yes
18170     if test "$aix_use_runtimelinking" = yes; then
18171       # Warning - without using the other runtime loading flags (-brtl),
18172       # -berok will link without error, but may produce a broken library.
18173       allow_undefined_flag_CXX='-berok'
18174       # Determine the default libpath from the value encoded in an empty executable.
18175       cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181
18182 int
18183 main ()
18184 {
18185
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_link") 2>conftest.er1
18198   ac_status=$?
18199   grep -v '^ *+' conftest.er1 >conftest.err
18200   rm -f conftest.er1
18201   cat conftest.err >&5
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } &&
18204          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18205   { (case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210   (eval "$ac_try") 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; } &&
18214          { ac_try='test -s conftest$ac_exeext'
18215   { (case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220   (eval "$ac_try") 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224
18225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18226 }'`
18227 # Check for a 64-bit object if we didn't find anything.
18228 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; }
18229 }'`; fi
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234
18235 fi
18236
18237 rm -f core conftest.err conftest.$ac_objext \
18238       conftest$ac_exeext conftest.$ac_ext
18239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18240
18241       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18242
18243       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"
18244      else
18245       if test "$host_cpu" = ia64; then
18246         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18247         allow_undefined_flag_CXX="-z nodefs"
18248         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"
18249       else
18250         # Determine the default libpath from the value encoded in an empty executable.
18251         cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h.  */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h.  */
18257
18258 int
18259 main ()
18260 {
18261
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_link") 2>conftest.er1
18274   ac_status=$?
18275   grep -v '^ *+' conftest.er1 >conftest.err
18276   rm -f conftest.er1
18277   cat conftest.err >&5
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } &&
18280          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18281   { (case "(($ac_try" in
18282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283   *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286   (eval "$ac_try") 2>&5
18287   ac_status=$?
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); }; } &&
18290          { ac_try='test -s conftest$ac_exeext'
18291   { (case "(($ac_try" in
18292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293   *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296   (eval "$ac_try") 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; }; then
18300
18301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18302 }'`
18303 # Check for a 64-bit object if we didn't find anything.
18304 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; }
18305 }'`; fi
18306 else
18307   echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18309
18310
18311 fi
18312
18313 rm -f core conftest.err conftest.$ac_objext \
18314       conftest$ac_exeext conftest.$ac_ext
18315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18316
18317         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18318         # Warning - without using the other run time loading flags,
18319         # -berok will link without error, but may produce a broken library.
18320         no_undefined_flag_CXX=' ${wl}-bernotok'
18321         allow_undefined_flag_CXX=' ${wl}-berok'
18322         # Exported symbols can be pulled into shared objects from archives
18323         whole_archive_flag_spec_CXX='$convenience'
18324         archive_cmds_need_lc_CXX=yes
18325         # This is similar to how AIX traditionally builds its shared libraries.
18326         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'
18327       fi
18328     fi
18329     ;;
18330
18331   beos*)
18332     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18333       allow_undefined_flag_CXX=unsupported
18334       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18335       # support --undefined.  This deserves some investigation.  FIXME
18336       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18337     else
18338       ld_shlibs_CXX=no
18339     fi
18340     ;;
18341
18342   chorus*)
18343     case $cc_basename in
18344       *)
18345         # FIXME: insert proper C++ library support
18346         ld_shlibs_CXX=no
18347         ;;
18348     esac
18349     ;;
18350
18351   cygwin* | mingw* | pw32*)
18352     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18353     # as there is no search path for DLLs.
18354     hardcode_libdir_flag_spec_CXX='-L$libdir'
18355     allow_undefined_flag_CXX=unsupported
18356     always_export_symbols_CXX=no
18357     enable_shared_with_static_runtimes_CXX=yes
18358
18359     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18360       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'
18361       # If the export-symbols file already is a .def file (1st line
18362       # is EXPORTS), use it as is; otherwise, prepend...
18363       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18364         cp $export_symbols $output_objdir/$soname.def;
18365       else
18366         echo EXPORTS > $output_objdir/$soname.def;
18367         cat $export_symbols >> $output_objdir/$soname.def;
18368       fi~
18369       $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'
18370     else
18371       ld_shlibs_CXX=no
18372     fi
18373   ;;
18374       darwin* | rhapsody*)
18375         case $host_os in
18376         rhapsody* | darwin1.[012])
18377          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18378          ;;
18379        *) # Darwin 1.3 on
18380          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18381            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18382          else
18383            case ${MACOSX_DEPLOYMENT_TARGET} in
18384              10.[012])
18385                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18386                ;;
18387              10.*)
18388                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18389                ;;
18390            esac
18391          fi
18392          ;;
18393         esac
18394       archive_cmds_need_lc_CXX=no
18395       hardcode_direct_CXX=no
18396       hardcode_automatic_CXX=yes
18397       hardcode_shlibpath_var_CXX=unsupported
18398       whole_archive_flag_spec_CXX=''
18399       link_all_deplibs_CXX=yes
18400
18401     if test "$GXX" = yes ; then
18402       lt_int_apple_cc_single_mod=no
18403       output_verbose_link_cmd='echo'
18404       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18405        lt_int_apple_cc_single_mod=yes
18406       fi
18407       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18408        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18409       else
18410           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'
18411         fi
18412         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18413         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18414           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18415             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}'
18416           else
18417             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}'
18418           fi
18419             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}'
18420       else
18421       case $cc_basename in
18422         xlc*)
18423          output_verbose_link_cmd='echo'
18424           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'
18425           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427           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}'
18428           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}'
18429           ;;
18430        *)
18431          ld_shlibs_CXX=no
18432           ;;
18433       esac
18434       fi
18435         ;;
18436
18437   dgux*)
18438     case $cc_basename in
18439       ec++*)
18440         # FIXME: insert proper C++ library support
18441         ld_shlibs_CXX=no
18442         ;;
18443       ghcx*)
18444         # Green Hills C++ Compiler
18445         # FIXME: insert proper C++ library support
18446         ld_shlibs_CXX=no
18447         ;;
18448       *)
18449         # FIXME: insert proper C++ library support
18450         ld_shlibs_CXX=no
18451         ;;
18452     esac
18453     ;;
18454   freebsd[12]*)
18455     # C++ shared libraries reported to be fairly broken before switch to ELF
18456     ld_shlibs_CXX=no
18457     ;;
18458   freebsd-elf*)
18459     archive_cmds_need_lc_CXX=no
18460     ;;
18461   freebsd* | kfreebsd*-gnu | dragonfly*)
18462     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18463     # conventions
18464     ld_shlibs_CXX=yes
18465     ;;
18466   gnu*)
18467     ;;
18468   hpux9*)
18469     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18470     hardcode_libdir_separator_CXX=:
18471     export_dynamic_flag_spec_CXX='${wl}-E'
18472     hardcode_direct_CXX=yes
18473     hardcode_minus_L_CXX=yes # Not in the search PATH,
18474                                 # but as the default
18475                                 # location of the library.
18476
18477     case $cc_basename in
18478     CC*)
18479       # FIXME: insert proper C++ library support
18480       ld_shlibs_CXX=no
18481       ;;
18482     aCC*)
18483       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'
18484       # Commands to make compiler produce verbose output that lists
18485       # what "hidden" libraries, object files and flags are used when
18486       # linking a shared library.
18487       #
18488       # There doesn't appear to be a way to prevent this compiler from
18489       # explicitly linking system object files so we need to strip them
18490       # from the output so that they don't get included in the library
18491       # dependencies.
18492       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'
18493       ;;
18494     *)
18495       if test "$GXX" = yes; then
18496         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'
18497       else
18498         # FIXME: insert proper C++ library support
18499         ld_shlibs_CXX=no
18500       fi
18501       ;;
18502     esac
18503     ;;
18504   hpux10*|hpux11*)
18505     if test $with_gnu_ld = no; then
18506       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18507       hardcode_libdir_separator_CXX=:
18508
18509       case $host_cpu in
18510       hppa*64*|ia64*)
18511         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18512         ;;
18513       *)
18514         export_dynamic_flag_spec_CXX='${wl}-E'
18515         ;;
18516       esac
18517     fi
18518     case $host_cpu in
18519     hppa*64*|ia64*)
18520       hardcode_direct_CXX=no
18521       hardcode_shlibpath_var_CXX=no
18522       ;;
18523     *)
18524       hardcode_direct_CXX=yes
18525       hardcode_minus_L_CXX=yes # Not in the search PATH,
18526                                               # but as the default
18527                                               # location of the library.
18528       ;;
18529     esac
18530
18531     case $cc_basename in
18532       CC*)
18533         # FIXME: insert proper C++ library support
18534         ld_shlibs_CXX=no
18535         ;;
18536       aCC*)
18537         case $host_cpu in
18538         hppa*64*)
18539           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18540           ;;
18541         ia64*)
18542           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18543           ;;
18544         *)
18545           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18546           ;;
18547         esac
18548         # Commands to make compiler produce verbose output that lists
18549         # what "hidden" libraries, object files and flags are used when
18550         # linking a shared library.
18551         #
18552         # There doesn't appear to be a way to prevent this compiler from
18553         # explicitly linking system object files so we need to strip them
18554         # from the output so that they don't get included in the library
18555         # dependencies.
18556         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'
18557         ;;
18558       *)
18559         if test "$GXX" = yes; then
18560           if test $with_gnu_ld = no; then
18561             case $host_cpu in
18562             hppa*64*)
18563               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18564               ;;
18565             ia64*)
18566               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18567               ;;
18568             *)
18569               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'
18570               ;;
18571             esac
18572           fi
18573         else
18574           # FIXME: insert proper C++ library support
18575           ld_shlibs_CXX=no
18576         fi
18577         ;;
18578     esac
18579     ;;
18580   interix3*)
18581     hardcode_direct_CXX=no
18582     hardcode_shlibpath_var_CXX=no
18583     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18584     export_dynamic_flag_spec_CXX='${wl}-E'
18585     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18586     # Instead, shared libraries are loaded at an image base (0x10000000 by
18587     # default) and relocated if they conflict, which is a slow very memory
18588     # consuming and fragmenting process.  To avoid this, we pick a random,
18589     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18590     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18591     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'
18592     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'
18593     ;;
18594   irix5* | irix6*)
18595     case $cc_basename in
18596       CC*)
18597         # SGI C++
18598         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'
18599
18600         # Archives containing C++ object files must be created using
18601         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18602         # necessary to make sure instantiated templates are included
18603         # in the archive.
18604         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18605         ;;
18606       *)
18607         if test "$GXX" = yes; then
18608           if test "$with_gnu_ld" = no; then
18609             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'
18610           else
18611             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'
18612           fi
18613         fi
18614         link_all_deplibs_CXX=yes
18615         ;;
18616     esac
18617     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18618     hardcode_libdir_separator_CXX=:
18619     ;;
18620   linux*)
18621     case $cc_basename in
18622       KCC*)
18623         # Kuck and Associates, Inc. (KAI) C++ Compiler
18624
18625         # KCC will only create a shared library if the output file
18626         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18627         # to its proper name (with version) after linking.
18628         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'
18629         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'
18630         # Commands to make compiler produce verbose output that lists
18631         # what "hidden" libraries, object files and flags are used when
18632         # linking a shared library.
18633         #
18634         # There doesn't appear to be a way to prevent this compiler from
18635         # explicitly linking system object files so we need to strip them
18636         # from the output so that they don't get included in the library
18637         # dependencies.
18638         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'
18639
18640         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18641         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642
18643         # Archives containing C++ object files must be created using
18644         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18645         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18646         ;;
18647       icpc*)
18648         # Intel C++
18649         with_gnu_ld=yes
18650         # version 8.0 and above of icpc choke on multiply defined symbols
18651         # if we add $predep_objects and $postdep_objects, however 7.1 and
18652         # earlier do not add the objects themselves.
18653         case `$CC -V 2>&1` in
18654         *"Version 7."*)
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 ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18657           ;;
18658         *)  # Version 8.0 or newer
18659           tmp_idyn=
18660           case $host_cpu in
18661             ia64*) tmp_idyn=' -i_dynamic';;
18662           esac
18663           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18664           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'
18665           ;;
18666         esac
18667         archive_cmds_need_lc_CXX=no
18668         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18669         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18670         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18671         ;;
18672       pgCC*)
18673         # Portland Group C++ compiler
18674         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18675         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'
18676
18677         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18678         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18679         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'
18680         ;;
18681       cxx*)
18682         # Compaq C++
18683         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18684         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'
18685
18686         runpath_var=LD_RUN_PATH
18687         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18688         hardcode_libdir_separator_CXX=:
18689
18690         # Commands to make compiler produce verbose output that lists
18691         # what "hidden" libraries, object files and flags are used when
18692         # linking a shared library.
18693         #
18694         # There doesn't appear to be a way to prevent this compiler from
18695         # explicitly linking system object files so we need to strip them
18696         # from the output so that they don't get included in the library
18697         # dependencies.
18698         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'
18699         ;;
18700     esac
18701     ;;
18702   lynxos*)
18703     # FIXME: insert proper C++ library support
18704     ld_shlibs_CXX=no
18705     ;;
18706   m88k*)
18707     # FIXME: insert proper C++ library support
18708     ld_shlibs_CXX=no
18709     ;;
18710   mvs*)
18711     case $cc_basename in
18712       cxx*)
18713         # FIXME: insert proper C++ library support
18714         ld_shlibs_CXX=no
18715         ;;
18716       *)
18717         # FIXME: insert proper C++ library support
18718         ld_shlibs_CXX=no
18719         ;;
18720     esac
18721     ;;
18722   netbsd*)
18723     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18724       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18725       wlarc=
18726       hardcode_libdir_flag_spec_CXX='-R$libdir'
18727       hardcode_direct_CXX=yes
18728       hardcode_shlibpath_var_CXX=no
18729     fi
18730     # Workaround some broken pre-1.5 toolchains
18731     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18732     ;;
18733   openbsd2*)
18734     # C++ shared libraries are fairly broken
18735     ld_shlibs_CXX=no
18736     ;;
18737   openbsd*)
18738     hardcode_direct_CXX=yes
18739     hardcode_shlibpath_var_CXX=no
18740     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18741     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18742     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18743       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18744       export_dynamic_flag_spec_CXX='${wl}-E'
18745       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18746     fi
18747     output_verbose_link_cmd='echo'
18748     ;;
18749   osf3*)
18750     case $cc_basename in
18751       KCC*)
18752         # Kuck and Associates, Inc. (KAI) C++ Compiler
18753
18754         # KCC will only create a shared library if the output file
18755         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18756         # to its proper name (with version) after linking.
18757         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'
18758
18759         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18760         hardcode_libdir_separator_CXX=:
18761
18762         # Archives containing C++ object files must be created using
18763         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18764         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18765
18766         ;;
18767       RCC*)
18768         # Rational C++ 2.4.1
18769         # FIXME: insert proper C++ library support
18770         ld_shlibs_CXX=no
18771         ;;
18772       cxx*)
18773         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18774         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'
18775
18776         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18777         hardcode_libdir_separator_CXX=:
18778
18779         # Commands to make compiler produce verbose output that lists
18780         # what "hidden" libraries, object files and flags are used when
18781         # linking a shared library.
18782         #
18783         # There doesn't appear to be a way to prevent this compiler from
18784         # explicitly linking system object files so we need to strip them
18785         # from the output so that they don't get included in the library
18786         # dependencies.
18787         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'
18788         ;;
18789       *)
18790         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18791           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18792           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'
18793
18794           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18795           hardcode_libdir_separator_CXX=:
18796
18797           # Commands to make compiler produce verbose output that lists
18798           # what "hidden" libraries, object files and flags are used when
18799           # linking a shared library.
18800           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18801
18802         else
18803           # FIXME: insert proper C++ library support
18804           ld_shlibs_CXX=no
18805         fi
18806         ;;
18807     esac
18808     ;;
18809   osf4* | osf5*)
18810     case $cc_basename in
18811       KCC*)
18812         # Kuck and Associates, Inc. (KAI) C++ Compiler
18813
18814         # KCC will only create a shared library if the output file
18815         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18816         # to its proper name (with version) after linking.
18817         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'
18818
18819         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18820         hardcode_libdir_separator_CXX=:
18821
18822         # Archives containing C++ object files must be created using
18823         # the KAI C++ compiler.
18824         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18825         ;;
18826       RCC*)
18827         # Rational C++ 2.4.1
18828         # FIXME: insert proper C++ library support
18829         ld_shlibs_CXX=no
18830         ;;
18831       cxx*)
18832         allow_undefined_flag_CXX=' -expect_unresolved \*'
18833         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'
18834         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18835           echo "-hidden">> $lib.exp~
18836           $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~
18837           $rm $lib.exp'
18838
18839         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18840         hardcode_libdir_separator_CXX=:
18841
18842         # Commands to make compiler produce verbose output that lists
18843         # what "hidden" libraries, object files and flags are used when
18844         # linking a shared library.
18845         #
18846         # There doesn't appear to be a way to prevent this compiler from
18847         # explicitly linking system object files so we need to strip them
18848         # from the output so that they don't get included in the library
18849         # dependencies.
18850         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'
18851         ;;
18852       *)
18853         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18854           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18855          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'
18856
18857           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18858           hardcode_libdir_separator_CXX=:
18859
18860           # Commands to make compiler produce verbose output that lists
18861           # what "hidden" libraries, object files and flags are used when
18862           # linking a shared library.
18863           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18864
18865         else
18866           # FIXME: insert proper C++ library support
18867           ld_shlibs_CXX=no
18868         fi
18869         ;;
18870     esac
18871     ;;
18872   psos*)
18873     # FIXME: insert proper C++ library support
18874     ld_shlibs_CXX=no
18875     ;;
18876   sunos4*)
18877     case $cc_basename in
18878       CC*)
18879         # Sun C++ 4.x
18880         # FIXME: insert proper C++ library support
18881         ld_shlibs_CXX=no
18882         ;;
18883       lcc*)
18884         # Lucid
18885         # FIXME: insert proper C++ library support
18886         ld_shlibs_CXX=no
18887         ;;
18888       *)
18889         # FIXME: insert proper C++ library support
18890         ld_shlibs_CXX=no
18891         ;;
18892     esac
18893     ;;
18894   solaris*)
18895     case $cc_basename in
18896       CC*)
18897         # Sun C++ 4.2, 5.x and Centerline C++
18898         archive_cmds_need_lc_CXX=yes
18899         no_undefined_flag_CXX=' -zdefs'
18900         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18901         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18902         $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'
18903
18904         hardcode_libdir_flag_spec_CXX='-R$libdir'
18905         hardcode_shlibpath_var_CXX=no
18906         case $host_os in
18907           solaris2.[0-5] | solaris2.[0-5].*) ;;
18908           *)
18909             # The C++ compiler is used as linker so we must use $wl
18910             # flag to pass the commands to the underlying system
18911             # linker. We must also pass each convience library through
18912             # to the system linker between allextract/defaultextract.
18913             # The C++ compiler will combine linker options so we
18914             # cannot just pass the convience library names through
18915             # without $wl.
18916             # Supported since Solaris 2.6 (maybe 2.5.1?)
18917             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'
18918             ;;
18919         esac
18920         link_all_deplibs_CXX=yes
18921
18922         output_verbose_link_cmd='echo'
18923
18924         # Archives containing C++ object files must be created using
18925         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18926         # necessary to make sure instantiated templates are included
18927         # in the archive.
18928         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18929         ;;
18930       gcx*)
18931         # Green Hills C++ Compiler
18932         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18933
18934         # The C++ compiler must be used to create the archive.
18935         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18936         ;;
18937       *)
18938         # GNU C++ compiler with Solaris linker
18939         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18940           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18941           if $CC --version | grep -v '^2\.7' > /dev/null; then
18942             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18943             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18944                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18945
18946             # Commands to make compiler produce verbose output that lists
18947             # what "hidden" libraries, object files and flags are used when
18948             # linking a shared library.
18949             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18950           else
18951             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18952             # platform.
18953             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18954             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18955                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18956
18957             # Commands to make compiler produce verbose output that lists
18958             # what "hidden" libraries, object files and flags are used when
18959             # linking a shared library.
18960             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18961           fi
18962
18963           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18964         fi
18965         ;;
18966     esac
18967     ;;
18968   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18969     no_undefined_flag_CXX='${wl}-z,text'
18970     archive_cmds_need_lc_CXX=no
18971     hardcode_shlibpath_var_CXX=no
18972     runpath_var='LD_RUN_PATH'
18973
18974     case $cc_basename in
18975       CC*)
18976         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18977         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18978         ;;
18979       *)
18980         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18981         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18982         ;;
18983     esac
18984     ;;
18985   sysv5* | sco3.2v5* | sco5v6*)
18986     # Note: We can NOT use -z defs as we might desire, because we do not
18987     # link with -lc, and that would cause any symbols used from libc to
18988     # always be unresolved, which means just about no library would
18989     # ever link correctly.  If we're not using GNU ld we use -z text
18990     # though, which does catch some bad symbols but isn't as heavy-handed
18991     # as -z defs.
18992     # For security reasons, it is highly recommended that you always
18993     # use absolute paths for naming shared libraries, and exclude the
18994     # DT_RUNPATH tag from executables and libraries.  But doing so
18995     # requires that you compile everything twice, which is a pain.
18996     # So that behaviour is only enabled if SCOABSPATH is set to a
18997     # non-empty value in the environment.  Most likely only useful for
18998     # creating official distributions of packages.
18999     # This is a hack until libtool officially supports absolute path
19000     # names for shared libraries.
19001     no_undefined_flag_CXX='${wl}-z,text'
19002     allow_undefined_flag_CXX='${wl}-z,nodefs'
19003     archive_cmds_need_lc_CXX=no
19004     hardcode_shlibpath_var_CXX=no
19005     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19006     hardcode_libdir_separator_CXX=':'
19007     link_all_deplibs_CXX=yes
19008     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19009     runpath_var='LD_RUN_PATH'
19010
19011     case $cc_basename in
19012       CC*)
19013         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19015         ;;
19016       *)
19017         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19018         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19019         ;;
19020     esac
19021     ;;
19022   tandem*)
19023     case $cc_basename in
19024       NCC*)
19025         # NonStop-UX NCC 3.20
19026         # FIXME: insert proper C++ library support
19027         ld_shlibs_CXX=no
19028         ;;
19029       *)
19030         # FIXME: insert proper C++ library support
19031         ld_shlibs_CXX=no
19032         ;;
19033     esac
19034     ;;
19035   vxworks*)
19036     # FIXME: insert proper C++ library support
19037     ld_shlibs_CXX=no
19038     ;;
19039   *)
19040     # FIXME: insert proper C++ library support
19041     ld_shlibs_CXX=no
19042     ;;
19043 esac
19044 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19045 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19046 test "$ld_shlibs_CXX" = no && can_build_shared=no
19047
19048 GCC_CXX="$GXX"
19049 LD_CXX="$LD"
19050
19051
19052 cat > conftest.$ac_ext <<EOF
19053 class Foo
19054 {
19055 public:
19056   Foo (void) { a = 0; }
19057 private:
19058   int a;
19059 };
19060 EOF
19061
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063   (eval $ac_compile) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; then
19067   # Parse the compiler output and extract the necessary
19068   # objects, libraries and library flags.
19069
19070   # Sentinel used to keep track of whether or not we are before
19071   # the conftest object file.
19072   pre_test_object_deps_done=no
19073
19074   # The `*' in the case matches for architectures that use `case' in
19075   # $output_verbose_cmd can trigger glob expansion during the loop
19076   # eval without this substitution.
19077   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19078
19079   for p in `eval $output_verbose_link_cmd`; do
19080     case $p in
19081
19082     -L* | -R* | -l*)
19083        # Some compilers place space between "-{L,R}" and the path.
19084        # Remove the space.
19085        if test $p = "-L" \
19086           || test $p = "-R"; then
19087          prev=$p
19088          continue
19089        else
19090          prev=
19091        fi
19092
19093        if test "$pre_test_object_deps_done" = no; then
19094          case $p in
19095          -L* | -R*)
19096            # Internal compiler library paths should come after those
19097            # provided the user.  The postdeps already come after the
19098            # user supplied libs so there is no need to process them.
19099            if test -z "$compiler_lib_search_path_CXX"; then
19100              compiler_lib_search_path_CXX="${prev}${p}"
19101            else
19102              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19103            fi
19104            ;;
19105          # The "-l" case would never come before the object being
19106          # linked, so don't bother handling this case.
19107          esac
19108        else
19109          if test -z "$postdeps_CXX"; then
19110            postdeps_CXX="${prev}${p}"
19111          else
19112            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19113          fi
19114        fi
19115        ;;
19116
19117     *.$objext)
19118        # This assumes that the test object file only shows up
19119        # once in the compiler output.
19120        if test "$p" = "conftest.$objext"; then
19121          pre_test_object_deps_done=yes
19122          continue
19123        fi
19124
19125        if test "$pre_test_object_deps_done" = no; then
19126          if test -z "$predep_objects_CXX"; then
19127            predep_objects_CXX="$p"
19128          else
19129            predep_objects_CXX="$predep_objects_CXX $p"
19130          fi
19131        else
19132          if test -z "$postdep_objects_CXX"; then
19133            postdep_objects_CXX="$p"
19134          else
19135            postdep_objects_CXX="$postdep_objects_CXX $p"
19136          fi
19137        fi
19138        ;;
19139
19140     *) ;; # Ignore the rest.
19141
19142     esac
19143   done
19144
19145   # Clean up.
19146   rm -f a.out a.exe
19147 else
19148   echo "libtool.m4: error: problem compiling CXX test program"
19149 fi
19150
19151 $rm -f confest.$objext
19152
19153 # PORTME: override above test on systems where it is broken
19154 case $host_os in
19155 interix3*)
19156   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19157   # hack all around it, let's just trust "g++" to DTRT.
19158   predep_objects_CXX=
19159   postdep_objects_CXX=
19160   postdeps_CXX=
19161   ;;
19162
19163 solaris*)
19164   case $cc_basename in
19165   CC*)
19166     # Adding this requires a known-good setup of shared libraries for
19167     # Sun compiler versions before 5.6, else PIC objects from an old
19168     # archive will be linked into the output, leading to subtle bugs.
19169     postdeps_CXX='-lCstd -lCrun'
19170     ;;
19171   esac
19172   ;;
19173 esac
19174
19175
19176 case " $postdeps_CXX " in
19177 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19178 esac
19179
19180 lt_prog_compiler_wl_CXX=
19181 lt_prog_compiler_pic_CXX=
19182 lt_prog_compiler_static_CXX=
19183
19184 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19186
19187   # C++ specific cases for pic, static, wl, etc.
19188   if test "$GXX" = yes; then
19189     lt_prog_compiler_wl_CXX='-Wl,'
19190     lt_prog_compiler_static_CXX='-static'
19191
19192     case $host_os in
19193     aix*)
19194       # All AIX code is PIC.
19195       if test "$host_cpu" = ia64; then
19196         # AIX 5 now supports IA64 processor
19197         lt_prog_compiler_static_CXX='-Bstatic'
19198       fi
19199       ;;
19200     amigaos*)
19201       # FIXME: we need at least 68020 code to build shared libraries, but
19202       # adding the `-m68020' flag to GCC prevents building anything better,
19203       # like `-m68040'.
19204       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19205       ;;
19206     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19207       # PIC is the default for these OSes.
19208       ;;
19209     mingw* | os2* | pw32*)
19210       # This hack is so that the source file can tell whether it is being
19211       # built for inclusion in a dll (and should export symbols for example).
19212       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19213       ;;
19214     darwin* | rhapsody*)
19215       # PIC is the default on this platform
19216       # Common symbols not allowed in MH_DYLIB files
19217       lt_prog_compiler_pic_CXX='-fno-common'
19218       ;;
19219     *djgpp*)
19220       # DJGPP does not support shared libraries at all
19221       lt_prog_compiler_pic_CXX=
19222       ;;
19223     interix3*)
19224       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19225       # Instead, we relocate shared libraries at runtime.
19226       ;;
19227     sysv4*MP*)
19228       if test -d /usr/nec; then
19229         lt_prog_compiler_pic_CXX=-Kconform_pic
19230       fi
19231       ;;
19232     hpux*)
19233       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19234       # not for PA HP-UX.
19235       case $host_cpu in
19236       hppa*64*|ia64*)
19237         ;;
19238       *)
19239         lt_prog_compiler_pic_CXX='-fPIC'
19240         ;;
19241       esac
19242       ;;
19243     *)
19244       lt_prog_compiler_pic_CXX='-fPIC'
19245       ;;
19246     esac
19247   else
19248     case $host_os in
19249       aix4* | aix5*)
19250         # All AIX code is PIC.
19251         if test "$host_cpu" = ia64; then
19252           # AIX 5 now supports IA64 processor
19253           lt_prog_compiler_static_CXX='-Bstatic'
19254         else
19255           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19256         fi
19257         ;;
19258       chorus*)
19259         case $cc_basename in
19260         cxch68*)
19261           # Green Hills C++ Compiler
19262           # _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"
19263           ;;
19264         esac
19265         ;;
19266        darwin*)
19267          # PIC is the default on this platform
19268          # Common symbols not allowed in MH_DYLIB files
19269          case $cc_basename in
19270            xlc*)
19271            lt_prog_compiler_pic_CXX='-qnocommon'
19272            lt_prog_compiler_wl_CXX='-Wl,'
19273            ;;
19274          esac
19275        ;;
19276       dgux*)
19277         case $cc_basename in
19278           ec++*)
19279             lt_prog_compiler_pic_CXX='-KPIC'
19280             ;;
19281           ghcx*)
19282             # Green Hills C++ Compiler
19283             lt_prog_compiler_pic_CXX='-pic'
19284             ;;
19285           *)
19286             ;;
19287         esac
19288         ;;
19289       freebsd* | kfreebsd*-gnu | dragonfly*)
19290         # FreeBSD uses GNU C++
19291         ;;
19292       hpux9* | hpux10* | hpux11*)
19293         case $cc_basename in
19294           CC*)
19295             lt_prog_compiler_wl_CXX='-Wl,'
19296             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19297             if test "$host_cpu" != ia64; then
19298               lt_prog_compiler_pic_CXX='+Z'
19299             fi
19300             ;;
19301           aCC*)
19302             lt_prog_compiler_wl_CXX='-Wl,'
19303             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19304             case $host_cpu in
19305             hppa*64*|ia64*)
19306               # +Z the default
19307               ;;
19308             *)
19309               lt_prog_compiler_pic_CXX='+Z'
19310               ;;
19311             esac
19312             ;;
19313           *)
19314             ;;
19315         esac
19316         ;;
19317       interix*)
19318         # This is c89, which is MS Visual C++ (no shared libs)
19319         # Anyone wants to do a port?
19320         ;;
19321       irix5* | irix6* | nonstopux*)
19322         case $cc_basename in
19323           CC*)
19324             lt_prog_compiler_wl_CXX='-Wl,'
19325             lt_prog_compiler_static_CXX='-non_shared'
19326             # CC pic flag -KPIC is the default.
19327             ;;
19328           *)
19329             ;;
19330         esac
19331         ;;
19332       linux*)
19333         case $cc_basename in
19334           KCC*)
19335             # KAI C++ Compiler
19336             lt_prog_compiler_wl_CXX='--backend -Wl,'
19337             lt_prog_compiler_pic_CXX='-fPIC'
19338             ;;
19339           icpc* | ecpc*)
19340             # Intel C++
19341             lt_prog_compiler_wl_CXX='-Wl,'
19342             lt_prog_compiler_pic_CXX='-KPIC'
19343             lt_prog_compiler_static_CXX='-static'
19344             ;;
19345           pgCC*)
19346             # Portland Group C++ compiler.
19347             lt_prog_compiler_wl_CXX='-Wl,'
19348             lt_prog_compiler_pic_CXX='-fpic'
19349             lt_prog_compiler_static_CXX='-Bstatic'
19350             ;;
19351           cxx*)
19352             # Compaq C++
19353             # Make sure the PIC flag is empty.  It appears that all Alpha
19354             # Linux and Compaq Tru64 Unix objects are PIC.
19355             lt_prog_compiler_pic_CXX=
19356             lt_prog_compiler_static_CXX='-non_shared'
19357             ;;
19358           *)
19359             ;;
19360         esac
19361         ;;
19362       lynxos*)
19363         ;;
19364       m88k*)
19365         ;;
19366       mvs*)
19367         case $cc_basename in
19368           cxx*)
19369             lt_prog_compiler_pic_CXX='-W c,exportall'
19370             ;;
19371           *)
19372             ;;
19373         esac
19374         ;;
19375       netbsd*)
19376         ;;
19377       osf3* | osf4* | osf5*)
19378         case $cc_basename in
19379           KCC*)
19380             lt_prog_compiler_wl_CXX='--backend -Wl,'
19381             ;;
19382           RCC*)
19383             # Rational C++ 2.4.1
19384             lt_prog_compiler_pic_CXX='-pic'
19385             ;;
19386           cxx*)
19387             # Digital/Compaq C++
19388             lt_prog_compiler_wl_CXX='-Wl,'
19389             # Make sure the PIC flag is empty.  It appears that all Alpha
19390             # Linux and Compaq Tru64 Unix objects are PIC.
19391             lt_prog_compiler_pic_CXX=
19392             lt_prog_compiler_static_CXX='-non_shared'
19393             ;;
19394           *)
19395             ;;
19396         esac
19397         ;;
19398       psos*)
19399         ;;
19400       solaris*)
19401         case $cc_basename in
19402           CC*)
19403             # Sun C++ 4.2, 5.x and Centerline C++
19404             lt_prog_compiler_pic_CXX='-KPIC'
19405             lt_prog_compiler_static_CXX='-Bstatic'
19406             lt_prog_compiler_wl_CXX='-Qoption ld '
19407             ;;
19408           gcx*)
19409             # Green Hills C++ Compiler
19410             lt_prog_compiler_pic_CXX='-PIC'
19411             ;;
19412           *)
19413             ;;
19414         esac
19415         ;;
19416       sunos4*)
19417         case $cc_basename in
19418           CC*)
19419             # Sun C++ 4.x
19420             lt_prog_compiler_pic_CXX='-pic'
19421             lt_prog_compiler_static_CXX='-Bstatic'
19422             ;;
19423           lcc*)
19424             # Lucid
19425             lt_prog_compiler_pic_CXX='-pic'
19426             ;;
19427           *)
19428             ;;
19429         esac
19430         ;;
19431       tandem*)
19432         case $cc_basename in
19433           NCC*)
19434             # NonStop-UX NCC 3.20
19435             lt_prog_compiler_pic_CXX='-KPIC'
19436             ;;
19437           *)
19438             ;;
19439         esac
19440         ;;
19441       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19442         case $cc_basename in
19443           CC*)
19444             lt_prog_compiler_wl_CXX='-Wl,'
19445             lt_prog_compiler_pic_CXX='-KPIC'
19446             lt_prog_compiler_static_CXX='-Bstatic'
19447             ;;
19448         esac
19449         ;;
19450       vxworks*)
19451         ;;
19452       *)
19453         lt_prog_compiler_can_build_shared_CXX=no
19454         ;;
19455     esac
19456   fi
19457
19458 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19459 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19460
19461 #
19462 # Check to make sure the PIC flag actually works.
19463 #
19464 if test -n "$lt_prog_compiler_pic_CXX"; then
19465
19466 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19467 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19468 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19469   echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471   lt_prog_compiler_pic_works_CXX=no
19472   ac_outfile=conftest.$ac_objext
19473    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19474    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19475    # Insert the option either (1) after the last *FLAGS variable, or
19476    # (2) before a word containing "conftest.", or (3) at the end.
19477    # Note that $ac_compile itself does not contain backslashes and begins
19478    # with a dollar sign (not a hyphen), so the echo should work correctly.
19479    # The option is referenced via a variable to avoid confusing sed.
19480    lt_compile=`echo "$ac_compile" | $SED \
19481    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19483    -e 's:$: $lt_compiler_flag:'`
19484    (eval echo "\"\$as_me:19484: $lt_compile\"" >&5)
19485    (eval "$lt_compile" 2>conftest.err)
19486    ac_status=$?
19487    cat conftest.err >&5
19488    echo "$as_me:19488: \$? = $ac_status" >&5
19489    if (exit $ac_status) && test -s "$ac_outfile"; then
19490      # The compiler can only warn and ignore the option if not recognized
19491      # So say no if there are warnings other than the usual output.
19492      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19493      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19494      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19495        lt_prog_compiler_pic_works_CXX=yes
19496      fi
19497    fi
19498    $rm conftest*
19499
19500 fi
19501 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19502 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19503
19504 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19505     case $lt_prog_compiler_pic_CXX in
19506      "" | " "*) ;;
19507      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19508      esac
19509 else
19510     lt_prog_compiler_pic_CXX=
19511      lt_prog_compiler_can_build_shared_CXX=no
19512 fi
19513
19514 fi
19515 case $host_os in
19516   # For platforms which do not support PIC, -DPIC is meaningless:
19517   *djgpp*)
19518     lt_prog_compiler_pic_CXX=
19519     ;;
19520   *)
19521     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19522     ;;
19523 esac
19524
19525 #
19526 # Check to make sure the static flag actually works.
19527 #
19528 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19529 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19530 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19531 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   lt_prog_compiler_static_works_CXX=no
19535    save_LDFLAGS="$LDFLAGS"
19536    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19537    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19538    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19539      # The linker can only warn and ignore the option if not recognized
19540      # So say no if there are warnings
19541      if test -s conftest.err; then
19542        # Append any errors to the config.log.
19543        cat conftest.err 1>&5
19544        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19545        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19546        if diff conftest.exp conftest.er2 >/dev/null; then
19547          lt_prog_compiler_static_works_CXX=yes
19548        fi
19549      else
19550        lt_prog_compiler_static_works_CXX=yes
19551      fi
19552    fi
19553    $rm conftest*
19554    LDFLAGS="$save_LDFLAGS"
19555
19556 fi
19557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19558 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19559
19560 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19561     :
19562 else
19563     lt_prog_compiler_static_CXX=
19564 fi
19565
19566
19567 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19568 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19569 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19570   echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572   lt_cv_prog_compiler_c_o_CXX=no
19573    $rm -r conftest 2>/dev/null
19574    mkdir conftest
19575    cd conftest
19576    mkdir out
19577    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19578
19579    lt_compiler_flag="-o out/conftest2.$ac_objext"
19580    # Insert the option either (1) after the last *FLAGS variable, or
19581    # (2) before a word containing "conftest.", or (3) at the end.
19582    # Note that $ac_compile itself does not contain backslashes and begins
19583    # with a dollar sign (not a hyphen), so the echo should work correctly.
19584    lt_compile=`echo "$ac_compile" | $SED \
19585    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19586    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19587    -e 's:$: $lt_compiler_flag:'`
19588    (eval echo "\"\$as_me:19588: $lt_compile\"" >&5)
19589    (eval "$lt_compile" 2>out/conftest.err)
19590    ac_status=$?
19591    cat out/conftest.err >&5
19592    echo "$as_me:19592: \$? = $ac_status" >&5
19593    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19594    then
19595      # The compiler can only warn and ignore the option if not recognized
19596      # So say no if there are warnings
19597      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19598      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19599      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19600        lt_cv_prog_compiler_c_o_CXX=yes
19601      fi
19602    fi
19603    chmod u+w . 2>&5
19604    $rm conftest*
19605    # SGI C++ compiler will create directory out/ii_files/ for
19606    # template instantiation
19607    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19608    $rm out/* && rmdir out
19609    cd ..
19610    rmdir conftest
19611    $rm conftest*
19612
19613 fi
19614 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19615 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19616
19617
19618 hard_links="nottested"
19619 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19620   # do not overwrite the value of need_locks provided by the user
19621   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19622 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19623   hard_links=yes
19624   $rm conftest*
19625   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19626   touch conftest.a
19627   ln conftest.a conftest.b 2>&5 || hard_links=no
19628   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19629   { echo "$as_me:$LINENO: result: $hard_links" >&5
19630 echo "${ECHO_T}$hard_links" >&6; }
19631   if test "$hard_links" = no; then
19632     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19633 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19634     need_locks=warn
19635   fi
19636 else
19637   need_locks=no
19638 fi
19639
19640 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19641 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19642
19643   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19644   case $host_os in
19645   aix4* | aix5*)
19646     # If we're using GNU nm, then we don't want the "-C" option.
19647     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19648     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19649       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'
19650     else
19651       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'
19652     fi
19653     ;;
19654   pw32*)
19655     export_symbols_cmds_CXX="$ltdll_cmds"
19656   ;;
19657   cygwin* | mingw*)
19658     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'
19659   ;;
19660   *)
19661     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19662   ;;
19663   esac
19664
19665 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19666 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19667 test "$ld_shlibs_CXX" = no && can_build_shared=no
19668
19669 #
19670 # Do we need to explicitly link libc?
19671 #
19672 case "x$archive_cmds_need_lc_CXX" in
19673 x|xyes)
19674   # Assume -lc should be added
19675   archive_cmds_need_lc_CXX=yes
19676
19677   if test "$enable_shared" = yes && test "$GCC" = yes; then
19678     case $archive_cmds_CXX in
19679     *'~'*)
19680       # FIXME: we may have to deal with multi-command sequences.
19681       ;;
19682     '$CC '*)
19683       # Test whether the compiler implicitly links with -lc since on some
19684       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19685       # to ld, don't add -lc before -lgcc.
19686       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19687 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19688       $rm conftest*
19689       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19690
19691       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692   (eval $ac_compile) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } 2>conftest.err; then
19696         soname=conftest
19697         lib=conftest
19698         libobjs=conftest.$ac_objext
19699         deplibs=
19700         wl=$lt_prog_compiler_wl_CXX
19701         pic_flag=$lt_prog_compiler_pic_CXX
19702         compiler_flags=-v
19703         linker_flags=-v
19704         verstring=
19705         output_objdir=.
19706         libname=conftest
19707         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19708         allow_undefined_flag_CXX=
19709         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19710   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }
19714         then
19715           archive_cmds_need_lc_CXX=no
19716         else
19717           archive_cmds_need_lc_CXX=yes
19718         fi
19719         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19720       else
19721         cat conftest.err 1>&5
19722       fi
19723       $rm conftest*
19724       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19725 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19726       ;;
19727     esac
19728   fi
19729   ;;
19730 esac
19731
19732 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19733 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19734 library_names_spec=
19735 libname_spec='lib$name'
19736 soname_spec=
19737 shrext_cmds=".so"
19738 postinstall_cmds=
19739 postuninstall_cmds=
19740 finish_cmds=
19741 finish_eval=
19742 shlibpath_var=
19743 shlibpath_overrides_runpath=unknown
19744 version_type=none
19745 dynamic_linker="$host_os ld.so"
19746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19747 if test "$GCC" = yes; then
19748   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19749   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19750     # if the path contains ";" then we assume it to be the separator
19751     # otherwise default to the standard path separator (i.e. ":") - it is
19752     # assumed that no part of a normal pathname contains ";" but that should
19753     # okay in the real world where ";" in dirpaths is itself problematic.
19754     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19755   else
19756     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19757   fi
19758 else
19759   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19760 fi
19761 need_lib_prefix=unknown
19762 hardcode_into_libs=no
19763
19764 # when you set need_version to no, make sure it does not cause -set_version
19765 # flags to be left without arguments
19766 need_version=unknown
19767
19768 case $host_os in
19769 aix3*)
19770   version_type=linux
19771   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19772   shlibpath_var=LIBPATH
19773
19774   # AIX 3 has no versioning support, so we append a major version to the name.
19775   soname_spec='${libname}${release}${shared_ext}$major'
19776   ;;
19777
19778 aix4* | aix5*)
19779   version_type=linux
19780   need_lib_prefix=no
19781   need_version=no
19782   hardcode_into_libs=yes
19783   if test "$host_cpu" = ia64; then
19784     # AIX 5 supports IA64
19785     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19786     shlibpath_var=LD_LIBRARY_PATH
19787   else
19788     # With GCC up to 2.95.x, collect2 would create an import file
19789     # for dependence libraries.  The import file would start with
19790     # the line `#! .'.  This would cause the generated library to
19791     # depend on `.', always an invalid library.  This was fixed in
19792     # development snapshots of GCC prior to 3.0.
19793     case $host_os in
19794       aix4 | aix4.[01] | aix4.[01].*)
19795       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19796            echo ' yes '
19797            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19798         :
19799       else
19800         can_build_shared=no
19801       fi
19802       ;;
19803     esac
19804     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19805     # soname into executable. Probably we can add versioning support to
19806     # collect2, so additional links can be useful in future.
19807     if test "$aix_use_runtimelinking" = yes; then
19808       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19809       # instead of lib<name>.a to let people know that these are not
19810       # typical AIX shared libraries.
19811       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812     else
19813       # We preserve .a as extension for shared libraries through AIX4.2
19814       # and later when we are not doing run time linking.
19815       library_names_spec='${libname}${release}.a $libname.a'
19816       soname_spec='${libname}${release}${shared_ext}$major'
19817     fi
19818     shlibpath_var=LIBPATH
19819   fi
19820   ;;
19821
19822 amigaos*)
19823   library_names_spec='$libname.ixlibrary $libname.a'
19824   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19825   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'
19826   ;;
19827
19828 beos*)
19829   library_names_spec='${libname}${shared_ext}'
19830   dynamic_linker="$host_os ld.so"
19831   shlibpath_var=LIBRARY_PATH
19832   ;;
19833
19834 bsdi[45]*)
19835   version_type=linux
19836   need_version=no
19837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838   soname_spec='${libname}${release}${shared_ext}$major'
19839   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19840   shlibpath_var=LD_LIBRARY_PATH
19841   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19842   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19843   # the default ld.so.conf also contains /usr/contrib/lib and
19844   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19845   # libtool to hard-code these into programs
19846   ;;
19847
19848 cygwin* | mingw* | pw32*)
19849   version_type=windows
19850   shrext_cmds=".dll"
19851   need_version=no
19852   need_lib_prefix=no
19853
19854   case $GCC,$host_os in
19855   yes,cygwin* | yes,mingw* | yes,pw32*)
19856     library_names_spec='$libname.dll.a'
19857     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19858     postinstall_cmds='base_file=`basename \${file}`~
19859       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19860       dldir=$destdir/`dirname \$dlpath`~
19861       test -d \$dldir || mkdir -p \$dldir~
19862       $install_prog $dir/$dlname \$dldir/$dlname~
19863       chmod a+x \$dldir/$dlname'
19864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19865       dlpath=$dir/\$dldll~
19866        $rm \$dlpath'
19867     shlibpath_overrides_runpath=yes
19868
19869     case $host_os in
19870     cygwin*)
19871       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19872       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19873       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19874       ;;
19875     mingw*)
19876       # MinGW DLLs use traditional 'lib' prefix
19877       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19878       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19879       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19880         # It is most probably a Windows format PATH printed by
19881         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19882         # path with ; separators, and with drive letters. We can handle the
19883         # drive letters (cygwin fileutils understands them), so leave them,
19884         # especially as we might pass files found there to a mingw objdump,
19885         # which wouldn't understand a cygwinified path. Ahh.
19886         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19887       else
19888         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19889       fi
19890       ;;
19891     pw32*)
19892       # pw32 DLLs use 'pw' prefix rather than 'lib'
19893       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19894       ;;
19895     esac
19896     ;;
19897
19898   *)
19899     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19900     ;;
19901   esac
19902   dynamic_linker='Win32 ld.exe'
19903   # FIXME: first we should search . and the directory the executable is in
19904   shlibpath_var=PATH
19905   ;;
19906
19907 darwin* | rhapsody*)
19908   dynamic_linker="$host_os dyld"
19909   version_type=darwin
19910   need_lib_prefix=no
19911   need_version=no
19912   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19913   soname_spec='${libname}${release}${major}$shared_ext'
19914   shlibpath_overrides_runpath=yes
19915   shlibpath_var=DYLD_LIBRARY_PATH
19916   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19917   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19918   if test "$GCC" = yes; then
19919     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"`
19920   else
19921     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19922   fi
19923   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19924   ;;
19925
19926 dgux*)
19927   version_type=linux
19928   need_lib_prefix=no
19929   need_version=no
19930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19931   soname_spec='${libname}${release}${shared_ext}$major'
19932   shlibpath_var=LD_LIBRARY_PATH
19933   ;;
19934
19935 freebsd1*)
19936   dynamic_linker=no
19937   ;;
19938
19939 kfreebsd*-gnu)
19940   version_type=linux
19941   need_lib_prefix=no
19942   need_version=no
19943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19944   soname_spec='${libname}${release}${shared_ext}$major'
19945   shlibpath_var=LD_LIBRARY_PATH
19946   shlibpath_overrides_runpath=no
19947   hardcode_into_libs=yes
19948   dynamic_linker='GNU ld.so'
19949   ;;
19950
19951 freebsd* | dragonfly*)
19952   # DragonFly does not have aout.  When/if they implement a new
19953   # versioning mechanism, adjust this.
19954   if test -x /usr/bin/objformat; then
19955     objformat=`/usr/bin/objformat`
19956   else
19957     case $host_os in
19958     freebsd[123]*) objformat=aout ;;
19959     *) objformat=elf ;;
19960     esac
19961   fi
19962   version_type=freebsd-$objformat
19963   case $version_type in
19964     freebsd-elf*)
19965       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19966       need_version=no
19967       need_lib_prefix=no
19968       ;;
19969     freebsd-*)
19970       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19971       need_version=yes
19972       ;;
19973   esac
19974   shlibpath_var=LD_LIBRARY_PATH
19975   case $host_os in
19976   freebsd2*)
19977     shlibpath_overrides_runpath=yes
19978     ;;
19979   freebsd3.[01]* | freebsdelf3.[01]*)
19980     shlibpath_overrides_runpath=yes
19981     hardcode_into_libs=yes
19982     ;;
19983   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19984   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19985     shlibpath_overrides_runpath=no
19986     hardcode_into_libs=yes
19987     ;;
19988   freebsd*) # from 4.6 on
19989     shlibpath_overrides_runpath=yes
19990     hardcode_into_libs=yes
19991     ;;
19992   esac
19993   ;;
19994
19995 gnu*)
19996   version_type=linux
19997   need_lib_prefix=no
19998   need_version=no
19999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20000   soname_spec='${libname}${release}${shared_ext}$major'
20001   shlibpath_var=LD_LIBRARY_PATH
20002   hardcode_into_libs=yes
20003   ;;
20004
20005 hpux9* | hpux10* | hpux11*)
20006   # Give a soname corresponding to the major version so that dld.sl refuses to
20007   # link against other versions.
20008   version_type=sunos
20009   need_lib_prefix=no
20010   need_version=no
20011   case $host_cpu in
20012   ia64*)
20013     shrext_cmds='.so'
20014     hardcode_into_libs=yes
20015     dynamic_linker="$host_os dld.so"
20016     shlibpath_var=LD_LIBRARY_PATH
20017     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019     soname_spec='${libname}${release}${shared_ext}$major'
20020     if test "X$HPUX_IA64_MODE" = X32; then
20021       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20022     else
20023       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20024     fi
20025     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20026     ;;
20027    hppa*64*)
20028      shrext_cmds='.sl'
20029      hardcode_into_libs=yes
20030      dynamic_linker="$host_os dld.sl"
20031      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20032      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20034      soname_spec='${libname}${release}${shared_ext}$major'
20035      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20036      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20037      ;;
20038    *)
20039     shrext_cmds='.sl'
20040     dynamic_linker="$host_os dld.sl"
20041     shlibpath_var=SHLIB_PATH
20042     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044     soname_spec='${libname}${release}${shared_ext}$major'
20045     ;;
20046   esac
20047   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20048   postinstall_cmds='chmod 555 $lib'
20049   ;;
20050
20051 interix3*)
20052   version_type=linux
20053   need_lib_prefix=no
20054   need_version=no
20055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20056   soname_spec='${libname}${release}${shared_ext}$major'
20057   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20058   shlibpath_var=LD_LIBRARY_PATH
20059   shlibpath_overrides_runpath=no
20060   hardcode_into_libs=yes
20061   ;;
20062
20063 irix5* | irix6* | nonstopux*)
20064   case $host_os in
20065     nonstopux*) version_type=nonstopux ;;
20066     *)
20067         if test "$lt_cv_prog_gnu_ld" = yes; then
20068                 version_type=linux
20069         else
20070                 version_type=irix
20071         fi ;;
20072   esac
20073   need_lib_prefix=no
20074   need_version=no
20075   soname_spec='${libname}${release}${shared_ext}$major'
20076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20077   case $host_os in
20078   irix5* | nonstopux*)
20079     libsuff= shlibsuff=
20080     ;;
20081   *)
20082     case $LD in # libtool.m4 will add one of these switches to LD
20083     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20084       libsuff= shlibsuff= libmagic=32-bit;;
20085     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20086       libsuff=32 shlibsuff=N32 libmagic=N32;;
20087     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20088       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20089     *) libsuff= shlibsuff= libmagic=never-match;;
20090     esac
20091     ;;
20092   esac
20093   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20094   shlibpath_overrides_runpath=no
20095   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20096   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20097   hardcode_into_libs=yes
20098   ;;
20099
20100 # No shared lib support for Linux oldld, aout, or coff.
20101 linux*oldld* | linux*aout* | linux*coff*)
20102   dynamic_linker=no
20103   ;;
20104
20105 # This must be Linux ELF.
20106 linux*)
20107   version_type=linux
20108   need_lib_prefix=no
20109   need_version=no
20110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20111   soname_spec='${libname}${release}${shared_ext}$major'
20112   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20113   shlibpath_var=LD_LIBRARY_PATH
20114   shlibpath_overrides_runpath=no
20115   # This implies no fast_install, which is unacceptable.
20116   # Some rework will be needed to allow for fast_install
20117   # before this can be enabled.
20118   hardcode_into_libs=yes
20119
20120   # Append ld.so.conf contents to the search path
20121   if test -f /etc/ld.so.conf; then
20122     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' ' '`
20123     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20124   fi
20125
20126   # We used to test for /lib/ld.so.1 and disable shared libraries on
20127   # powerpc, because MkLinux only supported shared libraries with the
20128   # GNU dynamic linker.  Since this was broken with cross compilers,
20129   # most powerpc-linux boxes support dynamic linking these days and
20130   # people can always --disable-shared, the test was removed, and we
20131   # assume the GNU/Linux dynamic linker is in use.
20132   dynamic_linker='GNU/Linux ld.so'
20133   ;;
20134
20135 knetbsd*-gnu)
20136   version_type=linux
20137   need_lib_prefix=no
20138   need_version=no
20139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20140   soname_spec='${libname}${release}${shared_ext}$major'
20141   shlibpath_var=LD_LIBRARY_PATH
20142   shlibpath_overrides_runpath=no
20143   hardcode_into_libs=yes
20144   dynamic_linker='GNU ld.so'
20145   ;;
20146
20147 netbsd*)
20148   version_type=sunos
20149   need_lib_prefix=no
20150   need_version=no
20151   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20153     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20154     dynamic_linker='NetBSD (a.out) ld.so'
20155   else
20156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20157     soname_spec='${libname}${release}${shared_ext}$major'
20158     dynamic_linker='NetBSD ld.elf_so'
20159   fi
20160   shlibpath_var=LD_LIBRARY_PATH
20161   shlibpath_overrides_runpath=yes
20162   hardcode_into_libs=yes
20163   ;;
20164
20165 newsos6)
20166   version_type=linux
20167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168   shlibpath_var=LD_LIBRARY_PATH
20169   shlibpath_overrides_runpath=yes
20170   ;;
20171
20172 nto-qnx*)
20173   version_type=linux
20174   need_lib_prefix=no
20175   need_version=no
20176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177   soname_spec='${libname}${release}${shared_ext}$major'
20178   shlibpath_var=LD_LIBRARY_PATH
20179   shlibpath_overrides_runpath=yes
20180   ;;
20181
20182 openbsd*)
20183   version_type=sunos
20184   sys_lib_dlsearch_path_spec="/usr/lib"
20185   need_lib_prefix=no
20186   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20187   case $host_os in
20188     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20189     *)                         need_version=no  ;;
20190   esac
20191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20193   shlibpath_var=LD_LIBRARY_PATH
20194   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20195     case $host_os in
20196       openbsd2.[89] | openbsd2.[89].*)
20197         shlibpath_overrides_runpath=no
20198         ;;
20199       *)
20200         shlibpath_overrides_runpath=yes
20201         ;;
20202       esac
20203   else
20204     shlibpath_overrides_runpath=yes
20205   fi
20206   ;;
20207
20208 os2*)
20209   libname_spec='$name'
20210   shrext_cmds=".dll"
20211   need_lib_prefix=no
20212   library_names_spec='$libname${shared_ext} $libname.a'
20213   dynamic_linker='OS/2 ld.exe'
20214   shlibpath_var=LIBPATH
20215   ;;
20216
20217 osf3* | osf4* | osf5*)
20218   version_type=osf
20219   need_lib_prefix=no
20220   need_version=no
20221   soname_spec='${libname}${release}${shared_ext}$major'
20222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223   shlibpath_var=LD_LIBRARY_PATH
20224   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20225   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20226   ;;
20227
20228 solaris*)
20229   version_type=linux
20230   need_lib_prefix=no
20231   need_version=no
20232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233   soname_spec='${libname}${release}${shared_ext}$major'
20234   shlibpath_var=LD_LIBRARY_PATH
20235   shlibpath_overrides_runpath=yes
20236   hardcode_into_libs=yes
20237   # ldd complains unless libraries are executable
20238   postinstall_cmds='chmod +x $lib'
20239   ;;
20240
20241 sunos4*)
20242   version_type=sunos
20243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20244   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20245   shlibpath_var=LD_LIBRARY_PATH
20246   shlibpath_overrides_runpath=yes
20247   if test "$with_gnu_ld" = yes; then
20248     need_lib_prefix=no
20249   fi
20250   need_version=yes
20251   ;;
20252
20253 sysv4 | sysv4.3*)
20254   version_type=linux
20255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256   soname_spec='${libname}${release}${shared_ext}$major'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   case $host_vendor in
20259     sni)
20260       shlibpath_overrides_runpath=no
20261       need_lib_prefix=no
20262       export_dynamic_flag_spec='${wl}-Blargedynsym'
20263       runpath_var=LD_RUN_PATH
20264       ;;
20265     siemens)
20266       need_lib_prefix=no
20267       ;;
20268     motorola)
20269       need_lib_prefix=no
20270       need_version=no
20271       shlibpath_overrides_runpath=no
20272       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20273       ;;
20274   esac
20275   ;;
20276
20277 sysv4*MP*)
20278   if test -d /usr/nec ;then
20279     version_type=linux
20280     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20281     soname_spec='$libname${shared_ext}.$major'
20282     shlibpath_var=LD_LIBRARY_PATH
20283   fi
20284   ;;
20285
20286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20287   version_type=freebsd-elf
20288   need_lib_prefix=no
20289   need_version=no
20290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20291   soname_spec='${libname}${release}${shared_ext}$major'
20292   shlibpath_var=LD_LIBRARY_PATH
20293   hardcode_into_libs=yes
20294   if test "$with_gnu_ld" = yes; then
20295     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20296     shlibpath_overrides_runpath=no
20297   else
20298     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20299     shlibpath_overrides_runpath=yes
20300     case $host_os in
20301       sco3.2v5*)
20302         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20303         ;;
20304     esac
20305   fi
20306   sys_lib_dlsearch_path_spec='/usr/lib'
20307   ;;
20308
20309 uts4*)
20310   version_type=linux
20311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312   soname_spec='${libname}${release}${shared_ext}$major'
20313   shlibpath_var=LD_LIBRARY_PATH
20314   ;;
20315
20316 *)
20317   dynamic_linker=no
20318   ;;
20319 esac
20320 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20321 echo "${ECHO_T}$dynamic_linker" >&6; }
20322 test "$dynamic_linker" = no && can_build_shared=no
20323
20324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20325 if test "$GCC" = yes; then
20326   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20327 fi
20328
20329 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20330 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20331 hardcode_action_CXX=
20332 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20333    test -n "$runpath_var_CXX" || \
20334    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20335
20336   # We can hardcode non-existant directories.
20337   if test "$hardcode_direct_CXX" != no &&
20338      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20339      # have to relink, otherwise we might link with an installed library
20340      # when we should be linking with a yet-to-be-installed one
20341      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20342      test "$hardcode_minus_L_CXX" != no; then
20343     # Linking always hardcodes the temporary library directory.
20344     hardcode_action_CXX=relink
20345   else
20346     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20347     hardcode_action_CXX=immediate
20348   fi
20349 else
20350   # We cannot hardcode anything, or else we can only hardcode existing
20351   # directories.
20352   hardcode_action_CXX=unsupported
20353 fi
20354 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20355 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20356
20357 if test "$hardcode_action_CXX" = relink; then
20358   # Fast installation is not supported
20359   enable_fast_install=no
20360 elif test "$shlibpath_overrides_runpath" = yes ||
20361      test "$enable_shared" = no; then
20362   # Fast installation is not necessary
20363   enable_fast_install=needless
20364 fi
20365
20366
20367 # The else clause should only fire when bootstrapping the
20368 # libtool distribution, otherwise you forgot to ship ltmain.sh
20369 # with your package, and you will get complaints that there are
20370 # no rules to generate ltmain.sh.
20371 if test -f "$ltmain"; then
20372   # See if we are running on zsh, and set the options which allow our commands through
20373   # without removal of \ escapes.
20374   if test -n "${ZSH_VERSION+set}" ; then
20375     setopt NO_GLOB_SUBST
20376   fi
20377   # Now quote all the things that may contain metacharacters while being
20378   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20379   # variables and quote the copies for generation of the libtool script.
20380   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20381     SED SHELL STRIP \
20382     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20383     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20384     deplibs_check_method reload_flag reload_cmds need_locks \
20385     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20386     lt_cv_sys_global_symbol_to_c_name_address \
20387     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20388     old_postinstall_cmds old_postuninstall_cmds \
20389     compiler_CXX \
20390     CC_CXX \
20391     LD_CXX \
20392     lt_prog_compiler_wl_CXX \
20393     lt_prog_compiler_pic_CXX \
20394     lt_prog_compiler_static_CXX \
20395     lt_prog_compiler_no_builtin_flag_CXX \
20396     export_dynamic_flag_spec_CXX \
20397     thread_safe_flag_spec_CXX \
20398     whole_archive_flag_spec_CXX \
20399     enable_shared_with_static_runtimes_CXX \
20400     old_archive_cmds_CXX \
20401     old_archive_from_new_cmds_CXX \
20402     predep_objects_CXX \
20403     postdep_objects_CXX \
20404     predeps_CXX \
20405     postdeps_CXX \
20406     compiler_lib_search_path_CXX \
20407     archive_cmds_CXX \
20408     archive_expsym_cmds_CXX \
20409     postinstall_cmds_CXX \
20410     postuninstall_cmds_CXX \
20411     old_archive_from_expsyms_cmds_CXX \
20412     allow_undefined_flag_CXX \
20413     no_undefined_flag_CXX \
20414     export_symbols_cmds_CXX \
20415     hardcode_libdir_flag_spec_CXX \
20416     hardcode_libdir_flag_spec_ld_CXX \
20417     hardcode_libdir_separator_CXX \
20418     hardcode_automatic_CXX \
20419     module_cmds_CXX \
20420     module_expsym_cmds_CXX \
20421     lt_cv_prog_compiler_c_o_CXX \
20422     exclude_expsyms_CXX \
20423     include_expsyms_CXX; do
20424
20425     case $var in
20426     old_archive_cmds_CXX | \
20427     old_archive_from_new_cmds_CXX | \
20428     archive_cmds_CXX | \
20429     archive_expsym_cmds_CXX | \
20430     module_cmds_CXX | \
20431     module_expsym_cmds_CXX | \
20432     old_archive_from_expsyms_cmds_CXX | \
20433     export_symbols_cmds_CXX | \
20434     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20435     postinstall_cmds | postuninstall_cmds | \
20436     old_postinstall_cmds | old_postuninstall_cmds | \
20437     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20438       # Double-quote double-evaled strings.
20439       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20440       ;;
20441     *)
20442       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20443       ;;
20444     esac
20445   done
20446
20447   case $lt_echo in
20448   *'\$0 --fallback-echo"')
20449     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20450     ;;
20451   esac
20452
20453 cfgfile="$ofile"
20454
20455   cat <<__EOF__ >> "$cfgfile"
20456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20457
20458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20459
20460 # Shell to use when invoking shell scripts.
20461 SHELL=$lt_SHELL
20462
20463 # Whether or not to build shared libraries.
20464 build_libtool_libs=$enable_shared
20465
20466 # Whether or not to build static libraries.
20467 build_old_libs=$enable_static
20468
20469 # Whether or not to add -lc for building shared libraries.
20470 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20471
20472 # Whether or not to disallow shared libs when runtime libs are static
20473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20474
20475 # Whether or not to optimize for fast installation.
20476 fast_install=$enable_fast_install
20477
20478 # The host system.
20479 host_alias=$host_alias
20480 host=$host
20481 host_os=$host_os
20482
20483 # The build system.
20484 build_alias=$build_alias
20485 build=$build
20486 build_os=$build_os
20487
20488 # An echo program that does not interpret backslashes.
20489 echo=$lt_echo
20490
20491 # The archiver.
20492 AR=$lt_AR
20493 AR_FLAGS=$lt_AR_FLAGS
20494
20495 # A C compiler.
20496 LTCC=$lt_LTCC
20497
20498 # LTCC compiler flags.
20499 LTCFLAGS=$lt_LTCFLAGS
20500
20501 # A language-specific compiler.
20502 CC=$lt_compiler_CXX
20503
20504 # Is the compiler the GNU C compiler?
20505 with_gcc=$GCC_CXX
20506
20507 # An ERE matcher.
20508 EGREP=$lt_EGREP
20509
20510 # The linker used to build libraries.
20511 LD=$lt_LD_CXX
20512
20513 # Whether we need hard or soft links.
20514 LN_S=$lt_LN_S
20515
20516 # A BSD-compatible nm program.
20517 NM=$lt_NM
20518
20519 # A symbol stripping program
20520 STRIP=$lt_STRIP
20521
20522 # Used to examine libraries when file_magic_cmd begins "file"
20523 MAGIC_CMD=$MAGIC_CMD
20524
20525 # Used on cygwin: DLL creation program.
20526 DLLTOOL="$DLLTOOL"
20527
20528 # Used on cygwin: object dumper.
20529 OBJDUMP="$OBJDUMP"
20530
20531 # Used on cygwin: assembler.
20532 AS="$AS"
20533
20534 # The name of the directory that contains temporary libtool files.
20535 objdir=$objdir
20536
20537 # How to create reloadable object files.
20538 reload_flag=$lt_reload_flag
20539 reload_cmds=$lt_reload_cmds
20540
20541 # How to pass a linker flag through the compiler.
20542 wl=$lt_lt_prog_compiler_wl_CXX
20543
20544 # Object file suffix (normally "o").
20545 objext="$ac_objext"
20546
20547 # Old archive suffix (normally "a").
20548 libext="$libext"
20549
20550 # Shared library suffix (normally ".so").
20551 shrext_cmds='$shrext_cmds'
20552
20553 # Executable file suffix (normally "").
20554 exeext="$exeext"
20555
20556 # Additional compiler flags for building library objects.
20557 pic_flag=$lt_lt_prog_compiler_pic_CXX
20558 pic_mode=$pic_mode
20559
20560 # What is the maximum length of a command?
20561 max_cmd_len=$lt_cv_sys_max_cmd_len
20562
20563 # Does compiler simultaneously support -c and -o options?
20564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20565
20566 # Must we lock files when doing compilation?
20567 need_locks=$lt_need_locks
20568
20569 # Do we need the lib prefix for modules?
20570 need_lib_prefix=$need_lib_prefix
20571
20572 # Do we need a version for libraries?
20573 need_version=$need_version
20574
20575 # Whether dlopen is supported.
20576 dlopen_support=$enable_dlopen
20577
20578 # Whether dlopen of programs is supported.
20579 dlopen_self=$enable_dlopen_self
20580
20581 # Whether dlopen of statically linked programs is supported.
20582 dlopen_self_static=$enable_dlopen_self_static
20583
20584 # Compiler flag to prevent dynamic linking.
20585 link_static_flag=$lt_lt_prog_compiler_static_CXX
20586
20587 # Compiler flag to turn off builtin functions.
20588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20589
20590 # Compiler flag to allow reflexive dlopens.
20591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20592
20593 # Compiler flag to generate shared objects directly from archives.
20594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20595
20596 # Compiler flag to generate thread-safe objects.
20597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20598
20599 # Library versioning type.
20600 version_type=$version_type
20601
20602 # Format of library name prefix.
20603 libname_spec=$lt_libname_spec
20604
20605 # List of archive names.  First name is the real one, the rest are links.
20606 # The last name is the one that the linker finds with -lNAME.
20607 library_names_spec=$lt_library_names_spec
20608
20609 # The coded name of the library, if different from the real name.
20610 soname_spec=$lt_soname_spec
20611
20612 # Commands used to build and install an old-style archive.
20613 RANLIB=$lt_RANLIB
20614 old_archive_cmds=$lt_old_archive_cmds_CXX
20615 old_postinstall_cmds=$lt_old_postinstall_cmds
20616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20617
20618 # Create an old-style archive from a shared archive.
20619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20620
20621 # Create a temporary old-style archive to link instead of a shared archive.
20622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20623
20624 # Commands used to build and install a shared archive.
20625 archive_cmds=$lt_archive_cmds_CXX
20626 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20627 postinstall_cmds=$lt_postinstall_cmds
20628 postuninstall_cmds=$lt_postuninstall_cmds
20629
20630 # Commands used to build a loadable module (assumed same as above if empty)
20631 module_cmds=$lt_module_cmds_CXX
20632 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20633
20634 # Commands to strip libraries.
20635 old_striplib=$lt_old_striplib
20636 striplib=$lt_striplib
20637
20638 # Dependencies to place before the objects being linked to create a
20639 # shared library.
20640 predep_objects=$lt_predep_objects_CXX
20641
20642 # Dependencies to place after the objects being linked to create a
20643 # shared library.
20644 postdep_objects=$lt_postdep_objects_CXX
20645
20646 # Dependencies to place before the objects being linked to create a
20647 # shared library.
20648 predeps=$lt_predeps_CXX
20649
20650 # Dependencies to place after the objects being linked to create a
20651 # shared library.
20652 postdeps=$lt_postdeps_CXX
20653
20654 # The library search path used internally by the compiler when linking
20655 # a shared library.
20656 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20657
20658 # Method to check whether dependent libraries are shared objects.
20659 deplibs_check_method=$lt_deplibs_check_method
20660
20661 # Command to use when deplibs_check_method == file_magic.
20662 file_magic_cmd=$lt_file_magic_cmd
20663
20664 # Flag that allows shared libraries with undefined symbols to be built.
20665 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20666
20667 # Flag that forces no undefined symbols.
20668 no_undefined_flag=$lt_no_undefined_flag_CXX
20669
20670 # Commands used to finish a libtool library installation in a directory.
20671 finish_cmds=$lt_finish_cmds
20672
20673 # Same as above, but a single script fragment to be evaled but not shown.
20674 finish_eval=$lt_finish_eval
20675
20676 # Take the output of nm and produce a listing of raw symbols and C names.
20677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20678
20679 # Transform the output of nm in a proper C declaration
20680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20681
20682 # Transform the output of nm in a C name address pair
20683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20684
20685 # This is the shared library runtime path variable.
20686 runpath_var=$runpath_var
20687
20688 # This is the shared library path variable.
20689 shlibpath_var=$shlibpath_var
20690
20691 # Is shlibpath searched before the hard-coded library search path?
20692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20693
20694 # How to hardcode a shared library path into an executable.
20695 hardcode_action=$hardcode_action_CXX
20696
20697 # Whether we should hardcode library paths into libraries.
20698 hardcode_into_libs=$hardcode_into_libs
20699
20700 # Flag to hardcode \$libdir into a binary during linking.
20701 # This must work even if \$libdir does not exist.
20702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20703
20704 # If ld is used when linking, flag to hardcode \$libdir into
20705 # a binary during linking. This must work even if \$libdir does
20706 # not exist.
20707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20708
20709 # Whether we need a single -rpath flag with a separated argument.
20710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20711
20712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20713 # resulting binary.
20714 hardcode_direct=$hardcode_direct_CXX
20715
20716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20717 # resulting binary.
20718 hardcode_minus_L=$hardcode_minus_L_CXX
20719
20720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20721 # the resulting binary.
20722 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20723
20724 # Set to yes if building a shared library automatically hardcodes DIR into the library
20725 # and all subsequent libraries and executables linked against it.
20726 hardcode_automatic=$hardcode_automatic_CXX
20727
20728 # Variables whose values should be saved in libtool wrapper scripts and
20729 # restored at relink time.
20730 variables_saved_for_relink="$variables_saved_for_relink"
20731
20732 # Whether libtool must link a program against all its dependency libraries.
20733 link_all_deplibs=$link_all_deplibs_CXX
20734
20735 # Compile-time system search path for libraries
20736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20737
20738 # Run-time system search path for libraries
20739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20740
20741 # Fix the shell variable \$srcfile for the compiler.
20742 fix_srcfile_path="$fix_srcfile_path_CXX"
20743
20744 # Set to yes if exported symbols are required.
20745 always_export_symbols=$always_export_symbols_CXX
20746
20747 # The commands to list exported symbols.
20748 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20749
20750 # The commands to extract the exported symbol list from a shared archive.
20751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20752
20753 # Symbols that should not be listed in the preloaded symbols.
20754 exclude_expsyms=$lt_exclude_expsyms_CXX
20755
20756 # Symbols that must always be exported.
20757 include_expsyms=$lt_include_expsyms_CXX
20758
20759 # ### END LIBTOOL TAG CONFIG: $tagname
20760
20761 __EOF__
20762
20763
20764 else
20765   # If there is no Makefile yet, we rely on a make rule to execute
20766   # `config.status --recheck' to rerun these tests and create the
20767   # libtool script then.
20768   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20769   if test -f "$ltmain_in"; then
20770     test -f Makefile && make "$ltmain"
20771   fi
20772 fi
20773
20774
20775 ac_ext=c
20776 ac_cpp='$CPP $CPPFLAGS'
20777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20780
20781 CC=$lt_save_CC
20782 LDCXX=$LD
20783 LD=$lt_save_LD
20784 GCC=$lt_save_GCC
20785 with_gnu_ldcxx=$with_gnu_ld
20786 with_gnu_ld=$lt_save_with_gnu_ld
20787 lt_cv_path_LDCXX=$lt_cv_path_LD
20788 lt_cv_path_LD=$lt_save_path_LD
20789 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20790 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20791
20792         else
20793           tagname=""
20794         fi
20795         ;;
20796
20797       F77)
20798         if test -n "$F77" && test "X$F77" != "Xno"; then
20799
20800 ac_ext=f
20801 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20802 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20804
20805
20806 archive_cmds_need_lc_F77=no
20807 allow_undefined_flag_F77=
20808 always_export_symbols_F77=no
20809 archive_expsym_cmds_F77=
20810 export_dynamic_flag_spec_F77=
20811 hardcode_direct_F77=no
20812 hardcode_libdir_flag_spec_F77=
20813 hardcode_libdir_flag_spec_ld_F77=
20814 hardcode_libdir_separator_F77=
20815 hardcode_minus_L_F77=no
20816 hardcode_automatic_F77=no
20817 module_cmds_F77=
20818 module_expsym_cmds_F77=
20819 link_all_deplibs_F77=unknown
20820 old_archive_cmds_F77=$old_archive_cmds
20821 no_undefined_flag_F77=
20822 whole_archive_flag_spec_F77=
20823 enable_shared_with_static_runtimes_F77=no
20824
20825 # Source file extension for f77 test sources.
20826 ac_ext=f
20827
20828 # Object file extension for compiled f77 test sources.
20829 objext=o
20830 objext_F77=$objext
20831
20832 # Code to be used in simple compile tests
20833 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20834
20835 # Code to be used in simple link tests
20836 lt_simple_link_test_code="      program t\n      end\n"
20837
20838 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20839
20840 # If no C compiler was specified, use CC.
20841 LTCC=${LTCC-"$CC"}
20842
20843 # If no C compiler flags were specified, use CFLAGS.
20844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20845
20846 # Allow CC to be a program name with arguments.
20847 compiler=$CC
20848
20849
20850 # save warnings/boilerplate of simple test code
20851 ac_outfile=conftest.$ac_objext
20852 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20854 _lt_compiler_boilerplate=`cat conftest.err`
20855 $rm conftest*
20856
20857 ac_outfile=conftest.$ac_objext
20858 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20860 _lt_linker_boilerplate=`cat conftest.err`
20861 $rm conftest*
20862
20863
20864 # Allow CC to be a program name with arguments.
20865 lt_save_CC="$CC"
20866 CC=${F77-"f77"}
20867 compiler=$CC
20868 compiler_F77=$CC
20869 for cc_temp in $compiler""; do
20870   case $cc_temp in
20871     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20872     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20873     \-*) ;;
20874     *) break;;
20875   esac
20876 done
20877 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20878
20879
20880 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20881 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20882 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20883 echo "${ECHO_T}$can_build_shared" >&6; }
20884
20885 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20886 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20887 test "$can_build_shared" = "no" && enable_shared=no
20888
20889 # On AIX, shared libraries and static libraries use the same namespace, and
20890 # are all built from PIC.
20891 case $host_os in
20892 aix3*)
20893   test "$enable_shared" = yes && enable_static=no
20894   if test -n "$RANLIB"; then
20895     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20896     postinstall_cmds='$RANLIB $lib'
20897   fi
20898   ;;
20899 aix4* | aix5*)
20900   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20901     test "$enable_shared" = yes && enable_static=no
20902   fi
20903   ;;
20904 esac
20905 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20906 echo "${ECHO_T}$enable_shared" >&6; }
20907
20908 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20909 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20910 # Make sure either enable_shared or enable_static is yes.
20911 test "$enable_shared" = yes || enable_static=yes
20912 { echo "$as_me:$LINENO: result: $enable_static" >&5
20913 echo "${ECHO_T}$enable_static" >&6; }
20914
20915 GCC_F77="$G77"
20916 LD_F77="$LD"
20917
20918 lt_prog_compiler_wl_F77=
20919 lt_prog_compiler_pic_F77=
20920 lt_prog_compiler_static_F77=
20921
20922 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20923 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20924
20925   if test "$GCC" = yes; then
20926     lt_prog_compiler_wl_F77='-Wl,'
20927     lt_prog_compiler_static_F77='-static'
20928
20929     case $host_os in
20930       aix*)
20931       # All AIX code is PIC.
20932       if test "$host_cpu" = ia64; then
20933         # AIX 5 now supports IA64 processor
20934         lt_prog_compiler_static_F77='-Bstatic'
20935       fi
20936       ;;
20937
20938     amigaos*)
20939       # FIXME: we need at least 68020 code to build shared libraries, but
20940       # adding the `-m68020' flag to GCC prevents building anything better,
20941       # like `-m68040'.
20942       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20943       ;;
20944
20945     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20946       # PIC is the default for these OSes.
20947       ;;
20948
20949     mingw* | pw32* | os2*)
20950       # This hack is so that the source file can tell whether it is being
20951       # built for inclusion in a dll (and should export symbols for example).
20952       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20953       ;;
20954
20955     darwin* | rhapsody*)
20956       # PIC is the default on this platform
20957       # Common symbols not allowed in MH_DYLIB files
20958       lt_prog_compiler_pic_F77='-fno-common'
20959       ;;
20960
20961     interix3*)
20962       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20963       # Instead, we relocate shared libraries at runtime.
20964       ;;
20965
20966     msdosdjgpp*)
20967       # Just because we use GCC doesn't mean we suddenly get shared libraries
20968       # on systems that don't support them.
20969       lt_prog_compiler_can_build_shared_F77=no
20970       enable_shared=no
20971       ;;
20972
20973     sysv4*MP*)
20974       if test -d /usr/nec; then
20975         lt_prog_compiler_pic_F77=-Kconform_pic
20976       fi
20977       ;;
20978
20979     hpux*)
20980       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20981       # not for PA HP-UX.
20982       case $host_cpu in
20983       hppa*64*|ia64*)
20984         # +Z the default
20985         ;;
20986       *)
20987         lt_prog_compiler_pic_F77='-fPIC'
20988         ;;
20989       esac
20990       ;;
20991
20992     *)
20993       lt_prog_compiler_pic_F77='-fPIC'
20994       ;;
20995     esac
20996   else
20997     # PORTME Check for flag to pass linker flags through the system compiler.
20998     case $host_os in
20999     aix*)
21000       lt_prog_compiler_wl_F77='-Wl,'
21001       if test "$host_cpu" = ia64; then
21002         # AIX 5 now supports IA64 processor
21003         lt_prog_compiler_static_F77='-Bstatic'
21004       else
21005         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21006       fi
21007       ;;
21008       darwin*)
21009         # PIC is the default on this platform
21010         # Common symbols not allowed in MH_DYLIB files
21011        case $cc_basename in
21012          xlc*)
21013          lt_prog_compiler_pic_F77='-qnocommon'
21014          lt_prog_compiler_wl_F77='-Wl,'
21015          ;;
21016        esac
21017        ;;
21018
21019     mingw* | pw32* | os2*)
21020       # This hack is so that the source file can tell whether it is being
21021       # built for inclusion in a dll (and should export symbols for example).
21022       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21023       ;;
21024
21025     hpux9* | hpux10* | hpux11*)
21026       lt_prog_compiler_wl_F77='-Wl,'
21027       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21028       # not for PA HP-UX.
21029       case $host_cpu in
21030       hppa*64*|ia64*)
21031         # +Z the default
21032         ;;
21033       *)
21034         lt_prog_compiler_pic_F77='+Z'
21035         ;;
21036       esac
21037       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21038       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21039       ;;
21040
21041     irix5* | irix6* | nonstopux*)
21042       lt_prog_compiler_wl_F77='-Wl,'
21043       # PIC (with -KPIC) is the default.
21044       lt_prog_compiler_static_F77='-non_shared'
21045       ;;
21046
21047     newsos6)
21048       lt_prog_compiler_pic_F77='-KPIC'
21049       lt_prog_compiler_static_F77='-Bstatic'
21050       ;;
21051
21052     linux*)
21053       case $cc_basename in
21054       icc* | ecc*)
21055         lt_prog_compiler_wl_F77='-Wl,'
21056         lt_prog_compiler_pic_F77='-KPIC'
21057         lt_prog_compiler_static_F77='-static'
21058         ;;
21059       pgcc* | pgf77* | pgf90* | pgf95*)
21060         # Portland Group compilers (*not* the Pentium gcc compiler,
21061         # which looks to be a dead project)
21062         lt_prog_compiler_wl_F77='-Wl,'
21063         lt_prog_compiler_pic_F77='-fpic'
21064         lt_prog_compiler_static_F77='-Bstatic'
21065         ;;
21066       ccc*)
21067         lt_prog_compiler_wl_F77='-Wl,'
21068         # All Alpha code is PIC.
21069         lt_prog_compiler_static_F77='-non_shared'
21070         ;;
21071       esac
21072       ;;
21073
21074     osf3* | osf4* | osf5*)
21075       lt_prog_compiler_wl_F77='-Wl,'
21076       # All OSF/1 code is PIC.
21077       lt_prog_compiler_static_F77='-non_shared'
21078       ;;
21079
21080     solaris*)
21081       lt_prog_compiler_pic_F77='-KPIC'
21082       lt_prog_compiler_static_F77='-Bstatic'
21083       case $cc_basename in
21084       f77* | f90* | f95*)
21085         lt_prog_compiler_wl_F77='-Qoption ld ';;
21086       *)
21087         lt_prog_compiler_wl_F77='-Wl,';;
21088       esac
21089       ;;
21090
21091     sunos4*)
21092       lt_prog_compiler_wl_F77='-Qoption ld '
21093       lt_prog_compiler_pic_F77='-PIC'
21094       lt_prog_compiler_static_F77='-Bstatic'
21095       ;;
21096
21097     sysv4 | sysv4.2uw2* | sysv4.3*)
21098       lt_prog_compiler_wl_F77='-Wl,'
21099       lt_prog_compiler_pic_F77='-KPIC'
21100       lt_prog_compiler_static_F77='-Bstatic'
21101       ;;
21102
21103     sysv4*MP*)
21104       if test -d /usr/nec ;then
21105         lt_prog_compiler_pic_F77='-Kconform_pic'
21106         lt_prog_compiler_static_F77='-Bstatic'
21107       fi
21108       ;;
21109
21110     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21111       lt_prog_compiler_wl_F77='-Wl,'
21112       lt_prog_compiler_pic_F77='-KPIC'
21113       lt_prog_compiler_static_F77='-Bstatic'
21114       ;;
21115
21116     unicos*)
21117       lt_prog_compiler_wl_F77='-Wl,'
21118       lt_prog_compiler_can_build_shared_F77=no
21119       ;;
21120
21121     uts4*)
21122       lt_prog_compiler_pic_F77='-pic'
21123       lt_prog_compiler_static_F77='-Bstatic'
21124       ;;
21125
21126     *)
21127       lt_prog_compiler_can_build_shared_F77=no
21128       ;;
21129     esac
21130   fi
21131
21132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21133 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21134
21135 #
21136 # Check to make sure the PIC flag actually works.
21137 #
21138 if test -n "$lt_prog_compiler_pic_F77"; then
21139
21140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21142 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21143   echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145   lt_prog_compiler_pic_works_F77=no
21146   ac_outfile=conftest.$ac_objext
21147    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21148    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21149    # Insert the option either (1) after the last *FLAGS variable, or
21150    # (2) before a word containing "conftest.", or (3) at the end.
21151    # Note that $ac_compile itself does not contain backslashes and begins
21152    # with a dollar sign (not a hyphen), so the echo should work correctly.
21153    # The option is referenced via a variable to avoid confusing sed.
21154    lt_compile=`echo "$ac_compile" | $SED \
21155    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21156    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21157    -e 's:$: $lt_compiler_flag:'`
21158    (eval echo "\"\$as_me:21158: $lt_compile\"" >&5)
21159    (eval "$lt_compile" 2>conftest.err)
21160    ac_status=$?
21161    cat conftest.err >&5
21162    echo "$as_me:21162: \$? = $ac_status" >&5
21163    if (exit $ac_status) && test -s "$ac_outfile"; then
21164      # The compiler can only warn and ignore the option if not recognized
21165      # So say no if there are warnings other than the usual output.
21166      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21167      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21168      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21169        lt_prog_compiler_pic_works_F77=yes
21170      fi
21171    fi
21172    $rm conftest*
21173
21174 fi
21175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21176 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21177
21178 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21179     case $lt_prog_compiler_pic_F77 in
21180      "" | " "*) ;;
21181      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21182      esac
21183 else
21184     lt_prog_compiler_pic_F77=
21185      lt_prog_compiler_can_build_shared_F77=no
21186 fi
21187
21188 fi
21189 case $host_os in
21190   # For platforms which do not support PIC, -DPIC is meaningless:
21191   *djgpp*)
21192     lt_prog_compiler_pic_F77=
21193     ;;
21194   *)
21195     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21196     ;;
21197 esac
21198
21199 #
21200 # Check to make sure the static flag actually works.
21201 #
21202 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21203 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21205 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208   lt_prog_compiler_static_works_F77=no
21209    save_LDFLAGS="$LDFLAGS"
21210    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21211    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21212    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21213      # The linker can only warn and ignore the option if not recognized
21214      # So say no if there are warnings
21215      if test -s conftest.err; then
21216        # Append any errors to the config.log.
21217        cat conftest.err 1>&5
21218        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21219        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21220        if diff conftest.exp conftest.er2 >/dev/null; then
21221          lt_prog_compiler_static_works_F77=yes
21222        fi
21223      else
21224        lt_prog_compiler_static_works_F77=yes
21225      fi
21226    fi
21227    $rm conftest*
21228    LDFLAGS="$save_LDFLAGS"
21229
21230 fi
21231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21232 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21233
21234 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21235     :
21236 else
21237     lt_prog_compiler_static_F77=
21238 fi
21239
21240
21241 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21243 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21244   echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246   lt_cv_prog_compiler_c_o_F77=no
21247    $rm -r conftest 2>/dev/null
21248    mkdir conftest
21249    cd conftest
21250    mkdir out
21251    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21252
21253    lt_compiler_flag="-o out/conftest2.$ac_objext"
21254    # Insert the option either (1) after the last *FLAGS variable, or
21255    # (2) before a word containing "conftest.", or (3) at the end.
21256    # Note that $ac_compile itself does not contain backslashes and begins
21257    # with a dollar sign (not a hyphen), so the echo should work correctly.
21258    lt_compile=`echo "$ac_compile" | $SED \
21259    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21261    -e 's:$: $lt_compiler_flag:'`
21262    (eval echo "\"\$as_me:21262: $lt_compile\"" >&5)
21263    (eval "$lt_compile" 2>out/conftest.err)
21264    ac_status=$?
21265    cat out/conftest.err >&5
21266    echo "$as_me:21266: \$? = $ac_status" >&5
21267    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21268    then
21269      # The compiler can only warn and ignore the option if not recognized
21270      # So say no if there are warnings
21271      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21272      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21273      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21274        lt_cv_prog_compiler_c_o_F77=yes
21275      fi
21276    fi
21277    chmod u+w . 2>&5
21278    $rm conftest*
21279    # SGI C++ compiler will create directory out/ii_files/ for
21280    # template instantiation
21281    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21282    $rm out/* && rmdir out
21283    cd ..
21284    rmdir conftest
21285    $rm conftest*
21286
21287 fi
21288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21289 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21290
21291
21292 hard_links="nottested"
21293 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21294   # do not overwrite the value of need_locks provided by the user
21295   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21297   hard_links=yes
21298   $rm conftest*
21299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21300   touch conftest.a
21301   ln conftest.a conftest.b 2>&5 || hard_links=no
21302   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21303   { echo "$as_me:$LINENO: result: $hard_links" >&5
21304 echo "${ECHO_T}$hard_links" >&6; }
21305   if test "$hard_links" = no; then
21306     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21308     need_locks=warn
21309   fi
21310 else
21311   need_locks=no
21312 fi
21313
21314 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21315 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21316
21317   runpath_var=
21318   allow_undefined_flag_F77=
21319   enable_shared_with_static_runtimes_F77=no
21320   archive_cmds_F77=
21321   archive_expsym_cmds_F77=
21322   old_archive_From_new_cmds_F77=
21323   old_archive_from_expsyms_cmds_F77=
21324   export_dynamic_flag_spec_F77=
21325   whole_archive_flag_spec_F77=
21326   thread_safe_flag_spec_F77=
21327   hardcode_libdir_flag_spec_F77=
21328   hardcode_libdir_flag_spec_ld_F77=
21329   hardcode_libdir_separator_F77=
21330   hardcode_direct_F77=no
21331   hardcode_minus_L_F77=no
21332   hardcode_shlibpath_var_F77=unsupported
21333   link_all_deplibs_F77=unknown
21334   hardcode_automatic_F77=no
21335   module_cmds_F77=
21336   module_expsym_cmds_F77=
21337   always_export_symbols_F77=no
21338   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21339   # include_expsyms should be a list of space-separated symbols to be *always*
21340   # included in the symbol list
21341   include_expsyms_F77=
21342   # exclude_expsyms can be an extended regexp of symbols to exclude
21343   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21344   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21345   # as well as any symbol that contains `d'.
21346   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21347   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21348   # platforms (ab)use it in PIC code, but their linkers get confused if
21349   # the symbol is explicitly referenced.  Since portable code cannot
21350   # rely on this symbol name, it's probably fine to never include it in
21351   # preloaded symbol tables.
21352   extract_expsyms_cmds=
21353   # Just being paranoid about ensuring that cc_basename is set.
21354   for cc_temp in $compiler""; do
21355   case $cc_temp in
21356     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21357     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21358     \-*) ;;
21359     *) break;;
21360   esac
21361 done
21362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21363
21364   case $host_os in
21365   cygwin* | mingw* | pw32*)
21366     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21367     # When not using gcc, we currently assume that we are using
21368     # Microsoft Visual C++.
21369     if test "$GCC" != yes; then
21370       with_gnu_ld=no
21371     fi
21372     ;;
21373   interix*)
21374     # we just hope/assume this is gcc and not c89 (= MSVC++)
21375     with_gnu_ld=yes
21376     ;;
21377   openbsd*)
21378     with_gnu_ld=no
21379     ;;
21380   esac
21381
21382   ld_shlibs_F77=yes
21383   if test "$with_gnu_ld" = yes; then
21384     # If archive_cmds runs LD, not CC, wlarc should be empty
21385     wlarc='${wl}'
21386
21387     # Set some defaults for GNU ld with shared library support. These
21388     # are reset later if shared libraries are not supported. Putting them
21389     # here allows them to be overridden if necessary.
21390     runpath_var=LD_RUN_PATH
21391     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21392     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21393     # ancient GNU ld didn't support --whole-archive et. al.
21394     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21395         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21396       else
21397         whole_archive_flag_spec_F77=
21398     fi
21399     supports_anon_versioning=no
21400     case `$LD -v 2>/dev/null` in
21401       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21402       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21403       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21404       *\ 2.11.*) ;; # other 2.11 versions
21405       *) supports_anon_versioning=yes ;;
21406     esac
21407
21408     # See if GNU ld supports shared libraries.
21409     case $host_os in
21410     aix3* | aix4* | aix5*)
21411       # On AIX/PPC, the GNU linker is very broken
21412       if test "$host_cpu" != ia64; then
21413         ld_shlibs_F77=no
21414         cat <<EOF 1>&2
21415
21416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21417 *** to be unable to reliably create shared libraries on AIX.
21418 *** Therefore, libtool is disabling shared libraries support.  If you
21419 *** really care for shared libraries, you may want to modify your PATH
21420 *** so that a non-GNU linker is found, and then restart.
21421
21422 EOF
21423       fi
21424       ;;
21425
21426     amigaos*)
21427       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)'
21428       hardcode_libdir_flag_spec_F77='-L$libdir'
21429       hardcode_minus_L_F77=yes
21430
21431       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21432       # that the semantics of dynamic libraries on AmigaOS, at least up
21433       # to version 4, is to share data among multiple programs linked
21434       # with the same dynamic library.  Since this doesn't match the
21435       # behavior of shared libraries on other platforms, we can't use
21436       # them.
21437       ld_shlibs_F77=no
21438       ;;
21439
21440     beos*)
21441       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21442         allow_undefined_flag_F77=unsupported
21443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21444         # support --undefined.  This deserves some investigation.  FIXME
21445         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21446       else
21447         ld_shlibs_F77=no
21448       fi
21449       ;;
21450
21451     cygwin* | mingw* | pw32*)
21452       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21453       # as there is no search path for DLLs.
21454       hardcode_libdir_flag_spec_F77='-L$libdir'
21455       allow_undefined_flag_F77=unsupported
21456       always_export_symbols_F77=no
21457       enable_shared_with_static_runtimes_F77=yes
21458       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21459
21460       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21461         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21462         # If the export-symbols file already is a .def file (1st line
21463         # is EXPORTS), use it as is; otherwise, prepend...
21464         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21465           cp $export_symbols $output_objdir/$soname.def;
21466         else
21467           echo EXPORTS > $output_objdir/$soname.def;
21468           cat $export_symbols >> $output_objdir/$soname.def;
21469         fi~
21470         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21471       else
21472         ld_shlibs_F77=no
21473       fi
21474       ;;
21475
21476     interix3*)
21477       hardcode_direct_F77=no
21478       hardcode_shlibpath_var_F77=no
21479       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21480       export_dynamic_flag_spec_F77='${wl}-E'
21481       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21482       # Instead, shared libraries are loaded at an image base (0x10000000 by
21483       # default) and relocated if they conflict, which is a slow very memory
21484       # consuming and fragmenting process.  To avoid this, we pick a random,
21485       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21486       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21487       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'
21488       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'
21489       ;;
21490
21491     linux*)
21492       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21493         tmp_addflag=
21494         case $cc_basename,$host_cpu in
21495         pgcc*)                          # Portland Group C compiler
21496           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'
21497           tmp_addflag=' $pic_flag'
21498           ;;
21499         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21500           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'
21501           tmp_addflag=' $pic_flag -Mnomain' ;;
21502         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21503           tmp_addflag=' -i_dynamic' ;;
21504         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21505           tmp_addflag=' -i_dynamic -nofor_main' ;;
21506         ifc* | ifort*)                  # Intel Fortran compiler
21507           tmp_addflag=' -nofor_main' ;;
21508         esac
21509         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21510
21511         if test $supports_anon_versioning = yes; then
21512           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21513   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21514   $echo "local: *; };" >> $output_objdir/$libname.ver~
21515           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21516         fi
21517       else
21518         ld_shlibs_F77=no
21519       fi
21520       ;;
21521
21522     netbsd*)
21523       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21524         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21525         wlarc=
21526       else
21527         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21528         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21529       fi
21530       ;;
21531
21532     solaris*)
21533       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21534         ld_shlibs_F77=no
21535         cat <<EOF 1>&2
21536
21537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21538 *** create shared libraries on Solaris systems.  Therefore, libtool
21539 *** is disabling shared libraries support.  We urge you to upgrade GNU
21540 *** binutils to release 2.9.1 or newer.  Another option is to modify
21541 *** your PATH or compiler configuration so that the native linker is
21542 *** used, and then restart.
21543
21544 EOF
21545       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21546         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21547         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21548       else
21549         ld_shlibs_F77=no
21550       fi
21551       ;;
21552
21553     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21554       case `$LD -v 2>&1` in
21555         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21556         ld_shlibs_F77=no
21557         cat <<_LT_EOF 1>&2
21558
21559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21560 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21561 *** is disabling shared libraries support.  We urge you to upgrade GNU
21562 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21563 *** your PATH or compiler configuration so that the native linker is
21564 *** used, and then restart.
21565
21566 _LT_EOF
21567         ;;
21568         *)
21569           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21570             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21571             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21572             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21573           else
21574             ld_shlibs_F77=no
21575           fi
21576         ;;
21577       esac
21578       ;;
21579
21580     sunos4*)
21581       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21582       wlarc=
21583       hardcode_direct_F77=yes
21584       hardcode_shlibpath_var_F77=no
21585       ;;
21586
21587     *)
21588       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21589         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21590         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21591       else
21592         ld_shlibs_F77=no
21593       fi
21594       ;;
21595     esac
21596
21597     if test "$ld_shlibs_F77" = no; then
21598       runpath_var=
21599       hardcode_libdir_flag_spec_F77=
21600       export_dynamic_flag_spec_F77=
21601       whole_archive_flag_spec_F77=
21602     fi
21603   else
21604     # PORTME fill in a description of your system's linker (not GNU ld)
21605     case $host_os in
21606     aix3*)
21607       allow_undefined_flag_F77=unsupported
21608       always_export_symbols_F77=yes
21609       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'
21610       # Note: this linker hardcodes the directories in LIBPATH if there
21611       # are no directories specified by -L.
21612       hardcode_minus_L_F77=yes
21613       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21614         # Neither direct hardcoding nor static linking is supported with a
21615         # broken collect2.
21616         hardcode_direct_F77=unsupported
21617       fi
21618       ;;
21619
21620     aix4* | aix5*)
21621       if test "$host_cpu" = ia64; then
21622         # On IA64, the linker does run time linking by default, so we don't
21623         # have to do anything special.
21624         aix_use_runtimelinking=no
21625         exp_sym_flag='-Bexport'
21626         no_entry_flag=""
21627       else
21628         # If we're using GNU nm, then we don't want the "-C" option.
21629         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21630         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21631           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'
21632         else
21633           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'
21634         fi
21635         aix_use_runtimelinking=no
21636
21637         # Test if we are trying to use run time linking or normal
21638         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21639         # need to do runtime linking.
21640         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21641           for ld_flag in $LDFLAGS; do
21642           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21643             aix_use_runtimelinking=yes
21644             break
21645           fi
21646           done
21647           ;;
21648         esac
21649
21650         exp_sym_flag='-bexport'
21651         no_entry_flag='-bnoentry'
21652       fi
21653
21654       # When large executables or shared objects are built, AIX ld can
21655       # have problems creating the table of contents.  If linking a library
21656       # or program results in "error TOC overflow" add -mminimal-toc to
21657       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21658       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21659
21660       archive_cmds_F77=''
21661       hardcode_direct_F77=yes
21662       hardcode_libdir_separator_F77=':'
21663       link_all_deplibs_F77=yes
21664
21665       if test "$GCC" = yes; then
21666         case $host_os in aix4.[012]|aix4.[012].*)
21667         # We only want to do this on AIX 4.2 and lower, the check
21668         # below for broken collect2 doesn't work under 4.3+
21669           collect2name=`${CC} -print-prog-name=collect2`
21670           if test -f "$collect2name" && \
21671            strings "$collect2name" | grep resolve_lib_name >/dev/null
21672           then
21673           # We have reworked collect2
21674           hardcode_direct_F77=yes
21675           else
21676           # We have old collect2
21677           hardcode_direct_F77=unsupported
21678           # It fails to find uninstalled libraries when the uninstalled
21679           # path is not listed in the libpath.  Setting hardcode_minus_L
21680           # to unsupported forces relinking
21681           hardcode_minus_L_F77=yes
21682           hardcode_libdir_flag_spec_F77='-L$libdir'
21683           hardcode_libdir_separator_F77=
21684           fi
21685           ;;
21686         esac
21687         shared_flag='-shared'
21688         if test "$aix_use_runtimelinking" = yes; then
21689           shared_flag="$shared_flag "'${wl}-G'
21690         fi
21691       else
21692         # not using gcc
21693         if test "$host_cpu" = ia64; then
21694         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21695         # chokes on -Wl,-G. The following line is correct:
21696           shared_flag='-G'
21697         else
21698           if test "$aix_use_runtimelinking" = yes; then
21699             shared_flag='${wl}-G'
21700           else
21701             shared_flag='${wl}-bM:SRE'
21702           fi
21703         fi
21704       fi
21705
21706       # It seems that -bexpall does not export symbols beginning with
21707       # underscore (_), so it is better to generate a list of symbols to export.
21708       always_export_symbols_F77=yes
21709       if test "$aix_use_runtimelinking" = yes; then
21710         # Warning - without using the other runtime loading flags (-brtl),
21711         # -berok will link without error, but may produce a broken library.
21712         allow_undefined_flag_F77='-berok'
21713        # Determine the default libpath from the value encoded in an empty executable.
21714        cat >conftest.$ac_ext <<_ACEOF
21715       program main
21716
21717       end
21718 _ACEOF
21719 rm -f conftest.$ac_objext conftest$ac_exeext
21720 if { (ac_try="$ac_link"
21721 case "(($ac_try" in
21722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723   *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726   (eval "$ac_link") 2>conftest.er1
21727   ac_status=$?
21728   grep -v '^ *+' conftest.er1 >conftest.err
21729   rm -f conftest.er1
21730   cat conftest.err >&5
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); } &&
21733          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21734   { (case "(($ac_try" in
21735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736   *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739   (eval "$ac_try") 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; } &&
21743          { ac_try='test -s conftest$ac_exeext'
21744   { (case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_try") 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); }; }; then
21753
21754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21755 }'`
21756 # Check for a 64-bit object if we didn't find anything.
21757 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; }
21758 }'`; fi
21759 else
21760   echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21762
21763
21764 fi
21765
21766 rm -f core conftest.err conftest.$ac_objext \
21767       conftest$ac_exeext conftest.$ac_ext
21768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21769
21770        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21771         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"
21772        else
21773         if test "$host_cpu" = ia64; then
21774           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21775           allow_undefined_flag_F77="-z nodefs"
21776           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"
21777         else
21778          # Determine the default libpath from the value encoded in an empty executable.
21779          cat >conftest.$ac_ext <<_ACEOF
21780       program main
21781
21782       end
21783 _ACEOF
21784 rm -f conftest.$ac_objext conftest$ac_exeext
21785 if { (ac_try="$ac_link"
21786 case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791   (eval "$ac_link") 2>conftest.er1
21792   ac_status=$?
21793   grep -v '^ *+' conftest.er1 >conftest.err
21794   rm -f conftest.er1
21795   cat conftest.err >&5
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } &&
21798          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21799   { (case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_try") 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; } &&
21808          { ac_try='test -s conftest$ac_exeext'
21809   { (case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814   (eval "$ac_try") 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818
21819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21820 }'`
21821 # Check for a 64-bit object if we didn't find anything.
21822 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; }
21823 }'`; fi
21824 else
21825   echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828
21829 fi
21830
21831 rm -f core conftest.err conftest.$ac_objext \
21832       conftest$ac_exeext conftest.$ac_ext
21833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21834
21835          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21836           # Warning - without using the other run time loading flags,
21837           # -berok will link without error, but may produce a broken library.
21838           no_undefined_flag_F77=' ${wl}-bernotok'
21839           allow_undefined_flag_F77=' ${wl}-berok'
21840           # Exported symbols can be pulled into shared objects from archives
21841           whole_archive_flag_spec_F77='$convenience'
21842           archive_cmds_need_lc_F77=yes
21843           # This is similar to how AIX traditionally builds its shared libraries.
21844           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'
21845         fi
21846       fi
21847       ;;
21848
21849     amigaos*)
21850       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)'
21851       hardcode_libdir_flag_spec_F77='-L$libdir'
21852       hardcode_minus_L_F77=yes
21853       # see comment about different semantics on the GNU ld section
21854       ld_shlibs_F77=no
21855       ;;
21856
21857     bsdi[45]*)
21858       export_dynamic_flag_spec_F77=-rdynamic
21859       ;;
21860
21861     cygwin* | mingw* | pw32*)
21862       # When not using gcc, we currently assume that we are using
21863       # Microsoft Visual C++.
21864       # hardcode_libdir_flag_spec is actually meaningless, as there is
21865       # no search path for DLLs.
21866       hardcode_libdir_flag_spec_F77=' '
21867       allow_undefined_flag_F77=unsupported
21868       # Tell ltmain to make .lib files, not .a files.
21869       libext=lib
21870       # Tell ltmain to make .dll files, not .so files.
21871       shrext_cmds=".dll"
21872       # FIXME: Setting linknames here is a bad hack.
21873       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21874       # The linker will automatically build a .lib file if we build a DLL.
21875       old_archive_From_new_cmds_F77='true'
21876       # FIXME: Should let the user specify the lib program.
21877       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21878       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21879       enable_shared_with_static_runtimes_F77=yes
21880       ;;
21881
21882     darwin* | rhapsody*)
21883       case $host_os in
21884         rhapsody* | darwin1.[012])
21885          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21886          ;;
21887        *) # Darwin 1.3 on
21888          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21889            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21890          else
21891            case ${MACOSX_DEPLOYMENT_TARGET} in
21892              10.[012])
21893                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21894                ;;
21895              10.*)
21896                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21897                ;;
21898            esac
21899          fi
21900          ;;
21901       esac
21902       archive_cmds_need_lc_F77=no
21903       hardcode_direct_F77=no
21904       hardcode_automatic_F77=yes
21905       hardcode_shlibpath_var_F77=unsupported
21906       whole_archive_flag_spec_F77=''
21907       link_all_deplibs_F77=yes
21908     if test "$GCC" = yes ; then
21909         output_verbose_link_cmd='echo'
21910         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21911       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21912       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21913       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}'
21914       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}'
21915     else
21916       case $cc_basename in
21917         xlc*)
21918          output_verbose_link_cmd='echo'
21919          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21920          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21921           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21922          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}'
21923           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}'
21924           ;;
21925        *)
21926          ld_shlibs_F77=no
21927           ;;
21928       esac
21929     fi
21930       ;;
21931
21932     dgux*)
21933       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21934       hardcode_libdir_flag_spec_F77='-L$libdir'
21935       hardcode_shlibpath_var_F77=no
21936       ;;
21937
21938     freebsd1*)
21939       ld_shlibs_F77=no
21940       ;;
21941
21942     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21943     # support.  Future versions do this automatically, but an explicit c++rt0.o
21944     # does not break anything, and helps significantly (at the cost of a little
21945     # extra space).
21946     freebsd2.2*)
21947       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21948       hardcode_libdir_flag_spec_F77='-R$libdir'
21949       hardcode_direct_F77=yes
21950       hardcode_shlibpath_var_F77=no
21951       ;;
21952
21953     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21954     freebsd2*)
21955       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21956       hardcode_direct_F77=yes
21957       hardcode_minus_L_F77=yes
21958       hardcode_shlibpath_var_F77=no
21959       ;;
21960
21961     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21962     freebsd* | kfreebsd*-gnu | dragonfly*)
21963       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21964       hardcode_libdir_flag_spec_F77='-R$libdir'
21965       hardcode_direct_F77=yes
21966       hardcode_shlibpath_var_F77=no
21967       ;;
21968
21969     hpux9*)
21970       if test "$GCC" = yes; then
21971         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'
21972       else
21973         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'
21974       fi
21975       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21976       hardcode_libdir_separator_F77=:
21977       hardcode_direct_F77=yes
21978
21979       # hardcode_minus_L: Not really in the search PATH,
21980       # but as the default location of the library.
21981       hardcode_minus_L_F77=yes
21982       export_dynamic_flag_spec_F77='${wl}-E'
21983       ;;
21984
21985     hpux10*)
21986       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21987         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21988       else
21989         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21990       fi
21991       if test "$with_gnu_ld" = no; then
21992         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21993         hardcode_libdir_separator_F77=:
21994
21995         hardcode_direct_F77=yes
21996         export_dynamic_flag_spec_F77='${wl}-E'
21997
21998         # hardcode_minus_L: Not really in the search PATH,
21999         # but as the default location of the library.
22000         hardcode_minus_L_F77=yes
22001       fi
22002       ;;
22003
22004     hpux11*)
22005       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22006         case $host_cpu in
22007         hppa*64*)
22008           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22009           ;;
22010         ia64*)
22011           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22012           ;;
22013         *)
22014           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22015           ;;
22016         esac
22017       else
22018         case $host_cpu in
22019         hppa*64*)
22020           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22021           ;;
22022         ia64*)
22023           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22024           ;;
22025         *)
22026           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22027           ;;
22028         esac
22029       fi
22030       if test "$with_gnu_ld" = no; then
22031         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22032         hardcode_libdir_separator_F77=:
22033
22034         case $host_cpu in
22035         hppa*64*|ia64*)
22036           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22037           hardcode_direct_F77=no
22038           hardcode_shlibpath_var_F77=no
22039           ;;
22040         *)
22041           hardcode_direct_F77=yes
22042           export_dynamic_flag_spec_F77='${wl}-E'
22043
22044           # hardcode_minus_L: Not really in the search PATH,
22045           # but as the default location of the library.
22046           hardcode_minus_L_F77=yes
22047           ;;
22048         esac
22049       fi
22050       ;;
22051
22052     irix5* | irix6* | nonstopux*)
22053       if test "$GCC" = yes; then
22054         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'
22055       else
22056         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'
22057         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22058       fi
22059       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22060       hardcode_libdir_separator_F77=:
22061       link_all_deplibs_F77=yes
22062       ;;
22063
22064     netbsd*)
22065       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22066         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22067       else
22068         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22069       fi
22070       hardcode_libdir_flag_spec_F77='-R$libdir'
22071       hardcode_direct_F77=yes
22072       hardcode_shlibpath_var_F77=no
22073       ;;
22074
22075     newsos6)
22076       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22077       hardcode_direct_F77=yes
22078       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22079       hardcode_libdir_separator_F77=:
22080       hardcode_shlibpath_var_F77=no
22081       ;;
22082
22083     openbsd*)
22084       hardcode_direct_F77=yes
22085       hardcode_shlibpath_var_F77=no
22086       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22087         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22088         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22089         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22090         export_dynamic_flag_spec_F77='${wl}-E'
22091       else
22092        case $host_os in
22093          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22094            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22095            hardcode_libdir_flag_spec_F77='-R$libdir'
22096            ;;
22097          *)
22098            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22099            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22100            ;;
22101        esac
22102       fi
22103       ;;
22104
22105     os2*)
22106       hardcode_libdir_flag_spec_F77='-L$libdir'
22107       hardcode_minus_L_F77=yes
22108       allow_undefined_flag_F77=unsupported
22109       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'
22110       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22111       ;;
22112
22113     osf3*)
22114       if test "$GCC" = yes; then
22115         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22116         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'
22117       else
22118         allow_undefined_flag_F77=' -expect_unresolved \*'
22119         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'
22120       fi
22121       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22122       hardcode_libdir_separator_F77=:
22123       ;;
22124
22125     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22126       if test "$GCC" = yes; then
22127         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22128         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'
22129         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22130       else
22131         allow_undefined_flag_F77=' -expect_unresolved \*'
22132         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'
22133         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~
22134         $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'
22135
22136         # Both c and cxx compiler support -rpath directly
22137         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22138       fi
22139       hardcode_libdir_separator_F77=:
22140       ;;
22141
22142     solaris*)
22143       no_undefined_flag_F77=' -z text'
22144       if test "$GCC" = yes; then
22145         wlarc='${wl}'
22146         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22147         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22148           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22149       else
22150         wlarc=''
22151         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22153         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22154       fi
22155       hardcode_libdir_flag_spec_F77='-R$libdir'
22156       hardcode_shlibpath_var_F77=no
22157       case $host_os in
22158       solaris2.[0-5] | solaris2.[0-5].*) ;;
22159       *)
22160         # The compiler driver will combine linker options so we
22161         # cannot just pass the convience library names through
22162         # without $wl, iff we do not link with $LD.
22163         # Luckily, gcc supports the same syntax we need for Sun Studio.
22164         # Supported since Solaris 2.6 (maybe 2.5.1?)
22165         case $wlarc in
22166         '')
22167           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22168         *)
22169           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' ;;
22170         esac ;;
22171       esac
22172       link_all_deplibs_F77=yes
22173       ;;
22174
22175     sunos4*)
22176       if test "x$host_vendor" = xsequent; then
22177         # Use $CC to link under sequent, because it throws in some extra .o
22178         # files that make .init and .fini sections work.
22179         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22180       else
22181         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22182       fi
22183       hardcode_libdir_flag_spec_F77='-L$libdir'
22184       hardcode_direct_F77=yes
22185       hardcode_minus_L_F77=yes
22186       hardcode_shlibpath_var_F77=no
22187       ;;
22188
22189     sysv4)
22190       case $host_vendor in
22191         sni)
22192           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22193           hardcode_direct_F77=yes # is this really true???
22194         ;;
22195         siemens)
22196           ## LD is ld it makes a PLAMLIB
22197           ## CC just makes a GrossModule.
22198           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22199           reload_cmds_F77='$CC -r -o $output$reload_objs'
22200           hardcode_direct_F77=no
22201         ;;
22202         motorola)
22203           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22205         ;;
22206       esac
22207       runpath_var='LD_RUN_PATH'
22208       hardcode_shlibpath_var_F77=no
22209       ;;
22210
22211     sysv4.3*)
22212       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22213       hardcode_shlibpath_var_F77=no
22214       export_dynamic_flag_spec_F77='-Bexport'
22215       ;;
22216
22217     sysv4*MP*)
22218       if test -d /usr/nec; then
22219         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22220         hardcode_shlibpath_var_F77=no
22221         runpath_var=LD_RUN_PATH
22222         hardcode_runpath_var=yes
22223         ld_shlibs_F77=yes
22224       fi
22225       ;;
22226
22227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22228       no_undefined_flag_F77='${wl}-z,text'
22229       archive_cmds_need_lc_F77=no
22230       hardcode_shlibpath_var_F77=no
22231       runpath_var='LD_RUN_PATH'
22232
22233       if test "$GCC" = yes; then
22234         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22235         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22236       else
22237         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22238         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22239       fi
22240       ;;
22241
22242     sysv5* | sco3.2v5* | sco5v6*)
22243       # Note: We can NOT use -z defs as we might desire, because we do not
22244       # link with -lc, and that would cause any symbols used from libc to
22245       # always be unresolved, which means just about no library would
22246       # ever link correctly.  If we're not using GNU ld we use -z text
22247       # though, which does catch some bad symbols but isn't as heavy-handed
22248       # as -z defs.
22249       no_undefined_flag_F77='${wl}-z,text'
22250       allow_undefined_flag_F77='${wl}-z,nodefs'
22251       archive_cmds_need_lc_F77=no
22252       hardcode_shlibpath_var_F77=no
22253       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22254       hardcode_libdir_separator_F77=':'
22255       link_all_deplibs_F77=yes
22256       export_dynamic_flag_spec_F77='${wl}-Bexport'
22257       runpath_var='LD_RUN_PATH'
22258
22259       if test "$GCC" = yes; then
22260         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22262       else
22263         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22265       fi
22266       ;;
22267
22268     uts4*)
22269       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270       hardcode_libdir_flag_spec_F77='-L$libdir'
22271       hardcode_shlibpath_var_F77=no
22272       ;;
22273
22274     *)
22275       ld_shlibs_F77=no
22276       ;;
22277     esac
22278   fi
22279
22280 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22281 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22282 test "$ld_shlibs_F77" = no && can_build_shared=no
22283
22284 #
22285 # Do we need to explicitly link libc?
22286 #
22287 case "x$archive_cmds_need_lc_F77" in
22288 x|xyes)
22289   # Assume -lc should be added
22290   archive_cmds_need_lc_F77=yes
22291
22292   if test "$enable_shared" = yes && test "$GCC" = yes; then
22293     case $archive_cmds_F77 in
22294     *'~'*)
22295       # FIXME: we may have to deal with multi-command sequences.
22296       ;;
22297     '$CC '*)
22298       # Test whether the compiler implicitly links with -lc since on some
22299       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22300       # to ld, don't add -lc before -lgcc.
22301       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22303       $rm conftest*
22304       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22305
22306       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307   (eval $ac_compile) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } 2>conftest.err; then
22311         soname=conftest
22312         lib=conftest
22313         libobjs=conftest.$ac_objext
22314         deplibs=
22315         wl=$lt_prog_compiler_wl_F77
22316         pic_flag=$lt_prog_compiler_pic_F77
22317         compiler_flags=-v
22318         linker_flags=-v
22319         verstring=
22320         output_objdir=.
22321         libname=conftest
22322         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22323         allow_undefined_flag_F77=
22324         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22325   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22326   ac_status=$?
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); }
22329         then
22330           archive_cmds_need_lc_F77=no
22331         else
22332           archive_cmds_need_lc_F77=yes
22333         fi
22334         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22335       else
22336         cat conftest.err 1>&5
22337       fi
22338       $rm conftest*
22339       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22340 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22341       ;;
22342     esac
22343   fi
22344   ;;
22345 esac
22346
22347 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22349 library_names_spec=
22350 libname_spec='lib$name'
22351 soname_spec=
22352 shrext_cmds=".so"
22353 postinstall_cmds=
22354 postuninstall_cmds=
22355 finish_cmds=
22356 finish_eval=
22357 shlibpath_var=
22358 shlibpath_overrides_runpath=unknown
22359 version_type=none
22360 dynamic_linker="$host_os ld.so"
22361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22362 if test "$GCC" = yes; then
22363   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22364   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22365     # if the path contains ";" then we assume it to be the separator
22366     # otherwise default to the standard path separator (i.e. ":") - it is
22367     # assumed that no part of a normal pathname contains ";" but that should
22368     # okay in the real world where ";" in dirpaths is itself problematic.
22369     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22370   else
22371     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22372   fi
22373 else
22374   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22375 fi
22376 need_lib_prefix=unknown
22377 hardcode_into_libs=no
22378
22379 # when you set need_version to no, make sure it does not cause -set_version
22380 # flags to be left without arguments
22381 need_version=unknown
22382
22383 case $host_os in
22384 aix3*)
22385   version_type=linux
22386   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22387   shlibpath_var=LIBPATH
22388
22389   # AIX 3 has no versioning support, so we append a major version to the name.
22390   soname_spec='${libname}${release}${shared_ext}$major'
22391   ;;
22392
22393 aix4* | aix5*)
22394   version_type=linux
22395   need_lib_prefix=no
22396   need_version=no
22397   hardcode_into_libs=yes
22398   if test "$host_cpu" = ia64; then
22399     # AIX 5 supports IA64
22400     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22401     shlibpath_var=LD_LIBRARY_PATH
22402   else
22403     # With GCC up to 2.95.x, collect2 would create an import file
22404     # for dependence libraries.  The import file would start with
22405     # the line `#! .'.  This would cause the generated library to
22406     # depend on `.', always an invalid library.  This was fixed in
22407     # development snapshots of GCC prior to 3.0.
22408     case $host_os in
22409       aix4 | aix4.[01] | aix4.[01].*)
22410       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22411            echo ' yes '
22412            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22413         :
22414       else
22415         can_build_shared=no
22416       fi
22417       ;;
22418     esac
22419     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22420     # soname into executable. Probably we can add versioning support to
22421     # collect2, so additional links can be useful in future.
22422     if test "$aix_use_runtimelinking" = yes; then
22423       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22424       # instead of lib<name>.a to let people know that these are not
22425       # typical AIX shared libraries.
22426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22427     else
22428       # We preserve .a as extension for shared libraries through AIX4.2
22429       # and later when we are not doing run time linking.
22430       library_names_spec='${libname}${release}.a $libname.a'
22431       soname_spec='${libname}${release}${shared_ext}$major'
22432     fi
22433     shlibpath_var=LIBPATH
22434   fi
22435   ;;
22436
22437 amigaos*)
22438   library_names_spec='$libname.ixlibrary $libname.a'
22439   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22440   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'
22441   ;;
22442
22443 beos*)
22444   library_names_spec='${libname}${shared_ext}'
22445   dynamic_linker="$host_os ld.so"
22446   shlibpath_var=LIBRARY_PATH
22447   ;;
22448
22449 bsdi[45]*)
22450   version_type=linux
22451   need_version=no
22452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22453   soname_spec='${libname}${release}${shared_ext}$major'
22454   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22455   shlibpath_var=LD_LIBRARY_PATH
22456   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22457   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22458   # the default ld.so.conf also contains /usr/contrib/lib and
22459   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22460   # libtool to hard-code these into programs
22461   ;;
22462
22463 cygwin* | mingw* | pw32*)
22464   version_type=windows
22465   shrext_cmds=".dll"
22466   need_version=no
22467   need_lib_prefix=no
22468
22469   case $GCC,$host_os in
22470   yes,cygwin* | yes,mingw* | yes,pw32*)
22471     library_names_spec='$libname.dll.a'
22472     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22473     postinstall_cmds='base_file=`basename \${file}`~
22474       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22475       dldir=$destdir/`dirname \$dlpath`~
22476       test -d \$dldir || mkdir -p \$dldir~
22477       $install_prog $dir/$dlname \$dldir/$dlname~
22478       chmod a+x \$dldir/$dlname'
22479     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22480       dlpath=$dir/\$dldll~
22481        $rm \$dlpath'
22482     shlibpath_overrides_runpath=yes
22483
22484     case $host_os in
22485     cygwin*)
22486       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22487       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22488       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22489       ;;
22490     mingw*)
22491       # MinGW DLLs use traditional 'lib' prefix
22492       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22493       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22494       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22495         # It is most probably a Windows format PATH printed by
22496         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22497         # path with ; separators, and with drive letters. We can handle the
22498         # drive letters (cygwin fileutils understands them), so leave them,
22499         # especially as we might pass files found there to a mingw objdump,
22500         # which wouldn't understand a cygwinified path. Ahh.
22501         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22502       else
22503         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22504       fi
22505       ;;
22506     pw32*)
22507       # pw32 DLLs use 'pw' prefix rather than 'lib'
22508       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22509       ;;
22510     esac
22511     ;;
22512
22513   *)
22514     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22515     ;;
22516   esac
22517   dynamic_linker='Win32 ld.exe'
22518   # FIXME: first we should search . and the directory the executable is in
22519   shlibpath_var=PATH
22520   ;;
22521
22522 darwin* | rhapsody*)
22523   dynamic_linker="$host_os dyld"
22524   version_type=darwin
22525   need_lib_prefix=no
22526   need_version=no
22527   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22528   soname_spec='${libname}${release}${major}$shared_ext'
22529   shlibpath_overrides_runpath=yes
22530   shlibpath_var=DYLD_LIBRARY_PATH
22531   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22532   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22533   if test "$GCC" = yes; then
22534     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"`
22535   else
22536     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22537   fi
22538   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22539   ;;
22540
22541 dgux*)
22542   version_type=linux
22543   need_lib_prefix=no
22544   need_version=no
22545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22546   soname_spec='${libname}${release}${shared_ext}$major'
22547   shlibpath_var=LD_LIBRARY_PATH
22548   ;;
22549
22550 freebsd1*)
22551   dynamic_linker=no
22552   ;;
22553
22554 kfreebsd*-gnu)
22555   version_type=linux
22556   need_lib_prefix=no
22557   need_version=no
22558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22559   soname_spec='${libname}${release}${shared_ext}$major'
22560   shlibpath_var=LD_LIBRARY_PATH
22561   shlibpath_overrides_runpath=no
22562   hardcode_into_libs=yes
22563   dynamic_linker='GNU ld.so'
22564   ;;
22565
22566 freebsd* | dragonfly*)
22567   # DragonFly does not have aout.  When/if they implement a new
22568   # versioning mechanism, adjust this.
22569   if test -x /usr/bin/objformat; then
22570     objformat=`/usr/bin/objformat`
22571   else
22572     case $host_os in
22573     freebsd[123]*) objformat=aout ;;
22574     *) objformat=elf ;;
22575     esac
22576   fi
22577   version_type=freebsd-$objformat
22578   case $version_type in
22579     freebsd-elf*)
22580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22581       need_version=no
22582       need_lib_prefix=no
22583       ;;
22584     freebsd-*)
22585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22586       need_version=yes
22587       ;;
22588   esac
22589   shlibpath_var=LD_LIBRARY_PATH
22590   case $host_os in
22591   freebsd2*)
22592     shlibpath_overrides_runpath=yes
22593     ;;
22594   freebsd3.[01]* | freebsdelf3.[01]*)
22595     shlibpath_overrides_runpath=yes
22596     hardcode_into_libs=yes
22597     ;;
22598   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22599   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22600     shlibpath_overrides_runpath=no
22601     hardcode_into_libs=yes
22602     ;;
22603   freebsd*) # from 4.6 on
22604     shlibpath_overrides_runpath=yes
22605     hardcode_into_libs=yes
22606     ;;
22607   esac
22608   ;;
22609
22610 gnu*)
22611   version_type=linux
22612   need_lib_prefix=no
22613   need_version=no
22614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22615   soname_spec='${libname}${release}${shared_ext}$major'
22616   shlibpath_var=LD_LIBRARY_PATH
22617   hardcode_into_libs=yes
22618   ;;
22619
22620 hpux9* | hpux10* | hpux11*)
22621   # Give a soname corresponding to the major version so that dld.sl refuses to
22622   # link against other versions.
22623   version_type=sunos
22624   need_lib_prefix=no
22625   need_version=no
22626   case $host_cpu in
22627   ia64*)
22628     shrext_cmds='.so'
22629     hardcode_into_libs=yes
22630     dynamic_linker="$host_os dld.so"
22631     shlibpath_var=LD_LIBRARY_PATH
22632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22634     soname_spec='${libname}${release}${shared_ext}$major'
22635     if test "X$HPUX_IA64_MODE" = X32; then
22636       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22637     else
22638       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22639     fi
22640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22641     ;;
22642    hppa*64*)
22643      shrext_cmds='.sl'
22644      hardcode_into_libs=yes
22645      dynamic_linker="$host_os dld.sl"
22646      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22647      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22648      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22649      soname_spec='${libname}${release}${shared_ext}$major'
22650      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22651      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22652      ;;
22653    *)
22654     shrext_cmds='.sl'
22655     dynamic_linker="$host_os dld.sl"
22656     shlibpath_var=SHLIB_PATH
22657     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659     soname_spec='${libname}${release}${shared_ext}$major'
22660     ;;
22661   esac
22662   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22663   postinstall_cmds='chmod 555 $lib'
22664   ;;
22665
22666 interix3*)
22667   version_type=linux
22668   need_lib_prefix=no
22669   need_version=no
22670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22671   soname_spec='${libname}${release}${shared_ext}$major'
22672   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22673   shlibpath_var=LD_LIBRARY_PATH
22674   shlibpath_overrides_runpath=no
22675   hardcode_into_libs=yes
22676   ;;
22677
22678 irix5* | irix6* | nonstopux*)
22679   case $host_os in
22680     nonstopux*) version_type=nonstopux ;;
22681     *)
22682         if test "$lt_cv_prog_gnu_ld" = yes; then
22683                 version_type=linux
22684         else
22685                 version_type=irix
22686         fi ;;
22687   esac
22688   need_lib_prefix=no
22689   need_version=no
22690   soname_spec='${libname}${release}${shared_ext}$major'
22691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22692   case $host_os in
22693   irix5* | nonstopux*)
22694     libsuff= shlibsuff=
22695     ;;
22696   *)
22697     case $LD in # libtool.m4 will add one of these switches to LD
22698     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22699       libsuff= shlibsuff= libmagic=32-bit;;
22700     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22701       libsuff=32 shlibsuff=N32 libmagic=N32;;
22702     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22703       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22704     *) libsuff= shlibsuff= libmagic=never-match;;
22705     esac
22706     ;;
22707   esac
22708   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22709   shlibpath_overrides_runpath=no
22710   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22711   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22712   hardcode_into_libs=yes
22713   ;;
22714
22715 # No shared lib support for Linux oldld, aout, or coff.
22716 linux*oldld* | linux*aout* | linux*coff*)
22717   dynamic_linker=no
22718   ;;
22719
22720 # This must be Linux ELF.
22721 linux*)
22722   version_type=linux
22723   need_lib_prefix=no
22724   need_version=no
22725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22726   soname_spec='${libname}${release}${shared_ext}$major'
22727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22728   shlibpath_var=LD_LIBRARY_PATH
22729   shlibpath_overrides_runpath=no
22730   # This implies no fast_install, which is unacceptable.
22731   # Some rework will be needed to allow for fast_install
22732   # before this can be enabled.
22733   hardcode_into_libs=yes
22734
22735   # Append ld.so.conf contents to the search path
22736   if test -f /etc/ld.so.conf; then
22737     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' ' '`
22738     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22739   fi
22740
22741   # We used to test for /lib/ld.so.1 and disable shared libraries on
22742   # powerpc, because MkLinux only supported shared libraries with the
22743   # GNU dynamic linker.  Since this was broken with cross compilers,
22744   # most powerpc-linux boxes support dynamic linking these days and
22745   # people can always --disable-shared, the test was removed, and we
22746   # assume the GNU/Linux dynamic linker is in use.
22747   dynamic_linker='GNU/Linux ld.so'
22748   ;;
22749
22750 knetbsd*-gnu)
22751   version_type=linux
22752   need_lib_prefix=no
22753   need_version=no
22754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22755   soname_spec='${libname}${release}${shared_ext}$major'
22756   shlibpath_var=LD_LIBRARY_PATH
22757   shlibpath_overrides_runpath=no
22758   hardcode_into_libs=yes
22759   dynamic_linker='GNU ld.so'
22760   ;;
22761
22762 netbsd*)
22763   version_type=sunos
22764   need_lib_prefix=no
22765   need_version=no
22766   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22768     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22769     dynamic_linker='NetBSD (a.out) ld.so'
22770   else
22771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22772     soname_spec='${libname}${release}${shared_ext}$major'
22773     dynamic_linker='NetBSD ld.elf_so'
22774   fi
22775   shlibpath_var=LD_LIBRARY_PATH
22776   shlibpath_overrides_runpath=yes
22777   hardcode_into_libs=yes
22778   ;;
22779
22780 newsos6)
22781   version_type=linux
22782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783   shlibpath_var=LD_LIBRARY_PATH
22784   shlibpath_overrides_runpath=yes
22785   ;;
22786
22787 nto-qnx*)
22788   version_type=linux
22789   need_lib_prefix=no
22790   need_version=no
22791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792   soname_spec='${libname}${release}${shared_ext}$major'
22793   shlibpath_var=LD_LIBRARY_PATH
22794   shlibpath_overrides_runpath=yes
22795   ;;
22796
22797 openbsd*)
22798   version_type=sunos
22799   sys_lib_dlsearch_path_spec="/usr/lib"
22800   need_lib_prefix=no
22801   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22802   case $host_os in
22803     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22804     *)                         need_version=no  ;;
22805   esac
22806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22808   shlibpath_var=LD_LIBRARY_PATH
22809   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22810     case $host_os in
22811       openbsd2.[89] | openbsd2.[89].*)
22812         shlibpath_overrides_runpath=no
22813         ;;
22814       *)
22815         shlibpath_overrides_runpath=yes
22816         ;;
22817       esac
22818   else
22819     shlibpath_overrides_runpath=yes
22820   fi
22821   ;;
22822
22823 os2*)
22824   libname_spec='$name'
22825   shrext_cmds=".dll"
22826   need_lib_prefix=no
22827   library_names_spec='$libname${shared_ext} $libname.a'
22828   dynamic_linker='OS/2 ld.exe'
22829   shlibpath_var=LIBPATH
22830   ;;
22831
22832 osf3* | osf4* | osf5*)
22833   version_type=osf
22834   need_lib_prefix=no
22835   need_version=no
22836   soname_spec='${libname}${release}${shared_ext}$major'
22837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838   shlibpath_var=LD_LIBRARY_PATH
22839   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22840   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22841   ;;
22842
22843 solaris*)
22844   version_type=linux
22845   need_lib_prefix=no
22846   need_version=no
22847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22848   soname_spec='${libname}${release}${shared_ext}$major'
22849   shlibpath_var=LD_LIBRARY_PATH
22850   shlibpath_overrides_runpath=yes
22851   hardcode_into_libs=yes
22852   # ldd complains unless libraries are executable
22853   postinstall_cmds='chmod +x $lib'
22854   ;;
22855
22856 sunos4*)
22857   version_type=sunos
22858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22859   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22860   shlibpath_var=LD_LIBRARY_PATH
22861   shlibpath_overrides_runpath=yes
22862   if test "$with_gnu_ld" = yes; then
22863     need_lib_prefix=no
22864   fi
22865   need_version=yes
22866   ;;
22867
22868 sysv4 | sysv4.3*)
22869   version_type=linux
22870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22871   soname_spec='${libname}${release}${shared_ext}$major'
22872   shlibpath_var=LD_LIBRARY_PATH
22873   case $host_vendor in
22874     sni)
22875       shlibpath_overrides_runpath=no
22876       need_lib_prefix=no
22877       export_dynamic_flag_spec='${wl}-Blargedynsym'
22878       runpath_var=LD_RUN_PATH
22879       ;;
22880     siemens)
22881       need_lib_prefix=no
22882       ;;
22883     motorola)
22884       need_lib_prefix=no
22885       need_version=no
22886       shlibpath_overrides_runpath=no
22887       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22888       ;;
22889   esac
22890   ;;
22891
22892 sysv4*MP*)
22893   if test -d /usr/nec ;then
22894     version_type=linux
22895     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22896     soname_spec='$libname${shared_ext}.$major'
22897     shlibpath_var=LD_LIBRARY_PATH
22898   fi
22899   ;;
22900
22901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22902   version_type=freebsd-elf
22903   need_lib_prefix=no
22904   need_version=no
22905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22906   soname_spec='${libname}${release}${shared_ext}$major'
22907   shlibpath_var=LD_LIBRARY_PATH
22908   hardcode_into_libs=yes
22909   if test "$with_gnu_ld" = yes; then
22910     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22911     shlibpath_overrides_runpath=no
22912   else
22913     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22914     shlibpath_overrides_runpath=yes
22915     case $host_os in
22916       sco3.2v5*)
22917         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22918         ;;
22919     esac
22920   fi
22921   sys_lib_dlsearch_path_spec='/usr/lib'
22922   ;;
22923
22924 uts4*)
22925   version_type=linux
22926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927   soname_spec='${libname}${release}${shared_ext}$major'
22928   shlibpath_var=LD_LIBRARY_PATH
22929   ;;
22930
22931 *)
22932   dynamic_linker=no
22933   ;;
22934 esac
22935 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22936 echo "${ECHO_T}$dynamic_linker" >&6; }
22937 test "$dynamic_linker" = no && can_build_shared=no
22938
22939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22940 if test "$GCC" = yes; then
22941   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22942 fi
22943
22944 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22946 hardcode_action_F77=
22947 if test -n "$hardcode_libdir_flag_spec_F77" || \
22948    test -n "$runpath_var_F77" || \
22949    test "X$hardcode_automatic_F77" = "Xyes" ; then
22950
22951   # We can hardcode non-existant directories.
22952   if test "$hardcode_direct_F77" != no &&
22953      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22954      # have to relink, otherwise we might link with an installed library
22955      # when we should be linking with a yet-to-be-installed one
22956      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22957      test "$hardcode_minus_L_F77" != no; then
22958     # Linking always hardcodes the temporary library directory.
22959     hardcode_action_F77=relink
22960   else
22961     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22962     hardcode_action_F77=immediate
22963   fi
22964 else
22965   # We cannot hardcode anything, or else we can only hardcode existing
22966   # directories.
22967   hardcode_action_F77=unsupported
22968 fi
22969 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22970 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22971
22972 if test "$hardcode_action_F77" = relink; then
22973   # Fast installation is not supported
22974   enable_fast_install=no
22975 elif test "$shlibpath_overrides_runpath" = yes ||
22976      test "$enable_shared" = no; then
22977   # Fast installation is not necessary
22978   enable_fast_install=needless
22979 fi
22980
22981
22982 # The else clause should only fire when bootstrapping the
22983 # libtool distribution, otherwise you forgot to ship ltmain.sh
22984 # with your package, and you will get complaints that there are
22985 # no rules to generate ltmain.sh.
22986 if test -f "$ltmain"; then
22987   # See if we are running on zsh, and set the options which allow our commands through
22988   # without removal of \ escapes.
22989   if test -n "${ZSH_VERSION+set}" ; then
22990     setopt NO_GLOB_SUBST
22991   fi
22992   # Now quote all the things that may contain metacharacters while being
22993   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22994   # variables and quote the copies for generation of the libtool script.
22995   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22996     SED SHELL STRIP \
22997     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22998     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22999     deplibs_check_method reload_flag reload_cmds need_locks \
23000     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23001     lt_cv_sys_global_symbol_to_c_name_address \
23002     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23003     old_postinstall_cmds old_postuninstall_cmds \
23004     compiler_F77 \
23005     CC_F77 \
23006     LD_F77 \
23007     lt_prog_compiler_wl_F77 \
23008     lt_prog_compiler_pic_F77 \
23009     lt_prog_compiler_static_F77 \
23010     lt_prog_compiler_no_builtin_flag_F77 \
23011     export_dynamic_flag_spec_F77 \
23012     thread_safe_flag_spec_F77 \
23013     whole_archive_flag_spec_F77 \
23014     enable_shared_with_static_runtimes_F77 \
23015     old_archive_cmds_F77 \
23016     old_archive_from_new_cmds_F77 \
23017     predep_objects_F77 \
23018     postdep_objects_F77 \
23019     predeps_F77 \
23020     postdeps_F77 \
23021     compiler_lib_search_path_F77 \
23022     archive_cmds_F77 \
23023     archive_expsym_cmds_F77 \
23024     postinstall_cmds_F77 \
23025     postuninstall_cmds_F77 \
23026     old_archive_from_expsyms_cmds_F77 \
23027     allow_undefined_flag_F77 \
23028     no_undefined_flag_F77 \
23029     export_symbols_cmds_F77 \
23030     hardcode_libdir_flag_spec_F77 \
23031     hardcode_libdir_flag_spec_ld_F77 \
23032     hardcode_libdir_separator_F77 \
23033     hardcode_automatic_F77 \
23034     module_cmds_F77 \
23035     module_expsym_cmds_F77 \
23036     lt_cv_prog_compiler_c_o_F77 \
23037     exclude_expsyms_F77 \
23038     include_expsyms_F77; do
23039
23040     case $var in
23041     old_archive_cmds_F77 | \
23042     old_archive_from_new_cmds_F77 | \
23043     archive_cmds_F77 | \
23044     archive_expsym_cmds_F77 | \
23045     module_cmds_F77 | \
23046     module_expsym_cmds_F77 | \
23047     old_archive_from_expsyms_cmds_F77 | \
23048     export_symbols_cmds_F77 | \
23049     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23050     postinstall_cmds | postuninstall_cmds | \
23051     old_postinstall_cmds | old_postuninstall_cmds | \
23052     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23053       # Double-quote double-evaled strings.
23054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23055       ;;
23056     *)
23057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23058       ;;
23059     esac
23060   done
23061
23062   case $lt_echo in
23063   *'\$0 --fallback-echo"')
23064     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23065     ;;
23066   esac
23067
23068 cfgfile="$ofile"
23069
23070   cat <<__EOF__ >> "$cfgfile"
23071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23072
23073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23074
23075 # Shell to use when invoking shell scripts.
23076 SHELL=$lt_SHELL
23077
23078 # Whether or not to build shared libraries.
23079 build_libtool_libs=$enable_shared
23080
23081 # Whether or not to build static libraries.
23082 build_old_libs=$enable_static
23083
23084 # Whether or not to add -lc for building shared libraries.
23085 build_libtool_need_lc=$archive_cmds_need_lc_F77
23086
23087 # Whether or not to disallow shared libs when runtime libs are static
23088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23089
23090 # Whether or not to optimize for fast installation.
23091 fast_install=$enable_fast_install
23092
23093 # The host system.
23094 host_alias=$host_alias
23095 host=$host
23096 host_os=$host_os
23097
23098 # The build system.
23099 build_alias=$build_alias
23100 build=$build
23101 build_os=$build_os
23102
23103 # An echo program that does not interpret backslashes.
23104 echo=$lt_echo
23105
23106 # The archiver.
23107 AR=$lt_AR
23108 AR_FLAGS=$lt_AR_FLAGS
23109
23110 # A C compiler.
23111 LTCC=$lt_LTCC
23112
23113 # LTCC compiler flags.
23114 LTCFLAGS=$lt_LTCFLAGS
23115
23116 # A language-specific compiler.
23117 CC=$lt_compiler_F77
23118
23119 # Is the compiler the GNU C compiler?
23120 with_gcc=$GCC_F77
23121
23122 # An ERE matcher.
23123 EGREP=$lt_EGREP
23124
23125 # The linker used to build libraries.
23126 LD=$lt_LD_F77
23127
23128 # Whether we need hard or soft links.
23129 LN_S=$lt_LN_S
23130
23131 # A BSD-compatible nm program.
23132 NM=$lt_NM
23133
23134 # A symbol stripping program
23135 STRIP=$lt_STRIP
23136
23137 # Used to examine libraries when file_magic_cmd begins "file"
23138 MAGIC_CMD=$MAGIC_CMD
23139
23140 # Used on cygwin: DLL creation program.
23141 DLLTOOL="$DLLTOOL"
23142
23143 # Used on cygwin: object dumper.
23144 OBJDUMP="$OBJDUMP"
23145
23146 # Used on cygwin: assembler.
23147 AS="$AS"
23148
23149 # The name of the directory that contains temporary libtool files.
23150 objdir=$objdir
23151
23152 # How to create reloadable object files.
23153 reload_flag=$lt_reload_flag
23154 reload_cmds=$lt_reload_cmds
23155
23156 # How to pass a linker flag through the compiler.
23157 wl=$lt_lt_prog_compiler_wl_F77
23158
23159 # Object file suffix (normally "o").
23160 objext="$ac_objext"
23161
23162 # Old archive suffix (normally "a").
23163 libext="$libext"
23164
23165 # Shared library suffix (normally ".so").
23166 shrext_cmds='$shrext_cmds'
23167
23168 # Executable file suffix (normally "").
23169 exeext="$exeext"
23170
23171 # Additional compiler flags for building library objects.
23172 pic_flag=$lt_lt_prog_compiler_pic_F77
23173 pic_mode=$pic_mode
23174
23175 # What is the maximum length of a command?
23176 max_cmd_len=$lt_cv_sys_max_cmd_len
23177
23178 # Does compiler simultaneously support -c and -o options?
23179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23180
23181 # Must we lock files when doing compilation?
23182 need_locks=$lt_need_locks
23183
23184 # Do we need the lib prefix for modules?
23185 need_lib_prefix=$need_lib_prefix
23186
23187 # Do we need a version for libraries?
23188 need_version=$need_version
23189
23190 # Whether dlopen is supported.
23191 dlopen_support=$enable_dlopen
23192
23193 # Whether dlopen of programs is supported.
23194 dlopen_self=$enable_dlopen_self
23195
23196 # Whether dlopen of statically linked programs is supported.
23197 dlopen_self_static=$enable_dlopen_self_static
23198
23199 # Compiler flag to prevent dynamic linking.
23200 link_static_flag=$lt_lt_prog_compiler_static_F77
23201
23202 # Compiler flag to turn off builtin functions.
23203 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23204
23205 # Compiler flag to allow reflexive dlopens.
23206 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23207
23208 # Compiler flag to generate shared objects directly from archives.
23209 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23210
23211 # Compiler flag to generate thread-safe objects.
23212 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23213
23214 # Library versioning type.
23215 version_type=$version_type
23216
23217 # Format of library name prefix.
23218 libname_spec=$lt_libname_spec
23219
23220 # List of archive names.  First name is the real one, the rest are links.
23221 # The last name is the one that the linker finds with -lNAME.
23222 library_names_spec=$lt_library_names_spec
23223
23224 # The coded name of the library, if different from the real name.
23225 soname_spec=$lt_soname_spec
23226
23227 # Commands used to build and install an old-style archive.
23228 RANLIB=$lt_RANLIB
23229 old_archive_cmds=$lt_old_archive_cmds_F77
23230 old_postinstall_cmds=$lt_old_postinstall_cmds
23231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23232
23233 # Create an old-style archive from a shared archive.
23234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23235
23236 # Create a temporary old-style archive to link instead of a shared archive.
23237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23238
23239 # Commands used to build and install a shared archive.
23240 archive_cmds=$lt_archive_cmds_F77
23241 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23242 postinstall_cmds=$lt_postinstall_cmds
23243 postuninstall_cmds=$lt_postuninstall_cmds
23244
23245 # Commands used to build a loadable module (assumed same as above if empty)
23246 module_cmds=$lt_module_cmds_F77
23247 module_expsym_cmds=$lt_module_expsym_cmds_F77
23248
23249 # Commands to strip libraries.
23250 old_striplib=$lt_old_striplib
23251 striplib=$lt_striplib
23252
23253 # Dependencies to place before the objects being linked to create a
23254 # shared library.
23255 predep_objects=$lt_predep_objects_F77
23256
23257 # Dependencies to place after the objects being linked to create a
23258 # shared library.
23259 postdep_objects=$lt_postdep_objects_F77
23260
23261 # Dependencies to place before the objects being linked to create a
23262 # shared library.
23263 predeps=$lt_predeps_F77
23264
23265 # Dependencies to place after the objects being linked to create a
23266 # shared library.
23267 postdeps=$lt_postdeps_F77
23268
23269 # The library search path used internally by the compiler when linking
23270 # a shared library.
23271 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23272
23273 # Method to check whether dependent libraries are shared objects.
23274 deplibs_check_method=$lt_deplibs_check_method
23275
23276 # Command to use when deplibs_check_method == file_magic.
23277 file_magic_cmd=$lt_file_magic_cmd
23278
23279 # Flag that allows shared libraries with undefined symbols to be built.
23280 allow_undefined_flag=$lt_allow_undefined_flag_F77
23281
23282 # Flag that forces no undefined symbols.
23283 no_undefined_flag=$lt_no_undefined_flag_F77
23284
23285 # Commands used to finish a libtool library installation in a directory.
23286 finish_cmds=$lt_finish_cmds
23287
23288 # Same as above, but a single script fragment to be evaled but not shown.
23289 finish_eval=$lt_finish_eval
23290
23291 # Take the output of nm and produce a listing of raw symbols and C names.
23292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23293
23294 # Transform the output of nm in a proper C declaration
23295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23296
23297 # Transform the output of nm in a C name address pair
23298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23299
23300 # This is the shared library runtime path variable.
23301 runpath_var=$runpath_var
23302
23303 # This is the shared library path variable.
23304 shlibpath_var=$shlibpath_var
23305
23306 # Is shlibpath searched before the hard-coded library search path?
23307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23308
23309 # How to hardcode a shared library path into an executable.
23310 hardcode_action=$hardcode_action_F77
23311
23312 # Whether we should hardcode library paths into libraries.
23313 hardcode_into_libs=$hardcode_into_libs
23314
23315 # Flag to hardcode \$libdir into a binary during linking.
23316 # This must work even if \$libdir does not exist.
23317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23318
23319 # If ld is used when linking, flag to hardcode \$libdir into
23320 # a binary during linking. This must work even if \$libdir does
23321 # not exist.
23322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23323
23324 # Whether we need a single -rpath flag with a separated argument.
23325 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23326
23327 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23328 # resulting binary.
23329 hardcode_direct=$hardcode_direct_F77
23330
23331 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23332 # resulting binary.
23333 hardcode_minus_L=$hardcode_minus_L_F77
23334
23335 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23336 # the resulting binary.
23337 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23338
23339 # Set to yes if building a shared library automatically hardcodes DIR into the library
23340 # and all subsequent libraries and executables linked against it.
23341 hardcode_automatic=$hardcode_automatic_F77
23342
23343 # Variables whose values should be saved in libtool wrapper scripts and
23344 # restored at relink time.
23345 variables_saved_for_relink="$variables_saved_for_relink"
23346
23347 # Whether libtool must link a program against all its dependency libraries.
23348 link_all_deplibs=$link_all_deplibs_F77
23349
23350 # Compile-time system search path for libraries
23351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23352
23353 # Run-time system search path for libraries
23354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23355
23356 # Fix the shell variable \$srcfile for the compiler.
23357 fix_srcfile_path="$fix_srcfile_path_F77"
23358
23359 # Set to yes if exported symbols are required.
23360 always_export_symbols=$always_export_symbols_F77
23361
23362 # The commands to list exported symbols.
23363 export_symbols_cmds=$lt_export_symbols_cmds_F77
23364
23365 # The commands to extract the exported symbol list from a shared archive.
23366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23367
23368 # Symbols that should not be listed in the preloaded symbols.
23369 exclude_expsyms=$lt_exclude_expsyms_F77
23370
23371 # Symbols that must always be exported.
23372 include_expsyms=$lt_include_expsyms_F77
23373
23374 # ### END LIBTOOL TAG CONFIG: $tagname
23375
23376 __EOF__
23377
23378
23379 else
23380   # If there is no Makefile yet, we rely on a make rule to execute
23381   # `config.status --recheck' to rerun these tests and create the
23382   # libtool script then.
23383   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23384   if test -f "$ltmain_in"; then
23385     test -f Makefile && make "$ltmain"
23386   fi
23387 fi
23388
23389
23390 ac_ext=c
23391 ac_cpp='$CPP $CPPFLAGS'
23392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23395
23396 CC="$lt_save_CC"
23397
23398         else
23399           tagname=""
23400         fi
23401         ;;
23402
23403       GCJ)
23404         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23405           ac_ext=c
23406 ac_cpp='$CPP $CPPFLAGS'
23407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23410
23411
23412 # Source file extension for Java test sources.
23413 ac_ext=java
23414
23415 # Object file extension for compiled Java test sources.
23416 objext=o
23417 objext_GCJ=$objext
23418
23419 # Code to be used in simple compile tests
23420 lt_simple_compile_test_code="class foo {}\n"
23421
23422 # Code to be used in simple link tests
23423 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23424
23425 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23426
23427 # If no C compiler was specified, use CC.
23428 LTCC=${LTCC-"$CC"}
23429
23430 # If no C compiler flags were specified, use CFLAGS.
23431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23432
23433 # Allow CC to be a program name with arguments.
23434 compiler=$CC
23435
23436
23437 # save warnings/boilerplate of simple test code
23438 ac_outfile=conftest.$ac_objext
23439 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23440 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23441 _lt_compiler_boilerplate=`cat conftest.err`
23442 $rm conftest*
23443
23444 ac_outfile=conftest.$ac_objext
23445 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23446 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23447 _lt_linker_boilerplate=`cat conftest.err`
23448 $rm conftest*
23449
23450
23451 # Allow CC to be a program name with arguments.
23452 lt_save_CC="$CC"
23453 CC=${GCJ-"gcj"}
23454 compiler=$CC
23455 compiler_GCJ=$CC
23456 for cc_temp in $compiler""; do
23457   case $cc_temp in
23458     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23459     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23460     \-*) ;;
23461     *) break;;
23462   esac
23463 done
23464 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23465
23466
23467 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23468 archive_cmds_need_lc_GCJ=no
23469
23470 old_archive_cmds_GCJ=$old_archive_cmds
23471
23472
23473 lt_prog_compiler_no_builtin_flag_GCJ=
23474
23475 if test "$GCC" = yes; then
23476   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23477
23478
23479 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23480 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23481 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484   lt_cv_prog_compiler_rtti_exceptions=no
23485   ac_outfile=conftest.$ac_objext
23486    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23487    lt_compiler_flag="-fno-rtti -fno-exceptions"
23488    # Insert the option either (1) after the last *FLAGS variable, or
23489    # (2) before a word containing "conftest.", or (3) at the end.
23490    # Note that $ac_compile itself does not contain backslashes and begins
23491    # with a dollar sign (not a hyphen), so the echo should work correctly.
23492    # The option is referenced via a variable to avoid confusing sed.
23493    lt_compile=`echo "$ac_compile" | $SED \
23494    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23496    -e 's:$: $lt_compiler_flag:'`
23497    (eval echo "\"\$as_me:23497: $lt_compile\"" >&5)
23498    (eval "$lt_compile" 2>conftest.err)
23499    ac_status=$?
23500    cat conftest.err >&5
23501    echo "$as_me:23501: \$? = $ac_status" >&5
23502    if (exit $ac_status) && test -s "$ac_outfile"; then
23503      # The compiler can only warn and ignore the option if not recognized
23504      # So say no if there are warnings other than the usual output.
23505      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23506      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23507      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23508        lt_cv_prog_compiler_rtti_exceptions=yes
23509      fi
23510    fi
23511    $rm conftest*
23512
23513 fi
23514 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23515 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23516
23517 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23518     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23519 else
23520     :
23521 fi
23522
23523 fi
23524
23525 lt_prog_compiler_wl_GCJ=
23526 lt_prog_compiler_pic_GCJ=
23527 lt_prog_compiler_static_GCJ=
23528
23529 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23531
23532   if test "$GCC" = yes; then
23533     lt_prog_compiler_wl_GCJ='-Wl,'
23534     lt_prog_compiler_static_GCJ='-static'
23535
23536     case $host_os in
23537       aix*)
23538       # All AIX code is PIC.
23539       if test "$host_cpu" = ia64; then
23540         # AIX 5 now supports IA64 processor
23541         lt_prog_compiler_static_GCJ='-Bstatic'
23542       fi
23543       ;;
23544
23545     amigaos*)
23546       # FIXME: we need at least 68020 code to build shared libraries, but
23547       # adding the `-m68020' flag to GCC prevents building anything better,
23548       # like `-m68040'.
23549       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23550       ;;
23551
23552     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23553       # PIC is the default for these OSes.
23554       ;;
23555
23556     mingw* | pw32* | os2*)
23557       # This hack is so that the source file can tell whether it is being
23558       # built for inclusion in a dll (and should export symbols for example).
23559       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23560       ;;
23561
23562     darwin* | rhapsody*)
23563       # PIC is the default on this platform
23564       # Common symbols not allowed in MH_DYLIB files
23565       lt_prog_compiler_pic_GCJ='-fno-common'
23566       ;;
23567
23568     interix3*)
23569       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23570       # Instead, we relocate shared libraries at runtime.
23571       ;;
23572
23573     msdosdjgpp*)
23574       # Just because we use GCC doesn't mean we suddenly get shared libraries
23575       # on systems that don't support them.
23576       lt_prog_compiler_can_build_shared_GCJ=no
23577       enable_shared=no
23578       ;;
23579
23580     sysv4*MP*)
23581       if test -d /usr/nec; then
23582         lt_prog_compiler_pic_GCJ=-Kconform_pic
23583       fi
23584       ;;
23585
23586     hpux*)
23587       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23588       # not for PA HP-UX.
23589       case $host_cpu in
23590       hppa*64*|ia64*)
23591         # +Z the default
23592         ;;
23593       *)
23594         lt_prog_compiler_pic_GCJ='-fPIC'
23595         ;;
23596       esac
23597       ;;
23598
23599     *)
23600       lt_prog_compiler_pic_GCJ='-fPIC'
23601       ;;
23602     esac
23603   else
23604     # PORTME Check for flag to pass linker flags through the system compiler.
23605     case $host_os in
23606     aix*)
23607       lt_prog_compiler_wl_GCJ='-Wl,'
23608       if test "$host_cpu" = ia64; then
23609         # AIX 5 now supports IA64 processor
23610         lt_prog_compiler_static_GCJ='-Bstatic'
23611       else
23612         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23613       fi
23614       ;;
23615       darwin*)
23616         # PIC is the default on this platform
23617         # Common symbols not allowed in MH_DYLIB files
23618        case $cc_basename in
23619          xlc*)
23620          lt_prog_compiler_pic_GCJ='-qnocommon'
23621          lt_prog_compiler_wl_GCJ='-Wl,'
23622          ;;
23623        esac
23624        ;;
23625
23626     mingw* | pw32* | os2*)
23627       # This hack is so that the source file can tell whether it is being
23628       # built for inclusion in a dll (and should export symbols for example).
23629       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23630       ;;
23631
23632     hpux9* | hpux10* | hpux11*)
23633       lt_prog_compiler_wl_GCJ='-Wl,'
23634       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23635       # not for PA HP-UX.
23636       case $host_cpu in
23637       hppa*64*|ia64*)
23638         # +Z the default
23639         ;;
23640       *)
23641         lt_prog_compiler_pic_GCJ='+Z'
23642         ;;
23643       esac
23644       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23645       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23646       ;;
23647
23648     irix5* | irix6* | nonstopux*)
23649       lt_prog_compiler_wl_GCJ='-Wl,'
23650       # PIC (with -KPIC) is the default.
23651       lt_prog_compiler_static_GCJ='-non_shared'
23652       ;;
23653
23654     newsos6)
23655       lt_prog_compiler_pic_GCJ='-KPIC'
23656       lt_prog_compiler_static_GCJ='-Bstatic'
23657       ;;
23658
23659     linux*)
23660       case $cc_basename in
23661       icc* | ecc*)
23662         lt_prog_compiler_wl_GCJ='-Wl,'
23663         lt_prog_compiler_pic_GCJ='-KPIC'
23664         lt_prog_compiler_static_GCJ='-static'
23665         ;;
23666       pgcc* | pgf77* | pgf90* | pgf95*)
23667         # Portland Group compilers (*not* the Pentium gcc compiler,
23668         # which looks to be a dead project)
23669         lt_prog_compiler_wl_GCJ='-Wl,'
23670         lt_prog_compiler_pic_GCJ='-fpic'
23671         lt_prog_compiler_static_GCJ='-Bstatic'
23672         ;;
23673       ccc*)
23674         lt_prog_compiler_wl_GCJ='-Wl,'
23675         # All Alpha code is PIC.
23676         lt_prog_compiler_static_GCJ='-non_shared'
23677         ;;
23678       esac
23679       ;;
23680
23681     osf3* | osf4* | osf5*)
23682       lt_prog_compiler_wl_GCJ='-Wl,'
23683       # All OSF/1 code is PIC.
23684       lt_prog_compiler_static_GCJ='-non_shared'
23685       ;;
23686
23687     solaris*)
23688       lt_prog_compiler_pic_GCJ='-KPIC'
23689       lt_prog_compiler_static_GCJ='-Bstatic'
23690       case $cc_basename in
23691       f77* | f90* | f95*)
23692         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23693       *)
23694         lt_prog_compiler_wl_GCJ='-Wl,';;
23695       esac
23696       ;;
23697
23698     sunos4*)
23699       lt_prog_compiler_wl_GCJ='-Qoption ld '
23700       lt_prog_compiler_pic_GCJ='-PIC'
23701       lt_prog_compiler_static_GCJ='-Bstatic'
23702       ;;
23703
23704     sysv4 | sysv4.2uw2* | sysv4.3*)
23705       lt_prog_compiler_wl_GCJ='-Wl,'
23706       lt_prog_compiler_pic_GCJ='-KPIC'
23707       lt_prog_compiler_static_GCJ='-Bstatic'
23708       ;;
23709
23710     sysv4*MP*)
23711       if test -d /usr/nec ;then
23712         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23713         lt_prog_compiler_static_GCJ='-Bstatic'
23714       fi
23715       ;;
23716
23717     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23718       lt_prog_compiler_wl_GCJ='-Wl,'
23719       lt_prog_compiler_pic_GCJ='-KPIC'
23720       lt_prog_compiler_static_GCJ='-Bstatic'
23721       ;;
23722
23723     unicos*)
23724       lt_prog_compiler_wl_GCJ='-Wl,'
23725       lt_prog_compiler_can_build_shared_GCJ=no
23726       ;;
23727
23728     uts4*)
23729       lt_prog_compiler_pic_GCJ='-pic'
23730       lt_prog_compiler_static_GCJ='-Bstatic'
23731       ;;
23732
23733     *)
23734       lt_prog_compiler_can_build_shared_GCJ=no
23735       ;;
23736     esac
23737   fi
23738
23739 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23740 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23741
23742 #
23743 # Check to make sure the PIC flag actually works.
23744 #
23745 if test -n "$lt_prog_compiler_pic_GCJ"; then
23746
23747 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23748 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23749 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23750   echo $ECHO_N "(cached) $ECHO_C" >&6
23751 else
23752   lt_prog_compiler_pic_works_GCJ=no
23753   ac_outfile=conftest.$ac_objext
23754    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23755    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23756    # Insert the option either (1) after the last *FLAGS variable, or
23757    # (2) before a word containing "conftest.", or (3) at the end.
23758    # Note that $ac_compile itself does not contain backslashes and begins
23759    # with a dollar sign (not a hyphen), so the echo should work correctly.
23760    # The option is referenced via a variable to avoid confusing sed.
23761    lt_compile=`echo "$ac_compile" | $SED \
23762    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23763    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23764    -e 's:$: $lt_compiler_flag:'`
23765    (eval echo "\"\$as_me:23765: $lt_compile\"" >&5)
23766    (eval "$lt_compile" 2>conftest.err)
23767    ac_status=$?
23768    cat conftest.err >&5
23769    echo "$as_me:23769: \$? = $ac_status" >&5
23770    if (exit $ac_status) && test -s "$ac_outfile"; then
23771      # The compiler can only warn and ignore the option if not recognized
23772      # So say no if there are warnings other than the usual output.
23773      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23774      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23775      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23776        lt_prog_compiler_pic_works_GCJ=yes
23777      fi
23778    fi
23779    $rm conftest*
23780
23781 fi
23782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23783 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23784
23785 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23786     case $lt_prog_compiler_pic_GCJ in
23787      "" | " "*) ;;
23788      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23789      esac
23790 else
23791     lt_prog_compiler_pic_GCJ=
23792      lt_prog_compiler_can_build_shared_GCJ=no
23793 fi
23794
23795 fi
23796 case $host_os in
23797   # For platforms which do not support PIC, -DPIC is meaningless:
23798   *djgpp*)
23799     lt_prog_compiler_pic_GCJ=
23800     ;;
23801   *)
23802     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23803     ;;
23804 esac
23805
23806 #
23807 # Check to make sure the static flag actually works.
23808 #
23809 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23810 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23811 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23812 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23813   echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815   lt_prog_compiler_static_works_GCJ=no
23816    save_LDFLAGS="$LDFLAGS"
23817    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23818    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23819    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23820      # The linker can only warn and ignore the option if not recognized
23821      # So say no if there are warnings
23822      if test -s conftest.err; then
23823        # Append any errors to the config.log.
23824        cat conftest.err 1>&5
23825        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23826        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23827        if diff conftest.exp conftest.er2 >/dev/null; then
23828          lt_prog_compiler_static_works_GCJ=yes
23829        fi
23830      else
23831        lt_prog_compiler_static_works_GCJ=yes
23832      fi
23833    fi
23834    $rm conftest*
23835    LDFLAGS="$save_LDFLAGS"
23836
23837 fi
23838 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23839 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23840
23841 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23842     :
23843 else
23844     lt_prog_compiler_static_GCJ=
23845 fi
23846
23847
23848 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23850 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23851   echo $ECHO_N "(cached) $ECHO_C" >&6
23852 else
23853   lt_cv_prog_compiler_c_o_GCJ=no
23854    $rm -r conftest 2>/dev/null
23855    mkdir conftest
23856    cd conftest
23857    mkdir out
23858    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23859
23860    lt_compiler_flag="-o out/conftest2.$ac_objext"
23861    # Insert the option either (1) after the last *FLAGS variable, or
23862    # (2) before a word containing "conftest.", or (3) at the end.
23863    # Note that $ac_compile itself does not contain backslashes and begins
23864    # with a dollar sign (not a hyphen), so the echo should work correctly.
23865    lt_compile=`echo "$ac_compile" | $SED \
23866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23868    -e 's:$: $lt_compiler_flag:'`
23869    (eval echo "\"\$as_me:23869: $lt_compile\"" >&5)
23870    (eval "$lt_compile" 2>out/conftest.err)
23871    ac_status=$?
23872    cat out/conftest.err >&5
23873    echo "$as_me:23873: \$? = $ac_status" >&5
23874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23875    then
23876      # The compiler can only warn and ignore the option if not recognized
23877      # So say no if there are warnings
23878      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23879      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23880      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23881        lt_cv_prog_compiler_c_o_GCJ=yes
23882      fi
23883    fi
23884    chmod u+w . 2>&5
23885    $rm conftest*
23886    # SGI C++ compiler will create directory out/ii_files/ for
23887    # template instantiation
23888    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23889    $rm out/* && rmdir out
23890    cd ..
23891    rmdir conftest
23892    $rm conftest*
23893
23894 fi
23895 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23896 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23897
23898
23899 hard_links="nottested"
23900 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23901   # do not overwrite the value of need_locks provided by the user
23902   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23903 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23904   hard_links=yes
23905   $rm conftest*
23906   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23907   touch conftest.a
23908   ln conftest.a conftest.b 2>&5 || hard_links=no
23909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23910   { echo "$as_me:$LINENO: result: $hard_links" >&5
23911 echo "${ECHO_T}$hard_links" >&6; }
23912   if test "$hard_links" = no; then
23913     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23914 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23915     need_locks=warn
23916   fi
23917 else
23918   need_locks=no
23919 fi
23920
23921 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23922 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23923
23924   runpath_var=
23925   allow_undefined_flag_GCJ=
23926   enable_shared_with_static_runtimes_GCJ=no
23927   archive_cmds_GCJ=
23928   archive_expsym_cmds_GCJ=
23929   old_archive_From_new_cmds_GCJ=
23930   old_archive_from_expsyms_cmds_GCJ=
23931   export_dynamic_flag_spec_GCJ=
23932   whole_archive_flag_spec_GCJ=
23933   thread_safe_flag_spec_GCJ=
23934   hardcode_libdir_flag_spec_GCJ=
23935   hardcode_libdir_flag_spec_ld_GCJ=
23936   hardcode_libdir_separator_GCJ=
23937   hardcode_direct_GCJ=no
23938   hardcode_minus_L_GCJ=no
23939   hardcode_shlibpath_var_GCJ=unsupported
23940   link_all_deplibs_GCJ=unknown
23941   hardcode_automatic_GCJ=no
23942   module_cmds_GCJ=
23943   module_expsym_cmds_GCJ=
23944   always_export_symbols_GCJ=no
23945   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23946   # include_expsyms should be a list of space-separated symbols to be *always*
23947   # included in the symbol list
23948   include_expsyms_GCJ=
23949   # exclude_expsyms can be an extended regexp of symbols to exclude
23950   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23951   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23952   # as well as any symbol that contains `d'.
23953   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23954   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23955   # platforms (ab)use it in PIC code, but their linkers get confused if
23956   # the symbol is explicitly referenced.  Since portable code cannot
23957   # rely on this symbol name, it's probably fine to never include it in
23958   # preloaded symbol tables.
23959   extract_expsyms_cmds=
23960   # Just being paranoid about ensuring that cc_basename is set.
23961   for cc_temp in $compiler""; do
23962   case $cc_temp in
23963     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23964     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23965     \-*) ;;
23966     *) break;;
23967   esac
23968 done
23969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23970
23971   case $host_os in
23972   cygwin* | mingw* | pw32*)
23973     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23974     # When not using gcc, we currently assume that we are using
23975     # Microsoft Visual C++.
23976     if test "$GCC" != yes; then
23977       with_gnu_ld=no
23978     fi
23979     ;;
23980   interix*)
23981     # we just hope/assume this is gcc and not c89 (= MSVC++)
23982     with_gnu_ld=yes
23983     ;;
23984   openbsd*)
23985     with_gnu_ld=no
23986     ;;
23987   esac
23988
23989   ld_shlibs_GCJ=yes
23990   if test "$with_gnu_ld" = yes; then
23991     # If archive_cmds runs LD, not CC, wlarc should be empty
23992     wlarc='${wl}'
23993
23994     # Set some defaults for GNU ld with shared library support. These
23995     # are reset later if shared libraries are not supported. Putting them
23996     # here allows them to be overridden if necessary.
23997     runpath_var=LD_RUN_PATH
23998     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23999     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24000     # ancient GNU ld didn't support --whole-archive et. al.
24001     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24002         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24003       else
24004         whole_archive_flag_spec_GCJ=
24005     fi
24006     supports_anon_versioning=no
24007     case `$LD -v 2>/dev/null` in
24008       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24009       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24010       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24011       *\ 2.11.*) ;; # other 2.11 versions
24012       *) supports_anon_versioning=yes ;;
24013     esac
24014
24015     # See if GNU ld supports shared libraries.
24016     case $host_os in
24017     aix3* | aix4* | aix5*)
24018       # On AIX/PPC, the GNU linker is very broken
24019       if test "$host_cpu" != ia64; then
24020         ld_shlibs_GCJ=no
24021         cat <<EOF 1>&2
24022
24023 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24024 *** to be unable to reliably create shared libraries on AIX.
24025 *** Therefore, libtool is disabling shared libraries support.  If you
24026 *** really care for shared libraries, you may want to modify your PATH
24027 *** so that a non-GNU linker is found, and then restart.
24028
24029 EOF
24030       fi
24031       ;;
24032
24033     amigaos*)
24034       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)'
24035       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24036       hardcode_minus_L_GCJ=yes
24037
24038       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24039       # that the semantics of dynamic libraries on AmigaOS, at least up
24040       # to version 4, is to share data among multiple programs linked
24041       # with the same dynamic library.  Since this doesn't match the
24042       # behavior of shared libraries on other platforms, we can't use
24043       # them.
24044       ld_shlibs_GCJ=no
24045       ;;
24046
24047     beos*)
24048       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24049         allow_undefined_flag_GCJ=unsupported
24050         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24051         # support --undefined.  This deserves some investigation.  FIXME
24052         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24053       else
24054         ld_shlibs_GCJ=no
24055       fi
24056       ;;
24057
24058     cygwin* | mingw* | pw32*)
24059       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24060       # as there is no search path for DLLs.
24061       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24062       allow_undefined_flag_GCJ=unsupported
24063       always_export_symbols_GCJ=no
24064       enable_shared_with_static_runtimes_GCJ=yes
24065       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24066
24067       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24068         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24069         # If the export-symbols file already is a .def file (1st line
24070         # is EXPORTS), use it as is; otherwise, prepend...
24071         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24072           cp $export_symbols $output_objdir/$soname.def;
24073         else
24074           echo EXPORTS > $output_objdir/$soname.def;
24075           cat $export_symbols >> $output_objdir/$soname.def;
24076         fi~
24077         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24078       else
24079         ld_shlibs_GCJ=no
24080       fi
24081       ;;
24082
24083     interix3*)
24084       hardcode_direct_GCJ=no
24085       hardcode_shlibpath_var_GCJ=no
24086       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24087       export_dynamic_flag_spec_GCJ='${wl}-E'
24088       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24089       # Instead, shared libraries are loaded at an image base (0x10000000 by
24090       # default) and relocated if they conflict, which is a slow very memory
24091       # consuming and fragmenting process.  To avoid this, we pick a random,
24092       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24093       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24094       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'
24095       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'
24096       ;;
24097
24098     linux*)
24099       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24100         tmp_addflag=
24101         case $cc_basename,$host_cpu in
24102         pgcc*)                          # Portland Group C compiler
24103           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'
24104           tmp_addflag=' $pic_flag'
24105           ;;
24106         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24107           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'
24108           tmp_addflag=' $pic_flag -Mnomain' ;;
24109         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24110           tmp_addflag=' -i_dynamic' ;;
24111         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24112           tmp_addflag=' -i_dynamic -nofor_main' ;;
24113         ifc* | ifort*)                  # Intel Fortran compiler
24114           tmp_addflag=' -nofor_main' ;;
24115         esac
24116         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24117
24118         if test $supports_anon_versioning = yes; then
24119           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24120   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24121   $echo "local: *; };" >> $output_objdir/$libname.ver~
24122           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24123         fi
24124       else
24125         ld_shlibs_GCJ=no
24126       fi
24127       ;;
24128
24129     netbsd*)
24130       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24131         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24132         wlarc=
24133       else
24134         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24135         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24136       fi
24137       ;;
24138
24139     solaris*)
24140       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24141         ld_shlibs_GCJ=no
24142         cat <<EOF 1>&2
24143
24144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24145 *** create shared libraries on Solaris systems.  Therefore, libtool
24146 *** is disabling shared libraries support.  We urge you to upgrade GNU
24147 *** binutils to release 2.9.1 or newer.  Another option is to modify
24148 *** your PATH or compiler configuration so that the native linker is
24149 *** used, and then restart.
24150
24151 EOF
24152       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24153         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24154         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24155       else
24156         ld_shlibs_GCJ=no
24157       fi
24158       ;;
24159
24160     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24161       case `$LD -v 2>&1` in
24162         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24163         ld_shlibs_GCJ=no
24164         cat <<_LT_EOF 1>&2
24165
24166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24167 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24168 *** is disabling shared libraries support.  We urge you to upgrade GNU
24169 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24170 *** your PATH or compiler configuration so that the native linker is
24171 *** used, and then restart.
24172
24173 _LT_EOF
24174         ;;
24175         *)
24176           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24177             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24178             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24179             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24180           else
24181             ld_shlibs_GCJ=no
24182           fi
24183         ;;
24184       esac
24185       ;;
24186
24187     sunos4*)
24188       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24189       wlarc=
24190       hardcode_direct_GCJ=yes
24191       hardcode_shlibpath_var_GCJ=no
24192       ;;
24193
24194     *)
24195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24196         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24197         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24198       else
24199         ld_shlibs_GCJ=no
24200       fi
24201       ;;
24202     esac
24203
24204     if test "$ld_shlibs_GCJ" = no; then
24205       runpath_var=
24206       hardcode_libdir_flag_spec_GCJ=
24207       export_dynamic_flag_spec_GCJ=
24208       whole_archive_flag_spec_GCJ=
24209     fi
24210   else
24211     # PORTME fill in a description of your system's linker (not GNU ld)
24212     case $host_os in
24213     aix3*)
24214       allow_undefined_flag_GCJ=unsupported
24215       always_export_symbols_GCJ=yes
24216       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'
24217       # Note: this linker hardcodes the directories in LIBPATH if there
24218       # are no directories specified by -L.
24219       hardcode_minus_L_GCJ=yes
24220       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24221         # Neither direct hardcoding nor static linking is supported with a
24222         # broken collect2.
24223         hardcode_direct_GCJ=unsupported
24224       fi
24225       ;;
24226
24227     aix4* | aix5*)
24228       if test "$host_cpu" = ia64; then
24229         # On IA64, the linker does run time linking by default, so we don't
24230         # have to do anything special.
24231         aix_use_runtimelinking=no
24232         exp_sym_flag='-Bexport'
24233         no_entry_flag=""
24234       else
24235         # If we're using GNU nm, then we don't want the "-C" option.
24236         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24237         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24238           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'
24239         else
24240           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'
24241         fi
24242         aix_use_runtimelinking=no
24243
24244         # Test if we are trying to use run time linking or normal
24245         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24246         # need to do runtime linking.
24247         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24248           for ld_flag in $LDFLAGS; do
24249           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24250             aix_use_runtimelinking=yes
24251             break
24252           fi
24253           done
24254           ;;
24255         esac
24256
24257         exp_sym_flag='-bexport'
24258         no_entry_flag='-bnoentry'
24259       fi
24260
24261       # When large executables or shared objects are built, AIX ld can
24262       # have problems creating the table of contents.  If linking a library
24263       # or program results in "error TOC overflow" add -mminimal-toc to
24264       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24265       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24266
24267       archive_cmds_GCJ=''
24268       hardcode_direct_GCJ=yes
24269       hardcode_libdir_separator_GCJ=':'
24270       link_all_deplibs_GCJ=yes
24271
24272       if test "$GCC" = yes; then
24273         case $host_os in aix4.[012]|aix4.[012].*)
24274         # We only want to do this on AIX 4.2 and lower, the check
24275         # below for broken collect2 doesn't work under 4.3+
24276           collect2name=`${CC} -print-prog-name=collect2`
24277           if test -f "$collect2name" && \
24278            strings "$collect2name" | grep resolve_lib_name >/dev/null
24279           then
24280           # We have reworked collect2
24281           hardcode_direct_GCJ=yes
24282           else
24283           # We have old collect2
24284           hardcode_direct_GCJ=unsupported
24285           # It fails to find uninstalled libraries when the uninstalled
24286           # path is not listed in the libpath.  Setting hardcode_minus_L
24287           # to unsupported forces relinking
24288           hardcode_minus_L_GCJ=yes
24289           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24290           hardcode_libdir_separator_GCJ=
24291           fi
24292           ;;
24293         esac
24294         shared_flag='-shared'
24295         if test "$aix_use_runtimelinking" = yes; then
24296           shared_flag="$shared_flag "'${wl}-G'
24297         fi
24298       else
24299         # not using gcc
24300         if test "$host_cpu" = ia64; then
24301         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24302         # chokes on -Wl,-G. The following line is correct:
24303           shared_flag='-G'
24304         else
24305           if test "$aix_use_runtimelinking" = yes; then
24306             shared_flag='${wl}-G'
24307           else
24308             shared_flag='${wl}-bM:SRE'
24309           fi
24310         fi
24311       fi
24312
24313       # It seems that -bexpall does not export symbols beginning with
24314       # underscore (_), so it is better to generate a list of symbols to export.
24315       always_export_symbols_GCJ=yes
24316       if test "$aix_use_runtimelinking" = yes; then
24317         # Warning - without using the other runtime loading flags (-brtl),
24318         # -berok will link without error, but may produce a broken library.
24319         allow_undefined_flag_GCJ='-berok'
24320        # Determine the default libpath from the value encoded in an empty executable.
24321        cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327
24328 int
24329 main ()
24330 {
24331
24332   ;
24333   return 0;
24334 }
24335 _ACEOF
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (ac_try="$ac_link"
24338 case "(($ac_try" in
24339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340   *) ac_try_echo=$ac_try;;
24341 esac
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343   (eval "$ac_link") 2>conftest.er1
24344   ac_status=$?
24345   grep -v '^ *+' conftest.er1 >conftest.err
24346   rm -f conftest.er1
24347   cat conftest.err >&5
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); } &&
24350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24351   { (case "(($ac_try" in
24352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353   *) ac_try_echo=$ac_try;;
24354 esac
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356   (eval "$ac_try") 2>&5
24357   ac_status=$?
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); }; } &&
24360          { ac_try='test -s conftest$ac_exeext'
24361   { (case "(($ac_try" in
24362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24363   *) ac_try_echo=$ac_try;;
24364 esac
24365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24366   (eval "$ac_try") 2>&5
24367   ac_status=$?
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); }; }; then
24370
24371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24372 }'`
24373 # Check for a 64-bit object if we didn't find anything.
24374 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; }
24375 }'`; fi
24376 else
24377   echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380
24381 fi
24382
24383 rm -f core conftest.err conftest.$ac_objext \
24384       conftest$ac_exeext conftest.$ac_ext
24385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24386
24387        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24388         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"
24389        else
24390         if test "$host_cpu" = ia64; then
24391           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24392           allow_undefined_flag_GCJ="-z nodefs"
24393           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"
24394         else
24395          # Determine the default libpath from the value encoded in an empty executable.
24396          cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h.  */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h.  */
24402
24403 int
24404 main ()
24405 {
24406
24407   ;
24408   return 0;
24409 }
24410 _ACEOF
24411 rm -f conftest.$ac_objext conftest$ac_exeext
24412 if { (ac_try="$ac_link"
24413 case "(($ac_try" in
24414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415   *) ac_try_echo=$ac_try;;
24416 esac
24417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418   (eval "$ac_link") 2>conftest.er1
24419   ac_status=$?
24420   grep -v '^ *+' conftest.er1 >conftest.err
24421   rm -f conftest.er1
24422   cat conftest.err >&5
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); } &&
24425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24426   { (case "(($ac_try" in
24427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428   *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431   (eval "$ac_try") 2>&5
24432   ac_status=$?
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); }; } &&
24435          { ac_try='test -s conftest$ac_exeext'
24436   { (case "(($ac_try" in
24437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438   *) ac_try_echo=$ac_try;;
24439 esac
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441   (eval "$ac_try") 2>&5
24442   ac_status=$?
24443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444   (exit $ac_status); }; }; then
24445
24446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24447 }'`
24448 # Check for a 64-bit object if we didn't find anything.
24449 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; }
24450 }'`; fi
24451 else
24452   echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455
24456 fi
24457
24458 rm -f core conftest.err conftest.$ac_objext \
24459       conftest$ac_exeext conftest.$ac_ext
24460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24461
24462          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24463           # Warning - without using the other run time loading flags,
24464           # -berok will link without error, but may produce a broken library.
24465           no_undefined_flag_GCJ=' ${wl}-bernotok'
24466           allow_undefined_flag_GCJ=' ${wl}-berok'
24467           # Exported symbols can be pulled into shared objects from archives
24468           whole_archive_flag_spec_GCJ='$convenience'
24469           archive_cmds_need_lc_GCJ=yes
24470           # This is similar to how AIX traditionally builds its shared libraries.
24471           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'
24472         fi
24473       fi
24474       ;;
24475
24476     amigaos*)
24477       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)'
24478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24479       hardcode_minus_L_GCJ=yes
24480       # see comment about different semantics on the GNU ld section
24481       ld_shlibs_GCJ=no
24482       ;;
24483
24484     bsdi[45]*)
24485       export_dynamic_flag_spec_GCJ=-rdynamic
24486       ;;
24487
24488     cygwin* | mingw* | pw32*)
24489       # When not using gcc, we currently assume that we are using
24490       # Microsoft Visual C++.
24491       # hardcode_libdir_flag_spec is actually meaningless, as there is
24492       # no search path for DLLs.
24493       hardcode_libdir_flag_spec_GCJ=' '
24494       allow_undefined_flag_GCJ=unsupported
24495       # Tell ltmain to make .lib files, not .a files.
24496       libext=lib
24497       # Tell ltmain to make .dll files, not .so files.
24498       shrext_cmds=".dll"
24499       # FIXME: Setting linknames here is a bad hack.
24500       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24501       # The linker will automatically build a .lib file if we build a DLL.
24502       old_archive_From_new_cmds_GCJ='true'
24503       # FIXME: Should let the user specify the lib program.
24504       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24505       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24506       enable_shared_with_static_runtimes_GCJ=yes
24507       ;;
24508
24509     darwin* | rhapsody*)
24510       case $host_os in
24511         rhapsody* | darwin1.[012])
24512          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24513          ;;
24514        *) # Darwin 1.3 on
24515          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24516            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24517          else
24518            case ${MACOSX_DEPLOYMENT_TARGET} in
24519              10.[012])
24520                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24521                ;;
24522              10.*)
24523                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24524                ;;
24525            esac
24526          fi
24527          ;;
24528       esac
24529       archive_cmds_need_lc_GCJ=no
24530       hardcode_direct_GCJ=no
24531       hardcode_automatic_GCJ=yes
24532       hardcode_shlibpath_var_GCJ=unsupported
24533       whole_archive_flag_spec_GCJ=''
24534       link_all_deplibs_GCJ=yes
24535     if test "$GCC" = yes ; then
24536         output_verbose_link_cmd='echo'
24537         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24538       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24539       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24540       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}'
24541       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}'
24542     else
24543       case $cc_basename in
24544         xlc*)
24545          output_verbose_link_cmd='echo'
24546          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24547          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24548           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24549          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}'
24550           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}'
24551           ;;
24552        *)
24553          ld_shlibs_GCJ=no
24554           ;;
24555       esac
24556     fi
24557       ;;
24558
24559     dgux*)
24560       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24561       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562       hardcode_shlibpath_var_GCJ=no
24563       ;;
24564
24565     freebsd1*)
24566       ld_shlibs_GCJ=no
24567       ;;
24568
24569     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24570     # support.  Future versions do this automatically, but an explicit c++rt0.o
24571     # does not break anything, and helps significantly (at the cost of a little
24572     # extra space).
24573     freebsd2.2*)
24574       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24575       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24576       hardcode_direct_GCJ=yes
24577       hardcode_shlibpath_var_GCJ=no
24578       ;;
24579
24580     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24581     freebsd2*)
24582       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24583       hardcode_direct_GCJ=yes
24584       hardcode_minus_L_GCJ=yes
24585       hardcode_shlibpath_var_GCJ=no
24586       ;;
24587
24588     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24589     freebsd* | kfreebsd*-gnu | dragonfly*)
24590       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24591       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24592       hardcode_direct_GCJ=yes
24593       hardcode_shlibpath_var_GCJ=no
24594       ;;
24595
24596     hpux9*)
24597       if test "$GCC" = yes; then
24598         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'
24599       else
24600         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'
24601       fi
24602       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24603       hardcode_libdir_separator_GCJ=:
24604       hardcode_direct_GCJ=yes
24605
24606       # hardcode_minus_L: Not really in the search PATH,
24607       # but as the default location of the library.
24608       hardcode_minus_L_GCJ=yes
24609       export_dynamic_flag_spec_GCJ='${wl}-E'
24610       ;;
24611
24612     hpux10*)
24613       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24614         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24615       else
24616         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24617       fi
24618       if test "$with_gnu_ld" = no; then
24619         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24620         hardcode_libdir_separator_GCJ=:
24621
24622         hardcode_direct_GCJ=yes
24623         export_dynamic_flag_spec_GCJ='${wl}-E'
24624
24625         # hardcode_minus_L: Not really in the search PATH,
24626         # but as the default location of the library.
24627         hardcode_minus_L_GCJ=yes
24628       fi
24629       ;;
24630
24631     hpux11*)
24632       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24633         case $host_cpu in
24634         hppa*64*)
24635           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24636           ;;
24637         ia64*)
24638           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24639           ;;
24640         *)
24641           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24642           ;;
24643         esac
24644       else
24645         case $host_cpu in
24646         hppa*64*)
24647           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24648           ;;
24649         ia64*)
24650           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24651           ;;
24652         *)
24653           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24654           ;;
24655         esac
24656       fi
24657       if test "$with_gnu_ld" = no; then
24658         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24659         hardcode_libdir_separator_GCJ=:
24660
24661         case $host_cpu in
24662         hppa*64*|ia64*)
24663           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24664           hardcode_direct_GCJ=no
24665           hardcode_shlibpath_var_GCJ=no
24666           ;;
24667         *)
24668           hardcode_direct_GCJ=yes
24669           export_dynamic_flag_spec_GCJ='${wl}-E'
24670
24671           # hardcode_minus_L: Not really in the search PATH,
24672           # but as the default location of the library.
24673           hardcode_minus_L_GCJ=yes
24674           ;;
24675         esac
24676       fi
24677       ;;
24678
24679     irix5* | irix6* | nonstopux*)
24680       if test "$GCC" = yes; then
24681         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'
24682       else
24683         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'
24684         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24685       fi
24686       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24687       hardcode_libdir_separator_GCJ=:
24688       link_all_deplibs_GCJ=yes
24689       ;;
24690
24691     netbsd*)
24692       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24693         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24694       else
24695         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24696       fi
24697       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24698       hardcode_direct_GCJ=yes
24699       hardcode_shlibpath_var_GCJ=no
24700       ;;
24701
24702     newsos6)
24703       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24704       hardcode_direct_GCJ=yes
24705       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24706       hardcode_libdir_separator_GCJ=:
24707       hardcode_shlibpath_var_GCJ=no
24708       ;;
24709
24710     openbsd*)
24711       hardcode_direct_GCJ=yes
24712       hardcode_shlibpath_var_GCJ=no
24713       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24714         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24715         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24716         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24717         export_dynamic_flag_spec_GCJ='${wl}-E'
24718       else
24719        case $host_os in
24720          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24721            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24722            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24723            ;;
24724          *)
24725            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24726            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24727            ;;
24728        esac
24729       fi
24730       ;;
24731
24732     os2*)
24733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734       hardcode_minus_L_GCJ=yes
24735       allow_undefined_flag_GCJ=unsupported
24736       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'
24737       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24738       ;;
24739
24740     osf3*)
24741       if test "$GCC" = yes; then
24742         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24743         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'
24744       else
24745         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24746         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'
24747       fi
24748       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24749       hardcode_libdir_separator_GCJ=:
24750       ;;
24751
24752     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24753       if test "$GCC" = yes; then
24754         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24755         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'
24756         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24757       else
24758         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24759         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'
24760         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~
24761         $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'
24762
24763         # Both c and cxx compiler support -rpath directly
24764         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24765       fi
24766       hardcode_libdir_separator_GCJ=:
24767       ;;
24768
24769     solaris*)
24770       no_undefined_flag_GCJ=' -z text'
24771       if test "$GCC" = yes; then
24772         wlarc='${wl}'
24773         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24774         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24775           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24776       else
24777         wlarc=''
24778         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24779         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24780         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24781       fi
24782       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24783       hardcode_shlibpath_var_GCJ=no
24784       case $host_os in
24785       solaris2.[0-5] | solaris2.[0-5].*) ;;
24786       *)
24787         # The compiler driver will combine linker options so we
24788         # cannot just pass the convience library names through
24789         # without $wl, iff we do not link with $LD.
24790         # Luckily, gcc supports the same syntax we need for Sun Studio.
24791         # Supported since Solaris 2.6 (maybe 2.5.1?)
24792         case $wlarc in
24793         '')
24794           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24795         *)
24796           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' ;;
24797         esac ;;
24798       esac
24799       link_all_deplibs_GCJ=yes
24800       ;;
24801
24802     sunos4*)
24803       if test "x$host_vendor" = xsequent; then
24804         # Use $CC to link under sequent, because it throws in some extra .o
24805         # files that make .init and .fini sections work.
24806         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24807       else
24808         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24809       fi
24810       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24811       hardcode_direct_GCJ=yes
24812       hardcode_minus_L_GCJ=yes
24813       hardcode_shlibpath_var_GCJ=no
24814       ;;
24815
24816     sysv4)
24817       case $host_vendor in
24818         sni)
24819           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24820           hardcode_direct_GCJ=yes # is this really true???
24821         ;;
24822         siemens)
24823           ## LD is ld it makes a PLAMLIB
24824           ## CC just makes a GrossModule.
24825           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24826           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24827           hardcode_direct_GCJ=no
24828         ;;
24829         motorola)
24830           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24831           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24832         ;;
24833       esac
24834       runpath_var='LD_RUN_PATH'
24835       hardcode_shlibpath_var_GCJ=no
24836       ;;
24837
24838     sysv4.3*)
24839       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24840       hardcode_shlibpath_var_GCJ=no
24841       export_dynamic_flag_spec_GCJ='-Bexport'
24842       ;;
24843
24844     sysv4*MP*)
24845       if test -d /usr/nec; then
24846         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24847         hardcode_shlibpath_var_GCJ=no
24848         runpath_var=LD_RUN_PATH
24849         hardcode_runpath_var=yes
24850         ld_shlibs_GCJ=yes
24851       fi
24852       ;;
24853
24854     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24855       no_undefined_flag_GCJ='${wl}-z,text'
24856       archive_cmds_need_lc_GCJ=no
24857       hardcode_shlibpath_var_GCJ=no
24858       runpath_var='LD_RUN_PATH'
24859
24860       if test "$GCC" = yes; then
24861         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24862         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24863       else
24864         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24865         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24866       fi
24867       ;;
24868
24869     sysv5* | sco3.2v5* | sco5v6*)
24870       # Note: We can NOT use -z defs as we might desire, because we do not
24871       # link with -lc, and that would cause any symbols used from libc to
24872       # always be unresolved, which means just about no library would
24873       # ever link correctly.  If we're not using GNU ld we use -z text
24874       # though, which does catch some bad symbols but isn't as heavy-handed
24875       # as -z defs.
24876       no_undefined_flag_GCJ='${wl}-z,text'
24877       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24878       archive_cmds_need_lc_GCJ=no
24879       hardcode_shlibpath_var_GCJ=no
24880       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24881       hardcode_libdir_separator_GCJ=':'
24882       link_all_deplibs_GCJ=yes
24883       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24884       runpath_var='LD_RUN_PATH'
24885
24886       if test "$GCC" = yes; then
24887         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24889       else
24890         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24892       fi
24893       ;;
24894
24895     uts4*)
24896       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24897       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24898       hardcode_shlibpath_var_GCJ=no
24899       ;;
24900
24901     *)
24902       ld_shlibs_GCJ=no
24903       ;;
24904     esac
24905   fi
24906
24907 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24908 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24909 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24910
24911 #
24912 # Do we need to explicitly link libc?
24913 #
24914 case "x$archive_cmds_need_lc_GCJ" in
24915 x|xyes)
24916   # Assume -lc should be added
24917   archive_cmds_need_lc_GCJ=yes
24918
24919   if test "$enable_shared" = yes && test "$GCC" = yes; then
24920     case $archive_cmds_GCJ in
24921     *'~'*)
24922       # FIXME: we may have to deal with multi-command sequences.
24923       ;;
24924     '$CC '*)
24925       # Test whether the compiler implicitly links with -lc since on some
24926       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24927       # to ld, don't add -lc before -lgcc.
24928       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24929 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24930       $rm conftest*
24931       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24932
24933       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24934   (eval $ac_compile) 2>&5
24935   ac_status=$?
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } 2>conftest.err; then
24938         soname=conftest
24939         lib=conftest
24940         libobjs=conftest.$ac_objext
24941         deplibs=
24942         wl=$lt_prog_compiler_wl_GCJ
24943         pic_flag=$lt_prog_compiler_pic_GCJ
24944         compiler_flags=-v
24945         linker_flags=-v
24946         verstring=
24947         output_objdir=.
24948         libname=conftest
24949         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24950         allow_undefined_flag_GCJ=
24951         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24952   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24953   ac_status=$?
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); }
24956         then
24957           archive_cmds_need_lc_GCJ=no
24958         else
24959           archive_cmds_need_lc_GCJ=yes
24960         fi
24961         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24962       else
24963         cat conftest.err 1>&5
24964       fi
24965       $rm conftest*
24966       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24967 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24968       ;;
24969     esac
24970   fi
24971   ;;
24972 esac
24973
24974 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24975 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24976 library_names_spec=
24977 libname_spec='lib$name'
24978 soname_spec=
24979 shrext_cmds=".so"
24980 postinstall_cmds=
24981 postuninstall_cmds=
24982 finish_cmds=
24983 finish_eval=
24984 shlibpath_var=
24985 shlibpath_overrides_runpath=unknown
24986 version_type=none
24987 dynamic_linker="$host_os ld.so"
24988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24989 if test "$GCC" = yes; then
24990   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24991   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24992     # if the path contains ";" then we assume it to be the separator
24993     # otherwise default to the standard path separator (i.e. ":") - it is
24994     # assumed that no part of a normal pathname contains ";" but that should
24995     # okay in the real world where ";" in dirpaths is itself problematic.
24996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24997   else
24998     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24999   fi
25000 else
25001   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25002 fi
25003 need_lib_prefix=unknown
25004 hardcode_into_libs=no
25005
25006 # when you set need_version to no, make sure it does not cause -set_version
25007 # flags to be left without arguments
25008 need_version=unknown
25009
25010 case $host_os in
25011 aix3*)
25012   version_type=linux
25013   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25014   shlibpath_var=LIBPATH
25015
25016   # AIX 3 has no versioning support, so we append a major version to the name.
25017   soname_spec='${libname}${release}${shared_ext}$major'
25018   ;;
25019
25020 aix4* | aix5*)
25021   version_type=linux
25022   need_lib_prefix=no
25023   need_version=no
25024   hardcode_into_libs=yes
25025   if test "$host_cpu" = ia64; then
25026     # AIX 5 supports IA64
25027     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25028     shlibpath_var=LD_LIBRARY_PATH
25029   else
25030     # With GCC up to 2.95.x, collect2 would create an import file
25031     # for dependence libraries.  The import file would start with
25032     # the line `#! .'.  This would cause the generated library to
25033     # depend on `.', always an invalid library.  This was fixed in
25034     # development snapshots of GCC prior to 3.0.
25035     case $host_os in
25036       aix4 | aix4.[01] | aix4.[01].*)
25037       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25038            echo ' yes '
25039            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25040         :
25041       else
25042         can_build_shared=no
25043       fi
25044       ;;
25045     esac
25046     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25047     # soname into executable. Probably we can add versioning support to
25048     # collect2, so additional links can be useful in future.
25049     if test "$aix_use_runtimelinking" = yes; then
25050       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25051       # instead of lib<name>.a to let people know that these are not
25052       # typical AIX shared libraries.
25053       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25054     else
25055       # We preserve .a as extension for shared libraries through AIX4.2
25056       # and later when we are not doing run time linking.
25057       library_names_spec='${libname}${release}.a $libname.a'
25058       soname_spec='${libname}${release}${shared_ext}$major'
25059     fi
25060     shlibpath_var=LIBPATH
25061   fi
25062   ;;
25063
25064 amigaos*)
25065   library_names_spec='$libname.ixlibrary $libname.a'
25066   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25067   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'
25068   ;;
25069
25070 beos*)
25071   library_names_spec='${libname}${shared_ext}'
25072   dynamic_linker="$host_os ld.so"
25073   shlibpath_var=LIBRARY_PATH
25074   ;;
25075
25076 bsdi[45]*)
25077   version_type=linux
25078   need_version=no
25079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25080   soname_spec='${libname}${release}${shared_ext}$major'
25081   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25082   shlibpath_var=LD_LIBRARY_PATH
25083   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25084   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25085   # the default ld.so.conf also contains /usr/contrib/lib and
25086   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25087   # libtool to hard-code these into programs
25088   ;;
25089
25090 cygwin* | mingw* | pw32*)
25091   version_type=windows
25092   shrext_cmds=".dll"
25093   need_version=no
25094   need_lib_prefix=no
25095
25096   case $GCC,$host_os in
25097   yes,cygwin* | yes,mingw* | yes,pw32*)
25098     library_names_spec='$libname.dll.a'
25099     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25100     postinstall_cmds='base_file=`basename \${file}`~
25101       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25102       dldir=$destdir/`dirname \$dlpath`~
25103       test -d \$dldir || mkdir -p \$dldir~
25104       $install_prog $dir/$dlname \$dldir/$dlname~
25105       chmod a+x \$dldir/$dlname'
25106     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25107       dlpath=$dir/\$dldll~
25108        $rm \$dlpath'
25109     shlibpath_overrides_runpath=yes
25110
25111     case $host_os in
25112     cygwin*)
25113       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25114       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25115       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25116       ;;
25117     mingw*)
25118       # MinGW DLLs use traditional 'lib' prefix
25119       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25120       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25121       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25122         # It is most probably a Windows format PATH printed by
25123         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25124         # path with ; separators, and with drive letters. We can handle the
25125         # drive letters (cygwin fileutils understands them), so leave them,
25126         # especially as we might pass files found there to a mingw objdump,
25127         # which wouldn't understand a cygwinified path. Ahh.
25128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25129       else
25130         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25131       fi
25132       ;;
25133     pw32*)
25134       # pw32 DLLs use 'pw' prefix rather than 'lib'
25135       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25136       ;;
25137     esac
25138     ;;
25139
25140   *)
25141     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25142     ;;
25143   esac
25144   dynamic_linker='Win32 ld.exe'
25145   # FIXME: first we should search . and the directory the executable is in
25146   shlibpath_var=PATH
25147   ;;
25148
25149 darwin* | rhapsody*)
25150   dynamic_linker="$host_os dyld"
25151   version_type=darwin
25152   need_lib_prefix=no
25153   need_version=no
25154   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25155   soname_spec='${libname}${release}${major}$shared_ext'
25156   shlibpath_overrides_runpath=yes
25157   shlibpath_var=DYLD_LIBRARY_PATH
25158   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25159   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25160   if test "$GCC" = yes; then
25161     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"`
25162   else
25163     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25164   fi
25165   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25166   ;;
25167
25168 dgux*)
25169   version_type=linux
25170   need_lib_prefix=no
25171   need_version=no
25172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25173   soname_spec='${libname}${release}${shared_ext}$major'
25174   shlibpath_var=LD_LIBRARY_PATH
25175   ;;
25176
25177 freebsd1*)
25178   dynamic_linker=no
25179   ;;
25180
25181 kfreebsd*-gnu)
25182   version_type=linux
25183   need_lib_prefix=no
25184   need_version=no
25185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25186   soname_spec='${libname}${release}${shared_ext}$major'
25187   shlibpath_var=LD_LIBRARY_PATH
25188   shlibpath_overrides_runpath=no
25189   hardcode_into_libs=yes
25190   dynamic_linker='GNU ld.so'
25191   ;;
25192
25193 freebsd* | dragonfly*)
25194   # DragonFly does not have aout.  When/if they implement a new
25195   # versioning mechanism, adjust this.
25196   if test -x /usr/bin/objformat; then
25197     objformat=`/usr/bin/objformat`
25198   else
25199     case $host_os in
25200     freebsd[123]*) objformat=aout ;;
25201     *) objformat=elf ;;
25202     esac
25203   fi
25204   version_type=freebsd-$objformat
25205   case $version_type in
25206     freebsd-elf*)
25207       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25208       need_version=no
25209       need_lib_prefix=no
25210       ;;
25211     freebsd-*)
25212       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25213       need_version=yes
25214       ;;
25215   esac
25216   shlibpath_var=LD_LIBRARY_PATH
25217   case $host_os in
25218   freebsd2*)
25219     shlibpath_overrides_runpath=yes
25220     ;;
25221   freebsd3.[01]* | freebsdelf3.[01]*)
25222     shlibpath_overrides_runpath=yes
25223     hardcode_into_libs=yes
25224     ;;
25225   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25226   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25227     shlibpath_overrides_runpath=no
25228     hardcode_into_libs=yes
25229     ;;
25230   freebsd*) # from 4.6 on
25231     shlibpath_overrides_runpath=yes
25232     hardcode_into_libs=yes
25233     ;;
25234   esac
25235   ;;
25236
25237 gnu*)
25238   version_type=linux
25239   need_lib_prefix=no
25240   need_version=no
25241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25242   soname_spec='${libname}${release}${shared_ext}$major'
25243   shlibpath_var=LD_LIBRARY_PATH
25244   hardcode_into_libs=yes
25245   ;;
25246
25247 hpux9* | hpux10* | hpux11*)
25248   # Give a soname corresponding to the major version so that dld.sl refuses to
25249   # link against other versions.
25250   version_type=sunos
25251   need_lib_prefix=no
25252   need_version=no
25253   case $host_cpu in
25254   ia64*)
25255     shrext_cmds='.so'
25256     hardcode_into_libs=yes
25257     dynamic_linker="$host_os dld.so"
25258     shlibpath_var=LD_LIBRARY_PATH
25259     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25261     soname_spec='${libname}${release}${shared_ext}$major'
25262     if test "X$HPUX_IA64_MODE" = X32; then
25263       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25264     else
25265       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25266     fi
25267     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25268     ;;
25269    hppa*64*)
25270      shrext_cmds='.sl'
25271      hardcode_into_libs=yes
25272      dynamic_linker="$host_os dld.sl"
25273      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25274      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25276      soname_spec='${libname}${release}${shared_ext}$major'
25277      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25278      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25279      ;;
25280    *)
25281     shrext_cmds='.sl'
25282     dynamic_linker="$host_os dld.sl"
25283     shlibpath_var=SHLIB_PATH
25284     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25286     soname_spec='${libname}${release}${shared_ext}$major'
25287     ;;
25288   esac
25289   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25290   postinstall_cmds='chmod 555 $lib'
25291   ;;
25292
25293 interix3*)
25294   version_type=linux
25295   need_lib_prefix=no
25296   need_version=no
25297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25298   soname_spec='${libname}${release}${shared_ext}$major'
25299   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25300   shlibpath_var=LD_LIBRARY_PATH
25301   shlibpath_overrides_runpath=no
25302   hardcode_into_libs=yes
25303   ;;
25304
25305 irix5* | irix6* | nonstopux*)
25306   case $host_os in
25307     nonstopux*) version_type=nonstopux ;;
25308     *)
25309         if test "$lt_cv_prog_gnu_ld" = yes; then
25310                 version_type=linux
25311         else
25312                 version_type=irix
25313         fi ;;
25314   esac
25315   need_lib_prefix=no
25316   need_version=no
25317   soname_spec='${libname}${release}${shared_ext}$major'
25318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25319   case $host_os in
25320   irix5* | nonstopux*)
25321     libsuff= shlibsuff=
25322     ;;
25323   *)
25324     case $LD in # libtool.m4 will add one of these switches to LD
25325     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25326       libsuff= shlibsuff= libmagic=32-bit;;
25327     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25328       libsuff=32 shlibsuff=N32 libmagic=N32;;
25329     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25330       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25331     *) libsuff= shlibsuff= libmagic=never-match;;
25332     esac
25333     ;;
25334   esac
25335   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25336   shlibpath_overrides_runpath=no
25337   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25338   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25339   hardcode_into_libs=yes
25340   ;;
25341
25342 # No shared lib support for Linux oldld, aout, or coff.
25343 linux*oldld* | linux*aout* | linux*coff*)
25344   dynamic_linker=no
25345   ;;
25346
25347 # This must be Linux ELF.
25348 linux*)
25349   version_type=linux
25350   need_lib_prefix=no
25351   need_version=no
25352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25353   soname_spec='${libname}${release}${shared_ext}$major'
25354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25355   shlibpath_var=LD_LIBRARY_PATH
25356   shlibpath_overrides_runpath=no
25357   # This implies no fast_install, which is unacceptable.
25358   # Some rework will be needed to allow for fast_install
25359   # before this can be enabled.
25360   hardcode_into_libs=yes
25361
25362   # Append ld.so.conf contents to the search path
25363   if test -f /etc/ld.so.conf; then
25364     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' ' '`
25365     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25366   fi
25367
25368   # We used to test for /lib/ld.so.1 and disable shared libraries on
25369   # powerpc, because MkLinux only supported shared libraries with the
25370   # GNU dynamic linker.  Since this was broken with cross compilers,
25371   # most powerpc-linux boxes support dynamic linking these days and
25372   # people can always --disable-shared, the test was removed, and we
25373   # assume the GNU/Linux dynamic linker is in use.
25374   dynamic_linker='GNU/Linux ld.so'
25375   ;;
25376
25377 knetbsd*-gnu)
25378   version_type=linux
25379   need_lib_prefix=no
25380   need_version=no
25381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25382   soname_spec='${libname}${release}${shared_ext}$major'
25383   shlibpath_var=LD_LIBRARY_PATH
25384   shlibpath_overrides_runpath=no
25385   hardcode_into_libs=yes
25386   dynamic_linker='GNU ld.so'
25387   ;;
25388
25389 netbsd*)
25390   version_type=sunos
25391   need_lib_prefix=no
25392   need_version=no
25393   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25395     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25396     dynamic_linker='NetBSD (a.out) ld.so'
25397   else
25398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25399     soname_spec='${libname}${release}${shared_ext}$major'
25400     dynamic_linker='NetBSD ld.elf_so'
25401   fi
25402   shlibpath_var=LD_LIBRARY_PATH
25403   shlibpath_overrides_runpath=yes
25404   hardcode_into_libs=yes
25405   ;;
25406
25407 newsos6)
25408   version_type=linux
25409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25410   shlibpath_var=LD_LIBRARY_PATH
25411   shlibpath_overrides_runpath=yes
25412   ;;
25413
25414 nto-qnx*)
25415   version_type=linux
25416   need_lib_prefix=no
25417   need_version=no
25418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419   soname_spec='${libname}${release}${shared_ext}$major'
25420   shlibpath_var=LD_LIBRARY_PATH
25421   shlibpath_overrides_runpath=yes
25422   ;;
25423
25424 openbsd*)
25425   version_type=sunos
25426   sys_lib_dlsearch_path_spec="/usr/lib"
25427   need_lib_prefix=no
25428   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25429   case $host_os in
25430     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25431     *)                         need_version=no  ;;
25432   esac
25433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25435   shlibpath_var=LD_LIBRARY_PATH
25436   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25437     case $host_os in
25438       openbsd2.[89] | openbsd2.[89].*)
25439         shlibpath_overrides_runpath=no
25440         ;;
25441       *)
25442         shlibpath_overrides_runpath=yes
25443         ;;
25444       esac
25445   else
25446     shlibpath_overrides_runpath=yes
25447   fi
25448   ;;
25449
25450 os2*)
25451   libname_spec='$name'
25452   shrext_cmds=".dll"
25453   need_lib_prefix=no
25454   library_names_spec='$libname${shared_ext} $libname.a'
25455   dynamic_linker='OS/2 ld.exe'
25456   shlibpath_var=LIBPATH
25457   ;;
25458
25459 osf3* | osf4* | osf5*)
25460   version_type=osf
25461   need_lib_prefix=no
25462   need_version=no
25463   soname_spec='${libname}${release}${shared_ext}$major'
25464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25465   shlibpath_var=LD_LIBRARY_PATH
25466   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25467   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25468   ;;
25469
25470 solaris*)
25471   version_type=linux
25472   need_lib_prefix=no
25473   need_version=no
25474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475   soname_spec='${libname}${release}${shared_ext}$major'
25476   shlibpath_var=LD_LIBRARY_PATH
25477   shlibpath_overrides_runpath=yes
25478   hardcode_into_libs=yes
25479   # ldd complains unless libraries are executable
25480   postinstall_cmds='chmod +x $lib'
25481   ;;
25482
25483 sunos4*)
25484   version_type=sunos
25485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25486   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25487   shlibpath_var=LD_LIBRARY_PATH
25488   shlibpath_overrides_runpath=yes
25489   if test "$with_gnu_ld" = yes; then
25490     need_lib_prefix=no
25491   fi
25492   need_version=yes
25493   ;;
25494
25495 sysv4 | sysv4.3*)
25496   version_type=linux
25497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25498   soname_spec='${libname}${release}${shared_ext}$major'
25499   shlibpath_var=LD_LIBRARY_PATH
25500   case $host_vendor in
25501     sni)
25502       shlibpath_overrides_runpath=no
25503       need_lib_prefix=no
25504       export_dynamic_flag_spec='${wl}-Blargedynsym'
25505       runpath_var=LD_RUN_PATH
25506       ;;
25507     siemens)
25508       need_lib_prefix=no
25509       ;;
25510     motorola)
25511       need_lib_prefix=no
25512       need_version=no
25513       shlibpath_overrides_runpath=no
25514       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25515       ;;
25516   esac
25517   ;;
25518
25519 sysv4*MP*)
25520   if test -d /usr/nec ;then
25521     version_type=linux
25522     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25523     soname_spec='$libname${shared_ext}.$major'
25524     shlibpath_var=LD_LIBRARY_PATH
25525   fi
25526   ;;
25527
25528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25529   version_type=freebsd-elf
25530   need_lib_prefix=no
25531   need_version=no
25532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25533   soname_spec='${libname}${release}${shared_ext}$major'
25534   shlibpath_var=LD_LIBRARY_PATH
25535   hardcode_into_libs=yes
25536   if test "$with_gnu_ld" = yes; then
25537     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25538     shlibpath_overrides_runpath=no
25539   else
25540     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25541     shlibpath_overrides_runpath=yes
25542     case $host_os in
25543       sco3.2v5*)
25544         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25545         ;;
25546     esac
25547   fi
25548   sys_lib_dlsearch_path_spec='/usr/lib'
25549   ;;
25550
25551 uts4*)
25552   version_type=linux
25553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25554   soname_spec='${libname}${release}${shared_ext}$major'
25555   shlibpath_var=LD_LIBRARY_PATH
25556   ;;
25557
25558 *)
25559   dynamic_linker=no
25560   ;;
25561 esac
25562 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25563 echo "${ECHO_T}$dynamic_linker" >&6; }
25564 test "$dynamic_linker" = no && can_build_shared=no
25565
25566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25567 if test "$GCC" = yes; then
25568   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25569 fi
25570
25571 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25572 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25573 hardcode_action_GCJ=
25574 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25575    test -n "$runpath_var_GCJ" || \
25576    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25577
25578   # We can hardcode non-existant directories.
25579   if test "$hardcode_direct_GCJ" != no &&
25580      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25581      # have to relink, otherwise we might link with an installed library
25582      # when we should be linking with a yet-to-be-installed one
25583      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25584      test "$hardcode_minus_L_GCJ" != no; then
25585     # Linking always hardcodes the temporary library directory.
25586     hardcode_action_GCJ=relink
25587   else
25588     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25589     hardcode_action_GCJ=immediate
25590   fi
25591 else
25592   # We cannot hardcode anything, or else we can only hardcode existing
25593   # directories.
25594   hardcode_action_GCJ=unsupported
25595 fi
25596 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25597 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25598
25599 if test "$hardcode_action_GCJ" = relink; then
25600   # Fast installation is not supported
25601   enable_fast_install=no
25602 elif test "$shlibpath_overrides_runpath" = yes ||
25603      test "$enable_shared" = no; then
25604   # Fast installation is not necessary
25605   enable_fast_install=needless
25606 fi
25607
25608
25609 # The else clause should only fire when bootstrapping the
25610 # libtool distribution, otherwise you forgot to ship ltmain.sh
25611 # with your package, and you will get complaints that there are
25612 # no rules to generate ltmain.sh.
25613 if test -f "$ltmain"; then
25614   # See if we are running on zsh, and set the options which allow our commands through
25615   # without removal of \ escapes.
25616   if test -n "${ZSH_VERSION+set}" ; then
25617     setopt NO_GLOB_SUBST
25618   fi
25619   # Now quote all the things that may contain metacharacters while being
25620   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25621   # variables and quote the copies for generation of the libtool script.
25622   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25623     SED SHELL STRIP \
25624     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25625     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25626     deplibs_check_method reload_flag reload_cmds need_locks \
25627     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25628     lt_cv_sys_global_symbol_to_c_name_address \
25629     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25630     old_postinstall_cmds old_postuninstall_cmds \
25631     compiler_GCJ \
25632     CC_GCJ \
25633     LD_GCJ \
25634     lt_prog_compiler_wl_GCJ \
25635     lt_prog_compiler_pic_GCJ \
25636     lt_prog_compiler_static_GCJ \
25637     lt_prog_compiler_no_builtin_flag_GCJ \
25638     export_dynamic_flag_spec_GCJ \
25639     thread_safe_flag_spec_GCJ \
25640     whole_archive_flag_spec_GCJ \
25641     enable_shared_with_static_runtimes_GCJ \
25642     old_archive_cmds_GCJ \
25643     old_archive_from_new_cmds_GCJ \
25644     predep_objects_GCJ \
25645     postdep_objects_GCJ \
25646     predeps_GCJ \
25647     postdeps_GCJ \
25648     compiler_lib_search_path_GCJ \
25649     archive_cmds_GCJ \
25650     archive_expsym_cmds_GCJ \
25651     postinstall_cmds_GCJ \
25652     postuninstall_cmds_GCJ \
25653     old_archive_from_expsyms_cmds_GCJ \
25654     allow_undefined_flag_GCJ \
25655     no_undefined_flag_GCJ \
25656     export_symbols_cmds_GCJ \
25657     hardcode_libdir_flag_spec_GCJ \
25658     hardcode_libdir_flag_spec_ld_GCJ \
25659     hardcode_libdir_separator_GCJ \
25660     hardcode_automatic_GCJ \
25661     module_cmds_GCJ \
25662     module_expsym_cmds_GCJ \
25663     lt_cv_prog_compiler_c_o_GCJ \
25664     exclude_expsyms_GCJ \
25665     include_expsyms_GCJ; do
25666
25667     case $var in
25668     old_archive_cmds_GCJ | \
25669     old_archive_from_new_cmds_GCJ | \
25670     archive_cmds_GCJ | \
25671     archive_expsym_cmds_GCJ | \
25672     module_cmds_GCJ | \
25673     module_expsym_cmds_GCJ | \
25674     old_archive_from_expsyms_cmds_GCJ | \
25675     export_symbols_cmds_GCJ | \
25676     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25677     postinstall_cmds | postuninstall_cmds | \
25678     old_postinstall_cmds | old_postuninstall_cmds | \
25679     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25680       # Double-quote double-evaled strings.
25681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25682       ;;
25683     *)
25684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25685       ;;
25686     esac
25687   done
25688
25689   case $lt_echo in
25690   *'\$0 --fallback-echo"')
25691     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25692     ;;
25693   esac
25694
25695 cfgfile="$ofile"
25696
25697   cat <<__EOF__ >> "$cfgfile"
25698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25699
25700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25701
25702 # Shell to use when invoking shell scripts.
25703 SHELL=$lt_SHELL
25704
25705 # Whether or not to build shared libraries.
25706 build_libtool_libs=$enable_shared
25707
25708 # Whether or not to build static libraries.
25709 build_old_libs=$enable_static
25710
25711 # Whether or not to add -lc for building shared libraries.
25712 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25713
25714 # Whether or not to disallow shared libs when runtime libs are static
25715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25716
25717 # Whether or not to optimize for fast installation.
25718 fast_install=$enable_fast_install
25719
25720 # The host system.
25721 host_alias=$host_alias
25722 host=$host
25723 host_os=$host_os
25724
25725 # The build system.
25726 build_alias=$build_alias
25727 build=$build
25728 build_os=$build_os
25729
25730 # An echo program that does not interpret backslashes.
25731 echo=$lt_echo
25732
25733 # The archiver.
25734 AR=$lt_AR
25735 AR_FLAGS=$lt_AR_FLAGS
25736
25737 # A C compiler.
25738 LTCC=$lt_LTCC
25739
25740 # LTCC compiler flags.
25741 LTCFLAGS=$lt_LTCFLAGS
25742
25743 # A language-specific compiler.
25744 CC=$lt_compiler_GCJ
25745
25746 # Is the compiler the GNU C compiler?
25747 with_gcc=$GCC_GCJ
25748
25749 # An ERE matcher.
25750 EGREP=$lt_EGREP
25751
25752 # The linker used to build libraries.
25753 LD=$lt_LD_GCJ
25754
25755 # Whether we need hard or soft links.
25756 LN_S=$lt_LN_S
25757
25758 # A BSD-compatible nm program.
25759 NM=$lt_NM
25760
25761 # A symbol stripping program
25762 STRIP=$lt_STRIP
25763
25764 # Used to examine libraries when file_magic_cmd begins "file"
25765 MAGIC_CMD=$MAGIC_CMD
25766
25767 # Used on cygwin: DLL creation program.
25768 DLLTOOL="$DLLTOOL"
25769
25770 # Used on cygwin: object dumper.
25771 OBJDUMP="$OBJDUMP"
25772
25773 # Used on cygwin: assembler.
25774 AS="$AS"
25775
25776 # The name of the directory that contains temporary libtool files.
25777 objdir=$objdir
25778
25779 # How to create reloadable object files.
25780 reload_flag=$lt_reload_flag
25781 reload_cmds=$lt_reload_cmds
25782
25783 # How to pass a linker flag through the compiler.
25784 wl=$lt_lt_prog_compiler_wl_GCJ
25785
25786 # Object file suffix (normally "o").
25787 objext="$ac_objext"
25788
25789 # Old archive suffix (normally "a").
25790 libext="$libext"
25791
25792 # Shared library suffix (normally ".so").
25793 shrext_cmds='$shrext_cmds'
25794
25795 # Executable file suffix (normally "").
25796 exeext="$exeext"
25797
25798 # Additional compiler flags for building library objects.
25799 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25800 pic_mode=$pic_mode
25801
25802 # What is the maximum length of a command?
25803 max_cmd_len=$lt_cv_sys_max_cmd_len
25804
25805 # Does compiler simultaneously support -c and -o options?
25806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25807
25808 # Must we lock files when doing compilation?
25809 need_locks=$lt_need_locks
25810
25811 # Do we need the lib prefix for modules?
25812 need_lib_prefix=$need_lib_prefix
25813
25814 # Do we need a version for libraries?
25815 need_version=$need_version
25816
25817 # Whether dlopen is supported.
25818 dlopen_support=$enable_dlopen
25819
25820 # Whether dlopen of programs is supported.
25821 dlopen_self=$enable_dlopen_self
25822
25823 # Whether dlopen of statically linked programs is supported.
25824 dlopen_self_static=$enable_dlopen_self_static
25825
25826 # Compiler flag to prevent dynamic linking.
25827 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25828
25829 # Compiler flag to turn off builtin functions.
25830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25831
25832 # Compiler flag to allow reflexive dlopens.
25833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25834
25835 # Compiler flag to generate shared objects directly from archives.
25836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25837
25838 # Compiler flag to generate thread-safe objects.
25839 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25840
25841 # Library versioning type.
25842 version_type=$version_type
25843
25844 # Format of library name prefix.
25845 libname_spec=$lt_libname_spec
25846
25847 # List of archive names.  First name is the real one, the rest are links.
25848 # The last name is the one that the linker finds with -lNAME.
25849 library_names_spec=$lt_library_names_spec
25850
25851 # The coded name of the library, if different from the real name.
25852 soname_spec=$lt_soname_spec
25853
25854 # Commands used to build and install an old-style archive.
25855 RANLIB=$lt_RANLIB
25856 old_archive_cmds=$lt_old_archive_cmds_GCJ
25857 old_postinstall_cmds=$lt_old_postinstall_cmds
25858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25859
25860 # Create an old-style archive from a shared archive.
25861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25862
25863 # Create a temporary old-style archive to link instead of a shared archive.
25864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25865
25866 # Commands used to build and install a shared archive.
25867 archive_cmds=$lt_archive_cmds_GCJ
25868 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25869 postinstall_cmds=$lt_postinstall_cmds
25870 postuninstall_cmds=$lt_postuninstall_cmds
25871
25872 # Commands used to build a loadable module (assumed same as above if empty)
25873 module_cmds=$lt_module_cmds_GCJ
25874 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25875
25876 # Commands to strip libraries.
25877 old_striplib=$lt_old_striplib
25878 striplib=$lt_striplib
25879
25880 # Dependencies to place before the objects being linked to create a
25881 # shared library.
25882 predep_objects=$lt_predep_objects_GCJ
25883
25884 # Dependencies to place after the objects being linked to create a
25885 # shared library.
25886 postdep_objects=$lt_postdep_objects_GCJ
25887
25888 # Dependencies to place before the objects being linked to create a
25889 # shared library.
25890 predeps=$lt_predeps_GCJ
25891
25892 # Dependencies to place after the objects being linked to create a
25893 # shared library.
25894 postdeps=$lt_postdeps_GCJ
25895
25896 # The library search path used internally by the compiler when linking
25897 # a shared library.
25898 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25899
25900 # Method to check whether dependent libraries are shared objects.
25901 deplibs_check_method=$lt_deplibs_check_method
25902
25903 # Command to use when deplibs_check_method == file_magic.
25904 file_magic_cmd=$lt_file_magic_cmd
25905
25906 # Flag that allows shared libraries with undefined symbols to be built.
25907 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25908
25909 # Flag that forces no undefined symbols.
25910 no_undefined_flag=$lt_no_undefined_flag_GCJ
25911
25912 # Commands used to finish a libtool library installation in a directory.
25913 finish_cmds=$lt_finish_cmds
25914
25915 # Same as above, but a single script fragment to be evaled but not shown.
25916 finish_eval=$lt_finish_eval
25917
25918 # Take the output of nm and produce a listing of raw symbols and C names.
25919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25920
25921 # Transform the output of nm in a proper C declaration
25922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25923
25924 # Transform the output of nm in a C name address pair
25925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25926
25927 # This is the shared library runtime path variable.
25928 runpath_var=$runpath_var
25929
25930 # This is the shared library path variable.
25931 shlibpath_var=$shlibpath_var
25932
25933 # Is shlibpath searched before the hard-coded library search path?
25934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25935
25936 # How to hardcode a shared library path into an executable.
25937 hardcode_action=$hardcode_action_GCJ
25938
25939 # Whether we should hardcode library paths into libraries.
25940 hardcode_into_libs=$hardcode_into_libs
25941
25942 # Flag to hardcode \$libdir into a binary during linking.
25943 # This must work even if \$libdir does not exist.
25944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25945
25946 # If ld is used when linking, flag to hardcode \$libdir into
25947 # a binary during linking. This must work even if \$libdir does
25948 # not exist.
25949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25950
25951 # Whether we need a single -rpath flag with a separated argument.
25952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25953
25954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25955 # resulting binary.
25956 hardcode_direct=$hardcode_direct_GCJ
25957
25958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25959 # resulting binary.
25960 hardcode_minus_L=$hardcode_minus_L_GCJ
25961
25962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25963 # the resulting binary.
25964 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25965
25966 # Set to yes if building a shared library automatically hardcodes DIR into the library
25967 # and all subsequent libraries and executables linked against it.
25968 hardcode_automatic=$hardcode_automatic_GCJ
25969
25970 # Variables whose values should be saved in libtool wrapper scripts and
25971 # restored at relink time.
25972 variables_saved_for_relink="$variables_saved_for_relink"
25973
25974 # Whether libtool must link a program against all its dependency libraries.
25975 link_all_deplibs=$link_all_deplibs_GCJ
25976
25977 # Compile-time system search path for libraries
25978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25979
25980 # Run-time system search path for libraries
25981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25982
25983 # Fix the shell variable \$srcfile for the compiler.
25984 fix_srcfile_path="$fix_srcfile_path_GCJ"
25985
25986 # Set to yes if exported symbols are required.
25987 always_export_symbols=$always_export_symbols_GCJ
25988
25989 # The commands to list exported symbols.
25990 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25991
25992 # The commands to extract the exported symbol list from a shared archive.
25993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25994
25995 # Symbols that should not be listed in the preloaded symbols.
25996 exclude_expsyms=$lt_exclude_expsyms_GCJ
25997
25998 # Symbols that must always be exported.
25999 include_expsyms=$lt_include_expsyms_GCJ
26000
26001 # ### END LIBTOOL TAG CONFIG: $tagname
26002
26003 __EOF__
26004
26005
26006 else
26007   # If there is no Makefile yet, we rely on a make rule to execute
26008   # `config.status --recheck' to rerun these tests and create the
26009   # libtool script then.
26010   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26011   if test -f "$ltmain_in"; then
26012     test -f Makefile && make "$ltmain"
26013   fi
26014 fi
26015
26016
26017 ac_ext=c
26018 ac_cpp='$CPP $CPPFLAGS'
26019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26022
26023 CC="$lt_save_CC"
26024
26025         else
26026           tagname=""
26027         fi
26028         ;;
26029
26030       RC)
26031         ac_ext=c
26032 ac_cpp='$CPP $CPPFLAGS'
26033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26036
26037
26038 # Source file extension for RC test sources.
26039 ac_ext=rc
26040
26041 # Object file extension for compiled RC test sources.
26042 objext=o
26043 objext_RC=$objext
26044
26045 # Code to be used in simple compile tests
26046 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26047
26048 # Code to be used in simple link tests
26049 lt_simple_link_test_code="$lt_simple_compile_test_code"
26050
26051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26052
26053 # If no C compiler was specified, use CC.
26054 LTCC=${LTCC-"$CC"}
26055
26056 # If no C compiler flags were specified, use CFLAGS.
26057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26058
26059 # Allow CC to be a program name with arguments.
26060 compiler=$CC
26061
26062
26063 # save warnings/boilerplate of simple test code
26064 ac_outfile=conftest.$ac_objext
26065 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26067 _lt_compiler_boilerplate=`cat conftest.err`
26068 $rm conftest*
26069
26070 ac_outfile=conftest.$ac_objext
26071 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26073 _lt_linker_boilerplate=`cat conftest.err`
26074 $rm conftest*
26075
26076
26077 # Allow CC to be a program name with arguments.
26078 lt_save_CC="$CC"
26079 CC=${RC-"windres"}
26080 compiler=$CC
26081 compiler_RC=$CC
26082 for cc_temp in $compiler""; do
26083   case $cc_temp in
26084     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26085     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26086     \-*) ;;
26087     *) break;;
26088   esac
26089 done
26090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26091
26092 lt_cv_prog_compiler_c_o_RC=yes
26093
26094 # The else clause should only fire when bootstrapping the
26095 # libtool distribution, otherwise you forgot to ship ltmain.sh
26096 # with your package, and you will get complaints that there are
26097 # no rules to generate ltmain.sh.
26098 if test -f "$ltmain"; then
26099   # See if we are running on zsh, and set the options which allow our commands through
26100   # without removal of \ escapes.
26101   if test -n "${ZSH_VERSION+set}" ; then
26102     setopt NO_GLOB_SUBST
26103   fi
26104   # Now quote all the things that may contain metacharacters while being
26105   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26106   # variables and quote the copies for generation of the libtool script.
26107   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26108     SED SHELL STRIP \
26109     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26110     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26111     deplibs_check_method reload_flag reload_cmds need_locks \
26112     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26113     lt_cv_sys_global_symbol_to_c_name_address \
26114     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26115     old_postinstall_cmds old_postuninstall_cmds \
26116     compiler_RC \
26117     CC_RC \
26118     LD_RC \
26119     lt_prog_compiler_wl_RC \
26120     lt_prog_compiler_pic_RC \
26121     lt_prog_compiler_static_RC \
26122     lt_prog_compiler_no_builtin_flag_RC \
26123     export_dynamic_flag_spec_RC \
26124     thread_safe_flag_spec_RC \
26125     whole_archive_flag_spec_RC \
26126     enable_shared_with_static_runtimes_RC \
26127     old_archive_cmds_RC \
26128     old_archive_from_new_cmds_RC \
26129     predep_objects_RC \
26130     postdep_objects_RC \
26131     predeps_RC \
26132     postdeps_RC \
26133     compiler_lib_search_path_RC \
26134     archive_cmds_RC \
26135     archive_expsym_cmds_RC \
26136     postinstall_cmds_RC \
26137     postuninstall_cmds_RC \
26138     old_archive_from_expsyms_cmds_RC \
26139     allow_undefined_flag_RC \
26140     no_undefined_flag_RC \
26141     export_symbols_cmds_RC \
26142     hardcode_libdir_flag_spec_RC \
26143     hardcode_libdir_flag_spec_ld_RC \
26144     hardcode_libdir_separator_RC \
26145     hardcode_automatic_RC \
26146     module_cmds_RC \
26147     module_expsym_cmds_RC \
26148     lt_cv_prog_compiler_c_o_RC \
26149     exclude_expsyms_RC \
26150     include_expsyms_RC; do
26151
26152     case $var in
26153     old_archive_cmds_RC | \
26154     old_archive_from_new_cmds_RC | \
26155     archive_cmds_RC | \
26156     archive_expsym_cmds_RC | \
26157     module_cmds_RC | \
26158     module_expsym_cmds_RC | \
26159     old_archive_from_expsyms_cmds_RC | \
26160     export_symbols_cmds_RC | \
26161     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26162     postinstall_cmds | postuninstall_cmds | \
26163     old_postinstall_cmds | old_postuninstall_cmds | \
26164     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26165       # Double-quote double-evaled strings.
26166       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26167       ;;
26168     *)
26169       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26170       ;;
26171     esac
26172   done
26173
26174   case $lt_echo in
26175   *'\$0 --fallback-echo"')
26176     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26177     ;;
26178   esac
26179
26180 cfgfile="$ofile"
26181
26182   cat <<__EOF__ >> "$cfgfile"
26183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26184
26185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26186
26187 # Shell to use when invoking shell scripts.
26188 SHELL=$lt_SHELL
26189
26190 # Whether or not to build shared libraries.
26191 build_libtool_libs=$enable_shared
26192
26193 # Whether or not to build static libraries.
26194 build_old_libs=$enable_static
26195
26196 # Whether or not to add -lc for building shared libraries.
26197 build_libtool_need_lc=$archive_cmds_need_lc_RC
26198
26199 # Whether or not to disallow shared libs when runtime libs are static
26200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26201
26202 # Whether or not to optimize for fast installation.
26203 fast_install=$enable_fast_install
26204
26205 # The host system.
26206 host_alias=$host_alias
26207 host=$host
26208 host_os=$host_os
26209
26210 # The build system.
26211 build_alias=$build_alias
26212 build=$build
26213 build_os=$build_os
26214
26215 # An echo program that does not interpret backslashes.
26216 echo=$lt_echo
26217
26218 # The archiver.
26219 AR=$lt_AR
26220 AR_FLAGS=$lt_AR_FLAGS
26221
26222 # A C compiler.
26223 LTCC=$lt_LTCC
26224
26225 # LTCC compiler flags.
26226 LTCFLAGS=$lt_LTCFLAGS
26227
26228 # A language-specific compiler.
26229 CC=$lt_compiler_RC
26230
26231 # Is the compiler the GNU C compiler?
26232 with_gcc=$GCC_RC
26233
26234 # An ERE matcher.
26235 EGREP=$lt_EGREP
26236
26237 # The linker used to build libraries.
26238 LD=$lt_LD_RC
26239
26240 # Whether we need hard or soft links.
26241 LN_S=$lt_LN_S
26242
26243 # A BSD-compatible nm program.
26244 NM=$lt_NM
26245
26246 # A symbol stripping program
26247 STRIP=$lt_STRIP
26248
26249 # Used to examine libraries when file_magic_cmd begins "file"
26250 MAGIC_CMD=$MAGIC_CMD
26251
26252 # Used on cygwin: DLL creation program.
26253 DLLTOOL="$DLLTOOL"
26254
26255 # Used on cygwin: object dumper.
26256 OBJDUMP="$OBJDUMP"
26257
26258 # Used on cygwin: assembler.
26259 AS="$AS"
26260
26261 # The name of the directory that contains temporary libtool files.
26262 objdir=$objdir
26263
26264 # How to create reloadable object files.
26265 reload_flag=$lt_reload_flag
26266 reload_cmds=$lt_reload_cmds
26267
26268 # How to pass a linker flag through the compiler.
26269 wl=$lt_lt_prog_compiler_wl_RC
26270
26271 # Object file suffix (normally "o").
26272 objext="$ac_objext"
26273
26274 # Old archive suffix (normally "a").
26275 libext="$libext"
26276
26277 # Shared library suffix (normally ".so").
26278 shrext_cmds='$shrext_cmds'
26279
26280 # Executable file suffix (normally "").
26281 exeext="$exeext"
26282
26283 # Additional compiler flags for building library objects.
26284 pic_flag=$lt_lt_prog_compiler_pic_RC
26285 pic_mode=$pic_mode
26286
26287 # What is the maximum length of a command?
26288 max_cmd_len=$lt_cv_sys_max_cmd_len
26289
26290 # Does compiler simultaneously support -c and -o options?
26291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26292
26293 # Must we lock files when doing compilation?
26294 need_locks=$lt_need_locks
26295
26296 # Do we need the lib prefix for modules?
26297 need_lib_prefix=$need_lib_prefix
26298
26299 # Do we need a version for libraries?
26300 need_version=$need_version
26301
26302 # Whether dlopen is supported.
26303 dlopen_support=$enable_dlopen
26304
26305 # Whether dlopen of programs is supported.
26306 dlopen_self=$enable_dlopen_self
26307
26308 # Whether dlopen of statically linked programs is supported.
26309 dlopen_self_static=$enable_dlopen_self_static
26310
26311 # Compiler flag to prevent dynamic linking.
26312 link_static_flag=$lt_lt_prog_compiler_static_RC
26313
26314 # Compiler flag to turn off builtin functions.
26315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26316
26317 # Compiler flag to allow reflexive dlopens.
26318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26319
26320 # Compiler flag to generate shared objects directly from archives.
26321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26322
26323 # Compiler flag to generate thread-safe objects.
26324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26325
26326 # Library versioning type.
26327 version_type=$version_type
26328
26329 # Format of library name prefix.
26330 libname_spec=$lt_libname_spec
26331
26332 # List of archive names.  First name is the real one, the rest are links.
26333 # The last name is the one that the linker finds with -lNAME.
26334 library_names_spec=$lt_library_names_spec
26335
26336 # The coded name of the library, if different from the real name.
26337 soname_spec=$lt_soname_spec
26338
26339 # Commands used to build and install an old-style archive.
26340 RANLIB=$lt_RANLIB
26341 old_archive_cmds=$lt_old_archive_cmds_RC
26342 old_postinstall_cmds=$lt_old_postinstall_cmds
26343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26344
26345 # Create an old-style archive from a shared archive.
26346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26347
26348 # Create a temporary old-style archive to link instead of a shared archive.
26349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26350
26351 # Commands used to build and install a shared archive.
26352 archive_cmds=$lt_archive_cmds_RC
26353 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26354 postinstall_cmds=$lt_postinstall_cmds
26355 postuninstall_cmds=$lt_postuninstall_cmds
26356
26357 # Commands used to build a loadable module (assumed same as above if empty)
26358 module_cmds=$lt_module_cmds_RC
26359 module_expsym_cmds=$lt_module_expsym_cmds_RC
26360
26361 # Commands to strip libraries.
26362 old_striplib=$lt_old_striplib
26363 striplib=$lt_striplib
26364
26365 # Dependencies to place before the objects being linked to create a
26366 # shared library.
26367 predep_objects=$lt_predep_objects_RC
26368
26369 # Dependencies to place after the objects being linked to create a
26370 # shared library.
26371 postdep_objects=$lt_postdep_objects_RC
26372
26373 # Dependencies to place before the objects being linked to create a
26374 # shared library.
26375 predeps=$lt_predeps_RC
26376
26377 # Dependencies to place after the objects being linked to create a
26378 # shared library.
26379 postdeps=$lt_postdeps_RC
26380
26381 # The library search path used internally by the compiler when linking
26382 # a shared library.
26383 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26384
26385 # Method to check whether dependent libraries are shared objects.
26386 deplibs_check_method=$lt_deplibs_check_method
26387
26388 # Command to use when deplibs_check_method == file_magic.
26389 file_magic_cmd=$lt_file_magic_cmd
26390
26391 # Flag that allows shared libraries with undefined symbols to be built.
26392 allow_undefined_flag=$lt_allow_undefined_flag_RC
26393
26394 # Flag that forces no undefined symbols.
26395 no_undefined_flag=$lt_no_undefined_flag_RC
26396
26397 # Commands used to finish a libtool library installation in a directory.
26398 finish_cmds=$lt_finish_cmds
26399
26400 # Same as above, but a single script fragment to be evaled but not shown.
26401 finish_eval=$lt_finish_eval
26402
26403 # Take the output of nm and produce a listing of raw symbols and C names.
26404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26405
26406 # Transform the output of nm in a proper C declaration
26407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26408
26409 # Transform the output of nm in a C name address pair
26410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26411
26412 # This is the shared library runtime path variable.
26413 runpath_var=$runpath_var
26414
26415 # This is the shared library path variable.
26416 shlibpath_var=$shlibpath_var
26417
26418 # Is shlibpath searched before the hard-coded library search path?
26419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26420
26421 # How to hardcode a shared library path into an executable.
26422 hardcode_action=$hardcode_action_RC
26423
26424 # Whether we should hardcode library paths into libraries.
26425 hardcode_into_libs=$hardcode_into_libs
26426
26427 # Flag to hardcode \$libdir into a binary during linking.
26428 # This must work even if \$libdir does not exist.
26429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26430
26431 # If ld is used when linking, flag to hardcode \$libdir into
26432 # a binary during linking. This must work even if \$libdir does
26433 # not exist.
26434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26435
26436 # Whether we need a single -rpath flag with a separated argument.
26437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26438
26439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26440 # resulting binary.
26441 hardcode_direct=$hardcode_direct_RC
26442
26443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26444 # resulting binary.
26445 hardcode_minus_L=$hardcode_minus_L_RC
26446
26447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26448 # the resulting binary.
26449 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26450
26451 # Set to yes if building a shared library automatically hardcodes DIR into the library
26452 # and all subsequent libraries and executables linked against it.
26453 hardcode_automatic=$hardcode_automatic_RC
26454
26455 # Variables whose values should be saved in libtool wrapper scripts and
26456 # restored at relink time.
26457 variables_saved_for_relink="$variables_saved_for_relink"
26458
26459 # Whether libtool must link a program against all its dependency libraries.
26460 link_all_deplibs=$link_all_deplibs_RC
26461
26462 # Compile-time system search path for libraries
26463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26464
26465 # Run-time system search path for libraries
26466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26467
26468 # Fix the shell variable \$srcfile for the compiler.
26469 fix_srcfile_path="$fix_srcfile_path_RC"
26470
26471 # Set to yes if exported symbols are required.
26472 always_export_symbols=$always_export_symbols_RC
26473
26474 # The commands to list exported symbols.
26475 export_symbols_cmds=$lt_export_symbols_cmds_RC
26476
26477 # The commands to extract the exported symbol list from a shared archive.
26478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26479
26480 # Symbols that should not be listed in the preloaded symbols.
26481 exclude_expsyms=$lt_exclude_expsyms_RC
26482
26483 # Symbols that must always be exported.
26484 include_expsyms=$lt_include_expsyms_RC
26485
26486 # ### END LIBTOOL TAG CONFIG: $tagname
26487
26488 __EOF__
26489
26490
26491 else
26492   # If there is no Makefile yet, we rely on a make rule to execute
26493   # `config.status --recheck' to rerun these tests and create the
26494   # libtool script then.
26495   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26496   if test -f "$ltmain_in"; then
26497     test -f Makefile && make "$ltmain"
26498   fi
26499 fi
26500
26501
26502 ac_ext=c
26503 ac_cpp='$CPP $CPPFLAGS'
26504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26507
26508 CC="$lt_save_CC"
26509
26510         ;;
26511
26512       *)
26513         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26514 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26515    { (exit 1); exit 1; }; }
26516         ;;
26517       esac
26518
26519       # Append the new tag name to the list of available tags.
26520       if test -n "$tagname" ; then
26521       available_tags="$available_tags $tagname"
26522     fi
26523     fi
26524   done
26525   IFS="$lt_save_ifs"
26526
26527   # Now substitute the updated list of available tags.
26528   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26529     mv "${ofile}T" "$ofile"
26530     chmod +x "$ofile"
26531   else
26532     rm -f "${ofile}T"
26533     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26534 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26535    { (exit 1); exit 1; }; }
26536   fi
26537 fi
26538
26539
26540
26541 # This can be used to rebuild libtool when needed
26542 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26543
26544 # Always use our own libtool.
26545 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26546
26547 # Prevent multiple expansion
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569 if test "$lt_cv_dlopen_self" = "yes" ; then
26570
26571 cat >>confdefs.h <<\_ACEOF
26572 #define CAN_DLOPEN_SELF 1
26573 _ACEOF
26574
26575 fi
26576
26577 etags_version=`$ETAGS --version 2>&1`
26578 case "$etags_version" in
26579         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26580         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26581         *) ETAGSFLAGS="" ;;
26582 esac
26583 ETAGSFLAGS=$ETAGSFLAGS
26584
26585
26586 if test "$WITH_LLVMGCCDIR" = "default" ; then
26587   LLVMGCC="llvm-gcc${EXEEXT}"
26588   LLVMGXX="llvm-g++${EXEEXT}"
26589   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26590 set dummy $LLVMGCC; ac_word=$2
26591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26593 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26594   echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596   case $LLVMGCC in
26597   [\\/]* | ?:[\\/]*)
26598   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26599   ;;
26600   *)
26601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602 for as_dir in $PATH
26603 do
26604   IFS=$as_save_IFS
26605   test -z "$as_dir" && as_dir=.
26606   for ac_exec_ext in '' $ac_executable_extensions; do
26607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26608     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26610     break 2
26611   fi
26612 done
26613 done
26614 IFS=$as_save_IFS
26615
26616   ;;
26617 esac
26618 fi
26619 LLVMGCC=$ac_cv_path_LLVMGCC
26620 if test -n "$LLVMGCC"; then
26621   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26622 echo "${ECHO_T}$LLVMGCC" >&6; }
26623 else
26624   { echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6; }
26626 fi
26627
26628
26629   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26630 set dummy $LLVMGXX; ac_word=$2
26631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26633 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636   case $LLVMGXX in
26637   [\\/]* | ?:[\\/]*)
26638   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26639   ;;
26640   *)
26641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26642 for as_dir in $PATH
26643 do
26644   IFS=$as_save_IFS
26645   test -z "$as_dir" && as_dir=.
26646   for ac_exec_ext in '' $ac_executable_extensions; do
26647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26648     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26650     break 2
26651   fi
26652 done
26653 done
26654 IFS=$as_save_IFS
26655
26656   ;;
26657 esac
26658 fi
26659 LLVMGXX=$ac_cv_path_LLVMGXX
26660 if test -n "$LLVMGXX"; then
26661   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26662 echo "${ECHO_T}$LLVMGXX" >&6; }
26663 else
26664   { echo "$as_me:$LINENO: result: no" >&5
26665 echo "${ECHO_T}no" >&6; }
26666 fi
26667
26668
26669 else
26670   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26671   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26672   LLVMGCC=$LLVMGCC
26673
26674   LLVMGXX=$LLVMGXX
26675
26676 fi
26677
26678 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26679 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26680
26681 ICC=no
26682 IXX=no
26683 case $CC in
26684   icc*|icpc*)
26685     ICC=yes
26686     IXX=yes
26687     ;;
26688    *)
26689     ;;
26690 esac
26691
26692 if test "$GCC" != "yes" && test "$ICC" != "yes"
26693 then
26694   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26695 echo "$as_me: error: gcc|icc required but not found" >&2;}
26696    { (exit 1); exit 1; }; }
26697 fi
26698
26699 if test "$GXX" != "yes" && test "$IXX" != "yes"
26700 then
26701   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26702 echo "$as_me: error: g++|icc required but not found" >&2;}
26703    { (exit 1); exit 1; }; }
26704 fi
26705
26706 if test "$GCC" = "yes"
26707 then
26708   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26709   if test "$gccmajor" -lt "3"
26710   then
26711     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26712 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26713    { (exit 1); exit 1; }; }
26714   fi
26715 fi
26716
26717 if test -z "$llvm_cv_gnu_make_command"
26718 then
26719   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26720 echo "$as_me: error: GNU Make required but not found" >&2;}
26721    { (exit 1); exit 1; }; }
26722 fi
26723
26724 { echo "$as_me:$LINENO: result: ok" >&5
26725 echo "${ECHO_T}ok" >&6; }
26726
26727
26728
26729 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26730 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26731 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26732   echo $ECHO_N "(cached) $ECHO_C" >&6
26733 else
26734   ac_check_lib_save_LIBS=$LIBS
26735 LIBS="-lelf  $LIBS"
26736 cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h.  */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h.  */
26742
26743 /* Override any GCC internal prototype to avoid an error.
26744    Use char because int might match the return type of a GCC
26745    builtin and then its argument prototype would still apply.  */
26746 #ifdef __cplusplus
26747 extern "C"
26748 #endif
26749 char elf_begin ();
26750 int
26751 main ()
26752 {
26753 return elf_begin ();
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (ac_try="$ac_link"
26760 case "(($ac_try" in
26761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762   *) ac_try_echo=$ac_try;;
26763 esac
26764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765   (eval "$ac_link") 2>conftest.er1
26766   ac_status=$?
26767   grep -v '^ *+' conftest.er1 >conftest.err
26768   rm -f conftest.er1
26769   cat conftest.err >&5
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); } &&
26772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26773   { (case "(($ac_try" in
26774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775   *) ac_try_echo=$ac_try;;
26776 esac
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778   (eval "$ac_try") 2>&5
26779   ac_status=$?
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); }; } &&
26782          { ac_try='test -s conftest$ac_exeext'
26783   { (case "(($ac_try" in
26784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785   *) ac_try_echo=$ac_try;;
26786 esac
26787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788   (eval "$ac_try") 2>&5
26789   ac_status=$?
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); }; }; then
26792   ac_cv_lib_elf_elf_begin=yes
26793 else
26794   echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26796
26797         ac_cv_lib_elf_elf_begin=no
26798 fi
26799
26800 rm -f core conftest.err conftest.$ac_objext \
26801       conftest$ac_exeext conftest.$ac_ext
26802 LIBS=$ac_check_lib_save_LIBS
26803 fi
26804 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26805 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26806 if test $ac_cv_lib_elf_elf_begin = yes; then
26807   cat >>confdefs.h <<_ACEOF
26808 #define HAVE_LIBELF 1
26809 _ACEOF
26810
26811   LIBS="-lelf $LIBS"
26812
26813 fi
26814
26815
26816 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26817 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26818 if test "${ac_cv_lib_m_sin+set}" = set; then
26819   echo $ECHO_N "(cached) $ECHO_C" >&6
26820 else
26821   ac_check_lib_save_LIBS=$LIBS
26822 LIBS="-lm  $LIBS"
26823 cat >conftest.$ac_ext <<_ACEOF
26824 /* confdefs.h.  */
26825 _ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h.  */
26829
26830 /* Override any GCC internal prototype to avoid an error.
26831    Use char because int might match the return type of a GCC
26832    builtin and then its argument prototype would still apply.  */
26833 #ifdef __cplusplus
26834 extern "C"
26835 #endif
26836 char sin ();
26837 int
26838 main ()
26839 {
26840 return sin ();
26841   ;
26842   return 0;
26843 }
26844 _ACEOF
26845 rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (ac_try="$ac_link"
26847 case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852   (eval "$ac_link") 2>conftest.er1
26853   ac_status=$?
26854   grep -v '^ *+' conftest.er1 >conftest.err
26855   rm -f conftest.er1
26856   cat conftest.err >&5
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); } &&
26859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26860   { (case "(($ac_try" in
26861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862   *) ac_try_echo=$ac_try;;
26863 esac
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865   (eval "$ac_try") 2>&5
26866   ac_status=$?
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); }; } &&
26869          { ac_try='test -s conftest$ac_exeext'
26870   { (case "(($ac_try" in
26871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872   *) ac_try_echo=$ac_try;;
26873 esac
26874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875   (eval "$ac_try") 2>&5
26876   ac_status=$?
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); }; }; then
26879   ac_cv_lib_m_sin=yes
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884         ac_cv_lib_m_sin=no
26885 fi
26886
26887 rm -f core conftest.err conftest.$ac_objext \
26888       conftest$ac_exeext conftest.$ac_ext
26889 LIBS=$ac_check_lib_save_LIBS
26890 fi
26891 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26892 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26893 if test $ac_cv_lib_m_sin = yes; then
26894   cat >>confdefs.h <<_ACEOF
26895 #define HAVE_LIBM 1
26896 _ACEOF
26897
26898   LIBS="-lm $LIBS"
26899
26900 fi
26901
26902 if test "$llvm_cv_os_type" == "MingW" ; then
26903
26904 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26905 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26906 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26907   echo $ECHO_N "(cached) $ECHO_C" >&6
26908 else
26909   ac_check_lib_save_LIBS=$LIBS
26910 LIBS="-limagehlp  $LIBS"
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h.  */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h.  */
26917
26918
26919 int
26920 main ()
26921 {
26922 return main ();
26923   ;
26924   return 0;
26925 }
26926 _ACEOF
26927 rm -f conftest.$ac_objext conftest$ac_exeext
26928 if { (ac_try="$ac_link"
26929 case "(($ac_try" in
26930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931   *) ac_try_echo=$ac_try;;
26932 esac
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934   (eval "$ac_link") 2>conftest.er1
26935   ac_status=$?
26936   grep -v '^ *+' conftest.er1 >conftest.err
26937   rm -f conftest.er1
26938   cat conftest.err >&5
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } &&
26941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26942   { (case "(($ac_try" in
26943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944   *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947   (eval "$ac_try") 2>&5
26948   ac_status=$?
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); }; } &&
26951          { ac_try='test -s conftest$ac_exeext'
26952   { (case "(($ac_try" in
26953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954   *) ac_try_echo=$ac_try;;
26955 esac
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957   (eval "$ac_try") 2>&5
26958   ac_status=$?
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); }; }; then
26961   ac_cv_lib_imagehlp_main=yes
26962 else
26963   echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966         ac_cv_lib_imagehlp_main=no
26967 fi
26968
26969 rm -f core conftest.err conftest.$ac_objext \
26970       conftest$ac_exeext conftest.$ac_ext
26971 LIBS=$ac_check_lib_save_LIBS
26972 fi
26973 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26974 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26975 if test $ac_cv_lib_imagehlp_main = yes; then
26976   cat >>confdefs.h <<_ACEOF
26977 #define HAVE_LIBIMAGEHLP 1
26978 _ACEOF
26979
26980   LIBS="-limagehlp $LIBS"
26981
26982 fi
26983
26984
26985 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26986 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26987 if test "${ac_cv_lib_psapi_main+set}" = set; then
26988   echo $ECHO_N "(cached) $ECHO_C" >&6
26989 else
26990   ac_check_lib_save_LIBS=$LIBS
26991 LIBS="-lpsapi  $LIBS"
26992 cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998
26999
27000 int
27001 main ()
27002 {
27003 return main ();
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 rm -f conftest.$ac_objext conftest$ac_exeext
27009 if { (ac_try="$ac_link"
27010 case "(($ac_try" in
27011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012   *) ac_try_echo=$ac_try;;
27013 esac
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015   (eval "$ac_link") 2>conftest.er1
27016   ac_status=$?
27017   grep -v '^ *+' conftest.er1 >conftest.err
27018   rm -f conftest.er1
27019   cat conftest.err >&5
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); } &&
27022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023   { (case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028   (eval "$ac_try") 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; } &&
27032          { ac_try='test -s conftest$ac_exeext'
27033   { (case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; }; then
27042   ac_cv_lib_psapi_main=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047         ac_cv_lib_psapi_main=no
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext \
27051       conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27053 fi
27054 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27055 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27056 if test $ac_cv_lib_psapi_main = yes; then
27057   cat >>confdefs.h <<_ACEOF
27058 #define HAVE_LIBPSAPI 1
27059 _ACEOF
27060
27061   LIBS="-lpsapi $LIBS"
27062
27063 fi
27064
27065 fi
27066
27067 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27068 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27069 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27070   echo $ECHO_N "(cached) $ECHO_C" >&6
27071 else
27072   ac_func_search_save_LIBS=$LIBS
27073 cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079
27080 /* Override any GCC internal prototype to avoid an error.
27081    Use char because int might match the return type of a GCC
27082    builtin and then its argument prototype would still apply.  */
27083 #ifdef __cplusplus
27084 extern "C"
27085 #endif
27086 char lt_dlopen ();
27087 int
27088 main ()
27089 {
27090 return lt_dlopen ();
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 for ac_lib in '' ltdl; do
27096   if test -z "$ac_lib"; then
27097     ac_res="none required"
27098   else
27099     ac_res=-l$ac_lib
27100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27101   fi
27102   rm -f conftest.$ac_objext conftest$ac_exeext
27103 if { (ac_try="$ac_link"
27104 case "(($ac_try" in
27105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106   *) ac_try_echo=$ac_try;;
27107 esac
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109   (eval "$ac_link") 2>conftest.er1
27110   ac_status=$?
27111   grep -v '^ *+' conftest.er1 >conftest.err
27112   rm -f conftest.er1
27113   cat conftest.err >&5
27114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); } &&
27116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27117   { (case "(($ac_try" in
27118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119   *) ac_try_echo=$ac_try;;
27120 esac
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122   (eval "$ac_try") 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); }; } &&
27126          { ac_try='test -s conftest$ac_exeext'
27127   { (case "(($ac_try" in
27128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129   *) ac_try_echo=$ac_try;;
27130 esac
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132   (eval "$ac_try") 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); }; }; then
27136   ac_cv_search_lt_dlopen=$ac_res
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141
27142 fi
27143
27144 rm -f core conftest.err conftest.$ac_objext \
27145       conftest$ac_exeext
27146   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27147   break
27148 fi
27149 done
27150 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27151   :
27152 else
27153   ac_cv_search_lt_dlopen=no
27154 fi
27155 rm conftest.$ac_ext
27156 LIBS=$ac_func_search_save_LIBS
27157 fi
27158 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27159 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27160 ac_res=$ac_cv_search_lt_dlopen
27161 if test "$ac_res" != no; then
27162   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27163
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_LT_DLOPEN 1
27166 _ACEOF
27167
27168 else
27169   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27170                            not be available" >&5
27171 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27172                            not be available" >&2;}
27173 fi
27174
27175
27176 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27177 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27178 if test "${ac_cv_search_dlopen+set}" = set; then
27179   echo $ECHO_N "(cached) $ECHO_C" >&6
27180 else
27181   ac_func_search_save_LIBS=$LIBS
27182 cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h.  */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h.  */
27188
27189 /* Override any GCC internal prototype to avoid an error.
27190    Use char because int might match the return type of a GCC
27191    builtin and then its argument prototype would still apply.  */
27192 #ifdef __cplusplus
27193 extern "C"
27194 #endif
27195 char dlopen ();
27196 int
27197 main ()
27198 {
27199 return dlopen ();
27200   ;
27201   return 0;
27202 }
27203 _ACEOF
27204 for ac_lib in '' dl; do
27205   if test -z "$ac_lib"; then
27206     ac_res="none required"
27207   else
27208     ac_res=-l$ac_lib
27209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27210   fi
27211   rm -f conftest.$ac_objext conftest$ac_exeext
27212 if { (ac_try="$ac_link"
27213 case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218   (eval "$ac_link") 2>conftest.er1
27219   ac_status=$?
27220   grep -v '^ *+' conftest.er1 >conftest.err
27221   rm -f conftest.er1
27222   cat conftest.err >&5
27223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224   (exit $ac_status); } &&
27225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27226   { (case "(($ac_try" in
27227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228   *) ac_try_echo=$ac_try;;
27229 esac
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231   (eval "$ac_try") 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; } &&
27235          { ac_try='test -s conftest$ac_exeext'
27236   { (case "(($ac_try" in
27237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238   *) ac_try_echo=$ac_try;;
27239 esac
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241   (eval "$ac_try") 2>&5
27242   ac_status=$?
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); }; }; then
27245   ac_cv_search_dlopen=$ac_res
27246 else
27247   echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27249
27250
27251 fi
27252
27253 rm -f core conftest.err conftest.$ac_objext \
27254       conftest$ac_exeext
27255   if test "${ac_cv_search_dlopen+set}" = set; then
27256   break
27257 fi
27258 done
27259 if test "${ac_cv_search_dlopen+set}" = set; then
27260   :
27261 else
27262   ac_cv_search_dlopen=no
27263 fi
27264 rm conftest.$ac_ext
27265 LIBS=$ac_func_search_save_LIBS
27266 fi
27267 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27268 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27269 ac_res=$ac_cv_search_dlopen
27270 if test "$ac_res" != no; then
27271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27272
27273 cat >>confdefs.h <<\_ACEOF
27274 #define HAVE_DLOPEN 1
27275 _ACEOF
27276
27277 else
27278   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27279 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27280 fi
27281
27282
27283 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27284 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27285 if test "${ac_cv_search_mallinfo+set}" = set; then
27286   echo $ECHO_N "(cached) $ECHO_C" >&6
27287 else
27288   ac_func_search_save_LIBS=$LIBS
27289 cat >conftest.$ac_ext <<_ACEOF
27290 /* confdefs.h.  */
27291 _ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h.  */
27295
27296 /* Override any GCC internal prototype to avoid an error.
27297    Use char because int might match the return type of a GCC
27298    builtin and then its argument prototype would still apply.  */
27299 #ifdef __cplusplus
27300 extern "C"
27301 #endif
27302 char mallinfo ();
27303 int
27304 main ()
27305 {
27306 return mallinfo ();
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 for ac_lib in '' malloc; do
27312   if test -z "$ac_lib"; then
27313     ac_res="none required"
27314   else
27315     ac_res=-l$ac_lib
27316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27317   fi
27318   rm -f conftest.$ac_objext conftest$ac_exeext
27319 if { (ac_try="$ac_link"
27320 case "(($ac_try" in
27321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322   *) ac_try_echo=$ac_try;;
27323 esac
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325   (eval "$ac_link") 2>conftest.er1
27326   ac_status=$?
27327   grep -v '^ *+' conftest.er1 >conftest.err
27328   rm -f conftest.er1
27329   cat conftest.err >&5
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); } &&
27332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27333   { (case "(($ac_try" in
27334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335   *) ac_try_echo=$ac_try;;
27336 esac
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338   (eval "$ac_try") 2>&5
27339   ac_status=$?
27340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341   (exit $ac_status); }; } &&
27342          { ac_try='test -s conftest$ac_exeext'
27343   { (case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_try") 2>&5
27349   ac_status=$?
27350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351   (exit $ac_status); }; }; then
27352   ac_cv_search_mallinfo=$ac_res
27353 else
27354   echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27356
27357
27358 fi
27359
27360 rm -f core conftest.err conftest.$ac_objext \
27361       conftest$ac_exeext
27362   if test "${ac_cv_search_mallinfo+set}" = set; then
27363   break
27364 fi
27365 done
27366 if test "${ac_cv_search_mallinfo+set}" = set; then
27367   :
27368 else
27369   ac_cv_search_mallinfo=no
27370 fi
27371 rm conftest.$ac_ext
27372 LIBS=$ac_func_search_save_LIBS
27373 fi
27374 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27375 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27376 ac_res=$ac_cv_search_mallinfo
27377 if test "$ac_res" != no; then
27378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27379
27380 cat >>confdefs.h <<\_ACEOF
27381 #define HAVE_MALLINFO 1
27382 _ACEOF
27383
27384 fi
27385
27386
27387 if test "$ENABLE_THREADS" -eq 1 ; then
27388
27389 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27390 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27391 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   ac_check_lib_save_LIBS=$LIBS
27395 LIBS="-lpthread  $LIBS"
27396 cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402
27403 /* Override any GCC internal prototype to avoid an error.
27404    Use char because int might match the return type of a GCC
27405    builtin and then its argument prototype would still apply.  */
27406 #ifdef __cplusplus
27407 extern "C"
27408 #endif
27409 char pthread_mutex_init ();
27410 int
27411 main ()
27412 {
27413 return pthread_mutex_init ();
27414   ;
27415   return 0;
27416 }
27417 _ACEOF
27418 rm -f conftest.$ac_objext conftest$ac_exeext
27419 if { (ac_try="$ac_link"
27420 case "(($ac_try" in
27421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422   *) ac_try_echo=$ac_try;;
27423 esac
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425   (eval "$ac_link") 2>conftest.er1
27426   ac_status=$?
27427   grep -v '^ *+' conftest.er1 >conftest.err
27428   rm -f conftest.er1
27429   cat conftest.err >&5
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); } &&
27432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27433   { (case "(($ac_try" in
27434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435   *) ac_try_echo=$ac_try;;
27436 esac
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438   (eval "$ac_try") 2>&5
27439   ac_status=$?
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); }; } &&
27442          { ac_try='test -s conftest$ac_exeext'
27443   { (case "(($ac_try" in
27444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445   *) ac_try_echo=$ac_try;;
27446 esac
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448   (eval "$ac_try") 2>&5
27449   ac_status=$?
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); }; }; then
27452   ac_cv_lib_pthread_pthread_mutex_init=yes
27453 else
27454   echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27456
27457         ac_cv_lib_pthread_pthread_mutex_init=no
27458 fi
27459
27460 rm -f core conftest.err conftest.$ac_objext \
27461       conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27463 fi
27464 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27465 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27466 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27467   cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBPTHREAD 1
27469 _ACEOF
27470
27471   LIBS="-lpthread $LIBS"
27472
27473 fi
27474
27475   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27476 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27477 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27478   echo $ECHO_N "(cached) $ECHO_C" >&6
27479 else
27480   ac_func_search_save_LIBS=$LIBS
27481 cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h.  */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h.  */
27487
27488 /* Override any GCC internal prototype to avoid an error.
27489    Use char because int might match the return type of a GCC
27490    builtin and then its argument prototype would still apply.  */
27491 #ifdef __cplusplus
27492 extern "C"
27493 #endif
27494 char pthread_mutex_lock ();
27495 int
27496 main ()
27497 {
27498 return pthread_mutex_lock ();
27499   ;
27500   return 0;
27501 }
27502 _ACEOF
27503 for ac_lib in '' pthread; do
27504   if test -z "$ac_lib"; then
27505     ac_res="none required"
27506   else
27507     ac_res=-l$ac_lib
27508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27509   fi
27510   rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_link") 2>conftest.er1
27518   ac_status=$?
27519   grep -v '^ *+' conftest.er1 >conftest.err
27520   rm -f conftest.er1
27521   cat conftest.err >&5
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); } &&
27524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27525   { (case "(($ac_try" in
27526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527   *) ac_try_echo=$ac_try;;
27528 esac
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530   (eval "$ac_try") 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; } &&
27534          { ac_try='test -s conftest$ac_exeext'
27535   { (case "(($ac_try" in
27536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537   *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540   (eval "$ac_try") 2>&5
27541   ac_status=$?
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); }; }; then
27544   ac_cv_search_pthread_mutex_lock=$ac_res
27545 else
27546   echo "$as_me: failed program was:" >&5
27547 sed 's/^/| /' conftest.$ac_ext >&5
27548
27549
27550 fi
27551
27552 rm -f core conftest.err conftest.$ac_objext \
27553       conftest$ac_exeext
27554   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27555   break
27556 fi
27557 done
27558 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27559   :
27560 else
27561   ac_cv_search_pthread_mutex_lock=no
27562 fi
27563 rm conftest.$ac_ext
27564 LIBS=$ac_func_search_save_LIBS
27565 fi
27566 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27567 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27568 ac_res=$ac_cv_search_pthread_mutex_lock
27569 if test "$ac_res" != no; then
27570   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27571
27572 cat >>confdefs.h <<\_ACEOF
27573 #define HAVE_PTHREAD_MUTEX_LOCK 1
27574 _ACEOF
27575
27576 fi
27577
27578 fi
27579
27580
27581
27582
27583
27584
27585
27586 ac_header_dirent=no
27587 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27588   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27589 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27590 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27592   echo $ECHO_N "(cached) $ECHO_C" >&6
27593 else
27594   cat >conftest.$ac_ext <<_ACEOF
27595 /* confdefs.h.  */
27596 _ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h.  */
27600 #include <sys/types.h>
27601 #include <$ac_hdr>
27602
27603 int
27604 main ()
27605 {
27606 if ((DIR *) 0)
27607 return 0;
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 rm -f conftest.$ac_objext
27613 if { (ac_try="$ac_compile"
27614 case "(($ac_try" in
27615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616   *) ac_try_echo=$ac_try;;
27617 esac
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619   (eval "$ac_compile") 2>conftest.er1
27620   ac_status=$?
27621   grep -v '^ *+' conftest.er1 >conftest.err
27622   rm -f conftest.er1
27623   cat conftest.err >&5
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } &&
27626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27627   { (case "(($ac_try" in
27628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629   *) ac_try_echo=$ac_try;;
27630 esac
27631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632   (eval "$ac_try") 2>&5
27633   ac_status=$?
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); }; } &&
27636          { ac_try='test -s conftest.$ac_objext'
27637   { (case "(($ac_try" in
27638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639   *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642   (eval "$ac_try") 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; }; then
27646   eval "$as_ac_Header=yes"
27647 else
27648   echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27650
27651         eval "$as_ac_Header=no"
27652 fi
27653
27654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27655 fi
27656 ac_res=`eval echo '${'$as_ac_Header'}'`
27657                { echo "$as_me:$LINENO: result: $ac_res" >&5
27658 echo "${ECHO_T}$ac_res" >&6; }
27659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27660   cat >>confdefs.h <<_ACEOF
27661 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27662 _ACEOF
27663
27664 ac_header_dirent=$ac_hdr; break
27665 fi
27666
27667 done
27668 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27669 if test $ac_header_dirent = dirent.h; then
27670   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27671 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27672 if test "${ac_cv_search_opendir+set}" = set; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675   ac_func_search_save_LIBS=$LIBS
27676 cat >conftest.$ac_ext <<_ACEOF
27677 /* confdefs.h.  */
27678 _ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h.  */
27682
27683 /* Override any GCC internal prototype to avoid an error.
27684    Use char because int might match the return type of a GCC
27685    builtin and then its argument prototype would still apply.  */
27686 #ifdef __cplusplus
27687 extern "C"
27688 #endif
27689 char opendir ();
27690 int
27691 main ()
27692 {
27693 return opendir ();
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 for ac_lib in '' dir; do
27699   if test -z "$ac_lib"; then
27700     ac_res="none required"
27701   else
27702     ac_res=-l$ac_lib
27703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27704   fi
27705   rm -f conftest.$ac_objext conftest$ac_exeext
27706 if { (ac_try="$ac_link"
27707 case "(($ac_try" in
27708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709   *) ac_try_echo=$ac_try;;
27710 esac
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712   (eval "$ac_link") 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } &&
27719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27720   { (case "(($ac_try" in
27721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722   *) ac_try_echo=$ac_try;;
27723 esac
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725   (eval "$ac_try") 2>&5
27726   ac_status=$?
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); }; } &&
27729          { ac_try='test -s conftest$ac_exeext'
27730   { (case "(($ac_try" in
27731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732   *) ac_try_echo=$ac_try;;
27733 esac
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735   (eval "$ac_try") 2>&5
27736   ac_status=$?
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); }; }; then
27739   ac_cv_search_opendir=$ac_res
27740 else
27741   echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744
27745 fi
27746
27747 rm -f core conftest.err conftest.$ac_objext \
27748       conftest$ac_exeext
27749   if test "${ac_cv_search_opendir+set}" = set; then
27750   break
27751 fi
27752 done
27753 if test "${ac_cv_search_opendir+set}" = set; then
27754   :
27755 else
27756   ac_cv_search_opendir=no
27757 fi
27758 rm conftest.$ac_ext
27759 LIBS=$ac_func_search_save_LIBS
27760 fi
27761 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27762 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27763 ac_res=$ac_cv_search_opendir
27764 if test "$ac_res" != no; then
27765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27766
27767 fi
27768
27769 else
27770   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27772 if test "${ac_cv_search_opendir+set}" = set; then
27773   echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775   ac_func_search_save_LIBS=$LIBS
27776 cat >conftest.$ac_ext <<_ACEOF
27777 /* confdefs.h.  */
27778 _ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h.  */
27782
27783 /* Override any GCC internal prototype to avoid an error.
27784    Use char because int might match the return type of a GCC
27785    builtin and then its argument prototype would still apply.  */
27786 #ifdef __cplusplus
27787 extern "C"
27788 #endif
27789 char opendir ();
27790 int
27791 main ()
27792 {
27793 return opendir ();
27794   ;
27795   return 0;
27796 }
27797 _ACEOF
27798 for ac_lib in '' x; do
27799   if test -z "$ac_lib"; then
27800     ac_res="none required"
27801   else
27802     ac_res=-l$ac_lib
27803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27804   fi
27805   rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (ac_try="$ac_link"
27807 case "(($ac_try" in
27808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809   *) ac_try_echo=$ac_try;;
27810 esac
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812   (eval "$ac_link") 2>conftest.er1
27813   ac_status=$?
27814   grep -v '^ *+' conftest.er1 >conftest.err
27815   rm -f conftest.er1
27816   cat conftest.err >&5
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); } &&
27819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820   { (case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_try") 2>&5
27826   ac_status=$?
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); }; } &&
27829          { ac_try='test -s conftest$ac_exeext'
27830   { (case "(($ac_try" in
27831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832   *) ac_try_echo=$ac_try;;
27833 esac
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835   (eval "$ac_try") 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   ac_cv_search_opendir=$ac_res
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844
27845 fi
27846
27847 rm -f core conftest.err conftest.$ac_objext \
27848       conftest$ac_exeext
27849   if test "${ac_cv_search_opendir+set}" = set; then
27850   break
27851 fi
27852 done
27853 if test "${ac_cv_search_opendir+set}" = set; then
27854   :
27855 else
27856   ac_cv_search_opendir=no
27857 fi
27858 rm conftest.$ac_ext
27859 LIBS=$ac_func_search_save_LIBS
27860 fi
27861 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27862 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27863 ac_res=$ac_cv_search_opendir
27864 if test "$ac_res" != no; then
27865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27866
27867 fi
27868
27869 fi
27870
27871 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27872 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27873 if test "${ac_cv_header_mmap_anon+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876    ac_ext=c
27877 ac_cpp='$CPP $CPPFLAGS'
27878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27881
27882   cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h.  */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h.  */
27888 #include <sys/mman.h>
27889 #include <unistd.h>
27890 #include <fcntl.h>
27891 int
27892 main ()
27893 {
27894 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27895   ;
27896   return 0;
27897 }
27898 _ACEOF
27899 rm -f conftest.$ac_objext
27900 if { (ac_try="$ac_compile"
27901 case "(($ac_try" in
27902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903   *) ac_try_echo=$ac_try;;
27904 esac
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906   (eval "$ac_compile") 2>conftest.er1
27907   ac_status=$?
27908   grep -v '^ *+' conftest.er1 >conftest.err
27909   rm -f conftest.er1
27910   cat conftest.err >&5
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); } &&
27913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27914   { (case "(($ac_try" in
27915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916   *) ac_try_echo=$ac_try;;
27917 esac
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919   (eval "$ac_try") 2>&5
27920   ac_status=$?
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); }; } &&
27923          { ac_try='test -s conftest.$ac_objext'
27924   { (case "(($ac_try" in
27925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926   *) ac_try_echo=$ac_try;;
27927 esac
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929   (eval "$ac_try") 2>&5
27930   ac_status=$?
27931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932   (exit $ac_status); }; }; then
27933   ac_cv_header_mmap_anon=yes
27934 else
27935   echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27937
27938         ac_cv_header_mmap_anon=no
27939 fi
27940
27941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27942   ac_ext=c
27943 ac_cpp='$CPP $CPPFLAGS'
27944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27947
27948
27949 fi
27950 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27951 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27952 if test "$ac_cv_header_mmap_anon" = yes; then
27953
27954 cat >>confdefs.h <<\_ACEOF
27955 #define HAVE_MMAP_ANONYMOUS 1
27956 _ACEOF
27957
27958 fi
27959
27960 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27962 if test "${ac_cv_header_stat_broken+set}" = set; then
27963   echo $ECHO_N "(cached) $ECHO_C" >&6
27964 else
27965   cat >conftest.$ac_ext <<_ACEOF
27966 /* confdefs.h.  */
27967 _ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h.  */
27971 #include <sys/types.h>
27972 #include <sys/stat.h>
27973
27974 #if defined S_ISBLK && defined S_IFDIR
27975 # if S_ISBLK (S_IFDIR)
27976 You lose.
27977 # endif
27978 #endif
27979
27980 #if defined S_ISBLK && defined S_IFCHR
27981 # if S_ISBLK (S_IFCHR)
27982 You lose.
27983 # endif
27984 #endif
27985
27986 #if defined S_ISLNK && defined S_IFREG
27987 # if S_ISLNK (S_IFREG)
27988 You lose.
27989 # endif
27990 #endif
27991
27992 #if defined S_ISSOCK && defined S_IFREG
27993 # if S_ISSOCK (S_IFREG)
27994 You lose.
27995 # endif
27996 #endif
27997
27998 _ACEOF
27999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28000   $EGREP "You lose" >/dev/null 2>&1; then
28001   ac_cv_header_stat_broken=yes
28002 else
28003   ac_cv_header_stat_broken=no
28004 fi
28005 rm -f conftest*
28006
28007 fi
28008 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28009 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28010 if test $ac_cv_header_stat_broken = yes; then
28011
28012 cat >>confdefs.h <<\_ACEOF
28013 #define STAT_MACROS_BROKEN 1
28014 _ACEOF
28015
28016 fi
28017
28018 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28020 if test "${ac_cv_header_stdc+set}" = set; then
28021   echo $ECHO_N "(cached) $ECHO_C" >&6
28022 else
28023   cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029 #include <stdlib.h>
28030 #include <stdarg.h>
28031 #include <string.h>
28032 #include <float.h>
28033
28034 int
28035 main ()
28036 {
28037
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_compile") 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } &&
28056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28057   { (case "(($ac_try" in
28058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059   *) ac_try_echo=$ac_try;;
28060 esac
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062   (eval "$ac_try") 2>&5
28063   ac_status=$?
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); }; } &&
28066          { ac_try='test -s conftest.$ac_objext'
28067   { (case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_try") 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; }; then
28076   ac_cv_header_stdc=yes
28077 else
28078   echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28080
28081         ac_cv_header_stdc=no
28082 fi
28083
28084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28085
28086 if test $ac_cv_header_stdc = yes; then
28087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28088   cat >conftest.$ac_ext <<_ACEOF
28089 /* confdefs.h.  */
28090 _ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h.  */
28094 #include <string.h>
28095
28096 _ACEOF
28097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28098   $EGREP "memchr" >/dev/null 2>&1; then
28099   :
28100 else
28101   ac_cv_header_stdc=no
28102 fi
28103 rm -f conftest*
28104
28105 fi
28106
28107 if test $ac_cv_header_stdc = yes; then
28108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28109   cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h.  */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h.  */
28115 #include <stdlib.h>
28116
28117 _ACEOF
28118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28119   $EGREP "free" >/dev/null 2>&1; then
28120   :
28121 else
28122   ac_cv_header_stdc=no
28123 fi
28124 rm -f conftest*
28125
28126 fi
28127
28128 if test $ac_cv_header_stdc = yes; then
28129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28130   if test "$cross_compiling" = yes; then
28131   :
28132 else
28133   cat >conftest.$ac_ext <<_ACEOF
28134 /* confdefs.h.  */
28135 _ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h.  */
28139 #include <ctype.h>
28140 #include <stdlib.h>
28141 #if ((' ' & 0x0FF) == 0x020)
28142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28144 #else
28145 # define ISLOWER(c) \
28146                    (('a' <= (c) && (c) <= 'i') \
28147                      || ('j' <= (c) && (c) <= 'r') \
28148                      || ('s' <= (c) && (c) <= 'z'))
28149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28150 #endif
28151
28152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28153 int
28154 main ()
28155 {
28156   int i;
28157   for (i = 0; i < 256; i++)
28158     if (XOR (islower (i), ISLOWER (i))
28159         || toupper (i) != TOUPPER (i))
28160       return 2;
28161   return 0;
28162 }
28163 _ACEOF
28164 rm -f conftest$ac_exeext
28165 if { (ac_try="$ac_link"
28166 case "(($ac_try" in
28167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168   *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171   (eval "$ac_link") 2>&5
28172   ac_status=$?
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28175   { (case "(($ac_try" in
28176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177   *) ac_try_echo=$ac_try;;
28178 esac
28179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180   (eval "$ac_try") 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; }; then
28184   :
28185 else
28186   echo "$as_me: program exited with status $ac_status" >&5
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190 ( exit $ac_status )
28191 ac_cv_header_stdc=no
28192 fi
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28194 fi
28195
28196
28197 fi
28198 fi
28199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28201 if test $ac_cv_header_stdc = yes; then
28202
28203 cat >>confdefs.h <<\_ACEOF
28204 #define STDC_HEADERS 1
28205 _ACEOF
28206
28207 fi
28208
28209 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28210 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28211 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28212   echo $ECHO_N "(cached) $ECHO_C" >&6
28213 else
28214   cat >conftest.$ac_ext <<_ACEOF
28215 /* confdefs.h.  */
28216 _ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h.  */
28220 #include <sys/types.h>
28221 #include <sys/wait.h>
28222 #ifndef WEXITSTATUS
28223 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28224 #endif
28225 #ifndef WIFEXITED
28226 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28227 #endif
28228
28229 int
28230 main ()
28231 {
28232   int s;
28233   wait (&s);
28234   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28235   ;
28236   return 0;
28237 }
28238 _ACEOF
28239 rm -f conftest.$ac_objext
28240 if { (ac_try="$ac_compile"
28241 case "(($ac_try" in
28242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243   *) ac_try_echo=$ac_try;;
28244 esac
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246   (eval "$ac_compile") 2>conftest.er1
28247   ac_status=$?
28248   grep -v '^ *+' conftest.er1 >conftest.err
28249   rm -f conftest.er1
28250   cat conftest.err >&5
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); } &&
28253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254   { (case "(($ac_try" in
28255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256   *) ac_try_echo=$ac_try;;
28257 esac
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259   (eval "$ac_try") 2>&5
28260   ac_status=$?
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); }; } &&
28263          { ac_try='test -s conftest.$ac_objext'
28264   { (case "(($ac_try" in
28265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266   *) ac_try_echo=$ac_try;;
28267 esac
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269   (eval "$ac_try") 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; }; then
28273   ac_cv_header_sys_wait_h=yes
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278         ac_cv_header_sys_wait_h=no
28279 fi
28280
28281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282 fi
28283 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28284 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28285 if test $ac_cv_header_sys_wait_h = yes; then
28286
28287 cat >>confdefs.h <<\_ACEOF
28288 #define HAVE_SYS_WAIT_H 1
28289 _ACEOF
28290
28291 fi
28292
28293 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28294 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28295 if test "${ac_cv_header_time+set}" = set; then
28296   echo $ECHO_N "(cached) $ECHO_C" >&6
28297 else
28298   cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304 #include <sys/types.h>
28305 #include <sys/time.h>
28306 #include <time.h>
28307
28308 int
28309 main ()
28310 {
28311 if ((struct tm *) 0)
28312 return 0;
28313   ;
28314   return 0;
28315 }
28316 _ACEOF
28317 rm -f conftest.$ac_objext
28318 if { (ac_try="$ac_compile"
28319 case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_compile") 2>conftest.er1
28325   ac_status=$?
28326   grep -v '^ *+' conftest.er1 >conftest.err
28327   rm -f conftest.er1
28328   cat conftest.err >&5
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } &&
28331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28332   { (case "(($ac_try" in
28333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334   *) ac_try_echo=$ac_try;;
28335 esac
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337   (eval "$ac_try") 2>&5
28338   ac_status=$?
28339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340   (exit $ac_status); }; } &&
28341          { ac_try='test -s conftest.$ac_objext'
28342   { (case "(($ac_try" in
28343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344   *) ac_try_echo=$ac_try;;
28345 esac
28346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347   (eval "$ac_try") 2>&5
28348   ac_status=$?
28349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350   (exit $ac_status); }; }; then
28351   ac_cv_header_time=yes
28352 else
28353   echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28355
28356         ac_cv_header_time=no
28357 fi
28358
28359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28360 fi
28361 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28362 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28363 if test $ac_cv_header_time = yes; then
28364
28365 cat >>confdefs.h <<\_ACEOF
28366 #define TIME_WITH_SYS_TIME 1
28367 _ACEOF
28368
28369 fi
28370
28371
28372
28373
28374
28375
28376
28377
28378 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28379 do
28380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28382   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28385   echo $ECHO_N "(cached) $ECHO_C" >&6
28386 fi
28387 ac_res=`eval echo '${'$as_ac_Header'}'`
28388                { echo "$as_me:$LINENO: result: $ac_res" >&5
28389 echo "${ECHO_T}$ac_res" >&6; }
28390 else
28391   # Is the header compilable?
28392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28394 cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400 $ac_includes_default
28401 #include <$ac_header>
28402 _ACEOF
28403 rm -f conftest.$ac_objext
28404 if { (ac_try="$ac_compile"
28405 case "(($ac_try" in
28406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407   *) ac_try_echo=$ac_try;;
28408 esac
28409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410   (eval "$ac_compile") 2>conftest.er1
28411   ac_status=$?
28412   grep -v '^ *+' conftest.er1 >conftest.err
28413   rm -f conftest.er1
28414   cat conftest.err >&5
28415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416   (exit $ac_status); } &&
28417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28418   { (case "(($ac_try" in
28419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420   *) ac_try_echo=$ac_try;;
28421 esac
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423   (eval "$ac_try") 2>&5
28424   ac_status=$?
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); }; } &&
28427          { ac_try='test -s conftest.$ac_objext'
28428   { (case "(($ac_try" in
28429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430   *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433   (eval "$ac_try") 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   ac_header_compiler=yes
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442         ac_header_compiler=no
28443 fi
28444
28445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28447 echo "${ECHO_T}$ac_header_compiler" >&6; }
28448
28449 # Is the header present?
28450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28452 cat >conftest.$ac_ext <<_ACEOF
28453 /* confdefs.h.  */
28454 _ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h.  */
28458 #include <$ac_header>
28459 _ACEOF
28460 if { (ac_try="$ac_cpp conftest.$ac_ext"
28461 case "(($ac_try" in
28462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463   *) ac_try_echo=$ac_try;;
28464 esac
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28467   ac_status=$?
28468   grep -v '^ *+' conftest.er1 >conftest.err
28469   rm -f conftest.er1
28470   cat conftest.err >&5
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); } >/dev/null; then
28473   if test -s conftest.err; then
28474     ac_cpp_err=$ac_c_preproc_warn_flag
28475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28476   else
28477     ac_cpp_err=
28478   fi
28479 else
28480   ac_cpp_err=yes
28481 fi
28482 if test -z "$ac_cpp_err"; then
28483   ac_header_preproc=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488   ac_header_preproc=no
28489 fi
28490
28491 rm -f conftest.err conftest.$ac_ext
28492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28493 echo "${ECHO_T}$ac_header_preproc" >&6; }
28494
28495 # So?  What about this header?
28496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28497   yes:no: )
28498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28502     ac_header_preproc=yes
28503     ;;
28504   no:yes:* )
28505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28517     ( cat <<\_ASBOX
28518 ## ----------------------------------- ##
28519 ## Report this to llvmbugs@cs.uiuc.edu ##
28520 ## ----------------------------------- ##
28521 _ASBOX
28522      ) | sed "s/^/$as_me: WARNING:     /" >&2
28523     ;;
28524 esac
28525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528   echo $ECHO_N "(cached) $ECHO_C" >&6
28529 else
28530   eval "$as_ac_Header=\$ac_header_preproc"
28531 fi
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533                { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28535
28536 fi
28537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28538   cat >>confdefs.h <<_ACEOF
28539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28540 _ACEOF
28541
28542 fi
28543
28544 done
28545
28546
28547
28548
28549
28550
28551
28552 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28553 do
28554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28559   echo $ECHO_N "(cached) $ECHO_C" >&6
28560 fi
28561 ac_res=`eval echo '${'$as_ac_Header'}'`
28562                { echo "$as_me:$LINENO: result: $ac_res" >&5
28563 echo "${ECHO_T}$ac_res" >&6; }
28564 else
28565   # Is the header compilable?
28566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574 $ac_includes_default
28575 #include <$ac_header>
28576 _ACEOF
28577 rm -f conftest.$ac_objext
28578 if { (ac_try="$ac_compile"
28579 case "(($ac_try" in
28580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581   *) ac_try_echo=$ac_try;;
28582 esac
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584   (eval "$ac_compile") 2>conftest.er1
28585   ac_status=$?
28586   grep -v '^ *+' conftest.er1 >conftest.err
28587   rm -f conftest.er1
28588   cat conftest.err >&5
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); } &&
28591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28592   { (case "(($ac_try" in
28593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594   *) ac_try_echo=$ac_try;;
28595 esac
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597   (eval "$ac_try") 2>&5
28598   ac_status=$?
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); }; } &&
28601          { ac_try='test -s conftest.$ac_objext'
28602   { (case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607   (eval "$ac_try") 2>&5
28608   ac_status=$?
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); }; }; then
28611   ac_header_compiler=yes
28612 else
28613   echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28615
28616         ac_header_compiler=no
28617 fi
28618
28619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28621 echo "${ECHO_T}$ac_header_compiler" >&6; }
28622
28623 # Is the header present?
28624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28626 cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h.  */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h.  */
28632 #include <$ac_header>
28633 _ACEOF
28634 if { (ac_try="$ac_cpp conftest.$ac_ext"
28635 case "(($ac_try" in
28636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637   *) ac_try_echo=$ac_try;;
28638 esac
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28641   ac_status=$?
28642   grep -v '^ *+' conftest.er1 >conftest.err
28643   rm -f conftest.er1
28644   cat conftest.err >&5
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); } >/dev/null; then
28647   if test -s conftest.err; then
28648     ac_cpp_err=$ac_c_preproc_warn_flag
28649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28650   else
28651     ac_cpp_err=
28652   fi
28653 else
28654   ac_cpp_err=yes
28655 fi
28656 if test -z "$ac_cpp_err"; then
28657   ac_header_preproc=yes
28658 else
28659   echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28661
28662   ac_header_preproc=no
28663 fi
28664
28665 rm -f conftest.err conftest.$ac_ext
28666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28667 echo "${ECHO_T}$ac_header_preproc" >&6; }
28668
28669 # So?  What about this header?
28670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28671   yes:no: )
28672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28676     ac_header_preproc=yes
28677     ;;
28678   no:yes:* )
28679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28681     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28682 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28683     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28685     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28686 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28689     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28691     ( cat <<\_ASBOX
28692 ## ----------------------------------- ##
28693 ## Report this to llvmbugs@cs.uiuc.edu ##
28694 ## ----------------------------------- ##
28695 _ASBOX
28696      ) | sed "s/^/$as_me: WARNING:     /" >&2
28697     ;;
28698 esac
28699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28702   echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28704   eval "$as_ac_Header=\$ac_header_preproc"
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
28710 fi
28711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28712   cat >>confdefs.h <<_ACEOF
28713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28714 _ACEOF
28715
28716 fi
28717
28718 done
28719
28720
28721
28722
28723
28724
28725 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28726 do
28727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28729   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28732   echo $ECHO_N "(cached) $ECHO_C" >&6
28733 fi
28734 ac_res=`eval echo '${'$as_ac_Header'}'`
28735                { echo "$as_me:$LINENO: result: $ac_res" >&5
28736 echo "${ECHO_T}$ac_res" >&6; }
28737 else
28738   # Is the header compilable?
28739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h.  */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h.  */
28747 $ac_includes_default
28748 #include <$ac_header>
28749 _ACEOF
28750 rm -f conftest.$ac_objext
28751 if { (ac_try="$ac_compile"
28752 case "(($ac_try" in
28753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754   *) ac_try_echo=$ac_try;;
28755 esac
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757   (eval "$ac_compile") 2>conftest.er1
28758   ac_status=$?
28759   grep -v '^ *+' conftest.er1 >conftest.err
28760   rm -f conftest.er1
28761   cat conftest.err >&5
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); } &&
28764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28765   { (case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_try") 2>&5
28771   ac_status=$?
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); }; } &&
28774          { ac_try='test -s conftest.$ac_objext'
28775   { (case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_try") 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; }; then
28784   ac_header_compiler=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789         ac_header_compiler=no
28790 fi
28791
28792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 echo "${ECHO_T}$ac_header_compiler" >&6; }
28795
28796 # Is the header present?
28797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28799 cat >conftest.$ac_ext <<_ACEOF
28800 /* confdefs.h.  */
28801 _ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h.  */
28805 #include <$ac_header>
28806 _ACEOF
28807 if { (ac_try="$ac_cpp conftest.$ac_ext"
28808 case "(($ac_try" in
28809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810   *) ac_try_echo=$ac_try;;
28811 esac
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28814   ac_status=$?
28815   grep -v '^ *+' conftest.er1 >conftest.err
28816   rm -f conftest.er1
28817   cat conftest.err >&5
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } >/dev/null; then
28820   if test -s conftest.err; then
28821     ac_cpp_err=$ac_c_preproc_warn_flag
28822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28823   else
28824     ac_cpp_err=
28825   fi
28826 else
28827   ac_cpp_err=yes
28828 fi
28829 if test -z "$ac_cpp_err"; then
28830   ac_header_preproc=yes
28831 else
28832   echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835   ac_header_preproc=no
28836 fi
28837
28838 rm -f conftest.err conftest.$ac_ext
28839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840 echo "${ECHO_T}$ac_header_preproc" >&6; }
28841
28842 # So?  What about this header?
28843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28844   yes:no: )
28845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28849     ac_header_preproc=yes
28850     ;;
28851   no:yes:* )
28852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28864     ( cat <<\_ASBOX
28865 ## ----------------------------------- ##
28866 ## Report this to llvmbugs@cs.uiuc.edu ##
28867 ## ----------------------------------- ##
28868 _ASBOX
28869      ) | sed "s/^/$as_me: WARNING:     /" >&2
28870     ;;
28871 esac
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 else
28877   eval "$as_ac_Header=\$ac_header_preproc"
28878 fi
28879 ac_res=`eval echo '${'$as_ac_Header'}'`
28880                { echo "$as_me:$LINENO: result: $ac_res" >&5
28881 echo "${ECHO_T}$ac_res" >&6; }
28882
28883 fi
28884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28885   cat >>confdefs.h <<_ACEOF
28886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28887 _ACEOF
28888
28889 fi
28890
28891 done
28892
28893
28894
28895
28896 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28897 do
28898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28900   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28903   echo $ECHO_N "(cached) $ECHO_C" >&6
28904 fi
28905 ac_res=`eval echo '${'$as_ac_Header'}'`
28906                { echo "$as_me:$LINENO: result: $ac_res" >&5
28907 echo "${ECHO_T}$ac_res" >&6; }
28908 else
28909   # Is the header compilable?
28910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28912 cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h.  */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h.  */
28918 $ac_includes_default
28919 #include <$ac_header>
28920 _ACEOF
28921 rm -f conftest.$ac_objext
28922 if { (ac_try="$ac_compile"
28923 case "(($ac_try" in
28924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925   *) ac_try_echo=$ac_try;;
28926 esac
28927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928   (eval "$ac_compile") 2>conftest.er1
28929   ac_status=$?
28930   grep -v '^ *+' conftest.er1 >conftest.err
28931   rm -f conftest.er1
28932   cat conftest.err >&5
28933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934   (exit $ac_status); } &&
28935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28936   { (case "(($ac_try" in
28937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938   *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941   (eval "$ac_try") 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; } &&
28945          { ac_try='test -s conftest.$ac_objext'
28946   { (case "(($ac_try" in
28947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948   *) ac_try_echo=$ac_try;;
28949 esac
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951   (eval "$ac_try") 2>&5
28952   ac_status=$?
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); }; }; then
28955   ac_header_compiler=yes
28956 else
28957   echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28959
28960         ac_header_compiler=no
28961 fi
28962
28963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28965 echo "${ECHO_T}$ac_header_compiler" >&6; }
28966
28967 # Is the header present?
28968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28970 cat >conftest.$ac_ext <<_ACEOF
28971 /* confdefs.h.  */
28972 _ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h.  */
28976 #include <$ac_header>
28977 _ACEOF
28978 if { (ac_try="$ac_cpp conftest.$ac_ext"
28979 case "(($ac_try" in
28980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981   *) ac_try_echo=$ac_try;;
28982 esac
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28985   ac_status=$?
28986   grep -v '^ *+' conftest.er1 >conftest.err
28987   rm -f conftest.er1
28988   cat conftest.err >&5
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); } >/dev/null; then
28991   if test -s conftest.err; then
28992     ac_cpp_err=$ac_c_preproc_warn_flag
28993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28994   else
28995     ac_cpp_err=
28996   fi
28997 else
28998   ac_cpp_err=yes
28999 fi
29000 if test -z "$ac_cpp_err"; then
29001   ac_header_preproc=yes
29002 else
29003   echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29005
29006   ac_header_preproc=no
29007 fi
29008
29009 rm -f conftest.err conftest.$ac_ext
29010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29011 echo "${ECHO_T}$ac_header_preproc" >&6; }
29012
29013 # So?  What about this header?
29014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29015   yes:no: )
29016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29020     ac_header_preproc=yes
29021     ;;
29022   no:yes:* )
29023     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29025     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29026 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29027     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29029     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29030 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29033     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29035     ( cat <<\_ASBOX
29036 ## ----------------------------------- ##
29037 ## Report this to llvmbugs@cs.uiuc.edu ##
29038 ## ----------------------------------- ##
29039 _ASBOX
29040      ) | sed "s/^/$as_me: WARNING:     /" >&2
29041     ;;
29042 esac
29043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29046   echo $ECHO_N "(cached) $ECHO_C" >&6
29047 else
29048   eval "$as_ac_Header=\$ac_header_preproc"
29049 fi
29050 ac_res=`eval echo '${'$as_ac_Header'}'`
29051                { echo "$as_me:$LINENO: result: $ac_res" >&5
29052 echo "${ECHO_T}$ac_res" >&6; }
29053
29054 fi
29055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29056   cat >>confdefs.h <<_ACEOF
29057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29058 _ACEOF
29059
29060 fi
29061
29062 done
29063
29064 if test "$ENABLE_THREADS" -eq 1 ; then
29065   if test "${ac_cv_header_pthread_h+set}" = set; then
29066   { echo "$as_me:$LINENO: checking for pthread.h" >&5
29067 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29068 if test "${ac_cv_header_pthread_h+set}" = set; then
29069   echo $ECHO_N "(cached) $ECHO_C" >&6
29070 fi
29071 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29072 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29073 else
29074   # Is the header compilable?
29075 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29076 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29077 cat >conftest.$ac_ext <<_ACEOF
29078 /* confdefs.h.  */
29079 _ACEOF
29080 cat confdefs.h >>conftest.$ac_ext
29081 cat >>conftest.$ac_ext <<_ACEOF
29082 /* end confdefs.h.  */
29083 $ac_includes_default
29084 #include <pthread.h>
29085 _ACEOF
29086 rm -f conftest.$ac_objext
29087 if { (ac_try="$ac_compile"
29088 case "(($ac_try" in
29089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090   *) ac_try_echo=$ac_try;;
29091 esac
29092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093   (eval "$ac_compile") 2>conftest.er1
29094   ac_status=$?
29095   grep -v '^ *+' conftest.er1 >conftest.err
29096   rm -f conftest.er1
29097   cat conftest.err >&5
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); } &&
29100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29101   { (case "(($ac_try" in
29102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103   *) ac_try_echo=$ac_try;;
29104 esac
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106   (eval "$ac_try") 2>&5
29107   ac_status=$?
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); }; } &&
29110          { ac_try='test -s conftest.$ac_objext'
29111   { (case "(($ac_try" in
29112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113   *) ac_try_echo=$ac_try;;
29114 esac
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116   (eval "$ac_try") 2>&5
29117   ac_status=$?
29118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119   (exit $ac_status); }; }; then
29120   ac_header_compiler=yes
29121 else
29122   echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29124
29125         ac_header_compiler=no
29126 fi
29127
29128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29130 echo "${ECHO_T}$ac_header_compiler" >&6; }
29131
29132 # Is the header present?
29133 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29134 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29135 cat >conftest.$ac_ext <<_ACEOF
29136 /* confdefs.h.  */
29137 _ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h.  */
29141 #include <pthread.h>
29142 _ACEOF
29143 if { (ac_try="$ac_cpp conftest.$ac_ext"
29144 case "(($ac_try" in
29145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146   *) ac_try_echo=$ac_try;;
29147 esac
29148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29150   ac_status=$?
29151   grep -v '^ *+' conftest.er1 >conftest.err
29152   rm -f conftest.er1
29153   cat conftest.err >&5
29154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155   (exit $ac_status); } >/dev/null; then
29156   if test -s conftest.err; then
29157     ac_cpp_err=$ac_c_preproc_warn_flag
29158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29159   else
29160     ac_cpp_err=
29161   fi
29162 else
29163   ac_cpp_err=yes
29164 fi
29165 if test -z "$ac_cpp_err"; then
29166   ac_header_preproc=yes
29167 else
29168   echo "$as_me: failed program was:" >&5
29169 sed 's/^/| /' conftest.$ac_ext >&5
29170
29171   ac_header_preproc=no
29172 fi
29173
29174 rm -f conftest.err conftest.$ac_ext
29175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29176 echo "${ECHO_T}$ac_header_preproc" >&6; }
29177
29178 # So?  What about this header?
29179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29180   yes:no: )
29181     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29182 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29183     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29184 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29185     ac_header_preproc=yes
29186     ;;
29187   no:yes:* )
29188     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29189 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29190     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29191 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29192     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29193 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29194     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29195 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29196     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29197 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29198     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29199 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29200     ( cat <<\_ASBOX
29201 ## ----------------------------------- ##
29202 ## Report this to llvmbugs@cs.uiuc.edu ##
29203 ## ----------------------------------- ##
29204 _ASBOX
29205      ) | sed "s/^/$as_me: WARNING:     /" >&2
29206     ;;
29207 esac
29208 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29209 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29210 if test "${ac_cv_header_pthread_h+set}" = set; then
29211   echo $ECHO_N "(cached) $ECHO_C" >&6
29212 else
29213   ac_cv_header_pthread_h=$ac_header_preproc
29214 fi
29215 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29216 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29217
29218 fi
29219 if test $ac_cv_header_pthread_h = yes; then
29220   HAVE_PTHREAD=1
29221
29222 else
29223   HAVE_PTHREAD=0
29224
29225 fi
29226
29227
29228 else
29229   HAVE_PTHREAD=0
29230
29231 fi
29232
29233
29234
29235   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29236 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29237 if test "${ac_cv_huge_val_sanity+set}" = set; then
29238   echo $ECHO_N "(cached) $ECHO_C" >&6
29239 else
29240
29241     ac_ext=cpp
29242 ac_cpp='$CXXCPP $CPPFLAGS'
29243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29246
29247     CXXFLAGS=-pedantic
29248     if test "$cross_compiling" = yes; then
29249   ac_cv_huge_val_sanity=yes
29250 else
29251   cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h.  */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h.  */
29257 #include <math.h>
29258 int
29259 main ()
29260 {
29261 double x = HUGE_VAL; return x != x;
29262   ;
29263   return 0;
29264 }
29265 _ACEOF
29266 rm -f conftest$ac_exeext
29267 if { (ac_try="$ac_link"
29268 case "(($ac_try" in
29269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270   *) ac_try_echo=$ac_try;;
29271 esac
29272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273   (eval "$ac_link") 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29277   { (case "(($ac_try" in
29278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279   *) ac_try_echo=$ac_try;;
29280 esac
29281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282   (eval "$ac_try") 2>&5
29283   ac_status=$?
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); }; }; then
29286   ac_cv_huge_val_sanity=yes
29287 else
29288   echo "$as_me: program exited with status $ac_status" >&5
29289 echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29291
29292 ( exit $ac_status )
29293 ac_cv_huge_val_sanity=no
29294 fi
29295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29296 fi
29297
29298
29299     ac_ext=c
29300 ac_cpp='$CPP $CPPFLAGS'
29301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29304
29305
29306 fi
29307 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29308 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29309   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29310
29311
29312 { echo "$as_me:$LINENO: checking for pid_t" >&5
29313 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29314 if test "${ac_cv_type_pid_t+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317   cat >conftest.$ac_ext <<_ACEOF
29318 /* confdefs.h.  */
29319 _ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h.  */
29323 $ac_includes_default
29324 typedef pid_t ac__type_new_;
29325 int
29326 main ()
29327 {
29328 if ((ac__type_new_ *) 0)
29329   return 0;
29330 if (sizeof (ac__type_new_))
29331   return 0;
29332   ;
29333   return 0;
29334 }
29335 _ACEOF
29336 rm -f conftest.$ac_objext
29337 if { (ac_try="$ac_compile"
29338 case "(($ac_try" in
29339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340   *) ac_try_echo=$ac_try;;
29341 esac
29342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343   (eval "$ac_compile") 2>conftest.er1
29344   ac_status=$?
29345   grep -v '^ *+' conftest.er1 >conftest.err
29346   rm -f conftest.er1
29347   cat conftest.err >&5
29348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349   (exit $ac_status); } &&
29350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29351   { (case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_try") 2>&5
29357   ac_status=$?
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); }; } &&
29360          { ac_try='test -s conftest.$ac_objext'
29361   { (case "(($ac_try" in
29362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363   *) ac_try_echo=$ac_try;;
29364 esac
29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366   (eval "$ac_try") 2>&5
29367   ac_status=$?
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); }; }; then
29370   ac_cv_type_pid_t=yes
29371 else
29372   echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29374
29375         ac_cv_type_pid_t=no
29376 fi
29377
29378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29379 fi
29380 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29381 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29382 if test $ac_cv_type_pid_t = yes; then
29383   :
29384 else
29385
29386 cat >>confdefs.h <<_ACEOF
29387 #define pid_t int
29388 _ACEOF
29389
29390 fi
29391
29392 { echo "$as_me:$LINENO: checking for size_t" >&5
29393 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29394 if test "${ac_cv_type_size_t+set}" = set; then
29395   echo $ECHO_N "(cached) $ECHO_C" >&6
29396 else
29397   cat >conftest.$ac_ext <<_ACEOF
29398 /* confdefs.h.  */
29399 _ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h.  */
29403 $ac_includes_default
29404 typedef size_t ac__type_new_;
29405 int
29406 main ()
29407 {
29408 if ((ac__type_new_ *) 0)
29409   return 0;
29410 if (sizeof (ac__type_new_))
29411   return 0;
29412   ;
29413   return 0;
29414 }
29415 _ACEOF
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_compile") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431   { (case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436   (eval "$ac_try") 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; } &&
29440          { ac_try='test -s conftest.$ac_objext'
29441   { (case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_try") 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; }; then
29450   ac_cv_type_size_t=yes
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455         ac_cv_type_size_t=no
29456 fi
29457
29458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459 fi
29460 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29461 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29462 if test $ac_cv_type_size_t = yes; then
29463   :
29464 else
29465
29466 cat >>confdefs.h <<_ACEOF
29467 #define size_t unsigned int
29468 _ACEOF
29469
29470 fi
29471
29472 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29473 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29474 if test "${ac_cv_type_signal+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477   cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h.  */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h.  */
29483 #include <sys/types.h>
29484 #include <signal.h>
29485
29486 int
29487 main ()
29488 {
29489 return *(signal (0, 0)) (0) == 1;
29490   ;
29491   return 0;
29492 }
29493 _ACEOF
29494 rm -f conftest.$ac_objext
29495 if { (ac_try="$ac_compile"
29496 case "(($ac_try" in
29497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498   *) ac_try_echo=$ac_try;;
29499 esac
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501   (eval "$ac_compile") 2>conftest.er1
29502   ac_status=$?
29503   grep -v '^ *+' conftest.er1 >conftest.err
29504   rm -f conftest.er1
29505   cat conftest.err >&5
29506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507   (exit $ac_status); } &&
29508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29509   { (case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514   (eval "$ac_try") 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest.$ac_objext'
29519   { (case "(($ac_try" in
29520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521   *) ac_try_echo=$ac_try;;
29522 esac
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524   (eval "$ac_try") 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; }; then
29528   ac_cv_type_signal=int
29529 else
29530   echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533         ac_cv_type_signal=void
29534 fi
29535
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537 fi
29538 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29539 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29540
29541 cat >>confdefs.h <<_ACEOF
29542 #define RETSIGTYPE $ac_cv_type_signal
29543 _ACEOF
29544
29545
29546 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29547 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29548 if test "${ac_cv_struct_tm+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551   cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557 #include <sys/types.h>
29558 #include <time.h>
29559
29560 int
29561 main ()
29562 {
29563 struct tm *tp; tp->tm_sec;
29564   ;
29565   return 0;
29566 }
29567 _ACEOF
29568 rm -f conftest.$ac_objext
29569 if { (ac_try="$ac_compile"
29570 case "(($ac_try" in
29571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572   *) ac_try_echo=$ac_try;;
29573 esac
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575   (eval "$ac_compile") 2>conftest.er1
29576   ac_status=$?
29577   grep -v '^ *+' conftest.er1 >conftest.err
29578   rm -f conftest.er1
29579   cat conftest.err >&5
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); } &&
29582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29583   { (case "(($ac_try" in
29584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585   *) ac_try_echo=$ac_try;;
29586 esac
29587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588   (eval "$ac_try") 2>&5
29589   ac_status=$?
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); }; } &&
29592          { ac_try='test -s conftest.$ac_objext'
29593   { (case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_try") 2>&5
29599   ac_status=$?
29600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); }; }; then
29602   ac_cv_struct_tm=time.h
29603 else
29604   echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29606
29607         ac_cv_struct_tm=sys/time.h
29608 fi
29609
29610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29611 fi
29612 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29613 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29614 if test $ac_cv_struct_tm = sys/time.h; then
29615
29616 cat >>confdefs.h <<\_ACEOF
29617 #define TM_IN_SYS_TIME 1
29618 _ACEOF
29619
29620 fi
29621
29622 { echo "$as_me:$LINENO: checking for int64_t" >&5
29623 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29624 if test "${ac_cv_type_int64_t+set}" = set; then
29625   echo $ECHO_N "(cached) $ECHO_C" >&6
29626 else
29627   cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h.  */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h.  */
29633 $ac_includes_default
29634 typedef int64_t ac__type_new_;
29635 int
29636 main ()
29637 {
29638 if ((ac__type_new_ *) 0)
29639   return 0;
29640 if (sizeof (ac__type_new_))
29641   return 0;
29642   ;
29643   return 0;
29644 }
29645 _ACEOF
29646 rm -f conftest.$ac_objext
29647 if { (ac_try="$ac_compile"
29648 case "(($ac_try" in
29649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650   *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653   (eval "$ac_compile") 2>conftest.er1
29654   ac_status=$?
29655   grep -v '^ *+' conftest.er1 >conftest.err
29656   rm -f conftest.er1
29657   cat conftest.err >&5
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); } &&
29660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29661   { (case "(($ac_try" in
29662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663   *) ac_try_echo=$ac_try;;
29664 esac
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666   (eval "$ac_try") 2>&5
29667   ac_status=$?
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); }; } &&
29670          { ac_try='test -s conftest.$ac_objext'
29671   { (case "(($ac_try" in
29672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673   *) ac_try_echo=$ac_try;;
29674 esac
29675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676   (eval "$ac_try") 2>&5
29677   ac_status=$?
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); }; }; then
29680   ac_cv_type_int64_t=yes
29681 else
29682   echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29684
29685         ac_cv_type_int64_t=no
29686 fi
29687
29688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689 fi
29690 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29691 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29692 if test $ac_cv_type_int64_t = yes; then
29693
29694 cat >>confdefs.h <<_ACEOF
29695 #define HAVE_INT64_T 1
29696 _ACEOF
29697
29698
29699 else
29700   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29701 echo "$as_me: error: Type int64_t required but not found" >&2;}
29702    { (exit 1); exit 1; }; }
29703 fi
29704
29705 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29706 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29707 if test "${ac_cv_type_uint64_t+set}" = set; then
29708   echo $ECHO_N "(cached) $ECHO_C" >&6
29709 else
29710   cat >conftest.$ac_ext <<_ACEOF
29711 /* confdefs.h.  */
29712 _ACEOF
29713 cat confdefs.h >>conftest.$ac_ext
29714 cat >>conftest.$ac_ext <<_ACEOF
29715 /* end confdefs.h.  */
29716 $ac_includes_default
29717 typedef uint64_t ac__type_new_;
29718 int
29719 main ()
29720 {
29721 if ((ac__type_new_ *) 0)
29722   return 0;
29723 if (sizeof (ac__type_new_))
29724   return 0;
29725   ;
29726   return 0;
29727 }
29728 _ACEOF
29729 rm -f conftest.$ac_objext
29730 if { (ac_try="$ac_compile"
29731 case "(($ac_try" in
29732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29733   *) ac_try_echo=$ac_try;;
29734 esac
29735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29736   (eval "$ac_compile") 2>conftest.er1
29737   ac_status=$?
29738   grep -v '^ *+' conftest.er1 >conftest.err
29739   rm -f conftest.er1
29740   cat conftest.err >&5
29741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742   (exit $ac_status); } &&
29743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29744   { (case "(($ac_try" in
29745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746   *) ac_try_echo=$ac_try;;
29747 esac
29748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749   (eval "$ac_try") 2>&5
29750   ac_status=$?
29751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752   (exit $ac_status); }; } &&
29753          { ac_try='test -s conftest.$ac_objext'
29754   { (case "(($ac_try" in
29755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756   *) ac_try_echo=$ac_try;;
29757 esac
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759   (eval "$ac_try") 2>&5
29760   ac_status=$?
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); }; }; then
29763   ac_cv_type_uint64_t=yes
29764 else
29765   echo "$as_me: failed program was:" >&5
29766 sed 's/^/| /' conftest.$ac_ext >&5
29767
29768         ac_cv_type_uint64_t=no
29769 fi
29770
29771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29772 fi
29773 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29774 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29775 if test $ac_cv_type_uint64_t = yes; then
29776
29777 cat >>confdefs.h <<_ACEOF
29778 #define HAVE_UINT64_T 1
29779 _ACEOF
29780
29781
29782 else
29783   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29784 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29785 if test "${ac_cv_type_u_int64_t+set}" = set; then
29786   echo $ECHO_N "(cached) $ECHO_C" >&6
29787 else
29788   cat >conftest.$ac_ext <<_ACEOF
29789 /* confdefs.h.  */
29790 _ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h.  */
29794 $ac_includes_default
29795 typedef u_int64_t ac__type_new_;
29796 int
29797 main ()
29798 {
29799 if ((ac__type_new_ *) 0)
29800   return 0;
29801 if (sizeof (ac__type_new_))
29802   return 0;
29803   ;
29804   return 0;
29805 }
29806 _ACEOF
29807 rm -f conftest.$ac_objext
29808 if { (ac_try="$ac_compile"
29809 case "(($ac_try" in
29810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811   *) ac_try_echo=$ac_try;;
29812 esac
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814   (eval "$ac_compile") 2>conftest.er1
29815   ac_status=$?
29816   grep -v '^ *+' conftest.er1 >conftest.err
29817   rm -f conftest.er1
29818   cat conftest.err >&5
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); } &&
29821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29822   { (case "(($ac_try" in
29823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824   *) ac_try_echo=$ac_try;;
29825 esac
29826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827   (eval "$ac_try") 2>&5
29828   ac_status=$?
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); }; } &&
29831          { ac_try='test -s conftest.$ac_objext'
29832   { (case "(($ac_try" in
29833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834   *) ac_try_echo=$ac_try;;
29835 esac
29836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29837   (eval "$ac_try") 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; }; then
29841   ac_cv_type_u_int64_t=yes
29842 else
29843   echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29845
29846         ac_cv_type_u_int64_t=no
29847 fi
29848
29849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29850 fi
29851 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29852 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29853 if test $ac_cv_type_u_int64_t = yes; then
29854
29855 cat >>confdefs.h <<_ACEOF
29856 #define HAVE_U_INT64_T 1
29857 _ACEOF
29858
29859
29860 else
29861   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29862 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29863    { (exit 1); exit 1; }; }
29864 fi
29865
29866 fi
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29878 do
29879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29883   echo $ECHO_N "(cached) $ECHO_C" >&6
29884 else
29885   cat >conftest.$ac_ext <<_ACEOF
29886 /* confdefs.h.  */
29887 _ACEOF
29888 cat confdefs.h >>conftest.$ac_ext
29889 cat >>conftest.$ac_ext <<_ACEOF
29890 /* end confdefs.h.  */
29891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29893 #define $ac_func innocuous_$ac_func
29894
29895 /* System header to define __stub macros and hopefully few prototypes,
29896     which can conflict with char $ac_func (); below.
29897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29898     <limits.h> exists even on freestanding compilers.  */
29899
29900 #ifdef __STDC__
29901 # include <limits.h>
29902 #else
29903 # include <assert.h>
29904 #endif
29905
29906 #undef $ac_func
29907
29908 /* Override any GCC internal prototype to avoid an error.
29909    Use char because int might match the return type of a GCC
29910    builtin and then its argument prototype would still apply.  */
29911 #ifdef __cplusplus
29912 extern "C"
29913 #endif
29914 char $ac_func ();
29915 /* The GNU C library defines this for functions which it implements
29916     to always fail with ENOSYS.  Some functions are actually named
29917     something starting with __ and the normal name is an alias.  */
29918 #if defined __stub_$ac_func || defined __stub___$ac_func
29919 choke me
29920 #endif
29921
29922 int
29923 main ()
29924 {
29925 return $ac_func ();
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_link") 2>conftest.er1
29938   ac_status=$?
29939   grep -v '^ *+' conftest.er1 >conftest.err
29940   rm -f conftest.er1
29941   cat conftest.err >&5
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); } &&
29944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29945   { (case "(($ac_try" in
29946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947   *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950   (eval "$ac_try") 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; } &&
29954          { ac_try='test -s conftest$ac_exeext'
29955   { (case "(($ac_try" in
29956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957   *) ac_try_echo=$ac_try;;
29958 esac
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960   (eval "$ac_try") 2>&5
29961   ac_status=$?
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); }; }; then
29964   eval "$as_ac_var=yes"
29965 else
29966   echo "$as_me: failed program was:" >&5
29967 sed 's/^/| /' conftest.$ac_ext >&5
29968
29969         eval "$as_ac_var=no"
29970 fi
29971
29972 rm -f core conftest.err conftest.$ac_objext \
29973       conftest$ac_exeext conftest.$ac_ext
29974 fi
29975 ac_res=`eval echo '${'$as_ac_var'}'`
29976                { echo "$as_me:$LINENO: result: $ac_res" >&5
29977 echo "${ECHO_T}$ac_res" >&6; }
29978 if test `eval echo '${'$as_ac_var'}'` = yes; then
29979   cat >>confdefs.h <<_ACEOF
29980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29981 _ACEOF
29982
29983 fi
29984 done
29985
29986
29987
29988
29989
29990
29991
29992 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29993 do
29994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29998   echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000   cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30008 #define $ac_func innocuous_$ac_func
30009
30010 /* System header to define __stub macros and hopefully few prototypes,
30011     which can conflict with char $ac_func (); below.
30012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30013     <limits.h> exists even on freestanding compilers.  */
30014
30015 #ifdef __STDC__
30016 # include <limits.h>
30017 #else
30018 # include <assert.h>
30019 #endif
30020
30021 #undef $ac_func
30022
30023 /* Override any GCC internal prototype to avoid an error.
30024    Use char because int might match the return type of a GCC
30025    builtin and then its argument prototype would still apply.  */
30026 #ifdef __cplusplus
30027 extern "C"
30028 #endif
30029 char $ac_func ();
30030 /* The GNU C library defines this for functions which it implements
30031     to always fail with ENOSYS.  Some functions are actually named
30032     something starting with __ and the normal name is an alias.  */
30033 #if defined __stub_$ac_func || defined __stub___$ac_func
30034 choke me
30035 #endif
30036
30037 int
30038 main ()
30039 {
30040 return $ac_func ();
30041   ;
30042   return 0;
30043 }
30044 _ACEOF
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049   *) ac_try_echo=$ac_try;;
30050 esac
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052   (eval "$ac_link") 2>conftest.er1
30053   ac_status=$?
30054   grep -v '^ *+' conftest.er1 >conftest.err
30055   rm -f conftest.er1
30056   cat conftest.err >&5
30057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058   (exit $ac_status); } &&
30059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30060   { (case "(($ac_try" in
30061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062   *) ac_try_echo=$ac_try;;
30063 esac
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065   (eval "$ac_try") 2>&5
30066   ac_status=$?
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); }; } &&
30069          { ac_try='test -s conftest$ac_exeext'
30070   { (case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075   (eval "$ac_try") 2>&5
30076   ac_status=$?
30077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078   (exit $ac_status); }; }; then
30079   eval "$as_ac_var=yes"
30080 else
30081   echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30083
30084         eval "$as_ac_var=no"
30085 fi
30086
30087 rm -f core conftest.err conftest.$ac_objext \
30088       conftest$ac_exeext conftest.$ac_ext
30089 fi
30090 ac_res=`eval echo '${'$as_ac_var'}'`
30091                { echo "$as_me:$LINENO: result: $ac_res" >&5
30092 echo "${ECHO_T}$ac_res" >&6; }
30093 if test `eval echo '${'$as_ac_var'}'` = yes; then
30094   cat >>confdefs.h <<_ACEOF
30095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30096 _ACEOF
30097
30098 fi
30099 done
30100
30101
30102
30103
30104
30105
30106
30107
30108 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30109 do
30110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30114   echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116   cat >conftest.$ac_ext <<_ACEOF
30117 /* confdefs.h.  */
30118 _ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h.  */
30122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30124 #define $ac_func innocuous_$ac_func
30125
30126 /* System header to define __stub macros and hopefully few prototypes,
30127     which can conflict with char $ac_func (); below.
30128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30129     <limits.h> exists even on freestanding compilers.  */
30130
30131 #ifdef __STDC__
30132 # include <limits.h>
30133 #else
30134 # include <assert.h>
30135 #endif
30136
30137 #undef $ac_func
30138
30139 /* Override any GCC internal prototype to avoid an error.
30140    Use char because int might match the return type of a GCC
30141    builtin and then its argument prototype would still apply.  */
30142 #ifdef __cplusplus
30143 extern "C"
30144 #endif
30145 char $ac_func ();
30146 /* The GNU C library defines this for functions which it implements
30147     to always fail with ENOSYS.  Some functions are actually named
30148     something starting with __ and the normal name is an alias.  */
30149 #if defined __stub_$ac_func || defined __stub___$ac_func
30150 choke me
30151 #endif
30152
30153 int
30154 main ()
30155 {
30156 return $ac_func ();
30157   ;
30158   return 0;
30159 }
30160 _ACEOF
30161 rm -f conftest.$ac_objext conftest$ac_exeext
30162 if { (ac_try="$ac_link"
30163 case "(($ac_try" in
30164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165   *) ac_try_echo=$ac_try;;
30166 esac
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168   (eval "$ac_link") 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } &&
30175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30176   { (case "(($ac_try" in
30177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178   *) ac_try_echo=$ac_try;;
30179 esac
30180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181   (eval "$ac_try") 2>&5
30182   ac_status=$?
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); }; } &&
30185          { ac_try='test -s conftest$ac_exeext'
30186   { (case "(($ac_try" in
30187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188   *) ac_try_echo=$ac_try;;
30189 esac
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191   (eval "$ac_try") 2>&5
30192   ac_status=$?
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); }; }; then
30195   eval "$as_ac_var=yes"
30196 else
30197   echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30199
30200         eval "$as_ac_var=no"
30201 fi
30202
30203 rm -f core conftest.err conftest.$ac_objext \
30204       conftest$ac_exeext conftest.$ac_ext
30205 fi
30206 ac_res=`eval echo '${'$as_ac_var'}'`
30207                { echo "$as_me:$LINENO: result: $ac_res" >&5
30208 echo "${ECHO_T}$ac_res" >&6; }
30209 if test `eval echo '${'$as_ac_var'}'` = yes; then
30210   cat >>confdefs.h <<_ACEOF
30211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30212 _ACEOF
30213
30214 fi
30215 done
30216
30217
30218
30219
30220
30221 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30222 do
30223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30227   echo $ECHO_N "(cached) $ECHO_C" >&6
30228 else
30229   cat >conftest.$ac_ext <<_ACEOF
30230 /* confdefs.h.  */
30231 _ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h.  */
30235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30237 #define $ac_func innocuous_$ac_func
30238
30239 /* System header to define __stub macros and hopefully few prototypes,
30240     which can conflict with char $ac_func (); below.
30241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30242     <limits.h> exists even on freestanding compilers.  */
30243
30244 #ifdef __STDC__
30245 # include <limits.h>
30246 #else
30247 # include <assert.h>
30248 #endif
30249
30250 #undef $ac_func
30251
30252 /* Override any GCC internal prototype to avoid an error.
30253    Use char because int might match the return type of a GCC
30254    builtin and then its argument prototype would still apply.  */
30255 #ifdef __cplusplus
30256 extern "C"
30257 #endif
30258 char $ac_func ();
30259 /* The GNU C library defines this for functions which it implements
30260     to always fail with ENOSYS.  Some functions are actually named
30261     something starting with __ and the normal name is an alias.  */
30262 #if defined __stub_$ac_func || defined __stub___$ac_func
30263 choke me
30264 #endif
30265
30266 int
30267 main ()
30268 {
30269 return $ac_func ();
30270   ;
30271   return 0;
30272 }
30273 _ACEOF
30274 rm -f conftest.$ac_objext conftest$ac_exeext
30275 if { (ac_try="$ac_link"
30276 case "(($ac_try" in
30277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278   *) ac_try_echo=$ac_try;;
30279 esac
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281   (eval "$ac_link") 2>conftest.er1
30282   ac_status=$?
30283   grep -v '^ *+' conftest.er1 >conftest.err
30284   rm -f conftest.er1
30285   cat conftest.err >&5
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); } &&
30288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30289   { (case "(($ac_try" in
30290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291   *) ac_try_echo=$ac_try;;
30292 esac
30293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294   (eval "$ac_try") 2>&5
30295   ac_status=$?
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); }; } &&
30298          { ac_try='test -s conftest$ac_exeext'
30299   { (case "(($ac_try" in
30300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301   *) ac_try_echo=$ac_try;;
30302 esac
30303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304   (eval "$ac_try") 2>&5
30305   ac_status=$?
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); }; }; then
30308   eval "$as_ac_var=yes"
30309 else
30310   echo "$as_me: failed program was:" >&5
30311 sed 's/^/| /' conftest.$ac_ext >&5
30312
30313         eval "$as_ac_var=no"
30314 fi
30315
30316 rm -f core conftest.err conftest.$ac_objext \
30317       conftest$ac_exeext conftest.$ac_ext
30318 fi
30319 ac_res=`eval echo '${'$as_ac_var'}'`
30320                { echo "$as_me:$LINENO: result: $ac_res" >&5
30321 echo "${ECHO_T}$ac_res" >&6; }
30322 if test `eval echo '${'$as_ac_var'}'` = yes; then
30323   cat >>confdefs.h <<_ACEOF
30324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30325 _ACEOF
30326
30327 fi
30328 done
30329
30330
30331
30332
30333
30334 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30335 do
30336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30340   echo $ECHO_N "(cached) $ECHO_C" >&6
30341 else
30342   cat >conftest.$ac_ext <<_ACEOF
30343 /* confdefs.h.  */
30344 _ACEOF
30345 cat confdefs.h >>conftest.$ac_ext
30346 cat >>conftest.$ac_ext <<_ACEOF
30347 /* end confdefs.h.  */
30348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30350 #define $ac_func innocuous_$ac_func
30351
30352 /* System header to define __stub macros and hopefully few prototypes,
30353     which can conflict with char $ac_func (); below.
30354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30355     <limits.h> exists even on freestanding compilers.  */
30356
30357 #ifdef __STDC__
30358 # include <limits.h>
30359 #else
30360 # include <assert.h>
30361 #endif
30362
30363 #undef $ac_func
30364
30365 /* Override any GCC internal prototype to avoid an error.
30366    Use char because int might match the return type of a GCC
30367    builtin and then its argument prototype would still apply.  */
30368 #ifdef __cplusplus
30369 extern "C"
30370 #endif
30371 char $ac_func ();
30372 /* The GNU C library defines this for functions which it implements
30373     to always fail with ENOSYS.  Some functions are actually named
30374     something starting with __ and the normal name is an alias.  */
30375 #if defined __stub_$ac_func || defined __stub___$ac_func
30376 choke me
30377 #endif
30378
30379 int
30380 main ()
30381 {
30382 return $ac_func ();
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391   *) ac_try_echo=$ac_try;;
30392 esac
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394   (eval "$ac_link") 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } &&
30401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30402   { (case "(($ac_try" in
30403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404   *) ac_try_echo=$ac_try;;
30405 esac
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407   (eval "$ac_try") 2>&5
30408   ac_status=$?
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); }; } &&
30411          { ac_try='test -s conftest$ac_exeext'
30412   { (case "(($ac_try" in
30413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414   *) ac_try_echo=$ac_try;;
30415 esac
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417   (eval "$ac_try") 2>&5
30418   ac_status=$?
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); }; }; then
30421   eval "$as_ac_var=yes"
30422 else
30423   echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.$ac_ext >&5
30425
30426         eval "$as_ac_var=no"
30427 fi
30428
30429 rm -f core conftest.err conftest.$ac_objext \
30430       conftest$ac_exeext conftest.$ac_ext
30431 fi
30432 ac_res=`eval echo '${'$as_ac_var'}'`
30433                { echo "$as_me:$LINENO: result: $ac_res" >&5
30434 echo "${ECHO_T}$ac_res" >&6; }
30435 if test `eval echo '${'$as_ac_var'}'` = yes; then
30436   cat >>confdefs.h <<_ACEOF
30437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30438 _ACEOF
30439
30440 fi
30441 done
30442
30443 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30444 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30445 if test "${llvm_cv_c_printf_a+set}" = set; then
30446   echo $ECHO_N "(cached) $ECHO_C" >&6
30447 else
30448   ac_ext=c
30449 ac_cpp='$CPP $CPPFLAGS'
30450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30453
30454  if test "$cross_compiling" = yes; then
30455   llvmac_cv_c_printf_a=no
30456 else
30457   cat >conftest.$ac_ext <<_ACEOF
30458
30459   /* confdefs.h.  */
30460 _ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h.  */
30464
30465 #include <stdio.h>
30466 #include <stdlib.h>
30467
30468 int
30469 main ()
30470 {
30471
30472 volatile double A, B;
30473 char Buffer[100];
30474 A = 1;
30475 A /= 10.0;
30476 sprintf(Buffer, "%a", A);
30477 B = atof(Buffer);
30478 if (A != B)
30479   return (1);
30480 if (A != 0x1.999999999999ap-4)
30481   return (1);
30482 return (0);
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_link") 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30498   { (case "(($ac_try" in
30499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500   *) ac_try_echo=$ac_try;;
30501 esac
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503   (eval "$ac_try") 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; }; then
30507   llvm_cv_c_printf_a=yes
30508 else
30509   echo "$as_me: program exited with status $ac_status" >&5
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513 ( exit $ac_status )
30514 llvmac_cv_c_printf_a=no
30515 fi
30516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30517 fi
30518
30519
30520  ac_ext=c
30521 ac_cpp='$CPP $CPPFLAGS'
30522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30525
30526 fi
30527 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30528 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30529  if test "$llvm_cv_c_printf_a" = "yes"; then
30530
30531 cat >>confdefs.h <<\_ACEOF
30532 #define HAVE_PRINTF_A 1
30533 _ACEOF
30534
30535  fi
30536
30537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30538 # for constant arguments.  Useless!
30539 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30541 if test "${ac_cv_working_alloca_h+set}" = set; then
30542   echo $ECHO_N "(cached) $ECHO_C" >&6
30543 else
30544   cat >conftest.$ac_ext <<_ACEOF
30545 /* confdefs.h.  */
30546 _ACEOF
30547 cat confdefs.h >>conftest.$ac_ext
30548 cat >>conftest.$ac_ext <<_ACEOF
30549 /* end confdefs.h.  */
30550 #include <alloca.h>
30551 int
30552 main ()
30553 {
30554 char *p = (char *) alloca (2 * sizeof (int));
30555                           if (p) return 0;
30556   ;
30557   return 0;
30558 }
30559 _ACEOF
30560 rm -f conftest.$ac_objext conftest$ac_exeext
30561 if { (ac_try="$ac_link"
30562 case "(($ac_try" in
30563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564   *) ac_try_echo=$ac_try;;
30565 esac
30566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567   (eval "$ac_link") 2>conftest.er1
30568   ac_status=$?
30569   grep -v '^ *+' conftest.er1 >conftest.err
30570   rm -f conftest.er1
30571   cat conftest.err >&5
30572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573   (exit $ac_status); } &&
30574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30575   { (case "(($ac_try" in
30576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577   *) ac_try_echo=$ac_try;;
30578 esac
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580   (eval "$ac_try") 2>&5
30581   ac_status=$?
30582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); }; } &&
30584          { ac_try='test -s conftest$ac_exeext'
30585   { (case "(($ac_try" in
30586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587   *) ac_try_echo=$ac_try;;
30588 esac
30589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590   (eval "$ac_try") 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; }; then
30594   ac_cv_working_alloca_h=yes
30595 else
30596   echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599         ac_cv_working_alloca_h=no
30600 fi
30601
30602 rm -f core conftest.err conftest.$ac_objext \
30603       conftest$ac_exeext conftest.$ac_ext
30604 fi
30605 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30606 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30607 if test $ac_cv_working_alloca_h = yes; then
30608
30609 cat >>confdefs.h <<\_ACEOF
30610 #define HAVE_ALLOCA_H 1
30611 _ACEOF
30612
30613 fi
30614
30615 { echo "$as_me:$LINENO: checking for alloca" >&5
30616 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30617 if test "${ac_cv_func_alloca_works+set}" = set; then
30618   echo $ECHO_N "(cached) $ECHO_C" >&6
30619 else
30620   cat >conftest.$ac_ext <<_ACEOF
30621 /* confdefs.h.  */
30622 _ACEOF
30623 cat confdefs.h >>conftest.$ac_ext
30624 cat >>conftest.$ac_ext <<_ACEOF
30625 /* end confdefs.h.  */
30626 #ifdef __GNUC__
30627 # define alloca __builtin_alloca
30628 #else
30629 # ifdef _MSC_VER
30630 #  include <malloc.h>
30631 #  define alloca _alloca
30632 # else
30633 #  if HAVE_ALLOCA_H
30634 #   include <alloca.h>
30635 #  else
30636 #   ifdef _AIX
30637  #pragma alloca
30638 #   else
30639 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30640 char *alloca ();
30641 #    endif
30642 #   endif
30643 #  endif
30644 # endif
30645 #endif
30646
30647 int
30648 main ()
30649 {
30650 char *p = (char *) alloca (1);
30651                                     if (p) return 0;
30652   ;
30653   return 0;
30654 }
30655 _ACEOF
30656 rm -f conftest.$ac_objext conftest$ac_exeext
30657 if { (ac_try="$ac_link"
30658 case "(($ac_try" in
30659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660   *) ac_try_echo=$ac_try;;
30661 esac
30662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663   (eval "$ac_link") 2>conftest.er1
30664   ac_status=$?
30665   grep -v '^ *+' conftest.er1 >conftest.err
30666   rm -f conftest.er1
30667   cat conftest.err >&5
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); } &&
30670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30671   { (case "(($ac_try" in
30672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673   *) ac_try_echo=$ac_try;;
30674 esac
30675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676   (eval "$ac_try") 2>&5
30677   ac_status=$?
30678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679   (exit $ac_status); }; } &&
30680          { ac_try='test -s conftest$ac_exeext'
30681   { (case "(($ac_try" in
30682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683   *) ac_try_echo=$ac_try;;
30684 esac
30685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30686   (eval "$ac_try") 2>&5
30687   ac_status=$?
30688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689   (exit $ac_status); }; }; then
30690   ac_cv_func_alloca_works=yes
30691 else
30692   echo "$as_me: failed program was:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30694
30695         ac_cv_func_alloca_works=no
30696 fi
30697
30698 rm -f core conftest.err conftest.$ac_objext \
30699       conftest$ac_exeext conftest.$ac_ext
30700 fi
30701 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30702 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30703
30704 if test $ac_cv_func_alloca_works = yes; then
30705
30706 cat >>confdefs.h <<\_ACEOF
30707 #define HAVE_ALLOCA 1
30708 _ACEOF
30709
30710 else
30711   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30712 # that cause trouble.  Some versions do not even contain alloca or
30713 # contain a buggy version.  If you still want to use their alloca,
30714 # use ar to extract alloca.o from them instead of compiling alloca.c.
30715
30716 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30717
30718 cat >>confdefs.h <<\_ACEOF
30719 #define C_ALLOCA 1
30720 _ACEOF
30721
30722
30723 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30724 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30725 if test "${ac_cv_os_cray+set}" = set; then
30726   echo $ECHO_N "(cached) $ECHO_C" >&6
30727 else
30728   cat >conftest.$ac_ext <<_ACEOF
30729 /* confdefs.h.  */
30730 _ACEOF
30731 cat confdefs.h >>conftest.$ac_ext
30732 cat >>conftest.$ac_ext <<_ACEOF
30733 /* end confdefs.h.  */
30734 #if defined CRAY && ! defined CRAY2
30735 webecray
30736 #else
30737 wenotbecray
30738 #endif
30739
30740 _ACEOF
30741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30742   $EGREP "webecray" >/dev/null 2>&1; then
30743   ac_cv_os_cray=yes
30744 else
30745   ac_cv_os_cray=no
30746 fi
30747 rm -f conftest*
30748
30749 fi
30750 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30751 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30752 if test $ac_cv_os_cray = yes; then
30753   for ac_func in _getb67 GETB67 getb67; do
30754     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758   echo $ECHO_N "(cached) $ECHO_C" >&6
30759 else
30760   cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h.  */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h.  */
30766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30768 #define $ac_func innocuous_$ac_func
30769
30770 /* System header to define __stub macros and hopefully few prototypes,
30771     which can conflict with char $ac_func (); below.
30772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773     <limits.h> exists even on freestanding compilers.  */
30774
30775 #ifdef __STDC__
30776 # include <limits.h>
30777 #else
30778 # include <assert.h>
30779 #endif
30780
30781 #undef $ac_func
30782
30783 /* Override any GCC internal prototype to avoid an error.
30784    Use char because int might match the return type of a GCC
30785    builtin and then its argument prototype would still apply.  */
30786 #ifdef __cplusplus
30787 extern "C"
30788 #endif
30789 char $ac_func ();
30790 /* The GNU C library defines this for functions which it implements
30791     to always fail with ENOSYS.  Some functions are actually named
30792     something starting with __ and the normal name is an alias.  */
30793 #if defined __stub_$ac_func || defined __stub___$ac_func
30794 choke me
30795 #endif
30796
30797 int
30798 main ()
30799 {
30800 return $ac_func ();
30801   ;
30802   return 0;
30803 }
30804 _ACEOF
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809   *) ac_try_echo=$ac_try;;
30810 esac
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812   (eval "$ac_link") 2>conftest.er1
30813   ac_status=$?
30814   grep -v '^ *+' conftest.er1 >conftest.err
30815   rm -f conftest.er1
30816   cat conftest.err >&5
30817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818   (exit $ac_status); } &&
30819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820   { (case "(($ac_try" in
30821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822   *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825   (eval "$ac_try") 2>&5
30826   ac_status=$?
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); }; } &&
30829          { ac_try='test -s conftest$ac_exeext'
30830   { (case "(($ac_try" in
30831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832   *) ac_try_echo=$ac_try;;
30833 esac
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835   (eval "$ac_try") 2>&5
30836   ac_status=$?
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); }; }; then
30839   eval "$as_ac_var=yes"
30840 else
30841   echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30843
30844         eval "$as_ac_var=no"
30845 fi
30846
30847 rm -f core conftest.err conftest.$ac_objext \
30848       conftest$ac_exeext conftest.$ac_ext
30849 fi
30850 ac_res=`eval echo '${'$as_ac_var'}'`
30851                { echo "$as_me:$LINENO: result: $ac_res" >&5
30852 echo "${ECHO_T}$ac_res" >&6; }
30853 if test `eval echo '${'$as_ac_var'}'` = yes; then
30854
30855 cat >>confdefs.h <<_ACEOF
30856 #define CRAY_STACKSEG_END $ac_func
30857 _ACEOF
30858
30859     break
30860 fi
30861
30862   done
30863 fi
30864
30865 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30867 if test "${ac_cv_c_stack_direction+set}" = set; then
30868   echo $ECHO_N "(cached) $ECHO_C" >&6
30869 else
30870   if test "$cross_compiling" = yes; then
30871   ac_cv_c_stack_direction=0
30872 else
30873   cat >conftest.$ac_ext <<_ACEOF
30874 /* confdefs.h.  */
30875 _ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h.  */
30879 $ac_includes_default
30880 int
30881 find_stack_direction ()
30882 {
30883   static char *addr = 0;
30884   auto char dummy;
30885   if (addr == 0)
30886     {
30887       addr = &dummy;
30888       return find_stack_direction ();
30889     }
30890   else
30891     return (&dummy > addr) ? 1 : -1;
30892 }
30893
30894 int
30895 main ()
30896 {
30897   return find_stack_direction () < 0;
30898 }
30899 _ACEOF
30900 rm -f conftest$ac_exeext
30901 if { (ac_try="$ac_link"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_link") 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30911   { (case "(($ac_try" in
30912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913   *) ac_try_echo=$ac_try;;
30914 esac
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916   (eval "$ac_try") 2>&5
30917   ac_status=$?
30918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919   (exit $ac_status); }; }; then
30920   ac_cv_c_stack_direction=1
30921 else
30922   echo "$as_me: program exited with status $ac_status" >&5
30923 echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.$ac_ext >&5
30925
30926 ( exit $ac_status )
30927 ac_cv_c_stack_direction=-1
30928 fi
30929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30930 fi
30931
30932
30933 fi
30934 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30936
30937 cat >>confdefs.h <<_ACEOF
30938 #define STACK_DIRECTION $ac_cv_c_stack_direction
30939 _ACEOF
30940
30941
30942 fi
30943
30944
30945 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30946 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30947 if test "${ac_cv_func_rand48+set}" = set; then
30948   echo $ECHO_N "(cached) $ECHO_C" >&6
30949 else
30950   ac_ext=cpp
30951 ac_cpp='$CXXCPP $CPPFLAGS'
30952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30955
30956    cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962 #include <stdlib.h>
30963 int
30964 main ()
30965 {
30966 srand48(0);lrand48();drand48();
30967   ;
30968   return 0;
30969 }
30970 _ACEOF
30971 rm -f conftest.$ac_objext
30972 if { (ac_try="$ac_compile"
30973 case "(($ac_try" in
30974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975   *) ac_try_echo=$ac_try;;
30976 esac
30977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978   (eval "$ac_compile") 2>conftest.er1
30979   ac_status=$?
30980   grep -v '^ *+' conftest.er1 >conftest.err
30981   rm -f conftest.er1
30982   cat conftest.err >&5
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); } &&
30985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30986   { (case "(($ac_try" in
30987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988   *) ac_try_echo=$ac_try;;
30989 esac
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991   (eval "$ac_try") 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; } &&
30995          { ac_try='test -s conftest.$ac_objext'
30996   { (case "(($ac_try" in
30997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998   *) ac_try_echo=$ac_try;;
30999 esac
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001   (eval "$ac_try") 2>&5
31002   ac_status=$?
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); }; }; then
31005   ac_cv_func_rand48=yes
31006 else
31007   echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31009
31010         ac_cv_func_rand48=no
31011 fi
31012
31013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31014   ac_ext=c
31015 ac_cpp='$CPP $CPPFLAGS'
31016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31019
31020 fi
31021 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31022 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31023
31024 if test "$ac_cv_func_rand48" = "yes" ; then
31025
31026 cat >>confdefs.h <<\_ACEOF
31027 #define HAVE_RAND48 1
31028 _ACEOF
31029
31030 fi
31031
31032
31033 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31034 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31035 if test "${ac_cv_cxx_namespaces+set}" = set; then
31036   echo $ECHO_N "(cached) $ECHO_C" >&6
31037 else
31038   ac_ext=cpp
31039 ac_cpp='$CXXCPP $CPPFLAGS'
31040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31043
31044  cat >conftest.$ac_ext <<_ACEOF
31045 /* confdefs.h.  */
31046 _ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h.  */
31050 namespace Outer { namespace Inner { int i = 0; }}
31051 int
31052 main ()
31053 {
31054 using namespace Outer::Inner; return i;
31055   ;
31056   return 0;
31057 }
31058 _ACEOF
31059 rm -f conftest.$ac_objext
31060 if { (ac_try="$ac_compile"
31061 case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_compile") 2>conftest.er1
31067   ac_status=$?
31068   grep -v '^ *+' conftest.er1 >conftest.err
31069   rm -f conftest.er1
31070   cat conftest.err >&5
31071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072   (exit $ac_status); } &&
31073          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31074   { (case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_try") 2>&5
31080   ac_status=$?
31081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082   (exit $ac_status); }; } &&
31083          { ac_try='test -s conftest.$ac_objext'
31084   { (case "(($ac_try" in
31085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086   *) ac_try_echo=$ac_try;;
31087 esac
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089   (eval "$ac_try") 2>&5
31090   ac_status=$?
31091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092   (exit $ac_status); }; }; then
31093   ac_cv_cxx_namespaces=yes
31094 else
31095   echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31097
31098         ac_cv_cxx_namespaces=no
31099 fi
31100
31101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31102  ac_ext=c
31103 ac_cpp='$CPP $CPPFLAGS'
31104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31107
31108
31109 fi
31110 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31111 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31112 if test "$ac_cv_cxx_namespaces" = yes; then
31113
31114 cat >>confdefs.h <<\_ACEOF
31115 #define HAVE_NAMESPACES
31116 _ACEOF
31117
31118 fi
31119
31120 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31121 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31122 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31123   echo $ECHO_N "(cached) $ECHO_C" >&6
31124 else
31125
31126   ac_ext=cpp
31127 ac_cpp='$CXXCPP $CPPFLAGS'
31128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31131
31132   cat >conftest.$ac_ext <<_ACEOF
31133 /* confdefs.h.  */
31134 _ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h.  */
31138 #include <ext/hash_map>
31139 #ifdef HAVE_NAMESPACES
31140 using namespace std;
31141 #endif
31142 int
31143 main ()
31144 {
31145 hash_map<int, int> t;
31146   ;
31147   return 0;
31148 }
31149 _ACEOF
31150 rm -f conftest.$ac_objext
31151 if { (ac_try="$ac_compile"
31152 case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157   (eval "$ac_compile") 2>conftest.er1
31158   ac_status=$?
31159   grep -v '^ *+' conftest.er1 >conftest.err
31160   rm -f conftest.er1
31161   cat conftest.err >&5
31162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163   (exit $ac_status); } &&
31164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31165   { (case "(($ac_try" in
31166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167   *) ac_try_echo=$ac_try;;
31168 esac
31169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31170   (eval "$ac_try") 2>&5
31171   ac_status=$?
31172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173   (exit $ac_status); }; } &&
31174          { ac_try='test -s conftest.$ac_objext'
31175   { (case "(($ac_try" in
31176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177   *) ac_try_echo=$ac_try;;
31178 esac
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180   (eval "$ac_try") 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; }; then
31184   ac_cv_cxx_have_std_ext_hash_map=yes
31185 else
31186   echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31188
31189         ac_cv_cxx_have_std_ext_hash_map=no
31190 fi
31191
31192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31193   ac_ext=c
31194 ac_cpp='$CPP $CPPFLAGS'
31195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31198
31199 fi
31200 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31201 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31202  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31203  then
31204
31205 cat >>confdefs.h <<\_ACEOF
31206 #define HAVE_STD_EXT_HASH_MAP 1
31207 _ACEOF
31208
31209  else
31210
31211 cat >>confdefs.h <<\_ACEOF
31212 #define HAVE_STD_EXT_HASH_MAP 0
31213 _ACEOF
31214
31215  fi
31216
31217  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31218 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31219 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31220   echo $ECHO_N "(cached) $ECHO_C" >&6
31221 else
31222
31223   ac_ext=cpp
31224 ac_cpp='$CXXCPP $CPPFLAGS'
31225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31228
31229   cat >conftest.$ac_ext <<_ACEOF
31230 /* confdefs.h.  */
31231 _ACEOF
31232 cat confdefs.h >>conftest.$ac_ext
31233 cat >>conftest.$ac_ext <<_ACEOF
31234 /* end confdefs.h.  */
31235 #include <ext/hash_map>
31236 #ifdef HAVE_NAMESPACES
31237 using namespace __gnu_cxx;
31238 #endif
31239 int
31240 main ()
31241 {
31242 hash_map<int,int> t;
31243   ;
31244   return 0;
31245 }
31246 _ACEOF
31247 rm -f conftest.$ac_objext
31248 if { (ac_try="$ac_compile"
31249 case "(($ac_try" in
31250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251   *) ac_try_echo=$ac_try;;
31252 esac
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254   (eval "$ac_compile") 2>conftest.er1
31255   ac_status=$?
31256   grep -v '^ *+' conftest.er1 >conftest.err
31257   rm -f conftest.er1
31258   cat conftest.err >&5
31259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260   (exit $ac_status); } &&
31261          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31262   { (case "(($ac_try" in
31263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264   *) ac_try_echo=$ac_try;;
31265 esac
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267   (eval "$ac_try") 2>&5
31268   ac_status=$?
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); }; } &&
31271          { ac_try='test -s conftest.$ac_objext'
31272   { (case "(($ac_try" in
31273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274   *) ac_try_echo=$ac_try;;
31275 esac
31276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277   (eval "$ac_try") 2>&5
31278   ac_status=$?
31279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280   (exit $ac_status); }; }; then
31281   ac_cv_cxx_have_gnu_ext_hash_map=yes
31282 else
31283   echo "$as_me: failed program was:" >&5
31284 sed 's/^/| /' conftest.$ac_ext >&5
31285
31286         ac_cv_cxx_have_gnu_ext_hash_map=no
31287 fi
31288
31289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31290   ac_ext=c
31291 ac_cpp='$CPP $CPPFLAGS'
31292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31295
31296 fi
31297 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31298 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31299  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31300  then
31301
31302 cat >>confdefs.h <<\_ACEOF
31303 #define HAVE_GNU_EXT_HASH_MAP 1
31304 _ACEOF
31305
31306  else
31307
31308 cat >>confdefs.h <<\_ACEOF
31309 #define HAVE_GNU_EXT_HASH_MAP 0
31310 _ACEOF
31311
31312  fi
31313
31314  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31315 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31316 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31317   echo $ECHO_N "(cached) $ECHO_C" >&6
31318 else
31319
31320   ac_ext=cpp
31321 ac_cpp='$CXXCPP $CPPFLAGS'
31322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31325
31326   cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 #include <hash_map>
31333 int
31334 main ()
31335 {
31336 hash_map<int,int> t;
31337   ;
31338   return 0;
31339 }
31340 _ACEOF
31341 rm -f conftest.$ac_objext
31342 if { (ac_try="$ac_compile"
31343 case "(($ac_try" in
31344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345   *) ac_try_echo=$ac_try;;
31346 esac
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348   (eval "$ac_compile") 2>conftest.er1
31349   ac_status=$?
31350   grep -v '^ *+' conftest.er1 >conftest.err
31351   rm -f conftest.er1
31352   cat conftest.err >&5
31353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354   (exit $ac_status); } &&
31355          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31356   { (case "(($ac_try" in
31357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31358   *) ac_try_echo=$ac_try;;
31359 esac
31360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31361   (eval "$ac_try") 2>&5
31362   ac_status=$?
31363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364   (exit $ac_status); }; } &&
31365          { ac_try='test -s conftest.$ac_objext'
31366   { (case "(($ac_try" in
31367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368   *) ac_try_echo=$ac_try;;
31369 esac
31370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371   (eval "$ac_try") 2>&5
31372   ac_status=$?
31373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374   (exit $ac_status); }; }; then
31375   ac_cv_cxx_have_global_hash_map=yes
31376 else
31377   echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31379
31380         ac_cv_cxx_have_global_hash_map=no
31381 fi
31382
31383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31384   ac_ext=c
31385 ac_cpp='$CPP $CPPFLAGS'
31386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31389
31390 fi
31391 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31392 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31393  if test "$ac_cv_cxx_have_global_hash_map" = yes
31394  then
31395
31396 cat >>confdefs.h <<\_ACEOF
31397 #define HAVE_GLOBAL_HASH_MAP 1
31398 _ACEOF
31399
31400  else
31401
31402 cat >>confdefs.h <<\_ACEOF
31403 #define HAVE_GLOBAL_HASH_MAP 0
31404 _ACEOF
31405
31406  fi
31407
31408 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31409 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31410 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31411   echo $ECHO_N "(cached) $ECHO_C" >&6
31412 else
31413
31414   ac_ext=cpp
31415 ac_cpp='$CXXCPP $CPPFLAGS'
31416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31419
31420   cat >conftest.$ac_ext <<_ACEOF
31421 /* confdefs.h.  */
31422 _ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h.  */
31426 #include <ext/hash_set>
31427 #ifdef HAVE_NAMESPACES
31428 using namespace std;
31429 #endif
31430 int
31431 main ()
31432 {
31433 hash_set<int> t;
31434   ;
31435   return 0;
31436 }
31437 _ACEOF
31438 rm -f conftest.$ac_objext
31439 if { (ac_try="$ac_compile"
31440 case "(($ac_try" in
31441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442   *) ac_try_echo=$ac_try;;
31443 esac
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445   (eval "$ac_compile") 2>conftest.er1
31446   ac_status=$?
31447   grep -v '^ *+' conftest.er1 >conftest.err
31448   rm -f conftest.er1
31449   cat conftest.err >&5
31450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451   (exit $ac_status); } &&
31452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31453   { (case "(($ac_try" in
31454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455   *) ac_try_echo=$ac_try;;
31456 esac
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458   (eval "$ac_try") 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); }; } &&
31462          { ac_try='test -s conftest.$ac_objext'
31463   { (case "(($ac_try" in
31464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465   *) ac_try_echo=$ac_try;;
31466 esac
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468   (eval "$ac_try") 2>&5
31469   ac_status=$?
31470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471   (exit $ac_status); }; }; then
31472   ac_cv_cxx_have_std_ext_hash_set=yes
31473 else
31474   echo "$as_me: failed program was:" >&5
31475 sed 's/^/| /' conftest.$ac_ext >&5
31476
31477         ac_cv_cxx_have_std_ext_hash_set=no
31478 fi
31479
31480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481   ac_ext=c
31482 ac_cpp='$CPP $CPPFLAGS'
31483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31486
31487 fi
31488 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31489 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31490  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31491  then
31492
31493 cat >>confdefs.h <<\_ACEOF
31494 #define HAVE_STD_EXT_HASH_SET 1
31495 _ACEOF
31496
31497  else
31498
31499 cat >>confdefs.h <<\_ACEOF
31500 #define HAVE_STD_EXT_HASH_SET 0
31501 _ACEOF
31502
31503  fi
31504
31505  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31506 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31507 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 else
31510
31511   ac_ext=cpp
31512 ac_cpp='$CXXCPP $CPPFLAGS'
31513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31516
31517   cat >conftest.$ac_ext <<_ACEOF
31518 /* confdefs.h.  */
31519 _ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h.  */
31523 #include <ext/hash_set>
31524 #ifdef HAVE_NAMESPACES
31525 using namespace __gnu_cxx;
31526 #endif
31527 int
31528 main ()
31529 {
31530 hash_set<int> t;
31531   ;
31532   return 0;
31533 }
31534 _ACEOF
31535 rm -f conftest.$ac_objext
31536 if { (ac_try="$ac_compile"
31537 case "(($ac_try" in
31538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539   *) ac_try_echo=$ac_try;;
31540 esac
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542   (eval "$ac_compile") 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } &&
31549          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31550   { (case "(($ac_try" in
31551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552   *) ac_try_echo=$ac_try;;
31553 esac
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555   (eval "$ac_try") 2>&5
31556   ac_status=$?
31557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558   (exit $ac_status); }; } &&
31559          { ac_try='test -s conftest.$ac_objext'
31560   { (case "(($ac_try" in
31561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562   *) ac_try_echo=$ac_try;;
31563 esac
31564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565   (eval "$ac_try") 2>&5
31566   ac_status=$?
31567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); }; }; then
31569   ac_cv_cxx_have_gnu_ext_hash_set=yes
31570 else
31571   echo "$as_me: failed program was:" >&5
31572 sed 's/^/| /' conftest.$ac_ext >&5
31573
31574         ac_cv_cxx_have_gnu_ext_hash_set=no
31575 fi
31576
31577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31578   ac_ext=c
31579 ac_cpp='$CPP $CPPFLAGS'
31580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31583
31584 fi
31585 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31586 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31587  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31588  then
31589
31590 cat >>confdefs.h <<\_ACEOF
31591 #define HAVE_GNU_EXT_HASH_SET 1
31592 _ACEOF
31593
31594  else
31595
31596 cat >>confdefs.h <<\_ACEOF
31597 #define HAVE_GNU_EXT_HASH_SET 0
31598 _ACEOF
31599
31600  fi
31601
31602  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31603 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31604 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31605   echo $ECHO_N "(cached) $ECHO_C" >&6
31606 else
31607
31608   ac_ext=cpp
31609 ac_cpp='$CXXCPP $CPPFLAGS'
31610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31613
31614   cat >conftest.$ac_ext <<_ACEOF
31615 /* confdefs.h.  */
31616 _ACEOF
31617 cat confdefs.h >>conftest.$ac_ext
31618 cat >>conftest.$ac_ext <<_ACEOF
31619 /* end confdefs.h.  */
31620 #include <hash_set>
31621 int
31622 main ()
31623 {
31624 hash_set<int> t; return 0;
31625   ;
31626   return 0;
31627 }
31628 _ACEOF
31629 rm -f conftest.$ac_objext
31630 if { (ac_try="$ac_compile"
31631 case "(($ac_try" in
31632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633   *) ac_try_echo=$ac_try;;
31634 esac
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636   (eval "$ac_compile") 2>conftest.er1
31637   ac_status=$?
31638   grep -v '^ *+' conftest.er1 >conftest.err
31639   rm -f conftest.er1
31640   cat conftest.err >&5
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); } &&
31643          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31644   { (case "(($ac_try" in
31645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646   *) ac_try_echo=$ac_try;;
31647 esac
31648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649   (eval "$ac_try") 2>&5
31650   ac_status=$?
31651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652   (exit $ac_status); }; } &&
31653          { ac_try='test -s conftest.$ac_objext'
31654   { (case "(($ac_try" in
31655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656   *) ac_try_echo=$ac_try;;
31657 esac
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659   (eval "$ac_try") 2>&5
31660   ac_status=$?
31661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662   (exit $ac_status); }; }; then
31663   ac_cv_cxx_have_global_hash_set=yes
31664 else
31665   echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31667
31668         ac_cv_cxx_have_global_hash_set=no
31669 fi
31670
31671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31672   ac_ext=c
31673 ac_cpp='$CPP $CPPFLAGS'
31674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31677
31678 fi
31679 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31680 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31681  if test "$ac_cv_cxx_have_global_hash_set" = yes
31682  then
31683
31684 cat >>confdefs.h <<\_ACEOF
31685 #define HAVE_GLOBAL_HASH_SET 1
31686 _ACEOF
31687
31688  else
31689
31690 cat >>confdefs.h <<\_ACEOF
31691 #define HAVE_GLOBAL_HASH_SET 0
31692 _ACEOF
31693
31694  fi
31695
31696 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31697 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31698 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31699   echo $ECHO_N "(cached) $ECHO_C" >&6
31700 else
31701
31702   ac_ext=cpp
31703 ac_cpp='$CXXCPP $CPPFLAGS'
31704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31707
31708   cat >conftest.$ac_ext <<_ACEOF
31709 /* confdefs.h.  */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h.  */
31714 #include <iterator>
31715 #ifdef HAVE_NAMESPACES
31716 using namespace std;
31717 #endif
31718 int
31719 main ()
31720 {
31721 iterator<int,int,int> t; return 0;
31722   ;
31723   return 0;
31724 }
31725 _ACEOF
31726 rm -f conftest.$ac_objext
31727 if { (ac_try="$ac_compile"
31728 case "(($ac_try" in
31729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730   *) ac_try_echo=$ac_try;;
31731 esac
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733   (eval "$ac_compile") 2>conftest.er1
31734   ac_status=$?
31735   grep -v '^ *+' conftest.er1 >conftest.err
31736   rm -f conftest.er1
31737   cat conftest.err >&5
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); } &&
31740          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741   { (case "(($ac_try" in
31742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743   *) ac_try_echo=$ac_try;;
31744 esac
31745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746   (eval "$ac_try") 2>&5
31747   ac_status=$?
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); }; } &&
31750          { ac_try='test -s conftest.$ac_objext'
31751   { (case "(($ac_try" in
31752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753   *) ac_try_echo=$ac_try;;
31754 esac
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756   (eval "$ac_try") 2>&5
31757   ac_status=$?
31758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759   (exit $ac_status); }; }; then
31760   ac_cv_cxx_have_std_iterator=yes
31761 else
31762   echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31764
31765         ac_cv_cxx_have_std_iterator=no
31766 fi
31767
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31769   ac_ext=c
31770 ac_cpp='$CPP $CPPFLAGS'
31771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31774
31775
31776 fi
31777 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31778 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31779 if test "$ac_cv_cxx_have_std_iterator" = yes
31780 then
31781
31782 cat >>confdefs.h <<\_ACEOF
31783 #define HAVE_STD_ITERATOR 1
31784 _ACEOF
31785
31786 else
31787
31788 cat >>confdefs.h <<\_ACEOF
31789 #define HAVE_STD_ITERATOR 0
31790 _ACEOF
31791
31792 fi
31793
31794 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31795 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31796 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31797   echo $ECHO_N "(cached) $ECHO_C" >&6
31798 else
31799
31800   ac_ext=cpp
31801 ac_cpp='$CXXCPP $CPPFLAGS'
31802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31805
31806   cat >conftest.$ac_ext <<_ACEOF
31807 /* confdefs.h.  */
31808 _ACEOF
31809 cat confdefs.h >>conftest.$ac_ext
31810 cat >>conftest.$ac_ext <<_ACEOF
31811 /* end confdefs.h.  */
31812 #include <iterator>
31813 #ifdef HAVE_NAMESPACES
31814 using namespace std;
31815 #endif
31816 int
31817 main ()
31818 {
31819 bidirectional_iterator<int,int> t; return 0;
31820   ;
31821   return 0;
31822 }
31823 _ACEOF
31824 rm -f conftest.$ac_objext
31825 if { (ac_try="$ac_compile"
31826 case "(($ac_try" in
31827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828   *) ac_try_echo=$ac_try;;
31829 esac
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831   (eval "$ac_compile") 2>conftest.er1
31832   ac_status=$?
31833   grep -v '^ *+' conftest.er1 >conftest.err
31834   rm -f conftest.er1
31835   cat conftest.err >&5
31836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837   (exit $ac_status); } &&
31838          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31839   { (case "(($ac_try" in
31840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841   *) ac_try_echo=$ac_try;;
31842 esac
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844   (eval "$ac_try") 2>&5
31845   ac_status=$?
31846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); }; } &&
31848          { ac_try='test -s conftest.$ac_objext'
31849   { (case "(($ac_try" in
31850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851   *) ac_try_echo=$ac_try;;
31852 esac
31853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854   (eval "$ac_try") 2>&5
31855   ac_status=$?
31856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857   (exit $ac_status); }; }; then
31858   ac_cv_cxx_have_bi_iterator=yes
31859 else
31860   echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31862
31863         ac_cv_cxx_have_bi_iterator=no
31864 fi
31865
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31867   ac_ext=c
31868 ac_cpp='$CPP $CPPFLAGS'
31869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31872
31873
31874 fi
31875 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31876 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31877 if test "$ac_cv_cxx_have_bi_iterator" = yes
31878 then
31879
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_BI_ITERATOR 1
31882 _ACEOF
31883
31884 else
31885
31886 cat >>confdefs.h <<\_ACEOF
31887 #define HAVE_BI_ITERATOR 0
31888 _ACEOF
31889
31890 fi
31891
31892 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31893 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31894 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31895   echo $ECHO_N "(cached) $ECHO_C" >&6
31896 else
31897
31898   ac_ext=cpp
31899 ac_cpp='$CXXCPP $CPPFLAGS'
31900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31903
31904   cat >conftest.$ac_ext <<_ACEOF
31905 /* confdefs.h.  */
31906 _ACEOF
31907 cat confdefs.h >>conftest.$ac_ext
31908 cat >>conftest.$ac_ext <<_ACEOF
31909 /* end confdefs.h.  */
31910 #include <iterator>
31911 #ifdef HAVE_NAMESPACES
31912 using namespace std;
31913 #endif
31914 int
31915 main ()
31916 {
31917 forward_iterator<int,int> t; return 0;
31918   ;
31919   return 0;
31920 }
31921 _ACEOF
31922 rm -f conftest.$ac_objext
31923 if { (ac_try="$ac_compile"
31924 case "(($ac_try" in
31925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926   *) ac_try_echo=$ac_try;;
31927 esac
31928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929   (eval "$ac_compile") 2>conftest.er1
31930   ac_status=$?
31931   grep -v '^ *+' conftest.er1 >conftest.err
31932   rm -f conftest.er1
31933   cat conftest.err >&5
31934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935   (exit $ac_status); } &&
31936          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31937   { (case "(($ac_try" in
31938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939   *) ac_try_echo=$ac_try;;
31940 esac
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942   (eval "$ac_try") 2>&5
31943   ac_status=$?
31944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945   (exit $ac_status); }; } &&
31946          { ac_try='test -s conftest.$ac_objext'
31947   { (case "(($ac_try" in
31948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949   *) ac_try_echo=$ac_try;;
31950 esac
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952   (eval "$ac_try") 2>&5
31953   ac_status=$?
31954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955   (exit $ac_status); }; }; then
31956   ac_cv_cxx_have_fwd_iterator=yes
31957 else
31958   echo "$as_me: failed program was:" >&5
31959 sed 's/^/| /' conftest.$ac_ext >&5
31960
31961         ac_cv_cxx_have_fwd_iterator=no
31962 fi
31963
31964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31965   ac_ext=c
31966 ac_cpp='$CPP $CPPFLAGS'
31967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31970
31971
31972 fi
31973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31974 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31975 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31976 then
31977
31978 cat >>confdefs.h <<\_ACEOF
31979 #define HAVE_FWD_ITERATOR 1
31980 _ACEOF
31981
31982 else
31983
31984 cat >>confdefs.h <<\_ACEOF
31985 #define HAVE_FWD_ITERATOR 0
31986 _ACEOF
31987
31988 fi
31989
31990
31991 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31992 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31993 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31994   echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996   ac_ext=cpp
31997 ac_cpp='$CXXCPP $CPPFLAGS'
31998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32001
32002    cat >conftest.$ac_ext <<_ACEOF
32003 /* confdefs.h.  */
32004 _ACEOF
32005 cat confdefs.h >>conftest.$ac_ext
32006 cat >>conftest.$ac_ext <<_ACEOF
32007 /* end confdefs.h.  */
32008 #include <math.h>
32009 int
32010 main ()
32011 {
32012 float f; isnan(f);
32013   ;
32014   return 0;
32015 }
32016 _ACEOF
32017 rm -f conftest.$ac_objext
32018 if { (ac_try="$ac_compile"
32019 case "(($ac_try" in
32020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32021   *) ac_try_echo=$ac_try;;
32022 esac
32023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32024   (eval "$ac_compile") 2>conftest.er1
32025   ac_status=$?
32026   grep -v '^ *+' conftest.er1 >conftest.err
32027   rm -f conftest.er1
32028   cat conftest.err >&5
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); } &&
32031          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32032   { (case "(($ac_try" in
32033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034   *) ac_try_echo=$ac_try;;
32035 esac
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037   (eval "$ac_try") 2>&5
32038   ac_status=$?
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); }; } &&
32041          { ac_try='test -s conftest.$ac_objext'
32042   { (case "(($ac_try" in
32043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044   *) ac_try_echo=$ac_try;;
32045 esac
32046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047   (eval "$ac_try") 2>&5
32048   ac_status=$?
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); }; }; then
32051   ac_cv_func_isnan_in_math_h=yes
32052 else
32053   echo "$as_me: failed program was:" >&5
32054 sed 's/^/| /' conftest.$ac_ext >&5
32055
32056         ac_cv_func_isnan_in_math_h=no
32057 fi
32058
32059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32060   ac_ext=c
32061 ac_cpp='$CPP $CPPFLAGS'
32062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32065
32066 fi
32067 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32068 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32069
32070
32071 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32072
32073 cat >>confdefs.h <<\_ACEOF
32074 #define HAVE_ISNAN_IN_MATH_H 1
32075 _ACEOF
32076
32077 fi
32078
32079 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32080 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32081 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32082   echo $ECHO_N "(cached) $ECHO_C" >&6
32083 else
32084   ac_ext=cpp
32085 ac_cpp='$CXXCPP $CPPFLAGS'
32086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32089
32090    cat >conftest.$ac_ext <<_ACEOF
32091 /* confdefs.h.  */
32092 _ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h.  */
32096 #include <cmath>
32097 int
32098 main ()
32099 {
32100 float f; isnan(f);
32101   ;
32102   return 0;
32103 }
32104 _ACEOF
32105 rm -f conftest.$ac_objext
32106 if { (ac_try="$ac_compile"
32107 case "(($ac_try" in
32108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32109   *) ac_try_echo=$ac_try;;
32110 esac
32111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32112   (eval "$ac_compile") 2>conftest.er1
32113   ac_status=$?
32114   grep -v '^ *+' conftest.er1 >conftest.err
32115   rm -f conftest.er1
32116   cat conftest.err >&5
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); } &&
32119          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32120   { (case "(($ac_try" in
32121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122   *) ac_try_echo=$ac_try;;
32123 esac
32124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125   (eval "$ac_try") 2>&5
32126   ac_status=$?
32127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128   (exit $ac_status); }; } &&
32129          { ac_try='test -s conftest.$ac_objext'
32130   { (case "(($ac_try" in
32131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32132   *) ac_try_echo=$ac_try;;
32133 esac
32134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135   (eval "$ac_try") 2>&5
32136   ac_status=$?
32137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138   (exit $ac_status); }; }; then
32139   ac_cv_func_isnan_in_cmath=yes
32140 else
32141   echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32143
32144         ac_cv_func_isnan_in_cmath=no
32145 fi
32146
32147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32148   ac_ext=c
32149 ac_cpp='$CPP $CPPFLAGS'
32150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32153
32154 fi
32155 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32156 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32157
32158 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32159
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_ISNAN_IN_CMATH 1
32162 _ACEOF
32163
32164 fi
32165
32166 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32167 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32168 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32169   echo $ECHO_N "(cached) $ECHO_C" >&6
32170 else
32171   ac_ext=cpp
32172 ac_cpp='$CXXCPP $CPPFLAGS'
32173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32176
32177    cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183 #include <cmath>
32184 int
32185 main ()
32186 {
32187 float f; std::isnan(f);
32188   ;
32189   return 0;
32190 }
32191 _ACEOF
32192 rm -f conftest.$ac_objext
32193 if { (ac_try="$ac_compile"
32194 case "(($ac_try" in
32195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196   *) ac_try_echo=$ac_try;;
32197 esac
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199   (eval "$ac_compile") 2>conftest.er1
32200   ac_status=$?
32201   grep -v '^ *+' conftest.er1 >conftest.err
32202   rm -f conftest.er1
32203   cat conftest.err >&5
32204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205   (exit $ac_status); } &&
32206          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32207   { (case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212   (eval "$ac_try") 2>&5
32213   ac_status=$?
32214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215   (exit $ac_status); }; } &&
32216          { ac_try='test -s conftest.$ac_objext'
32217   { (case "(($ac_try" in
32218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219   *) ac_try_echo=$ac_try;;
32220 esac
32221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222   (eval "$ac_try") 2>&5
32223   ac_status=$?
32224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225   (exit $ac_status); }; }; then
32226   ac_cv_func_std_isnan_in_cmath=yes
32227 else
32228   echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32230
32231         ac_cv_func_std_isnan_in_cmath=no
32232 fi
32233
32234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32235   ac_ext=c
32236 ac_cpp='$CPP $CPPFLAGS'
32237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32240
32241 fi
32242 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32243 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32244
32245 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32246
32247 cat >>confdefs.h <<\_ACEOF
32248 #define HAVE_STD_ISNAN_IN_CMATH 1
32249 _ACEOF
32250
32251 fi
32252
32253
32254 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32255 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32256 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32257   echo $ECHO_N "(cached) $ECHO_C" >&6
32258 else
32259   ac_ext=cpp
32260 ac_cpp='$CXXCPP $CPPFLAGS'
32261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32264
32265    cat >conftest.$ac_ext <<_ACEOF
32266 /* confdefs.h.  */
32267 _ACEOF
32268 cat confdefs.h >>conftest.$ac_ext
32269 cat >>conftest.$ac_ext <<_ACEOF
32270 /* end confdefs.h.  */
32271 #include <math.h>
32272 int
32273 main ()
32274 {
32275 float f; isinf(f);
32276   ;
32277   return 0;
32278 }
32279 _ACEOF
32280 rm -f conftest.$ac_objext
32281 if { (ac_try="$ac_compile"
32282 case "(($ac_try" in
32283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284   *) ac_try_echo=$ac_try;;
32285 esac
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287   (eval "$ac_compile") 2>conftest.er1
32288   ac_status=$?
32289   grep -v '^ *+' conftest.er1 >conftest.err
32290   rm -f conftest.er1
32291   cat conftest.err >&5
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); } &&
32294          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32295   { (case "(($ac_try" in
32296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297   *) ac_try_echo=$ac_try;;
32298 esac
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300   (eval "$ac_try") 2>&5
32301   ac_status=$?
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); }; } &&
32304          { ac_try='test -s conftest.$ac_objext'
32305   { (case "(($ac_try" in
32306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307   *) ac_try_echo=$ac_try;;
32308 esac
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310   (eval "$ac_try") 2>&5
32311   ac_status=$?
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); }; }; then
32314   ac_cv_func_isinf_in_math_h=yes
32315 else
32316   echo "$as_me: failed program was:" >&5
32317 sed 's/^/| /' conftest.$ac_ext >&5
32318
32319         ac_cv_func_isinf_in_math_h=no
32320 fi
32321
32322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32323   ac_ext=c
32324 ac_cpp='$CPP $CPPFLAGS'
32325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32328
32329 fi
32330 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32331 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32332
32333 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32334
32335 cat >>confdefs.h <<\_ACEOF
32336 #define HAVE_ISINF_IN_MATH_H 1
32337 _ACEOF
32338
32339 fi
32340
32341 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32342 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32343 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32344   echo $ECHO_N "(cached) $ECHO_C" >&6
32345 else
32346   ac_ext=cpp
32347 ac_cpp='$CXXCPP $CPPFLAGS'
32348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32351
32352    cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h.  */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h.  */
32358 #include <cmath>
32359 int
32360 main ()
32361 {
32362 float f; isinf(f);
32363   ;
32364   return 0;
32365 }
32366 _ACEOF
32367 rm -f conftest.$ac_objext
32368 if { (ac_try="$ac_compile"
32369 case "(($ac_try" in
32370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371   *) ac_try_echo=$ac_try;;
32372 esac
32373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374   (eval "$ac_compile") 2>conftest.er1
32375   ac_status=$?
32376   grep -v '^ *+' conftest.er1 >conftest.err
32377   rm -f conftest.er1
32378   cat conftest.err >&5
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); } &&
32381          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32382   { (case "(($ac_try" in
32383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384   *) ac_try_echo=$ac_try;;
32385 esac
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387   (eval "$ac_try") 2>&5
32388   ac_status=$?
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); }; } &&
32391          { ac_try='test -s conftest.$ac_objext'
32392   { (case "(($ac_try" in
32393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394   *) ac_try_echo=$ac_try;;
32395 esac
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397   (eval "$ac_try") 2>&5
32398   ac_status=$?
32399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400   (exit $ac_status); }; }; then
32401   ac_cv_func_isinf_in_cmath=yes
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406         ac_cv_func_isinf_in_cmath=no
32407 fi
32408
32409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32410   ac_ext=c
32411 ac_cpp='$CPP $CPPFLAGS'
32412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32415
32416 fi
32417 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32418 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32419
32420 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32421
32422 cat >>confdefs.h <<\_ACEOF
32423 #define HAVE_ISINF_IN_CMATH 1
32424 _ACEOF
32425
32426 fi
32427
32428 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32429 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32430 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32431   echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433   ac_ext=cpp
32434 ac_cpp='$CXXCPP $CPPFLAGS'
32435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32438
32439    cat >conftest.$ac_ext <<_ACEOF
32440 /* confdefs.h.  */
32441 _ACEOF
32442 cat confdefs.h >>conftest.$ac_ext
32443 cat >>conftest.$ac_ext <<_ACEOF
32444 /* end confdefs.h.  */
32445 #include <cmath>
32446 int
32447 main ()
32448 {
32449 float f; std::isinf(f)}
32450   ;
32451   return 0;
32452 }
32453 _ACEOF
32454 rm -f conftest.$ac_objext
32455 if { (ac_try="$ac_compile"
32456 case "(($ac_try" in
32457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458   *) ac_try_echo=$ac_try;;
32459 esac
32460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461   (eval "$ac_compile") 2>conftest.er1
32462   ac_status=$?
32463   grep -v '^ *+' conftest.er1 >conftest.err
32464   rm -f conftest.er1
32465   cat conftest.err >&5
32466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467   (exit $ac_status); } &&
32468          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32469   { (case "(($ac_try" in
32470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32471   *) ac_try_echo=$ac_try;;
32472 esac
32473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32474   (eval "$ac_try") 2>&5
32475   ac_status=$?
32476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477   (exit $ac_status); }; } &&
32478          { ac_try='test -s conftest.$ac_objext'
32479   { (case "(($ac_try" in
32480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481   *) ac_try_echo=$ac_try;;
32482 esac
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484   (eval "$ac_try") 2>&5
32485   ac_status=$?
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); }; }; then
32488   ac_cv_func_std_isinf_in_cmath=yes
32489 else
32490   echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32492
32493         ac_cv_func_std_isinf_in_cmath=no
32494 fi
32495
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497   ac_ext=c
32498 ac_cpp='$CPP $CPPFLAGS'
32499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32502
32503 fi
32504 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32505 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32506
32507 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32508
32509 cat >>confdefs.h <<\_ACEOF
32510 #define HAVE_STD_ISINF_IN_CMATH 1
32511 _ACEOF
32512
32513 fi
32514
32515 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32516 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32517 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32518   echo $ECHO_N "(cached) $ECHO_C" >&6
32519 else
32520   ac_ext=cpp
32521 ac_cpp='$CXXCPP $CPPFLAGS'
32522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32525
32526    cat >conftest.$ac_ext <<_ACEOF
32527 /* confdefs.h.  */
32528 _ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h.  */
32532 #include <ieeefp.h>
32533 int
32534 main ()
32535 {
32536 float f; finite(f);
32537   ;
32538   return 0;
32539 }
32540 _ACEOF
32541 rm -f conftest.$ac_objext
32542 if { (ac_try="$ac_compile"
32543 case "(($ac_try" in
32544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545   *) ac_try_echo=$ac_try;;
32546 esac
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548   (eval "$ac_compile") 2>conftest.er1
32549   ac_status=$?
32550   grep -v '^ *+' conftest.er1 >conftest.err
32551   rm -f conftest.er1
32552   cat conftest.err >&5
32553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554   (exit $ac_status); } &&
32555          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32556   { (case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561   (eval "$ac_try") 2>&5
32562   ac_status=$?
32563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564   (exit $ac_status); }; } &&
32565          { ac_try='test -s conftest.$ac_objext'
32566   { (case "(($ac_try" in
32567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568   *) ac_try_echo=$ac_try;;
32569 esac
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571   (eval "$ac_try") 2>&5
32572   ac_status=$?
32573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574   (exit $ac_status); }; }; then
32575   ac_cv_func_finite_in_ieeefp_h=yes
32576 else
32577   echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32579
32580         ac_cv_func_finite_in_ieeefp_h=no
32581 fi
32582
32583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32584   ac_ext=c
32585 ac_cpp='$CPP $CPPFLAGS'
32586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32589
32590 fi
32591 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32592 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32593
32594 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32595
32596 cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_FINITE_IN_IEEEFP_H 1
32598 _ACEOF
32599
32600 fi
32601
32602
32603
32604
32605
32606 for ac_header in stdlib.h unistd.h
32607 do
32608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32610   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32613   echo $ECHO_N "(cached) $ECHO_C" >&6
32614 fi
32615 ac_res=`eval echo '${'$as_ac_Header'}'`
32616                { echo "$as_me:$LINENO: result: $ac_res" >&5
32617 echo "${ECHO_T}$ac_res" >&6; }
32618 else
32619   # Is the header compilable?
32620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32622 cat >conftest.$ac_ext <<_ACEOF
32623 /* confdefs.h.  */
32624 _ACEOF
32625 cat confdefs.h >>conftest.$ac_ext
32626 cat >>conftest.$ac_ext <<_ACEOF
32627 /* end confdefs.h.  */
32628 $ac_includes_default
32629 #include <$ac_header>
32630 _ACEOF
32631 rm -f conftest.$ac_objext
32632 if { (ac_try="$ac_compile"
32633 case "(($ac_try" in
32634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635   *) ac_try_echo=$ac_try;;
32636 esac
32637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638   (eval "$ac_compile") 2>conftest.er1
32639   ac_status=$?
32640   grep -v '^ *+' conftest.er1 >conftest.err
32641   rm -f conftest.er1
32642   cat conftest.err >&5
32643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644   (exit $ac_status); } &&
32645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32646   { (case "(($ac_try" in
32647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648   *) ac_try_echo=$ac_try;;
32649 esac
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651   (eval "$ac_try") 2>&5
32652   ac_status=$?
32653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654   (exit $ac_status); }; } &&
32655          { ac_try='test -s conftest.$ac_objext'
32656   { (case "(($ac_try" in
32657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658   *) ac_try_echo=$ac_try;;
32659 esac
32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661   (eval "$ac_try") 2>&5
32662   ac_status=$?
32663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664   (exit $ac_status); }; }; then
32665   ac_header_compiler=yes
32666 else
32667   echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32669
32670         ac_header_compiler=no
32671 fi
32672
32673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32675 echo "${ECHO_T}$ac_header_compiler" >&6; }
32676
32677 # Is the header present?
32678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32680 cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686 #include <$ac_header>
32687 _ACEOF
32688 if { (ac_try="$ac_cpp conftest.$ac_ext"
32689 case "(($ac_try" in
32690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691   *) ac_try_echo=$ac_try;;
32692 esac
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32695   ac_status=$?
32696   grep -v '^ *+' conftest.er1 >conftest.err
32697   rm -f conftest.er1
32698   cat conftest.err >&5
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); } >/dev/null; then
32701   if test -s conftest.err; then
32702     ac_cpp_err=$ac_c_preproc_warn_flag
32703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32704   else
32705     ac_cpp_err=
32706   fi
32707 else
32708   ac_cpp_err=yes
32709 fi
32710 if test -z "$ac_cpp_err"; then
32711   ac_header_preproc=yes
32712 else
32713   echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32715
32716   ac_header_preproc=no
32717 fi
32718
32719 rm -f conftest.err conftest.$ac_ext
32720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32721 echo "${ECHO_T}$ac_header_preproc" >&6; }
32722
32723 # So?  What about this header?
32724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32725   yes:no: )
32726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32730     ac_header_preproc=yes
32731     ;;
32732   no:yes:* )
32733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32745     ( cat <<\_ASBOX
32746 ## ----------------------------------- ##
32747 ## Report this to llvmbugs@cs.uiuc.edu ##
32748 ## ----------------------------------- ##
32749 _ASBOX
32750      ) | sed "s/^/$as_me: WARNING:     /" >&2
32751     ;;
32752 esac
32753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32756   echo $ECHO_N "(cached) $ECHO_C" >&6
32757 else
32758   eval "$as_ac_Header=\$ac_header_preproc"
32759 fi
32760 ac_res=`eval echo '${'$as_ac_Header'}'`
32761                { echo "$as_me:$LINENO: result: $ac_res" >&5
32762 echo "${ECHO_T}$ac_res" >&6; }
32763
32764 fi
32765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32766   cat >>confdefs.h <<_ACEOF
32767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32768 _ACEOF
32769
32770 fi
32771
32772 done
32773
32774
32775 for ac_func in getpagesize
32776 do
32777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32781   echo $ECHO_N "(cached) $ECHO_C" >&6
32782 else
32783   cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h.  */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h.  */
32789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32791 #define $ac_func innocuous_$ac_func
32792
32793 /* System header to define __stub macros and hopefully few prototypes,
32794     which can conflict with char $ac_func (); below.
32795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32796     <limits.h> exists even on freestanding compilers.  */
32797
32798 #ifdef __STDC__
32799 # include <limits.h>
32800 #else
32801 # include <assert.h>
32802 #endif
32803
32804 #undef $ac_func
32805
32806 /* Override any GCC internal prototype to avoid an error.
32807    Use char because int might match the return type of a GCC
32808    builtin and then its argument prototype would still apply.  */
32809 #ifdef __cplusplus
32810 extern "C"
32811 #endif
32812 char $ac_func ();
32813 /* The GNU C library defines this for functions which it implements
32814     to always fail with ENOSYS.  Some functions are actually named
32815     something starting with __ and the normal name is an alias.  */
32816 #if defined __stub_$ac_func || defined __stub___$ac_func
32817 choke me
32818 #endif
32819
32820 int
32821 main ()
32822 {
32823 return $ac_func ();
32824   ;
32825   return 0;
32826 }
32827 _ACEOF
32828 rm -f conftest.$ac_objext conftest$ac_exeext
32829 if { (ac_try="$ac_link"
32830 case "(($ac_try" in
32831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832   *) ac_try_echo=$ac_try;;
32833 esac
32834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835   (eval "$ac_link") 2>conftest.er1
32836   ac_status=$?
32837   grep -v '^ *+' conftest.er1 >conftest.err
32838   rm -f conftest.er1
32839   cat conftest.err >&5
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); } &&
32842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32843   { (case "(($ac_try" in
32844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845   *) ac_try_echo=$ac_try;;
32846 esac
32847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848   (eval "$ac_try") 2>&5
32849   ac_status=$?
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); }; } &&
32852          { ac_try='test -s conftest$ac_exeext'
32853   { (case "(($ac_try" in
32854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855   *) ac_try_echo=$ac_try;;
32856 esac
32857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858   (eval "$ac_try") 2>&5
32859   ac_status=$?
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); }; }; then
32862   eval "$as_ac_var=yes"
32863 else
32864   echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32866
32867         eval "$as_ac_var=no"
32868 fi
32869
32870 rm -f core conftest.err conftest.$ac_objext \
32871       conftest$ac_exeext conftest.$ac_ext
32872 fi
32873 ac_res=`eval echo '${'$as_ac_var'}'`
32874                { echo "$as_me:$LINENO: result: $ac_res" >&5
32875 echo "${ECHO_T}$ac_res" >&6; }
32876 if test `eval echo '${'$as_ac_var'}'` = yes; then
32877   cat >>confdefs.h <<_ACEOF
32878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32879 _ACEOF
32880
32881 fi
32882 done
32883
32884 { echo "$as_me:$LINENO: checking for working mmap" >&5
32885 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32886 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32887   echo $ECHO_N "(cached) $ECHO_C" >&6
32888 else
32889   if test "$cross_compiling" = yes; then
32890   ac_cv_func_mmap_fixed_mapped=no
32891 else
32892   cat >conftest.$ac_ext <<_ACEOF
32893 /* confdefs.h.  */
32894 _ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h.  */
32898 $ac_includes_default
32899 /* malloc might have been renamed as rpl_malloc. */
32900 #undef malloc
32901
32902 /* Thanks to Mike Haertel and Jim Avera for this test.
32903    Here is a matrix of mmap possibilities:
32904         mmap private not fixed
32905         mmap private fixed at somewhere currently unmapped
32906         mmap private fixed at somewhere already mapped
32907         mmap shared not fixed
32908         mmap shared fixed at somewhere currently unmapped
32909         mmap shared fixed at somewhere already mapped
32910    For private mappings, we should verify that changes cannot be read()
32911    back from the file, nor mmap's back from the file at a different
32912    address.  (There have been systems where private was not correctly
32913    implemented like the infamous i386 svr4.0, and systems where the
32914    VM page cache was not coherent with the file system buffer cache
32915    like early versions of FreeBSD and possibly contemporary NetBSD.)
32916    For shared mappings, we should conversely verify that changes get
32917    propagated back to all the places they're supposed to be.
32918
32919    Grep wants private fixed already mapped.
32920    The main things grep needs to know about mmap are:
32921    * does it exist and is it safe to write into the mmap'd area
32922    * how to use it (BSD variants)  */
32923
32924 #include <fcntl.h>
32925 #include <sys/mman.h>
32926
32927 #if !STDC_HEADERS && !HAVE_STDLIB_H
32928 char *malloc ();
32929 #endif
32930
32931 /* This mess was copied from the GNU getpagesize.h.  */
32932 #if !HAVE_GETPAGESIZE
32933 /* Assume that all systems that can run configure have sys/param.h.  */
32934 # if !HAVE_SYS_PARAM_H
32935 #  define HAVE_SYS_PARAM_H 1
32936 # endif
32937
32938 # ifdef _SC_PAGESIZE
32939 #  define getpagesize() sysconf(_SC_PAGESIZE)
32940 # else /* no _SC_PAGESIZE */
32941 #  if HAVE_SYS_PARAM_H
32942 #   include <sys/param.h>
32943 #   ifdef EXEC_PAGESIZE
32944 #    define getpagesize() EXEC_PAGESIZE
32945 #   else /* no EXEC_PAGESIZE */
32946 #    ifdef NBPG
32947 #     define getpagesize() NBPG * CLSIZE
32948 #     ifndef CLSIZE
32949 #      define CLSIZE 1
32950 #     endif /* no CLSIZE */
32951 #    else /* no NBPG */
32952 #     ifdef NBPC
32953 #      define getpagesize() NBPC
32954 #     else /* no NBPC */
32955 #      ifdef PAGESIZE
32956 #       define getpagesize() PAGESIZE
32957 #      endif /* PAGESIZE */
32958 #     endif /* no NBPC */
32959 #    endif /* no NBPG */
32960 #   endif /* no EXEC_PAGESIZE */
32961 #  else /* no HAVE_SYS_PARAM_H */
32962 #   define getpagesize() 8192   /* punt totally */
32963 #  endif /* no HAVE_SYS_PARAM_H */
32964 # endif /* no _SC_PAGESIZE */
32965
32966 #endif /* no HAVE_GETPAGESIZE */
32967
32968 int
32969 main ()
32970 {
32971   char *data, *data2, *data3;
32972   int i, pagesize;
32973   int fd;
32974
32975   pagesize = getpagesize ();
32976
32977   /* First, make a file with some known garbage in it. */
32978   data = (char *) malloc (pagesize);
32979   if (!data)
32980     return 1;
32981   for (i = 0; i < pagesize; ++i)
32982     *(data + i) = rand ();
32983   umask (0);
32984   fd = creat ("conftest.mmap", 0600);
32985   if (fd < 0)
32986     return 1;
32987   if (write (fd, data, pagesize) != pagesize)
32988     return 1;
32989   close (fd);
32990
32991   /* Next, try to mmap the file at a fixed address which already has
32992      something else allocated at it.  If we can, also make sure that
32993      we see the same garbage.  */
32994   fd = open ("conftest.mmap", O_RDWR);
32995   if (fd < 0)
32996     return 1;
32997   data2 = (char *) malloc (2 * pagesize);
32998   if (!data2)
32999     return 1;
33000   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33001   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33002                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33003     return 1;
33004   for (i = 0; i < pagesize; ++i)
33005     if (*(data + i) != *(data2 + i))
33006       return 1;
33007
33008   /* Finally, make sure that changes to the mapped area do not
33009      percolate back to the file as seen by read().  (This is a bug on
33010      some variants of i386 svr4.0.)  */
33011   for (i = 0; i < pagesize; ++i)
33012     *(data2 + i) = *(data2 + i) + 1;
33013   data3 = (char *) malloc (pagesize);
33014   if (!data3)
33015     return 1;
33016   if (read (fd, data3, pagesize) != pagesize)
33017     return 1;
33018   for (i = 0; i < pagesize; ++i)
33019     if (*(data + i) != *(data3 + i))
33020       return 1;
33021   close (fd);
33022   return 0;
33023 }
33024 _ACEOF
33025 rm -f conftest$ac_exeext
33026 if { (ac_try="$ac_link"
33027 case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032   (eval "$ac_link") 2>&5
33033   ac_status=$?
33034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33036   { (case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_try") 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; }; then
33045   ac_cv_func_mmap_fixed_mapped=yes
33046 else
33047   echo "$as_me: program exited with status $ac_status" >&5
33048 echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33050
33051 ( exit $ac_status )
33052 ac_cv_func_mmap_fixed_mapped=no
33053 fi
33054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33055 fi
33056
33057
33058 fi
33059 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33060 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33062
33063 cat >>confdefs.h <<\_ACEOF
33064 #define HAVE_MMAP 1
33065 _ACEOF
33066
33067 fi
33068 rm -f conftest.mmap
33069
33070 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33071 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33072 if test "${ac_cv_func_mmap_file+set}" = set; then
33073   echo $ECHO_N "(cached) $ECHO_C" >&6
33074 else
33075    ac_ext=c
33076 ac_cpp='$CPP $CPPFLAGS'
33077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33080
33081   if test "$cross_compiling" = yes; then
33082   ac_cv_func_mmap_file=no
33083 else
33084   cat >conftest.$ac_ext <<_ACEOF
33085
33086     /* confdefs.h.  */
33087 _ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h.  */
33091
33092 #include <sys/types.h>
33093 #include <sys/mman.h>
33094 #include <fcntl.h>
33095
33096 int
33097 main ()
33098 {
33099
33100   int fd;
33101   fd = creat ("foo",0777);
33102   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33103   unlink ("foo");
33104   return (fd != (int) MAP_FAILED);
33105   ;
33106   return 0;
33107 }
33108 _ACEOF
33109 rm -f conftest$ac_exeext
33110 if { (ac_try="$ac_link"
33111 case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_link") 2>&5
33117   ac_status=$?
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33120   { (case "(($ac_try" in
33121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122   *) ac_try_echo=$ac_try;;
33123 esac
33124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125   (eval "$ac_try") 2>&5
33126   ac_status=$?
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); }; }; then
33129   ac_cv_func_mmap_file=yes
33130 else
33131   echo "$as_me: program exited with status $ac_status" >&5
33132 echo "$as_me: failed program was:" >&5
33133 sed 's/^/| /' conftest.$ac_ext >&5
33134
33135 ( exit $ac_status )
33136 ac_cv_func_mmap_file=no
33137 fi
33138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33139 fi
33140
33141
33142   ac_ext=c
33143 ac_cpp='$CPP $CPPFLAGS'
33144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33147
33148
33149 fi
33150 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33151 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33152 if test "$ac_cv_func_mmap_file" = yes; then
33153
33154 cat >>confdefs.h <<\_ACEOF
33155 #define HAVE_MMAP_FILE
33156 _ACEOF
33157
33158    MMAP_FILE=yes
33159
33160 fi
33161
33162 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33163 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33164 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33165   echo $ECHO_N "(cached) $ECHO_C" >&6
33166 else
33167   if test "$llvm_cv_os_type" = "Interix" ; then
33168    ac_cv_need_dev_zero_for_mmap=yes
33169  else
33170    ac_cv_need_dev_zero_for_mmap=no
33171  fi
33172
33173 fi
33174 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33175 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33176 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33177
33178 cat >>confdefs.h <<\_ACEOF
33179 #define NEED_DEV_ZERO_FOR_MMAP 1
33180 _ACEOF
33181
33182 fi
33183 { echo "$as_me:$LINENO: checking for mprotect" >&5
33184 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33185 if test "${ac_cv_func_mprotect+set}" = set; then
33186   echo $ECHO_N "(cached) $ECHO_C" >&6
33187 else
33188   cat >conftest.$ac_ext <<_ACEOF
33189 /* confdefs.h.  */
33190 _ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h.  */
33194 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33196 #define mprotect innocuous_mprotect
33197
33198 /* System header to define __stub macros and hopefully few prototypes,
33199     which can conflict with char mprotect (); below.
33200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33201     <limits.h> exists even on freestanding compilers.  */
33202
33203 #ifdef __STDC__
33204 # include <limits.h>
33205 #else
33206 # include <assert.h>
33207 #endif
33208
33209 #undef mprotect
33210
33211 /* Override any GCC internal prototype to avoid an error.
33212    Use char because int might match the return type of a GCC
33213    builtin and then its argument prototype would still apply.  */
33214 #ifdef __cplusplus
33215 extern "C"
33216 #endif
33217 char mprotect ();
33218 /* The GNU C library defines this for functions which it implements
33219     to always fail with ENOSYS.  Some functions are actually named
33220     something starting with __ and the normal name is an alias.  */
33221 #if defined __stub_mprotect || defined __stub___mprotect
33222 choke me
33223 #endif
33224
33225 int
33226 main ()
33227 {
33228 return mprotect ();
33229   ;
33230   return 0;
33231 }
33232 _ACEOF
33233 rm -f conftest.$ac_objext conftest$ac_exeext
33234 if { (ac_try="$ac_link"
33235 case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240   (eval "$ac_link") 2>conftest.er1
33241   ac_status=$?
33242   grep -v '^ *+' conftest.er1 >conftest.err
33243   rm -f conftest.er1
33244   cat conftest.err >&5
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); } &&
33247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33248   { (case "(($ac_try" in
33249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250   *) ac_try_echo=$ac_try;;
33251 esac
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253   (eval "$ac_try") 2>&5
33254   ac_status=$?
33255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256   (exit $ac_status); }; } &&
33257          { ac_try='test -s conftest$ac_exeext'
33258   { (case "(($ac_try" in
33259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33260   *) ac_try_echo=$ac_try;;
33261 esac
33262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33263   (eval "$ac_try") 2>&5
33264   ac_status=$?
33265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266   (exit $ac_status); }; }; then
33267   ac_cv_func_mprotect=yes
33268 else
33269   echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33271
33272         ac_cv_func_mprotect=no
33273 fi
33274
33275 rm -f core conftest.err conftest.$ac_objext \
33276       conftest$ac_exeext conftest.$ac_ext
33277 fi
33278 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33279 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33280 if test $ac_cv_func_mprotect = yes; then
33281   :
33282 else
33283   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33284 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33285    { (exit 1); exit 1; }; }
33286 fi
33287
33288
33289 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33290 then
33291   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33292 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33293 fi
33294 if test "$ac_cv_func_mmap_file" = "no"
33295 then
33296   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33297 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33298 fi
33299
33300
33301 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33302 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33303 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33304   echo $ECHO_N "(cached) $ECHO_C" >&6
33305 else
33306   llvm_cv_llvmgcc_sanity="no"
33307 if test -x "$LLVMGCC" ; then
33308   cp /dev/null conftest.c
33309   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33310   if test $? -eq 0 ; then
33311     llvm_cv_llvmgcc_sanity="yes"
33312   fi
33313   rm conftest.c
33314 fi
33315 fi
33316 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33317 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33318
33319 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33320   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33321   LLVMCC1=$llvmcc1path
33322
33323   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33324   LLVMCC1PLUS=$llvmcc1pluspath
33325
33326   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33327   LLVMGCCDIR=$llvmgccdir
33328
33329   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33330   LLVMGCCLIBEXEC=$llvmgcclibexec
33331
33332   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33333   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33334   LLVMGCC_VERSION=$llvmgccversion
33335
33336   LLVMGCC_MAJVERS=$llvmgccmajvers
33337
33338 fi
33339
33340 SHLIBEXT=$libltdl_cv_shlibext
33341
33342
33343 # Translate the various configuration directories and other basic
33344 # information into substitutions that will end up in Makefile.config.in
33345 # that these configured values can be used by the makefiles
33346 if test "${prefix}" == "NONE" ; then
33347   prefix="/usr/local"
33348 fi
33349 eval LLVM_PREFIX="${prefix}";
33350 eval LLVM_BINDIR="${prefix}/bin";
33351 eval LLVM_LIBDIR="${prefix}/lib";
33352 eval LLVM_DATADIR="${prefix}/share/llvm";
33353 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33354 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33355 eval LLVM_INCLUDEDIR="${prefix}/include";
33356 eval LLVM_INFODIR="${prefix}/info";
33357 eval LLVM_MANDIR="${prefix}/man";
33358 LLVM_CONFIGTIME=`date`
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370 # Place the various directores into the config.h file as #defines so that we
33371 # can know about the installation paths within LLVM.
33372
33373 cat >>confdefs.h <<_ACEOF
33374 #define LLVM_PREFIX "$LLVM_PREFIX"
33375 _ACEOF
33376
33377
33378 cat >>confdefs.h <<_ACEOF
33379 #define LLVM_BINDIR "$LLVM_BINDIR"
33380 _ACEOF
33381
33382
33383 cat >>confdefs.h <<_ACEOF
33384 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33385 _ACEOF
33386
33387
33388 cat >>confdefs.h <<_ACEOF
33389 #define LLVM_DATADIR "$LLVM_DATADIR"
33390 _ACEOF
33391
33392
33393 cat >>confdefs.h <<_ACEOF
33394 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33395 _ACEOF
33396
33397
33398 cat >>confdefs.h <<_ACEOF
33399 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33400 _ACEOF
33401
33402
33403 cat >>confdefs.h <<_ACEOF
33404 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33405 _ACEOF
33406
33407
33408 cat >>confdefs.h <<_ACEOF
33409 #define LLVM_INFODIR "$LLVM_INFODIR"
33410 _ACEOF
33411
33412
33413 cat >>confdefs.h <<_ACEOF
33414 #define LLVM_MANDIR "$LLVM_MANDIR"
33415 _ACEOF
33416
33417
33418 cat >>confdefs.h <<_ACEOF
33419 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33420 _ACEOF
33421
33422
33423
33424 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33425
33426 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33427
33428 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33429
33430 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33431
33432 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33433
33434
33435 ac_config_files="$ac_config_files Makefile.config"
33436
33437
33438 ac_config_files="$ac_config_files llvm.spec"
33439
33440
33441 ac_config_files="$ac_config_files docs/doxygen.cfg"
33442
33443
33444 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33445
33446
33447 ac_config_commands="$ac_config_commands setup"
33448
33449 ac_config_commands="$ac_config_commands Makefile"
33450
33451
33452 ac_config_commands="$ac_config_commands Makefile.common"
33453
33454
33455 ac_config_commands="$ac_config_commands examples/Makefile"
33456
33457
33458 ac_config_commands="$ac_config_commands lib/Makefile"
33459
33460
33461 ac_config_commands="$ac_config_commands runtime/Makefile"
33462
33463
33464 ac_config_commands="$ac_config_commands test/Makefile"
33465
33466
33467 ac_config_commands="$ac_config_commands test/Makefile.tests"
33468
33469
33470 ac_config_commands="$ac_config_commands tools/Makefile"
33471
33472
33473 ac_config_commands="$ac_config_commands utils/Makefile"
33474
33475
33476 ac_config_commands="$ac_config_commands projects/Makefile"
33477
33478
33479
33480 cat >confcache <<\_ACEOF
33481 # This file is a shell script that caches the results of configure
33482 # tests run on this system so they can be shared between configure
33483 # scripts and configure runs, see configure's option --config-cache.
33484 # It is not useful on other systems.  If it contains results you don't
33485 # want to keep, you may remove or edit it.
33486 #
33487 # config.status only pays attention to the cache file if you give it
33488 # the --recheck option to rerun configure.
33489 #
33490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33492 # following values.
33493
33494 _ACEOF
33495
33496 # The following way of writing the cache mishandles newlines in values,
33497 # but we know of no workaround that is simple, portable, and efficient.
33498 # So, we kill variables containing newlines.
33499 # Ultrix sh set writes to stderr and can't be redirected directly,
33500 # and sets the high bit in the cache file unless we assign to the vars.
33501 (
33502   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33503     eval ac_val=\$$ac_var
33504     case $ac_val in #(
33505     *${as_nl}*)
33506       case $ac_var in #(
33507       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33508 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33509       esac
33510       case $ac_var in #(
33511       _ | IFS | as_nl) ;; #(
33512       *) $as_unset $ac_var ;;
33513       esac ;;
33514     esac
33515   done
33516
33517   (set) 2>&1 |
33518     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33519     *${as_nl}ac_space=\ *)
33520       # `set' does not quote correctly, so add quotes (double-quote
33521       # substitution turns \\\\ into \\, and sed turns \\ into \).
33522       sed -n \
33523         "s/'/'\\\\''/g;
33524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33525       ;; #(
33526     *)
33527       # `set' quotes correctly as required by POSIX, so do not add quotes.
33528       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33529       ;;
33530     esac |
33531     sort
33532 ) |
33533   sed '
33534      /^ac_cv_env_/b end
33535      t clear
33536      :clear
33537      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33538      t end
33539      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33540      :end' >>confcache
33541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33542   if test -w "$cache_file"; then
33543     test "x$cache_file" != "x/dev/null" &&
33544       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33545 echo "$as_me: updating cache $cache_file" >&6;}
33546     cat confcache >$cache_file
33547   else
33548     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33549 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33550   fi
33551 fi
33552 rm -f confcache
33553
33554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33555 # Let make expand exec_prefix.
33556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33557
33558 DEFS=-DHAVE_CONFIG_H
33559
33560 ac_libobjs=
33561 ac_ltlibobjs=
33562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33563   # 1. Remove the extension, and $U if already installed.
33564   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33565   ac_i=`echo "$ac_i" | sed "$ac_script"`
33566   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33567   #    will be set to the directory where LIBOBJS objects are built.
33568   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33569   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33570 done
33571 LIBOBJS=$ac_libobjs
33572
33573 LTLIBOBJS=$ac_ltlibobjs
33574
33575
33576 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33577   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33578 Usually this means the macro was only invoked conditionally." >&5
33579 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33580 Usually this means the macro was only invoked conditionally." >&2;}
33581    { (exit 1); exit 1; }; }
33582 fi
33583 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33584   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33585 Usually this means the macro was only invoked conditionally." >&5
33586 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33587 Usually this means the macro was only invoked conditionally." >&2;}
33588    { (exit 1); exit 1; }; }
33589 fi
33590
33591 : ${CONFIG_STATUS=./config.status}
33592 ac_clean_files_save=$ac_clean_files
33593 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33594 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33595 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33596 cat >$CONFIG_STATUS <<_ACEOF
33597 #! $SHELL
33598 # Generated by $as_me.
33599 # Run this file to recreate the current configuration.
33600 # Compiler output produced by configure, useful for debugging
33601 # configure, is in config.log if it exists.
33602
33603 debug=false
33604 ac_cs_recheck=false
33605 ac_cs_silent=false
33606 SHELL=\${CONFIG_SHELL-$SHELL}
33607 _ACEOF
33608
33609 cat >>$CONFIG_STATUS <<\_ACEOF
33610 ## --------------------- ##
33611 ## M4sh Initialization.  ##
33612 ## --------------------- ##
33613
33614 # Be Bourne compatible
33615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33616   emulate sh
33617   NULLCMD=:
33618   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33619   # is contrary to our usage.  Disable this feature.
33620   alias -g '${1+"$@"}'='"$@"'
33621   setopt NO_GLOB_SUBST
33622 else
33623   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33624 fi
33625 BIN_SH=xpg4; export BIN_SH # for Tru64
33626 DUALCASE=1; export DUALCASE # for MKS sh
33627
33628
33629 # PATH needs CR
33630 # Avoid depending upon Character Ranges.
33631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33634 as_cr_digits='0123456789'
33635 as_cr_alnum=$as_cr_Letters$as_cr_digits
33636
33637 # The user is always right.
33638 if test "${PATH_SEPARATOR+set}" != set; then
33639   echo "#! /bin/sh" >conf$$.sh
33640   echo  "exit 0"   >>conf$$.sh
33641   chmod +x conf$$.sh
33642   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33643     PATH_SEPARATOR=';'
33644   else
33645     PATH_SEPARATOR=:
33646   fi
33647   rm -f conf$$.sh
33648 fi
33649
33650 # Support unset when possible.
33651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33652   as_unset=unset
33653 else
33654   as_unset=false
33655 fi
33656
33657
33658 # IFS
33659 # We need space, tab and new line, in precisely that order.  Quoting is
33660 # there to prevent editors from complaining about space-tab.
33661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33662 # splitting by setting IFS to empty value.)
33663 as_nl='
33664 '
33665 IFS=" ""        $as_nl"
33666
33667 # Find who we are.  Look in the path if we contain no directory separator.
33668 case $0 in
33669   *[\\/]* ) as_myself=$0 ;;
33670   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33671 for as_dir in $PATH
33672 do
33673   IFS=$as_save_IFS
33674   test -z "$as_dir" && as_dir=.
33675   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33676 done
33677 IFS=$as_save_IFS
33678
33679      ;;
33680 esac
33681 # We did not find ourselves, most probably we were run as `sh COMMAND'
33682 # in which case we are not to be found in the path.
33683 if test "x$as_myself" = x; then
33684   as_myself=$0
33685 fi
33686 if test ! -f "$as_myself"; then
33687   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33688   { (exit 1); exit 1; }
33689 fi
33690
33691 # Work around bugs in pre-3.0 UWIN ksh.
33692 for as_var in ENV MAIL MAILPATH
33693 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33694 done
33695 PS1='$ '
33696 PS2='> '
33697 PS4='+ '
33698
33699 # NLS nuisances.
33700 for as_var in \
33701   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33702   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33703   LC_TELEPHONE LC_TIME
33704 do
33705   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33706     eval $as_var=C; export $as_var
33707   else
33708     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33709   fi
33710 done
33711
33712 # Required to use basename.
33713 if expr a : '\(a\)' >/dev/null 2>&1 &&
33714    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33715   as_expr=expr
33716 else
33717   as_expr=false
33718 fi
33719
33720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33721   as_basename=basename
33722 else
33723   as_basename=false
33724 fi
33725
33726
33727 # Name of the executable.
33728 as_me=`$as_basename -- "$0" ||
33729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33730          X"$0" : 'X\(//\)$' \| \
33731          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33732 echo X/"$0" |
33733     sed '/^.*\/\([^/][^/]*\)\/*$/{
33734             s//\1/
33735             q
33736           }
33737           /^X\/\(\/\/\)$/{
33738             s//\1/
33739             q
33740           }
33741           /^X\/\(\/\).*/{
33742             s//\1/
33743             q
33744           }
33745           s/.*/./; q'`
33746
33747 # CDPATH.
33748 $as_unset CDPATH
33749
33750
33751
33752   as_lineno_1=$LINENO
33753   as_lineno_2=$LINENO
33754   test "x$as_lineno_1" != "x$as_lineno_2" &&
33755   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33756
33757   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33758   # uniformly replaced by the line number.  The first 'sed' inserts a
33759   # line-number line after each line using $LINENO; the second 'sed'
33760   # does the real work.  The second script uses 'N' to pair each
33761   # line-number line with the line containing $LINENO, and appends
33762   # trailing '-' during substitution so that $LINENO is not a special
33763   # case at line end.
33764   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33765   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33766   # E. McMahon (1931-1989) for sed's syntax.  :-)
33767   sed -n '
33768     p
33769     /[$]LINENO/=
33770   ' <$as_myself |
33771     sed '
33772       s/[$]LINENO.*/&-/
33773       t lineno
33774       b
33775       :lineno
33776       N
33777       :loop
33778       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33779       t loop
33780       s/-\n.*//
33781     ' >$as_me.lineno &&
33782   chmod +x "$as_me.lineno" ||
33783     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33784    { (exit 1); exit 1; }; }
33785
33786   # Don't try to exec as it changes $[0], causing all sort of problems
33787   # (the dirname of $[0] is not the place where we might find the
33788   # original and so on.  Autoconf is especially sensitive to this).
33789   . "./$as_me.lineno"
33790   # Exit status is that of the last command.
33791   exit
33792 }
33793
33794
33795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33796   as_dirname=dirname
33797 else
33798   as_dirname=false
33799 fi
33800
33801 ECHO_C= ECHO_N= ECHO_T=
33802 case `echo -n x` in
33803 -n*)
33804   case `echo 'x\c'` in
33805   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33806   *)   ECHO_C='\c';;
33807   esac;;
33808 *)
33809   ECHO_N='-n';;
33810 esac
33811
33812 if expr a : '\(a\)' >/dev/null 2>&1 &&
33813    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33814   as_expr=expr
33815 else
33816   as_expr=false
33817 fi
33818
33819 rm -f conf$$ conf$$.exe conf$$.file
33820 if test -d conf$$.dir; then
33821   rm -f conf$$.dir/conf$$.file
33822 else
33823   rm -f conf$$.dir
33824   mkdir conf$$.dir
33825 fi
33826 echo >conf$$.file
33827 if ln -s conf$$.file conf$$ 2>/dev/null; then
33828   as_ln_s='ln -s'
33829   # ... but there are two gotchas:
33830   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33831   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33832   # In both cases, we have to default to `cp -p'.
33833   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33834     as_ln_s='cp -p'
33835 elif ln conf$$.file conf$$ 2>/dev/null; then
33836   as_ln_s=ln
33837 else
33838   as_ln_s='cp -p'
33839 fi
33840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33841 rmdir conf$$.dir 2>/dev/null
33842
33843 if mkdir -p . 2>/dev/null; then
33844   as_mkdir_p=:
33845 else
33846   test -d ./-p && rmdir ./-p
33847   as_mkdir_p=false
33848 fi
33849
33850 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33851 # systems may use methods other than mode bits to determine executability.
33852 cat >conf$$.file <<_ASEOF
33853 #! /bin/sh
33854 exit 0
33855 _ASEOF
33856 chmod +x conf$$.file
33857 if test -x conf$$.file >/dev/null 2>&1; then
33858   as_executable_p="test -x"
33859 else
33860   as_executable_p=:
33861 fi
33862 rm -f conf$$.file
33863
33864 # Sed expression to map a string onto a valid CPP name.
33865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33866
33867 # Sed expression to map a string onto a valid variable name.
33868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33869
33870
33871 exec 6>&1
33872
33873 # Save the log message, to keep $[0] and so on meaningful, and to
33874 # report actual input values of CONFIG_FILES etc. instead of their
33875 # values after options handling.
33876 ac_log="
33877 This file was extended by llvm $as_me 2.0cvs, which was
33878 generated by GNU Autoconf 2.60.  Invocation command line was
33879
33880   CONFIG_FILES    = $CONFIG_FILES
33881   CONFIG_HEADERS  = $CONFIG_HEADERS
33882   CONFIG_LINKS    = $CONFIG_LINKS
33883   CONFIG_COMMANDS = $CONFIG_COMMANDS
33884   $ $0 $@
33885
33886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33887 "
33888
33889 _ACEOF
33890
33891 cat >>$CONFIG_STATUS <<_ACEOF
33892 # Files that config.status was made for.
33893 config_files="$ac_config_files"
33894 config_headers="$ac_config_headers"
33895 config_commands="$ac_config_commands"
33896
33897 _ACEOF
33898
33899 cat >>$CONFIG_STATUS <<\_ACEOF
33900 ac_cs_usage="\
33901 \`$as_me' instantiates files from templates according to the
33902 current configuration.
33903
33904 Usage: $0 [OPTIONS] [FILE]...
33905
33906   -h, --help       print this help, then exit
33907   -V, --version    print version number, then exit
33908   -q, --quiet      do not print progress messages
33909   -d, --debug      don't remove temporary files
33910       --recheck    update $as_me by reconfiguring in the same conditions
33911   --file=FILE[:TEMPLATE]
33912                    instantiate the configuration file FILE
33913   --header=FILE[:TEMPLATE]
33914                    instantiate the configuration header FILE
33915
33916 Configuration files:
33917 $config_files
33918
33919 Configuration headers:
33920 $config_headers
33921
33922 Configuration commands:
33923 $config_commands
33924
33925 Report bugs to <bug-autoconf@gnu.org>."
33926
33927 _ACEOF
33928 cat >>$CONFIG_STATUS <<_ACEOF
33929 ac_cs_version="\\
33930 llvm config.status 2.0cvs
33931 configured by $0, generated by GNU Autoconf 2.60,
33932   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33933
33934 Copyright (C) 2006 Free Software Foundation, Inc.
33935 This config.status script is free software; the Free Software Foundation
33936 gives unlimited permission to copy, distribute and modify it."
33937
33938 ac_pwd='$ac_pwd'
33939 srcdir='$srcdir'
33940 INSTALL='$INSTALL'
33941 _ACEOF
33942
33943 cat >>$CONFIG_STATUS <<\_ACEOF
33944 # If no file are specified by the user, then we need to provide default
33945 # value.  By we need to know if files were specified by the user.
33946 ac_need_defaults=:
33947 while test $# != 0
33948 do
33949   case $1 in
33950   --*=*)
33951     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33952     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33953     ac_shift=:
33954     ;;
33955   *)
33956     ac_option=$1
33957     ac_optarg=$2
33958     ac_shift=shift
33959     ;;
33960   esac
33961
33962   case $ac_option in
33963   # Handling of the options.
33964   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33965     ac_cs_recheck=: ;;
33966   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33967     echo "$ac_cs_version"; exit ;;
33968   --debug | --debu | --deb | --de | --d | -d )
33969     debug=: ;;
33970   --file | --fil | --fi | --f )
33971     $ac_shift
33972     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33973     ac_need_defaults=false;;
33974   --header | --heade | --head | --hea )
33975     $ac_shift
33976     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33977     ac_need_defaults=false;;
33978   --he | --h)
33979     # Conflict between --help and --header
33980     { echo "$as_me: error: ambiguous option: $1
33981 Try \`$0 --help' for more information." >&2
33982    { (exit 1); exit 1; }; };;
33983   --help | --hel | -h )
33984     echo "$ac_cs_usage"; exit ;;
33985   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33986   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33987     ac_cs_silent=: ;;
33988
33989   # This is an error.
33990   -*) { echo "$as_me: error: unrecognized option: $1
33991 Try \`$0 --help' for more information." >&2
33992    { (exit 1); exit 1; }; } ;;
33993
33994   *) ac_config_targets="$ac_config_targets $1"
33995      ac_need_defaults=false ;;
33996
33997   esac
33998   shift
33999 done
34000
34001 ac_configure_extra_args=
34002
34003 if $ac_cs_silent; then
34004   exec 6>/dev/null
34005   ac_configure_extra_args="$ac_configure_extra_args --silent"
34006 fi
34007
34008 _ACEOF
34009 cat >>$CONFIG_STATUS <<_ACEOF
34010 if \$ac_cs_recheck; then
34011   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34012   CONFIG_SHELL=$SHELL
34013   export CONFIG_SHELL
34014   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34015 fi
34016
34017 _ACEOF
34018 cat >>$CONFIG_STATUS <<\_ACEOF
34019 exec 5>>config.log
34020 {
34021   echo
34022   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34023 ## Running $as_me. ##
34024 _ASBOX
34025   echo "$ac_log"
34026 } >&5
34027
34028 _ACEOF
34029 cat >>$CONFIG_STATUS <<_ACEOF
34030 #
34031 # INIT-COMMANDS
34032 #
34033 llvm_src="${srcdir}"
34034
34035 _ACEOF
34036
34037 cat >>$CONFIG_STATUS <<\_ACEOF
34038
34039 # Handling of arguments.
34040 for ac_config_target in $ac_config_targets
34041 do
34042   case $ac_config_target in
34043     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34044     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34045     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34046     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34047     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34048     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34049     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34050     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34051     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34052     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34053     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34054     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34055     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34056     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34057     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34058     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34059     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34060     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34061     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34062     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34063
34064   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34066    { (exit 1); exit 1; }; };;
34067   esac
34068 done
34069
34070
34071 # If the user did not use the arguments to specify the items to instantiate,
34072 # then the envvar interface is used.  Set only those that are not.
34073 # We use the long form for the default assignment because of an extremely
34074 # bizarre bug on SunOS 4.1.3.
34075 if $ac_need_defaults; then
34076   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34077   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34078   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34079 fi
34080
34081 # Have a temporary directory for convenience.  Make it in the build tree
34082 # simply because there is no reason against having it here, and in addition,
34083 # creating and moving files from /tmp can sometimes cause problems.
34084 # Hook for its removal unless debugging.
34085 # Note that there is a small window in which the directory will not be cleaned:
34086 # after its creation but before its name has been assigned to `$tmp'.
34087 $debug ||
34088 {
34089   tmp=
34090   trap 'exit_status=$?
34091   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34092 ' 0
34093   trap '{ (exit 1); exit 1; }' 1 2 13 15
34094 }
34095 # Create a (secure) tmp directory for tmp files.
34096
34097 {
34098   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34099   test -n "$tmp" && test -d "$tmp"
34100 }  ||
34101 {
34102   tmp=./conf$$-$RANDOM
34103   (umask 077 && mkdir "$tmp")
34104 } ||
34105 {
34106    echo "$me: cannot create a temporary directory in ." >&2
34107    { (exit 1); exit 1; }
34108 }
34109
34110 #
34111 # Set up the sed scripts for CONFIG_FILES section.
34112 #
34113
34114 # No need to generate the scripts if there are no CONFIG_FILES.
34115 # This happens for instance when ./config.status config.h
34116 if test -n "$CONFIG_FILES"; then
34117
34118 _ACEOF
34119
34120
34121
34122 ac_delim='%!_!# '
34123 for ac_last_try in false false false false false :; do
34124   cat >conf$$subs.sed <<_ACEOF
34125 SHELL!$SHELL$ac_delim
34126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34132 exec_prefix!$exec_prefix$ac_delim
34133 prefix!$prefix$ac_delim
34134 program_transform_name!$program_transform_name$ac_delim
34135 bindir!$bindir$ac_delim
34136 sbindir!$sbindir$ac_delim
34137 libexecdir!$libexecdir$ac_delim
34138 datarootdir!$datarootdir$ac_delim
34139 datadir!$datadir$ac_delim
34140 sysconfdir!$sysconfdir$ac_delim
34141 sharedstatedir!$sharedstatedir$ac_delim
34142 localstatedir!$localstatedir$ac_delim
34143 includedir!$includedir$ac_delim
34144 oldincludedir!$oldincludedir$ac_delim
34145 docdir!$docdir$ac_delim
34146 infodir!$infodir$ac_delim
34147 htmldir!$htmldir$ac_delim
34148 dvidir!$dvidir$ac_delim
34149 pdfdir!$pdfdir$ac_delim
34150 psdir!$psdir$ac_delim
34151 libdir!$libdir$ac_delim
34152 localedir!$localedir$ac_delim
34153 mandir!$mandir$ac_delim
34154 DEFS!$DEFS$ac_delim
34155 ECHO_C!$ECHO_C$ac_delim
34156 ECHO_N!$ECHO_N$ac_delim
34157 ECHO_T!$ECHO_T$ac_delim
34158 LIBS!$LIBS$ac_delim
34159 build_alias!$build_alias$ac_delim
34160 host_alias!$host_alias$ac_delim
34161 target_alias!$target_alias$ac_delim
34162 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34163 subdirs!$subdirs$ac_delim
34164 build!$build$ac_delim
34165 build_cpu!$build_cpu$ac_delim
34166 build_vendor!$build_vendor$ac_delim
34167 build_os!$build_os$ac_delim
34168 host!$host$ac_delim
34169 host_cpu!$host_cpu$ac_delim
34170 host_vendor!$host_vendor$ac_delim
34171 host_os!$host_os$ac_delim
34172 target!$target$ac_delim
34173 target_cpu!$target_cpu$ac_delim
34174 target_vendor!$target_vendor$ac_delim
34175 target_os!$target_os$ac_delim
34176 OS!$OS$ac_delim
34177 LINKALL!$LINKALL$ac_delim
34178 NOLINKALL!$NOLINKALL$ac_delim
34179 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34180 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34181 ARCH!$ARCH$ac_delim
34182 ENDIAN!$ENDIAN$ac_delim
34183 CC!$CC$ac_delim
34184 CFLAGS!$CFLAGS$ac_delim
34185 LDFLAGS!$LDFLAGS$ac_delim
34186 CPPFLAGS!$CPPFLAGS$ac_delim
34187 ac_ct_CC!$ac_ct_CC$ac_delim
34188 EXEEXT!$EXEEXT$ac_delim
34189 OBJEXT!$OBJEXT$ac_delim
34190 CPP!$CPP$ac_delim
34191 GREP!$GREP$ac_delim
34192 EGREP!$EGREP$ac_delim
34193 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34194 BUILD_CC!$BUILD_CC$ac_delim
34195 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34196 CVSBUILD!$CVSBUILD$ac_delim
34197 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34198 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34199 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34200 JIT!$JIT$ac_delim
34201 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34202 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34203 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34204 ENABLE_PIC!$ENABLE_PIC$ac_delim
34205 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34206 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34207 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34208 CXX!$CXX$ac_delim
34209 CXXFLAGS!$CXXFLAGS$ac_delim
34210 ac_ct_CXX!$ac_ct_CXX$ac_delim
34211 LEX!$LEX$ac_delim
34212 LEXLIB!$LEXLIB$ac_delim
34213 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34214 FLEX!$FLEX$ac_delim
34215 YACC!$YACC$ac_delim
34216 YFLAGS!$YFLAGS$ac_delim
34217 BISON!$BISON$ac_delim
34218 NM!$NM$ac_delim
34219 ifGNUmake!$ifGNUmake$ac_delim
34220 LN_S!$LN_S$ac_delim
34221 CMP!$CMP$ac_delim
34222 _ACEOF
34223
34224   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34225     break
34226   elif $ac_last_try; then
34227     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34229    { (exit 1); exit 1; }; }
34230   else
34231     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34232   fi
34233 done
34234
34235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34236 if test -n "$ac_eof"; then
34237   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34238   ac_eof=`expr $ac_eof + 1`
34239 fi
34240
34241 cat >>$CONFIG_STATUS <<_ACEOF
34242 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34244 _ACEOF
34245 sed '
34246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34247 s/^/s,@/; s/!/@,|#_!!_#|/
34248 :n
34249 t n
34250 s/'"$ac_delim"'$/,g/; t
34251 s/$/\\/; p
34252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34253 ' >>$CONFIG_STATUS <conf$$subs.sed
34254 rm -f conf$$subs.sed
34255 cat >>$CONFIG_STATUS <<_ACEOF
34256 CEOF$ac_eof
34257 _ACEOF
34258
34259
34260 ac_delim='%!_!# '
34261 for ac_last_try in false false false false false :; do
34262   cat >conf$$subs.sed <<_ACEOF
34263 CP!$CP$ac_delim
34264 DATE!$DATE$ac_delim
34265 FIND!$FIND$ac_delim
34266 MKDIR!$MKDIR$ac_delim
34267 MV!$MV$ac_delim
34268 RANLIB!$RANLIB$ac_delim
34269 RM!$RM$ac_delim
34270 SED!$SED$ac_delim
34271 TAR!$TAR$ac_delim
34272 BINPWD!$BINPWD$ac_delim
34273 GRAPHVIZ!$GRAPHVIZ$ac_delim
34274 DOT!$DOT$ac_delim
34275 GV!$GV$ac_delim
34276 DOTTY!$DOTTY$ac_delim
34277 PERL!$PERL$ac_delim
34278 HAVE_PERL!$HAVE_PERL$ac_delim
34279 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34280 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34281 INSTALL_DATA!$INSTALL_DATA$ac_delim
34282 BZIP2!$BZIP2$ac_delim
34283 DOXYGEN!$DOXYGEN$ac_delim
34284 GROFF!$GROFF$ac_delim
34285 GZIP!$GZIP$ac_delim
34286 POD2HTML!$POD2HTML$ac_delim
34287 POD2MAN!$POD2MAN$ac_delim
34288 RUNTEST!$RUNTEST$ac_delim
34289 TCLSH!$TCLSH$ac_delim
34290 ZIP!$ZIP$ac_delim
34291 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34292 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34293 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34294 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34295 LIBADD_DL!$LIBADD_DL$ac_delim
34296 ECHO!$ECHO$ac_delim
34297 AR!$AR$ac_delim
34298 STRIP!$STRIP$ac_delim
34299 CXXCPP!$CXXCPP$ac_delim
34300 F77!$F77$ac_delim
34301 FFLAGS!$FFLAGS$ac_delim
34302 ac_ct_F77!$ac_ct_F77$ac_delim
34303 LIBTOOL!$LIBTOOL$ac_delim
34304 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34305 LLVMGCC!$LLVMGCC$ac_delim
34306 LLVMGXX!$LLVMGXX$ac_delim
34307 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34308 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34309 ALLOCA!$ALLOCA$ac_delim
34310 MMAP_FILE!$MMAP_FILE$ac_delim
34311 LLVMCC1!$LLVMCC1$ac_delim
34312 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34313 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34314 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34315 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34316 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34317 SHLIBEXT!$SHLIBEXT$ac_delim
34318 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34319 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34320 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34321 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34322 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34323 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34324 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34325 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34326 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34327 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34328 LIBOBJS!$LIBOBJS$ac_delim
34329 LTLIBOBJS!$LTLIBOBJS$ac_delim
34330 _ACEOF
34331
34332   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
34333     break
34334   elif $ac_last_try; then
34335     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34337    { (exit 1); exit 1; }; }
34338   else
34339     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34340   fi
34341 done
34342
34343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34344 if test -n "$ac_eof"; then
34345   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34346   ac_eof=`expr $ac_eof + 1`
34347 fi
34348
34349 cat >>$CONFIG_STATUS <<_ACEOF
34350 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34352 _ACEOF
34353 sed '
34354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34355 s/^/s,@/; s/!/@,|#_!!_#|/
34356 :n
34357 t n
34358 s/'"$ac_delim"'$/,g/; t
34359 s/$/\\/; p
34360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34361 ' >>$CONFIG_STATUS <conf$$subs.sed
34362 rm -f conf$$subs.sed
34363 cat >>$CONFIG_STATUS <<_ACEOF
34364 :end
34365 s/|#_!!_#|//g
34366 CEOF$ac_eof
34367 _ACEOF
34368
34369
34370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34372 # trailing colons and then remove the whole line if VPATH becomes empty
34373 # (actually we leave an empty line to preserve line numbers).
34374 if test "x$srcdir" = x.; then
34375   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34376 s/:*\$(srcdir):*/:/
34377 s/:*\${srcdir}:*/:/
34378 s/:*@srcdir@:*/:/
34379 s/^\([^=]*=[     ]*\):*/\1/
34380 s/:*$//
34381 s/^[^=]*=[       ]*$//
34382 }'
34383 fi
34384
34385 cat >>$CONFIG_STATUS <<\_ACEOF
34386 fi # test -n "$CONFIG_FILES"
34387
34388
34389 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34390 do
34391   case $ac_tag in
34392   :[FHLC]) ac_mode=$ac_tag; continue;;
34393   esac
34394   case $ac_mode$ac_tag in
34395   :[FHL]*:*);;
34396   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34397 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34398    { (exit 1); exit 1; }; };;
34399   :[FH]-) ac_tag=-:-;;
34400   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34401   esac
34402   ac_save_IFS=$IFS
34403   IFS=:
34404   set x $ac_tag
34405   IFS=$ac_save_IFS
34406   shift
34407   ac_file=$1
34408   shift
34409
34410   case $ac_mode in
34411   :L) ac_source=$1;;
34412   :[FH])
34413     ac_file_inputs=
34414     for ac_f
34415     do
34416       case $ac_f in
34417       -) ac_f="$tmp/stdin";;
34418       *) # Look for the file first in the build tree, then in the source tree
34419          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34420          # because $ac_f cannot contain `:'.
34421          test -f "$ac_f" ||
34422            case $ac_f in
34423            [\\/$]*) false;;
34424            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34425            esac ||
34426            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34427 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34428    { (exit 1); exit 1; }; };;
34429       esac
34430       ac_file_inputs="$ac_file_inputs $ac_f"
34431     done
34432
34433     # Let's still pretend it is `configure' which instantiates (i.e., don't
34434     # use $as_me), people would be surprised to read:
34435     #    /* config.h.  Generated by config.status.  */
34436     configure_input="Generated from "`IFS=:
34437           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34438     if test x"$ac_file" != x-; then
34439       configure_input="$ac_file.  $configure_input"
34440       { echo "$as_me:$LINENO: creating $ac_file" >&5
34441 echo "$as_me: creating $ac_file" >&6;}
34442     fi
34443
34444     case $ac_tag in
34445     *:-:* | *:-) cat >"$tmp/stdin";;
34446     esac
34447     ;;
34448   esac
34449
34450   ac_dir=`$as_dirname -- "$ac_file" ||
34451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34452          X"$ac_file" : 'X\(//\)[^/]' \| \
34453          X"$ac_file" : 'X\(//\)$' \| \
34454          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34455 echo X"$ac_file" |
34456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34457             s//\1/
34458             q
34459           }
34460           /^X\(\/\/\)[^/].*/{
34461             s//\1/
34462             q
34463           }
34464           /^X\(\/\/\)$/{
34465             s//\1/
34466             q
34467           }
34468           /^X\(\/\).*/{
34469             s//\1/
34470             q
34471           }
34472           s/.*/./; q'`
34473   { as_dir="$ac_dir"
34474   case $as_dir in #(
34475   -*) as_dir=./$as_dir;;
34476   esac
34477   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34478     as_dirs=
34479     while :; do
34480       case $as_dir in #(
34481       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34482       *) as_qdir=$as_dir;;
34483       esac
34484       as_dirs="'$as_qdir' $as_dirs"
34485       as_dir=`$as_dirname -- "$as_dir" ||
34486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34487          X"$as_dir" : 'X\(//\)[^/]' \| \
34488          X"$as_dir" : 'X\(//\)$' \| \
34489          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34490 echo X"$as_dir" |
34491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34492             s//\1/
34493             q
34494           }
34495           /^X\(\/\/\)[^/].*/{
34496             s//\1/
34497             q
34498           }
34499           /^X\(\/\/\)$/{
34500             s//\1/
34501             q
34502           }
34503           /^X\(\/\).*/{
34504             s//\1/
34505             q
34506           }
34507           s/.*/./; q'`
34508       test -d "$as_dir" && break
34509     done
34510     test -z "$as_dirs" || eval "mkdir $as_dirs"
34511   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34512 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34513    { (exit 1); exit 1; }; }; }
34514   ac_builddir=.
34515
34516 case "$ac_dir" in
34517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34518 *)
34519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34520   # A ".." for each directory in $ac_dir_suffix.
34521   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34522   case $ac_top_builddir_sub in
34523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34525   esac ;;
34526 esac
34527 ac_abs_top_builddir=$ac_pwd
34528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34529 # for backward compatibility:
34530 ac_top_builddir=$ac_top_build_prefix
34531
34532 case $srcdir in
34533   .)  # We are building in place.
34534     ac_srcdir=.
34535     ac_top_srcdir=$ac_top_builddir_sub
34536     ac_abs_top_srcdir=$ac_pwd ;;
34537   [\\/]* | ?:[\\/]* )  # Absolute name.
34538     ac_srcdir=$srcdir$ac_dir_suffix;
34539     ac_top_srcdir=$srcdir
34540     ac_abs_top_srcdir=$srcdir ;;
34541   *) # Relative name.
34542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34543     ac_top_srcdir=$ac_top_build_prefix$srcdir
34544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34545 esac
34546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34547
34548
34549   case $ac_mode in
34550   :F)
34551   #
34552   # CONFIG_FILE
34553   #
34554
34555   case $INSTALL in
34556   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34557   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34558   esac
34559 _ACEOF
34560
34561 cat >>$CONFIG_STATUS <<\_ACEOF
34562 # If the template does not know about datarootdir, expand it.
34563 # FIXME: This hack should be removed a few years after 2.60.
34564 ac_datarootdir_hack=; ac_datarootdir_seen=
34565
34566 case `sed -n '/datarootdir/ {
34567   p
34568   q
34569 }
34570 /@datadir@/p
34571 /@docdir@/p
34572 /@infodir@/p
34573 /@localedir@/p
34574 /@mandir@/p
34575 ' $ac_file_inputs` in
34576 *datarootdir*) ac_datarootdir_seen=yes;;
34577 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34578   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34579 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34580 _ACEOF
34581 cat >>$CONFIG_STATUS <<_ACEOF
34582   ac_datarootdir_hack='
34583   s&@datadir@&$datadir&g
34584   s&@docdir@&$docdir&g
34585   s&@infodir@&$infodir&g
34586   s&@localedir@&$localedir&g
34587   s&@mandir@&$mandir&g
34588     s&\\\${datarootdir}&$datarootdir&g' ;;
34589 esac
34590 _ACEOF
34591
34592 # Neutralize VPATH when `$srcdir' = `.'.
34593 # Shell code in configure.ac might set extrasub.
34594 # FIXME: do we really want to maintain this feature?
34595 cat >>$CONFIG_STATUS <<_ACEOF
34596   sed "$ac_vpsub
34597 $extrasub
34598 _ACEOF
34599 cat >>$CONFIG_STATUS <<\_ACEOF
34600 :t
34601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34602 s&@configure_input@&$configure_input&;t t
34603 s&@top_builddir@&$ac_top_builddir_sub&;t t
34604 s&@srcdir@&$ac_srcdir&;t t
34605 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34606 s&@top_srcdir@&$ac_top_srcdir&;t t
34607 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34608 s&@builddir@&$ac_builddir&;t t
34609 s&@abs_builddir@&$ac_abs_builddir&;t t
34610 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34611 s&@INSTALL@&$ac_INSTALL&;t t
34612 $ac_datarootdir_hack
34613 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34614
34615 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34616   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34617   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34618   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34619 which seems to be undefined.  Please make sure it is defined." >&5
34620 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34621 which seems to be undefined.  Please make sure it is defined." >&2;}
34622
34623   rm -f "$tmp/stdin"
34624   case $ac_file in
34625   -) cat "$tmp/out"; rm -f "$tmp/out";;
34626   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34627   esac
34628  ;;
34629   :H)
34630   #
34631   # CONFIG_HEADER
34632   #
34633 _ACEOF
34634
34635 # Transform confdefs.h into a sed script `conftest.defines', that
34636 # substitutes the proper values into config.h.in to produce config.h.
34637 rm -f conftest.defines conftest.tail
34638 # First, append a space to every undef/define line, to ease matching.
34639 echo 's/$/ /' >conftest.defines
34640 # Then, protect against being on the right side of a sed subst, or in
34641 # an unquoted here document, in config.status.  If some macros were
34642 # called several times there might be several #defines for the same
34643 # symbol, which is useless.  But do not sort them, since the last
34644 # AC_DEFINE must be honored.
34645 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34646 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34647 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34648 # PARAMS is the parameter list in the macro definition--in most cases, it's
34649 # just an empty string.
34650 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34651 ac_dB='\\)[      (].*,\\1define\\2'
34652 ac_dC=' '
34653 ac_dD=' ,'
34654
34655 uniq confdefs.h |
34656   sed -n '
34657         t rset
34658         :rset
34659         s/^[     ]*#[    ]*define[       ][      ]*//
34660         t ok
34661         d
34662         :ok
34663         s/[\\&,]/\\&/g
34664         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34665         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34666   ' >>conftest.defines
34667
34668 # Remove the space that was appended to ease matching.
34669 # Then replace #undef with comments.  This is necessary, for
34670 # example, in the case of _POSIX_SOURCE, which is predefined and required
34671 # on some systems where configure will not decide to define it.
34672 # (The regexp can be short, since the line contains either #define or #undef.)
34673 echo 's/ $//
34674 s,^[     #]*u.*,/* & */,' >>conftest.defines
34675
34676 # Break up conftest.defines:
34677 ac_max_sed_lines=50
34678
34679 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34680 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34681 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34682 # et cetera.
34683 ac_in='$ac_file_inputs'
34684 ac_out='"$tmp/out1"'
34685 ac_nxt='"$tmp/out2"'
34686
34687 while :
34688 do
34689   # Write a here document:
34690     cat >>$CONFIG_STATUS <<_ACEOF
34691     # First, check the format of the line:
34692     cat >"\$tmp/defines.sed" <<\\CEOF
34693 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34694 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34695 b
34696 :def
34697 _ACEOF
34698   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34699   echo 'CEOF
34700     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34701   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34702   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34703   grep . conftest.tail >/dev/null || break
34704   rm -f conftest.defines
34705   mv conftest.tail conftest.defines
34706 done
34707 rm -f conftest.defines conftest.tail
34708
34709 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34710 cat >>$CONFIG_STATUS <<\_ACEOF
34711   if test x"$ac_file" != x-; then
34712     echo "/* $configure_input  */" >"$tmp/config.h"
34713     cat "$ac_result" >>"$tmp/config.h"
34714     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34715       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34716 echo "$as_me: $ac_file is unchanged" >&6;}
34717     else
34718       rm -f $ac_file
34719       mv "$tmp/config.h" $ac_file
34720     fi
34721   else
34722     echo "/* $configure_input  */"
34723     cat "$ac_result"
34724   fi
34725   rm -f "$tmp/out12"
34726  ;;
34727
34728   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34729 echo "$as_me: executing $ac_file commands" >&6;}
34730  ;;
34731   esac
34732
34733
34734   case $ac_file$ac_mode in
34735     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34736    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34737     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34738    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34739     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34740    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34741     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34742    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34743     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34744    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34745     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34746    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34747     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34748    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34749     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34750    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34751     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34752    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34753     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34754    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34755
34756   esac
34757 done # for ac_tag
34758
34759
34760 { (exit 0); exit 0; }
34761 _ACEOF
34762 chmod +x $CONFIG_STATUS
34763 ac_clean_files=$ac_clean_files_save
34764
34765
34766 # configure is writing to config.log, and then calls config.status.
34767 # config.status does its own redirection, appending to config.log.
34768 # Unfortunately, on DOS this fails, as config.log is still kept open
34769 # by configure, so config.status won't be able to write to it; its
34770 # output is simply discarded.  So we exec the FD to /dev/null,
34771 # effectively closing config.log, so it can be properly (re)opened and
34772 # appended to by config.status.  When coming back to configure, we
34773 # need to make the FD available again.
34774 if test "$no_create" != yes; then
34775   ac_cs_success=:
34776   ac_config_status_args=
34777   test "$silent" = yes &&
34778     ac_config_status_args="$ac_config_status_args --quiet"
34779   exec 5>/dev/null
34780   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34781   exec 5>>config.log
34782   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34783   # would make configure fail if this is the last instruction.
34784   $ac_cs_success || { (exit 1); exit 1; }
34785 fi
34786
34787 #
34788 # CONFIG_SUBDIRS section.
34789 #
34790 if test "$no_recursion" != yes; then
34791
34792   # Remove --cache-file and --srcdir arguments so they do not pile up.
34793   ac_sub_configure_args=
34794   ac_prev=
34795   eval "set x $ac_configure_args"
34796   shift
34797   for ac_arg
34798   do
34799     if test -n "$ac_prev"; then
34800       ac_prev=
34801       continue
34802     fi
34803     case $ac_arg in
34804     -cache-file | --cache-file | --cache-fil | --cache-fi \
34805     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34806       ac_prev=cache_file ;;
34807     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34808     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34809     | --c=*)
34810       ;;
34811     --config-cache | -C)
34812       ;;
34813     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34814       ac_prev=srcdir ;;
34815     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34816       ;;
34817     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34818       ac_prev=prefix ;;
34819     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34820       ;;
34821     *)
34822       case $ac_arg in
34823       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34824       esac
34825       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34826     esac
34827   done
34828
34829   # Always prepend --prefix to ensure using the same prefix
34830   # in subdir configurations.
34831   ac_arg="--prefix=$prefix"
34832   case $ac_arg in
34833   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34834   esac
34835   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34836
34837   ac_popdir=`pwd`
34838   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34839
34840     # Do not complain, so a configure script can configure whichever
34841     # parts of a large source tree are present.
34842     test -d "$srcdir/$ac_dir" || continue
34843
34844     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34845     echo "$as_me:$LINENO: $ac_msg" >&5
34846     echo "$ac_msg" >&6
34847     { as_dir="$ac_dir"
34848   case $as_dir in #(
34849   -*) as_dir=./$as_dir;;
34850   esac
34851   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34852     as_dirs=
34853     while :; do
34854       case $as_dir in #(
34855       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34856       *) as_qdir=$as_dir;;
34857       esac
34858       as_dirs="'$as_qdir' $as_dirs"
34859       as_dir=`$as_dirname -- "$as_dir" ||
34860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34861          X"$as_dir" : 'X\(//\)[^/]' \| \
34862          X"$as_dir" : 'X\(//\)$' \| \
34863          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34864 echo X"$as_dir" |
34865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34866             s//\1/
34867             q
34868           }
34869           /^X\(\/\/\)[^/].*/{
34870             s//\1/
34871             q
34872           }
34873           /^X\(\/\/\)$/{
34874             s//\1/
34875             q
34876           }
34877           /^X\(\/\).*/{
34878             s//\1/
34879             q
34880           }
34881           s/.*/./; q'`
34882       test -d "$as_dir" && break
34883     done
34884     test -z "$as_dirs" || eval "mkdir $as_dirs"
34885   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34887    { (exit 1); exit 1; }; }; }
34888     ac_builddir=.
34889
34890 case "$ac_dir" in
34891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34892 *)
34893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34894   # A ".." for each directory in $ac_dir_suffix.
34895   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34896   case $ac_top_builddir_sub in
34897   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34898   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34899   esac ;;
34900 esac
34901 ac_abs_top_builddir=$ac_pwd
34902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34903 # for backward compatibility:
34904 ac_top_builddir=$ac_top_build_prefix
34905
34906 case $srcdir in
34907   .)  # We are building in place.
34908     ac_srcdir=.
34909     ac_top_srcdir=$ac_top_builddir_sub
34910     ac_abs_top_srcdir=$ac_pwd ;;
34911   [\\/]* | ?:[\\/]* )  # Absolute name.
34912     ac_srcdir=$srcdir$ac_dir_suffix;
34913     ac_top_srcdir=$srcdir
34914     ac_abs_top_srcdir=$srcdir ;;
34915   *) # Relative name.
34916     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34917     ac_top_srcdir=$ac_top_build_prefix$srcdir
34918     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34919 esac
34920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34921
34922
34923     cd "$ac_dir"
34924
34925     # Check for guested configure; otherwise get Cygnus style configure.
34926     if test -f "$ac_srcdir/configure.gnu"; then
34927       ac_sub_configure=$ac_srcdir/configure.gnu
34928     elif test -f "$ac_srcdir/configure"; then
34929       ac_sub_configure=$ac_srcdir/configure
34930     elif test -f "$ac_srcdir/configure.in"; then
34931       # This should be Cygnus configure.
34932       ac_sub_configure=$ac_aux_dir/configure
34933     else
34934       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34935 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34936       ac_sub_configure=
34937     fi
34938
34939     # The recursion is here.
34940     if test -n "$ac_sub_configure"; then
34941       # Make the cache file name correct relative to the subdirectory.
34942       case $cache_file in
34943       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34944       *) # Relative name.
34945         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34946       esac
34947
34948       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34949 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34950       # The eval makes quoting arguments work.
34951       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34952            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34953         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34954 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34955    { (exit 1); exit 1; }; }
34956     fi
34957
34958     cd "$ac_popdir"
34959   done
34960 fi
34961
34962