Regenerate.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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-2007 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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
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 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 INSTALL_LTDL_TRUE
889 INSTALL_LTDL_FALSE
890 CONVENIENCE_LTDL_TRUE
891 CONVENIENCE_LTDL_FALSE
892 LIBADD_DL
893 ECHO
894 AR
895 STRIP
896 CXXCPP
897 F77
898 FFLAGS
899 ac_ct_F77
900 LIBTOOL
901 ETAGSFLAGS
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 LIBOBJS
928 LTLIBOBJS'
929 ac_subst_files=''
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 CPPFLAGS
937 CPP
938 CXX
939 CXXFLAGS
940 CCC
941 YACC
942 YFLAGS
943 CXXCPP
944 F77
945 FFLAGS'
946 ac_subdirs_all='projects/sample
947 projects/privbracket
948 projects/llvm-stacker
949 projects/llvm-test
950 projects/llvm-reopt
951 projects/llvm-gcc
952 projects/llvm-java
953 projects/llvm-tv
954 projects/llvm-poolalloc
955 projects/poolalloc
956 projects/llvm-kernel'
957
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008   # If the previous option needs an argument, assign it.
1009   if test -n "$ac_prev"; then
1010     eval $ac_prev=\$ac_option
1011     ac_prev=
1012     continue
1013   fi
1014
1015   case $ac_option in
1016   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017   *)    ac_optarg=yes ;;
1018   esac
1019
1020   # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022   case $ac_dashdash$ac_option in
1023   --)
1024     ac_dashdash=yes ;;
1025
1026   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027     ac_prev=bindir ;;
1028   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029     bindir=$ac_optarg ;;
1030
1031   -build | --build | --buil | --bui | --bu)
1032     ac_prev=build_alias ;;
1033   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034     build_alias=$ac_optarg ;;
1035
1036   -cache-file | --cache-file | --cache-fil | --cache-fi \
1037   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038     ac_prev=cache_file ;;
1039   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041     cache_file=$ac_optarg ;;
1042
1043   --config-cache | -C)
1044     cache_file=config.cache ;;
1045
1046   -datadir | --datadir | --datadi | --datad)
1047     ac_prev=datadir ;;
1048   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049     datadir=$ac_optarg ;;
1050
1051   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052   | --dataroo | --dataro | --datar)
1053     ac_prev=datarootdir ;;
1054   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056     datarootdir=$ac_optarg ;;
1057
1058   -disable-* | --disable-*)
1059     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1065     eval enable_$ac_feature=no ;;
1066
1067   -docdir | --docdir | --docdi | --doc | --do)
1068     ac_prev=docdir ;;
1069   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070     docdir=$ac_optarg ;;
1071
1072   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073     ac_prev=dvidir ;;
1074   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075     dvidir=$ac_optarg ;;
1076
1077   -enable-* | --enable-*)
1078     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084     eval enable_$ac_feature=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278       { echo "$as_me: error: invalid package name: $ac_package" >&2
1279    { (exit 1); exit 1; }; }
1280     ac_package=`echo $ac_package| sed 's/-/_/g'`
1281     eval with_$ac_package=\$ac_optarg ;;
1282
1283   -without-* | --without-*)
1284     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
1288    { (exit 1); exit 1; }; }
1289     ac_package=`echo $ac_package | sed 's/-/_/g'`
1290     eval with_$ac_package=no ;;
1291
1292   --x)
1293     # Obsolete; use --with-x.
1294     with_x=yes ;;
1295
1296   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297   | --x-incl | --x-inc | --x-in | --x-i)
1298     ac_prev=x_includes ;;
1299   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301     x_includes=$ac_optarg ;;
1302
1303   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305     ac_prev=x_libraries ;;
1306   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308     x_libraries=$ac_optarg ;;
1309
1310   -*) { echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312    { (exit 1); exit 1; }; }
1313     ;;
1314
1315   *=*)
1316     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320    { (exit 1); exit 1; }; }
1321     eval $ac_envvar=\$ac_optarg
1322     export $ac_envvar ;;
1323
1324   *)
1325     # FIXME: should be removed in autoconf 3.0.
1326     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330     ;;
1331
1332   esac
1333 done
1334
1335 if test -n "$ac_prev"; then
1336   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337   { echo "$as_me: error: missing argument to $ac_option" >&2
1338    { (exit 1); exit 1; }; }
1339 fi
1340
1341 # Be sure to have absolute directory names.
1342 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343                 datadir sysconfdir sharedstatedir localstatedir includedir \
1344                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345                 libdir localedir mandir
1346 do
1347   eval ac_val=\$$ac_var
1348   case $ac_val in
1349     [\\/$]* | ?:[\\/]* )  continue;;
1350     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351   esac
1352   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353    { (exit 1); exit 1; }; }
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365   if test "x$build_alias" = x; then
1366     cross_compiling=maybe
1367     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368     If a cross compiler is detected then cross compile mode will be used." >&2
1369   elif test "x$build_alias" != "x$host_alias"; then
1370     cross_compiling=yes
1371   fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383   { echo "$as_me: error: Working directory cannot be determined" >&2
1384    { (exit 1); exit 1; }; }
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386   { echo "$as_me: error: pwd does not report name of working directory" >&2
1387    { (exit 1); exit 1; }; }
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392   ac_srcdir_defaulted=yes
1393   # Try the directory containing this script, then the parent directory.
1394   ac_confdir=`$as_dirname -- "$0" ||
1395 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396          X"$0" : 'X\(//\)[^/]' \| \
1397          X"$0" : 'X\(//\)$' \| \
1398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1399 echo X"$0" |
1400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\/\)[^/].*/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\).*/{
1413             s//\1/
1414             q
1415           }
1416           s/.*/./; q'`
1417   srcdir=$ac_confdir
1418   if test ! -r "$srcdir/$ac_unique_file"; then
1419     srcdir=..
1420   fi
1421 else
1422   ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427    { (exit 1); exit 1; }; }
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1432    { (exit 1); exit 1; }; }
1433         pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436   srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_env_${ac_var}_value=\$${ac_var}
1447   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455   # Omit some internal or obsolete options to make the list less imposing.
1456   # This message is too long to be a string in the A/UX 3.1 sh.
1457   cat <<_ACEOF
1458 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468   -h, --help              display this help and exit
1469       --help=short        display options specific to this package
1470       --help=recursive    display the short help of all the included packages
1471   -V, --version           display version information and exit
1472   -q, --quiet, --silent   do not print \`checking...' messages
1473       --cache-file=FILE   cache test results in FILE [disabled]
1474   -C, --config-cache      alias for \`--cache-file=config.cache'
1475   -n, --no-create         do not create output files
1476       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479   --prefix=PREFIX         install architecture-independent files in PREFIX
1480                           [$ac_default_prefix]
1481   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                           [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492   --bindir=DIR           user executables [EPREFIX/bin]
1493   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1494   --libexecdir=DIR       program executables [EPREFIX/libexec]
1495   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1496   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1497   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1498   --libdir=DIR           object code libraries [EPREFIX/lib]
1499   --includedir=DIR       C header files [PREFIX/include]
1500   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1501   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1502   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1503   --infodir=DIR          info documentation [DATAROOTDIR/info]
1504   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1505   --mandir=DIR           man documentation [DATAROOTDIR/man]
1506   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1507   --htmldir=DIR          html documentation [DOCDIR]
1508   --dvidir=DIR           dvi documentation [DOCDIR]
1509   --pdfdir=DIR           pdf documentation [DOCDIR]
1510   --psdir=DIR            ps documentation [DOCDIR]
1511 _ACEOF
1512
1513   cat <<\_ACEOF
1514
1515 System types:
1516   --build=BUILD     configure for building on BUILD [guessed]
1517   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518   --target=TARGET   configure for building compilers for TARGET [HOST]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of llvm 2.2svn:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531   --enable-optimized
1532   --enable-assertions
1533   --enable-expensive-checks
1534
1535   --enable-debug-runtime
1536   --enable-jit            Enable Just In Time Compiling (default is YES)
1537   --enable-doxygen        Build doxygen documentation (default is NO)
1538   --enable-threads        Use threads if available (default is YES)
1539   --enable-pic            Build LLVM with Position Independent Code (default
1540                           is NO)
1541   --enable-targets        Build specific host targets:
1542                           all,host-only,{target-name} (default=all)
1543   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1544                           %a (default is YES)
1545   --enable-ltdl-install   install libltdl
1546   --enable-shared[=PKGS]  build shared libraries
1547                           [default=yes]
1548   --enable-static[=PKGS]  build static libraries
1549                           [default=yes]
1550   --enable-fast-install[=PKGS]
1551                           optimize for fast installation
1552                           [default=yes]
1553   --disable-libtool-lock  avoid locking (might break parallel builds)
1554
1555 Optional Packages:
1556   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1559                           searches PATH)
1560   --with-extra-options    Specify addtional options to compile LLVM with
1561   --with-tclinclude       directory where tcl headers are
1562   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563   --with-pic              try to use only PIC/non-PIC objects [default=use
1564                           both]
1565   --with-tags[=TAGS]      include additional configurations [automatic]
1566   --with-udis86=<path>    Use udis86 external x86 disassembler library
1567
1568 Some influential environment variables:
1569   CC          C compiler command
1570   CFLAGS      C compiler flags
1571   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572               nonstandard directory <lib dir>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CPP         C preprocessor
1576   CXX         C++ compiler command
1577   CXXFLAGS    C++ compiler flags
1578   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1579               the first program found out of: `bison -y', `byacc', `yacc'.
1580   YFLAGS      The list of arguments that will be passed by default to $YACC.
1581               This script will default YFLAGS to the empty string to avoid a
1582               default value of `-d' given by some make applications.
1583   CXXCPP      C++ preprocessor
1584   F77         Fortran 77 compiler command
1585   FFLAGS      Fortran 77 compiler flags
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to <llvmbugs@cs.uiuc.edu>.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596   # If there are subdirs, report their specific --help.
1597   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598     test -d "$ac_dir" || continue
1599     ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1605   # A ".." for each directory in $ac_dir_suffix.
1606   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1607   case $ac_top_builddir_sub in
1608   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610   esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618   .)  # We are building in place.
1619     ac_srcdir=.
1620     ac_top_srcdir=$ac_top_builddir_sub
1621     ac_abs_top_srcdir=$ac_pwd ;;
1622   [\\/]* | ?:[\\/]* )  # Absolute name.
1623     ac_srcdir=$srcdir$ac_dir_suffix;
1624     ac_top_srcdir=$srcdir
1625     ac_abs_top_srcdir=$srcdir ;;
1626   *) # Relative name.
1627     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628     ac_top_srcdir=$ac_top_build_prefix$srcdir
1629     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633     cd "$ac_dir" || { ac_status=$?; continue; }
1634     # Check for guested configure.
1635     if test -f "$ac_srcdir/configure.gnu"; then
1636       echo &&
1637       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638     elif test -f "$ac_srcdir/configure"; then
1639       echo &&
1640       $SHELL "$ac_srcdir/configure" --help=recursive
1641     else
1642       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643     fi || ac_status=$?
1644     cd "$ac_pwd" || { ac_status=$?; break; }
1645   done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650   cat <<\_ACEOF
1651 llvm configure 2.2svn
1652 generated by GNU Autoconf 2.60
1653
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1658
1659 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1660 _ACEOF
1661   exit
1662 fi
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1666
1667 It was created by llvm $as_me 2.2svn, which was
1668 generated by GNU Autoconf 2.60.  Invocation command line was
1669
1670   $ $0 $@
1671
1672 _ACEOF
1673 exec 5>>config.log
1674 {
1675 cat <<_ASUNAME
1676 ## --------- ##
1677 ## Platform. ##
1678 ## --------- ##
1679
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1688
1689 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1690 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1693 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1694 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1695 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1696
1697 _ASUNAME
1698
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   echo "PATH: $as_dir"
1705 done
1706 IFS=$as_save_IFS
1707
1708 } >&5
1709
1710 cat >&5 <<_ACEOF
1711
1712
1713 ## ----------- ##
1714 ## Core tests. ##
1715 ## ----------- ##
1716
1717 _ACEOF
1718
1719
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1725 ac_configure_args=
1726 ac_configure_args0=
1727 ac_configure_args1=
1728 ac_must_keep_next=false
1729 for ac_pass in 1 2
1730 do
1731   for ac_arg
1732   do
1733     case $ac_arg in
1734     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736     | -silent | --silent | --silen | --sile | --sil)
1737       continue ;;
1738     *\'*)
1739       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740     esac
1741     case $ac_pass in
1742     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743     2)
1744       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745       if test $ac_must_keep_next = true; then
1746         ac_must_keep_next=false # Got value, back to normal.
1747       else
1748         case $ac_arg in
1749           *=* | --config-cache | -C | -disable-* | --disable-* \
1750           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752           | -with-* | --with-* | -without-* | --without-* | --x)
1753             case "$ac_configure_args0 " in
1754               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755             esac
1756             ;;
1757           -* ) ac_must_keep_next=true ;;
1758         esac
1759       fi
1760       ac_configure_args="$ac_configure_args '$ac_arg'"
1761       ;;
1762     esac
1763   done
1764 done
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log.  We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774   # Save into config.log some information that might help in debugging.
1775   {
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1782 _ASBOX
1783     echo
1784     # The following way of writing the cache mishandles newlines in values,
1785 (
1786   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787     eval ac_val=\$$ac_var
1788     case $ac_val in #(
1789     *${as_nl}*)
1790       case $ac_var in #(
1791       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793       esac
1794       case $ac_var in #(
1795       _ | IFS | as_nl) ;; #(
1796       *) $as_unset $ac_var ;;
1797       esac ;;
1798     esac
1799   done
1800   (set) 2>&1 |
1801     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802     *${as_nl}ac_space=\ *)
1803       sed -n \
1804         "s/'\''/'\''\\\\'\'''\''/g;
1805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806       ;; #(
1807     *)
1808       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809       ;;
1810     esac |
1811     sort
1812 )
1813     echo
1814
1815     cat <<\_ASBOX
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1819 _ASBOX
1820     echo
1821     for ac_var in $ac_subst_vars
1822     do
1823       eval ac_val=\$$ac_var
1824       case $ac_val in
1825       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826       esac
1827       echo "$ac_var='\''$ac_val'\''"
1828     done | sort
1829     echo
1830
1831     if test -n "$ac_subst_files"; then
1832       cat <<\_ASBOX
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1836 _ASBOX
1837       echo
1838       for ac_var in $ac_subst_files
1839       do
1840         eval ac_val=\$$ac_var
1841         case $ac_val in
1842         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843         esac
1844         echo "$ac_var='\''$ac_val'\''"
1845       done | sort
1846       echo
1847     fi
1848
1849     if test -s confdefs.h; then
1850       cat <<\_ASBOX
1851 ## ----------- ##
1852 ## confdefs.h. ##
1853 ## ----------- ##
1854 _ASBOX
1855       echo
1856       cat confdefs.h
1857       echo
1858     fi
1859     test "$ac_signal" != 0 &&
1860       echo "$as_me: caught signal $ac_signal"
1861     echo "$as_me: exit $exit_status"
1862   } >&5
1863   rm -f core *.core core.conftest.* &&
1864     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865     exit $exit_status
1866 ' 0
1867 for ac_signal in 1 2 13 15; do
1868   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1869 done
1870 ac_signal=0
1871
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1874
1875 # Predefined preprocessor variables.
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 _ACEOF
1900
1901
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905   set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908 else
1909   set x "$ac_default_prefix/share/config.site" \
1910         "$ac_default_prefix/etc/config.site"
1911 fi
1912 shift
1913 for ac_site_file
1914 do
1915   if test -r "$ac_site_file"; then
1916     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918     sed 's/^/| /' "$ac_site_file" >&5
1919     . "$ac_site_file"
1920   fi
1921 done
1922
1923 if test -r "$cache_file"; then
1924   # Some versions of bash will fail to source /dev/null (special
1925   # files actually), so we avoid doing that.
1926   if test -f "$cache_file"; then
1927     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1929     case $cache_file in
1930       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931       *)                      . "./$cache_file";;
1932     esac
1933   fi
1934 else
1935   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1937   >$cache_file
1938 fi
1939
1940 # Check that the precious variables saved in the cache have kept the same
1941 # value.
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945   eval ac_new_set=\$ac_env_${ac_var}_set
1946   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947   eval ac_new_val=\$ac_env_${ac_var}_value
1948   case $ac_old_set,$ac_new_set in
1949     set,)
1950       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952       ac_cache_corrupted=: ;;
1953     ,set)
1954       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956       ac_cache_corrupted=: ;;
1957     ,);;
1958     *)
1959       if test "x$ac_old_val" != "x$ac_new_val"; then
1960         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1963 echo "$as_me:   former value:  $ac_old_val" >&2;}
1964         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1965 echo "$as_me:   current value: $ac_new_val" >&2;}
1966         ac_cache_corrupted=:
1967       fi;;
1968   esac
1969   # Pass precious variables to config.status.
1970   if test "$ac_new_set" = set; then
1971     case $ac_new_val in
1972     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973     *) ac_arg=$ac_var=$ac_new_val ;;
1974     esac
1975     case " $ac_configure_args " in
1976       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1977       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978     esac
1979   fi
1980 done
1981 if $ac_cache_corrupted; then
1982   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020
2021 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2022
2023
2024
2025
2026
2027
2028
2029 ac_aux_dir=
2030 for ac_dir in autoconf "$srcdir"/autoconf; do
2031   if test -f "$ac_dir/install-sh"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/install-sh -c"
2034     break
2035   elif test -f "$ac_dir/install.sh"; then
2036     ac_aux_dir=$ac_dir
2037     ac_install_sh="$ac_aux_dir/install.sh -c"
2038     break
2039   elif test -f "$ac_dir/shtool"; then
2040     ac_aux_dir=$ac_dir
2041     ac_install_sh="$ac_aux_dir/shtool install -c"
2042     break
2043   fi
2044 done
2045 if test -z "$ac_aux_dir"; then
2046   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2058
2059
2060
2061 if test ${srcdir} != "." ; then
2062   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2063     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2064 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2065    { (exit 1); exit 1; }; }
2066   fi
2067 fi
2068
2069 for i in `ls ${srcdir}/projects`
2070 do
2071   if test -d ${srcdir}/projects/${i} ; then
2072     case ${i} in
2073       CVS) ;;
2074       sample)       subdirs="$subdirs projects/sample"
2075     ;;
2076       privbracket)  subdirs="$subdirs projects/privbracket"
2077  ;;
2078       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2079  ;;
2080       llvm-test)    subdirs="$subdirs projects/llvm-test"
2081  ;;
2082       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2083 ;;
2084       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2085   ;;
2086       llvm-java)    subdirs="$subdirs projects/llvm-java"
2087  ;;
2088       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2089    ;;
2090       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2091  ;;
2092       poolalloc)    subdirs="$subdirs projects/poolalloc"
2093  ;;
2094       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2095  ;;
2096       *)
2097         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2098 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2099         ;;
2100     esac
2101   fi
2102 done
2103
2104
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122    { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126    { (exit 1); exit 1; }; }
2127
2128 fi
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2132 *-*-*) ;;
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135    { (exit 1); exit 1; }; };;
2136 esac
2137 build=$ac_cv_build
2138 ac_save_IFS=$IFS; IFS='-'
2139 set x $ac_cv_build
2140 shift
2141 build_cpu=$1
2142 build_vendor=$2
2143 shift; shift
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2146 build_os=$*
2147 IFS=$ac_save_IFS
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149
2150
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   if test "x$host_alias" = x; then
2157   ac_cv_host=$ac_cv_build
2158 else
2159   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2164
2165 fi
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2168 case $ac_cv_host in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172    { (exit 1); exit 1; }; };;
2173 esac
2174 host=$ac_cv_host
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_host
2177 shift
2178 host_cpu=$1
2179 host_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 host_os=$*
2184 IFS=$ac_save_IFS
2185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186
2187
2188 { echo "$as_me:$LINENO: checking target system type" >&5
2189 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_target+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test "x$target_alias" = x; then
2194   ac_cv_target=$ac_cv_host
2195 else
2196   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199    { (exit 1); exit 1; }; }
2200 fi
2201
2202 fi
2203 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204 echo "${ECHO_T}$ac_cv_target" >&6; }
2205 case $ac_cv_target in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208 echo "$as_me: error: invalid value of canonical target" >&2;}
2209    { (exit 1); exit 1; }; };;
2210 esac
2211 target=$ac_cv_target
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_target
2214 shift
2215 target_cpu=$1
2216 target_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 target_os=$*
2221 IFS=$ac_save_IFS
2222 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2223
2224
2225 # The aliases save the names the user supplied, while $host etc.
2226 # will get canonicalized.
2227 test -n "$target_alias" &&
2228   test "$program_prefix$program_suffix$program_transform_name" = \
2229     NONENONEs,x,x, &&
2230   program_prefix=${target_alias}-
2231
2232 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2233 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2234 if test "${llvm_cv_os_type+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   case $host in
2238   *-*-aix*)
2239     llvm_cv_link_all_option="-Wl,--whole-archive"
2240     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241     llvm_cv_os_type="AIX"
2242     llvm_cv_platform_type="Unix" ;;
2243   *-*-irix*)
2244     llvm_cv_link_all_option="-Wl,--whole-archive"
2245     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246     llvm_cv_os_type="IRIX"
2247     llvm_cv_platform_type="Unix" ;;
2248   *-*-cygwin*)
2249     llvm_cv_link_all_option="-Wl,--whole-archive"
2250     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251     llvm_cv_os_type="Cygwin"
2252     llvm_cv_platform_type="Unix" ;;
2253   *-*-darwin*)
2254     llvm_cv_link_all_option="-Wl,-all_load"
2255     llvm_cv_link_all_option="-Wl,-noall_load"
2256     llvm_cv_os_type="Darwin"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-freebsd*)
2259     llvm_cv_link_all_option="-Wl,--whole-archive"
2260     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261     llvm_cv_os_type="FreeBSD"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-openbsd*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="OpenBSD"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-*-netbsd*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="NetBSD"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-hpux*)
2274     llvm_cv_link_all_option="-Wl,--whole-archive"
2275     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276     llvm_cv_os_type="HP-UX"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-interix*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="Interix"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-linux*)
2284     llvm_cv_link_all_option="-Wl,--whole-archive"
2285     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286     llvm_cv_os_type="Linux"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-solaris*)
2289     llvm_cv_link_all_option="-Wl,-z,allextract"
2290     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2291     llvm_cv_os_type="SunOS"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-win32*)
2294     llvm_cv_link_all_option="-Wl,--whole-archive"
2295     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296     llvm_cv_os_type="Win32"
2297     llvm_cv_platform_type="Win32" ;;
2298   *-*-mingw*)
2299     llvm_cv_link_all_option="-Wl,--whole-archive"
2300     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301     llvm_cv_os_type="MingW"
2302     llvm_cv_platform_type="Win32" ;;
2303   *)
2304     llvm_cv_link_all_option=""
2305     llvm_cv_no_link_all_option=""
2306     llvm_cv_os_type="Unknown"
2307     llvm_cv_platform_type="Unknown" ;;
2308 esac
2309 fi
2310 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2311 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2312
2313 if test "$llvm_cv_os_type" = "Unknown" ; then
2314   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2315 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 OS=$llvm_cv_os_type
2320
2321
2322 LINKALL=$llvm_cv_link_all_option
2323
2324 NOLINKALL=$llvm_cv_no_link_all_option
2325
2326
2327 case $llvm_cv_platform_type in
2328   Unix)
2329
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2332 _ACEOF
2333
2334     LLVM_ON_UNIX=1
2335
2336     LLVM_ON_WIN32=0
2337
2338     ;;
2339   Win32)
2340
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2343 _ACEOF
2344
2345     LLVM_ON_UNIX=0
2346
2347     LLVM_ON_WIN32=1
2348
2349     ;;
2350 esac
2351
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   case $target in
2358   i?86-*)                 llvm_cv_target_arch="x86" ;;
2359   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2360   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2361   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2362   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2363   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2364   arm-*)                  llvm_cv_target_arch="ARM" ;;
2365   mips-*)                 llvm_cv_target_arch="Mips" ;;
2366   *)                      llvm_cv_target_arch="Unknown" ;;
2367 esac
2368 fi
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 fi
2376
2377 ARCH=$llvm_cv_target_arch
2378
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$CC"; then
2394   ac_cv_prog_CC="$CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409 IFS=$as_save_IFS
2410
2411 fi
2412 fi
2413 CC=$ac_cv_prog_CC
2414 if test -n "$CC"; then
2415   { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2417 else
2418   { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2420 fi
2421
2422
2423 fi
2424 if test -z "$ac_cv_prog_CC"; then
2425   ac_ct_CC=$CC
2426   # Extract the first word of "gcc", so it can be a program name with args.
2427 set dummy gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$ac_ct_CC"; then
2434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_ac_ct_CC="gcc"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6; }
2457 else
2458   { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461
2462   if test "x$ac_ct_CC" = x; then
2463     CC=""
2464   else
2465     case $cross_compiling:$ac_tool_warned in
2466 yes:)
2467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet.  If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&5
2470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet.  If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473 ac_tool_warned=yes ;;
2474 esac
2475     CC=$ac_ct_CC
2476   fi
2477 else
2478   CC="$ac_cv_prog_CC"
2479 fi
2480
2481 if test -z "$CC"; then
2482           if test -n "$ac_tool_prefix"; then
2483     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$CC"; then
2491   ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_CC="${ac_tool_prefix}cc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512   { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519
2520   fi
2521 fi
2522 if test -z "$CC"; then
2523   # Extract the first word of "cc", so it can be a program name with args.
2524 set dummy cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$CC"; then
2531   ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533   ac_prog_rejected=no
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542        ac_prog_rejected=yes
2543        continue
2544      fi
2545     ac_cv_prog_CC="cc"
2546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547     break 2
2548   fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 if test $ac_prog_rejected = yes; then
2554   # We found a bogon in the path, so make sure we never use it.
2555   set dummy $ac_cv_prog_CC
2556   shift
2557   if test $# != 0; then
2558     # We chose a different compiler from the bogus one.
2559     # However, it has the same basename, so the bogon will be chosen
2560     # first if we set CC to just the basename; use the full file name.
2561     shift
2562     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563   fi
2564 fi
2565 fi
2566 fi
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569   { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2571 else
2572   { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2574 fi
2575
2576
2577 fi
2578 if test -z "$CC"; then
2579   if test -n "$ac_tool_prefix"; then
2580   for ac_prog in cl.exe
2581   do
2582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   if test -n "$CC"; then
2590   ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611   { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619     test -n "$CC" && break
2620   done
2621 fi
2622 if test -z "$CC"; then
2623   ac_ct_CC=$CC
2624   for ac_prog in cl.exe
2625 do
2626   # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   if test -n "$ac_ct_CC"; then
2634   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641   for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_ac_ct_CC="$ac_prog"
2644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6; }
2657 else
2658   { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2660 fi
2661
2662
2663   test -n "$ac_ct_CC" && break
2664 done
2665
2666   if test "x$ac_ct_CC" = x; then
2667     CC=""
2668   else
2669     case $cross_compiling:$ac_tool_warned in
2670 yes:)
2671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet.  If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&5
2674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet.  If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679     CC=$ac_ct_CC
2680   fi
2681 fi
2682
2683 fi
2684
2685
2686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&2;}
2690    { (exit 1); exit 1; }; }
2691
2692 # Provide some information about the compiler.
2693 echo "$as_me:$LINENO: checking for C compiler version" >&5
2694 ac_compiler=`set X $ac_compile; echo $2`
2695 { (ac_try="$ac_compiler --version >&5"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701   (eval "$ac_compiler --version >&5") 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }
2705 { (ac_try="$ac_compiler -v >&5"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compiler -v >&5") 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }
2715 { (ac_try="$ac_compiler -V >&5"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_compiler -V >&5") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }
2725
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732
2733 int
2734 main ()
2735 {
2736
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 ac_clean_files_save=$ac_clean_files
2742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743 # Try to create an executable without -o first, disregard a.out.
2744 # It will help us diagnose broken compilers, and finding out an intuition
2745 # of exeext.
2746 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749 #
2750 # List of possible output files, starting from the most likely.
2751 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752 # only as a last resort.  b.out is created by i960 compilers.
2753 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2754 #
2755 # The IRIX 6 linker writes into existing files which may not be
2756 # executable, retaining their permissions.  Remove them first so a
2757 # subsequent execution test works.
2758 ac_rmfiles=
2759 for ac_file in $ac_files
2760 do
2761   case $ac_file in
2762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764   esac
2765 done
2766 rm -f $ac_rmfiles
2767
2768 if { (ac_try="$ac_link_default"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774   (eval "$ac_link_default") 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; then
2778   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2782 # Autoconf.
2783 for ac_file in $ac_files
2784 do
2785   test -f "$ac_file" || continue
2786   case $ac_file in
2787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2788         ;;
2789     [ab].out )
2790         # We found the default executable, but exeext='' is most
2791         # certainly right.
2792         break;;
2793     *.* )
2794         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795         then :; else
2796            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797         fi
2798         # We set ac_cv_exeext here because the later test for it is not
2799         # safe: cross compilers may not add the suffix if given an `-o'
2800         # argument, so we may need to know it at that point already.
2801         # Even if this section looks crufty: it has the advantage of
2802         # actually working.
2803         break;;
2804     * )
2805         break;;
2806   esac
2807 done
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2809
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818    { (exit 77); exit 77; }; }
2819 fi
2820
2821 ac_exeext=$ac_cv_exeext
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2824
2825 # Check that the compiler produces executables we can run.  If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832   if { ac_try='./$ac_file'
2833   { (case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_try") 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842     cross_compiling=no
2843   else
2844     if test "$cross_compiling" = maybe; then
2845         cross_compiling=yes
2846     else
2847         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&2;}
2853    { (exit 1); exit 1; }; }
2854     fi
2855   fi
2856 fi
2857 { echo "$as_me:$LINENO: result: yes" >&5
2858 echo "${ECHO_T}yes" >&6; }
2859
2860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run.  If not, either
2863 # the compiler is broken, or we cross compile.
2864 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867 echo "${ECHO_T}$cross_compiling" >&6; }
2868
2869 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871 if { (ac_try="$ac_link"
2872 case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_link") 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; then
2881   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2884 # `rm'.
2885 for ac_file in conftest.exe conftest conftest.*; do
2886   test -f "$ac_file" || continue
2887   case $ac_file in
2888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890           break;;
2891     * ) break;;
2892   esac
2893 done
2894 else
2895   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." >&2;}
2899    { (exit 1); exit 1; }; }
2900 fi
2901
2902 rm -f conftest$ac_cv_exeext
2903 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2908 ac_exeext=$EXEEXT
2909 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911 if test "${ac_cv_objext+set}" = set; then
2912   echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920
2921 int
2922 main ()
2923 {
2924
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.o conftest.obj
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compile") 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; then
2940   for ac_file in conftest.o conftest.obj conftest.*; do
2941   test -f "$ac_file" || continue;
2942   case $ac_file in
2943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945        break;;
2946   esac
2947 done
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955 See \`config.log' for more details." >&2;}
2956    { (exit 1); exit 1; }; }
2957 fi
2958
2959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 fi
2961 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962 echo "${ECHO_T}$ac_cv_objext" >&6; }
2963 OBJEXT=$ac_cv_objext
2964 ac_objext=$OBJEXT
2965 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980 #ifndef __GNUC__
2981        choke me
2982 #endif
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_compile") 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } &&
3002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003   { (case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_try") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; } &&
3012          { ac_try='test -s conftest.$ac_objext'
3013   { (case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_try") 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   ac_compiler_gnu=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027         ac_compiler_gnu=no
3028 fi
3029
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3032
3033 fi
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS=${CFLAGS+set}
3038 ac_save_CFLAGS=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   ac_save_c_werror_flag=$ac_c_werror_flag
3045    ac_c_werror_flag=yes
3046    ac_cv_prog_cc_g=no
3047    CFLAGS="-g"
3048    cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_compile") 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } &&
3077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078   { (case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; } &&
3087          { ac_try='test -s conftest.$ac_objext'
3088   { (case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_try") 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097   ac_cv_prog_cc_g=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102         CFLAGS=""
3103       cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109
3110 int
3111 main ()
3112 {
3113
3114   ;
3115   return 0;
3116 }
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compile") 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133   { (case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_try") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; } &&
3142          { ac_try='test -s conftest.$ac_objext'
3143   { (case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_try") 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; }; then
3152   :
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157         ac_c_werror_flag=$ac_save_c_werror_flag
3158          CFLAGS="-g"
3159          cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; } &&
3198          { ac_try='test -s conftest.$ac_objext'
3199   { (case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_try") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_prog_cc_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223    ac_c_werror_flag=$ac_save_c_werror_flag
3224 fi
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227 if test "$ac_test_CFLAGS" = set; then
3228   CFLAGS=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230   if test "$GCC" = yes; then
3231     CFLAGS="-g -O2"
3232   else
3233     CFLAGS="-g"
3234   fi
3235 else
3236   if test "$GCC" = yes; then
3237     CFLAGS="-O2"
3238   else
3239     CFLAGS=
3240   fi
3241 fi
3242 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244 if test "${ac_cv_prog_cc_c89+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   ac_cv_prog_cc_c89=no
3248 ac_save_CC=$CC
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <stdarg.h>
3256 #include <stdio.h>
3257 #include <sys/types.h>
3258 #include <sys/stat.h>
3259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3260 struct buf { int x; };
3261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262 static char *e (p, i)
3263      char **p;
3264      int i;
3265 {
3266   return p[i];
3267 }
3268 static char *f (char * (*g) (char **, int), char **p, ...)
3269 {
3270   char *s;
3271   va_list v;
3272   va_start (v,p);
3273   s = g (p, va_arg (v,int));
3274   va_end (v);
3275   return s;
3276 }
3277
3278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3279    function prototypes and stuff, but not '\xHH' hex character constants.
3280    These don't provoke an error unfortunately, instead are silently treated
3281    as 'x'.  The following induces an error, until -std is added to get
3282    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3283    array size at least.  It's necessary to write '\x00'==0 to get something
3284    that's true only with -std.  */
3285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286
3287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288    inside strings and character constants.  */
3289 #define FOO(x) 'x'
3290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291
3292 int test (int i, double x);
3293 struct s1 {int (*f) (int a);};
3294 struct s2 {int (*f) (double a);};
3295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296 int argc;
3297 char **argv;
3298 int
3299 main ()
3300 {
3301 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308 do
3309   CC="$ac_save_CC $ac_arg"
3310   rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_compile") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } &&
3324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325   { (case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_try") 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; } &&
3334          { ac_try='test -s conftest.$ac_objext'
3335   { (case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_try") 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }; }; then
3344   ac_cv_prog_cc_c89=$ac_arg
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349
3350 fi
3351
3352 rm -f core conftest.err conftest.$ac_objext
3353   test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 done
3355 rm -f conftest.$ac_ext
3356 CC=$ac_save_CC
3357
3358 fi
3359 # AC_CACHE_VAL
3360 case "x$ac_cv_prog_cc_c89" in
3361   x)
3362     { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3364   xno)
3365     { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3367   *)
3368     CC="$CC $ac_cv_prog_cc_c89"
3369     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371 esac
3372
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3390   CPP=
3391 fi
3392 if test -z "$CPP"; then
3393   if test "${ac_cv_prog_CPP+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396       # Double quotes because CPP needs to be expanded
3397     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398     do
3399       ac_preproc_ok=false
3400 for ac_c_preproc_warn_flag in '' yes
3401 do
3402   # Use a header file that comes with gcc, so configuring glibc
3403   # with a fresh cross-compiler works.
3404   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405   # <limits.h> exists even on freestanding compilers.
3406   # On the NeXT, cc -E runs the code through the compiler's parser,
3407   # not just through cpp. "Syntax error" is here to catch this case.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #ifdef __STDC__
3415 # include <limits.h>
3416 #else
3417 # include <assert.h>
3418 #endif
3419                      Syntax error
3420 _ACEOF
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } >/dev/null; then
3434   if test -s conftest.err; then
3435     ac_cpp_err=$ac_c_preproc_warn_flag
3436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437   else
3438     ac_cpp_err=
3439   fi
3440 else
3441   ac_cpp_err=yes
3442 fi
3443 if test -z "$ac_cpp_err"; then
3444   :
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449   # Broken: fails on valid input.
3450 continue
3451 fi
3452
3453 rm -f conftest.err conftest.$ac_ext
3454
3455   # OK, works on sane cases.  Now check whether nonexistent headers
3456   # can be detected and how.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if { (ac_try="$ac_cpp conftest.$ac_ext"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472   ac_status=$?
3473   grep -v '^ *+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } >/dev/null; then
3478   if test -s conftest.err; then
3479     ac_cpp_err=$ac_c_preproc_warn_flag
3480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3481   else
3482     ac_cpp_err=
3483   fi
3484 else
3485   ac_cpp_err=yes
3486 fi
3487 if test -z "$ac_cpp_err"; then
3488   # Broken: success on invalid input.
3489 continue
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494   # Passes both tests.
3495 ac_preproc_ok=:
3496 break
3497 fi
3498
3499 rm -f conftest.err conftest.$ac_ext
3500
3501 done
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3505   break
3506 fi
3507
3508     done
3509     ac_cv_prog_CPP=$CPP
3510
3511 fi
3512   CPP=$ac_cv_prog_CPP
3513 else
3514   ac_cv_prog_CPP=$CPP
3515 fi
3516 { echo "$as_me:$LINENO: result: $CPP" >&5
3517 echo "${ECHO_T}$CPP" >&6; }
3518 ac_preproc_ok=false
3519 for ac_c_preproc_warn_flag in '' yes
3520 do
3521   # Use a header file that comes with gcc, so configuring glibc
3522   # with a fresh cross-compiler works.
3523   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524   # <limits.h> exists even on freestanding compilers.
3525   # On the NeXT, cc -E runs the code through the compiler's parser,
3526   # not just through cpp. "Syntax error" is here to catch this case.
3527   cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533 #ifdef __STDC__
3534 # include <limits.h>
3535 #else
3536 # include <assert.h>
3537 #endif
3538                      Syntax error
3539 _ACEOF
3540 if { (ac_try="$ac_cpp conftest.$ac_ext"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } >/dev/null; then
3553   if test -s conftest.err; then
3554     ac_cpp_err=$ac_c_preproc_warn_flag
3555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556   else
3557     ac_cpp_err=
3558   fi
3559 else
3560   ac_cpp_err=yes
3561 fi
3562 if test -z "$ac_cpp_err"; then
3563   :
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568   # Broken: fails on valid input.
3569 continue
3570 fi
3571
3572 rm -f conftest.err conftest.$ac_ext
3573
3574   # OK, works on sane cases.  Now check whether nonexistent headers
3575   # can be detected and how.
3576   cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582 #include <ac_nonexistent.h>
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } >/dev/null; then
3597   if test -s conftest.err; then
3598     ac_cpp_err=$ac_c_preproc_warn_flag
3599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600   else
3601     ac_cpp_err=
3602   fi
3603 else
3604   ac_cpp_err=yes
3605 fi
3606 if test -z "$ac_cpp_err"; then
3607   # Broken: success on invalid input.
3608 continue
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613   # Passes both tests.
3614 ac_preproc_ok=:
3615 break
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620 done
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3624   :
3625 else
3626   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&5
3628 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3629 See \`config.log' for more details." >&2;}
3630    { (exit 1); exit 1; }; }
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3641 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   # Extract the first word of "grep ggrep" to use in msg output
3646 if test -z "$GREP"; then
3647 set dummy grep ggrep; ac_prog_name=$2
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   ac_path_GREP_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658   for ac_prog in grep ggrep; do
3659   for ac_exec_ext in '' $ac_executable_extensions; do
3660     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3662     # Check for GNU ac_path_GREP and select it if it is found.
3663   # Check for GNU $ac_path_GREP
3664 case `"$ac_path_GREP" --version 2>&1` in
3665 *GNU*)
3666   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667 *)
3668   ac_count=0
3669   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3670   while :
3671   do
3672     cat "conftest.in" "conftest.in" >"conftest.tmp"
3673     mv "conftest.tmp" "conftest.in"
3674     cp "conftest.in" "conftest.nl"
3675     echo 'GREP' >> "conftest.nl"
3676     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678     ac_count=`expr $ac_count + 1`
3679     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680       # Best one so far, save it but keep looking for a better one
3681       ac_cv_path_GREP="$ac_path_GREP"
3682       ac_path_GREP_max=$ac_count
3683     fi
3684     # 10*(2^10) chars as input seems more than enough
3685     test $ac_count -gt 10 && break
3686   done
3687   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688 esac
3689
3690
3691     $ac_path_GREP_found && break 3
3692   done
3693 done
3694
3695 done
3696 IFS=$as_save_IFS
3697
3698
3699 fi
3700
3701 GREP="$ac_cv_path_GREP"
3702 if test -z "$GREP"; then
3703   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705    { (exit 1); exit 1; }; }
3706 fi
3707
3708 else
3709   ac_cv_path_GREP=$GREP
3710 fi
3711
3712
3713 fi
3714 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3715 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3716  GREP="$ac_cv_path_GREP"
3717
3718
3719 { echo "$as_me:$LINENO: checking for egrep" >&5
3720 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3721 if test "${ac_cv_path_EGREP+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725    then ac_cv_path_EGREP="$GREP -E"
3726    else
3727      # Extract the first word of "egrep" to use in msg output
3728 if test -z "$EGREP"; then
3729 set dummy egrep; ac_prog_name=$2
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   ac_path_EGREP_found=false
3734 # Loop through the user's path and test for each of PROGNAME-LIST
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   for ac_prog in egrep; do
3741   for ac_exec_ext in '' $ac_executable_extensions; do
3742     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3743     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3744     # Check for GNU ac_path_EGREP and select it if it is found.
3745   # Check for GNU $ac_path_EGREP
3746 case `"$ac_path_EGREP" --version 2>&1` in
3747 *GNU*)
3748   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3749 *)
3750   ac_count=0
3751   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3752   while :
3753   do
3754     cat "conftest.in" "conftest.in" >"conftest.tmp"
3755     mv "conftest.tmp" "conftest.in"
3756     cp "conftest.in" "conftest.nl"
3757     echo 'EGREP' >> "conftest.nl"
3758     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760     ac_count=`expr $ac_count + 1`
3761     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762       # Best one so far, save it but keep looking for a better one
3763       ac_cv_path_EGREP="$ac_path_EGREP"
3764       ac_path_EGREP_max=$ac_count
3765     fi
3766     # 10*(2^10) chars as input seems more than enough
3767     test $ac_count -gt 10 && break
3768   done
3769   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3770 esac
3771
3772
3773     $ac_path_EGREP_found && break 3
3774   done
3775 done
3776
3777 done
3778 IFS=$as_save_IFS
3779
3780
3781 fi
3782
3783 EGREP="$ac_cv_path_EGREP"
3784 if test -z "$EGREP"; then
3785   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787    { (exit 1); exit 1; }; }
3788 fi
3789
3790 else
3791   ac_cv_path_EGREP=$EGREP
3792 fi
3793
3794
3795    fi
3796 fi
3797 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3798 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3799  EGREP="$ac_cv_path_EGREP"
3800
3801
3802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813 #include <stdlib.h>
3814 #include <stdarg.h>
3815 #include <string.h>
3816 #include <float.h>
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833   (eval "$ac_compile") 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } &&
3840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841   { (case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_try") 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; } &&
3850          { ac_try='test -s conftest.$ac_objext'
3851   { (case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856   (eval "$ac_try") 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; }; then
3860   ac_cv_header_stdc=yes
3861 else
3862   echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865         ac_cv_header_stdc=no
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
3870 if test $ac_cv_header_stdc = yes; then
3871   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 #include <string.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882   $EGREP "memchr" >/dev/null 2>&1; then
3883   :
3884 else
3885   ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893   cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h.  */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h.  */
3899 #include <stdlib.h>
3900
3901 _ACEOF
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903   $EGREP "free" >/dev/null 2>&1; then
3904   :
3905 else
3906   ac_cv_header_stdc=no
3907 fi
3908 rm -f conftest*
3909
3910 fi
3911
3912 if test $ac_cv_header_stdc = yes; then
3913   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914   if test "$cross_compiling" = yes; then
3915   :
3916 else
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 #include <ctype.h>
3924 #include <stdlib.h>
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928 #else
3929 # define ISLOWER(c) \
3930                    (('a' <= (c) && (c) <= 'i') \
3931                      || ('j' <= (c) && (c) <= 'r') \
3932                      || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #endif
3935
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937 int
3938 main ()
3939 {
3940   int i;
3941   for (i = 0; i < 256; i++)
3942     if (XOR (islower (i), ISLOWER (i))
3943         || toupper (i) != TOUPPER (i))
3944       return 2;
3945   return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest$ac_exeext
3949 if { (ac_try="$ac_link"
3950 case "(($ac_try" in
3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952   *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955   (eval "$ac_link") 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959   { (case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_try") 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; }; then
3968   :
3969 else
3970   echo "$as_me: program exited with status $ac_status" >&5
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 ( exit $ac_status )
3975 ac_cv_header_stdc=no
3976 fi
3977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3978 fi
3979
3980
3981 fi
3982 fi
3983 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3984 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3985 if test $ac_cv_header_stdc = yes; then
3986
3987 cat >>confdefs.h <<\_ACEOF
3988 #define STDC_HEADERS 1
3989 _ACEOF
3990
3991 fi
3992
3993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4004                   inttypes.h stdint.h unistd.h
4005 do
4006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h.  */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h.  */
4018 $ac_includes_default
4019
4020 #include <$ac_header>
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4024 case "(($ac_try" in
4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026   *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029   (eval "$ac_compile") 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037   { (case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042   (eval "$ac_try") 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; } &&
4046          { ac_try='test -s conftest.$ac_objext'
4047   { (case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052   (eval "$ac_try") 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); }; }; then
4056   eval "$as_ac_Header=yes"
4057 else
4058   echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061         eval "$as_ac_Header=no"
4062 fi
4063
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 fi
4066 ac_res=`eval echo '${'$as_ac_Header'}'`
4067                { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070   cat >>confdefs.h <<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072 _ACEOF
4073
4074 fi
4075
4076 done
4077
4078
4079 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4081 if test "${ac_cv_c_bigendian+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   # See if sys/param.h defines the BYTE_ORDER macro.
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #include <sys/types.h>
4092 #include <sys/param.h>
4093
4094 int
4095 main ()
4096 {
4097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4098  bogus endian macros
4099 #endif
4100
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4107 case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112   (eval "$ac_compile") 2>conftest.er1
4113   ac_status=$?
4114   grep -v '^ *+' conftest.er1 >conftest.err
4115   rm -f conftest.er1
4116   cat conftest.err >&5
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } &&
4119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4120   { (case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125   (eval "$ac_try") 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; } &&
4129          { ac_try='test -s conftest.$ac_objext'
4130   { (case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_try") 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; }; then
4139   # It does; now see whether it defined to BIG_ENDIAN or not.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <sys/types.h>
4147 #include <sys/param.h>
4148
4149 int
4150 main ()
4151 {
4152 #if BYTE_ORDER != BIG_ENDIAN
4153  not big endian
4154 #endif
4155
4156   ;
4157   return 0;
4158 }
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4162 case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167   (eval "$ac_compile") 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175   { (case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180   (eval "$ac_try") 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; } &&
4184          { ac_try='test -s conftest.$ac_objext'
4185   { (case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190   (eval "$ac_try") 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; }; then
4194   ac_cv_c_bigendian=yes
4195 else
4196   echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199         ac_cv_c_bigendian=no
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207         # It does not; compile a test program.
4208 if test "$cross_compiling" = yes; then
4209   # try to guess the endianness by grepping values into an object file
4210   ac_cv_c_bigendian=unknown
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4218 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4220 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4221 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4222 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4223 int
4224 main ()
4225 {
4226  _ascii (); _ebcdic ();
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest.$ac_objext
4232 if { (ac_try="$ac_compile"
4233 case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_compile") 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } &&
4245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246   { (case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; } &&
4255          { ac_try='test -s conftest.$ac_objext'
4256   { (case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; }; then
4265   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4266   ac_cv_c_bigendian=yes
4267 fi
4268 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4269   if test "$ac_cv_c_bigendian" = unknown; then
4270     ac_cv_c_bigendian=no
4271   else
4272     # finding both strings is unlikely to happen, but who knows?
4273     ac_cv_c_bigendian=unknown
4274   fi
4275 fi
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280
4281 fi
4282
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 else
4285   cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291 $ac_includes_default
4292 int
4293 main ()
4294 {
4295
4296   /* Are we little or big endian?  From Harbison&Steele.  */
4297   union
4298   {
4299     long int l;
4300     char c[sizeof (long int)];
4301   } u;
4302   u.l = 1;
4303   return u.c[sizeof (long int) - 1] == 1;
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 rm -f conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4311 case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_link") 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320   { (case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   ac_cv_c_bigendian=no
4330 else
4331   echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335 ( exit $ac_status )
4336 ac_cv_c_bigendian=yes
4337 fi
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 fi
4340
4341
4342 fi
4343
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4347 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4348 case $ac_cv_c_bigendian in
4349   yes)
4350     ENDIAN=big
4351  ;;
4352   no)
4353     ENDIAN=little
4354  ;;
4355   *)
4356     { { echo "$as_me:$LINENO: error: unknown endianness
4357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4358 echo "$as_me: error: unknown endianness
4359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4360    { (exit 1); exit 1; }; } ;;
4361 esac
4362
4363
4364 if test "$cross_compiling" = yes; then
4365   LLVM_CROSS_COMPILING=1
4366
4367
4368 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4369 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4370 if test "${ac_cv_build_exeext+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4374   ac_cv_build_exeext=.exe
4375 else
4376   ac_build_prefix=${build_alias}-
4377
4378   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4379 set dummy ${ac_build_prefix}gcc; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   if test -n "$BUILD_CC"; then
4386   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393   for ac_exec_ext in '' $ac_executable_extensions; do
4394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397     break 2
4398   fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 fi
4404 fi
4405 BUILD_CC=$ac_cv_prog_BUILD_CC
4406 if test -n "$BUILD_CC"; then
4407   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408 echo "${ECHO_T}$BUILD_CC" >&6; }
4409 else
4410   { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4412 fi
4413
4414
4415   if test -z "$BUILD_CC"; then
4416      # Extract the first word of "gcc", so it can be a program name with args.
4417 set dummy gcc; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$BUILD_CC"; then
4424   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433     ac_cv_prog_BUILD_CC="gcc"
4434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 BUILD_CC=$ac_cv_prog_BUILD_CC
4444 if test -n "$BUILD_CC"; then
4445   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4446 echo "${ECHO_T}$BUILD_CC" >&6; }
4447 else
4448   { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4450 fi
4451
4452
4453      if test -z "$BUILD_CC"; then
4454        # Extract the first word of "cc", so it can be a program name with args.
4455 set dummy cc; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$BUILD_CC"; then
4462   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4463 else
4464   ac_prog_rejected=no
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4472     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473        ac_prog_rejected=yes
4474        continue
4475      fi
4476     ac_cv_prog_BUILD_CC="cc"
4477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484 if test $ac_prog_rejected = yes; then
4485   # We found a bogon in the path, so make sure we never use it.
4486   set dummy $ac_cv_prog_BUILD_CC
4487   shift
4488   if test $# != 0; then
4489     # We chose a different compiler from the bogus one.
4490     # However, it has the same basename, so the bogon will be chosen
4491     # first if we set BUILD_CC to just the basename; use the full file name.
4492     shift
4493     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4494   fi
4495 fi
4496 fi
4497 fi
4498 BUILD_CC=$ac_cv_prog_BUILD_CC
4499 if test -n "$BUILD_CC"; then
4500   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4501 echo "${ECHO_T}$BUILD_CC" >&6; }
4502 else
4503   { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4505 fi
4506
4507
4508      fi
4509   fi
4510   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4511 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4512    { (exit 1); exit 1; }; }
4513   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4514   rm -f conftest*
4515   echo 'int main () { return 0; }' > conftest.$ac_ext
4516   ac_cv_build_exeext=
4517   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4518   (eval $ac_build_link) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; then
4522     for file in conftest.*; do
4523       case $file in
4524       *.c | *.o | *.obj) ;;
4525       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4526       esac
4527     done
4528   else
4529     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4530 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4531    { (exit 1); exit 1; }; }
4532   fi
4533   rm -f conftest*
4534   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4535 fi
4536 fi
4537
4538 BUILD_EXEEXT=""
4539 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4540 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4541 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4542 ac_build_exeext=$BUILD_EXEEXT
4543
4544 else
4545   LLVM_CROSS_COMPILING=0
4546
4547 fi
4548
4549 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4550   cvsbuild="yes"
4551   optimize="no"
4552   CVSBUILD=CVSBUILD=1
4553
4554 else
4555   cvsbuild="no"
4556   optimize="yes"
4557 fi
4558
4559
4560 # Check whether --enable-optimized was given.
4561 if test "${enable_optimized+set}" = set; then
4562   enableval=$enable_optimized;
4563 else
4564   enableval=$optimize
4565 fi
4566
4567 if test ${enableval} = "no" ; then
4568   ENABLE_OPTIMIZED=
4569
4570 else
4571   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4572
4573 fi
4574
4575 # Check whether --enable-assertions was given.
4576 if test "${enable_assertions+set}" = set; then
4577   enableval=$enable_assertions;
4578 else
4579   enableval="yes"
4580 fi
4581
4582 if test ${enableval} = "yes" ; then
4583   DISABLE_ASSERTIONS=
4584
4585 else
4586   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4587
4588 fi
4589
4590 # Check whether --enable-expensive-checks was given.
4591 if test "${enable_expensive_checks+set}" = set; then
4592   enableval=$enable_expensive_checks;
4593 else
4594   enableval="no"
4595 fi
4596
4597 if test ${enableval} = "yes" ; then
4598   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4599
4600   EXPENSIVE_CHECKS=yes
4601
4602 else
4603   ENABLE_EXPENSIVE_CHECKS=
4604
4605   EXPENSIVE_CHECKS=no
4606
4607 fi
4608
4609 # Check whether --enable-debug-runtime was given.
4610 if test "${enable_debug_runtime+set}" = set; then
4611   enableval=$enable_debug_runtime;
4612 else
4613   enableval=no
4614 fi
4615
4616 if test ${enableval} = "no" ; then
4617   DEBUG_RUNTIME=
4618
4619 else
4620   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4621
4622 fi
4623
4624 # Check whether --enable-jit was given.
4625 if test "${enable_jit+set}" = set; then
4626   enableval=$enable_jit;
4627 else
4628   enableval=default
4629 fi
4630
4631 if test ${enableval} = "no"
4632 then
4633   JIT=
4634
4635 else
4636   case "$llvm_cv_target_arch" in
4637     x86)     TARGET_HAS_JIT=1
4638  ;;
4639     Sparc)   TARGET_HAS_JIT=0
4640  ;;
4641     PowerPC) TARGET_HAS_JIT=1
4642  ;;
4643     x86_64)  TARGET_HAS_JIT=1
4644  ;;
4645     Alpha)   TARGET_HAS_JIT=1
4646  ;;
4647     IA64)    TARGET_HAS_JIT=0
4648  ;;
4649     ARM)     TARGET_HAS_JIT=0
4650  ;;
4651     Mips)    TARGET_HAS_JIT=0
4652  ;;
4653     *)       TARGET_HAS_JIT=0
4654  ;;
4655   esac
4656 fi
4657
4658 # Check whether --enable-doxygen was given.
4659 if test "${enable_doxygen+set}" = set; then
4660   enableval=$enable_doxygen;
4661 else
4662   enableval=default
4663 fi
4664
4665 case "$enableval" in
4666   yes) ENABLE_DOXYGEN=1
4667  ;;
4668   no)  ENABLE_DOXYGEN=0
4669  ;;
4670   default) ENABLE_DOXYGEN=0
4671  ;;
4672   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4673 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4674    { (exit 1); exit 1; }; } ;;
4675 esac
4676
4677 # Check whether --enable-threads was given.
4678 if test "${enable_threads+set}" = set; then
4679   enableval=$enable_threads;
4680 else
4681   enableval=default
4682 fi
4683
4684 case "$enableval" in
4685   yes) ENABLE_THREADS=1
4686  ;;
4687   no)  ENABLE_THREADS=0
4688  ;;
4689   default) ENABLE_THREADS=1
4690  ;;
4691   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4692 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4693    { (exit 1); exit 1; }; } ;;
4694 esac
4695
4696 cat >>confdefs.h <<_ACEOF
4697 #define ENABLE_THREADS $ENABLE_THREADS
4698 _ACEOF
4699
4700
4701 # Check whether --enable-pic was given.
4702 if test "${enable_pic+set}" = set; then
4703   enableval=$enable_pic;
4704 else
4705   enableval=default
4706 fi
4707
4708 case "$enableval" in
4709   yes) ENABLE_PIC=1
4710  ;;
4711   no)  ENABLE_PIC=0
4712  ;;
4713   default) ENABLE_PIC=0
4714  ;;
4715   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4716 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4717    { (exit 1); exit 1; }; } ;;
4718 esac
4719
4720 cat >>confdefs.h <<_ACEOF
4721 #define ENABLE_PIC $ENABLE_PIC
4722 _ACEOF
4723
4724
4725 TARGETS_TO_BUILD=""
4726 # Check whether --enable-targets was given.
4727 if test "${enable_targets+set}" = set; then
4728   enableval=$enable_targets;
4729 else
4730   enableval=all
4731 fi
4732
4733 case "$enableval" in
4734   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4735   host-only)
4736     case "$llvm_cv_target_arch" in
4737       x86)     TARGETS_TO_BUILD="X86" ;;
4738       x86_64)  TARGETS_TO_BUILD="X86" ;;
4739       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4740       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4741       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4742       IA64)    TARGETS_TO_BUILD="IA64" ;;
4743       ARM)     TARGETS_TO_BUILD="ARM" ;;
4744       Mips)    TARGETS_TO_BUILD="Mips" ;;
4745       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4746 echo "$as_me: error: Can not set target to build" >&2;}
4747    { (exit 1); exit 1; }; } ;;
4748     esac
4749     ;;
4750   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4751       case "$a_target" in
4752         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4755         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4756         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4757         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4758         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4759         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4760         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4761 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4762    { (exit 1); exit 1; }; } ;;
4763       esac
4764   done
4765   ;;
4766 esac
4767 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4768 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4769
4770
4771 # Check whether --enable-cbe-printf-a was given.
4772 if test "${enable_cbe_printf_a+set}" = set; then
4773   enableval=$enable_cbe_printf_a;
4774 else
4775   enableval=default
4776 fi
4777
4778 case "$enableval" in
4779   yes) ENABLE_CBE_PRINTF_A=1
4780  ;;
4781   no)  ENABLE_CBE_PRINTF_A=0
4782  ;;
4783   default)  ENABLE_CBE_PRINTF_A=1
4784  ;;
4785   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4786 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4787    { (exit 1); exit 1; }; } ;;
4788 esac
4789
4790 cat >>confdefs.h <<_ACEOF
4791 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4792 _ACEOF
4793
4794
4795
4796 # Check whether --with-llvmgccdir was given.
4797 if test "${with_llvmgccdir+set}" = set; then
4798   withval=$with_llvmgccdir;
4799 else
4800   withval=default
4801 fi
4802
4803 case "$withval" in
4804   default) WITH_LLVMGCCDIR=default ;;
4805   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4806   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4807 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4808    { (exit 1); exit 1; }; } ;;
4809 esac
4810
4811
4812 # Check whether --with-extra-options was given.
4813 if test "${with_extra_options+set}" = set; then
4814   withval=$with_extra_options;
4815 else
4816   withval=default
4817 fi
4818
4819 case "$withval" in
4820   default) EXTRA_OPTIONS= ;;
4821   *) EXTRA_OPTIONS=$withval ;;
4822 esac
4823 EXTRA_OPTIONS=$EXTRA_OPTIONS
4824
4825
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4836   CPP=
4837 fi
4838 if test -z "$CPP"; then
4839   if test "${ac_cv_prog_CPP+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842       # Double quotes because CPP needs to be expanded
4843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844     do
4845       ac_preproc_ok=false
4846 for ac_c_preproc_warn_flag in '' yes
4847 do
4848   # Use a header file that comes with gcc, so configuring glibc
4849   # with a fresh cross-compiler works.
4850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851   # <limits.h> exists even on freestanding compilers.
4852   # On the NeXT, cc -E runs the code through the compiler's parser,
4853   # not just through cpp. "Syntax error" is here to catch this case.
4854   cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 #ifdef __STDC__
4861 # include <limits.h>
4862 #else
4863 # include <assert.h>
4864 #endif
4865                      Syntax error
4866 _ACEOF
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4868 case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874   ac_status=$?
4875   grep -v '^ *+' conftest.er1 >conftest.err
4876   rm -f conftest.er1
4877   cat conftest.err >&5
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } >/dev/null; then
4880   if test -s conftest.err; then
4881     ac_cpp_err=$ac_c_preproc_warn_flag
4882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4883   else
4884     ac_cpp_err=
4885   fi
4886 else
4887   ac_cpp_err=yes
4888 fi
4889 if test -z "$ac_cpp_err"; then
4890   :
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895   # Broken: fails on valid input.
4896 continue
4897 fi
4898
4899 rm -f conftest.err conftest.$ac_ext
4900
4901   # OK, works on sane cases.  Now check whether nonexistent headers
4902   # can be detected and how.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #include <ac_nonexistent.h>
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_c_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944
4945 rm -f conftest.err conftest.$ac_ext
4946
4947 done
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4951   break
4952 fi
4953
4954     done
4955     ac_cv_prog_CPP=$CPP
4956
4957 fi
4958   CPP=$ac_cv_prog_CPP
4959 else
4960   ac_cv_prog_CPP=$CPP
4961 fi
4962 { echo "$as_me:$LINENO: result: $CPP" >&5
4963 echo "${ECHO_T}$CPP" >&6; }
4964 ac_preproc_ok=false
4965 for ac_c_preproc_warn_flag in '' yes
4966 do
4967   # Use a header file that comes with gcc, so configuring glibc
4968   # with a fresh cross-compiler works.
4969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970   # <limits.h> exists even on freestanding compilers.
4971   # On the NeXT, cc -E runs the code through the compiler's parser,
4972   # not just through cpp. "Syntax error" is here to catch this case.
4973   cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #ifdef __STDC__
4980 # include <limits.h>
4981 #else
4982 # include <assert.h>
4983 #endif
4984                      Syntax error
4985 _ACEOF
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4987 case "(($ac_try" in
4988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989   *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993   ac_status=$?
4994   grep -v '^ *+' conftest.er1 >conftest.err
4995   rm -f conftest.er1
4996   cat conftest.err >&5
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } >/dev/null; then
4999   if test -s conftest.err; then
5000     ac_cpp_err=$ac_c_preproc_warn_flag
5001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002   else
5003     ac_cpp_err=
5004   fi
5005 else
5006   ac_cpp_err=yes
5007 fi
5008 if test -z "$ac_cpp_err"; then
5009   :
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014   # Broken: fails on valid input.
5015 continue
5016 fi
5017
5018 rm -f conftest.err conftest.$ac_ext
5019
5020   # OK, works on sane cases.  Now check whether nonexistent headers
5021   # can be detected and how.
5022   cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028 #include <ac_nonexistent.h>
5029 _ACEOF
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5031 case "(($ac_try" in
5032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033   *) ac_try_echo=$ac_try;;
5034 esac
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037   ac_status=$?
5038   grep -v '^ *+' conftest.er1 >conftest.err
5039   rm -f conftest.er1
5040   cat conftest.err >&5
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } >/dev/null; then
5043   if test -s conftest.err; then
5044     ac_cpp_err=$ac_c_preproc_warn_flag
5045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5046   else
5047     ac_cpp_err=
5048   fi
5049 else
5050   ac_cpp_err=yes
5051 fi
5052 if test -z "$ac_cpp_err"; then
5053   # Broken: success on invalid input.
5054 continue
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059   # Passes both tests.
5060 ac_preproc_ok=:
5061 break
5062 fi
5063
5064 rm -f conftest.err conftest.$ac_ext
5065
5066 done
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5070   :
5071 else
5072   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5075 See \`config.log' for more details." >&2;}
5076    { (exit 1); exit 1; }; }
5077 fi
5078
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 if test -n "$ac_tool_prefix"; then
5091   for ac_prog in gcc
5092   do
5093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   if test -n "$CC"; then
5101   ac_cv_prog_CC="$CC" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 CC=$ac_cv_prog_CC
5121 if test -n "$CC"; then
5122   { echo "$as_me:$LINENO: result: $CC" >&5
5123 echo "${ECHO_T}$CC" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130     test -n "$CC" && break
5131   done
5132 fi
5133 if test -z "$CC"; then
5134   ac_ct_CC=$CC
5135   for ac_prog in gcc
5136 do
5137   # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy $ac_prog; ac_word=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   if test -n "$ac_ct_CC"; then
5145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5154     ac_cv_prog_ac_ct_CC="$ac_prog"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5167 echo "${ECHO_T}$ac_ct_CC" >&6; }
5168 else
5169   { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5171 fi
5172
5173
5174   test -n "$ac_ct_CC" && break
5175 done
5176
5177   if test "x$ac_ct_CC" = x; then
5178     CC=""
5179   else
5180     case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet.  If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&5
5185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet.  If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190     CC=$ac_ct_CC
5191   fi
5192 fi
5193
5194
5195 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: no acceptable C compiler found in \$PATH
5198 See \`config.log' for more details." >&2;}
5199    { (exit 1); exit 1; }; }
5200
5201 # Provide some information about the compiler.
5202 echo "$as_me:$LINENO: checking for C compiler version" >&5
5203 ac_compiler=`set X $ac_compile; echo $2`
5204 { (ac_try="$ac_compiler --version >&5"
5205 case "(($ac_try" in
5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207   *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210   (eval "$ac_compiler --version >&5") 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }
5214 { (ac_try="$ac_compiler -v >&5"
5215 case "(($ac_try" in
5216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217   *) ac_try_echo=$ac_try;;
5218 esac
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220   (eval "$ac_compiler -v >&5") 2>&5
5221   ac_status=$?
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); }
5224 { (ac_try="$ac_compiler -V >&5"
5225 case "(($ac_try" in
5226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227   *) ac_try_echo=$ac_try;;
5228 esac
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230   (eval "$ac_compiler -V >&5") 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }
5234
5235 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246
5247 int
5248 main ()
5249 {
5250 #ifndef __GNUC__
5251        choke me
5252 #endif
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265   (eval "$ac_compile") 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } &&
5272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273   { (case "(($ac_try" in
5274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275   *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278   (eval "$ac_try") 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_try") 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }; }; then
5292   ac_compiler_gnu=yes
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297         ac_compiler_gnu=no
5298 fi
5299
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5306 GCC=`test $ac_compiler_gnu = yes && echo yes`
5307 ac_test_CFLAGS=${CFLAGS+set}
5308 ac_save_CFLAGS=$CFLAGS
5309 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5310 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_cc_g+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   ac_save_c_werror_flag=$ac_c_werror_flag
5315    ac_c_werror_flag=yes
5316    ac_cv_prog_cc_g=no
5317    CFLAGS="-g"
5318    cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324
5325 int
5326 main ()
5327 {
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5335 case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340   (eval "$ac_compile") 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348   { (case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_try") 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; } &&
5357          { ac_try='test -s conftest.$ac_objext'
5358   { (case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363   (eval "$ac_try") 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; }; then
5367   ac_cv_prog_cc_g=yes
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372         CFLAGS=""
5373       cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379
5380 int
5381 main ()
5382 {
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compile") 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5403   { (case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_try") 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5422   :
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427         ac_c_werror_flag=$ac_save_c_werror_flag
5428          CFLAGS="-g"
5429          cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435
5436 int
5437 main ()
5438 {
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448   *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } &&
5458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5459   { (case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464   (eval "$ac_try") 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; } &&
5468          { ac_try='test -s conftest.$ac_objext'
5469   { (case "(($ac_try" in
5470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471   *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474   (eval "$ac_try") 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); }; }; then
5478   ac_cv_prog_cc_g=yes
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493    ac_c_werror_flag=$ac_save_c_werror_flag
5494 fi
5495 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5497 if test "$ac_test_CFLAGS" = set; then
5498   CFLAGS=$ac_save_CFLAGS
5499 elif test $ac_cv_prog_cc_g = yes; then
5500   if test "$GCC" = yes; then
5501     CFLAGS="-g -O2"
5502   else
5503     CFLAGS="-g"
5504   fi
5505 else
5506   if test "$GCC" = yes; then
5507     CFLAGS="-O2"
5508   else
5509     CFLAGS=
5510   fi
5511 fi
5512 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5513 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_cc_c89+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_cv_prog_cc_c89=no
5518 ac_save_CC=$CC
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #include <stdarg.h>
5526 #include <stdio.h>
5527 #include <sys/types.h>
5528 #include <sys/stat.h>
5529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5530 struct buf { int x; };
5531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5532 static char *e (p, i)
5533      char **p;
5534      int i;
5535 {
5536   return p[i];
5537 }
5538 static char *f (char * (*g) (char **, int), char **p, ...)
5539 {
5540   char *s;
5541   va_list v;
5542   va_start (v,p);
5543   s = g (p, va_arg (v,int));
5544   va_end (v);
5545   return s;
5546 }
5547
5548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5549    function prototypes and stuff, but not '\xHH' hex character constants.
5550    These don't provoke an error unfortunately, instead are silently treated
5551    as 'x'.  The following induces an error, until -std is added to get
5552    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5553    array size at least.  It's necessary to write '\x00'==0 to get something
5554    that's true only with -std.  */
5555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5556
5557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5558    inside strings and character constants.  */
5559 #define FOO(x) 'x'
5560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5561
5562 int test (int i, double x);
5563 struct s1 {int (*f) (int a);};
5564 struct s2 {int (*f) (double a);};
5565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5566 int argc;
5567 char **argv;
5568 int
5569 main ()
5570 {
5571 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5577         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5578 do
5579   CC="$ac_save_CC $ac_arg"
5580   rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_compile") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595   { (case "(($ac_try" in
5596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597   *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600   (eval "$ac_try") 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; } &&
5604          { ac_try='test -s conftest.$ac_objext'
5605   { (case "(($ac_try" in
5606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607   *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610   (eval "$ac_try") 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; }; then
5614   ac_cv_prog_cc_c89=$ac_arg
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext
5623   test "x$ac_cv_prog_cc_c89" != "xno" && break
5624 done
5625 rm -f conftest.$ac_ext
5626 CC=$ac_save_CC
5627
5628 fi
5629 # AC_CACHE_VAL
5630 case "x$ac_cv_prog_cc_c89" in
5631   x)
5632     { echo "$as_me:$LINENO: result: none needed" >&5
5633 echo "${ECHO_T}none needed" >&6; } ;;
5634   xno)
5635     { echo "$as_me:$LINENO: result: unsupported" >&5
5636 echo "${ECHO_T}unsupported" >&6; } ;;
5637   *)
5638     CC="$CC $ac_cv_prog_cc_c89"
5639     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5640 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5641 esac
5642
5643
5644 ac_ext=c
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650 ac_ext=cpp
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 if test -z "$CXX"; then
5656   if test -n "$CCC"; then
5657     CXX=$CCC
5658   else
5659     if test -n "$ac_tool_prefix"; then
5660   for ac_prog in g++
5661   do
5662     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_CXX+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   if test -n "$CXX"; then
5670   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677   for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 CXX=$ac_cv_prog_CXX
5690 if test -n "$CXX"; then
5691   { echo "$as_me:$LINENO: result: $CXX" >&5
5692 echo "${ECHO_T}$CXX" >&6; }
5693 else
5694   { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5696 fi
5697
5698
5699     test -n "$CXX" && break
5700   done
5701 fi
5702 if test -z "$CXX"; then
5703   ac_ct_CXX=$CXX
5704   for ac_prog in g++
5705 do
5706   # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$ac_ct_CXX"; then
5714   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_prog_ac_ct_CXX="$ac_prog"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5734 if test -n "$ac_ct_CXX"; then
5735   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5736 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741
5742
5743   test -n "$ac_ct_CXX" && break
5744 done
5745
5746   if test "x$ac_ct_CXX" = x; then
5747     CXX="g++"
5748   else
5749     case $cross_compiling:$ac_tool_warned in
5750 yes:)
5751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet.  If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&5
5754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755 whose name does not start with the host triplet.  If you think this
5756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759     CXX=$ac_ct_CXX
5760   fi
5761 fi
5762
5763   fi
5764 fi
5765 # Provide some information about the compiler.
5766 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5767 ac_compiler=`set X $ac_compile; echo $2`
5768 { (ac_try="$ac_compiler --version >&5"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774   (eval "$ac_compiler --version >&5") 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }
5778 { (ac_try="$ac_compiler -v >&5"
5779 case "(($ac_try" in
5780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781   *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784   (eval "$ac_compiler -v >&5") 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }
5788 { (ac_try="$ac_compiler -V >&5"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compiler -V >&5") 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }
5798
5799 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810
5811 int
5812 main ()
5813 {
5814 #ifndef __GNUC__
5815        choke me
5816 #endif
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_compile") 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837   { (case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_try") 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; } &&
5846          { ac_try='test -s conftest.$ac_objext'
5847   { (case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852   (eval "$ac_try") 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_compiler_gnu=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861         ac_compiler_gnu=no
5862 fi
5863
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5866
5867 fi
5868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5869 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5870 GXX=`test $ac_compiler_gnu = yes && echo yes`
5871 ac_test_CXXFLAGS=${CXXFLAGS+set}
5872 ac_save_CXXFLAGS=$CXXFLAGS
5873 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5874 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_cxx_g+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879    ac_cxx_werror_flag=yes
5880    ac_cv_prog_cxx_g=no
5881    CXXFLAGS="-g"
5882    cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888
5889 int
5890 main ()
5891 {
5892
5893   ;
5894   return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5899 case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904   (eval "$ac_compile") 2>conftest.er1
5905   ac_status=$?
5906   grep -v '^ *+' conftest.er1 >conftest.err
5907   rm -f conftest.er1
5908   cat conftest.err >&5
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } &&
5911          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5912   { (case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917   (eval "$ac_try") 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest.$ac_objext'
5922   { (case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_try") 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931   ac_cv_prog_cxx_g=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         CXXFLAGS=""
5937       cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943
5944 int
5945 main ()
5946 {
5947
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compile") 2>conftest.er1
5960   ac_status=$?
5961   grep -v '^ *+' conftest.er1 >conftest.err
5962   rm -f conftest.er1
5963   cat conftest.err >&5
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } &&
5966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5967   { (case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972   (eval "$ac_try") 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; } &&
5976          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5986   :
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5992          CXXFLAGS="-g"
5993          cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999
6000 int
6001 main ()
6002 {
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_compile") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6023   { (case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_try") 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest.$ac_objext'
6033   { (case "(($ac_try" in
6034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035   *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038   (eval "$ac_try") 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   ac_cv_prog_cxx_g=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 fi
6052
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6055
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6058 fi
6059 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6060 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6061 if test "$ac_test_CXXFLAGS" = set; then
6062   CXXFLAGS=$ac_save_CXXFLAGS
6063 elif test $ac_cv_prog_cxx_g = yes; then
6064   if test "$GXX" = yes; then
6065     CXXFLAGS="-g -O2"
6066   else
6067     CXXFLAGS="-g"
6068   fi
6069 else
6070   if test "$GXX" = yes; then
6071     CXXFLAGS="-O2"
6072   else
6073     CXXFLAGS=
6074   fi
6075 fi
6076 ac_ext=c
6077 ac_cpp='$CPP $CPPFLAGS'
6078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
6082 { echo "$as_me:$LINENO: checking " >&5
6083 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6084 if test "${ac_cv_has_flex+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   for ac_prog in flex lex
6088 do
6089   # Extract the first word of "$ac_prog", so it can be a program name with args.
6090 set dummy $ac_prog; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_LEX+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test -n "$LEX"; then
6097   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_LEX="$ac_prog"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 LEX=$ac_cv_prog_LEX
6117 if test -n "$LEX"; then
6118   { echo "$as_me:$LINENO: result: $LEX" >&5
6119 echo "${ECHO_T}$LEX" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125
6126   test -n "$LEX" && break
6127 done
6128 test -n "$LEX" || LEX=":"
6129
6130 if test -z "$LEXLIB"
6131 then
6132   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6133 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6134 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   ac_check_lib_save_LIBS=$LIBS
6138 LIBS="-lfl  $LIBS"
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145
6146 /* Override any GCC internal prototype to avoid an error.
6147    Use char because int might match the return type of a GCC
6148    builtin and then its argument prototype would still apply.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 #endif
6152 char yywrap ();
6153 int
6154 main ()
6155 {
6156 return yywrap ();
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (ac_try="$ac_link"
6163 case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168   (eval "$ac_link") 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176   { (case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_try") 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; } &&
6185          { ac_try='test -s conftest$ac_exeext'
6186   { (case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_try") 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; }; then
6195   ac_cv_lib_fl_yywrap=yes
6196 else
6197   echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200         ac_cv_lib_fl_yywrap=no
6201 fi
6202
6203 rm -f core conftest.err conftest.$ac_objext \
6204       conftest$ac_exeext conftest.$ac_ext
6205 LIBS=$ac_check_lib_save_LIBS
6206 fi
6207 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6208 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6209 if test $ac_cv_lib_fl_yywrap = yes; then
6210   LEXLIB="-lfl"
6211 else
6212   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6213 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6214 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   ac_check_lib_save_LIBS=$LIBS
6218 LIBS="-ll  $LIBS"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225
6226 /* Override any GCC internal prototype to avoid an error.
6227    Use char because int might match the return type of a GCC
6228    builtin and then its argument prototype would still apply.  */
6229 #ifdef __cplusplus
6230 extern "C"
6231 #endif
6232 char yywrap ();
6233 int
6234 main ()
6235 {
6236 return yywrap ();
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (ac_try="$ac_link"
6243 case "(($ac_try" in
6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245   *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248   (eval "$ac_link") 2>conftest.er1
6249   ac_status=$?
6250   grep -v '^ *+' conftest.er1 >conftest.err
6251   rm -f conftest.er1
6252   cat conftest.err >&5
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256   { (case "(($ac_try" in
6257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258   *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261   (eval "$ac_try") 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } &&
6265          { ac_try='test -s conftest$ac_exeext'
6266   { (case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271   (eval "$ac_try") 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_lib_l_yywrap=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         ac_cv_lib_l_yywrap=no
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext \
6284       conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6286 fi
6287 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6289 if test $ac_cv_lib_l_yywrap = yes; then
6290   LEXLIB="-ll"
6291 fi
6292
6293 fi
6294
6295 fi
6296
6297 if test "x$LEX" != "x:"; then
6298   { echo "$as_me:$LINENO: checking lex output file root" >&5
6299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_lex_root+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   # The minimal lex program is just a single line: %%.  But some broken lexes
6304 # (Solaris, I think it was) want two %% lines, so accommodate them.
6305 cat >conftest.l <<_ACEOF
6306 %%
6307 %%
6308 _ACEOF
6309 { (ac_try="$LEX conftest.l"
6310 case "(($ac_try" in
6311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312   *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315   (eval "$LEX conftest.l") 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }
6319 if test -f lex.yy.c; then
6320   ac_cv_prog_lex_root=lex.yy
6321 elif test -f lexyy.c; then
6322   ac_cv_prog_lex_root=lexyy
6323 else
6324   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6325 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6326    { (exit 1); exit 1; }; }
6327 fi
6328 fi
6329 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6330 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6331 rm -f conftest.l
6332 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6333
6334 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6335 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   # POSIX says lex can declare yytext either as a pointer or an array; the
6340 # default is implementation-dependent. Figure out which it is, since
6341 # not all implementations provide the %pointer and %array declarations.
6342 ac_cv_prog_lex_yytext_pointer=no
6343 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6344 ac_save_LIBS=$LIBS
6345 LIBS="$LIBS $LEXLIB"
6346 cat >conftest.$ac_ext <<_ACEOF
6347 `cat $LEX_OUTPUT_ROOT.c`
6348 _ACEOF
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_link") 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364   { (case "(($ac_try" in
6365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366   *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369   (eval "$ac_try") 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; } &&
6373          { ac_try='test -s conftest$ac_exeext'
6374   { (case "(($ac_try" in
6375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376   *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379   (eval "$ac_try") 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; }; then
6383   ac_cv_prog_lex_yytext_pointer=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389 fi
6390
6391 rm -f core conftest.err conftest.$ac_objext \
6392       conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_save_LIBS
6394 rm -f "${LEX_OUTPUT_ROOT}.c"
6395
6396 fi
6397 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6400
6401 cat >>confdefs.h <<\_ACEOF
6402 #define YYTEXT_POINTER 1
6403 _ACEOF
6404
6405 fi
6406
6407 fi
6408
6409 fi
6410 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6411 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6412 if test "$LEX" != "flex"; then
6413   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6414 echo "$as_me: error: flex not found but required" >&2;}
6415    { (exit 1); exit 1; }; }
6416 else
6417   FLEX=flex
6418
6419 fi
6420
6421 { echo "$as_me:$LINENO: checking " >&5
6422 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6423 if test "${llvm_cv_has_bison+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   for ac_prog in 'bison -y' byacc
6427 do
6428   # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_YACC+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   if test -n "$YACC"; then
6436   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443   for ac_exec_ext in '' $ac_executable_extensions; do
6444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445     ac_cv_prog_YACC="$ac_prog"
6446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 YACC=$ac_cv_prog_YACC
6456 if test -n "$YACC"; then
6457   { echo "$as_me:$LINENO: result: $YACC" >&5
6458 echo "${ECHO_T}$YACC" >&6; }
6459 else
6460   { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6462 fi
6463
6464
6465   test -n "$YACC" && break
6466 done
6467 test -n "$YACC" || YACC="yacc"
6468
6469 fi
6470 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6471 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6472 if test "$YACC" != "bison -y"; then
6473
6474   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6475 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6476 else
6477   BISON=bison
6478
6479 fi
6480
6481 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6482 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6483 if test "${lt_cv_path_NM+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   if test -n "$NM"; then
6487   # Let the user override the test.
6488   lt_cv_path_NM="$NM"
6489 else
6490   lt_nm_to_check="${ac_tool_prefix}nm"
6491   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6492     lt_nm_to_check="$lt_nm_to_check nm"
6493   fi
6494   for lt_tmp_nm in $lt_nm_to_check; do
6495     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497       IFS="$lt_save_ifs"
6498       test -z "$ac_dir" && ac_dir=.
6499       tmp_nm="$ac_dir/$lt_tmp_nm"
6500       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6501         # Check to see if the nm accepts a BSD-compat flag.
6502         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6503         #   nm: unknown option "B" ignored
6504         # Tru64's nm complains that /dev/null is an invalid object file
6505         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6506         */dev/null* | *'Invalid file or object type'*)
6507           lt_cv_path_NM="$tmp_nm -B"
6508           break
6509           ;;
6510         *)
6511           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512           */dev/null*)
6513             lt_cv_path_NM="$tmp_nm -p"
6514             break
6515             ;;
6516           *)
6517             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6518             continue # so that we can try to find one that supports BSD flags
6519             ;;
6520           esac
6521           ;;
6522         esac
6523       fi
6524     done
6525     IFS="$lt_save_ifs"
6526   done
6527   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6528 fi
6529 fi
6530 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6531 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6532 NM="$lt_cv_path_NM"
6533
6534
6535
6536 { echo "$as_me:$LINENO: checking for GNU make" >&5
6537 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6538 if test "${llvm_cv_gnu_make_command+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   llvm_cv_gnu_make_command=''
6542  for a in "$MAKE" make gmake gnumake ; do
6543   if test -z "$a" ; then continue ; fi ;
6544   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6545   then
6546    llvm_cv_gnu_make_command=$a ;
6547    break;
6548   fi
6549  done
6550 fi
6551 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6552 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6553  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6554    ifGNUmake='' ;
6555  else
6556    ifGNUmake='#' ;
6557    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6558 echo "${ECHO_T}\"Not found\"" >&6; };
6559  fi
6560
6561
6562 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6563 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6564 LN_S=$as_ln_s
6565 if test "$LN_S" = "ln -s"; then
6566   { echo "$as_me:$LINENO: result: yes" >&5
6567 echo "${ECHO_T}yes" >&6; }
6568 else
6569   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6570 echo "${ECHO_T}no, using $LN_S" >&6; }
6571 fi
6572
6573 # Extract the first word of "cmp", so it can be a program name with args.
6574 set dummy cmp; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_CMP+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   case $CMP in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6601   ;;
6602 esac
6603 fi
6604 CMP=$ac_cv_path_CMP
6605 if test -n "$CMP"; then
6606   { echo "$as_me:$LINENO: result: $CMP" >&5
6607 echo "${ECHO_T}$CMP" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6611 fi
6612
6613
6614 # Extract the first word of "cp", so it can be a program name with args.
6615 set dummy cp; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_CP+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   case $CP in
6622   [\\/]* | ?:[\\/]*)
6623   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6624   ;;
6625   *)
6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6642   ;;
6643 esac
6644 fi
6645 CP=$ac_cv_path_CP
6646 if test -n "$CP"; then
6647   { echo "$as_me:$LINENO: result: $CP" >&5
6648 echo "${ECHO_T}$CP" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6652 fi
6653
6654
6655 # Extract the first word of "date", so it can be a program name with args.
6656 set dummy date; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_DATE+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   case $DATE in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672   for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6683   ;;
6684 esac
6685 fi
6686 DATE=$ac_cv_path_DATE
6687 if test -n "$DATE"; then
6688   { echo "$as_me:$LINENO: result: $DATE" >&5
6689 echo "${ECHO_T}$DATE" >&6; }
6690 else
6691   { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6693 fi
6694
6695
6696 # Extract the first word of "find", so it can be a program name with args.
6697 set dummy find; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_FIND+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $FIND in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6724   ;;
6725 esac
6726 fi
6727 FIND=$ac_cv_path_FIND
6728 if test -n "$FIND"; then
6729   { echo "$as_me:$LINENO: result: $FIND" >&5
6730 echo "${ECHO_T}$FIND" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 # Extract the first word of "grep", so it can be a program name with args.
6738 set dummy grep; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GREP+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   case $GREP in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6765   ;;
6766 esac
6767 fi
6768 GREP=$ac_cv_path_GREP
6769 if test -n "$GREP"; then
6770   { echo "$as_me:$LINENO: result: $GREP" >&5
6771 echo "${ECHO_T}$GREP" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778 # Extract the first word of "mkdir", so it can be a program name with args.
6779 set dummy mkdir; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_MKDIR+set}" = set; then
6783   echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785   case $MKDIR in
6786   [\\/]* | ?:[\\/]*)
6787   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6788   ;;
6789   *)
6790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6806   ;;
6807 esac
6808 fi
6809 MKDIR=$ac_cv_path_MKDIR
6810 if test -n "$MKDIR"; then
6811   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6812 echo "${ECHO_T}$MKDIR" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818
6819 # Extract the first word of "mv", so it can be a program name with args.
6820 set dummy mv; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_MV+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   case $MV in
6827   [\\/]* | ?:[\\/]*)
6828   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6829   ;;
6830   *)
6831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6847   ;;
6848 esac
6849 fi
6850 MV=$ac_cv_path_MV
6851 if test -n "$MV"; then
6852   { echo "$as_me:$LINENO: result: $MV" >&5
6853 echo "${ECHO_T}$MV" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860 if test -n "$ac_tool_prefix"; then
6861   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_prog_RANLIB+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   if test -n "$RANLIB"; then
6869   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 RANLIB=$ac_cv_prog_RANLIB
6889 if test -n "$RANLIB"; then
6890   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6891 echo "${ECHO_T}$RANLIB" >&6; }
6892 else
6893   { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if test -z "$ac_cv_prog_RANLIB"; then
6900   ac_ct_RANLIB=$RANLIB
6901   # Extract the first word of "ranlib", so it can be a program name with args.
6902 set dummy ranlib; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   if test -n "$ac_ct_RANLIB"; then
6909   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916   for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_prog_ac_ct_RANLIB="ranlib"
6919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929 if test -n "$ac_ct_RANLIB"; then
6930   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937   if test "x$ac_ct_RANLIB" = x; then
6938     RANLIB=":"
6939   else
6940     case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6943 whose name does not start with the host triplet.  If you think this
6944 configuration is useful to you, please write to autoconf@gnu.org." >&5
6945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6946 whose name does not start with the host triplet.  If you think this
6947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950     RANLIB=$ac_ct_RANLIB
6951   fi
6952 else
6953   RANLIB="$ac_cv_prog_RANLIB"
6954 fi
6955
6956 # Extract the first word of "rm", so it can be a program name with args.
6957 set dummy rm; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_RM+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   case $RM in
6964   [\\/]* | ?:[\\/]*)
6965   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6966   ;;
6967   *)
6968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973   for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6984   ;;
6985 esac
6986 fi
6987 RM=$ac_cv_path_RM
6988 if test -n "$RM"; then
6989   { echo "$as_me:$LINENO: result: $RM" >&5
6990 echo "${ECHO_T}$RM" >&6; }
6991 else
6992   { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6994 fi
6995
6996
6997 # Extract the first word of "sed", so it can be a program name with args.
6998 set dummy sed; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_SED+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   case $SED in
7005   [\\/]* | ?:[\\/]*)
7006   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7007   ;;
7008   *)
7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014   for ac_exec_ext in '' $ac_executable_extensions; do
7015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7025   ;;
7026 esac
7027 fi
7028 SED=$ac_cv_path_SED
7029 if test -n "$SED"; then
7030   { echo "$as_me:$LINENO: result: $SED" >&5
7031 echo "${ECHO_T}$SED" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037
7038 # Extract the first word of "tar", so it can be a program name with args.
7039 set dummy tar; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_TAR+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $TAR in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7066   ;;
7067 esac
7068 fi
7069 TAR=$ac_cv_path_TAR
7070 if test -n "$TAR"; then
7071   { echo "$as_me:$LINENO: result: $TAR" >&5
7072 echo "${ECHO_T}$TAR" >&6; }
7073 else
7074   { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7076 fi
7077
7078
7079 # Extract the first word of "pwd", so it can be a program name with args.
7080 set dummy pwd; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_BINPWD+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   case $BINPWD in
7087   [\\/]* | ?:[\\/]*)
7088   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7089   ;;
7090   *)
7091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7107   ;;
7108 esac
7109 fi
7110 BINPWD=$ac_cv_path_BINPWD
7111 if test -n "$BINPWD"; then
7112   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7113 echo "${ECHO_T}$BINPWD" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120
7121 # Extract the first word of "Graphviz", so it can be a program name with args.
7122 set dummy Graphviz; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $GRAPHVIZ in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7149   ;;
7150 esac
7151 fi
7152 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7153 if test -n "$GRAPHVIZ"; then
7154   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7155 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7163
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_GRAPHVIZ 1
7166 _ACEOF
7167
7168     if test "$llvm_cv_os_type" = "MingW" ; then
7169     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170   fi
7171
7172 cat >>confdefs.h <<_ACEOF
7173 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7174 _ACEOF
7175
7176 fi
7177 # Extract the first word of "dot", so it can be a program name with args.
7178 set dummy dot; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_DOT+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   case $DOT in
7185   [\\/]* | ?:[\\/]*)
7186   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7187   ;;
7188   *)
7189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194   for ac_exec_ext in '' $ac_executable_extensions; do
7195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7205   ;;
7206 esac
7207 fi
7208 DOT=$ac_cv_path_DOT
7209 if test -n "$DOT"; then
7210   { echo "$as_me:$LINENO: result: $DOT" >&5
7211 echo "${ECHO_T}$DOT" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218 if test "$DOT" != "echo dot" ; then
7219
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_DOT 1
7222 _ACEOF
7223
7224     if test "$llvm_cv_os_type" = "MingW" ; then
7225     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7226   fi
7227
7228 cat >>confdefs.h <<_ACEOF
7229 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7230 _ACEOF
7231
7232 fi
7233 for ac_prog in gv gsview32
7234 do
7235   # Extract the first word of "$ac_prog", so it can be a program name with args.
7236 set dummy $ac_prog; ac_word=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_path_GV+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   case $GV in
7243   [\\/]* | ?:[\\/]*)
7244   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7245   ;;
7246   *)
7247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252   for ac_exec_ext in '' $ac_executable_extensions; do
7253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7254     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262   ;;
7263 esac
7264 fi
7265 GV=$ac_cv_path_GV
7266 if test -n "$GV"; then
7267   { echo "$as_me:$LINENO: result: $GV" >&5
7268 echo "${ECHO_T}$GV" >&6; }
7269 else
7270   { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7272 fi
7273
7274
7275   test -n "$GV" && break
7276 done
7277 test -n "$GV" || GV="echo gv"
7278
7279 if test "$GV" != "echo gv" ; then
7280
7281 cat >>confdefs.h <<\_ACEOF
7282 #define HAVE_GV 1
7283 _ACEOF
7284
7285     if test "$llvm_cv_os_type" = "MingW" ; then
7286     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7287   fi
7288
7289 cat >>confdefs.h <<_ACEOF
7290 #define LLVM_PATH_GV "$GV${EXEEXT}"
7291 _ACEOF
7292
7293 fi
7294 # Extract the first word of "dotty", so it can be a program name with args.
7295 set dummy dotty; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_DOTTY+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   case $DOTTY in
7302   [\\/]* | ?:[\\/]*)
7303   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7304   ;;
7305   *)
7306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7322   ;;
7323 esac
7324 fi
7325 DOTTY=$ac_cv_path_DOTTY
7326 if test -n "$DOTTY"; then
7327   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7328 echo "${ECHO_T}$DOTTY" >&6; }
7329 else
7330   { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7332 fi
7333
7334
7335 if test "$DOTTY" != "echo dotty" ; then
7336
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_DOTTY 1
7339 _ACEOF
7340
7341     if test "$llvm_cv_os_type" = "MingW" ; then
7342     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7343   fi
7344
7345 cat >>confdefs.h <<_ACEOF
7346 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7347 _ACEOF
7348
7349 fi
7350
7351
7352 # Extract the first word of "perl", so it can be a program name with args.
7353 set dummy perl; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_PERL+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   case $PERL in
7360   [\\/]* | ?:[\\/]*)
7361   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7362   ;;
7363   *)
7364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7380   ;;
7381 esac
7382 fi
7383 PERL=$ac_cv_path_PERL
7384 if test -n "$PERL"; then
7385   { echo "$as_me:$LINENO: result: $PERL" >&5
7386 echo "${ECHO_T}$PERL" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393 if test "$PERL" != "none"; then
7394   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7395 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7396   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7397     { echo "$as_me:$LINENO: result: yes" >&5
7398 echo "${ECHO_T}yes" >&6; }
7399   else
7400     PERL=none
7401     { echo "$as_me:$LINENO: result: not found" >&5
7402 echo "${ECHO_T}not found" >&6; }
7403   fi
7404 fi
7405
7406
7407 if test x"$PERL" = xnone; then
7408    HAVE_PERL=0
7409
7410    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7411 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7412    { (exit 1); exit 1; }; }
7413 else
7414    HAVE_PERL=1
7415
7416 fi
7417
7418 # Find a good install program.  We prefer a C program (faster),
7419 # so one script is as good as another.  But avoid the broken or
7420 # incompatible versions:
7421 # SysV /etc/install, /usr/sbin/install
7422 # SunOS /usr/etc/install
7423 # IRIX /sbin/install
7424 # AIX /bin/install
7425 # AmigaOS /C/install, which installs bootblocks on floppy discs
7426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429 # OS/2's system install, which has a completely different semantic
7430 # ./install, which can be erroneously created by make from ./install.sh.
7431 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7432 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7433 if test -z "$INSTALL"; then
7434 if test "${ac_cv_path_install+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   # Account for people who put trailing slashes in PATH elements.
7443 case $as_dir/ in
7444   ./ | .// | /cC/* | \
7445   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7447   /usr/ucb/* ) ;;
7448   *)
7449     # OSF1 and SCO ODT 3.0 have their own names for install.
7450     # Don't use installbsd from OSF since it installs stuff as root
7451     # by default.
7452     for ac_prog in ginstall scoinst install; do
7453       for ac_exec_ext in '' $ac_executable_extensions; do
7454         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7455           if test $ac_prog = install &&
7456             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457             # AIX install.  It has an incompatible calling convention.
7458             :
7459           elif test $ac_prog = install &&
7460             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461             # program-specific install script used by HP pwplus--don't use.
7462             :
7463           else
7464             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7465             break 3
7466           fi
7467         fi
7468       done
7469     done
7470     ;;
7471 esac
7472 done
7473 IFS=$as_save_IFS
7474
7475
7476 fi
7477   if test "${ac_cv_path_install+set}" = set; then
7478     INSTALL=$ac_cv_path_install
7479   else
7480     # As a last resort, use the slow shell script.  Don't cache a
7481     # value for INSTALL within a source directory, because that will
7482     # break other packages using the cache if that directory is
7483     # removed, or if the value is a relative name.
7484     INSTALL=$ac_install_sh
7485   fi
7486 fi
7487 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7488 echo "${ECHO_T}$INSTALL" >&6; }
7489
7490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7491 # It thinks the first close brace ends the variable substitution.
7492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7493
7494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7495
7496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7497
7498
7499 # Extract the first word of "bzip2", so it can be a program name with args.
7500 set dummy bzip2; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_BZIP2+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $BZIP2 in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7527   ;;
7528 esac
7529 fi
7530 BZIP2=$ac_cv_path_BZIP2
7531 if test -n "$BZIP2"; then
7532   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7533 echo "${ECHO_T}$BZIP2" >&6; }
7534 else
7535   { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7537 fi
7538
7539
7540 # Extract the first word of "doxygen", so it can be a program name with args.
7541 set dummy doxygen; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $DOXYGEN in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7568   ;;
7569 esac
7570 fi
7571 DOXYGEN=$ac_cv_path_DOXYGEN
7572 if test -n "$DOXYGEN"; then
7573   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7574 echo "${ECHO_T}$DOXYGEN" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 # Extract the first word of "groff", so it can be a program name with args.
7582 set dummy groff; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GROFF+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $GROFF in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7609   ;;
7610 esac
7611 fi
7612 GROFF=$ac_cv_path_GROFF
7613 if test -n "$GROFF"; then
7614   { echo "$as_me:$LINENO: result: $GROFF" >&5
7615 echo "${ECHO_T}$GROFF" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622 # Extract the first word of "gzip", so it can be a program name with args.
7623 set dummy gzip; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_GZIP+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   case $GZIP in
7630   [\\/]* | ?:[\\/]*)
7631   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7632   ;;
7633   *)
7634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7650   ;;
7651 esac
7652 fi
7653 GZIP=$ac_cv_path_GZIP
7654 if test -n "$GZIP"; then
7655   { echo "$as_me:$LINENO: result: $GZIP" >&5
7656 echo "${ECHO_T}$GZIP" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662
7663 # Extract the first word of "pod2html", so it can be a program name with args.
7664 set dummy pod2html; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_POD2HTML+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   case $POD2HTML in
7671   [\\/]* | ?:[\\/]*)
7672   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7673   ;;
7674   *)
7675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680   for ac_exec_ext in '' $ac_executable_extensions; do
7681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7691   ;;
7692 esac
7693 fi
7694 POD2HTML=$ac_cv_path_POD2HTML
7695 if test -n "$POD2HTML"; then
7696   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7697 echo "${ECHO_T}$POD2HTML" >&6; }
7698 else
7699   { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7701 fi
7702
7703
7704 # Extract the first word of "pod2man", so it can be a program name with args.
7705 set dummy pod2man; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_POD2MAN+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $POD2MAN in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7732   ;;
7733 esac
7734 fi
7735 POD2MAN=$ac_cv_path_POD2MAN
7736 if test -n "$POD2MAN"; then
7737   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7738 echo "${ECHO_T}$POD2MAN" >&6; }
7739 else
7740   { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7742 fi
7743
7744
7745 # Extract the first word of "runtest", so it can be a program name with args.
7746 set dummy runtest; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_path_RUNTEST+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   case $RUNTEST in
7753   [\\/]* | ?:[\\/]*)
7754   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7755   ;;
7756   *)
7757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762   for ac_exec_ext in '' $ac_executable_extensions; do
7763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7773   ;;
7774 esac
7775 fi
7776 RUNTEST=$ac_cv_path_RUNTEST
7777 if test -n "$RUNTEST"; then
7778   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7779 echo "${ECHO_T}$RUNTEST" >&6; }
7780 else
7781   { echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6; }
7783 fi
7784
7785
7786
7787 no_itcl=true
7788 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7789 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7790
7791 # Check whether --with-tclinclude was given.
7792 if test "${with_tclinclude+set}" = set; then
7793   withval=$with_tclinclude; with_tclinclude=${withval}
7794 else
7795   with_tclinclude=''
7796 fi
7797
7798 if test "${ac_cv_path_tclsh+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801
7802 if test x"${with_tclinclude}" != x ; then
7803   if test -f ${with_tclinclude}/tclsh ; then
7804     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7805   elif test -f ${with_tclinclude}/src/tclsh ; then
7806     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7807   else
7808     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7809 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7810    { (exit 1); exit 1; }; }
7811   fi
7812 fi
7813
7814 if test x"${ac_cv_path_tclsh}" = x ; then
7815   { echo "$as_me:$LINENO: result: none" >&5
7816 echo "${ECHO_T}none" >&6; }
7817   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
7818 do
7819   # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823 if test "${ac_cv_path_TCLSH+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   case $TCLSH in
7827   [\\/]* | ?:[\\/]*)
7828   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7829   ;;
7830   *)
7831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834   IFS=$as_save_IFS
7835   test -z "$as_dir" && as_dir=.
7836   for ac_exec_ext in '' $ac_executable_extensions; do
7837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840     break 2
7841   fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846   ;;
7847 esac
7848 fi
7849 TCLSH=$ac_cv_path_TCLSH
7850 if test -n "$TCLSH"; then
7851   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7852 echo "${ECHO_T}$TCLSH" >&6; }
7853 else
7854   { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7856 fi
7857
7858
7859   test -n "$TCLSH" && break
7860 done
7861
7862   if test x"${TCLSH}" = x ; then
7863     ac_cv_path_tclsh='';
7864   else
7865     ac_cv_path_tclsh="${TCLSH}";
7866   fi
7867 else
7868   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7869 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7870   TCLSH="${ac_cv_path_tclsh}"
7871
7872 fi
7873
7874 fi
7875
7876 # Extract the first word of "zip", so it can be a program name with args.
7877 set dummy zip; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_ZIP+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   case $ZIP in
7884   [\\/]* | ?:[\\/]*)
7885   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7886   ;;
7887   *)
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7904   ;;
7905 esac
7906 fi
7907 ZIP=$ac_cv_path_ZIP
7908 if test -n "$ZIP"; then
7909   { echo "$as_me:$LINENO: result: $ZIP" >&5
7910 echo "${ECHO_T}$ZIP" >&6; }
7911 else
7912   { echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6; }
7914 fi
7915
7916
7917 # Extract the first word of "ocamlc", so it can be a program name with args.
7918 set dummy ocamlc; ac_word=$2
7919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7921 if test "${ac_cv_path_OCAMLC+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   case $OCAMLC in
7925   [\\/]* | ?:[\\/]*)
7926   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7927   ;;
7928   *)
7929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934   for ac_exec_ext in '' $ac_executable_extensions; do
7935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7936     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7945   ;;
7946 esac
7947 fi
7948 OCAMLC=$ac_cv_path_OCAMLC
7949 if test -n "$OCAMLC"; then
7950   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7951 echo "${ECHO_T}$OCAMLC" >&6; }
7952 else
7953   { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7955 fi
7956
7957
7958 # Extract the first word of "ocamlopt", so it can be a program name with args.
7959 set dummy ocamlopt; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   case $OCAMLOPT in
7966   [\\/]* | ?:[\\/]*)
7967   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7968   ;;
7969   *)
7970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975   for ac_exec_ext in '' $ac_executable_extensions; do
7976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7986   ;;
7987 esac
7988 fi
7989 OCAMLOPT=$ac_cv_path_OCAMLOPT
7990 if test -n "$OCAMLOPT"; then
7991   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7992 echo "${ECHO_T}$OCAMLOPT" >&6; }
7993 else
7994   { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
7996 fi
7997
7998
7999
8000 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8001 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8002 if test "${llvm_cv_link_use_r+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005    ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011   oldcflags="$CFLAGS"
8012   CFLAGS="$CFLAGS -Wl,-R."
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019
8020 int
8021 main ()
8022 {
8023 int main() { return 0; }
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032   *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035   (eval "$ac_link") 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } &&
8042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8043   { (case "(($ac_try" in
8044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045   *) ac_try_echo=$ac_try;;
8046 esac
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048   (eval "$ac_try") 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; } &&
8052          { ac_try='test -s conftest$ac_exeext'
8053   { (case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058   (eval "$ac_try") 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   llvm_cv_link_use_r=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067         llvm_cv_link_use_r=no
8068 fi
8069
8070 rm -f core conftest.err conftest.$ac_objext \
8071       conftest$ac_exeext conftest.$ac_ext
8072   CFLAGS="$oldcflags"
8073   ac_ext=c
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079
8080 fi
8081 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8082 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8083 if test "$llvm_cv_link_use_r" = yes ; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_LINK_R 1
8087 _ACEOF
8088
8089   fi
8090
8091
8092
8093
8094 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8096 if test "${ac_cv_c_const+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
8106 int
8107 main ()
8108 {
8109 /* FIXME: Include the comments suggested by Paul. */
8110 #ifndef __cplusplus
8111   /* Ultrix mips cc rejects this.  */
8112   typedef int charset[2];
8113   const charset x;
8114   /* SunOS 4.1.1 cc rejects this.  */
8115   char const *const *ccp;
8116   char **p;
8117   /* NEC SVR4.0.2 mips cc rejects this.  */
8118   struct point {int x, y;};
8119   static struct point const zero = {0,0};
8120   /* AIX XL C 1.02.0.0 rejects this.
8121      It does not let you subtract one const X* pointer from another in
8122      an arm of an if-expression whose if-part is not a constant
8123      expression */
8124   const char *g = "string";
8125   ccp = &g + (g ? g-g : 0);
8126   /* HPUX 7.0 cc rejects these. */
8127   ++ccp;
8128   p = (char**) ccp;
8129   ccp = (char const *const *) p;
8130   { /* SCO 3.2v4 cc rejects this.  */
8131     char *t;
8132     char const *s = 0 ? (char *) 0 : (char const *) 0;
8133
8134     *t++ = 0;
8135     if (s) return 0;
8136   }
8137   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8138     int x[] = {25, 17};
8139     const int *foo = &x[0];
8140     ++foo;
8141   }
8142   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8143     typedef const int *iptr;
8144     iptr p = 0;
8145     ++p;
8146   }
8147   { /* AIX XL C 1.02.0.0 rejects this saying
8148        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8149     struct s { int j; const int *ap[3]; };
8150     struct s *b; b->j = 5;
8151   }
8152   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8153     const int foo = 10;
8154     if (!foo) return 0;
8155   }
8156   return !x[0] && !zero.x;
8157 #endif
8158
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8165 case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_compile") 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178   { (case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_try") 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest.$ac_objext'
8188   { (case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193   (eval "$ac_try") 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   ac_cv_c_const=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202         ac_cv_c_const=no
8203 fi
8204
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 fi
8207 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8208 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8209 if test $ac_cv_c_const = no; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define const
8213 _ACEOF
8214
8215 fi
8216
8217
8218
8219
8220
8221
8222 ac_header_dirent=no
8223 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8224   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8226 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 #include <sys/types.h>
8237 #include <$ac_hdr>
8238
8239 int
8240 main ()
8241 {
8242 if ((DIR *) 0)
8243 return 0;
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255   (eval "$ac_compile") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } &&
8262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263   { (case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_try") 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; } &&
8272          { ac_try='test -s conftest.$ac_objext'
8273   { (case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278   (eval "$ac_try") 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); }; }; then
8282   eval "$as_ac_Header=yes"
8283 else
8284   echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8286
8287         eval "$as_ac_Header=no"
8288 fi
8289
8290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291 fi
8292 ac_res=`eval echo '${'$as_ac_Header'}'`
8293                { echo "$as_me:$LINENO: result: $ac_res" >&5
8294 echo "${ECHO_T}$ac_res" >&6; }
8295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8296   cat >>confdefs.h <<_ACEOF
8297 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8298 _ACEOF
8299
8300 ac_header_dirent=$ac_hdr; break
8301 fi
8302
8303 done
8304 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8305 if test $ac_header_dirent = dirent.h; then
8306   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8308 if test "${ac_cv_search_opendir+set}" = set; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   ac_func_search_save_LIBS=$LIBS
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318
8319 /* Override any GCC internal prototype to avoid an error.
8320    Use char because int might match the return type of a GCC
8321    builtin and then its argument prototype would still apply.  */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 char opendir ();
8326 int
8327 main ()
8328 {
8329 return opendir ();
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 for ac_lib in '' dir; do
8335   if test -z "$ac_lib"; then
8336     ac_res="none required"
8337   else
8338     ac_res=-l$ac_lib
8339     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8340   fi
8341   rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (ac_try="$ac_link"
8343 case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_link") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356   { (case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_try") 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; } &&
8365          { ac_try='test -s conftest$ac_exeext'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   ac_cv_search_opendir=$ac_res
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380
8381 fi
8382
8383 rm -f core conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext
8385   if test "${ac_cv_search_opendir+set}" = set; then
8386   break
8387 fi
8388 done
8389 if test "${ac_cv_search_opendir+set}" = set; then
8390   :
8391 else
8392   ac_cv_search_opendir=no
8393 fi
8394 rm conftest.$ac_ext
8395 LIBS=$ac_func_search_save_LIBS
8396 fi
8397 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8398 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8399 ac_res=$ac_cv_search_opendir
8400 if test "$ac_res" != no; then
8401   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8402
8403 fi
8404
8405 else
8406   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8407 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8408 if test "${ac_cv_search_opendir+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   ac_func_search_save_LIBS=$LIBS
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 /* Override any GCC internal prototype to avoid an error.
8420    Use char because int might match the return type of a GCC
8421    builtin and then its argument prototype would still apply.  */
8422 #ifdef __cplusplus
8423 extern "C"
8424 #endif
8425 char opendir ();
8426 int
8427 main ()
8428 {
8429 return opendir ();
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 for ac_lib in '' x; do
8435   if test -z "$ac_lib"; then
8436     ac_res="none required"
8437   else
8438     ac_res=-l$ac_lib
8439     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8440   fi
8441   rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8443 case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_link") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } &&
8455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; } &&
8465          { ac_try='test -s conftest$ac_exeext'
8466   { (case "(($ac_try" in
8467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468   *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471   (eval "$ac_try") 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_search_opendir=$ac_res
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480
8481 fi
8482
8483 rm -f core conftest.err conftest.$ac_objext \
8484       conftest$ac_exeext
8485   if test "${ac_cv_search_opendir+set}" = set; then
8486   break
8487 fi
8488 done
8489 if test "${ac_cv_search_opendir+set}" = set; then
8490   :
8491 else
8492   ac_cv_search_opendir=no
8493 fi
8494 rm conftest.$ac_ext
8495 LIBS=$ac_func_search_save_LIBS
8496 fi
8497 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8498 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8499 ac_res=$ac_cv_search_opendir
8500 if test "$ac_res" != no; then
8501   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8502
8503 fi
8504
8505 fi
8506
8507
8508 for ac_header in dlfcn.h
8509 do
8510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 fi
8517 ac_res=`eval echo '${'$as_ac_Header'}'`
8518                { echo "$as_me:$LINENO: result: $ac_res" >&5
8519 echo "${ECHO_T}$ac_res" >&6; }
8520 else
8521   # Is the header compilable?
8522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530 $ac_includes_default
8531 #include <$ac_header>
8532 _ACEOF
8533 rm -f conftest.$ac_objext
8534 if { (ac_try="$ac_compile"
8535 case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_compile") 2>conftest.er1
8541   ac_status=$?
8542   grep -v '^ *+' conftest.er1 >conftest.err
8543   rm -f conftest.er1
8544   cat conftest.err >&5
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); } &&
8547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548   { (case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553   (eval "$ac_try") 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; } &&
8557          { ac_try='test -s conftest.$ac_objext'
8558   { (case "(($ac_try" in
8559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560   *) ac_try_echo=$ac_try;;
8561 esac
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563   (eval "$ac_try") 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_header_compiler=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572         ac_header_compiler=no
8573 fi
8574
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8577 echo "${ECHO_T}$ac_header_compiler" >&6; }
8578
8579 # Is the header present?
8580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h.  */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h.  */
8588 #include <$ac_header>
8589 _ACEOF
8590 if { (ac_try="$ac_cpp conftest.$ac_ext"
8591 case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } >/dev/null; then
8603   if test -s conftest.err; then
8604     ac_cpp_err=$ac_c_preproc_warn_flag
8605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8606   else
8607     ac_cpp_err=
8608   fi
8609 else
8610   ac_cpp_err=yes
8611 fi
8612 if test -z "$ac_cpp_err"; then
8613   ac_header_preproc=yes
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618   ac_header_preproc=no
8619 fi
8620
8621 rm -f conftest.err conftest.$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8623 echo "${ECHO_T}$ac_header_preproc" >&6; }
8624
8625 # So?  What about this header?
8626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8627   yes:no: )
8628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8632     ac_header_preproc=yes
8633     ;;
8634   no:yes:* )
8635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8647     ( cat <<\_ASBOX
8648 ## ----------------------------------- ##
8649 ## Report this to llvmbugs@cs.uiuc.edu ##
8650 ## ----------------------------------- ##
8651 _ASBOX
8652      ) | sed "s/^/$as_me: WARNING:     /" >&2
8653     ;;
8654 esac
8655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   eval "$as_ac_Header=\$ac_header_preproc"
8661 fi
8662 ac_res=`eval echo '${'$as_ac_Header'}'`
8663                { echo "$as_me:$LINENO: result: $ac_res" >&5
8664 echo "${ECHO_T}$ac_res" >&6; }
8665
8666 fi
8667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8668   cat >>confdefs.h <<_ACEOF
8669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8670 _ACEOF
8671
8672 fi
8673
8674 done
8675
8676 # Check whether --enable-ltdl-install was given.
8677 if test "${enable_ltdl_install+set}" = set; then
8678   enableval=$enable_ltdl_install;
8679 fi
8680
8681
8682
8683
8684 if test x"${enable_ltdl_install-no}" != xno; then
8685   INSTALL_LTDL_TRUE=
8686   INSTALL_LTDL_FALSE='#'
8687 else
8688   INSTALL_LTDL_TRUE='#'
8689   INSTALL_LTDL_FALSE=
8690 fi
8691
8692
8693
8694 if test x"${enable_ltdl_convenience-no}" != xno; then
8695   CONVENIENCE_LTDL_TRUE=
8696   CONVENIENCE_LTDL_FALSE='#'
8697 else
8698   CONVENIENCE_LTDL_TRUE='#'
8699   CONVENIENCE_LTDL_FALSE=
8700 fi
8701
8702
8703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8705 library_names_spec=
8706 libname_spec='lib$name'
8707 soname_spec=
8708 shrext_cmds=".so"
8709 postinstall_cmds=
8710 postuninstall_cmds=
8711 finish_cmds=
8712 finish_eval=
8713 shlibpath_var=
8714 shlibpath_overrides_runpath=unknown
8715 version_type=none
8716 dynamic_linker="$host_os ld.so"
8717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8718 if test "$GCC" = yes; then
8719   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8721     # if the path contains ";" then we assume it to be the separator
8722     # otherwise default to the standard path separator (i.e. ":") - it is
8723     # assumed that no part of a normal pathname contains ";" but that should
8724     # okay in the real world where ";" in dirpaths is itself problematic.
8725     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726   else
8727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8728   fi
8729 else
8730   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8731 fi
8732 need_lib_prefix=unknown
8733 hardcode_into_libs=no
8734
8735 # when you set need_version to no, make sure it does not cause -set_version
8736 # flags to be left without arguments
8737 need_version=unknown
8738
8739 case $host_os in
8740 aix3*)
8741   version_type=linux
8742   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8743   shlibpath_var=LIBPATH
8744
8745   # AIX 3 has no versioning support, so we append a major version to the name.
8746   soname_spec='${libname}${release}${shared_ext}$major'
8747   ;;
8748
8749 aix4* | aix5*)
8750   version_type=linux
8751   need_lib_prefix=no
8752   need_version=no
8753   hardcode_into_libs=yes
8754   if test "$host_cpu" = ia64; then
8755     # AIX 5 supports IA64
8756     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8757     shlibpath_var=LD_LIBRARY_PATH
8758   else
8759     # With GCC up to 2.95.x, collect2 would create an import file
8760     # for dependence libraries.  The import file would start with
8761     # the line `#! .'.  This would cause the generated library to
8762     # depend on `.', always an invalid library.  This was fixed in
8763     # development snapshots of GCC prior to 3.0.
8764     case $host_os in
8765       aix4 | aix4.[01] | aix4.[01].*)
8766       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8767            echo ' yes '
8768            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8769         :
8770       else
8771         can_build_shared=no
8772       fi
8773       ;;
8774     esac
8775     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8776     # soname into executable. Probably we can add versioning support to
8777     # collect2, so additional links can be useful in future.
8778     if test "$aix_use_runtimelinking" = yes; then
8779       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8780       # instead of lib<name>.a to let people know that these are not
8781       # typical AIX shared libraries.
8782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783     else
8784       # We preserve .a as extension for shared libraries through AIX4.2
8785       # and later when we are not doing run time linking.
8786       library_names_spec='${libname}${release}.a $libname.a'
8787       soname_spec='${libname}${release}${shared_ext}$major'
8788     fi
8789     shlibpath_var=LIBPATH
8790   fi
8791   ;;
8792
8793 amigaos*)
8794   library_names_spec='$libname.ixlibrary $libname.a'
8795   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8796   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'
8797   ;;
8798
8799 beos*)
8800   library_names_spec='${libname}${shared_ext}'
8801   dynamic_linker="$host_os ld.so"
8802   shlibpath_var=LIBRARY_PATH
8803   ;;
8804
8805 bsdi[45]*)
8806   version_type=linux
8807   need_version=no
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809   soname_spec='${libname}${release}${shared_ext}$major'
8810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8814   # the default ld.so.conf also contains /usr/contrib/lib and
8815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8816   # libtool to hard-code these into programs
8817   ;;
8818
8819 cygwin* | mingw* | pw32*)
8820   version_type=windows
8821   shrext_cmds=".dll"
8822   need_version=no
8823   need_lib_prefix=no
8824
8825   case $GCC,$host_os in
8826   yes,cygwin* | yes,mingw* | yes,pw32*)
8827     library_names_spec='$libname.dll.a'
8828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8829     postinstall_cmds='base_file=`basename \${file}`~
8830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8831       dldir=$destdir/`dirname \$dlpath`~
8832       test -d \$dldir || mkdir -p \$dldir~
8833       $install_prog $dir/$dlname \$dldir/$dlname~
8834       chmod a+x \$dldir/$dlname'
8835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8836       dlpath=$dir/\$dldll~
8837        $rm \$dlpath'
8838     shlibpath_overrides_runpath=yes
8839
8840     case $host_os in
8841     cygwin*)
8842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8845       ;;
8846     mingw*)
8847       # MinGW DLLs use traditional 'lib' prefix
8848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8851         # It is most probably a Windows format PATH printed by
8852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8853         # path with ; separators, and with drive letters. We can handle the
8854         # drive letters (cygwin fileutils understands them), so leave them,
8855         # especially as we might pass files found there to a mingw objdump,
8856         # which wouldn't understand a cygwinified path. Ahh.
8857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8858       else
8859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8860       fi
8861       ;;
8862     pw32*)
8863       # pw32 DLLs use 'pw' prefix rather than 'lib'
8864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8865       ;;
8866     esac
8867     ;;
8868
8869   *)
8870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8871     ;;
8872   esac
8873   dynamic_linker='Win32 ld.exe'
8874   # FIXME: first we should search . and the directory the executable is in
8875   shlibpath_var=PATH
8876   ;;
8877
8878 darwin* | rhapsody*)
8879   dynamic_linker="$host_os dyld"
8880   version_type=darwin
8881   need_lib_prefix=no
8882   need_version=no
8883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8884   soname_spec='${libname}${release}${major}$shared_ext'
8885   shlibpath_overrides_runpath=yes
8886   shlibpath_var=DYLD_LIBRARY_PATH
8887   shrext_cmds='.dylib'
8888   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8889   if test "$GCC" = yes; then
8890     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"`
8891   else
8892     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8893   fi
8894   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8895   ;;
8896
8897 dgux*)
8898   version_type=linux
8899   need_lib_prefix=no
8900   need_version=no
8901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8902   soname_spec='${libname}${release}${shared_ext}$major'
8903   shlibpath_var=LD_LIBRARY_PATH
8904   ;;
8905
8906 freebsd1*)
8907   dynamic_linker=no
8908   ;;
8909
8910 kfreebsd*-gnu)
8911   version_type=linux
8912   need_lib_prefix=no
8913   need_version=no
8914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8915   soname_spec='${libname}${release}${shared_ext}$major'
8916   shlibpath_var=LD_LIBRARY_PATH
8917   shlibpath_overrides_runpath=no
8918   hardcode_into_libs=yes
8919   dynamic_linker='GNU ld.so'
8920   ;;
8921
8922 freebsd* | dragonfly*)
8923   # DragonFly does not have aout.  When/if they implement a new
8924   # versioning mechanism, adjust this.
8925   if test -x /usr/bin/objformat; then
8926     objformat=`/usr/bin/objformat`
8927   else
8928     case $host_os in
8929     freebsd[123]*) objformat=aout ;;
8930     *) objformat=elf ;;
8931     esac
8932   fi
8933   version_type=freebsd-$objformat
8934   case $version_type in
8935     freebsd-elf*)
8936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8937       need_version=no
8938       need_lib_prefix=no
8939       ;;
8940     freebsd-*)
8941       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8942       need_version=yes
8943       ;;
8944   esac
8945   shlibpath_var=LD_LIBRARY_PATH
8946   case $host_os in
8947   freebsd2*)
8948     shlibpath_overrides_runpath=yes
8949     ;;
8950   freebsd3.[01]* | freebsdelf3.[01]*)
8951     shlibpath_overrides_runpath=yes
8952     hardcode_into_libs=yes
8953     ;;
8954   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8955   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8956     shlibpath_overrides_runpath=no
8957     hardcode_into_libs=yes
8958     ;;
8959   freebsd*) # from 4.6 on
8960     shlibpath_overrides_runpath=yes
8961     hardcode_into_libs=yes
8962     ;;
8963   esac
8964   ;;
8965
8966 gnu*)
8967   version_type=linux
8968   need_lib_prefix=no
8969   need_version=no
8970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8971   soname_spec='${libname}${release}${shared_ext}$major'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   hardcode_into_libs=yes
8974   ;;
8975
8976 hpux9* | hpux10* | hpux11*)
8977   # Give a soname corresponding to the major version so that dld.sl refuses to
8978   # link against other versions.
8979   version_type=sunos
8980   need_lib_prefix=no
8981   need_version=no
8982   case $host_cpu in
8983   ia64*)
8984     shrext_cmds='.so'
8985     hardcode_into_libs=yes
8986     dynamic_linker="$host_os dld.so"
8987     shlibpath_var=LD_LIBRARY_PATH
8988     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990     soname_spec='${libname}${release}${shared_ext}$major'
8991     if test "X$HPUX_IA64_MODE" = X32; then
8992       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8993     else
8994       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8995     fi
8996     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8997     ;;
8998    hppa*64*)
8999      shrext_cmds='.sl'
9000      hardcode_into_libs=yes
9001      dynamic_linker="$host_os dld.sl"
9002      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9003      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005      soname_spec='${libname}${release}${shared_ext}$major'
9006      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9007      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9008      ;;
9009    *)
9010     shrext_cmds='.sl'
9011     dynamic_linker="$host_os dld.sl"
9012     shlibpath_var=SHLIB_PATH
9013     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015     soname_spec='${libname}${release}${shared_ext}$major'
9016     ;;
9017   esac
9018   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9019   postinstall_cmds='chmod 555 $lib'
9020   ;;
9021
9022 interix3*)
9023   version_type=linux
9024   need_lib_prefix=no
9025   need_version=no
9026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027   soname_spec='${libname}${release}${shared_ext}$major'
9028   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9029   shlibpath_var=LD_LIBRARY_PATH
9030   shlibpath_overrides_runpath=no
9031   hardcode_into_libs=yes
9032   ;;
9033
9034 irix5* | irix6* | nonstopux*)
9035   case $host_os in
9036     nonstopux*) version_type=nonstopux ;;
9037     *)
9038         if test "$lt_cv_prog_gnu_ld" = yes; then
9039                 version_type=linux
9040         else
9041                 version_type=irix
9042         fi ;;
9043   esac
9044   need_lib_prefix=no
9045   need_version=no
9046   soname_spec='${libname}${release}${shared_ext}$major'
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9048   case $host_os in
9049   irix5* | nonstopux*)
9050     libsuff= shlibsuff=
9051     ;;
9052   *)
9053     case $LD in # libtool.m4 will add one of these switches to LD
9054     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9055       libsuff= shlibsuff= libmagic=32-bit;;
9056     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9057       libsuff=32 shlibsuff=N32 libmagic=N32;;
9058     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9059       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9060     *) libsuff= shlibsuff= libmagic=never-match;;
9061     esac
9062     ;;
9063   esac
9064   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9065   shlibpath_overrides_runpath=no
9066   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9067   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9068   hardcode_into_libs=yes
9069   ;;
9070
9071 # No shared lib support for Linux oldld, aout, or coff.
9072 linux*oldld* | linux*aout* | linux*coff*)
9073   dynamic_linker=no
9074   ;;
9075
9076 # This must be Linux ELF.
9077 linux*)
9078   version_type=linux
9079   need_lib_prefix=no
9080   need_version=no
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9084   shlibpath_var=LD_LIBRARY_PATH
9085   shlibpath_overrides_runpath=no
9086   # This implies no fast_install, which is unacceptable.
9087   # Some rework will be needed to allow for fast_install
9088   # before this can be enabled.
9089   hardcode_into_libs=yes
9090
9091   # Append ld.so.conf contents to the search path
9092   if test -f /etc/ld.so.conf; then
9093     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' ' '`
9094     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9095   fi
9096
9097   # We used to test for /lib/ld.so.1 and disable shared libraries on
9098   # powerpc, because MkLinux only supported shared libraries with the
9099   # GNU dynamic linker.  Since this was broken with cross compilers,
9100   # most powerpc-linux boxes support dynamic linking these days and
9101   # people can always --disable-shared, the test was removed, and we
9102   # assume the GNU/Linux dynamic linker is in use.
9103   dynamic_linker='GNU/Linux ld.so'
9104   ;;
9105
9106 knetbsd*-gnu)
9107   version_type=linux
9108   need_lib_prefix=no
9109   need_version=no
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9111   soname_spec='${libname}${release}${shared_ext}$major'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   shlibpath_overrides_runpath=no
9114   hardcode_into_libs=yes
9115   dynamic_linker='GNU ld.so'
9116   ;;
9117
9118 netbsd*)
9119   version_type=sunos
9120   need_lib_prefix=no
9121   need_version=no
9122   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9124     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9125     dynamic_linker='NetBSD (a.out) ld.so'
9126   else
9127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9128     soname_spec='${libname}${release}${shared_ext}$major'
9129     dynamic_linker='NetBSD ld.elf_so'
9130   fi
9131   shlibpath_var=LD_LIBRARY_PATH
9132   shlibpath_overrides_runpath=yes
9133   hardcode_into_libs=yes
9134   ;;
9135
9136 newsos6)
9137   version_type=linux
9138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   shlibpath_overrides_runpath=yes
9141   ;;
9142
9143 nto-qnx*)
9144   version_type=linux
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   shlibpath_overrides_runpath=yes
9151   ;;
9152
9153 openbsd*)
9154   version_type=sunos
9155   sys_lib_dlsearch_path_spec="/usr/lib"
9156   need_lib_prefix=no
9157   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9158   case $host_os in
9159     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9160     *)                         need_version=no  ;;
9161   esac
9162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164   shlibpath_var=LD_LIBRARY_PATH
9165   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9166     case $host_os in
9167       openbsd2.[89] | openbsd2.[89].*)
9168         shlibpath_overrides_runpath=no
9169         ;;
9170       *)
9171         shlibpath_overrides_runpath=yes
9172         ;;
9173       esac
9174   else
9175     shlibpath_overrides_runpath=yes
9176   fi
9177   ;;
9178
9179 os2*)
9180   libname_spec='$name'
9181   shrext_cmds=".dll"
9182   need_lib_prefix=no
9183   library_names_spec='$libname${shared_ext} $libname.a'
9184   dynamic_linker='OS/2 ld.exe'
9185   shlibpath_var=LIBPATH
9186   ;;
9187
9188 osf3* | osf4* | osf5*)
9189   version_type=osf
9190   need_lib_prefix=no
9191   need_version=no
9192   soname_spec='${libname}${release}${shared_ext}$major'
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194   shlibpath_var=LD_LIBRARY_PATH
9195   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9196   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9197   ;;
9198
9199 solaris*)
9200   version_type=linux
9201   need_lib_prefix=no
9202   need_version=no
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204   soname_spec='${libname}${release}${shared_ext}$major'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   shlibpath_overrides_runpath=yes
9207   hardcode_into_libs=yes
9208   # ldd complains unless libraries are executable
9209   postinstall_cmds='chmod +x $lib'
9210   ;;
9211
9212 sunos4*)
9213   version_type=sunos
9214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9216   shlibpath_var=LD_LIBRARY_PATH
9217   shlibpath_overrides_runpath=yes
9218   if test "$with_gnu_ld" = yes; then
9219     need_lib_prefix=no
9220   fi
9221   need_version=yes
9222   ;;
9223
9224 sysv4 | sysv4.3*)
9225   version_type=linux
9226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227   soname_spec='${libname}${release}${shared_ext}$major'
9228   shlibpath_var=LD_LIBRARY_PATH
9229   case $host_vendor in
9230     sni)
9231       shlibpath_overrides_runpath=no
9232       need_lib_prefix=no
9233       export_dynamic_flag_spec='${wl}-Blargedynsym'
9234       runpath_var=LD_RUN_PATH
9235       ;;
9236     siemens)
9237       need_lib_prefix=no
9238       ;;
9239     motorola)
9240       need_lib_prefix=no
9241       need_version=no
9242       shlibpath_overrides_runpath=no
9243       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9244       ;;
9245   esac
9246   ;;
9247
9248 sysv4*MP*)
9249   if test -d /usr/nec ;then
9250     version_type=linux
9251     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9252     soname_spec='$libname${shared_ext}.$major'
9253     shlibpath_var=LD_LIBRARY_PATH
9254   fi
9255   ;;
9256
9257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9258   version_type=freebsd-elf
9259   need_lib_prefix=no
9260   need_version=no
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9262   soname_spec='${libname}${release}${shared_ext}$major'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   hardcode_into_libs=yes
9265   if test "$with_gnu_ld" = yes; then
9266     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9267     shlibpath_overrides_runpath=no
9268   else
9269     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9270     shlibpath_overrides_runpath=yes
9271     case $host_os in
9272       sco3.2v5*)
9273         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9274         ;;
9275     esac
9276   fi
9277   sys_lib_dlsearch_path_spec='/usr/lib'
9278   ;;
9279
9280 uts4*)
9281   version_type=linux
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   ;;
9286
9287 *)
9288   dynamic_linker=no
9289   ;;
9290 esac
9291 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9292 echo "${ECHO_T}$dynamic_linker" >&6; }
9293 test "$dynamic_linker" = no && can_build_shared=no
9294
9295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9296 if test "$GCC" = yes; then
9297   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9298 fi
9299
9300
9301 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9302 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9303 if test "${libltdl_cv_shlibext+set}" = set; then
9304   echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306
9307 module=yes
9308 eval libltdl_cv_shlibext=$shrext_cmds
9309
9310 fi
9311 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9312 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9313 if test -n "$libltdl_cv_shlibext"; then
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9317 _ACEOF
9318
9319 fi
9320
9321
9322 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9323 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9324 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   libltdl_cv_shlibpath_var="$shlibpath_var"
9328 fi
9329 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9330 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9331 if test -n "$libltdl_cv_shlibpath_var"; then
9332
9333 cat >>confdefs.h <<_ACEOF
9334 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9335 _ACEOF
9336
9337 fi
9338
9339
9340 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9341 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_sys_search_path+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9346 fi
9347 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9348 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9349 if test -n "$libltdl_cv_sys_search_path"; then
9350   sys_search_path=
9351   for dir in $libltdl_cv_sys_search_path; do
9352     if test -z "$sys_search_path"; then
9353       sys_search_path="$dir"
9354     else
9355       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9356     fi
9357   done
9358
9359 cat >>confdefs.h <<_ACEOF
9360 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9361 _ACEOF
9362
9363 fi
9364
9365 { echo "$as_me:$LINENO: checking for objdir" >&5
9366 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9367 if test "${libltdl_cv_objdir+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   libltdl_cv_objdir="$objdir"
9371   if test -n "$objdir"; then
9372     :
9373   else
9374     rm -f .libs 2>/dev/null
9375     mkdir .libs 2>/dev/null
9376     if test -d .libs; then
9377       libltdl_cv_objdir=.libs
9378     else
9379       # MS-DOS does not allow filenames that begin with a dot.
9380       libltdl_cv_objdir=_libs
9381     fi
9382   rmdir .libs 2>/dev/null
9383   fi
9384
9385 fi
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9387 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9388
9389 cat >>confdefs.h <<_ACEOF
9390 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9391 _ACEOF
9392
9393
9394
9395
9396
9397
9398 # Check for command to grab the raw symbol name followed by C symbol from nm.
9399 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9400 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9401 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404
9405 # These are sane defaults that work on at least a few old systems.
9406 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9407
9408 # Character class describing NM global symbol codes.
9409 symcode='[BCDEGRST]'
9410
9411 # Regexp to match symbols that can be accessed directly from C.
9412 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9413
9414 # Transform an extracted symbol line into a proper C declaration
9415 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9416
9417 # Transform an extracted symbol line into symbol name and symbol address
9418 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'"
9419
9420 # Define system-specific variables.
9421 case $host_os in
9422 aix*)
9423   symcode='[BCDT]'
9424   ;;
9425 cygwin* | mingw* | pw32*)
9426   symcode='[ABCDGISTW]'
9427   ;;
9428 hpux*) # Its linker distinguishes data from code symbols
9429   if test "$host_cpu" = ia64; then
9430     symcode='[ABCDEGRST]'
9431   fi
9432   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9433   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'"
9434   ;;
9435 linux*)
9436   if test "$host_cpu" = ia64; then
9437     symcode='[ABCDGIRSTW]'
9438     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439     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'"
9440   fi
9441   ;;
9442 irix* | nonstopux*)
9443   symcode='[BCDEGRST]'
9444   ;;
9445 osf*)
9446   symcode='[BCDEGQRST]'
9447   ;;
9448 solaris*)
9449   symcode='[BDRT]'
9450   ;;
9451 sco3.2v5*)
9452   symcode='[DT]'
9453   ;;
9454 sysv4.2uw2*)
9455   symcode='[DT]'
9456   ;;
9457 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9458   symcode='[ABDT]'
9459   ;;
9460 sysv4)
9461   symcode='[DFNSTU]'
9462   ;;
9463 esac
9464
9465 # Handle CRLF in mingw tool chain
9466 opt_cr=
9467 case $build_os in
9468 mingw*)
9469   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9470   ;;
9471 esac
9472
9473 # If we're using GNU nm, then use its standard symbol codes.
9474 case `$NM -V 2>&1` in
9475 *GNU* | *'with BFD'*)
9476   symcode='[ABCDGIRSTW]' ;;
9477 esac
9478
9479 # Try without a prefix undercore, then with it.
9480 for ac_symprfx in "" "_"; do
9481
9482   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9483   symxfrm="\\1 $ac_symprfx\\2 \\2"
9484
9485   # Write the raw and C identifiers.
9486   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9487
9488   # Check to see that the pipe works correctly.
9489   pipe_works=no
9490
9491   rm -f conftest*
9492   cat > conftest.$ac_ext <<EOF
9493 #ifdef __cplusplus
9494 extern "C" {
9495 #endif
9496 char nm_test_var;
9497 void nm_test_func(){}
9498 #ifdef __cplusplus
9499 }
9500 #endif
9501 int main(){nm_test_var='a';nm_test_func();return(0);}
9502 EOF
9503
9504   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505   (eval $ac_compile) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); }; then
9509     # Now try to grab the symbols.
9510     nlist=conftest.nm
9511     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9512   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } && test -s "$nlist"; then
9516       # Try sorting and uniquifying the output.
9517       if sort "$nlist" | uniq > "$nlist"T; then
9518         mv -f "$nlist"T "$nlist"
9519       else
9520         rm -f "$nlist"T
9521       fi
9522
9523       # Make sure that we snagged all the symbols we need.
9524       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9525         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9526           cat <<EOF > conftest.$ac_ext
9527 #ifdef __cplusplus
9528 extern "C" {
9529 #endif
9530
9531 EOF
9532           # Now generate the symbol file.
9533           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9534
9535           cat <<EOF >> conftest.$ac_ext
9536 #if defined (__STDC__) && __STDC__
9537 # define lt_ptr_t void *
9538 #else
9539 # define lt_ptr_t char *
9540 # define const
9541 #endif
9542
9543 /* The mapping between symbol names and symbols. */
9544 const struct {
9545   const char *name;
9546   lt_ptr_t address;
9547 }
9548 lt_preloaded_symbols[] =
9549 {
9550 EOF
9551           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9552           cat <<\EOF >> conftest.$ac_ext
9553   {0, (lt_ptr_t) 0}
9554 };
9555
9556 #ifdef __cplusplus
9557 }
9558 #endif
9559 EOF
9560           # Now try linking the two files.
9561           mv conftest.$ac_objext conftstm.$ac_objext
9562           lt_save_LIBS="$LIBS"
9563           lt_save_CFLAGS="$CFLAGS"
9564           LIBS="conftstm.$ac_objext"
9565           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9566           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567   (eval $ac_link) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9571             pipe_works=yes
9572           fi
9573           LIBS="$lt_save_LIBS"
9574           CFLAGS="$lt_save_CFLAGS"
9575         else
9576           echo "cannot find nm_test_func in $nlist" >&5
9577         fi
9578       else
9579         echo "cannot find nm_test_var in $nlist" >&5
9580       fi
9581     else
9582       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9583     fi
9584   else
9585     echo "$progname: failed program was:" >&5
9586     cat conftest.$ac_ext >&5
9587   fi
9588   rm -f conftest* conftst*
9589
9590   # Do not use the global_symbol_pipe unless it works.
9591   if test "$pipe_works" = yes; then
9592     break
9593   else
9594     lt_cv_sys_global_symbol_pipe=
9595   fi
9596 done
9597
9598 fi
9599
9600 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9601   lt_cv_sys_global_symbol_to_cdecl=
9602 fi
9603 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9604   { echo "$as_me:$LINENO: result: failed" >&5
9605 echo "${ECHO_T}failed" >&6; }
9606 else
9607   { echo "$as_me:$LINENO: result: ok" >&5
9608 echo "${ECHO_T}ok" >&6; }
9609 fi
9610
9611
9612 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9613 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9614 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9618     libltdl_cv_preloaded_symbols=yes
9619   else
9620     libltdl_cv_preloaded_symbols=no
9621   fi
9622
9623 fi
9624 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9625 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9626 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9627
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_PRELOADED_SYMBOLS 1
9630 _ACEOF
9631
9632 fi
9633
9634 LIBADD_DL=
9635
9636 ac_ext=c
9637 ac_cpp='$CPP $CPPFLAGS'
9638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9641
9642
9643 { echo "$as_me:$LINENO: checking for shl_load" >&5
9644 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9645 if test "${ac_cv_func_shl_load+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h.  */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h.  */
9654 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9656 #define shl_load innocuous_shl_load
9657
9658 /* System header to define __stub macros and hopefully few prototypes,
9659     which can conflict with char shl_load (); below.
9660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661     <limits.h> exists even on freestanding compilers.  */
9662
9663 #ifdef __STDC__
9664 # include <limits.h>
9665 #else
9666 # include <assert.h>
9667 #endif
9668
9669 #undef shl_load
9670
9671 /* Override any GCC internal prototype to avoid an error.
9672    Use char because int might match the return type of a GCC
9673    builtin and then its argument prototype would still apply.  */
9674 #ifdef __cplusplus
9675 extern "C"
9676 #endif
9677 char shl_load ();
9678 /* The GNU C library defines this for functions which it implements
9679     to always fail with ENOSYS.  Some functions are actually named
9680     something starting with __ and the normal name is an alias.  */
9681 #if defined __stub_shl_load || defined __stub___shl_load
9682 choke me
9683 #endif
9684
9685 int
9686 main ()
9687 {
9688 return shl_load ();
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (ac_try="$ac_link"
9695 case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_link") 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708   { (case "(($ac_try" in
9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710   *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713   (eval "$ac_try") 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; } &&
9717          { ac_try='test -s conftest$ac_exeext'
9718   { (case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_try") 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   ac_cv_func_shl_load=yes
9728 else
9729   echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732         ac_cv_func_shl_load=no
9733 fi
9734
9735 rm -f core conftest.err conftest.$ac_objext \
9736       conftest$ac_exeext conftest.$ac_ext
9737 fi
9738 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9739 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9740 if test $ac_cv_func_shl_load = yes; then
9741
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_SHL_LOAD 1
9744 _ACEOF
9745
9746 else
9747   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9748 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9749 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   ac_check_lib_save_LIBS=$LIBS
9753 LIBS="-ldld  $LIBS"
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760
9761 /* Override any GCC internal prototype to avoid an error.
9762    Use char because int might match the return type of a GCC
9763    builtin and then its argument prototype would still apply.  */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 char shl_load ();
9768 int
9769 main ()
9770 {
9771 return shl_load ();
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9778 case "(($ac_try" in
9779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780   *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783   (eval "$ac_link") 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791   { (case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_try") 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; } &&
9800          { ac_try='test -s conftest$ac_exeext'
9801   { (case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_try") 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   ac_cv_lib_dld_shl_load=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815         ac_cv_lib_dld_shl_load=no
9816 fi
9817
9818 rm -f core conftest.err conftest.$ac_objext \
9819       conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9821 fi
9822 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9823 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9824 if test $ac_cv_lib_dld_shl_load = yes; then
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_SHL_LOAD 1
9828 _ACEOF
9829
9830         LIBADD_DL="$LIBADD_DL -ldld"
9831 else
9832   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   ac_check_lib_save_LIBS=$LIBS
9838 LIBS="-ldl  $LIBS"
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char dlopen ();
9853 int
9854 main ()
9855 {
9856 return dlopen ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_link") 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; } &&
9885          { ac_try='test -s conftest$ac_exeext'
9886   { (case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_try") 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; }; then
9895   ac_cv_lib_dl_dlopen=yes
9896 else
9897   echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900         ac_cv_lib_dl_dlopen=no
9901 fi
9902
9903 rm -f core conftest.err conftest.$ac_objext \
9904       conftest$ac_exeext conftest.$ac_ext
9905 LIBS=$ac_check_lib_save_LIBS
9906 fi
9907 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9908 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9909 if test $ac_cv_lib_dl_dlopen = yes; then
9910
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_LIBDL 1
9913 _ACEOF
9914
9915                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9916 else
9917   cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 #if HAVE_DLFCN_H
9924 #  include <dlfcn.h>
9925 #endif
9926
9927 int
9928 main ()
9929 {
9930 dlopen(0, 0);
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9937 case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_link") 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950   { (case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_try") 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; } &&
9959          { ac_try='test -s conftest$ac_exeext'
9960   { (case "(($ac_try" in
9961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962   *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965   (eval "$ac_try") 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969
9970 cat >>confdefs.h <<\_ACEOF
9971 #define HAVE_LIBDL 1
9972 _ACEOF
9973  libltdl_cv_func_dlopen="yes"
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9979 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   ac_check_lib_save_LIBS=$LIBS
9984 LIBS="-lsvld  $LIBS"
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991
9992 /* Override any GCC internal prototype to avoid an error.
9993    Use char because int might match the return type of a GCC
9994    builtin and then its argument prototype would still apply.  */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char dlopen ();
9999 int
10000 main ()
10001 {
10002 return dlopen ();
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011   *) ac_try_echo=$ac_try;;
10012 esac
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014   (eval "$ac_link") 2>conftest.er1
10015   ac_status=$?
10016   grep -v '^ *+' conftest.er1 >conftest.err
10017   rm -f conftest.er1
10018   cat conftest.err >&5
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); } &&
10021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022   { (case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_try") 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; } &&
10031          { ac_try='test -s conftest$ac_exeext'
10032   { (case "(($ac_try" in
10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034   *) ac_try_echo=$ac_try;;
10035 esac
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037   (eval "$ac_try") 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; }; then
10041   ac_cv_lib_svld_dlopen=yes
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046         ac_cv_lib_svld_dlopen=no
10047 fi
10048
10049 rm -f core conftest.err conftest.$ac_objext \
10050       conftest$ac_exeext conftest.$ac_ext
10051 LIBS=$ac_check_lib_save_LIBS
10052 fi
10053 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10054 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10055 if test $ac_cv_lib_svld_dlopen = yes; then
10056
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_LIBDL 1
10059 _ACEOF
10060
10061                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10062 else
10063   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10064 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-ldld  $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076
10077 /* Override any GCC internal prototype to avoid an error.
10078    Use char because int might match the return type of a GCC
10079    builtin and then its argument prototype would still apply.  */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char dld_link ();
10084 int
10085 main ()
10086 {
10087 return dld_link ();
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096   *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099   (eval "$ac_link") 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107   { (case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_try") 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; } &&
10116          { ac_try='test -s conftest$ac_exeext'
10117   { (case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_try") 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_lib_dld_dld_link=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_cv_lib_dld_dld_link=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext \
10135       conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140 if test $ac_cv_lib_dld_dld_link = yes; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_DLD 1
10144 _ACEOF
10145
10146                 LIBADD_DL="$LIBADD_DL -ldld"
10147 else
10148   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10149 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10150 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10161 #define _dyld_func_lookup innocuous__dyld_func_lookup
10162
10163 /* System header to define __stub macros and hopefully few prototypes,
10164     which can conflict with char _dyld_func_lookup (); below.
10165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166     <limits.h> exists even on freestanding compilers.  */
10167
10168 #ifdef __STDC__
10169 # include <limits.h>
10170 #else
10171 # include <assert.h>
10172 #endif
10173
10174 #undef _dyld_func_lookup
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177    Use char because int might match the return type of a GCC
10178    builtin and then its argument prototype would still apply.  */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char _dyld_func_lookup ();
10183 /* The GNU C library defines this for functions which it implements
10184     to always fail with ENOSYS.  Some functions are actually named
10185     something starting with __ and the normal name is an alias.  */
10186 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10187 choke me
10188 #endif
10189
10190 int
10191 main ()
10192 {
10193 return _dyld_func_lookup ();
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_link") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } &&
10212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213   { (case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_try") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; } &&
10222          { ac_try='test -s conftest$ac_exeext'
10223   { (case "(($ac_try" in
10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225   *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228   (eval "$ac_try") 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_cv_func__dyld_func_lookup=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237         ac_cv_func__dyld_func_lookup=no
10238 fi
10239
10240 rm -f core conftest.err conftest.$ac_objext \
10241       conftest$ac_exeext conftest.$ac_ext
10242 fi
10243 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10244 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10245 if test $ac_cv_func__dyld_func_lookup = yes; then
10246
10247 cat >>confdefs.h <<\_ACEOF
10248 #define HAVE_DYLD 1
10249 _ACEOF
10250
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext \
10263       conftest$ac_exeext conftest.$ac_ext
10264
10265 fi
10266
10267
10268 fi
10269
10270
10271 fi
10272
10273
10274 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10275 then
10276   lt_save_LIBS="$LIBS"
10277   LIBS="$LIBS $LIBADD_DL"
10278
10279 for ac_func in dlerror
10280 do
10281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10285   echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287   cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10295 #define $ac_func innocuous_$ac_func
10296
10297 /* System header to define __stub macros and hopefully few prototypes,
10298     which can conflict with char $ac_func (); below.
10299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10300     <limits.h> exists even on freestanding compilers.  */
10301
10302 #ifdef __STDC__
10303 # include <limits.h>
10304 #else
10305 # include <assert.h>
10306 #endif
10307
10308 #undef $ac_func
10309
10310 /* Override any GCC internal prototype to avoid an error.
10311    Use char because int might match the return type of a GCC
10312    builtin and then its argument prototype would still apply.  */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char $ac_func ();
10317 /* The GNU C library defines this for functions which it implements
10318     to always fail with ENOSYS.  Some functions are actually named
10319     something starting with __ and the normal name is an alias.  */
10320 #if defined __stub_$ac_func || defined __stub___$ac_func
10321 choke me
10322 #endif
10323
10324 int
10325 main ()
10326 {
10327 return $ac_func ();
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_link") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347   { (case "(($ac_try" in
10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349   *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352   (eval "$ac_try") 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; } &&
10356          { ac_try='test -s conftest$ac_exeext'
10357   { (case "(($ac_try" in
10358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359   *) ac_try_echo=$ac_try;;
10360 esac
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362   (eval "$ac_try") 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; }; then
10366   eval "$as_ac_var=yes"
10367 else
10368   echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371         eval "$as_ac_var=no"
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext \
10375       conftest$ac_exeext conftest.$ac_ext
10376 fi
10377 ac_res=`eval echo '${'$as_ac_var'}'`
10378                { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10380 if test `eval echo '${'$as_ac_var'}'` = yes; then
10381   cat >>confdefs.h <<_ACEOF
10382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10383 _ACEOF
10384
10385 fi
10386 done
10387
10388   LIBS="$lt_save_LIBS"
10389 fi
10390 ac_ext=c
10391 ac_cpp='$CPP $CPPFLAGS'
10392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10395
10396
10397
10398 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10399 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10400 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   ac_cv_sys_symbol_underscore=no
10404   cat > conftest.$ac_ext <<EOF
10405 void nm_test_func(){}
10406 int main(){nm_test_func;return 0;}
10407 EOF
10408   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409   (eval $ac_compile) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; then
10413     # Now try to grab the symbols.
10414     ac_nlist=conftest.nm
10415     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10416   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } && test -s "$ac_nlist"; then
10420       # See whether the symbols have a leading underscore.
10421       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10422         ac_cv_sys_symbol_underscore=yes
10423       else
10424         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10425           :
10426         else
10427           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10428         fi
10429       fi
10430     else
10431       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10432     fi
10433   else
10434     echo "configure: failed program was:" >&5
10435     cat conftest.c >&5
10436   fi
10437   rm -rf conftest*
10438
10439 fi
10440 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10441 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10442
10443
10444 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10445   if test x"$libltdl_cv_func_dlopen" = xyes ||
10446      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10447         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10448 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10449 if test "${libltdl_cv_need_uscore+set}" = set; then
10450   echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452   libltdl_cv_need_uscore=unknown
10453           save_LIBS="$LIBS"
10454           LIBS="$LIBS $LIBADD_DL"
10455           if test "$cross_compiling" = yes; then :
10456   libltdl_cv_need_uscore=cross
10457 else
10458   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10459   lt_status=$lt_dlunknown
10460   cat > conftest.$ac_ext <<EOF
10461 #line 10461 "configure"
10462 #include "confdefs.h"
10463
10464 #if HAVE_DLFCN_H
10465 #include <dlfcn.h>
10466 #endif
10467
10468 #include <stdio.h>
10469
10470 #ifdef RTLD_GLOBAL
10471 #  define LT_DLGLOBAL           RTLD_GLOBAL
10472 #else
10473 #  ifdef DL_GLOBAL
10474 #    define LT_DLGLOBAL         DL_GLOBAL
10475 #  else
10476 #    define LT_DLGLOBAL         0
10477 #  endif
10478 #endif
10479
10480 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10481    find out it does not work in some platform. */
10482 #ifndef LT_DLLAZY_OR_NOW
10483 #  ifdef RTLD_LAZY
10484 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10485 #  else
10486 #    ifdef DL_LAZY
10487 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10488 #    else
10489 #      ifdef RTLD_NOW
10490 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10491 #      else
10492 #        ifdef DL_NOW
10493 #          define LT_DLLAZY_OR_NOW      DL_NOW
10494 #        else
10495 #          define LT_DLLAZY_OR_NOW      0
10496 #        endif
10497 #      endif
10498 #    endif
10499 #  endif
10500 #endif
10501
10502 #ifdef __cplusplus
10503 extern "C" void exit (int);
10504 #endif
10505
10506 void fnord() { int i=42;}
10507 int main ()
10508 {
10509   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10510   int status = $lt_dlunknown;
10511
10512   if (self)
10513     {
10514       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10515       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10516       /* dlclose (self); */
10517     }
10518   else
10519     puts (dlerror ());
10520
10521     exit (status);
10522 }
10523 EOF
10524   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525   (eval $ac_link) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10529     (./conftest; exit; ) >&5 2>/dev/null
10530     lt_status=$?
10531     case x$lt_status in
10532       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10533       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10534       x$lt_dlunknown|x*)  ;;
10535     esac
10536   else :
10537     # compilation failed
10538
10539   fi
10540 fi
10541 rm -fr conftest*
10542
10543           LIBS="$save_LIBS"
10544
10545 fi
10546 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10547 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10548   fi
10549 fi
10550
10551 if test x"$libltdl_cv_need_uscore" = xyes; then
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define NEED_USCORE 1
10555 _ACEOF
10556
10557 fi
10558
10559
10560 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10561 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10562 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565   # PORTME does your system automatically load deplibs for dlopen?
10566   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10567   # For now, we just catch OSes we know something about -- in the
10568   # future, we'll try test this programmatically.
10569   libltdl_cv_sys_dlopen_deplibs=unknown
10570   case "$host_os" in
10571   aix3*|aix4.1.*|aix4.2.*)
10572     # Unknown whether this is true for these versions of AIX, but
10573     # we want this `case' here to explicitly catch those versions.
10574     libltdl_cv_sys_dlopen_deplibs=unknown
10575     ;;
10576   aix[45]*)
10577     libltdl_cv_sys_dlopen_deplibs=yes
10578     ;;
10579   darwin*)
10580     # Assuming the user has installed a libdl from somewhere, this is true
10581     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10582     libltdl_cv_sys_dlopen_deplibs=yes
10583     ;;
10584   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10585     # GNU and its variants, using gnu ld.so (Glibc)
10586     libltdl_cv_sys_dlopen_deplibs=yes
10587     ;;
10588   hpux10*|hpux11*)
10589     libltdl_cv_sys_dlopen_deplibs=yes
10590     ;;
10591   interix*)
10592     libltdl_cv_sys_dlopen_deplibs=yes
10593     ;;
10594   irix[12345]*|irix6.[01]*)
10595     # Catch all versions of IRIX before 6.2, and indicate that we don't
10596     # know how it worked for any of those versions.
10597     libltdl_cv_sys_dlopen_deplibs=unknown
10598     ;;
10599   irix*)
10600     # The case above catches anything before 6.2, and it's known that
10601     # at 6.2 and later dlopen does load deplibs.
10602     libltdl_cv_sys_dlopen_deplibs=yes
10603     ;;
10604   netbsd*)
10605     libltdl_cv_sys_dlopen_deplibs=yes
10606     ;;
10607   openbsd*)
10608     libltdl_cv_sys_dlopen_deplibs=yes
10609     ;;
10610   osf[1234]*)
10611     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10612     # it did *not* use an RPATH in a shared library to find objects the
10613     # library depends on, so we explictly say `no'.
10614     libltdl_cv_sys_dlopen_deplibs=no
10615     ;;
10616   osf5.0|osf5.0a|osf5.1)
10617     # dlopen *does* load deplibs and with the right loader patch applied
10618     # it even uses RPATH in a shared library to search for shared objects
10619     # that the library depends on, but there's no easy way to know if that
10620     # patch is installed.  Since this is the case, all we can really
10621     # say is unknown -- it depends on the patch being installed.  If
10622     # it is, this changes to `yes'.  Without it, it would be `no'.
10623     libltdl_cv_sys_dlopen_deplibs=unknown
10624     ;;
10625   osf*)
10626     # the two cases above should catch all versions of osf <= 5.1.  Read
10627     # the comments above for what we know about them.
10628     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10629     # is used to find them so we can finally say `yes'.
10630     libltdl_cv_sys_dlopen_deplibs=yes
10631     ;;
10632   solaris*)
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10636     libltdl_cv_sys_dlopen_deplibs=yes
10637     ;;
10638   esac
10639
10640 fi
10641 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10642 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10643 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define LTDL_DLOPEN_DEPLIBS 1
10647 _ACEOF
10648
10649 fi
10650
10651
10652 for ac_header in argz.h
10653 do
10654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 fi
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662                { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10664 else
10665   # Is the header compilable?
10666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674 $ac_includes_default
10675 #include <$ac_header>
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684   (eval "$ac_compile") 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } &&
10691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692   { (case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697   (eval "$ac_try") 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; } &&
10701          { ac_try='test -s conftest.$ac_objext'
10702   { (case "(($ac_try" in
10703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704   *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707   (eval "$ac_try") 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; }; then
10711   ac_header_compiler=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716         ac_header_compiler=no
10717 fi
10718
10719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721 echo "${ECHO_T}$ac_header_compiler" >&6; }
10722
10723 # Is the header present?
10724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #include <$ac_header>
10733 _ACEOF
10734 if { (ac_try="$ac_cpp conftest.$ac_ext"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } >/dev/null; then
10747   if test -s conftest.err; then
10748     ac_cpp_err=$ac_c_preproc_warn_flag
10749     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10750   else
10751     ac_cpp_err=
10752   fi
10753 else
10754   ac_cpp_err=yes
10755 fi
10756 if test -z "$ac_cpp_err"; then
10757   ac_header_preproc=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762   ac_header_preproc=no
10763 fi
10764
10765 rm -f conftest.err conftest.$ac_ext
10766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10767 echo "${ECHO_T}$ac_header_preproc" >&6; }
10768
10769 # So?  What about this header?
10770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10771   yes:no: )
10772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10776     ac_header_preproc=yes
10777     ;;
10778   no:yes:* )
10779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10791     ( cat <<\_ASBOX
10792 ## ----------------------------------- ##
10793 ## Report this to llvmbugs@cs.uiuc.edu ##
10794 ## ----------------------------------- ##
10795 _ASBOX
10796      ) | sed "s/^/$as_me: WARNING:     /" >&2
10797     ;;
10798 esac
10799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   eval "$as_ac_Header=\$ac_header_preproc"
10805 fi
10806 ac_res=`eval echo '${'$as_ac_Header'}'`
10807                { echo "$as_me:$LINENO: result: $ac_res" >&5
10808 echo "${ECHO_T}$ac_res" >&6; }
10809
10810 fi
10811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812   cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817
10818 done
10819
10820
10821 { echo "$as_me:$LINENO: checking for error_t" >&5
10822 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10823 if test "${ac_cv_type_error_t+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 #if HAVE_ARGZ_H
10833 #  include <argz.h>
10834 #endif
10835
10836 typedef error_t ac__type_new_;
10837 int
10838 main ()
10839 {
10840 if ((ac__type_new_ *) 0)
10841   return 0;
10842 if (sizeof (ac__type_new_))
10843   return 0;
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 rm -f conftest.$ac_objext
10849 if { (ac_try="$ac_compile"
10850 case "(($ac_try" in
10851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852   *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855   (eval "$ac_compile") 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } &&
10862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863   { (case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_try") 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; } &&
10872          { ac_try='test -s conftest.$ac_objext'
10873   { (case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_try") 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; }; then
10882   ac_cv_type_error_t=yes
10883 else
10884   echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887         ac_cv_type_error_t=no
10888 fi
10889
10890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891 fi
10892 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10893 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10894 if test $ac_cv_type_error_t = yes; then
10895
10896 cat >>confdefs.h <<_ACEOF
10897 #define HAVE_ERROR_T 1
10898 _ACEOF
10899
10900
10901 else
10902
10903 cat >>confdefs.h <<\_ACEOF
10904 #define error_t int
10905 _ACEOF
10906
10907 fi
10908
10909
10910
10911
10912
10913
10914
10915 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10916 do
10917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10931 #define $ac_func innocuous_$ac_func
10932
10933 /* System header to define __stub macros and hopefully few prototypes,
10934     which can conflict with char $ac_func (); below.
10935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936     <limits.h> exists even on freestanding compilers.  */
10937
10938 #ifdef __STDC__
10939 # include <limits.h>
10940 #else
10941 # include <assert.h>
10942 #endif
10943
10944 #undef $ac_func
10945
10946 /* Override any GCC internal prototype to avoid an error.
10947    Use char because int might match the return type of a GCC
10948    builtin and then its argument prototype would still apply.  */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char $ac_func ();
10953 /* The GNU C library defines this for functions which it implements
10954     to always fail with ENOSYS.  Some functions are actually named
10955     something starting with __ and the normal name is an alias.  */
10956 #if defined __stub_$ac_func || defined __stub___$ac_func
10957 choke me
10958 #endif
10959
10960 int
10961 main ()
10962 {
10963 return $ac_func ();
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975   (eval "$ac_link") 2>conftest.er1
10976   ac_status=$?
10977   grep -v '^ *+' conftest.er1 >conftest.err
10978   rm -f conftest.er1
10979   cat conftest.err >&5
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); } &&
10982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983   { (case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_try") 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }; } &&
10992          { ac_try='test -s conftest$ac_exeext'
10993   { (case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_try") 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   eval "$as_ac_var=yes"
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007         eval "$as_ac_var=no"
11008 fi
11009
11010 rm -f core conftest.err conftest.$ac_objext \
11011       conftest$ac_exeext conftest.$ac_ext
11012 fi
11013 ac_res=`eval echo '${'$as_ac_var'}'`
11014                { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11016 if test `eval echo '${'$as_ac_var'}'` = yes; then
11017   cat >>confdefs.h <<_ACEOF
11018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11019 _ACEOF
11020
11021 fi
11022 done
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11052                   stdio.h unistd.h
11053 do
11054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 fi
11061 ac_res=`eval echo '${'$as_ac_Header'}'`
11062                { echo "$as_me:$LINENO: result: $ac_res" >&5
11063 echo "${ECHO_T}$ac_res" >&6; }
11064 else
11065   # Is the header compilable?
11066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h.  */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h.  */
11074 $ac_includes_default
11075 #include <$ac_header>
11076 _ACEOF
11077 rm -f conftest.$ac_objext
11078 if { (ac_try="$ac_compile"
11079 case "(($ac_try" in
11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081   *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084   (eval "$ac_compile") 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } &&
11091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11092   { (case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_try") 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; } &&
11101          { ac_try='test -s conftest.$ac_objext'
11102   { (case "(($ac_try" in
11103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104   *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107   (eval "$ac_try") 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   ac_header_compiler=yes
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116         ac_header_compiler=no
11117 fi
11118
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11121 echo "${ECHO_T}$ac_header_compiler" >&6; }
11122
11123 # Is the header present?
11124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 #include <$ac_header>
11133 _ACEOF
11134 if { (ac_try="$ac_cpp conftest.$ac_ext"
11135 case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11141   ac_status=$?
11142   grep -v '^ *+' conftest.er1 >conftest.err
11143   rm -f conftest.er1
11144   cat conftest.err >&5
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } >/dev/null; then
11147   if test -s conftest.err; then
11148     ac_cpp_err=$ac_c_preproc_warn_flag
11149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11150   else
11151     ac_cpp_err=
11152   fi
11153 else
11154   ac_cpp_err=yes
11155 fi
11156 if test -z "$ac_cpp_err"; then
11157   ac_header_preproc=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162   ac_header_preproc=no
11163 fi
11164
11165 rm -f conftest.err conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6; }
11168
11169 # So?  What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171   yes:no: )
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176     ac_header_preproc=yes
11177     ;;
11178   no:yes:* )
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191     ( cat <<\_ASBOX
11192 ## ----------------------------------- ##
11193 ## Report this to llvmbugs@cs.uiuc.edu ##
11194 ## ----------------------------------- ##
11195 _ASBOX
11196      ) | sed "s/^/$as_me: WARNING:     /" >&2
11197     ;;
11198 esac
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   eval "$as_ac_Header=\$ac_header_preproc"
11205 fi
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207                { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209
11210 fi
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212   cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 _ACEOF
11215
11216 fi
11217
11218 done
11219
11220
11221
11222
11223
11224 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11225 do
11226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 fi
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234                { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236 else
11237   # Is the header compilable?
11238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246 $ac_includes_default
11247 #include <$ac_header>
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_compile") 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264   { (case "(($ac_try" in
11265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266   *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269   (eval "$ac_try") 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); }; } &&
11273          { ac_try='test -s conftest.$ac_objext'
11274   { (case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_try") 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   ac_header_compiler=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288         ac_header_compiler=no
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6; }
11294
11295 # Is the header present?
11296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304 #include <$ac_header>
11305 _ACEOF
11306 if { (ac_try="$ac_cpp conftest.$ac_ext"
11307 case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } >/dev/null; then
11319   if test -s conftest.err; then
11320     ac_cpp_err=$ac_c_preproc_warn_flag
11321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11322   else
11323     ac_cpp_err=
11324   fi
11325 else
11326   ac_cpp_err=yes
11327 fi
11328 if test -z "$ac_cpp_err"; then
11329   ac_header_preproc=yes
11330 else
11331   echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334   ac_header_preproc=no
11335 fi
11336
11337 rm -f conftest.err conftest.$ac_ext
11338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339 echo "${ECHO_T}$ac_header_preproc" >&6; }
11340
11341 # So?  What about this header?
11342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343   yes:no: )
11344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348     ac_header_preproc=yes
11349     ;;
11350   no:yes:* )
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11363     ( cat <<\_ASBOX
11364 ## ----------------------------------- ##
11365 ## Report this to llvmbugs@cs.uiuc.edu ##
11366 ## ----------------------------------- ##
11367 _ASBOX
11368      ) | sed "s/^/$as_me: WARNING:     /" >&2
11369     ;;
11370 esac
11371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   eval "$as_ac_Header=\$ac_header_preproc"
11377 fi
11378 ac_res=`eval echo '${'$as_ac_Header'}'`
11379                { echo "$as_me:$LINENO: result: $ac_res" >&5
11380 echo "${ECHO_T}$ac_res" >&6; }
11381
11382 fi
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384   cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 _ACEOF
11387
11388 fi
11389
11390 done
11391
11392
11393
11394 for ac_header in string.h strings.h
11395 do
11396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 fi
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404                { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 else
11407   # Is the header compilable?
11408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 $ac_includes_default
11417 #include <$ac_header>
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_compile") 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434   { (case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_try") 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; } &&
11443          { ac_try='test -s conftest.$ac_objext'
11444   { (case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_try") 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; }; then
11453   ac_header_compiler=yes
11454 else
11455   echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458         ac_header_compiler=no
11459 fi
11460
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463 echo "${ECHO_T}$ac_header_compiler" >&6; }
11464
11465 # Is the header present?
11466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h.  */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h.  */
11474 #include <$ac_header>
11475 _ACEOF
11476 if { (ac_try="$ac_cpp conftest.$ac_ext"
11477 case "(($ac_try" in
11478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479   *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11483   ac_status=$?
11484   grep -v '^ *+' conftest.er1 >conftest.err
11485   rm -f conftest.er1
11486   cat conftest.err >&5
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } >/dev/null; then
11489   if test -s conftest.err; then
11490     ac_cpp_err=$ac_c_preproc_warn_flag
11491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11492   else
11493     ac_cpp_err=
11494   fi
11495 else
11496   ac_cpp_err=yes
11497 fi
11498 if test -z "$ac_cpp_err"; then
11499   ac_header_preproc=yes
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504   ac_header_preproc=no
11505 fi
11506
11507 rm -f conftest.err conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509 echo "${ECHO_T}$ac_header_preproc" >&6; }
11510
11511 # So?  What about this header?
11512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11513   yes:no: )
11514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518     ac_header_preproc=yes
11519     ;;
11520   no:yes:* )
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11533     ( cat <<\_ASBOX
11534 ## ----------------------------------- ##
11535 ## Report this to llvmbugs@cs.uiuc.edu ##
11536 ## ----------------------------------- ##
11537 _ASBOX
11538      ) | sed "s/^/$as_me: WARNING:     /" >&2
11539     ;;
11540 esac
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   eval "$as_ac_Header=\$ac_header_preproc"
11547 fi
11548 ac_res=`eval echo '${'$as_ac_Header'}'`
11549                { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551
11552 fi
11553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11554   cat >>confdefs.h <<_ACEOF
11555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11556 _ACEOF
11557  break
11558 fi
11559
11560 done
11561
11562
11563
11564
11565 for ac_func in strchr index
11566 do
11567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11581 #define $ac_func innocuous_$ac_func
11582
11583 /* System header to define __stub macros and hopefully few prototypes,
11584     which can conflict with char $ac_func (); below.
11585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11586     <limits.h> exists even on freestanding compilers.  */
11587
11588 #ifdef __STDC__
11589 # include <limits.h>
11590 #else
11591 # include <assert.h>
11592 #endif
11593
11594 #undef $ac_func
11595
11596 /* Override any GCC internal prototype to avoid an error.
11597    Use char because int might match the return type of a GCC
11598    builtin and then its argument prototype would still apply.  */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 char $ac_func ();
11603 /* The GNU C library defines this for functions which it implements
11604     to always fail with ENOSYS.  Some functions are actually named
11605     something starting with __ and the normal name is an alias.  */
11606 #if defined __stub_$ac_func || defined __stub___$ac_func
11607 choke me
11608 #endif
11609
11610 int
11611 main ()
11612 {
11613 return $ac_func ();
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (ac_try="$ac_link"
11620 case "(($ac_try" in
11621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622   *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625   (eval "$ac_link") 2>conftest.er1
11626   ac_status=$?
11627   grep -v '^ *+' conftest.er1 >conftest.err
11628   rm -f conftest.er1
11629   cat conftest.err >&5
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); } &&
11632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633   { (case "(($ac_try" in
11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635   *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638   (eval "$ac_try") 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; } &&
11642          { ac_try='test -s conftest$ac_exeext'
11643   { (case "(($ac_try" in
11644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645   *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648   (eval "$ac_try") 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   eval "$as_ac_var=yes"
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657         eval "$as_ac_var=no"
11658 fi
11659
11660 rm -f core conftest.err conftest.$ac_objext \
11661       conftest$ac_exeext conftest.$ac_ext
11662 fi
11663 ac_res=`eval echo '${'$as_ac_var'}'`
11664                { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11666 if test `eval echo '${'$as_ac_var'}'` = yes; then
11667   cat >>confdefs.h <<_ACEOF
11668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11669 _ACEOF
11670  break
11671 fi
11672 done
11673
11674
11675
11676 for ac_func in strrchr rindex
11677 do
11678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11692 #define $ac_func innocuous_$ac_func
11693
11694 /* System header to define __stub macros and hopefully few prototypes,
11695     which can conflict with char $ac_func (); below.
11696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697     <limits.h> exists even on freestanding compilers.  */
11698
11699 #ifdef __STDC__
11700 # include <limits.h>
11701 #else
11702 # include <assert.h>
11703 #endif
11704
11705 #undef $ac_func
11706
11707 /* Override any GCC internal prototype to avoid an error.
11708    Use char because int might match the return type of a GCC
11709    builtin and then its argument prototype would still apply.  */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 char $ac_func ();
11714 /* The GNU C library defines this for functions which it implements
11715     to always fail with ENOSYS.  Some functions are actually named
11716     something starting with __ and the normal name is an alias.  */
11717 #if defined __stub_$ac_func || defined __stub___$ac_func
11718 choke me
11719 #endif
11720
11721 int
11722 main ()
11723 {
11724 return $ac_func ();
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736   (eval "$ac_link") 2>conftest.er1
11737   ac_status=$?
11738   grep -v '^ *+' conftest.er1 >conftest.err
11739   rm -f conftest.er1
11740   cat conftest.err >&5
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); } &&
11743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11744   { (case "(($ac_try" in
11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746   *) ac_try_echo=$ac_try;;
11747 esac
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749   (eval "$ac_try") 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; } &&
11753          { ac_try='test -s conftest$ac_exeext'
11754   { (case "(($ac_try" in
11755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756   *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759   (eval "$ac_try") 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; }; then
11763   eval "$as_ac_var=yes"
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768         eval "$as_ac_var=no"
11769 fi
11770
11771 rm -f core conftest.err conftest.$ac_objext \
11772       conftest$ac_exeext conftest.$ac_ext
11773 fi
11774 ac_res=`eval echo '${'$as_ac_var'}'`
11775                { echo "$as_me:$LINENO: result: $ac_res" >&5
11776 echo "${ECHO_T}$ac_res" >&6; }
11777 if test `eval echo '${'$as_ac_var'}'` = yes; then
11778   cat >>confdefs.h <<_ACEOF
11779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11780 _ACEOF
11781  break
11782 fi
11783 done
11784
11785
11786
11787 for ac_func in memcpy bcopy
11788 do
11789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795   cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11803 #define $ac_func innocuous_$ac_func
11804
11805 /* System header to define __stub macros and hopefully few prototypes,
11806     which can conflict with char $ac_func (); below.
11807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11808     <limits.h> exists even on freestanding compilers.  */
11809
11810 #ifdef __STDC__
11811 # include <limits.h>
11812 #else
11813 # include <assert.h>
11814 #endif
11815
11816 #undef $ac_func
11817
11818 /* Override any GCC internal prototype to avoid an error.
11819    Use char because int might match the return type of a GCC
11820    builtin and then its argument prototype would still apply.  */
11821 #ifdef __cplusplus
11822 extern "C"
11823 #endif
11824 char $ac_func ();
11825 /* The GNU C library defines this for functions which it implements
11826     to always fail with ENOSYS.  Some functions are actually named
11827     something starting with __ and the normal name is an alias.  */
11828 #if defined __stub_$ac_func || defined __stub___$ac_func
11829 choke me
11830 #endif
11831
11832 int
11833 main ()
11834 {
11835 return $ac_func ();
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (ac_try="$ac_link"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_link") 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } &&
11854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855   { (case "(($ac_try" in
11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857   *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860   (eval "$ac_try") 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest$ac_exeext'
11865   { (case "(($ac_try" in
11866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867   *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870   (eval "$ac_try") 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   eval "$as_ac_var=yes"
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879         eval "$as_ac_var=no"
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext \
11883       conftest$ac_exeext conftest.$ac_ext
11884 fi
11885 ac_res=`eval echo '${'$as_ac_var'}'`
11886                { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11888 if test `eval echo '${'$as_ac_var'}'` = yes; then
11889   cat >>confdefs.h <<_ACEOF
11890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11891 _ACEOF
11892  break
11893 fi
11894 done
11895
11896
11897
11898 for ac_func in memmove strcmp
11899 do
11900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11914 #define $ac_func innocuous_$ac_func
11915
11916 /* System header to define __stub macros and hopefully few prototypes,
11917     which can conflict with char $ac_func (); below.
11918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919     <limits.h> exists even on freestanding compilers.  */
11920
11921 #ifdef __STDC__
11922 # include <limits.h>
11923 #else
11924 # include <assert.h>
11925 #endif
11926
11927 #undef $ac_func
11928
11929 /* Override any GCC internal prototype to avoid an error.
11930    Use char because int might match the return type of a GCC
11931    builtin and then its argument prototype would still apply.  */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 char $ac_func ();
11936 /* The GNU C library defines this for functions which it implements
11937     to always fail with ENOSYS.  Some functions are actually named
11938     something starting with __ and the normal name is an alias.  */
11939 #if defined __stub_$ac_func || defined __stub___$ac_func
11940 choke me
11941 #endif
11942
11943 int
11944 main ()
11945 {
11946 return $ac_func ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955   *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958   (eval "$ac_link") 2>conftest.er1
11959   ac_status=$?
11960   grep -v '^ *+' conftest.er1 >conftest.err
11961   rm -f conftest.er1
11962   cat conftest.err >&5
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); } &&
11965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966   { (case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971   (eval "$ac_try") 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; } &&
11975          { ac_try='test -s conftest$ac_exeext'
11976   { (case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_try") 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; }; then
11985   eval "$as_ac_var=yes"
11986 else
11987   echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990         eval "$as_ac_var=no"
11991 fi
11992
11993 rm -f core conftest.err conftest.$ac_objext \
11994       conftest$ac_exeext conftest.$ac_ext
11995 fi
11996 ac_res=`eval echo '${'$as_ac_var'}'`
11997                { echo "$as_me:$LINENO: result: $ac_res" >&5
11998 echo "${ECHO_T}$ac_res" >&6; }
11999 if test `eval echo '${'$as_ac_var'}'` = yes; then
12000   cat >>confdefs.h <<_ACEOF
12001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002 _ACEOF
12003
12004 fi
12005 done
12006
12007
12008
12009
12010 for ac_func in closedir opendir readdir
12011 do
12012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12026 #define $ac_func innocuous_$ac_func
12027
12028 /* System header to define __stub macros and hopefully few prototypes,
12029     which can conflict with char $ac_func (); below.
12030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031     <limits.h> exists even on freestanding compilers.  */
12032
12033 #ifdef __STDC__
12034 # include <limits.h>
12035 #else
12036 # include <assert.h>
12037 #endif
12038
12039 #undef $ac_func
12040
12041 /* Override any GCC internal prototype to avoid an error.
12042    Use char because int might match the return type of a GCC
12043    builtin and then its argument prototype would still apply.  */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char $ac_func ();
12048 /* The GNU C library defines this for functions which it implements
12049     to always fail with ENOSYS.  Some functions are actually named
12050     something starting with __ and the normal name is an alias.  */
12051 #if defined __stub_$ac_func || defined __stub___$ac_func
12052 choke me
12053 #endif
12054
12055 int
12056 main ()
12057 {
12058 return $ac_func ();
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067   *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070   (eval "$ac_link") 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; } &&
12087          { ac_try='test -s conftest$ac_exeext'
12088   { (case "(($ac_try" in
12089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090   *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093   (eval "$ac_try") 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; }; then
12097   eval "$as_ac_var=yes"
12098 else
12099   echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102         eval "$as_ac_var=no"
12103 fi
12104
12105 rm -f core conftest.err conftest.$ac_objext \
12106       conftest$ac_exeext conftest.$ac_ext
12107 fi
12108 ac_res=`eval echo '${'$as_ac_var'}'`
12109                { echo "$as_me:$LINENO: result: $ac_res" >&5
12110 echo "${ECHO_T}$ac_res" >&6; }
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112   cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114 _ACEOF
12115
12116 fi
12117 done
12118
12119
12120 # Check whether --enable-shared was given.
12121 if test "${enable_shared+set}" = set; then
12122   enableval=$enable_shared; p=${PACKAGE-default}
12123     case $enableval in
12124     yes) enable_shared=yes ;;
12125     no) enable_shared=no ;;
12126     *)
12127       enable_shared=no
12128       # Look at the argument we got.  We use all the common list separators.
12129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12130       for pkg in $enableval; do
12131         IFS="$lt_save_ifs"
12132         if test "X$pkg" = "X$p"; then
12133           enable_shared=yes
12134         fi
12135       done
12136       IFS="$lt_save_ifs"
12137       ;;
12138     esac
12139 else
12140   enable_shared=yes
12141 fi
12142
12143
12144 # Check whether --enable-static was given.
12145 if test "${enable_static+set}" = set; then
12146   enableval=$enable_static; p=${PACKAGE-default}
12147     case $enableval in
12148     yes) enable_static=yes ;;
12149     no) enable_static=no ;;
12150     *)
12151      enable_static=no
12152       # Look at the argument we got.  We use all the common list separators.
12153       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12154       for pkg in $enableval; do
12155         IFS="$lt_save_ifs"
12156         if test "X$pkg" = "X$p"; then
12157           enable_static=yes
12158         fi
12159       done
12160       IFS="$lt_save_ifs"
12161       ;;
12162     esac
12163 else
12164   enable_static=yes
12165 fi
12166
12167
12168 # Check whether --enable-fast-install was given.
12169 if test "${enable_fast_install+set}" = set; then
12170   enableval=$enable_fast_install; p=${PACKAGE-default}
12171     case $enableval in
12172     yes) enable_fast_install=yes ;;
12173     no) enable_fast_install=no ;;
12174     *)
12175       enable_fast_install=no
12176       # Look at the argument we got.  We use all the common list separators.
12177       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12178       for pkg in $enableval; do
12179         IFS="$lt_save_ifs"
12180         if test "X$pkg" = "X$p"; then
12181           enable_fast_install=yes
12182         fi
12183       done
12184       IFS="$lt_save_ifs"
12185       ;;
12186     esac
12187 else
12188   enable_fast_install=yes
12189 fi
12190
12191
12192 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12193 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12194 if test "${lt_cv_path_SED+set}" = set; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   # Loop through the user's path and test for sed and gsed.
12198 # Then use that list of sed's as ones to test for truncation.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12201 do
12202   IFS=$as_save_IFS
12203   test -z "$as_dir" && as_dir=.
12204   for lt_ac_prog in sed gsed; do
12205     for ac_exec_ext in '' $ac_executable_extensions; do
12206       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12207         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12208       fi
12209     done
12210   done
12211 done
12212 lt_ac_max=0
12213 lt_ac_count=0
12214 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12215 # along with /bin/sed that truncates output.
12216 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12217   test ! -f $lt_ac_sed && continue
12218   cat /dev/null > conftest.in
12219   lt_ac_count=0
12220   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12221   # Check for GNU sed and select it if it is found.
12222   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12223     lt_cv_path_SED=$lt_ac_sed
12224     break
12225   fi
12226   while true; do
12227     cat conftest.in conftest.in >conftest.tmp
12228     mv conftest.tmp conftest.in
12229     cp conftest.in conftest.nl
12230     echo >>conftest.nl
12231     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12232     cmp -s conftest.out conftest.nl || break
12233     # 10000 chars as input seems more than enough
12234     test $lt_ac_count -gt 10 && break
12235     lt_ac_count=`expr $lt_ac_count + 1`
12236     if test $lt_ac_count -gt $lt_ac_max; then
12237       lt_ac_max=$lt_ac_count
12238       lt_cv_path_SED=$lt_ac_sed
12239     fi
12240   done
12241 done
12242
12243 fi
12244
12245 SED=$lt_cv_path_SED
12246 { echo "$as_me:$LINENO: result: $SED" >&5
12247 echo "${ECHO_T}$SED" >&6; }
12248
12249
12250 # Check whether --with-gnu-ld was given.
12251 if test "${with_gnu_ld+set}" = set; then
12252   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12253 else
12254   with_gnu_ld=no
12255 fi
12256
12257 ac_prog=ld
12258 if test "$GCC" = yes; then
12259   # Check if gcc -print-prog-name=ld gives a path.
12260   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12261 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12262   case $host in
12263   *-*-mingw*)
12264     # gcc leaves a trailing carriage return which upsets mingw
12265     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12266   *)
12267     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12268   esac
12269   case $ac_prog in
12270     # Accept absolute paths.
12271     [\\/]* | ?:[\\/]*)
12272       re_direlt='/[^/][^/]*/\.\./'
12273       # Canonicalize the pathname of ld
12274       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12275       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12276         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12277       done
12278       test -z "$LD" && LD="$ac_prog"
12279       ;;
12280   "")
12281     # If it fails, then pretend we aren't using GCC.
12282     ac_prog=ld
12283     ;;
12284   *)
12285     # If it is relative, then search for the first ld in PATH.
12286     with_gnu_ld=unknown
12287     ;;
12288   esac
12289 elif test "$with_gnu_ld" = yes; then
12290   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12291 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12292 else
12293   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12294 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12295 fi
12296 if test "${lt_cv_path_LD+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   if test -z "$LD"; then
12300   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12301   for ac_dir in $PATH; do
12302     IFS="$lt_save_ifs"
12303     test -z "$ac_dir" && ac_dir=.
12304     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12305       lt_cv_path_LD="$ac_dir/$ac_prog"
12306       # Check to see if the program is GNU ld.  I'd rather use --version,
12307       # but apparently some variants of GNU ld only accept -v.
12308       # Break only if it was the GNU/non-GNU ld that we prefer.
12309       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12310       *GNU* | *'with BFD'*)
12311         test "$with_gnu_ld" != no && break
12312         ;;
12313       *)
12314         test "$with_gnu_ld" != yes && break
12315         ;;
12316       esac
12317     fi
12318   done
12319   IFS="$lt_save_ifs"
12320 else
12321   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12322 fi
12323 fi
12324
12325 LD="$lt_cv_path_LD"
12326 if test -n "$LD"; then
12327   { echo "$as_me:$LINENO: result: $LD" >&5
12328 echo "${ECHO_T}$LD" >&6; }
12329 else
12330   { echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6; }
12332 fi
12333 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12334 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12335    { (exit 1); exit 1; }; }
12336 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12337 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU* | *'with BFD'*)
12344   lt_cv_prog_gnu_ld=yes
12345   ;;
12346 *)
12347   lt_cv_prog_gnu_ld=no
12348   ;;
12349 esac
12350 fi
12351 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12352 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld=$lt_cv_prog_gnu_ld
12354
12355
12356 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12357 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12358 if test "${lt_cv_ld_reload_flag+set}" = set; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361   lt_cv_ld_reload_flag='-r'
12362 fi
12363 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12364 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12365 reload_flag=$lt_cv_ld_reload_flag
12366 case $reload_flag in
12367 "" | " "*) ;;
12368 *) reload_flag=" $reload_flag" ;;
12369 esac
12370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12371 case $host_os in
12372   darwin*)
12373     if test "$GCC" = yes; then
12374       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12375     else
12376       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12377     fi
12378     ;;
12379 esac
12380
12381 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12382 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12383 if test "${lt_cv_deplibs_check_method+set}" = set; then
12384   echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386   lt_cv_file_magic_cmd='$MAGIC_CMD'
12387 lt_cv_file_magic_test_file=
12388 lt_cv_deplibs_check_method='unknown'
12389 # Need to set the preceding variable on all platforms that support
12390 # interlibrary dependencies.
12391 # 'none' -- dependencies not supported.
12392 # `unknown' -- same as none, but documents that we really don't know.
12393 # 'pass_all' -- all dependencies passed with no checks.
12394 # 'test_compile' -- check by making test program.
12395 # 'file_magic [[regex]]' -- check by looking for files in library path
12396 # which responds to the $file_magic_cmd with a given extended regex.
12397 # If you have `file' or equivalent on your system and you're not sure
12398 # whether `pass_all' will *always* work, you probably want this one.
12399
12400 case $host_os in
12401 aix4* | aix5*)
12402   lt_cv_deplibs_check_method=pass_all
12403   ;;
12404
12405 beos*)
12406   lt_cv_deplibs_check_method=pass_all
12407   ;;
12408
12409 bsdi[45]*)
12410   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12411   lt_cv_file_magic_cmd='/usr/bin/file -L'
12412   lt_cv_file_magic_test_file=/shlib/libc.so
12413   ;;
12414
12415 cygwin*)
12416   # func_win32_libid is a shell function defined in ltmain.sh
12417   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12418   lt_cv_file_magic_cmd='func_win32_libid'
12419   ;;
12420
12421 mingw* | pw32*)
12422   # Base MSYS/MinGW do not provide the 'file' command needed by
12423   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12424   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12425   lt_cv_file_magic_cmd='$OBJDUMP -f'
12426   ;;
12427
12428 darwin* | rhapsody*)
12429   lt_cv_deplibs_check_method=pass_all
12430   ;;
12431
12432 freebsd* | kfreebsd*-gnu | dragonfly*)
12433   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12434     case $host_cpu in
12435     i*86 )
12436       # Not sure whether the presence of OpenBSD here was a mistake.
12437       # Let's accept both of them until this is cleared up.
12438       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12439       lt_cv_file_magic_cmd=/usr/bin/file
12440       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12441       ;;
12442     esac
12443   else
12444     lt_cv_deplibs_check_method=pass_all
12445   fi
12446   ;;
12447
12448 gnu*)
12449   lt_cv_deplibs_check_method=pass_all
12450   ;;
12451
12452 hpux10.20* | hpux11*)
12453   lt_cv_file_magic_cmd=/usr/bin/file
12454   case $host_cpu in
12455   ia64*)
12456     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12457     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12458     ;;
12459   hppa*64*)
12460     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]'
12461     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12462     ;;
12463   *)
12464     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12465     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12466     ;;
12467   esac
12468   ;;
12469
12470 interix3*)
12471   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12472   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12473   ;;
12474
12475 irix5* | irix6* | nonstopux*)
12476   case $LD in
12477   *-32|*"-32 ") libmagic=32-bit;;
12478   *-n32|*"-n32 ") libmagic=N32;;
12479   *-64|*"-64 ") libmagic=64-bit;;
12480   *) libmagic=never-match;;
12481   esac
12482   lt_cv_deplibs_check_method=pass_all
12483   ;;
12484
12485 # This must be Linux ELF.
12486 linux*)
12487   lt_cv_deplibs_check_method=pass_all
12488   ;;
12489
12490 netbsd*)
12491   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12493   else
12494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12495   fi
12496   ;;
12497
12498 newos6*)
12499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12500   lt_cv_file_magic_cmd=/usr/bin/file
12501   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12502   ;;
12503
12504 nto-qnx*)
12505   lt_cv_deplibs_check_method=unknown
12506   ;;
12507
12508 openbsd*)
12509   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12511   else
12512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12513   fi
12514   ;;
12515
12516 osf3* | osf4* | osf5*)
12517   lt_cv_deplibs_check_method=pass_all
12518   ;;
12519
12520 solaris*)
12521   lt_cv_deplibs_check_method=pass_all
12522   ;;
12523
12524 sysv4 | sysv4.3*)
12525   case $host_vendor in
12526   motorola)
12527     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]'
12528     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12529     ;;
12530   ncr)
12531     lt_cv_deplibs_check_method=pass_all
12532     ;;
12533   sequent)
12534     lt_cv_file_magic_cmd='/bin/file'
12535     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12536     ;;
12537   sni)
12538     lt_cv_file_magic_cmd='/bin/file'
12539     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12540     lt_cv_file_magic_test_file=/lib/libc.so
12541     ;;
12542   siemens)
12543     lt_cv_deplibs_check_method=pass_all
12544     ;;
12545   pc)
12546     lt_cv_deplibs_check_method=pass_all
12547     ;;
12548   esac
12549   ;;
12550
12551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12552   lt_cv_deplibs_check_method=pass_all
12553   ;;
12554 esac
12555
12556 fi
12557 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12558 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12559 file_magic_cmd=$lt_cv_file_magic_cmd
12560 deplibs_check_method=$lt_cv_deplibs_check_method
12561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12562
12563
12564
12565 # If no C compiler was specified, use CC.
12566 LTCC=${LTCC-"$CC"}
12567
12568 # If no C compiler flags were specified, use CFLAGS.
12569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12570
12571 # Allow CC to be a program name with arguments.
12572 compiler=$CC
12573
12574 # Check whether --enable-libtool-lock was given.
12575 if test "${enable_libtool_lock+set}" = set; then
12576   enableval=$enable_libtool_lock;
12577 fi
12578
12579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12580
12581 # Some flags need to be propagated to the compiler or linker for good
12582 # libtool support.
12583 case $host in
12584 ia64-*-hpux*)
12585   # Find out which ABI we are using.
12586   echo 'int i;' > conftest.$ac_ext
12587   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588   (eval $ac_compile) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; then
12592     case `/usr/bin/file conftest.$ac_objext` in
12593     *ELF-32*)
12594       HPUX_IA64_MODE="32"
12595       ;;
12596     *ELF-64*)
12597       HPUX_IA64_MODE="64"
12598       ;;
12599     esac
12600   fi
12601   rm -rf conftest*
12602   ;;
12603 *-*-irix6*)
12604   # Find out which ABI we are using.
12605   echo '#line 12605 "configure"' > conftest.$ac_ext
12606   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607   (eval $ac_compile) 2>&5
12608   ac_status=$?
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); }; then
12611    if test "$lt_cv_prog_gnu_ld" = yes; then
12612     case `/usr/bin/file conftest.$ac_objext` in
12613     *32-bit*)
12614       LD="${LD-ld} -melf32bsmip"
12615       ;;
12616     *N32*)
12617       LD="${LD-ld} -melf32bmipn32"
12618       ;;
12619     *64-bit*)
12620       LD="${LD-ld} -melf64bmip"
12621       ;;
12622     esac
12623    else
12624     case `/usr/bin/file conftest.$ac_objext` in
12625     *32-bit*)
12626       LD="${LD-ld} -32"
12627       ;;
12628     *N32*)
12629       LD="${LD-ld} -n32"
12630       ;;
12631     *64-bit*)
12632       LD="${LD-ld} -64"
12633       ;;
12634     esac
12635    fi
12636   fi
12637   rm -rf conftest*
12638   ;;
12639
12640 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12641   # Find out which ABI we are using.
12642   echo 'int i;' > conftest.$ac_ext
12643   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644   (eval $ac_compile) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; then
12648     case `/usr/bin/file conftest.o` in
12649     *32-bit*)
12650       case $host in
12651         x86_64-*linux*)
12652           LD="${LD-ld} -m elf_i386"
12653           ;;
12654         ppc64-*linux*|powerpc64-*linux*)
12655           LD="${LD-ld} -m elf32ppclinux"
12656           ;;
12657         s390x-*linux*)
12658           LD="${LD-ld} -m elf_s390"
12659           ;;
12660         sparc64-*linux*)
12661           LD="${LD-ld} -m elf32_sparc"
12662           ;;
12663       esac
12664       ;;
12665     *64-bit*)
12666       case $host in
12667         x86_64-*linux*)
12668           LD="${LD-ld} -m elf_x86_64"
12669           ;;
12670         ppc*-*linux*|powerpc*-*linux*)
12671           LD="${LD-ld} -m elf64ppc"
12672           ;;
12673         s390*-*linux*)
12674           LD="${LD-ld} -m elf64_s390"
12675           ;;
12676         sparc*-*linux*)
12677           LD="${LD-ld} -m elf64_sparc"
12678           ;;
12679       esac
12680       ;;
12681     esac
12682   fi
12683   rm -rf conftest*
12684   ;;
12685
12686 *-*-sco3.2v5*)
12687   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12688   SAVE_CFLAGS="$CFLAGS"
12689   CFLAGS="$CFLAGS -belf"
12690   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12691 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12692 if test "${lt_cv_cc_needs_belf+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   ac_ext=c
12696 ac_cpp='$CPP $CPPFLAGS'
12697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700
12701      cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707
12708 int
12709 main ()
12710 {
12711
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723   (eval "$ac_link") 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731   { (case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_try") 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; } &&
12740          { ac_try='test -s conftest$ac_exeext'
12741   { (case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_try") 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   lt_cv_cc_needs_belf=yes
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755         lt_cv_cc_needs_belf=no
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext \
12759       conftest$ac_exeext conftest.$ac_ext
12760      ac_ext=c
12761 ac_cpp='$CPP $CPPFLAGS'
12762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12765
12766 fi
12767 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12768 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12769   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12770     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12771     CFLAGS="$SAVE_CFLAGS"
12772   fi
12773   ;;
12774 sparc*-*solaris*)
12775   # Find out which ABI we are using.
12776   echo 'int i;' > conftest.$ac_ext
12777   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778   (eval $ac_compile) 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; then
12782     case `/usr/bin/file conftest.o` in
12783     *64-bit*)
12784       case $lt_cv_prog_gnu_ld in
12785       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12786       *)    LD="${LD-ld} -64" ;;
12787       esac
12788       ;;
12789     esac
12790   fi
12791   rm -rf conftest*
12792   ;;
12793
12794
12795 esac
12796
12797 need_locks="$enable_libtool_lock"
12798
12799
12800
12801
12802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12803     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12804     (test "X$CXX" != "Xg++"))) ; then
12805   ac_ext=cpp
12806 ac_cpp='$CXXCPP $CPPFLAGS'
12807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12810 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12811 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12812 if test -z "$CXXCPP"; then
12813   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12814   echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816       # Double quotes because CXXCPP needs to be expanded
12817     for CXXCPP in "$CXX -E" "/lib/cpp"
12818     do
12819       ac_preproc_ok=false
12820 for ac_cxx_preproc_warn_flag in '' yes
12821 do
12822   # Use a header file that comes with gcc, so configuring glibc
12823   # with a fresh cross-compiler works.
12824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12825   # <limits.h> exists even on freestanding compilers.
12826   # On the NeXT, cc -E runs the code through the compiler's parser,
12827   # not just through cpp. "Syntax error" is here to catch this case.
12828   cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834 #ifdef __STDC__
12835 # include <limits.h>
12836 #else
12837 # include <assert.h>
12838 #endif
12839                      Syntax error
12840 _ACEOF
12841 if { (ac_try="$ac_cpp conftest.$ac_ext"
12842 case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } >/dev/null; then
12854   if test -s conftest.err; then
12855     ac_cpp_err=$ac_cxx_preproc_warn_flag
12856     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12857   else
12858     ac_cpp_err=
12859   fi
12860 else
12861   ac_cpp_err=yes
12862 fi
12863 if test -z "$ac_cpp_err"; then
12864   :
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869   # Broken: fails on valid input.
12870 continue
12871 fi
12872
12873 rm -f conftest.err conftest.$ac_ext
12874
12875   # OK, works on sane cases.  Now check whether nonexistent headers
12876   # can be detected and how.
12877   cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883 #include <ac_nonexistent.h>
12884 _ACEOF
12885 if { (ac_try="$ac_cpp conftest.$ac_ext"
12886 case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } >/dev/null; then
12898   if test -s conftest.err; then
12899     ac_cpp_err=$ac_cxx_preproc_warn_flag
12900     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12901   else
12902     ac_cpp_err=
12903   fi
12904 else
12905   ac_cpp_err=yes
12906 fi
12907 if test -z "$ac_cpp_err"; then
12908   # Broken: success on invalid input.
12909 continue
12910 else
12911   echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914   # Passes both tests.
12915 ac_preproc_ok=:
12916 break
12917 fi
12918
12919 rm -f conftest.err conftest.$ac_ext
12920
12921 done
12922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12923 rm -f conftest.err conftest.$ac_ext
12924 if $ac_preproc_ok; then
12925   break
12926 fi
12927
12928     done
12929     ac_cv_prog_CXXCPP=$CXXCPP
12930
12931 fi
12932   CXXCPP=$ac_cv_prog_CXXCPP
12933 else
12934   ac_cv_prog_CXXCPP=$CXXCPP
12935 fi
12936 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12937 echo "${ECHO_T}$CXXCPP" >&6; }
12938 ac_preproc_ok=false
12939 for ac_cxx_preproc_warn_flag in '' yes
12940 do
12941   # Use a header file that comes with gcc, so configuring glibc
12942   # with a fresh cross-compiler works.
12943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944   # <limits.h> exists even on freestanding compilers.
12945   # On the NeXT, cc -E runs the code through the compiler's parser,
12946   # not just through cpp. "Syntax error" is here to catch this case.
12947   cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953 #ifdef __STDC__
12954 # include <limits.h>
12955 #else
12956 # include <assert.h>
12957 #endif
12958                      Syntax error
12959 _ACEOF
12960 if { (ac_try="$ac_cpp conftest.$ac_ext"
12961 case "(($ac_try" in
12962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963   *) ac_try_echo=$ac_try;;
12964 esac
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12967   ac_status=$?
12968   grep -v '^ *+' conftest.er1 >conftest.err
12969   rm -f conftest.er1
12970   cat conftest.err >&5
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } >/dev/null; then
12973   if test -s conftest.err; then
12974     ac_cpp_err=$ac_cxx_preproc_warn_flag
12975     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12976   else
12977     ac_cpp_err=
12978   fi
12979 else
12980   ac_cpp_err=yes
12981 fi
12982 if test -z "$ac_cpp_err"; then
12983   :
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988   # Broken: fails on valid input.
12989 continue
12990 fi
12991
12992 rm -f conftest.err conftest.$ac_ext
12993
12994   # OK, works on sane cases.  Now check whether nonexistent headers
12995   # can be detected and how.
12996   cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002 #include <ac_nonexistent.h>
13003 _ACEOF
13004 if { (ac_try="$ac_cpp conftest.$ac_ext"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13011   ac_status=$?
13012   grep -v '^ *+' conftest.er1 >conftest.err
13013   rm -f conftest.er1
13014   cat conftest.err >&5
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } >/dev/null; then
13017   if test -s conftest.err; then
13018     ac_cpp_err=$ac_cxx_preproc_warn_flag
13019     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13020   else
13021     ac_cpp_err=
13022   fi
13023 else
13024   ac_cpp_err=yes
13025 fi
13026 if test -z "$ac_cpp_err"; then
13027   # Broken: success on invalid input.
13028 continue
13029 else
13030   echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033   # Passes both tests.
13034 ac_preproc_ok=:
13035 break
13036 fi
13037
13038 rm -f conftest.err conftest.$ac_ext
13039
13040 done
13041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042 rm -f conftest.err conftest.$ac_ext
13043 if $ac_preproc_ok; then
13044   :
13045 else
13046   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13047 See \`config.log' for more details." >&5
13048 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13049 See \`config.log' for more details." >&2;}
13050    { (exit 1); exit 1; }; }
13051 fi
13052
13053 ac_ext=cpp
13054 ac_cpp='$CXXCPP $CPPFLAGS'
13055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13058
13059 fi
13060
13061
13062 ac_ext=f
13063 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13064 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13066 if test -n "$ac_tool_prefix"; then
13067   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
13068   do
13069     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073 if test "${ac_cv_prog_F77+set}" = set; then
13074   echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076   if test -n "$F77"; then
13077   ac_cv_prog_F77="$F77" # Let the user override the test.
13078 else
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13081 do
13082   IFS=$as_save_IFS
13083   test -z "$as_dir" && as_dir=.
13084   for ac_exec_ext in '' $ac_executable_extensions; do
13085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13086     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088     break 2
13089   fi
13090 done
13091 done
13092 IFS=$as_save_IFS
13093
13094 fi
13095 fi
13096 F77=$ac_cv_prog_F77
13097 if test -n "$F77"; then
13098   { echo "$as_me:$LINENO: result: $F77" >&5
13099 echo "${ECHO_T}$F77" >&6; }
13100 else
13101   { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13103 fi
13104
13105
13106     test -n "$F77" && break
13107   done
13108 fi
13109 if test -z "$F77"; then
13110   ac_ct_F77=$F77
13111   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
13112 do
13113   # Extract the first word of "$ac_prog", so it can be a program name with args.
13114 set dummy $ac_prog; ac_word=$2
13115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13117 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   if test -n "$ac_ct_F77"; then
13121   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13122 else
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13125 do
13126   IFS=$as_save_IFS
13127   test -z "$as_dir" && as_dir=.
13128   for ac_exec_ext in '' $ac_executable_extensions; do
13129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13130     ac_cv_prog_ac_ct_F77="$ac_prog"
13131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132     break 2
13133   fi
13134 done
13135 done
13136 IFS=$as_save_IFS
13137
13138 fi
13139 fi
13140 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13141 if test -n "$ac_ct_F77"; then
13142   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13143 echo "${ECHO_T}$ac_ct_F77" >&6; }
13144 else
13145   { echo "$as_me:$LINENO: result: no" >&5
13146 echo "${ECHO_T}no" >&6; }
13147 fi
13148
13149
13150   test -n "$ac_ct_F77" && break
13151 done
13152
13153   if test "x$ac_ct_F77" = x; then
13154     F77=""
13155   else
13156     case $cross_compiling:$ac_tool_warned in
13157 yes:)
13158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13159 whose name does not start with the host triplet.  If you think this
13160 configuration is useful to you, please write to autoconf@gnu.org." >&5
13161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13162 whose name does not start with the host triplet.  If you think this
13163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13164 ac_tool_warned=yes ;;
13165 esac
13166     F77=$ac_ct_F77
13167   fi
13168 fi
13169
13170
13171 # Provide some information about the compiler.
13172 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13173 ac_compiler=`set X $ac_compile; echo $2`
13174 { (ac_try="$ac_compiler --version >&5"
13175 case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_compiler --version >&5") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }
13184 { (ac_try="$ac_compiler -v >&5"
13185 case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_compiler -v >&5") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }
13194 { (ac_try="$ac_compiler -V >&5"
13195 case "(($ac_try" in
13196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197   *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200   (eval "$ac_compiler -V >&5") 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); }
13204 rm -f a.out
13205
13206 # If we don't use `.F' as extension, the preprocessor is not run on the
13207 # input file.  (Note that this only needs to work for GNU compilers.)
13208 ac_save_ext=$ac_ext
13209 ac_ext=F
13210 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13211 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13212 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216       program main
13217 #ifndef __GNUC__
13218        choke me
13219 #endif
13220
13221       end
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (ac_try="$ac_compile"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230   (eval "$ac_compile") 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13238   { (case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_try") 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; } &&
13247          { ac_try='test -s conftest.$ac_objext'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_compiler_gnu=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         ac_compiler_gnu=no
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13267
13268 fi
13269 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13270 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13271 ac_ext=$ac_save_ext
13272 ac_test_FFLAGS=${FFLAGS+set}
13273 ac_save_FFLAGS=$FFLAGS
13274 FFLAGS=
13275 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13276 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13277 if test "${ac_cv_prog_f77_g+set}" = set; then
13278   echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280   FFLAGS=-g
13281 cat >conftest.$ac_ext <<_ACEOF
13282       program main
13283
13284       end
13285 _ACEOF
13286 rm -f conftest.$ac_objext
13287 if { (ac_try="$ac_compile"
13288 case "(($ac_try" in
13289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290   *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293   (eval "$ac_compile") 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } &&
13300          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13301   { (case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_try") 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }; } &&
13310          { ac_try='test -s conftest.$ac_objext'
13311   { (case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_try") 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }; }; then
13320   ac_cv_prog_f77_g=yes
13321 else
13322   echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325         ac_cv_prog_f77_g=no
13326 fi
13327
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329
13330 fi
13331 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13332 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13333 if test "$ac_test_FFLAGS" = set; then
13334   FFLAGS=$ac_save_FFLAGS
13335 elif test $ac_cv_prog_f77_g = yes; then
13336   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13337     FFLAGS="-g -O2"
13338   else
13339     FFLAGS="-g"
13340   fi
13341 else
13342   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13343     FFLAGS="-O2"
13344   else
13345     FFLAGS=
13346   fi
13347 fi
13348
13349 G77=`test $ac_compiler_gnu = yes && echo yes`
13350 ac_ext=c
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355
13356
13357
13358 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13359
13360 # find the maximum length of command line arguments
13361 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13362 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13364   echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366     i=0
13367   teststring="ABCD"
13368
13369   case $build_os in
13370   msdosdjgpp*)
13371     # On DJGPP, this test can blow up pretty badly due to problems in libc
13372     # (any single argument exceeding 2000 bytes causes a buffer overrun
13373     # during glob expansion).  Even if it were fixed, the result of this
13374     # check would be larger than it should be.
13375     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13376     ;;
13377
13378   gnu*)
13379     # Under GNU Hurd, this test is not required because there is
13380     # no limit to the length of command line arguments.
13381     # Libtool will interpret -1 as no limit whatsoever
13382     lt_cv_sys_max_cmd_len=-1;
13383     ;;
13384
13385   cygwin* | mingw*)
13386     # On Win9x/ME, this test blows up -- it succeeds, but takes
13387     # about 5 minutes as the teststring grows exponentially.
13388     # Worse, since 9x/ME are not pre-emptively multitasking,
13389     # you end up with a "frozen" computer, even though with patience
13390     # the test eventually succeeds (with a max line length of 256k).
13391     # Instead, let's just punt: use the minimum linelength reported by
13392     # all of the supported platforms: 8192 (on NT/2K/XP).
13393     lt_cv_sys_max_cmd_len=8192;
13394     ;;
13395
13396   amigaos*)
13397     # On AmigaOS with pdksh, this test takes hours, literally.
13398     # So we just punt and use a minimum line length of 8192.
13399     lt_cv_sys_max_cmd_len=8192;
13400     ;;
13401
13402   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13403     # This has been around since 386BSD, at least.  Likely further.
13404     if test -x /sbin/sysctl; then
13405       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13406     elif test -x /usr/sbin/sysctl; then
13407       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13408     else
13409       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13410     fi
13411     # And add a safety zone
13412     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13413     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13414     ;;
13415
13416   interix*)
13417     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13418     lt_cv_sys_max_cmd_len=196608
13419     ;;
13420
13421   osf*)
13422     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13423     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13424     # nice to cause kernel panics so lets avoid the loop below.
13425     # First set a reasonable default.
13426     lt_cv_sys_max_cmd_len=16384
13427     #
13428     if test -x /sbin/sysconfig; then
13429       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13430         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13431       esac
13432     fi
13433     ;;
13434   sco3.2v5*)
13435     lt_cv_sys_max_cmd_len=102400
13436     ;;
13437   sysv5* | sco5v6* | sysv4.2uw2*)
13438     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13439     if test -n "$kargmax"; then
13440       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13441     else
13442       lt_cv_sys_max_cmd_len=32768
13443     fi
13444     ;;
13445   *)
13446     # If test is not a shell built-in, we'll probably end up computing a
13447     # maximum length that is only half of the actual maximum length, but
13448     # we can't tell.
13449     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13450     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13451                = "XX$teststring") >/dev/null 2>&1 &&
13452             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13453             lt_cv_sys_max_cmd_len=$new_result &&
13454             test $i != 17 # 1/2 MB should be enough
13455     do
13456       i=`expr $i + 1`
13457       teststring=$teststring$teststring
13458     done
13459     teststring=
13460     # Add a significant safety factor because C++ compilers can tack on massive
13461     # amounts of additional arguments before passing them to the linker.
13462     # It appears as though 1/2 is a usable value.
13463     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13464     ;;
13465   esac
13466
13467 fi
13468
13469 if test -n $lt_cv_sys_max_cmd_len ; then
13470   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13472 else
13473   { echo "$as_me:$LINENO: result: none" >&5
13474 echo "${ECHO_T}none" >&6; }
13475 fi
13476
13477
13478
13479
13480 # Check for command to grab the raw symbol name followed by C symbol from nm.
13481 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486
13487 # These are sane defaults that work on at least a few old systems.
13488 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13489
13490 # Character class describing NM global symbol codes.
13491 symcode='[BCDEGRST]'
13492
13493 # Regexp to match symbols that can be accessed directly from C.
13494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13495
13496 # Transform an extracted symbol line into a proper C declaration
13497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13498
13499 # Transform an extracted symbol line into symbol name and symbol address
13500 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'"
13501
13502 # Define system-specific variables.
13503 case $host_os in
13504 aix*)
13505   symcode='[BCDT]'
13506   ;;
13507 cygwin* | mingw* | pw32*)
13508   symcode='[ABCDGISTW]'
13509   ;;
13510 hpux*) # Its linker distinguishes data from code symbols
13511   if test "$host_cpu" = ia64; then
13512     symcode='[ABCDEGRST]'
13513   fi
13514   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13515   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'"
13516   ;;
13517 linux*)
13518   if test "$host_cpu" = ia64; then
13519     symcode='[ABCDGIRSTW]'
13520     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13521     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'"
13522   fi
13523   ;;
13524 irix* | nonstopux*)
13525   symcode='[BCDEGRST]'
13526   ;;
13527 osf*)
13528   symcode='[BCDEGQRST]'
13529   ;;
13530 solaris*)
13531   symcode='[BDRT]'
13532   ;;
13533 sco3.2v5*)
13534   symcode='[DT]'
13535   ;;
13536 sysv4.2uw2*)
13537   symcode='[DT]'
13538   ;;
13539 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13540   symcode='[ABDT]'
13541   ;;
13542 sysv4)
13543   symcode='[DFNSTU]'
13544   ;;
13545 esac
13546
13547 # Handle CRLF in mingw tool chain
13548 opt_cr=
13549 case $build_os in
13550 mingw*)
13551   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13552   ;;
13553 esac
13554
13555 # If we're using GNU nm, then use its standard symbol codes.
13556 case `$NM -V 2>&1` in
13557 *GNU* | *'with BFD'*)
13558   symcode='[ABCDGIRSTW]' ;;
13559 esac
13560
13561 # Try without a prefix undercore, then with it.
13562 for ac_symprfx in "" "_"; do
13563
13564   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13565   symxfrm="\\1 $ac_symprfx\\2 \\2"
13566
13567   # Write the raw and C identifiers.
13568   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13569
13570   # Check to see that the pipe works correctly.
13571   pipe_works=no
13572
13573   rm -f conftest*
13574   cat > conftest.$ac_ext <<EOF
13575 #ifdef __cplusplus
13576 extern "C" {
13577 #endif
13578 char nm_test_var;
13579 void nm_test_func(){}
13580 #ifdef __cplusplus
13581 }
13582 #endif
13583 int main(){nm_test_var='a';nm_test_func();return(0);}
13584 EOF
13585
13586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587   (eval $ac_compile) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; then
13591     # Now try to grab the symbols.
13592     nlist=conftest.nm
13593     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13594   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } && test -s "$nlist"; then
13598       # Try sorting and uniquifying the output.
13599       if sort "$nlist" | uniq > "$nlist"T; then
13600         mv -f "$nlist"T "$nlist"
13601       else
13602         rm -f "$nlist"T
13603       fi
13604
13605       # Make sure that we snagged all the symbols we need.
13606       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13607         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13608           cat <<EOF > conftest.$ac_ext
13609 #ifdef __cplusplus
13610 extern "C" {
13611 #endif
13612
13613 EOF
13614           # Now generate the symbol file.
13615           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13616
13617           cat <<EOF >> conftest.$ac_ext
13618 #if defined (__STDC__) && __STDC__
13619 # define lt_ptr_t void *
13620 #else
13621 # define lt_ptr_t char *
13622 # define const
13623 #endif
13624
13625 /* The mapping between symbol names and symbols. */
13626 const struct {
13627   const char *name;
13628   lt_ptr_t address;
13629 }
13630 lt_preloaded_symbols[] =
13631 {
13632 EOF
13633           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13634           cat <<\EOF >> conftest.$ac_ext
13635   {0, (lt_ptr_t) 0}
13636 };
13637
13638 #ifdef __cplusplus
13639 }
13640 #endif
13641 EOF
13642           # Now try linking the two files.
13643           mv conftest.$ac_objext conftstm.$ac_objext
13644           lt_save_LIBS="$LIBS"
13645           lt_save_CFLAGS="$CFLAGS"
13646           LIBS="conftstm.$ac_objext"
13647           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13648           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13649   (eval $ac_link) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13653             pipe_works=yes
13654           fi
13655           LIBS="$lt_save_LIBS"
13656           CFLAGS="$lt_save_CFLAGS"
13657         else
13658           echo "cannot find nm_test_func in $nlist" >&5
13659         fi
13660       else
13661         echo "cannot find nm_test_var in $nlist" >&5
13662       fi
13663     else
13664       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13665     fi
13666   else
13667     echo "$progname: failed program was:" >&5
13668     cat conftest.$ac_ext >&5
13669   fi
13670   rm -f conftest* conftst*
13671
13672   # Do not use the global_symbol_pipe unless it works.
13673   if test "$pipe_works" = yes; then
13674     break
13675   else
13676     lt_cv_sys_global_symbol_pipe=
13677   fi
13678 done
13679
13680 fi
13681
13682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13683   lt_cv_sys_global_symbol_to_cdecl=
13684 fi
13685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13686   { echo "$as_me:$LINENO: result: failed" >&5
13687 echo "${ECHO_T}failed" >&6; }
13688 else
13689   { echo "$as_me:$LINENO: result: ok" >&5
13690 echo "${ECHO_T}ok" >&6; }
13691 fi
13692
13693 { echo "$as_me:$LINENO: checking for objdir" >&5
13694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13695 if test "${lt_cv_objdir+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   rm -f .libs 2>/dev/null
13699 mkdir .libs 2>/dev/null
13700 if test -d .libs; then
13701   lt_cv_objdir=.libs
13702 else
13703   # MS-DOS does not allow filenames that begin with a dot.
13704   lt_cv_objdir=_libs
13705 fi
13706 rmdir .libs 2>/dev/null
13707 fi
13708 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13709 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13710 objdir=$lt_cv_objdir
13711
13712
13713
13714
13715
13716 case $host_os in
13717 aix3*)
13718   # AIX sometimes has problems with the GCC collect2 program.  For some
13719   # reason, if we set the COLLECT_NAMES environment variable, the problems
13720   # vanish in a puff of smoke.
13721   if test "X${COLLECT_NAMES+set}" != Xset; then
13722     COLLECT_NAMES=
13723     export COLLECT_NAMES
13724   fi
13725   ;;
13726 esac
13727
13728 # Sed substitution that helps us do robust quoting.  It backslashifies
13729 # metacharacters that are still active within double-quoted strings.
13730 Xsed='sed -e 1s/^X//'
13731 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13732
13733 # Same as above, but do not quote variable references.
13734 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13735
13736 # Sed substitution to delay expansion of an escaped shell variable in a
13737 # double_quote_subst'ed string.
13738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13739
13740 # Sed substitution to avoid accidental globbing in evaled expressions
13741 no_glob_subst='s/\*/\\\*/g'
13742
13743 # Constants:
13744 rm="rm -f"
13745
13746 # Global variables:
13747 default_ofile=mklib
13748 can_build_shared=yes
13749
13750 # All known linkers require a `.a' archive for static linking (except MSVC,
13751 # which needs '.lib').
13752 libext=a
13753 ltmain="$ac_aux_dir/ltmain.sh"
13754 ofile="$default_ofile"
13755 with_gnu_ld="$lt_cv_prog_gnu_ld"
13756
13757 if test -n "$ac_tool_prefix"; then
13758   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13759 set dummy ${ac_tool_prefix}ar; ac_word=$2
13760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13762 if test "${ac_cv_prog_AR+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   if test -n "$AR"; then
13766   ac_cv_prog_AR="$AR" # Let the user override the test.
13767 else
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13770 do
13771   IFS=$as_save_IFS
13772   test -z "$as_dir" && as_dir=.
13773   for ac_exec_ext in '' $ac_executable_extensions; do
13774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13775     ac_cv_prog_AR="${ac_tool_prefix}ar"
13776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13777     break 2
13778   fi
13779 done
13780 done
13781 IFS=$as_save_IFS
13782
13783 fi
13784 fi
13785 AR=$ac_cv_prog_AR
13786 if test -n "$AR"; then
13787   { echo "$as_me:$LINENO: result: $AR" >&5
13788 echo "${ECHO_T}$AR" >&6; }
13789 else
13790   { echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6; }
13792 fi
13793
13794
13795 fi
13796 if test -z "$ac_cv_prog_AR"; then
13797   ac_ct_AR=$AR
13798   # Extract the first word of "ar", so it can be a program name with args.
13799 set dummy ar; ac_word=$2
13800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   if test -n "$ac_ct_AR"; then
13806   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13807 else
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811   IFS=$as_save_IFS
13812   test -z "$as_dir" && as_dir=.
13813   for ac_exec_ext in '' $ac_executable_extensions; do
13814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13815     ac_cv_prog_ac_ct_AR="ar"
13816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817     break 2
13818   fi
13819 done
13820 done
13821 IFS=$as_save_IFS
13822
13823 fi
13824 fi
13825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13826 if test -n "$ac_ct_AR"; then
13827   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13828 echo "${ECHO_T}$ac_ct_AR" >&6; }
13829 else
13830   { echo "$as_me:$LINENO: result: no" >&5
13831 echo "${ECHO_T}no" >&6; }
13832 fi
13833
13834   if test "x$ac_ct_AR" = x; then
13835     AR="false"
13836   else
13837     case $cross_compiling:$ac_tool_warned in
13838 yes:)
13839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13840 whose name does not start with the host triplet.  If you think this
13841 configuration is useful to you, please write to autoconf@gnu.org." >&5
13842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13843 whose name does not start with the host triplet.  If you think this
13844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13845 ac_tool_warned=yes ;;
13846 esac
13847     AR=$ac_ct_AR
13848   fi
13849 else
13850   AR="$ac_cv_prog_AR"
13851 fi
13852
13853 if test -n "$ac_tool_prefix"; then
13854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13858 if test "${ac_cv_prog_RANLIB+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   if test -n "$RANLIB"; then
13862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867   IFS=$as_save_IFS
13868   test -z "$as_dir" && as_dir=.
13869   for ac_exec_ext in '' $ac_executable_extensions; do
13870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13873     break 2
13874   fi
13875 done
13876 done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 RANLIB=$ac_cv_prog_RANLIB
13882 if test -n "$RANLIB"; then
13883   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13884 echo "${ECHO_T}$RANLIB" >&6; }
13885 else
13886   { echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6; }
13888 fi
13889
13890
13891 fi
13892 if test -z "$ac_cv_prog_RANLIB"; then
13893   ac_ct_RANLIB=$RANLIB
13894   # Extract the first word of "ranlib", so it can be a program name with args.
13895 set dummy ranlib; ac_word=$2
13896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901   if test -n "$ac_ct_RANLIB"; then
13902   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13903 else
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907   IFS=$as_save_IFS
13908   test -z "$as_dir" && as_dir=.
13909   for ac_exec_ext in '' $ac_executable_extensions; do
13910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13911     ac_cv_prog_ac_ct_RANLIB="ranlib"
13912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913     break 2
13914   fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 fi
13920 fi
13921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13922 if test -n "$ac_ct_RANLIB"; then
13923   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13925 else
13926   { echo "$as_me:$LINENO: result: no" >&5
13927 echo "${ECHO_T}no" >&6; }
13928 fi
13929
13930   if test "x$ac_ct_RANLIB" = x; then
13931     RANLIB=":"
13932   else
13933     case $cross_compiling:$ac_tool_warned in
13934 yes:)
13935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13936 whose name does not start with the host triplet.  If you think this
13937 configuration is useful to you, please write to autoconf@gnu.org." >&5
13938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13939 whose name does not start with the host triplet.  If you think this
13940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13941 ac_tool_warned=yes ;;
13942 esac
13943     RANLIB=$ac_ct_RANLIB
13944   fi
13945 else
13946   RANLIB="$ac_cv_prog_RANLIB"
13947 fi
13948
13949 if test -n "$ac_tool_prefix"; then
13950   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13951 set dummy ${ac_tool_prefix}strip; ac_word=$2
13952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13954 if test "${ac_cv_prog_STRIP+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   if test -n "$STRIP"; then
13958   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13959 else
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13962 do
13963   IFS=$as_save_IFS
13964   test -z "$as_dir" && as_dir=.
13965   for ac_exec_ext in '' $ac_executable_extensions; do
13966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13967     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13969     break 2
13970   fi
13971 done
13972 done
13973 IFS=$as_save_IFS
13974
13975 fi
13976 fi
13977 STRIP=$ac_cv_prog_STRIP
13978 if test -n "$STRIP"; then
13979   { echo "$as_me:$LINENO: result: $STRIP" >&5
13980 echo "${ECHO_T}$STRIP" >&6; }
13981 else
13982   { echo "$as_me:$LINENO: result: no" >&5
13983 echo "${ECHO_T}no" >&6; }
13984 fi
13985
13986
13987 fi
13988 if test -z "$ac_cv_prog_STRIP"; then
13989   ac_ct_STRIP=$STRIP
13990   # Extract the first word of "strip", so it can be a program name with args.
13991 set dummy strip; ac_word=$2
13992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   if test -n "$ac_ct_STRIP"; then
13998   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13999 else
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003   IFS=$as_save_IFS
14004   test -z "$as_dir" && as_dir=.
14005   for ac_exec_ext in '' $ac_executable_extensions; do
14006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14007     ac_cv_prog_ac_ct_STRIP="strip"
14008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009     break 2
14010   fi
14011 done
14012 done
14013 IFS=$as_save_IFS
14014
14015 fi
14016 fi
14017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14018 if test -n "$ac_ct_STRIP"; then
14019   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14020 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14021 else
14022   { echo "$as_me:$LINENO: result: no" >&5
14023 echo "${ECHO_T}no" >&6; }
14024 fi
14025
14026   if test "x$ac_ct_STRIP" = x; then
14027     STRIP=":"
14028   else
14029     case $cross_compiling:$ac_tool_warned in
14030 yes:)
14031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14032 whose name does not start with the host triplet.  If you think this
14033 configuration is useful to you, please write to autoconf@gnu.org." >&5
14034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14035 whose name does not start with the host triplet.  If you think this
14036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14037 ac_tool_warned=yes ;;
14038 esac
14039     STRIP=$ac_ct_STRIP
14040   fi
14041 else
14042   STRIP="$ac_cv_prog_STRIP"
14043 fi
14044
14045
14046 old_CC="$CC"
14047 old_CFLAGS="$CFLAGS"
14048
14049 # Set sane defaults for various variables
14050 test -z "$AR" && AR=ar
14051 test -z "$AR_FLAGS" && AR_FLAGS=cru
14052 test -z "$AS" && AS=as
14053 test -z "$CC" && CC=cc
14054 test -z "$LTCC" && LTCC=$CC
14055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14056 test -z "$DLLTOOL" && DLLTOOL=dlltool
14057 test -z "$LD" && LD=ld
14058 test -z "$LN_S" && LN_S="ln -s"
14059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14060 test -z "$NM" && NM=nm
14061 test -z "$SED" && SED=sed
14062 test -z "$OBJDUMP" && OBJDUMP=objdump
14063 test -z "$RANLIB" && RANLIB=:
14064 test -z "$STRIP" && STRIP=:
14065 test -z "$ac_objext" && ac_objext=o
14066
14067 # Determine commands to create old-style static archives.
14068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14069 old_postinstall_cmds='chmod 644 $oldlib'
14070 old_postuninstall_cmds=
14071
14072 if test -n "$RANLIB"; then
14073   case $host_os in
14074   openbsd*)
14075     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14076     ;;
14077   *)
14078     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14079     ;;
14080   esac
14081   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14082 fi
14083
14084 for cc_temp in $compiler""; do
14085   case $cc_temp in
14086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14088     \-*) ;;
14089     *) break;;
14090   esac
14091 done
14092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14093
14094
14095 # Only perform the check for file, if the check method requires it
14096 case $deplibs_check_method in
14097 file_magic*)
14098   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14099     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   case $MAGIC_CMD in
14105 [\\/*] |  ?:[\\/]*)
14106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14107   ;;
14108 *)
14109   lt_save_MAGIC_CMD="$MAGIC_CMD"
14110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14111   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14112   for ac_dir in $ac_dummy; do
14113     IFS="$lt_save_ifs"
14114     test -z "$ac_dir" && ac_dir=.
14115     if test -f $ac_dir/${ac_tool_prefix}file; then
14116       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14117       if test -n "$file_magic_test_file"; then
14118         case $deplibs_check_method in
14119         "file_magic "*)
14120           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14121           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14122           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14123             $EGREP "$file_magic_regex" > /dev/null; then
14124             :
14125           else
14126             cat <<EOF 1>&2
14127
14128 *** Warning: the command libtool uses to detect shared libraries,
14129 *** $file_magic_cmd, produces output that libtool cannot recognize.
14130 *** The result is that libtool may fail to recognize shared libraries
14131 *** as such.  This will affect the creation of libtool libraries that
14132 *** depend on shared libraries, but programs linked with such libtool
14133 *** libraries will work regardless of this problem.  Nevertheless, you
14134 *** may want to report the problem to your system manager and/or to
14135 *** bug-libtool@gnu.org
14136
14137 EOF
14138           fi ;;
14139         esac
14140       fi
14141       break
14142     fi
14143   done
14144   IFS="$lt_save_ifs"
14145   MAGIC_CMD="$lt_save_MAGIC_CMD"
14146   ;;
14147 esac
14148 fi
14149
14150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14151 if test -n "$MAGIC_CMD"; then
14152   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14154 else
14155   { echo "$as_me:$LINENO: result: no" >&5
14156 echo "${ECHO_T}no" >&6; }
14157 fi
14158
14159 if test -z "$lt_cv_path_MAGIC_CMD"; then
14160   if test -n "$ac_tool_prefix"; then
14161     { echo "$as_me:$LINENO: checking for file" >&5
14162 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14164   echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166   case $MAGIC_CMD in
14167 [\\/*] |  ?:[\\/]*)
14168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14169   ;;
14170 *)
14171   lt_save_MAGIC_CMD="$MAGIC_CMD"
14172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14173   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14174   for ac_dir in $ac_dummy; do
14175     IFS="$lt_save_ifs"
14176     test -z "$ac_dir" && ac_dir=.
14177     if test -f $ac_dir/file; then
14178       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14179       if test -n "$file_magic_test_file"; then
14180         case $deplibs_check_method in
14181         "file_magic "*)
14182           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14183           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14184           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14185             $EGREP "$file_magic_regex" > /dev/null; then
14186             :
14187           else
14188             cat <<EOF 1>&2
14189
14190 *** Warning: the command libtool uses to detect shared libraries,
14191 *** $file_magic_cmd, produces output that libtool cannot recognize.
14192 *** The result is that libtool may fail to recognize shared libraries
14193 *** as such.  This will affect the creation of libtool libraries that
14194 *** depend on shared libraries, but programs linked with such libtool
14195 *** libraries will work regardless of this problem.  Nevertheless, you
14196 *** may want to report the problem to your system manager and/or to
14197 *** bug-libtool@gnu.org
14198
14199 EOF
14200           fi ;;
14201         esac
14202       fi
14203       break
14204     fi
14205   done
14206   IFS="$lt_save_ifs"
14207   MAGIC_CMD="$lt_save_MAGIC_CMD"
14208   ;;
14209 esac
14210 fi
14211
14212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14213 if test -n "$MAGIC_CMD"; then
14214   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14216 else
14217   { echo "$as_me:$LINENO: result: no" >&5
14218 echo "${ECHO_T}no" >&6; }
14219 fi
14220
14221   else
14222     MAGIC_CMD=:
14223   fi
14224 fi
14225
14226   fi
14227   ;;
14228 esac
14229
14230 enable_dlopen=yes
14231 enable_win32_dll=no
14232
14233 # Check whether --enable-libtool-lock was given.
14234 if test "${enable_libtool_lock+set}" = set; then
14235   enableval=$enable_libtool_lock;
14236 fi
14237
14238 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14239
14240
14241 # Check whether --with-pic was given.
14242 if test "${with_pic+set}" = set; then
14243   withval=$with_pic; pic_mode="$withval"
14244 else
14245   pic_mode=default
14246 fi
14247
14248 test -z "$pic_mode" && pic_mode=default
14249
14250 # Use C for the default configuration in the libtool script
14251 tagname=
14252 lt_save_CC="$CC"
14253 ac_ext=c
14254 ac_cpp='$CPP $CPPFLAGS'
14255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14258
14259
14260 # Source file extension for C test sources.
14261 ac_ext=c
14262
14263 # Object file extension for compiled C test sources.
14264 objext=o
14265 objext=$objext
14266
14267 # Code to be used in simple compile tests
14268 lt_simple_compile_test_code="int some_variable = 0;\n"
14269
14270 # Code to be used in simple link tests
14271 lt_simple_link_test_code='int main(){return(0);}\n'
14272
14273
14274 # If no C compiler was specified, use CC.
14275 LTCC=${LTCC-"$CC"}
14276
14277 # If no C compiler flags were specified, use CFLAGS.
14278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14279
14280 # Allow CC to be a program name with arguments.
14281 compiler=$CC
14282
14283
14284 # save warnings/boilerplate of simple test code
14285 ac_outfile=conftest.$ac_objext
14286 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14288 _lt_compiler_boilerplate=`cat conftest.err`
14289 $rm conftest*
14290
14291 ac_outfile=conftest.$ac_objext
14292 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14294 _lt_linker_boilerplate=`cat conftest.err`
14295 $rm conftest*
14296
14297
14298
14299 lt_prog_compiler_no_builtin_flag=
14300
14301 if test "$GCC" = yes; then
14302   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14303
14304
14305 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14306 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14307 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14308   echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310   lt_cv_prog_compiler_rtti_exceptions=no
14311   ac_outfile=conftest.$ac_objext
14312    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313    lt_compiler_flag="-fno-rtti -fno-exceptions"
14314    # Insert the option either (1) after the last *FLAGS variable, or
14315    # (2) before a word containing "conftest.", or (3) at the end.
14316    # Note that $ac_compile itself does not contain backslashes and begins
14317    # with a dollar sign (not a hyphen), so the echo should work correctly.
14318    # The option is referenced via a variable to avoid confusing sed.
14319    lt_compile=`echo "$ac_compile" | $SED \
14320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14322    -e 's:$: $lt_compiler_flag:'`
14323    (eval echo "\"\$as_me:14323: $lt_compile\"" >&5)
14324    (eval "$lt_compile" 2>conftest.err)
14325    ac_status=$?
14326    cat conftest.err >&5
14327    echo "$as_me:14327: \$? = $ac_status" >&5
14328    if (exit $ac_status) && test -s "$ac_outfile"; then
14329      # The compiler can only warn and ignore the option if not recognized
14330      # So say no if there are warnings other than the usual output.
14331      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14332      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14334        lt_cv_prog_compiler_rtti_exceptions=yes
14335      fi
14336    fi
14337    $rm conftest*
14338
14339 fi
14340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14341 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14342
14343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14344     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14345 else
14346     :
14347 fi
14348
14349 fi
14350
14351 lt_prog_compiler_wl=
14352 lt_prog_compiler_pic=
14353 lt_prog_compiler_static=
14354
14355 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14357
14358   if test "$GCC" = yes; then
14359     lt_prog_compiler_wl='-Wl,'
14360     lt_prog_compiler_static='-static'
14361
14362     case $host_os in
14363       aix*)
14364       # All AIX code is PIC.
14365       if test "$host_cpu" = ia64; then
14366         # AIX 5 now supports IA64 processor
14367         lt_prog_compiler_static='-Bstatic'
14368       fi
14369       ;;
14370
14371     amigaos*)
14372       # FIXME: we need at least 68020 code to build shared libraries, but
14373       # adding the `-m68020' flag to GCC prevents building anything better,
14374       # like `-m68040'.
14375       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14376       ;;
14377
14378     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14379       # PIC is the default for these OSes.
14380       ;;
14381
14382     mingw* | pw32* | os2*)
14383       # This hack is so that the source file can tell whether it is being
14384       # built for inclusion in a dll (and should export symbols for example).
14385       lt_prog_compiler_pic='-DDLL_EXPORT'
14386       ;;
14387
14388     darwin* | rhapsody*)
14389       # PIC is the default on this platform
14390       # Common symbols not allowed in MH_DYLIB files
14391       lt_prog_compiler_pic='-fno-common'
14392       ;;
14393
14394     interix3*)
14395       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14396       # Instead, we relocate shared libraries at runtime.
14397       ;;
14398
14399     msdosdjgpp*)
14400       # Just because we use GCC doesn't mean we suddenly get shared libraries
14401       # on systems that don't support them.
14402       lt_prog_compiler_can_build_shared=no
14403       enable_shared=no
14404       ;;
14405
14406     sysv4*MP*)
14407       if test -d /usr/nec; then
14408         lt_prog_compiler_pic=-Kconform_pic
14409       fi
14410       ;;
14411
14412     hpux*)
14413       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14414       # not for PA HP-UX.
14415       case $host_cpu in
14416       hppa*64*|ia64*)
14417         # +Z the default
14418         ;;
14419       *)
14420         lt_prog_compiler_pic='-fPIC'
14421         ;;
14422       esac
14423       ;;
14424
14425     *)
14426       lt_prog_compiler_pic='-fPIC'
14427       ;;
14428     esac
14429   else
14430     # PORTME Check for flag to pass linker flags through the system compiler.
14431     case $host_os in
14432     aix*)
14433       lt_prog_compiler_wl='-Wl,'
14434       if test "$host_cpu" = ia64; then
14435         # AIX 5 now supports IA64 processor
14436         lt_prog_compiler_static='-Bstatic'
14437       else
14438         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14439       fi
14440       ;;
14441       darwin*)
14442         # PIC is the default on this platform
14443         # Common symbols not allowed in MH_DYLIB files
14444        case $cc_basename in
14445          xlc*)
14446          lt_prog_compiler_pic='-qnocommon'
14447          lt_prog_compiler_wl='-Wl,'
14448          ;;
14449        esac
14450        ;;
14451
14452     mingw* | pw32* | os2*)
14453       # This hack is so that the source file can tell whether it is being
14454       # built for inclusion in a dll (and should export symbols for example).
14455       lt_prog_compiler_pic='-DDLL_EXPORT'
14456       ;;
14457
14458     hpux9* | hpux10* | hpux11*)
14459       lt_prog_compiler_wl='-Wl,'
14460       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14461       # not for PA HP-UX.
14462       case $host_cpu in
14463       hppa*64*|ia64*)
14464         # +Z the default
14465         ;;
14466       *)
14467         lt_prog_compiler_pic='+Z'
14468         ;;
14469       esac
14470       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14471       lt_prog_compiler_static='${wl}-a ${wl}archive'
14472       ;;
14473
14474     irix5* | irix6* | nonstopux*)
14475       lt_prog_compiler_wl='-Wl,'
14476       # PIC (with -KPIC) is the default.
14477       lt_prog_compiler_static='-non_shared'
14478       ;;
14479
14480     newsos6)
14481       lt_prog_compiler_pic='-KPIC'
14482       lt_prog_compiler_static='-Bstatic'
14483       ;;
14484
14485     linux*)
14486       case $cc_basename in
14487       icc* | ecc*)
14488         lt_prog_compiler_wl='-Wl,'
14489         lt_prog_compiler_pic='-KPIC'
14490         lt_prog_compiler_static='-static'
14491         ;;
14492       pgcc* | pgf77* | pgf90* | pgf95*)
14493         # Portland Group compilers (*not* the Pentium gcc compiler,
14494         # which looks to be a dead project)
14495         lt_prog_compiler_wl='-Wl,'
14496         lt_prog_compiler_pic='-fpic'
14497         lt_prog_compiler_static='-Bstatic'
14498         ;;
14499       ccc*)
14500         lt_prog_compiler_wl='-Wl,'
14501         # All Alpha code is PIC.
14502         lt_prog_compiler_static='-non_shared'
14503         ;;
14504       esac
14505       ;;
14506
14507     osf3* | osf4* | osf5*)
14508       lt_prog_compiler_wl='-Wl,'
14509       # All OSF/1 code is PIC.
14510       lt_prog_compiler_static='-non_shared'
14511       ;;
14512
14513     solaris*)
14514       lt_prog_compiler_pic='-KPIC'
14515       lt_prog_compiler_static='-Bstatic'
14516       case $cc_basename in
14517       f77* | f90* | f95*)
14518         lt_prog_compiler_wl='-Qoption ld ';;
14519       *)
14520         lt_prog_compiler_wl='-Wl,';;
14521       esac
14522       ;;
14523
14524     sunos4*)
14525       lt_prog_compiler_wl='-Qoption ld '
14526       lt_prog_compiler_pic='-PIC'
14527       lt_prog_compiler_static='-Bstatic'
14528       ;;
14529
14530     sysv4 | sysv4.2uw2* | sysv4.3*)
14531       lt_prog_compiler_wl='-Wl,'
14532       lt_prog_compiler_pic='-KPIC'
14533       lt_prog_compiler_static='-Bstatic'
14534       ;;
14535
14536     sysv4*MP*)
14537       if test -d /usr/nec ;then
14538         lt_prog_compiler_pic='-Kconform_pic'
14539         lt_prog_compiler_static='-Bstatic'
14540       fi
14541       ;;
14542
14543     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14544       lt_prog_compiler_wl='-Wl,'
14545       lt_prog_compiler_pic='-KPIC'
14546       lt_prog_compiler_static='-Bstatic'
14547       ;;
14548
14549     unicos*)
14550       lt_prog_compiler_wl='-Wl,'
14551       lt_prog_compiler_can_build_shared=no
14552       ;;
14553
14554     uts4*)
14555       lt_prog_compiler_pic='-pic'
14556       lt_prog_compiler_static='-Bstatic'
14557       ;;
14558
14559     *)
14560       lt_prog_compiler_can_build_shared=no
14561       ;;
14562     esac
14563   fi
14564
14565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14566 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14567
14568 #
14569 # Check to make sure the PIC flag actually works.
14570 #
14571 if test -n "$lt_prog_compiler_pic"; then
14572
14573 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14575 if test "${lt_prog_compiler_pic_works+set}" = set; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578   lt_prog_compiler_pic_works=no
14579   ac_outfile=conftest.$ac_objext
14580    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14581    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14582    # Insert the option either (1) after the last *FLAGS variable, or
14583    # (2) before a word containing "conftest.", or (3) at the end.
14584    # Note that $ac_compile itself does not contain backslashes and begins
14585    # with a dollar sign (not a hyphen), so the echo should work correctly.
14586    # The option is referenced via a variable to avoid confusing sed.
14587    lt_compile=`echo "$ac_compile" | $SED \
14588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590    -e 's:$: $lt_compiler_flag:'`
14591    (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592    (eval "$lt_compile" 2>conftest.err)
14593    ac_status=$?
14594    cat conftest.err >&5
14595    echo "$as_me:14595: \$? = $ac_status" >&5
14596    if (exit $ac_status) && test -s "$ac_outfile"; then
14597      # The compiler can only warn and ignore the option if not recognized
14598      # So say no if there are warnings other than the usual output.
14599      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14600      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14601      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14602        lt_prog_compiler_pic_works=yes
14603      fi
14604    fi
14605    $rm conftest*
14606
14607 fi
14608 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14609 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14610
14611 if test x"$lt_prog_compiler_pic_works" = xyes; then
14612     case $lt_prog_compiler_pic in
14613      "" | " "*) ;;
14614      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14615      esac
14616 else
14617     lt_prog_compiler_pic=
14618      lt_prog_compiler_can_build_shared=no
14619 fi
14620
14621 fi
14622 case $host_os in
14623   # For platforms which do not support PIC, -DPIC is meaningless:
14624   *djgpp*)
14625     lt_prog_compiler_pic=
14626     ;;
14627   *)
14628     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14629     ;;
14630 esac
14631
14632 #
14633 # Check to make sure the static flag actually works.
14634 #
14635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14636 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14637 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14638 if test "${lt_prog_compiler_static_works+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   lt_prog_compiler_static_works=no
14642    save_LDFLAGS="$LDFLAGS"
14643    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14644    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14645    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14646      # The linker can only warn and ignore the option if not recognized
14647      # So say no if there are warnings
14648      if test -s conftest.err; then
14649        # Append any errors to the config.log.
14650        cat conftest.err 1>&5
14651        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14652        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14653        if diff conftest.exp conftest.er2 >/dev/null; then
14654          lt_prog_compiler_static_works=yes
14655        fi
14656      else
14657        lt_prog_compiler_static_works=yes
14658      fi
14659    fi
14660    $rm conftest*
14661    LDFLAGS="$save_LDFLAGS"
14662
14663 fi
14664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14665 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14666
14667 if test x"$lt_prog_compiler_static_works" = xyes; then
14668     :
14669 else
14670     lt_prog_compiler_static=
14671 fi
14672
14673
14674 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14675 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14676 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   lt_cv_prog_compiler_c_o=no
14680    $rm -r conftest 2>/dev/null
14681    mkdir conftest
14682    cd conftest
14683    mkdir out
14684    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14685
14686    lt_compiler_flag="-o out/conftest2.$ac_objext"
14687    # Insert the option either (1) after the last *FLAGS variable, or
14688    # (2) before a word containing "conftest.", or (3) at the end.
14689    # Note that $ac_compile itself does not contain backslashes and begins
14690    # with a dollar sign (not a hyphen), so the echo should work correctly.
14691    lt_compile=`echo "$ac_compile" | $SED \
14692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14694    -e 's:$: $lt_compiler_flag:'`
14695    (eval echo "\"\$as_me:14695: $lt_compile\"" >&5)
14696    (eval "$lt_compile" 2>out/conftest.err)
14697    ac_status=$?
14698    cat out/conftest.err >&5
14699    echo "$as_me:14699: \$? = $ac_status" >&5
14700    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14701    then
14702      # The compiler can only warn and ignore the option if not recognized
14703      # So say no if there are warnings
14704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14705      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14706      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14707        lt_cv_prog_compiler_c_o=yes
14708      fi
14709    fi
14710    chmod u+w . 2>&5
14711    $rm conftest*
14712    # SGI C++ compiler will create directory out/ii_files/ for
14713    # template instantiation
14714    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14715    $rm out/* && rmdir out
14716    cd ..
14717    rmdir conftest
14718    $rm conftest*
14719
14720 fi
14721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14722 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14723
14724
14725 hard_links="nottested"
14726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14727   # do not overwrite the value of need_locks provided by the user
14728   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14729 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14730   hard_links=yes
14731   $rm conftest*
14732   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14733   touch conftest.a
14734   ln conftest.a conftest.b 2>&5 || hard_links=no
14735   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14736   { echo "$as_me:$LINENO: result: $hard_links" >&5
14737 echo "${ECHO_T}$hard_links" >&6; }
14738   if test "$hard_links" = no; then
14739     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14740 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14741     need_locks=warn
14742   fi
14743 else
14744   need_locks=no
14745 fi
14746
14747 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14748 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14749
14750   runpath_var=
14751   allow_undefined_flag=
14752   enable_shared_with_static_runtimes=no
14753   archive_cmds=
14754   archive_expsym_cmds=
14755   old_archive_From_new_cmds=
14756   old_archive_from_expsyms_cmds=
14757   export_dynamic_flag_spec=
14758   whole_archive_flag_spec=
14759   thread_safe_flag_spec=
14760   hardcode_libdir_flag_spec=
14761   hardcode_libdir_flag_spec_ld=
14762   hardcode_libdir_separator=
14763   hardcode_direct=no
14764   hardcode_minus_L=no
14765   hardcode_shlibpath_var=unsupported
14766   link_all_deplibs=unknown
14767   hardcode_automatic=no
14768   module_cmds=
14769   module_expsym_cmds=
14770   always_export_symbols=no
14771   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14772   # include_expsyms should be a list of space-separated symbols to be *always*
14773   # included in the symbol list
14774   include_expsyms=
14775   # exclude_expsyms can be an extended regexp of symbols to exclude
14776   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14777   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14778   # as well as any symbol that contains `d'.
14779   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14780   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14781   # platforms (ab)use it in PIC code, but their linkers get confused if
14782   # the symbol is explicitly referenced.  Since portable code cannot
14783   # rely on this symbol name, it's probably fine to never include it in
14784   # preloaded symbol tables.
14785   extract_expsyms_cmds=
14786   # Just being paranoid about ensuring that cc_basename is set.
14787   for cc_temp in $compiler""; do
14788   case $cc_temp in
14789     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14790     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14791     \-*) ;;
14792     *) break;;
14793   esac
14794 done
14795 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14796
14797   case $host_os in
14798   cygwin* | mingw* | pw32*)
14799     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14800     # When not using gcc, we currently assume that we are using
14801     # Microsoft Visual C++.
14802     if test "$GCC" != yes; then
14803       with_gnu_ld=no
14804     fi
14805     ;;
14806   interix*)
14807     # we just hope/assume this is gcc and not c89 (= MSVC++)
14808     with_gnu_ld=yes
14809     ;;
14810   openbsd*)
14811     with_gnu_ld=no
14812     ;;
14813   esac
14814
14815   ld_shlibs=yes
14816   if test "$with_gnu_ld" = yes; then
14817     # If archive_cmds runs LD, not CC, wlarc should be empty
14818     wlarc='${wl}'
14819
14820     # Set some defaults for GNU ld with shared library support. These
14821     # are reset later if shared libraries are not supported. Putting them
14822     # here allows them to be overridden if necessary.
14823     runpath_var=LD_RUN_PATH
14824     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14825     export_dynamic_flag_spec='${wl}--export-dynamic'
14826     # ancient GNU ld didn't support --whole-archive et. al.
14827     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14828         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14829       else
14830         whole_archive_flag_spec=
14831     fi
14832     supports_anon_versioning=no
14833     case `$LD -v 2>/dev/null` in
14834       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14835       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14836       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14837       *\ 2.11.*) ;; # other 2.11 versions
14838       *) supports_anon_versioning=yes ;;
14839     esac
14840
14841     # See if GNU ld supports shared libraries.
14842     case $host_os in
14843     aix3* | aix4* | aix5*)
14844       # On AIX/PPC, the GNU linker is very broken
14845       if test "$host_cpu" != ia64; then
14846         ld_shlibs=no
14847         cat <<EOF 1>&2
14848
14849 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14850 *** to be unable to reliably create shared libraries on AIX.
14851 *** Therefore, libtool is disabling shared libraries support.  If you
14852 *** really care for shared libraries, you may want to modify your PATH
14853 *** so that a non-GNU linker is found, and then restart.
14854
14855 EOF
14856       fi
14857       ;;
14858
14859     amigaos*)
14860       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)'
14861       hardcode_libdir_flag_spec='-L$libdir'
14862       hardcode_minus_L=yes
14863
14864       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14865       # that the semantics of dynamic libraries on AmigaOS, at least up
14866       # to version 4, is to share data among multiple programs linked
14867       # with the same dynamic library.  Since this doesn't match the
14868       # behavior of shared libraries on other platforms, we can't use
14869       # them.
14870       ld_shlibs=no
14871       ;;
14872
14873     beos*)
14874       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875         allow_undefined_flag=unsupported
14876         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14877         # support --undefined.  This deserves some investigation.  FIXME
14878         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879       else
14880         ld_shlibs=no
14881       fi
14882       ;;
14883
14884     cygwin* | mingw* | pw32*)
14885       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14886       # as there is no search path for DLLs.
14887       hardcode_libdir_flag_spec='-L$libdir'
14888       allow_undefined_flag=unsupported
14889       always_export_symbols=no
14890       enable_shared_with_static_runtimes=yes
14891       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14892
14893       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14894         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14895         # If the export-symbols file already is a .def file (1st line
14896         # is EXPORTS), use it as is; otherwise, prepend...
14897         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14898           cp $export_symbols $output_objdir/$soname.def;
14899         else
14900           echo EXPORTS > $output_objdir/$soname.def;
14901           cat $export_symbols >> $output_objdir/$soname.def;
14902         fi~
14903         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14904       else
14905         ld_shlibs=no
14906       fi
14907       ;;
14908
14909     interix3*)
14910       hardcode_direct=no
14911       hardcode_shlibpath_var=no
14912       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14913       export_dynamic_flag_spec='${wl}-E'
14914       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14915       # Instead, shared libraries are loaded at an image base (0x10000000 by
14916       # default) and relocated if they conflict, which is a slow very memory
14917       # consuming and fragmenting process.  To avoid this, we pick a random,
14918       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14919       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14920       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14921       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'
14922       ;;
14923
14924     linux*)
14925       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926         tmp_addflag=
14927         case $cc_basename,$host_cpu in
14928         pgcc*)                          # Portland Group C compiler
14929           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'
14930           tmp_addflag=' $pic_flag'
14931           ;;
14932         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14933           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'
14934           tmp_addflag=' $pic_flag -Mnomain' ;;
14935         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14936           tmp_addflag=' -i_dynamic' ;;
14937         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14938           tmp_addflag=' -i_dynamic -nofor_main' ;;
14939         ifc* | ifort*)                  # Intel Fortran compiler
14940           tmp_addflag=' -nofor_main' ;;
14941         esac
14942         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943
14944         if test $supports_anon_versioning = yes; then
14945           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14946   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947   $echo "local: *; };" >> $output_objdir/$libname.ver~
14948           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949         fi
14950       else
14951         ld_shlibs=no
14952       fi
14953       ;;
14954
14955     netbsd*)
14956       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14957         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14958         wlarc=
14959       else
14960         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14962       fi
14963       ;;
14964
14965     solaris*)
14966       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14967         ld_shlibs=no
14968         cat <<EOF 1>&2
14969
14970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14971 *** create shared libraries on Solaris systems.  Therefore, libtool
14972 *** is disabling shared libraries support.  We urge you to upgrade GNU
14973 *** binutils to release 2.9.1 or newer.  Another option is to modify
14974 *** your PATH or compiler configuration so that the native linker is
14975 *** used, and then restart.
14976
14977 EOF
14978       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14979         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14980         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14981       else
14982         ld_shlibs=no
14983       fi
14984       ;;
14985
14986     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14987       case `$LD -v 2>&1` in
14988         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14989         ld_shlibs=no
14990         cat <<_LT_EOF 1>&2
14991
14992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14993 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14994 *** is disabling shared libraries support.  We urge you to upgrade GNU
14995 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14996 *** your PATH or compiler configuration so that the native linker is
14997 *** used, and then restart.
14998
14999 _LT_EOF
15000         ;;
15001         *)
15002           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15004             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15005             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15006           else
15007             ld_shlibs=no
15008           fi
15009         ;;
15010       esac
15011       ;;
15012
15013     sunos4*)
15014       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15015       wlarc=
15016       hardcode_direct=yes
15017       hardcode_shlibpath_var=no
15018       ;;
15019
15020     *)
15021       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15022         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15023         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15024       else
15025         ld_shlibs=no
15026       fi
15027       ;;
15028     esac
15029
15030     if test "$ld_shlibs" = no; then
15031       runpath_var=
15032       hardcode_libdir_flag_spec=
15033       export_dynamic_flag_spec=
15034       whole_archive_flag_spec=
15035     fi
15036   else
15037     # PORTME fill in a description of your system's linker (not GNU ld)
15038     case $host_os in
15039     aix3*)
15040       allow_undefined_flag=unsupported
15041       always_export_symbols=yes
15042       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'
15043       # Note: this linker hardcodes the directories in LIBPATH if there
15044       # are no directories specified by -L.
15045       hardcode_minus_L=yes
15046       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15047         # Neither direct hardcoding nor static linking is supported with a
15048         # broken collect2.
15049         hardcode_direct=unsupported
15050       fi
15051       ;;
15052
15053     aix4* | aix5*)
15054       if test "$host_cpu" = ia64; then
15055         # On IA64, the linker does run time linking by default, so we don't
15056         # have to do anything special.
15057         aix_use_runtimelinking=no
15058         exp_sym_flag='-Bexport'
15059         no_entry_flag=""
15060       else
15061         # If we're using GNU nm, then we don't want the "-C" option.
15062         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15063         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15064           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'
15065         else
15066           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'
15067         fi
15068         aix_use_runtimelinking=no
15069
15070         # Test if we are trying to use run time linking or normal
15071         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15072         # need to do runtime linking.
15073         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15074           for ld_flag in $LDFLAGS; do
15075           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15076             aix_use_runtimelinking=yes
15077             break
15078           fi
15079           done
15080           ;;
15081         esac
15082
15083         exp_sym_flag='-bexport'
15084         no_entry_flag='-bnoentry'
15085       fi
15086
15087       # When large executables or shared objects are built, AIX ld can
15088       # have problems creating the table of contents.  If linking a library
15089       # or program results in "error TOC overflow" add -mminimal-toc to
15090       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15091       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15092
15093       archive_cmds=''
15094       hardcode_direct=yes
15095       hardcode_libdir_separator=':'
15096       link_all_deplibs=yes
15097
15098       if test "$GCC" = yes; then
15099         case $host_os in aix4.[012]|aix4.[012].*)
15100         # We only want to do this on AIX 4.2 and lower, the check
15101         # below for broken collect2 doesn't work under 4.3+
15102           collect2name=`${CC} -print-prog-name=collect2`
15103           if test -f "$collect2name" && \
15104            strings "$collect2name" | grep resolve_lib_name >/dev/null
15105           then
15106           # We have reworked collect2
15107           hardcode_direct=yes
15108           else
15109           # We have old collect2
15110           hardcode_direct=unsupported
15111           # It fails to find uninstalled libraries when the uninstalled
15112           # path is not listed in the libpath.  Setting hardcode_minus_L
15113           # to unsupported forces relinking
15114           hardcode_minus_L=yes
15115           hardcode_libdir_flag_spec='-L$libdir'
15116           hardcode_libdir_separator=
15117           fi
15118           ;;
15119         esac
15120         shared_flag='-shared'
15121         if test "$aix_use_runtimelinking" = yes; then
15122           shared_flag="$shared_flag "'${wl}-G'
15123         fi
15124       else
15125         # not using gcc
15126         if test "$host_cpu" = ia64; then
15127         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15128         # chokes on -Wl,-G. The following line is correct:
15129           shared_flag='-G'
15130         else
15131           if test "$aix_use_runtimelinking" = yes; then
15132             shared_flag='${wl}-G'
15133           else
15134             shared_flag='${wl}-bM:SRE'
15135           fi
15136         fi
15137       fi
15138
15139       # It seems that -bexpall does not export symbols beginning with
15140       # underscore (_), so it is better to generate a list of symbols to export.
15141       always_export_symbols=yes
15142       if test "$aix_use_runtimelinking" = yes; then
15143         # Warning - without using the other runtime loading flags (-brtl),
15144         # -berok will link without error, but may produce a broken library.
15145         allow_undefined_flag='-berok'
15146        # Determine the default libpath from the value encoded in an empty executable.
15147        cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h.  */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h.  */
15153
15154 int
15155 main ()
15156 {
15157
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (ac_try="$ac_link"
15164 case "(($ac_try" in
15165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166   *) ac_try_echo=$ac_try;;
15167 esac
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169   (eval "$ac_link") 2>conftest.er1
15170   ac_status=$?
15171   grep -v '^ *+' conftest.er1 >conftest.err
15172   rm -f conftest.er1
15173   cat conftest.err >&5
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } &&
15176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15177   { (case "(($ac_try" in
15178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179   *) ac_try_echo=$ac_try;;
15180 esac
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182   (eval "$ac_try") 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; } &&
15186          { ac_try='test -s conftest$ac_exeext'
15187   { (case "(($ac_try" in
15188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189   *) ac_try_echo=$ac_try;;
15190 esac
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192   (eval "$ac_try") 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; }; then
15196
15197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15198 }'`
15199 # Check for a 64-bit object if we didn't find anything.
15200 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; }
15201 }'`; fi
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206
15207 fi
15208
15209 rm -f core conftest.err conftest.$ac_objext \
15210       conftest$ac_exeext conftest.$ac_ext
15211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15212
15213        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15214         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"
15215        else
15216         if test "$host_cpu" = ia64; then
15217           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15218           allow_undefined_flag="-z nodefs"
15219           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"
15220         else
15221          # Determine the default libpath from the value encoded in an empty executable.
15222          cat >conftest.$ac_ext <<_ACEOF
15223 /* confdefs.h.  */
15224 _ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h.  */
15228
15229 int
15230 main ()
15231 {
15232
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_link") 2>conftest.er1
15245   ac_status=$?
15246   grep -v '^ *+' conftest.er1 >conftest.err
15247   rm -f conftest.er1
15248   cat conftest.err >&5
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252   { (case "(($ac_try" in
15253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254   *) ac_try_echo=$ac_try;;
15255 esac
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257   (eval "$ac_try") 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; } &&
15261          { ac_try='test -s conftest$ac_exeext'
15262   { (case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_try") 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; }; then
15271
15272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15273 }'`
15274 # Check for a 64-bit object if we didn't find anything.
15275 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; }
15276 }'`; fi
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281
15282 fi
15283
15284 rm -f core conftest.err conftest.$ac_objext \
15285       conftest$ac_exeext conftest.$ac_ext
15286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15287
15288          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15289           # Warning - without using the other run time loading flags,
15290           # -berok will link without error, but may produce a broken library.
15291           no_undefined_flag=' ${wl}-bernotok'
15292           allow_undefined_flag=' ${wl}-berok'
15293           # Exported symbols can be pulled into shared objects from archives
15294           whole_archive_flag_spec='$convenience'
15295           archive_cmds_need_lc=yes
15296           # This is similar to how AIX traditionally builds its shared libraries.
15297           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'
15298         fi
15299       fi
15300       ;;
15301
15302     amigaos*)
15303       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)'
15304       hardcode_libdir_flag_spec='-L$libdir'
15305       hardcode_minus_L=yes
15306       # see comment about different semantics on the GNU ld section
15307       ld_shlibs=no
15308       ;;
15309
15310     bsdi[45]*)
15311       export_dynamic_flag_spec=-rdynamic
15312       ;;
15313
15314     cygwin* | mingw* | pw32*)
15315       # When not using gcc, we currently assume that we are using
15316       # Microsoft Visual C++.
15317       # hardcode_libdir_flag_spec is actually meaningless, as there is
15318       # no search path for DLLs.
15319       hardcode_libdir_flag_spec=' '
15320       allow_undefined_flag=unsupported
15321       # Tell ltmain to make .lib files, not .a files.
15322       libext=lib
15323       # Tell ltmain to make .dll files, not .so files.
15324       shrext_cmds=".dll"
15325       # FIXME: Setting linknames here is a bad hack.
15326       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15327       # The linker will automatically build a .lib file if we build a DLL.
15328       old_archive_From_new_cmds='true'
15329       # FIXME: Should let the user specify the lib program.
15330       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15331       fix_srcfile_path='`cygpath -w "$srcfile"`'
15332       enable_shared_with_static_runtimes=yes
15333       ;;
15334
15335     darwin* | rhapsody*)
15336       case $host_os in
15337         rhapsody* | darwin1.[012])
15338          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15339          ;;
15340        *) # Darwin 1.3 on
15341          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15342            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15343          else
15344            case ${MACOSX_DEPLOYMENT_TARGET} in
15345              10.[012])
15346                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15347                ;;
15348              10.*)
15349                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15350                ;;
15351            esac
15352          fi
15353          ;;
15354       esac
15355       archive_cmds_need_lc=no
15356       hardcode_direct=no
15357       hardcode_automatic=yes
15358       hardcode_shlibpath_var=unsupported
15359       whole_archive_flag_spec=''
15360       link_all_deplibs=yes
15361     if test "$GCC" = yes ; then
15362         output_verbose_link_cmd='echo'
15363         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15364       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15365       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15366       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}'
15367       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}'
15368     else
15369       case $cc_basename in
15370         xlc*)
15371          output_verbose_link_cmd='echo'
15372          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15373          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15374           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15375          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}'
15376           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}'
15377           ;;
15378        *)
15379          ld_shlibs=no
15380           ;;
15381       esac
15382     fi
15383       ;;
15384
15385     dgux*)
15386       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387       hardcode_libdir_flag_spec='-L$libdir'
15388       hardcode_shlibpath_var=no
15389       ;;
15390
15391     freebsd1*)
15392       ld_shlibs=no
15393       ;;
15394
15395     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15396     # support.  Future versions do this automatically, but an explicit c++rt0.o
15397     # does not break anything, and helps significantly (at the cost of a little
15398     # extra space).
15399     freebsd2.2*)
15400       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15401       hardcode_libdir_flag_spec='-R$libdir'
15402       hardcode_direct=yes
15403       hardcode_shlibpath_var=no
15404       ;;
15405
15406     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15407     freebsd2*)
15408       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15409       hardcode_direct=yes
15410       hardcode_minus_L=yes
15411       hardcode_shlibpath_var=no
15412       ;;
15413
15414     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15415     freebsd* | kfreebsd*-gnu | dragonfly*)
15416       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15417       hardcode_libdir_flag_spec='-R$libdir'
15418       hardcode_direct=yes
15419       hardcode_shlibpath_var=no
15420       ;;
15421
15422     hpux9*)
15423       if test "$GCC" = yes; then
15424         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'
15425       else
15426         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'
15427       fi
15428       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15429       hardcode_libdir_separator=:
15430       hardcode_direct=yes
15431
15432       # hardcode_minus_L: Not really in the search PATH,
15433       # but as the default location of the library.
15434       hardcode_minus_L=yes
15435       export_dynamic_flag_spec='${wl}-E'
15436       ;;
15437
15438     hpux10*)
15439       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15440         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15441       else
15442         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15443       fi
15444       if test "$with_gnu_ld" = no; then
15445         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15446         hardcode_libdir_separator=:
15447
15448         hardcode_direct=yes
15449         export_dynamic_flag_spec='${wl}-E'
15450
15451         # hardcode_minus_L: Not really in the search PATH,
15452         # but as the default location of the library.
15453         hardcode_minus_L=yes
15454       fi
15455       ;;
15456
15457     hpux11*)
15458       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15459         case $host_cpu in
15460         hppa*64*)
15461           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15462           ;;
15463         ia64*)
15464           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15465           ;;
15466         *)
15467           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15468           ;;
15469         esac
15470       else
15471         case $host_cpu in
15472         hppa*64*)
15473           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474           ;;
15475         ia64*)
15476           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15477           ;;
15478         *)
15479           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15480           ;;
15481         esac
15482       fi
15483       if test "$with_gnu_ld" = no; then
15484         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15485         hardcode_libdir_separator=:
15486
15487         case $host_cpu in
15488         hppa*64*|ia64*)
15489           hardcode_libdir_flag_spec_ld='+b $libdir'
15490           hardcode_direct=no
15491           hardcode_shlibpath_var=no
15492           ;;
15493         *)
15494           hardcode_direct=yes
15495           export_dynamic_flag_spec='${wl}-E'
15496
15497           # hardcode_minus_L: Not really in the search PATH,
15498           # but as the default location of the library.
15499           hardcode_minus_L=yes
15500           ;;
15501         esac
15502       fi
15503       ;;
15504
15505     irix5* | irix6* | nonstopux*)
15506       if test "$GCC" = yes; then
15507         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'
15508       else
15509         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'
15510         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15511       fi
15512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15513       hardcode_libdir_separator=:
15514       link_all_deplibs=yes
15515       ;;
15516
15517     netbsd*)
15518       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15519         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15520       else
15521         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15522       fi
15523       hardcode_libdir_flag_spec='-R$libdir'
15524       hardcode_direct=yes
15525       hardcode_shlibpath_var=no
15526       ;;
15527
15528     newsos6)
15529       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530       hardcode_direct=yes
15531       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15532       hardcode_libdir_separator=:
15533       hardcode_shlibpath_var=no
15534       ;;
15535
15536     openbsd*)
15537       hardcode_direct=yes
15538       hardcode_shlibpath_var=no
15539       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15541         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15542         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15543         export_dynamic_flag_spec='${wl}-E'
15544       else
15545        case $host_os in
15546          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15547            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15548            hardcode_libdir_flag_spec='-R$libdir'
15549            ;;
15550          *)
15551            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15553            ;;
15554        esac
15555       fi
15556       ;;
15557
15558     os2*)
15559       hardcode_libdir_flag_spec='-L$libdir'
15560       hardcode_minus_L=yes
15561       allow_undefined_flag=unsupported
15562       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'
15563       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15564       ;;
15565
15566     osf3*)
15567       if test "$GCC" = yes; then
15568         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15569         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'
15570       else
15571         allow_undefined_flag=' -expect_unresolved \*'
15572         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'
15573       fi
15574       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575       hardcode_libdir_separator=:
15576       ;;
15577
15578     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15579       if test "$GCC" = yes; then
15580         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15581         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'
15582         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15583       else
15584         allow_undefined_flag=' -expect_unresolved \*'
15585         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'
15586         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15587         $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'
15588
15589         # Both c and cxx compiler support -rpath directly
15590         hardcode_libdir_flag_spec='-rpath $libdir'
15591       fi
15592       hardcode_libdir_separator=:
15593       ;;
15594
15595     solaris*)
15596       no_undefined_flag=' -z text'
15597       if test "$GCC" = yes; then
15598         wlarc='${wl}'
15599         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15601           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15602       else
15603         wlarc=''
15604         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15607       fi
15608       hardcode_libdir_flag_spec='-R$libdir'
15609       hardcode_shlibpath_var=no
15610       case $host_os in
15611       solaris2.[0-5] | solaris2.[0-5].*) ;;
15612       *)
15613         # The compiler driver will combine linker options so we
15614         # cannot just pass the convience library names through
15615         # without $wl, iff we do not link with $LD.
15616         # Luckily, gcc supports the same syntax we need for Sun Studio.
15617         # Supported since Solaris 2.6 (maybe 2.5.1?)
15618         case $wlarc in
15619         '')
15620           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15621         *)
15622           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' ;;
15623         esac ;;
15624       esac
15625       link_all_deplibs=yes
15626       ;;
15627
15628     sunos4*)
15629       if test "x$host_vendor" = xsequent; then
15630         # Use $CC to link under sequent, because it throws in some extra .o
15631         # files that make .init and .fini sections work.
15632         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15633       else
15634         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15635       fi
15636       hardcode_libdir_flag_spec='-L$libdir'
15637       hardcode_direct=yes
15638       hardcode_minus_L=yes
15639       hardcode_shlibpath_var=no
15640       ;;
15641
15642     sysv4)
15643       case $host_vendor in
15644         sni)
15645           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646           hardcode_direct=yes # is this really true???
15647         ;;
15648         siemens)
15649           ## LD is ld it makes a PLAMLIB
15650           ## CC just makes a GrossModule.
15651           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15652           reload_cmds='$CC -r -o $output$reload_objs'
15653           hardcode_direct=no
15654         ;;
15655         motorola)
15656           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15657           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15658         ;;
15659       esac
15660       runpath_var='LD_RUN_PATH'
15661       hardcode_shlibpath_var=no
15662       ;;
15663
15664     sysv4.3*)
15665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666       hardcode_shlibpath_var=no
15667       export_dynamic_flag_spec='-Bexport'
15668       ;;
15669
15670     sysv4*MP*)
15671       if test -d /usr/nec; then
15672         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673         hardcode_shlibpath_var=no
15674         runpath_var=LD_RUN_PATH
15675         hardcode_runpath_var=yes
15676         ld_shlibs=yes
15677       fi
15678       ;;
15679
15680     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15681       no_undefined_flag='${wl}-z,text'
15682       archive_cmds_need_lc=no
15683       hardcode_shlibpath_var=no
15684       runpath_var='LD_RUN_PATH'
15685
15686       if test "$GCC" = yes; then
15687         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15688         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15689       else
15690         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15691         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692       fi
15693       ;;
15694
15695     sysv5* | sco3.2v5* | sco5v6*)
15696       # Note: We can NOT use -z defs as we might desire, because we do not
15697       # link with -lc, and that would cause any symbols used from libc to
15698       # always be unresolved, which means just about no library would
15699       # ever link correctly.  If we're not using GNU ld we use -z text
15700       # though, which does catch some bad symbols but isn't as heavy-handed
15701       # as -z defs.
15702       no_undefined_flag='${wl}-z,text'
15703       allow_undefined_flag='${wl}-z,nodefs'
15704       archive_cmds_need_lc=no
15705       hardcode_shlibpath_var=no
15706       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15707       hardcode_libdir_separator=':'
15708       link_all_deplibs=yes
15709       export_dynamic_flag_spec='${wl}-Bexport'
15710       runpath_var='LD_RUN_PATH'
15711
15712       if test "$GCC" = yes; then
15713         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15714         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715       else
15716         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15717         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15718       fi
15719       ;;
15720
15721     uts4*)
15722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15723       hardcode_libdir_flag_spec='-L$libdir'
15724       hardcode_shlibpath_var=no
15725       ;;
15726
15727     *)
15728       ld_shlibs=no
15729       ;;
15730     esac
15731   fi
15732
15733 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15734 echo "${ECHO_T}$ld_shlibs" >&6; }
15735 test "$ld_shlibs" = no && can_build_shared=no
15736
15737 #
15738 # Do we need to explicitly link libc?
15739 #
15740 case "x$archive_cmds_need_lc" in
15741 x|xyes)
15742   # Assume -lc should be added
15743   archive_cmds_need_lc=yes
15744
15745   if test "$enable_shared" = yes && test "$GCC" = yes; then
15746     case $archive_cmds in
15747     *'~'*)
15748       # FIXME: we may have to deal with multi-command sequences.
15749       ;;
15750     '$CC '*)
15751       # Test whether the compiler implicitly links with -lc since on some
15752       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15753       # to ld, don't add -lc before -lgcc.
15754       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15755 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15756       $rm conftest*
15757       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15758
15759       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760   (eval $ac_compile) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } 2>conftest.err; then
15764         soname=conftest
15765         lib=conftest
15766         libobjs=conftest.$ac_objext
15767         deplibs=
15768         wl=$lt_prog_compiler_wl
15769         pic_flag=$lt_prog_compiler_pic
15770         compiler_flags=-v
15771         linker_flags=-v
15772         verstring=
15773         output_objdir=.
15774         libname=conftest
15775         lt_save_allow_undefined_flag=$allow_undefined_flag
15776         allow_undefined_flag=
15777         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15778   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }
15782         then
15783           archive_cmds_need_lc=no
15784         else
15785           archive_cmds_need_lc=yes
15786         fi
15787         allow_undefined_flag=$lt_save_allow_undefined_flag
15788       else
15789         cat conftest.err 1>&5
15790       fi
15791       $rm conftest*
15792       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15793 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15794       ;;
15795     esac
15796   fi
15797   ;;
15798 esac
15799
15800 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15801 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15802 library_names_spec=
15803 libname_spec='lib$name'
15804 soname_spec=
15805 shrext_cmds=".so"
15806 postinstall_cmds=
15807 postuninstall_cmds=
15808 finish_cmds=
15809 finish_eval=
15810 shlibpath_var=
15811 shlibpath_overrides_runpath=unknown
15812 version_type=none
15813 dynamic_linker="$host_os ld.so"
15814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15815 if test "$GCC" = yes; then
15816   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15817   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15818     # if the path contains ";" then we assume it to be the separator
15819     # otherwise default to the standard path separator (i.e. ":") - it is
15820     # assumed that no part of a normal pathname contains ";" but that should
15821     # okay in the real world where ";" in dirpaths is itself problematic.
15822     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823   else
15824     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15825   fi
15826 else
15827   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15828 fi
15829 need_lib_prefix=unknown
15830 hardcode_into_libs=no
15831
15832 # when you set need_version to no, make sure it does not cause -set_version
15833 # flags to be left without arguments
15834 need_version=unknown
15835
15836 case $host_os in
15837 aix3*)
15838   version_type=linux
15839   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15840   shlibpath_var=LIBPATH
15841
15842   # AIX 3 has no versioning support, so we append a major version to the name.
15843   soname_spec='${libname}${release}${shared_ext}$major'
15844   ;;
15845
15846 aix4* | aix5*)
15847   version_type=linux
15848   need_lib_prefix=no
15849   need_version=no
15850   hardcode_into_libs=yes
15851   if test "$host_cpu" = ia64; then
15852     # AIX 5 supports IA64
15853     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15854     shlibpath_var=LD_LIBRARY_PATH
15855   else
15856     # With GCC up to 2.95.x, collect2 would create an import file
15857     # for dependence libraries.  The import file would start with
15858     # the line `#! .'.  This would cause the generated library to
15859     # depend on `.', always an invalid library.  This was fixed in
15860     # development snapshots of GCC prior to 3.0.
15861     case $host_os in
15862       aix4 | aix4.[01] | aix4.[01].*)
15863       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15864            echo ' yes '
15865            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15866         :
15867       else
15868         can_build_shared=no
15869       fi
15870       ;;
15871     esac
15872     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15873     # soname into executable. Probably we can add versioning support to
15874     # collect2, so additional links can be useful in future.
15875     if test "$aix_use_runtimelinking" = yes; then
15876       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15877       # instead of lib<name>.a to let people know that these are not
15878       # typical AIX shared libraries.
15879       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880     else
15881       # We preserve .a as extension for shared libraries through AIX4.2
15882       # and later when we are not doing run time linking.
15883       library_names_spec='${libname}${release}.a $libname.a'
15884       soname_spec='${libname}${release}${shared_ext}$major'
15885     fi
15886     shlibpath_var=LIBPATH
15887   fi
15888   ;;
15889
15890 amigaos*)
15891   library_names_spec='$libname.ixlibrary $libname.a'
15892   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15893   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'
15894   ;;
15895
15896 beos*)
15897   library_names_spec='${libname}${shared_ext}'
15898   dynamic_linker="$host_os ld.so"
15899   shlibpath_var=LIBRARY_PATH
15900   ;;
15901
15902 bsdi[45]*)
15903   version_type=linux
15904   need_version=no
15905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906   soname_spec='${libname}${release}${shared_ext}$major'
15907   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15908   shlibpath_var=LD_LIBRARY_PATH
15909   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15910   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15911   # the default ld.so.conf also contains /usr/contrib/lib and
15912   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15913   # libtool to hard-code these into programs
15914   ;;
15915
15916 cygwin* | mingw* | pw32*)
15917   version_type=windows
15918   shrext_cmds=".dll"
15919   need_version=no
15920   need_lib_prefix=no
15921
15922   case $GCC,$host_os in
15923   yes,cygwin* | yes,mingw* | yes,pw32*)
15924     library_names_spec='$libname.dll.a'
15925     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15926     postinstall_cmds='base_file=`basename \${file}`~
15927       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15928       dldir=$destdir/`dirname \$dlpath`~
15929       test -d \$dldir || mkdir -p \$dldir~
15930       $install_prog $dir/$dlname \$dldir/$dlname~
15931       chmod a+x \$dldir/$dlname'
15932     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933       dlpath=$dir/\$dldll~
15934        $rm \$dlpath'
15935     shlibpath_overrides_runpath=yes
15936
15937     case $host_os in
15938     cygwin*)
15939       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15942       ;;
15943     mingw*)
15944       # MinGW DLLs use traditional 'lib' prefix
15945       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948         # It is most probably a Windows format PATH printed by
15949         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15950         # path with ; separators, and with drive letters. We can handle the
15951         # drive letters (cygwin fileutils understands them), so leave them,
15952         # especially as we might pass files found there to a mingw objdump,
15953         # which wouldn't understand a cygwinified path. Ahh.
15954         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15955       else
15956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15957       fi
15958       ;;
15959     pw32*)
15960       # pw32 DLLs use 'pw' prefix rather than 'lib'
15961       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15962       ;;
15963     esac
15964     ;;
15965
15966   *)
15967     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15968     ;;
15969   esac
15970   dynamic_linker='Win32 ld.exe'
15971   # FIXME: first we should search . and the directory the executable is in
15972   shlibpath_var=PATH
15973   ;;
15974
15975 darwin* | rhapsody*)
15976   dynamic_linker="$host_os dyld"
15977   version_type=darwin
15978   need_lib_prefix=no
15979   need_version=no
15980   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981   soname_spec='${libname}${release}${major}$shared_ext'
15982   shlibpath_overrides_runpath=yes
15983   shlibpath_var=DYLD_LIBRARY_PATH
15984   shrext_cmds='.dylib'
15985   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986   if test "$GCC" = yes; then
15987     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"`
15988   else
15989     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15990   fi
15991   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15992   ;;
15993
15994 dgux*)
15995   version_type=linux
15996   need_lib_prefix=no
15997   need_version=no
15998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   shlibpath_var=LD_LIBRARY_PATH
16001   ;;
16002
16003 freebsd1*)
16004   dynamic_linker=no
16005   ;;
16006
16007 kfreebsd*-gnu)
16008   version_type=linux
16009   need_lib_prefix=no
16010   need_version=no
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012   soname_spec='${libname}${release}${shared_ext}$major'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   shlibpath_overrides_runpath=no
16015   hardcode_into_libs=yes
16016   dynamic_linker='GNU ld.so'
16017   ;;
16018
16019 freebsd* | dragonfly*)
16020   # DragonFly does not have aout.  When/if they implement a new
16021   # versioning mechanism, adjust this.
16022   if test -x /usr/bin/objformat; then
16023     objformat=`/usr/bin/objformat`
16024   else
16025     case $host_os in
16026     freebsd[123]*) objformat=aout ;;
16027     *) objformat=elf ;;
16028     esac
16029   fi
16030   version_type=freebsd-$objformat
16031   case $version_type in
16032     freebsd-elf*)
16033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16034       need_version=no
16035       need_lib_prefix=no
16036       ;;
16037     freebsd-*)
16038       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16039       need_version=yes
16040       ;;
16041   esac
16042   shlibpath_var=LD_LIBRARY_PATH
16043   case $host_os in
16044   freebsd2*)
16045     shlibpath_overrides_runpath=yes
16046     ;;
16047   freebsd3.[01]* | freebsdelf3.[01]*)
16048     shlibpath_overrides_runpath=yes
16049     hardcode_into_libs=yes
16050     ;;
16051   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16052   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16053     shlibpath_overrides_runpath=no
16054     hardcode_into_libs=yes
16055     ;;
16056   freebsd*) # from 4.6 on
16057     shlibpath_overrides_runpath=yes
16058     hardcode_into_libs=yes
16059     ;;
16060   esac
16061   ;;
16062
16063 gnu*)
16064   version_type=linux
16065   need_lib_prefix=no
16066   need_version=no
16067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16068   soname_spec='${libname}${release}${shared_ext}$major'
16069   shlibpath_var=LD_LIBRARY_PATH
16070   hardcode_into_libs=yes
16071   ;;
16072
16073 hpux9* | hpux10* | hpux11*)
16074   # Give a soname corresponding to the major version so that dld.sl refuses to
16075   # link against other versions.
16076   version_type=sunos
16077   need_lib_prefix=no
16078   need_version=no
16079   case $host_cpu in
16080   ia64*)
16081     shrext_cmds='.so'
16082     hardcode_into_libs=yes
16083     dynamic_linker="$host_os dld.so"
16084     shlibpath_var=LD_LIBRARY_PATH
16085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087     soname_spec='${libname}${release}${shared_ext}$major'
16088     if test "X$HPUX_IA64_MODE" = X32; then
16089       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16090     else
16091       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16092     fi
16093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094     ;;
16095    hppa*64*)
16096      shrext_cmds='.sl'
16097      hardcode_into_libs=yes
16098      dynamic_linker="$host_os dld.sl"
16099      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16100      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16101      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102      soname_spec='${libname}${release}${shared_ext}$major'
16103      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16104      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105      ;;
16106    *)
16107     shrext_cmds='.sl'
16108     dynamic_linker="$host_os dld.sl"
16109     shlibpath_var=SHLIB_PATH
16110     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112     soname_spec='${libname}${release}${shared_ext}$major'
16113     ;;
16114   esac
16115   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16116   postinstall_cmds='chmod 555 $lib'
16117   ;;
16118
16119 interix3*)
16120   version_type=linux
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124   soname_spec='${libname}${release}${shared_ext}$major'
16125   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16126   shlibpath_var=LD_LIBRARY_PATH
16127   shlibpath_overrides_runpath=no
16128   hardcode_into_libs=yes
16129   ;;
16130
16131 irix5* | irix6* | nonstopux*)
16132   case $host_os in
16133     nonstopux*) version_type=nonstopux ;;
16134     *)
16135         if test "$lt_cv_prog_gnu_ld" = yes; then
16136                 version_type=linux
16137         else
16138                 version_type=irix
16139         fi ;;
16140   esac
16141   need_lib_prefix=no
16142   need_version=no
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16145   case $host_os in
16146   irix5* | nonstopux*)
16147     libsuff= shlibsuff=
16148     ;;
16149   *)
16150     case $LD in # libtool.m4 will add one of these switches to LD
16151     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16152       libsuff= shlibsuff= libmagic=32-bit;;
16153     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16154       libsuff=32 shlibsuff=N32 libmagic=N32;;
16155     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16156       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16157     *) libsuff= shlibsuff= libmagic=never-match;;
16158     esac
16159     ;;
16160   esac
16161   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16162   shlibpath_overrides_runpath=no
16163   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16164   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16165   hardcode_into_libs=yes
16166   ;;
16167
16168 # No shared lib support for Linux oldld, aout, or coff.
16169 linux*oldld* | linux*aout* | linux*coff*)
16170   dynamic_linker=no
16171   ;;
16172
16173 # This must be Linux ELF.
16174 linux*)
16175   version_type=linux
16176   need_lib_prefix=no
16177   need_version=no
16178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179   soname_spec='${libname}${release}${shared_ext}$major'
16180   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   shlibpath_overrides_runpath=no
16183   # This implies no fast_install, which is unacceptable.
16184   # Some rework will be needed to allow for fast_install
16185   # before this can be enabled.
16186   hardcode_into_libs=yes
16187
16188   # Append ld.so.conf contents to the search path
16189   if test -f /etc/ld.so.conf; then
16190     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' ' '`
16191     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16192   fi
16193
16194   # We used to test for /lib/ld.so.1 and disable shared libraries on
16195   # powerpc, because MkLinux only supported shared libraries with the
16196   # GNU dynamic linker.  Since this was broken with cross compilers,
16197   # most powerpc-linux boxes support dynamic linking these days and
16198   # people can always --disable-shared, the test was removed, and we
16199   # assume the GNU/Linux dynamic linker is in use.
16200   dynamic_linker='GNU/Linux ld.so'
16201   ;;
16202
16203 knetbsd*-gnu)
16204   version_type=linux
16205   need_lib_prefix=no
16206   need_version=no
16207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16208   soname_spec='${libname}${release}${shared_ext}$major'
16209   shlibpath_var=LD_LIBRARY_PATH
16210   shlibpath_overrides_runpath=no
16211   hardcode_into_libs=yes
16212   dynamic_linker='GNU ld.so'
16213   ;;
16214
16215 netbsd*)
16216   version_type=sunos
16217   need_lib_prefix=no
16218   need_version=no
16219   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16221     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16222     dynamic_linker='NetBSD (a.out) ld.so'
16223   else
16224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225     soname_spec='${libname}${release}${shared_ext}$major'
16226     dynamic_linker='NetBSD ld.elf_so'
16227   fi
16228   shlibpath_var=LD_LIBRARY_PATH
16229   shlibpath_overrides_runpath=yes
16230   hardcode_into_libs=yes
16231   ;;
16232
16233 newsos6)
16234   version_type=linux
16235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236   shlibpath_var=LD_LIBRARY_PATH
16237   shlibpath_overrides_runpath=yes
16238   ;;
16239
16240 nto-qnx*)
16241   version_type=linux
16242   need_lib_prefix=no
16243   need_version=no
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245   soname_spec='${libname}${release}${shared_ext}$major'
16246   shlibpath_var=LD_LIBRARY_PATH
16247   shlibpath_overrides_runpath=yes
16248   ;;
16249
16250 openbsd*)
16251   version_type=sunos
16252   sys_lib_dlsearch_path_spec="/usr/lib"
16253   need_lib_prefix=no
16254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16255   case $host_os in
16256     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16257     *)                         need_version=no  ;;
16258   esac
16259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261   shlibpath_var=LD_LIBRARY_PATH
16262   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16263     case $host_os in
16264       openbsd2.[89] | openbsd2.[89].*)
16265         shlibpath_overrides_runpath=no
16266         ;;
16267       *)
16268         shlibpath_overrides_runpath=yes
16269         ;;
16270       esac
16271   else
16272     shlibpath_overrides_runpath=yes
16273   fi
16274   ;;
16275
16276 os2*)
16277   libname_spec='$name'
16278   shrext_cmds=".dll"
16279   need_lib_prefix=no
16280   library_names_spec='$libname${shared_ext} $libname.a'
16281   dynamic_linker='OS/2 ld.exe'
16282   shlibpath_var=LIBPATH
16283   ;;
16284
16285 osf3* | osf4* | osf5*)
16286   version_type=osf
16287   need_lib_prefix=no
16288   need_version=no
16289   soname_spec='${libname}${release}${shared_ext}$major'
16290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291   shlibpath_var=LD_LIBRARY_PATH
16292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16294   ;;
16295
16296 solaris*)
16297   version_type=linux
16298   need_lib_prefix=no
16299   need_version=no
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301   soname_spec='${libname}${release}${shared_ext}$major'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   shlibpath_overrides_runpath=yes
16304   hardcode_into_libs=yes
16305   # ldd complains unless libraries are executable
16306   postinstall_cmds='chmod +x $lib'
16307   ;;
16308
16309 sunos4*)
16310   version_type=sunos
16311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16312   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16313   shlibpath_var=LD_LIBRARY_PATH
16314   shlibpath_overrides_runpath=yes
16315   if test "$with_gnu_ld" = yes; then
16316     need_lib_prefix=no
16317   fi
16318   need_version=yes
16319   ;;
16320
16321 sysv4 | sysv4.3*)
16322   version_type=linux
16323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324   soname_spec='${libname}${release}${shared_ext}$major'
16325   shlibpath_var=LD_LIBRARY_PATH
16326   case $host_vendor in
16327     sni)
16328       shlibpath_overrides_runpath=no
16329       need_lib_prefix=no
16330       export_dynamic_flag_spec='${wl}-Blargedynsym'
16331       runpath_var=LD_RUN_PATH
16332       ;;
16333     siemens)
16334       need_lib_prefix=no
16335       ;;
16336     motorola)
16337       need_lib_prefix=no
16338       need_version=no
16339       shlibpath_overrides_runpath=no
16340       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16341       ;;
16342   esac
16343   ;;
16344
16345 sysv4*MP*)
16346   if test -d /usr/nec ;then
16347     version_type=linux
16348     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16349     soname_spec='$libname${shared_ext}.$major'
16350     shlibpath_var=LD_LIBRARY_PATH
16351   fi
16352   ;;
16353
16354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16355   version_type=freebsd-elf
16356   need_lib_prefix=no
16357   need_version=no
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16359   soname_spec='${libname}${release}${shared_ext}$major'
16360   shlibpath_var=LD_LIBRARY_PATH
16361   hardcode_into_libs=yes
16362   if test "$with_gnu_ld" = yes; then
16363     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16364     shlibpath_overrides_runpath=no
16365   else
16366     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16367     shlibpath_overrides_runpath=yes
16368     case $host_os in
16369       sco3.2v5*)
16370         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16371         ;;
16372     esac
16373   fi
16374   sys_lib_dlsearch_path_spec='/usr/lib'
16375   ;;
16376
16377 uts4*)
16378   version_type=linux
16379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380   soname_spec='${libname}${release}${shared_ext}$major'
16381   shlibpath_var=LD_LIBRARY_PATH
16382   ;;
16383
16384 *)
16385   dynamic_linker=no
16386   ;;
16387 esac
16388 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16389 echo "${ECHO_T}$dynamic_linker" >&6; }
16390 test "$dynamic_linker" = no && can_build_shared=no
16391
16392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16393 if test "$GCC" = yes; then
16394   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16395 fi
16396
16397 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16399 hardcode_action=
16400 if test -n "$hardcode_libdir_flag_spec" || \
16401    test -n "$runpath_var" || \
16402    test "X$hardcode_automatic" = "Xyes" ; then
16403
16404   # We can hardcode non-existant directories.
16405   if test "$hardcode_direct" != no &&
16406      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16407      # have to relink, otherwise we might link with an installed library
16408      # when we should be linking with a yet-to-be-installed one
16409      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16410      test "$hardcode_minus_L" != no; then
16411     # Linking always hardcodes the temporary library directory.
16412     hardcode_action=relink
16413   else
16414     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16415     hardcode_action=immediate
16416   fi
16417 else
16418   # We cannot hardcode anything, or else we can only hardcode existing
16419   # directories.
16420   hardcode_action=unsupported
16421 fi
16422 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16423 echo "${ECHO_T}$hardcode_action" >&6; }
16424
16425 if test "$hardcode_action" = relink; then
16426   # Fast installation is not supported
16427   enable_fast_install=no
16428 elif test "$shlibpath_overrides_runpath" = yes ||
16429      test "$enable_shared" = no; then
16430   # Fast installation is not necessary
16431   enable_fast_install=needless
16432 fi
16433
16434 striplib=
16435 old_striplib=
16436 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16437 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16438 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16439   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16440   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16441   { echo "$as_me:$LINENO: result: yes" >&5
16442 echo "${ECHO_T}yes" >&6; }
16443 else
16444 # FIXME - insert some real tests, host_os isn't really good enough
16445   case $host_os in
16446    darwin*)
16447        if test -n "$STRIP" ; then
16448          striplib="$STRIP -x"
16449          { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16451        else
16452   { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16454 fi
16455        ;;
16456    *)
16457   { echo "$as_me:$LINENO: result: no" >&5
16458 echo "${ECHO_T}no" >&6; }
16459     ;;
16460   esac
16461 fi
16462
16463 if test "x$enable_dlopen" != xyes; then
16464   enable_dlopen=unknown
16465   enable_dlopen_self=unknown
16466   enable_dlopen_self_static=unknown
16467 else
16468   lt_cv_dlopen=no
16469   lt_cv_dlopen_libs=
16470
16471   case $host_os in
16472   beos*)
16473     lt_cv_dlopen="load_add_on"
16474     lt_cv_dlopen_libs=
16475     lt_cv_dlopen_self=yes
16476     ;;
16477
16478   mingw* | pw32*)
16479     lt_cv_dlopen="LoadLibrary"
16480     lt_cv_dlopen_libs=
16481    ;;
16482
16483   cygwin*)
16484     lt_cv_dlopen="dlopen"
16485     lt_cv_dlopen_libs=
16486    ;;
16487
16488   darwin*)
16489   # if libdl is installed we need to link against it
16490     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-ldl  $LIBS"
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505    Use char because int might match the return type of a GCC
16506    builtin and then its argument prototype would still apply.  */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char dlopen ();
16511 int
16512 main ()
16513 {
16514 return dlopen ();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_link") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } &&
16533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534   { (case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_try") 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; } &&
16543          { ac_try='test -s conftest$ac_exeext'
16544   { (case "(($ac_try" in
16545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546   *) ac_try_echo=$ac_try;;
16547 esac
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549   (eval "$ac_try") 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_lib_dl_dlopen=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558         ac_cv_lib_dl_dlopen=no
16559 fi
16560
16561 rm -f core conftest.err conftest.$ac_objext \
16562       conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16564 fi
16565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16566 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16567 if test $ac_cv_lib_dl_dlopen = yes; then
16568   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16569 else
16570
16571     lt_cv_dlopen="dyld"
16572     lt_cv_dlopen_libs=
16573     lt_cv_dlopen_self=yes
16574
16575 fi
16576
16577    ;;
16578
16579   *)
16580     { echo "$as_me:$LINENO: checking for shl_load" >&5
16581 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16582 if test "${ac_cv_func_shl_load+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h.  */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h.  */
16591 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16593 #define shl_load innocuous_shl_load
16594
16595 /* System header to define __stub macros and hopefully few prototypes,
16596     which can conflict with char shl_load (); below.
16597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598     <limits.h> exists even on freestanding compilers.  */
16599
16600 #ifdef __STDC__
16601 # include <limits.h>
16602 #else
16603 # include <assert.h>
16604 #endif
16605
16606 #undef shl_load
16607
16608 /* Override any GCC internal prototype to avoid an error.
16609    Use char because int might match the return type of a GCC
16610    builtin and then its argument prototype would still apply.  */
16611 #ifdef __cplusplus
16612 extern "C"
16613 #endif
16614 char shl_load ();
16615 /* The GNU C library defines this for functions which it implements
16616     to always fail with ENOSYS.  Some functions are actually named
16617     something starting with __ and the normal name is an alias.  */
16618 #if defined __stub_shl_load || defined __stub___shl_load
16619 choke me
16620 #endif
16621
16622 int
16623 main ()
16624 {
16625 return shl_load ();
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_link") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } &&
16644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645   { (case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_try") 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest$ac_exeext'
16655   { (case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660   (eval "$ac_try") 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); }; }; then
16664   ac_cv_func_shl_load=yes
16665 else
16666   echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669         ac_cv_func_shl_load=no
16670 fi
16671
16672 rm -f core conftest.err conftest.$ac_objext \
16673       conftest$ac_exeext conftest.$ac_ext
16674 fi
16675 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16677 if test $ac_cv_func_shl_load = yes; then
16678   lt_cv_dlopen="shl_load"
16679 else
16680   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-ldld  $LIBS"
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693
16694 /* Override any GCC internal prototype to avoid an error.
16695    Use char because int might match the return type of a GCC
16696    builtin and then its argument prototype would still apply.  */
16697 #ifdef __cplusplus
16698 extern "C"
16699 #endif
16700 char shl_load ();
16701 int
16702 main ()
16703 {
16704 return shl_load ();
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (ac_try="$ac_link"
16711 case "(($ac_try" in
16712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713   *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716   (eval "$ac_link") 2>conftest.er1
16717   ac_status=$?
16718   grep -v '^ *+' conftest.er1 >conftest.err
16719   rm -f conftest.er1
16720   cat conftest.err >&5
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } &&
16723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724   { (case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_try") 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; } &&
16733          { ac_try='test -s conftest$ac_exeext'
16734   { (case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_try") 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   ac_cv_lib_dld_shl_load=yes
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748         ac_cv_lib_dld_shl_load=no
16749 fi
16750
16751 rm -f core conftest.err conftest.$ac_objext \
16752       conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16754 fi
16755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16756 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16757 if test $ac_cv_lib_dld_shl_load = yes; then
16758   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16759 else
16760   { echo "$as_me:$LINENO: checking for dlopen" >&5
16761 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16762 if test "${ac_cv_func_dlopen+set}" = set; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16773 #define dlopen innocuous_dlopen
16774
16775 /* System header to define __stub macros and hopefully few prototypes,
16776     which can conflict with char dlopen (); below.
16777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778     <limits.h> exists even on freestanding compilers.  */
16779
16780 #ifdef __STDC__
16781 # include <limits.h>
16782 #else
16783 # include <assert.h>
16784 #endif
16785
16786 #undef dlopen
16787
16788 /* Override any GCC internal prototype to avoid an error.
16789    Use char because int might match the return type of a GCC
16790    builtin and then its argument prototype would still apply.  */
16791 #ifdef __cplusplus
16792 extern "C"
16793 #endif
16794 char dlopen ();
16795 /* The GNU C library defines this for functions which it implements
16796     to always fail with ENOSYS.  Some functions are actually named
16797     something starting with __ and the normal name is an alias.  */
16798 #if defined __stub_dlopen || defined __stub___dlopen
16799 choke me
16800 #endif
16801
16802 int
16803 main ()
16804 {
16805 return dlopen ();
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_link") 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; } &&
16834          { ac_try='test -s conftest$ac_exeext'
16835   { (case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_try") 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_cv_func_dlopen=yes
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849         ac_cv_func_dlopen=no
16850 fi
16851
16852 rm -f core conftest.err conftest.$ac_objext \
16853       conftest$ac_exeext conftest.$ac_ext
16854 fi
16855 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16856 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16857 if test $ac_cv_func_dlopen = yes; then
16858   lt_cv_dlopen="dlopen"
16859 else
16860   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16861 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865   ac_check_lib_save_LIBS=$LIBS
16866 LIBS="-ldl  $LIBS"
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873
16874 /* Override any GCC internal prototype to avoid an error.
16875    Use char because int might match the return type of a GCC
16876    builtin and then its argument prototype would still apply.  */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char dlopen ();
16881 int
16882 main ()
16883 {
16884 return dlopen ();
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_link") 2>conftest.er1
16897   ac_status=$?
16898   grep -v '^ *+' conftest.er1 >conftest.err
16899   rm -f conftest.er1
16900   cat conftest.err >&5
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } &&
16903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest$ac_exeext'
16914   { (case "(($ac_try" in
16915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916   *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919   (eval "$ac_try") 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_cv_lib_dl_dlopen=yes
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928         ac_cv_lib_dl_dlopen=no
16929 fi
16930
16931 rm -f core conftest.err conftest.$ac_objext \
16932       conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16934 fi
16935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16937 if test $ac_cv_lib_dl_dlopen = yes; then
16938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16939 else
16940   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16943   echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945   ac_check_lib_save_LIBS=$LIBS
16946 LIBS="-lsvld  $LIBS"
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953
16954 /* Override any GCC internal prototype to avoid an error.
16955    Use char because int might match the return type of a GCC
16956    builtin and then its argument prototype would still apply.  */
16957 #ifdef __cplusplus
16958 extern "C"
16959 #endif
16960 char dlopen ();
16961 int
16962 main ()
16963 {
16964 return dlopen ();
16965   ;
16966   return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (ac_try="$ac_link"
16971 case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_link") 2>conftest.er1
16977   ac_status=$?
16978   grep -v '^ *+' conftest.er1 >conftest.err
16979   rm -f conftest.er1
16980   cat conftest.err >&5
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984   { (case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_try") 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; } &&
16993          { ac_try='test -s conftest$ac_exeext'
16994   { (case "(($ac_try" in
16995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996   *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999   (eval "$ac_try") 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; }; then
17003   ac_cv_lib_svld_dlopen=yes
17004 else
17005   echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008         ac_cv_lib_svld_dlopen=no
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext \
17012       conftest$ac_exeext conftest.$ac_ext
17013 LIBS=$ac_check_lib_save_LIBS
17014 fi
17015 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17016 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17017 if test $ac_cv_lib_svld_dlopen = yes; then
17018   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17019 else
17020   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17021 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025   ac_check_lib_save_LIBS=$LIBS
17026 LIBS="-ldld  $LIBS"
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h.  */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h.  */
17033
17034 /* Override any GCC internal prototype to avoid an error.
17035    Use char because int might match the return type of a GCC
17036    builtin and then its argument prototype would still apply.  */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char dld_link ();
17041 int
17042 main ()
17043 {
17044 return dld_link ();
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_link") 2>conftest.er1
17057   ac_status=$?
17058   grep -v '^ *+' conftest.er1 >conftest.err
17059   rm -f conftest.er1
17060   cat conftest.err >&5
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } &&
17063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17064   { (case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_try") 2>&5
17070   ac_status=$?
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; } &&
17073          { ac_try='test -s conftest$ac_exeext'
17074   { (case "(($ac_try" in
17075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076   *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079   (eval "$ac_try") 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); }; }; then
17083   ac_cv_lib_dld_dld_link=yes
17084 else
17085   echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17087
17088         ac_cv_lib_dld_dld_link=no
17089 fi
17090
17091 rm -f core conftest.err conftest.$ac_objext \
17092       conftest$ac_exeext conftest.$ac_ext
17093 LIBS=$ac_check_lib_save_LIBS
17094 fi
17095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17096 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17097 if test $ac_cv_lib_dld_dld_link = yes; then
17098   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17099 fi
17100
17101
17102 fi
17103
17104
17105 fi
17106
17107
17108 fi
17109
17110
17111 fi
17112
17113
17114 fi
17115
17116     ;;
17117   esac
17118
17119   if test "x$lt_cv_dlopen" != xno; then
17120     enable_dlopen=yes
17121   else
17122     enable_dlopen=no
17123   fi
17124
17125   case $lt_cv_dlopen in
17126   dlopen)
17127     save_CPPFLAGS="$CPPFLAGS"
17128     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17129
17130     save_LDFLAGS="$LDFLAGS"
17131     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17132
17133     save_LIBS="$LIBS"
17134     LIBS="$lt_cv_dlopen_libs $LIBS"
17135
17136     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17137 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17138 if test "${lt_cv_dlopen_self+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141           if test "$cross_compiling" = yes; then :
17142   lt_cv_dlopen_self=cross
17143 else
17144   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17145   lt_status=$lt_dlunknown
17146   cat > conftest.$ac_ext <<EOF
17147 #line 17147 "configure"
17148 #include "confdefs.h"
17149
17150 #if HAVE_DLFCN_H
17151 #include <dlfcn.h>
17152 #endif
17153
17154 #include <stdio.h>
17155
17156 #ifdef RTLD_GLOBAL
17157 #  define LT_DLGLOBAL           RTLD_GLOBAL
17158 #else
17159 #  ifdef DL_GLOBAL
17160 #    define LT_DLGLOBAL         DL_GLOBAL
17161 #  else
17162 #    define LT_DLGLOBAL         0
17163 #  endif
17164 #endif
17165
17166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17167    find out it does not work in some platform. */
17168 #ifndef LT_DLLAZY_OR_NOW
17169 #  ifdef RTLD_LAZY
17170 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17171 #  else
17172 #    ifdef DL_LAZY
17173 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17174 #    else
17175 #      ifdef RTLD_NOW
17176 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17177 #      else
17178 #        ifdef DL_NOW
17179 #          define LT_DLLAZY_OR_NOW      DL_NOW
17180 #        else
17181 #          define LT_DLLAZY_OR_NOW      0
17182 #        endif
17183 #      endif
17184 #    endif
17185 #  endif
17186 #endif
17187
17188 #ifdef __cplusplus
17189 extern "C" void exit (int);
17190 #endif
17191
17192 void fnord() { int i=42;}
17193 int main ()
17194 {
17195   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17196   int status = $lt_dlunknown;
17197
17198   if (self)
17199     {
17200       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17201       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17202       /* dlclose (self); */
17203     }
17204   else
17205     puts (dlerror ());
17206
17207     exit (status);
17208 }
17209 EOF
17210   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211   (eval $ac_link) 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17215     (./conftest; exit; ) >&5 2>/dev/null
17216     lt_status=$?
17217     case x$lt_status in
17218       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17219       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17220       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17221     esac
17222   else :
17223     # compilation failed
17224     lt_cv_dlopen_self=no
17225   fi
17226 fi
17227 rm -fr conftest*
17228
17229
17230 fi
17231 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17232 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17233
17234     if test "x$lt_cv_dlopen_self" = xyes; then
17235       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17236       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17237 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17238 if test "${lt_cv_dlopen_self_static+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241           if test "$cross_compiling" = yes; then :
17242   lt_cv_dlopen_self_static=cross
17243 else
17244   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17245   lt_status=$lt_dlunknown
17246   cat > conftest.$ac_ext <<EOF
17247 #line 17247 "configure"
17248 #include "confdefs.h"
17249
17250 #if HAVE_DLFCN_H
17251 #include <dlfcn.h>
17252 #endif
17253
17254 #include <stdio.h>
17255
17256 #ifdef RTLD_GLOBAL
17257 #  define LT_DLGLOBAL           RTLD_GLOBAL
17258 #else
17259 #  ifdef DL_GLOBAL
17260 #    define LT_DLGLOBAL         DL_GLOBAL
17261 #  else
17262 #    define LT_DLGLOBAL         0
17263 #  endif
17264 #endif
17265
17266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17267    find out it does not work in some platform. */
17268 #ifndef LT_DLLAZY_OR_NOW
17269 #  ifdef RTLD_LAZY
17270 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17271 #  else
17272 #    ifdef DL_LAZY
17273 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17274 #    else
17275 #      ifdef RTLD_NOW
17276 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17277 #      else
17278 #        ifdef DL_NOW
17279 #          define LT_DLLAZY_OR_NOW      DL_NOW
17280 #        else
17281 #          define LT_DLLAZY_OR_NOW      0
17282 #        endif
17283 #      endif
17284 #    endif
17285 #  endif
17286 #endif
17287
17288 #ifdef __cplusplus
17289 extern "C" void exit (int);
17290 #endif
17291
17292 void fnord() { int i=42;}
17293 int main ()
17294 {
17295   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17296   int status = $lt_dlunknown;
17297
17298   if (self)
17299     {
17300       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17301       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17302       /* dlclose (self); */
17303     }
17304   else
17305     puts (dlerror ());
17306
17307     exit (status);
17308 }
17309 EOF
17310   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311   (eval $ac_link) 2>&5
17312   ac_status=$?
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17315     (./conftest; exit; ) >&5 2>/dev/null
17316     lt_status=$?
17317     case x$lt_status in
17318       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17319       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17320       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17321     esac
17322   else :
17323     # compilation failed
17324     lt_cv_dlopen_self_static=no
17325   fi
17326 fi
17327 rm -fr conftest*
17328
17329
17330 fi
17331 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17332 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17333     fi
17334
17335     CPPFLAGS="$save_CPPFLAGS"
17336     LDFLAGS="$save_LDFLAGS"
17337     LIBS="$save_LIBS"
17338     ;;
17339   esac
17340
17341   case $lt_cv_dlopen_self in
17342   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17343   *) enable_dlopen_self=unknown ;;
17344   esac
17345
17346   case $lt_cv_dlopen_self_static in
17347   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17348   *) enable_dlopen_self_static=unknown ;;
17349   esac
17350 fi
17351
17352
17353 # Report which library types will actually be built
17354 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17356 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17357 echo "${ECHO_T}$can_build_shared" >&6; }
17358
17359 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17361 test "$can_build_shared" = "no" && enable_shared=no
17362
17363 # On AIX, shared libraries and static libraries use the same namespace, and
17364 # are all built from PIC.
17365 case $host_os in
17366 aix3*)
17367   test "$enable_shared" = yes && enable_static=no
17368   if test -n "$RANLIB"; then
17369     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17370     postinstall_cmds='$RANLIB $lib'
17371   fi
17372   ;;
17373
17374 aix4* | aix5*)
17375   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17376     test "$enable_shared" = yes && enable_static=no
17377   fi
17378     ;;
17379 esac
17380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17381 echo "${ECHO_T}$enable_shared" >&6; }
17382
17383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17385 # Make sure either enable_shared or enable_static is yes.
17386 test "$enable_shared" = yes || enable_static=yes
17387 { echo "$as_me:$LINENO: result: $enable_static" >&5
17388 echo "${ECHO_T}$enable_static" >&6; }
17389
17390 # The else clause should only fire when bootstrapping the
17391 # libtool distribution, otherwise you forgot to ship ltmain.sh
17392 # with your package, and you will get complaints that there are
17393 # no rules to generate ltmain.sh.
17394 if test -f "$ltmain"; then
17395   # See if we are running on zsh, and set the options which allow our commands through
17396   # without removal of \ escapes.
17397   if test -n "${ZSH_VERSION+set}" ; then
17398     setopt NO_GLOB_SUBST
17399   fi
17400   # Now quote all the things that may contain metacharacters while being
17401   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17402   # variables and quote the copies for generation of the libtool script.
17403   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17404     SED SHELL STRIP \
17405     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17406     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17407     deplibs_check_method reload_flag reload_cmds need_locks \
17408     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17409     lt_cv_sys_global_symbol_to_c_name_address \
17410     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17411     old_postinstall_cmds old_postuninstall_cmds \
17412     compiler \
17413     CC \
17414     LD \
17415     lt_prog_compiler_wl \
17416     lt_prog_compiler_pic \
17417     lt_prog_compiler_static \
17418     lt_prog_compiler_no_builtin_flag \
17419     export_dynamic_flag_spec \
17420     thread_safe_flag_spec \
17421     whole_archive_flag_spec \
17422     enable_shared_with_static_runtimes \
17423     old_archive_cmds \
17424     old_archive_from_new_cmds \
17425     predep_objects \
17426     postdep_objects \
17427     predeps \
17428     postdeps \
17429     compiler_lib_search_path \
17430     archive_cmds \
17431     archive_expsym_cmds \
17432     postinstall_cmds \
17433     postuninstall_cmds \
17434     old_archive_from_expsyms_cmds \
17435     allow_undefined_flag \
17436     no_undefined_flag \
17437     export_symbols_cmds \
17438     hardcode_libdir_flag_spec \
17439     hardcode_libdir_flag_spec_ld \
17440     hardcode_libdir_separator \
17441     hardcode_automatic \
17442     module_cmds \
17443     module_expsym_cmds \
17444     lt_cv_prog_compiler_c_o \
17445     exclude_expsyms \
17446     include_expsyms; do
17447
17448     case $var in
17449     old_archive_cmds | \
17450     old_archive_from_new_cmds | \
17451     archive_cmds | \
17452     archive_expsym_cmds | \
17453     module_cmds | \
17454     module_expsym_cmds | \
17455     old_archive_from_expsyms_cmds | \
17456     export_symbols_cmds | \
17457     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17458     postinstall_cmds | postuninstall_cmds | \
17459     old_postinstall_cmds | old_postuninstall_cmds | \
17460     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17461       # Double-quote double-evaled strings.
17462       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17463       ;;
17464     *)
17465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17466       ;;
17467     esac
17468   done
17469
17470   case $lt_echo in
17471   *'\$0 --fallback-echo"')
17472     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17473     ;;
17474   esac
17475
17476 cfgfile="${ofile}T"
17477   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17478   $rm -f "$cfgfile"
17479   { echo "$as_me:$LINENO: creating $ofile" >&5
17480 echo "$as_me: creating $ofile" >&6;}
17481
17482   cat <<__EOF__ >> "$cfgfile"
17483 #! $SHELL
17484
17485 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17486 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17488 #
17489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17490 # Free Software Foundation, Inc.
17491 #
17492 # This file is part of GNU Libtool:
17493 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17494 #
17495 # This program is free software; you can redistribute it and/or modify
17496 # it under the terms of the GNU General Public License as published by
17497 # the Free Software Foundation; either version 2 of the License, or
17498 # (at your option) any later version.
17499 #
17500 # This program is distributed in the hope that it will be useful, but
17501 # WITHOUT ANY WARRANTY; without even the implied warranty of
17502 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17503 # General Public License for more details.
17504 #
17505 # You should have received a copy of the GNU General Public License
17506 # along with this program; if not, write to the Free Software
17507 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17508 #
17509 # As a special exception to the GNU General Public License, if you
17510 # distribute this file as part of a program that contains a
17511 # configuration script generated by Autoconf, you may include it under
17512 # the same distribution terms that you use for the rest of that program.
17513
17514 # A sed program that does not truncate output.
17515 SED=$lt_SED
17516
17517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17518 Xsed="$SED -e 1s/^X//"
17519
17520 # The HP-UX ksh and POSIX shell print the target directory to stdout
17521 # if CDPATH is set.
17522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17523
17524 # The names of the tagged configurations supported by this script.
17525 available_tags=
17526
17527 # ### BEGIN LIBTOOL CONFIG
17528
17529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17530
17531 # Shell to use when invoking shell scripts.
17532 SHELL=$lt_SHELL
17533
17534 # Whether or not to build shared libraries.
17535 build_libtool_libs=$enable_shared
17536
17537 # Whether or not to build static libraries.
17538 build_old_libs=$enable_static
17539
17540 # Whether or not to add -lc for building shared libraries.
17541 build_libtool_need_lc=$archive_cmds_need_lc
17542
17543 # Whether or not to disallow shared libs when runtime libs are static
17544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17545
17546 # Whether or not to optimize for fast installation.
17547 fast_install=$enable_fast_install
17548
17549 # The host system.
17550 host_alias=$host_alias
17551 host=$host
17552 host_os=$host_os
17553
17554 # The build system.
17555 build_alias=$build_alias
17556 build=$build
17557 build_os=$build_os
17558
17559 # An echo program that does not interpret backslashes.
17560 echo=$lt_echo
17561
17562 # The archiver.
17563 AR=$lt_AR
17564 AR_FLAGS=$lt_AR_FLAGS
17565
17566 # A C compiler.
17567 LTCC=$lt_LTCC
17568
17569 # LTCC compiler flags.
17570 LTCFLAGS=$lt_LTCFLAGS
17571
17572 # A language-specific compiler.
17573 CC=$lt_compiler
17574
17575 # Is the compiler the GNU C compiler?
17576 with_gcc=$GCC
17577
17578 # An ERE matcher.
17579 EGREP=$lt_EGREP
17580
17581 # The linker used to build libraries.
17582 LD=$lt_LD
17583
17584 # Whether we need hard or soft links.
17585 LN_S=$lt_LN_S
17586
17587 # A BSD-compatible nm program.
17588 NM=$lt_NM
17589
17590 # A symbol stripping program
17591 STRIP=$lt_STRIP
17592
17593 # Used to examine libraries when file_magic_cmd begins "file"
17594 MAGIC_CMD=$MAGIC_CMD
17595
17596 # Used on cygwin: DLL creation program.
17597 DLLTOOL="$DLLTOOL"
17598
17599 # Used on cygwin: object dumper.
17600 OBJDUMP="$OBJDUMP"
17601
17602 # Used on cygwin: assembler.
17603 AS="$AS"
17604
17605 # The name of the directory that contains temporary libtool files.
17606 objdir=$objdir
17607
17608 # How to create reloadable object files.
17609 reload_flag=$lt_reload_flag
17610 reload_cmds=$lt_reload_cmds
17611
17612 # How to pass a linker flag through the compiler.
17613 wl=$lt_lt_prog_compiler_wl
17614
17615 # Object file suffix (normally "o").
17616 objext="$ac_objext"
17617
17618 # Old archive suffix (normally "a").
17619 libext="$libext"
17620
17621 # Shared library suffix (normally ".so").
17622 shrext_cmds='$shrext_cmds'
17623
17624 # Executable file suffix (normally "").
17625 exeext="$exeext"
17626
17627 # Additional compiler flags for building library objects.
17628 pic_flag=$lt_lt_prog_compiler_pic
17629 pic_mode=$pic_mode
17630
17631 # What is the maximum length of a command?
17632 max_cmd_len=$lt_cv_sys_max_cmd_len
17633
17634 # Does compiler simultaneously support -c and -o options?
17635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17636
17637 # Must we lock files when doing compilation?
17638 need_locks=$lt_need_locks
17639
17640 # Do we need the lib prefix for modules?
17641 need_lib_prefix=$need_lib_prefix
17642
17643 # Do we need a version for libraries?
17644 need_version=$need_version
17645
17646 # Whether dlopen is supported.
17647 dlopen_support=$enable_dlopen
17648
17649 # Whether dlopen of programs is supported.
17650 dlopen_self=$enable_dlopen_self
17651
17652 # Whether dlopen of statically linked programs is supported.
17653 dlopen_self_static=$enable_dlopen_self_static
17654
17655 # Compiler flag to prevent dynamic linking.
17656 link_static_flag=$lt_lt_prog_compiler_static
17657
17658 # Compiler flag to turn off builtin functions.
17659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17660
17661 # Compiler flag to allow reflexive dlopens.
17662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17663
17664 # Compiler flag to generate shared objects directly from archives.
17665 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17666
17667 # Compiler flag to generate thread-safe objects.
17668 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17669
17670 # Library versioning type.
17671 version_type=$version_type
17672
17673 # Format of library name prefix.
17674 libname_spec=$lt_libname_spec
17675
17676 # List of archive names.  First name is the real one, the rest are links.
17677 # The last name is the one that the linker finds with -lNAME.
17678 library_names_spec=$lt_library_names_spec
17679
17680 # The coded name of the library, if different from the real name.
17681 soname_spec=$lt_soname_spec
17682
17683 # Commands used to build and install an old-style archive.
17684 RANLIB=$lt_RANLIB
17685 old_archive_cmds=$lt_old_archive_cmds
17686 old_postinstall_cmds=$lt_old_postinstall_cmds
17687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17688
17689 # Create an old-style archive from a shared archive.
17690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17691
17692 # Create a temporary old-style archive to link instead of a shared archive.
17693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17694
17695 # Commands used to build and install a shared archive.
17696 archive_cmds=$lt_archive_cmds
17697 archive_expsym_cmds=$lt_archive_expsym_cmds
17698 postinstall_cmds=$lt_postinstall_cmds
17699 postuninstall_cmds=$lt_postuninstall_cmds
17700
17701 # Commands used to build a loadable module (assumed same as above if empty)
17702 module_cmds=$lt_module_cmds
17703 module_expsym_cmds=$lt_module_expsym_cmds
17704
17705 # Commands to strip libraries.
17706 old_striplib=$lt_old_striplib
17707 striplib=$lt_striplib
17708
17709 # Dependencies to place before the objects being linked to create a
17710 # shared library.
17711 predep_objects=$lt_predep_objects
17712
17713 # Dependencies to place after the objects being linked to create a
17714 # shared library.
17715 postdep_objects=$lt_postdep_objects
17716
17717 # Dependencies to place before the objects being linked to create a
17718 # shared library.
17719 predeps=$lt_predeps
17720
17721 # Dependencies to place after the objects being linked to create a
17722 # shared library.
17723 postdeps=$lt_postdeps
17724
17725 # The library search path used internally by the compiler when linking
17726 # a shared library.
17727 compiler_lib_search_path=$lt_compiler_lib_search_path
17728
17729 # Method to check whether dependent libraries are shared objects.
17730 deplibs_check_method=$lt_deplibs_check_method
17731
17732 # Command to use when deplibs_check_method == file_magic.
17733 file_magic_cmd=$lt_file_magic_cmd
17734
17735 # Flag that allows shared libraries with undefined symbols to be built.
17736 allow_undefined_flag=$lt_allow_undefined_flag
17737
17738 # Flag that forces no undefined symbols.
17739 no_undefined_flag=$lt_no_undefined_flag
17740
17741 # Commands used to finish a libtool library installation in a directory.
17742 finish_cmds=$lt_finish_cmds
17743
17744 # Same as above, but a single script fragment to be evaled but not shown.
17745 finish_eval=$lt_finish_eval
17746
17747 # Take the output of nm and produce a listing of raw symbols and C names.
17748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17749
17750 # Transform the output of nm in a proper C declaration
17751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17752
17753 # Transform the output of nm in a C name address pair
17754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17755
17756 # This is the shared library runtime path variable.
17757 runpath_var=$runpath_var
17758
17759 # This is the shared library path variable.
17760 shlibpath_var=$shlibpath_var
17761
17762 # Is shlibpath searched before the hard-coded library search path?
17763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17764
17765 # How to hardcode a shared library path into an executable.
17766 hardcode_action=$hardcode_action
17767
17768 # Whether we should hardcode library paths into libraries.
17769 hardcode_into_libs=$hardcode_into_libs
17770
17771 # Flag to hardcode \$libdir into a binary during linking.
17772 # This must work even if \$libdir does not exist.
17773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17774
17775 # If ld is used when linking, flag to hardcode \$libdir into
17776 # a binary during linking. This must work even if \$libdir does
17777 # not exist.
17778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17779
17780 # Whether we need a single -rpath flag with a separated argument.
17781 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17782
17783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17784 # resulting binary.
17785 hardcode_direct=$hardcode_direct
17786
17787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17788 # resulting binary.
17789 hardcode_minus_L=$hardcode_minus_L
17790
17791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17792 # the resulting binary.
17793 hardcode_shlibpath_var=$hardcode_shlibpath_var
17794
17795 # Set to yes if building a shared library automatically hardcodes DIR into the library
17796 # and all subsequent libraries and executables linked against it.
17797 hardcode_automatic=$hardcode_automatic
17798
17799 # Variables whose values should be saved in libtool wrapper scripts and
17800 # restored at relink time.
17801 variables_saved_for_relink="$variables_saved_for_relink"
17802
17803 # Whether libtool must link a program against all its dependency libraries.
17804 link_all_deplibs=$link_all_deplibs
17805
17806 # Compile-time system search path for libraries
17807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17808
17809 # Run-time system search path for libraries
17810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17811
17812 # Fix the shell variable \$srcfile for the compiler.
17813 fix_srcfile_path="$fix_srcfile_path"
17814
17815 # Set to yes if exported symbols are required.
17816 always_export_symbols=$always_export_symbols
17817
17818 # The commands to list exported symbols.
17819 export_symbols_cmds=$lt_export_symbols_cmds
17820
17821 # The commands to extract the exported symbol list from a shared archive.
17822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17823
17824 # Symbols that should not be listed in the preloaded symbols.
17825 exclude_expsyms=$lt_exclude_expsyms
17826
17827 # Symbols that must always be exported.
17828 include_expsyms=$lt_include_expsyms
17829
17830 # ### END LIBTOOL CONFIG
17831
17832 __EOF__
17833
17834
17835   case $host_os in
17836   aix3*)
17837     cat <<\EOF >> "$cfgfile"
17838
17839 # AIX sometimes has problems with the GCC collect2 program.  For some
17840 # reason, if we set the COLLECT_NAMES environment variable, the problems
17841 # vanish in a puff of smoke.
17842 if test "X${COLLECT_NAMES+set}" != Xset; then
17843   COLLECT_NAMES=
17844   export COLLECT_NAMES
17845 fi
17846 EOF
17847     ;;
17848   esac
17849
17850   # We use sed instead of cat because bash on DJGPP gets confused if
17851   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17852   # text mode, it properly converts lines to CR/LF.  This bash problem
17853   # is reportedly fixed, but why not run on old versions too?
17854   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17855
17856   mv -f "$cfgfile" "$ofile" || \
17857     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17858   chmod +x "$ofile"
17859
17860 else
17861   # If there is no Makefile yet, we rely on a make rule to execute
17862   # `config.status --recheck' to rerun these tests and create the
17863   # libtool script then.
17864   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17865   if test -f "$ltmain_in"; then
17866     test -f Makefile && make "$ltmain"
17867   fi
17868 fi
17869
17870
17871 ac_ext=c
17872 ac_cpp='$CPP $CPPFLAGS'
17873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17876
17877 CC="$lt_save_CC"
17878
17879
17880 # Check whether --with-tags was given.
17881 if test "${with_tags+set}" = set; then
17882   withval=$with_tags; tagnames="$withval"
17883 fi
17884
17885
17886 if test -f "$ltmain" && test -n "$tagnames"; then
17887   if test ! -f "${ofile}"; then
17888     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17889 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17890   fi
17891
17892   if test -z "$LTCC"; then
17893     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17894     if test -z "$LTCC"; then
17895       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17896 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17897     else
17898       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17899 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17900     fi
17901   fi
17902   if test -z "$LTCFLAGS"; then
17903     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17904   fi
17905
17906   # Extract list of available tagged configurations in $ofile.
17907   # Note that this assumes the entire list is on one line.
17908   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17909
17910   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17911   for tagname in $tagnames; do
17912     IFS="$lt_save_ifs"
17913     # Check whether tagname contains only valid characters
17914     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17915     "") ;;
17916     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17917 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17918    { (exit 1); exit 1; }; }
17919         ;;
17920     esac
17921
17922     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17923     then
17924       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17925 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17926    { (exit 1); exit 1; }; }
17927     fi
17928
17929     # Update the list of available tags.
17930     if test -n "$tagname"; then
17931       echo appending configuration tag \"$tagname\" to $ofile
17932
17933       case $tagname in
17934       CXX)
17935         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17936             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17937             (test "X$CXX" != "Xg++"))) ; then
17938           ac_ext=cpp
17939 ac_cpp='$CXXCPP $CPPFLAGS'
17940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17943
17944
17945
17946
17947 archive_cmds_need_lc_CXX=no
17948 allow_undefined_flag_CXX=
17949 always_export_symbols_CXX=no
17950 archive_expsym_cmds_CXX=
17951 export_dynamic_flag_spec_CXX=
17952 hardcode_direct_CXX=no
17953 hardcode_libdir_flag_spec_CXX=
17954 hardcode_libdir_flag_spec_ld_CXX=
17955 hardcode_libdir_separator_CXX=
17956 hardcode_minus_L_CXX=no
17957 hardcode_shlibpath_var_CXX=unsupported
17958 hardcode_automatic_CXX=no
17959 module_cmds_CXX=
17960 module_expsym_cmds_CXX=
17961 link_all_deplibs_CXX=unknown
17962 old_archive_cmds_CXX=$old_archive_cmds
17963 no_undefined_flag_CXX=
17964 whole_archive_flag_spec_CXX=
17965 enable_shared_with_static_runtimes_CXX=no
17966
17967 # Dependencies to place before and after the object being linked:
17968 predep_objects_CXX=
17969 postdep_objects_CXX=
17970 predeps_CXX=
17971 postdeps_CXX=
17972 compiler_lib_search_path_CXX=
17973
17974 # Source file extension for C++ test sources.
17975 ac_ext=cpp
17976
17977 # Object file extension for compiled C++ test sources.
17978 objext=o
17979 objext_CXX=$objext
17980
17981 # Code to be used in simple compile tests
17982 lt_simple_compile_test_code="int some_variable = 0;\n"
17983
17984 # Code to be used in simple link tests
17985 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17986
17987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17988
17989 # If no C compiler was specified, use CC.
17990 LTCC=${LTCC-"$CC"}
17991
17992 # If no C compiler flags were specified, use CFLAGS.
17993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17994
17995 # Allow CC to be a program name with arguments.
17996 compiler=$CC
17997
17998
17999 # save warnings/boilerplate of simple test code
18000 ac_outfile=conftest.$ac_objext
18001 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18003 _lt_compiler_boilerplate=`cat conftest.err`
18004 $rm conftest*
18005
18006 ac_outfile=conftest.$ac_objext
18007 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18009 _lt_linker_boilerplate=`cat conftest.err`
18010 $rm conftest*
18011
18012
18013 # Allow CC to be a program name with arguments.
18014 lt_save_CC=$CC
18015 lt_save_LD=$LD
18016 lt_save_GCC=$GCC
18017 GCC=$GXX
18018 lt_save_with_gnu_ld=$with_gnu_ld
18019 lt_save_path_LD=$lt_cv_path_LD
18020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18021   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18022 else
18023   $as_unset lt_cv_prog_gnu_ld
18024 fi
18025 if test -n "${lt_cv_path_LDCXX+set}"; then
18026   lt_cv_path_LD=$lt_cv_path_LDCXX
18027 else
18028   $as_unset lt_cv_path_LD
18029 fi
18030 test -z "${LDCXX+set}" || LD=$LDCXX
18031 CC=${CXX-"c++"}
18032 compiler=$CC
18033 compiler_CXX=$CC
18034 for cc_temp in $compiler""; do
18035   case $cc_temp in
18036     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18037     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18038     \-*) ;;
18039     *) break;;
18040   esac
18041 done
18042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18043
18044
18045 # We don't want -fno-exception wen compiling C++ code, so set the
18046 # no_builtin_flag separately
18047 if test "$GXX" = yes; then
18048   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18049 else
18050   lt_prog_compiler_no_builtin_flag_CXX=
18051 fi
18052
18053 if test "$GXX" = yes; then
18054   # Set up default GNU C++ configuration
18055
18056
18057 # Check whether --with-gnu-ld was given.
18058 if test "${with_gnu_ld+set}" = set; then
18059   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18060 else
18061   with_gnu_ld=no
18062 fi
18063
18064 ac_prog=ld
18065 if test "$GCC" = yes; then
18066   # Check if gcc -print-prog-name=ld gives a path.
18067   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18068 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18069   case $host in
18070   *-*-mingw*)
18071     # gcc leaves a trailing carriage return which upsets mingw
18072     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18073   *)
18074     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18075   esac
18076   case $ac_prog in
18077     # Accept absolute paths.
18078     [\\/]* | ?:[\\/]*)
18079       re_direlt='/[^/][^/]*/\.\./'
18080       # Canonicalize the pathname of ld
18081       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18082       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18083         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18084       done
18085       test -z "$LD" && LD="$ac_prog"
18086       ;;
18087   "")
18088     # If it fails, then pretend we aren't using GCC.
18089     ac_prog=ld
18090     ;;
18091   *)
18092     # If it is relative, then search for the first ld in PATH.
18093     with_gnu_ld=unknown
18094     ;;
18095   esac
18096 elif test "$with_gnu_ld" = yes; then
18097   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18098 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18099 else
18100   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18101 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18102 fi
18103 if test "${lt_cv_path_LD+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   if test -z "$LD"; then
18107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18108   for ac_dir in $PATH; do
18109     IFS="$lt_save_ifs"
18110     test -z "$ac_dir" && ac_dir=.
18111     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18112       lt_cv_path_LD="$ac_dir/$ac_prog"
18113       # Check to see if the program is GNU ld.  I'd rather use --version,
18114       # but apparently some variants of GNU ld only accept -v.
18115       # Break only if it was the GNU/non-GNU ld that we prefer.
18116       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18117       *GNU* | *'with BFD'*)
18118         test "$with_gnu_ld" != no && break
18119         ;;
18120       *)
18121         test "$with_gnu_ld" != yes && break
18122         ;;
18123       esac
18124     fi
18125   done
18126   IFS="$lt_save_ifs"
18127 else
18128   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18129 fi
18130 fi
18131
18132 LD="$lt_cv_path_LD"
18133 if test -n "$LD"; then
18134   { echo "$as_me:$LINENO: result: $LD" >&5
18135 echo "${ECHO_T}$LD" >&6; }
18136 else
18137   { echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6; }
18139 fi
18140 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18141 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18142    { (exit 1); exit 1; }; }
18143 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18144 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18145 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18149 case `$LD -v 2>&1 </dev/null` in
18150 *GNU* | *'with BFD'*)
18151   lt_cv_prog_gnu_ld=yes
18152   ;;
18153 *)
18154   lt_cv_prog_gnu_ld=no
18155   ;;
18156 esac
18157 fi
18158 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18159 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18160 with_gnu_ld=$lt_cv_prog_gnu_ld
18161
18162
18163
18164   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18165   # archiving commands below assume that GNU ld is being used.
18166   if test "$with_gnu_ld" = yes; then
18167     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18168     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'
18169
18170     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18171     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18172
18173     # If archive_cmds runs LD, not CC, wlarc should be empty
18174     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18175     #     investigate it a little bit more. (MM)
18176     wlarc='${wl}'
18177
18178     # ancient GNU ld didn't support --whole-archive et. al.
18179     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18180         grep 'no-whole-archive' > /dev/null; then
18181       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18182     else
18183       whole_archive_flag_spec_CXX=
18184     fi
18185   else
18186     with_gnu_ld=no
18187     wlarc=
18188
18189     # A generic and very simple default shared library creation
18190     # command for GNU C++ for the case where it uses the native
18191     # linker, instead of GNU ld.  If possible, this setting should
18192     # overridden to take advantage of the native linker features on
18193     # the platform it is being used on.
18194     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18195   fi
18196
18197   # Commands to make compiler produce verbose output that lists
18198   # what "hidden" libraries, object files and flags are used when
18199   # linking a shared library.
18200   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18201
18202 else
18203   GXX=no
18204   with_gnu_ld=no
18205   wlarc=
18206 fi
18207
18208 # PORTME: fill in a description of your system's C++ link characteristics
18209 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18211 ld_shlibs_CXX=yes
18212 case $host_os in
18213   aix3*)
18214     # FIXME: insert proper C++ library support
18215     ld_shlibs_CXX=no
18216     ;;
18217   aix4* | aix5*)
18218     if test "$host_cpu" = ia64; then
18219       # On IA64, the linker does run time linking by default, so we don't
18220       # have to do anything special.
18221       aix_use_runtimelinking=no
18222       exp_sym_flag='-Bexport'
18223       no_entry_flag=""
18224     else
18225       aix_use_runtimelinking=no
18226
18227       # Test if we are trying to use run time linking or normal
18228       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18229       # need to do runtime linking.
18230       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18231         for ld_flag in $LDFLAGS; do
18232           case $ld_flag in
18233           *-brtl*)
18234             aix_use_runtimelinking=yes
18235             break
18236             ;;
18237           esac
18238         done
18239         ;;
18240       esac
18241
18242       exp_sym_flag='-bexport'
18243       no_entry_flag='-bnoentry'
18244     fi
18245
18246     # When large executables or shared objects are built, AIX ld can
18247     # have problems creating the table of contents.  If linking a library
18248     # or program results in "error TOC overflow" add -mminimal-toc to
18249     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18250     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18251
18252     archive_cmds_CXX=''
18253     hardcode_direct_CXX=yes
18254     hardcode_libdir_separator_CXX=':'
18255     link_all_deplibs_CXX=yes
18256
18257     if test "$GXX" = yes; then
18258       case $host_os in aix4.[012]|aix4.[012].*)
18259       # We only want to do this on AIX 4.2 and lower, the check
18260       # below for broken collect2 doesn't work under 4.3+
18261         collect2name=`${CC} -print-prog-name=collect2`
18262         if test -f "$collect2name" && \
18263            strings "$collect2name" | grep resolve_lib_name >/dev/null
18264         then
18265           # We have reworked collect2
18266           hardcode_direct_CXX=yes
18267         else
18268           # We have old collect2
18269           hardcode_direct_CXX=unsupported
18270           # It fails to find uninstalled libraries when the uninstalled
18271           # path is not listed in the libpath.  Setting hardcode_minus_L
18272           # to unsupported forces relinking
18273           hardcode_minus_L_CXX=yes
18274           hardcode_libdir_flag_spec_CXX='-L$libdir'
18275           hardcode_libdir_separator_CXX=
18276         fi
18277         ;;
18278       esac
18279       shared_flag='-shared'
18280       if test "$aix_use_runtimelinking" = yes; then
18281         shared_flag="$shared_flag "'${wl}-G'
18282       fi
18283     else
18284       # not using gcc
18285       if test "$host_cpu" = ia64; then
18286         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18287         # chokes on -Wl,-G. The following line is correct:
18288         shared_flag='-G'
18289       else
18290         if test "$aix_use_runtimelinking" = yes; then
18291           shared_flag='${wl}-G'
18292         else
18293           shared_flag='${wl}-bM:SRE'
18294         fi
18295       fi
18296     fi
18297
18298     # It seems that -bexpall does not export symbols beginning with
18299     # underscore (_), so it is better to generate a list of symbols to export.
18300     always_export_symbols_CXX=yes
18301     if test "$aix_use_runtimelinking" = yes; then
18302       # Warning - without using the other runtime loading flags (-brtl),
18303       # -berok will link without error, but may produce a broken library.
18304       allow_undefined_flag_CXX='-berok'
18305       # Determine the default libpath from the value encoded in an empty executable.
18306       cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312
18313 int
18314 main ()
18315 {
18316
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_link") 2>conftest.er1
18329   ac_status=$?
18330   grep -v '^ *+' conftest.er1 >conftest.err
18331   rm -f conftest.er1
18332   cat conftest.err >&5
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); } &&
18335          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18336   { (case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_try") 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; } &&
18345          { ac_try='test -s conftest$ac_exeext'
18346   { (case "(($ac_try" in
18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348   *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351   (eval "$ac_try") 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; }; then
18355
18356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18357 }'`
18358 # Check for a 64-bit object if we didn't find anything.
18359 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; }
18360 }'`; fi
18361 else
18362   echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365
18366 fi
18367
18368 rm -f core conftest.err conftest.$ac_objext \
18369       conftest$ac_exeext conftest.$ac_ext
18370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18371
18372       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18373
18374       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"
18375      else
18376       if test "$host_cpu" = ia64; then
18377         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18378         allow_undefined_flag_CXX="-z nodefs"
18379         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"
18380       else
18381         # Determine the default libpath from the value encoded in an empty executable.
18382         cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388
18389 int
18390 main ()
18391 {
18392
18393   ;
18394   return 0;
18395 }
18396 _ACEOF
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (ac_try="$ac_link"
18399 case "(($ac_try" in
18400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401   *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404   (eval "$ac_link") 2>conftest.er1
18405   ac_status=$?
18406   grep -v '^ *+' conftest.er1 >conftest.err
18407   rm -f conftest.er1
18408   cat conftest.err >&5
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); } &&
18411          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18412   { (case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_try") 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; } &&
18421          { ac_try='test -s conftest$ac_exeext'
18422   { (case "(($ac_try" in
18423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424   *) ac_try_echo=$ac_try;;
18425 esac
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427   (eval "$ac_try") 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); }; }; then
18431
18432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18433 }'`
18434 # Check for a 64-bit object if we didn't find anything.
18435 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; }
18436 }'`; fi
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext \
18445       conftest$ac_exeext conftest.$ac_ext
18446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18447
18448         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18449         # Warning - without using the other run time loading flags,
18450         # -berok will link without error, but may produce a broken library.
18451         no_undefined_flag_CXX=' ${wl}-bernotok'
18452         allow_undefined_flag_CXX=' ${wl}-berok'
18453         # Exported symbols can be pulled into shared objects from archives
18454         whole_archive_flag_spec_CXX='$convenience'
18455         archive_cmds_need_lc_CXX=yes
18456         # This is similar to how AIX traditionally builds its shared libraries.
18457         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'
18458       fi
18459     fi
18460     ;;
18461
18462   beos*)
18463     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18464       allow_undefined_flag_CXX=unsupported
18465       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18466       # support --undefined.  This deserves some investigation.  FIXME
18467       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18468     else
18469       ld_shlibs_CXX=no
18470     fi
18471     ;;
18472
18473   chorus*)
18474     case $cc_basename in
18475       *)
18476         # FIXME: insert proper C++ library support
18477         ld_shlibs_CXX=no
18478         ;;
18479     esac
18480     ;;
18481
18482   cygwin* | mingw* | pw32*)
18483     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18484     # as there is no search path for DLLs.
18485     hardcode_libdir_flag_spec_CXX='-L$libdir'
18486     allow_undefined_flag_CXX=unsupported
18487     always_export_symbols_CXX=no
18488     enable_shared_with_static_runtimes_CXX=yes
18489
18490     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18491       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'
18492       # If the export-symbols file already is a .def file (1st line
18493       # is EXPORTS), use it as is; otherwise, prepend...
18494       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18495         cp $export_symbols $output_objdir/$soname.def;
18496       else
18497         echo EXPORTS > $output_objdir/$soname.def;
18498         cat $export_symbols >> $output_objdir/$soname.def;
18499       fi~
18500       $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'
18501     else
18502       ld_shlibs_CXX=no
18503     fi
18504   ;;
18505       darwin* | rhapsody*)
18506         case $host_os in
18507         rhapsody* | darwin1.[012])
18508          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18509          ;;
18510        *) # Darwin 1.3 on
18511          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18512            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18513          else
18514            case ${MACOSX_DEPLOYMENT_TARGET} in
18515              10.[012])
18516                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18517                ;;
18518              10.*)
18519                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18520                ;;
18521            esac
18522          fi
18523          ;;
18524         esac
18525       archive_cmds_need_lc_CXX=no
18526       hardcode_direct_CXX=no
18527       hardcode_automatic_CXX=yes
18528       hardcode_shlibpath_var_CXX=unsupported
18529       whole_archive_flag_spec_CXX=''
18530       link_all_deplibs_CXX=yes
18531
18532     if test "$GXX" = yes ; then
18533       lt_int_apple_cc_single_mod=no
18534       output_verbose_link_cmd='echo'
18535       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18536        lt_int_apple_cc_single_mod=yes
18537       fi
18538       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18540       else
18541           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'
18542         fi
18543         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18544         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18545           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18546             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}'
18547           else
18548             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}'
18549           fi
18550             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}'
18551       else
18552       case $cc_basename in
18553         xlc*)
18554          output_verbose_link_cmd='echo'
18555           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'
18556           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18557           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18558           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}'
18559           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}'
18560           ;;
18561        *)
18562          ld_shlibs_CXX=no
18563           ;;
18564       esac
18565       fi
18566         ;;
18567
18568   dgux*)
18569     case $cc_basename in
18570       ec++*)
18571         # FIXME: insert proper C++ library support
18572         ld_shlibs_CXX=no
18573         ;;
18574       ghcx*)
18575         # Green Hills C++ Compiler
18576         # FIXME: insert proper C++ library support
18577         ld_shlibs_CXX=no
18578         ;;
18579       *)
18580         # FIXME: insert proper C++ library support
18581         ld_shlibs_CXX=no
18582         ;;
18583     esac
18584     ;;
18585   freebsd[12]*)
18586     # C++ shared libraries reported to be fairly broken before switch to ELF
18587     ld_shlibs_CXX=no
18588     ;;
18589   freebsd-elf*)
18590     archive_cmds_need_lc_CXX=no
18591     ;;
18592   freebsd* | kfreebsd*-gnu | dragonfly*)
18593     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18594     # conventions
18595     ld_shlibs_CXX=yes
18596     ;;
18597   gnu*)
18598     ;;
18599   hpux9*)
18600     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18601     hardcode_libdir_separator_CXX=:
18602     export_dynamic_flag_spec_CXX='${wl}-E'
18603     hardcode_direct_CXX=yes
18604     hardcode_minus_L_CXX=yes # Not in the search PATH,
18605                                 # but as the default
18606                                 # location of the library.
18607
18608     case $cc_basename in
18609     CC*)
18610       # FIXME: insert proper C++ library support
18611       ld_shlibs_CXX=no
18612       ;;
18613     aCC*)
18614       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'
18615       # Commands to make compiler produce verbose output that lists
18616       # what "hidden" libraries, object files and flags are used when
18617       # linking a shared library.
18618       #
18619       # There doesn't appear to be a way to prevent this compiler from
18620       # explicitly linking system object files so we need to strip them
18621       # from the output so that they don't get included in the library
18622       # dependencies.
18623       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'
18624       ;;
18625     *)
18626       if test "$GXX" = yes; then
18627         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'
18628       else
18629         # FIXME: insert proper C++ library support
18630         ld_shlibs_CXX=no
18631       fi
18632       ;;
18633     esac
18634     ;;
18635   hpux10*|hpux11*)
18636     if test $with_gnu_ld = no; then
18637       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18638       hardcode_libdir_separator_CXX=:
18639
18640       case $host_cpu in
18641       hppa*64*|ia64*)
18642         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18643         ;;
18644       *)
18645         export_dynamic_flag_spec_CXX='${wl}-E'
18646         ;;
18647       esac
18648     fi
18649     case $host_cpu in
18650     hppa*64*|ia64*)
18651       hardcode_direct_CXX=no
18652       hardcode_shlibpath_var_CXX=no
18653       ;;
18654     *)
18655       hardcode_direct_CXX=yes
18656       hardcode_minus_L_CXX=yes # Not in the search PATH,
18657                                               # but as the default
18658                                               # location of the library.
18659       ;;
18660     esac
18661
18662     case $cc_basename in
18663       CC*)
18664         # FIXME: insert proper C++ library support
18665         ld_shlibs_CXX=no
18666         ;;
18667       aCC*)
18668         case $host_cpu in
18669         hppa*64*)
18670           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18671           ;;
18672         ia64*)
18673           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18674           ;;
18675         *)
18676           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18677           ;;
18678         esac
18679         # Commands to make compiler produce verbose output that lists
18680         # what "hidden" libraries, object files and flags are used when
18681         # linking a shared library.
18682         #
18683         # There doesn't appear to be a way to prevent this compiler from
18684         # explicitly linking system object files so we need to strip them
18685         # from the output so that they don't get included in the library
18686         # dependencies.
18687         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'
18688         ;;
18689       *)
18690         if test "$GXX" = yes; then
18691           if test $with_gnu_ld = no; then
18692             case $host_cpu in
18693             hppa*64*)
18694               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18695               ;;
18696             ia64*)
18697               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18698               ;;
18699             *)
18700               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'
18701               ;;
18702             esac
18703           fi
18704         else
18705           # FIXME: insert proper C++ library support
18706           ld_shlibs_CXX=no
18707         fi
18708         ;;
18709     esac
18710     ;;
18711   interix3*)
18712     hardcode_direct_CXX=no
18713     hardcode_shlibpath_var_CXX=no
18714     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18715     export_dynamic_flag_spec_CXX='${wl}-E'
18716     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18717     # Instead, shared libraries are loaded at an image base (0x10000000 by
18718     # default) and relocated if they conflict, which is a slow very memory
18719     # consuming and fragmenting process.  To avoid this, we pick a random,
18720     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18721     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18722     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'
18723     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'
18724     ;;
18725   irix5* | irix6*)
18726     case $cc_basename in
18727       CC*)
18728         # SGI C++
18729         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'
18730
18731         # Archives containing C++ object files must be created using
18732         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18733         # necessary to make sure instantiated templates are included
18734         # in the archive.
18735         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18736         ;;
18737       *)
18738         if test "$GXX" = yes; then
18739           if test "$with_gnu_ld" = no; then
18740             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'
18741           else
18742             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'
18743           fi
18744         fi
18745         link_all_deplibs_CXX=yes
18746         ;;
18747     esac
18748     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749     hardcode_libdir_separator_CXX=:
18750     ;;
18751   linux*)
18752     case $cc_basename in
18753       KCC*)
18754         # Kuck and Associates, Inc. (KAI) C++ Compiler
18755
18756         # KCC will only create a shared library if the output file
18757         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18758         # to its proper name (with version) after linking.
18759         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'
18760         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'
18761         # Commands to make compiler produce verbose output that lists
18762         # what "hidden" libraries, object files and flags are used when
18763         # linking a shared library.
18764         #
18765         # There doesn't appear to be a way to prevent this compiler from
18766         # explicitly linking system object files so we need to strip them
18767         # from the output so that they don't get included in the library
18768         # dependencies.
18769         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'
18770
18771         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18772         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18773
18774         # Archives containing C++ object files must be created using
18775         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18776         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18777         ;;
18778       icpc*)
18779         # Intel C++
18780         with_gnu_ld=yes
18781         # version 8.0 and above of icpc choke on multiply defined symbols
18782         # if we add $predep_objects and $postdep_objects, however 7.1 and
18783         # earlier do not add the objects themselves.
18784         case `$CC -V 2>&1` in
18785         *"Version 7."*)
18786           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787           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'
18788           ;;
18789         *)  # Version 8.0 or newer
18790           tmp_idyn=
18791           case $host_cpu in
18792             ia64*) tmp_idyn=' -i_dynamic';;
18793           esac
18794           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18795           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'
18796           ;;
18797         esac
18798         archive_cmds_need_lc_CXX=no
18799         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18801         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18802         ;;
18803       pgCC*)
18804         # Portland Group C++ compiler
18805         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18806         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'
18807
18808         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18809         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18810         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'
18811         ;;
18812       cxx*)
18813         # Compaq C++
18814         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18815         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'
18816
18817         runpath_var=LD_RUN_PATH
18818         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18819         hardcode_libdir_separator_CXX=:
18820
18821         # Commands to make compiler produce verbose output that lists
18822         # what "hidden" libraries, object files and flags are used when
18823         # linking a shared library.
18824         #
18825         # There doesn't appear to be a way to prevent this compiler from
18826         # explicitly linking system object files so we need to strip them
18827         # from the output so that they don't get included in the library
18828         # dependencies.
18829         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'
18830         ;;
18831     esac
18832     ;;
18833   lynxos*)
18834     # FIXME: insert proper C++ library support
18835     ld_shlibs_CXX=no
18836     ;;
18837   m88k*)
18838     # FIXME: insert proper C++ library support
18839     ld_shlibs_CXX=no
18840     ;;
18841   mvs*)
18842     case $cc_basename in
18843       cxx*)
18844         # FIXME: insert proper C++ library support
18845         ld_shlibs_CXX=no
18846         ;;
18847       *)
18848         # FIXME: insert proper C++ library support
18849         ld_shlibs_CXX=no
18850         ;;
18851     esac
18852     ;;
18853   netbsd*)
18854     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18855       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18856       wlarc=
18857       hardcode_libdir_flag_spec_CXX='-R$libdir'
18858       hardcode_direct_CXX=yes
18859       hardcode_shlibpath_var_CXX=no
18860     fi
18861     # Workaround some broken pre-1.5 toolchains
18862     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18863     ;;
18864   openbsd2*)
18865     # C++ shared libraries are fairly broken
18866     ld_shlibs_CXX=no
18867     ;;
18868   openbsd*)
18869     hardcode_direct_CXX=yes
18870     hardcode_shlibpath_var_CXX=no
18871     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18872     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18873     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18874       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18875       export_dynamic_flag_spec_CXX='${wl}-E'
18876       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18877     fi
18878     output_verbose_link_cmd='echo'
18879     ;;
18880   osf3*)
18881     case $cc_basename in
18882       KCC*)
18883         # Kuck and Associates, Inc. (KAI) C++ Compiler
18884
18885         # KCC will only create a shared library if the output file
18886         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18887         # to its proper name (with version) after linking.
18888         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'
18889
18890         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18891         hardcode_libdir_separator_CXX=:
18892
18893         # Archives containing C++ object files must be created using
18894         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18895         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18896
18897         ;;
18898       RCC*)
18899         # Rational C++ 2.4.1
18900         # FIXME: insert proper C++ library support
18901         ld_shlibs_CXX=no
18902         ;;
18903       cxx*)
18904         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18905         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'
18906
18907         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18908         hardcode_libdir_separator_CXX=:
18909
18910         # Commands to make compiler produce verbose output that lists
18911         # what "hidden" libraries, object files and flags are used when
18912         # linking a shared library.
18913         #
18914         # There doesn't appear to be a way to prevent this compiler from
18915         # explicitly linking system object files so we need to strip them
18916         # from the output so that they don't get included in the library
18917         # dependencies.
18918         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'
18919         ;;
18920       *)
18921         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18922           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18923           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'
18924
18925           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18926           hardcode_libdir_separator_CXX=:
18927
18928           # Commands to make compiler produce verbose output that lists
18929           # what "hidden" libraries, object files and flags are used when
18930           # linking a shared library.
18931           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18932
18933         else
18934           # FIXME: insert proper C++ library support
18935           ld_shlibs_CXX=no
18936         fi
18937         ;;
18938     esac
18939     ;;
18940   osf4* | osf5*)
18941     case $cc_basename in
18942       KCC*)
18943         # Kuck and Associates, Inc. (KAI) C++ Compiler
18944
18945         # KCC will only create a shared library if the output file
18946         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18947         # to its proper name (with version) after linking.
18948         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'
18949
18950         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18951         hardcode_libdir_separator_CXX=:
18952
18953         # Archives containing C++ object files must be created using
18954         # the KAI C++ compiler.
18955         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18956         ;;
18957       RCC*)
18958         # Rational C++ 2.4.1
18959         # FIXME: insert proper C++ library support
18960         ld_shlibs_CXX=no
18961         ;;
18962       cxx*)
18963         allow_undefined_flag_CXX=' -expect_unresolved \*'
18964         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'
18965         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18966           echo "-hidden">> $lib.exp~
18967           $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~
18968           $rm $lib.exp'
18969
18970         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18971         hardcode_libdir_separator_CXX=:
18972
18973         # Commands to make compiler produce verbose output that lists
18974         # what "hidden" libraries, object files and flags are used when
18975         # linking a shared library.
18976         #
18977         # There doesn't appear to be a way to prevent this compiler from
18978         # explicitly linking system object files so we need to strip them
18979         # from the output so that they don't get included in the library
18980         # dependencies.
18981         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'
18982         ;;
18983       *)
18984         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18985           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18986          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'
18987
18988           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18989           hardcode_libdir_separator_CXX=:
18990
18991           # Commands to make compiler produce verbose output that lists
18992           # what "hidden" libraries, object files and flags are used when
18993           # linking a shared library.
18994           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18995
18996         else
18997           # FIXME: insert proper C++ library support
18998           ld_shlibs_CXX=no
18999         fi
19000         ;;
19001     esac
19002     ;;
19003   psos*)
19004     # FIXME: insert proper C++ library support
19005     ld_shlibs_CXX=no
19006     ;;
19007   sunos4*)
19008     case $cc_basename in
19009       CC*)
19010         # Sun C++ 4.x
19011         # FIXME: insert proper C++ library support
19012         ld_shlibs_CXX=no
19013         ;;
19014       lcc*)
19015         # Lucid
19016         # FIXME: insert proper C++ library support
19017         ld_shlibs_CXX=no
19018         ;;
19019       *)
19020         # FIXME: insert proper C++ library support
19021         ld_shlibs_CXX=no
19022         ;;
19023     esac
19024     ;;
19025   solaris*)
19026     case $cc_basename in
19027       CC*)
19028         # Sun C++ 4.2, 5.x and Centerline C++
19029         archive_cmds_need_lc_CXX=yes
19030         no_undefined_flag_CXX=' -zdefs'
19031         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19032         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19033         $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'
19034
19035         hardcode_libdir_flag_spec_CXX='-R$libdir'
19036         hardcode_shlibpath_var_CXX=no
19037         case $host_os in
19038           solaris2.[0-5] | solaris2.[0-5].*) ;;
19039           *)
19040             # The C++ compiler is used as linker so we must use $wl
19041             # flag to pass the commands to the underlying system
19042             # linker. We must also pass each convience library through
19043             # to the system linker between allextract/defaultextract.
19044             # The C++ compiler will combine linker options so we
19045             # cannot just pass the convience library names through
19046             # without $wl.
19047             # Supported since Solaris 2.6 (maybe 2.5.1?)
19048             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'
19049             ;;
19050         esac
19051         link_all_deplibs_CXX=yes
19052
19053         output_verbose_link_cmd='echo'
19054
19055         # Archives containing C++ object files must be created using
19056         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19057         # necessary to make sure instantiated templates are included
19058         # in the archive.
19059         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19060         ;;
19061       gcx*)
19062         # Green Hills C++ Compiler
19063         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19064
19065         # The C++ compiler must be used to create the archive.
19066         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19067         ;;
19068       *)
19069         # GNU C++ compiler with Solaris linker
19070         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19071           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19072           if $CC --version | grep -v '^2\.7' > /dev/null; then
19073             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19074             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19075                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19076
19077             # Commands to make compiler produce verbose output that lists
19078             # what "hidden" libraries, object files and flags are used when
19079             # linking a shared library.
19080             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19081           else
19082             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19083             # platform.
19084             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19085             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19086                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19087
19088             # Commands to make compiler produce verbose output that lists
19089             # what "hidden" libraries, object files and flags are used when
19090             # linking a shared library.
19091             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19092           fi
19093
19094           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19095         fi
19096         ;;
19097     esac
19098     ;;
19099   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19100     no_undefined_flag_CXX='${wl}-z,text'
19101     archive_cmds_need_lc_CXX=no
19102     hardcode_shlibpath_var_CXX=no
19103     runpath_var='LD_RUN_PATH'
19104
19105     case $cc_basename in
19106       CC*)
19107         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19108         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19109         ;;
19110       *)
19111         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19112         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19113         ;;
19114     esac
19115     ;;
19116   sysv5* | sco3.2v5* | sco5v6*)
19117     # Note: We can NOT use -z defs as we might desire, because we do not
19118     # link with -lc, and that would cause any symbols used from libc to
19119     # always be unresolved, which means just about no library would
19120     # ever link correctly.  If we're not using GNU ld we use -z text
19121     # though, which does catch some bad symbols but isn't as heavy-handed
19122     # as -z defs.
19123     # For security reasons, it is highly recommended that you always
19124     # use absolute paths for naming shared libraries, and exclude the
19125     # DT_RUNPATH tag from executables and libraries.  But doing so
19126     # requires that you compile everything twice, which is a pain.
19127     # So that behaviour is only enabled if SCOABSPATH is set to a
19128     # non-empty value in the environment.  Most likely only useful for
19129     # creating official distributions of packages.
19130     # This is a hack until libtool officially supports absolute path
19131     # names for shared libraries.
19132     no_undefined_flag_CXX='${wl}-z,text'
19133     allow_undefined_flag_CXX='${wl}-z,nodefs'
19134     archive_cmds_need_lc_CXX=no
19135     hardcode_shlibpath_var_CXX=no
19136     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19137     hardcode_libdir_separator_CXX=':'
19138     link_all_deplibs_CXX=yes
19139     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19140     runpath_var='LD_RUN_PATH'
19141
19142     case $cc_basename in
19143       CC*)
19144         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19145         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19146         ;;
19147       *)
19148         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19149         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19150         ;;
19151     esac
19152     ;;
19153   tandem*)
19154     case $cc_basename in
19155       NCC*)
19156         # NonStop-UX NCC 3.20
19157         # FIXME: insert proper C++ library support
19158         ld_shlibs_CXX=no
19159         ;;
19160       *)
19161         # FIXME: insert proper C++ library support
19162         ld_shlibs_CXX=no
19163         ;;
19164     esac
19165     ;;
19166   vxworks*)
19167     # FIXME: insert proper C++ library support
19168     ld_shlibs_CXX=no
19169     ;;
19170   *)
19171     # FIXME: insert proper C++ library support
19172     ld_shlibs_CXX=no
19173     ;;
19174 esac
19175 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19176 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19177 test "$ld_shlibs_CXX" = no && can_build_shared=no
19178
19179 GCC_CXX="$GXX"
19180 LD_CXX="$LD"
19181
19182
19183 cat > conftest.$ac_ext <<EOF
19184 class Foo
19185 {
19186 public:
19187   Foo (void) { a = 0; }
19188 private:
19189   int a;
19190 };
19191 EOF
19192
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194   (eval $ac_compile) 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; then
19198   # Parse the compiler output and extract the necessary
19199   # objects, libraries and library flags.
19200
19201   # Sentinel used to keep track of whether or not we are before
19202   # the conftest object file.
19203   pre_test_object_deps_done=no
19204
19205   # The `*' in the case matches for architectures that use `case' in
19206   # $output_verbose_cmd can trigger glob expansion during the loop
19207   # eval without this substitution.
19208   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19209
19210   for p in `eval $output_verbose_link_cmd`; do
19211     case $p in
19212
19213     -L* | -R* | -l*)
19214        # Some compilers place space between "-{L,R}" and the path.
19215        # Remove the space.
19216        if test $p = "-L" \
19217           || test $p = "-R"; then
19218          prev=$p
19219          continue
19220        else
19221          prev=
19222        fi
19223
19224        if test "$pre_test_object_deps_done" = no; then
19225          case $p in
19226          -L* | -R*)
19227            # Internal compiler library paths should come after those
19228            # provided the user.  The postdeps already come after the
19229            # user supplied libs so there is no need to process them.
19230            if test -z "$compiler_lib_search_path_CXX"; then
19231              compiler_lib_search_path_CXX="${prev}${p}"
19232            else
19233              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19234            fi
19235            ;;
19236          # The "-l" case would never come before the object being
19237          # linked, so don't bother handling this case.
19238          esac
19239        else
19240          if test -z "$postdeps_CXX"; then
19241            postdeps_CXX="${prev}${p}"
19242          else
19243            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19244          fi
19245        fi
19246        ;;
19247
19248     *.$objext)
19249        # This assumes that the test object file only shows up
19250        # once in the compiler output.
19251        if test "$p" = "conftest.$objext"; then
19252          pre_test_object_deps_done=yes
19253          continue
19254        fi
19255
19256        if test "$pre_test_object_deps_done" = no; then
19257          if test -z "$predep_objects_CXX"; then
19258            predep_objects_CXX="$p"
19259          else
19260            predep_objects_CXX="$predep_objects_CXX $p"
19261          fi
19262        else
19263          if test -z "$postdep_objects_CXX"; then
19264            postdep_objects_CXX="$p"
19265          else
19266            postdep_objects_CXX="$postdep_objects_CXX $p"
19267          fi
19268        fi
19269        ;;
19270
19271     *) ;; # Ignore the rest.
19272
19273     esac
19274   done
19275
19276   # Clean up.
19277   rm -f a.out a.exe
19278 else
19279   echo "libtool.m4: error: problem compiling CXX test program"
19280 fi
19281
19282 $rm -f confest.$objext
19283
19284 # PORTME: override above test on systems where it is broken
19285 case $host_os in
19286 interix3*)
19287   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19288   # hack all around it, let's just trust "g++" to DTRT.
19289   predep_objects_CXX=
19290   postdep_objects_CXX=
19291   postdeps_CXX=
19292   ;;
19293
19294 solaris*)
19295   case $cc_basename in
19296   CC*)
19297     # Adding this requires a known-good setup of shared libraries for
19298     # Sun compiler versions before 5.6, else PIC objects from an old
19299     # archive will be linked into the output, leading to subtle bugs.
19300     postdeps_CXX='-lCstd -lCrun'
19301     ;;
19302   esac
19303   ;;
19304 esac
19305
19306
19307 case " $postdeps_CXX " in
19308 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19309 esac
19310
19311 lt_prog_compiler_wl_CXX=
19312 lt_prog_compiler_pic_CXX=
19313 lt_prog_compiler_static_CXX=
19314
19315 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19316 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19317
19318   # C++ specific cases for pic, static, wl, etc.
19319   if test "$GXX" = yes; then
19320     lt_prog_compiler_wl_CXX='-Wl,'
19321     lt_prog_compiler_static_CXX='-static'
19322
19323     case $host_os in
19324     aix*)
19325       # All AIX code is PIC.
19326       if test "$host_cpu" = ia64; then
19327         # AIX 5 now supports IA64 processor
19328         lt_prog_compiler_static_CXX='-Bstatic'
19329       fi
19330       ;;
19331     amigaos*)
19332       # FIXME: we need at least 68020 code to build shared libraries, but
19333       # adding the `-m68020' flag to GCC prevents building anything better,
19334       # like `-m68040'.
19335       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19336       ;;
19337     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19338       # PIC is the default for these OSes.
19339       ;;
19340     mingw* | os2* | pw32*)
19341       # This hack is so that the source file can tell whether it is being
19342       # built for inclusion in a dll (and should export symbols for example).
19343       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19344       ;;
19345     darwin* | rhapsody*)
19346       # PIC is the default on this platform
19347       # Common symbols not allowed in MH_DYLIB files
19348       lt_prog_compiler_pic_CXX='-fno-common'
19349       ;;
19350     *djgpp*)
19351       # DJGPP does not support shared libraries at all
19352       lt_prog_compiler_pic_CXX=
19353       ;;
19354     interix3*)
19355       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19356       # Instead, we relocate shared libraries at runtime.
19357       ;;
19358     sysv4*MP*)
19359       if test -d /usr/nec; then
19360         lt_prog_compiler_pic_CXX=-Kconform_pic
19361       fi
19362       ;;
19363     hpux*)
19364       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19365       # not for PA HP-UX.
19366       case $host_cpu in
19367       hppa*64*|ia64*)
19368         ;;
19369       *)
19370         lt_prog_compiler_pic_CXX='-fPIC'
19371         ;;
19372       esac
19373       ;;
19374     *)
19375       lt_prog_compiler_pic_CXX='-fPIC'
19376       ;;
19377     esac
19378   else
19379     case $host_os in
19380       aix4* | aix5*)
19381         # All AIX code is PIC.
19382         if test "$host_cpu" = ia64; then
19383           # AIX 5 now supports IA64 processor
19384           lt_prog_compiler_static_CXX='-Bstatic'
19385         else
19386           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19387         fi
19388         ;;
19389       chorus*)
19390         case $cc_basename in
19391         cxch68*)
19392           # Green Hills C++ Compiler
19393           # _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"
19394           ;;
19395         esac
19396         ;;
19397        darwin*)
19398          # PIC is the default on this platform
19399          # Common symbols not allowed in MH_DYLIB files
19400          case $cc_basename in
19401            xlc*)
19402            lt_prog_compiler_pic_CXX='-qnocommon'
19403            lt_prog_compiler_wl_CXX='-Wl,'
19404            ;;
19405          esac
19406        ;;
19407       dgux*)
19408         case $cc_basename in
19409           ec++*)
19410             lt_prog_compiler_pic_CXX='-KPIC'
19411             ;;
19412           ghcx*)
19413             # Green Hills C++ Compiler
19414             lt_prog_compiler_pic_CXX='-pic'
19415             ;;
19416           *)
19417             ;;
19418         esac
19419         ;;
19420       freebsd* | kfreebsd*-gnu | dragonfly*)
19421         # FreeBSD uses GNU C++
19422         ;;
19423       hpux9* | hpux10* | hpux11*)
19424         case $cc_basename in
19425           CC*)
19426             lt_prog_compiler_wl_CXX='-Wl,'
19427             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19428             if test "$host_cpu" != ia64; then
19429               lt_prog_compiler_pic_CXX='+Z'
19430             fi
19431             ;;
19432           aCC*)
19433             lt_prog_compiler_wl_CXX='-Wl,'
19434             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19435             case $host_cpu in
19436             hppa*64*|ia64*)
19437               # +Z the default
19438               ;;
19439             *)
19440               lt_prog_compiler_pic_CXX='+Z'
19441               ;;
19442             esac
19443             ;;
19444           *)
19445             ;;
19446         esac
19447         ;;
19448       interix*)
19449         # This is c89, which is MS Visual C++ (no shared libs)
19450         # Anyone wants to do a port?
19451         ;;
19452       irix5* | irix6* | nonstopux*)
19453         case $cc_basename in
19454           CC*)
19455             lt_prog_compiler_wl_CXX='-Wl,'
19456             lt_prog_compiler_static_CXX='-non_shared'
19457             # CC pic flag -KPIC is the default.
19458             ;;
19459           *)
19460             ;;
19461         esac
19462         ;;
19463       linux*)
19464         case $cc_basename in
19465           KCC*)
19466             # KAI C++ Compiler
19467             lt_prog_compiler_wl_CXX='--backend -Wl,'
19468             lt_prog_compiler_pic_CXX='-fPIC'
19469             ;;
19470           icpc* | ecpc*)
19471             # Intel C++
19472             lt_prog_compiler_wl_CXX='-Wl,'
19473             lt_prog_compiler_pic_CXX='-KPIC'
19474             lt_prog_compiler_static_CXX='-static'
19475             ;;
19476           pgCC*)
19477             # Portland Group C++ compiler.
19478             lt_prog_compiler_wl_CXX='-Wl,'
19479             lt_prog_compiler_pic_CXX='-fpic'
19480             lt_prog_compiler_static_CXX='-Bstatic'
19481             ;;
19482           cxx*)
19483             # Compaq C++
19484             # Make sure the PIC flag is empty.  It appears that all Alpha
19485             # Linux and Compaq Tru64 Unix objects are PIC.
19486             lt_prog_compiler_pic_CXX=
19487             lt_prog_compiler_static_CXX='-non_shared'
19488             ;;
19489           *)
19490             ;;
19491         esac
19492         ;;
19493       lynxos*)
19494         ;;
19495       m88k*)
19496         ;;
19497       mvs*)
19498         case $cc_basename in
19499           cxx*)
19500             lt_prog_compiler_pic_CXX='-W c,exportall'
19501             ;;
19502           *)
19503             ;;
19504         esac
19505         ;;
19506       netbsd*)
19507         ;;
19508       osf3* | osf4* | osf5*)
19509         case $cc_basename in
19510           KCC*)
19511             lt_prog_compiler_wl_CXX='--backend -Wl,'
19512             ;;
19513           RCC*)
19514             # Rational C++ 2.4.1
19515             lt_prog_compiler_pic_CXX='-pic'
19516             ;;
19517           cxx*)
19518             # Digital/Compaq C++
19519             lt_prog_compiler_wl_CXX='-Wl,'
19520             # Make sure the PIC flag is empty.  It appears that all Alpha
19521             # Linux and Compaq Tru64 Unix objects are PIC.
19522             lt_prog_compiler_pic_CXX=
19523             lt_prog_compiler_static_CXX='-non_shared'
19524             ;;
19525           *)
19526             ;;
19527         esac
19528         ;;
19529       psos*)
19530         ;;
19531       solaris*)
19532         case $cc_basename in
19533           CC*)
19534             # Sun C++ 4.2, 5.x and Centerline C++
19535             lt_prog_compiler_pic_CXX='-KPIC'
19536             lt_prog_compiler_static_CXX='-Bstatic'
19537             lt_prog_compiler_wl_CXX='-Qoption ld '
19538             ;;
19539           gcx*)
19540             # Green Hills C++ Compiler
19541             lt_prog_compiler_pic_CXX='-PIC'
19542             ;;
19543           *)
19544             ;;
19545         esac
19546         ;;
19547       sunos4*)
19548         case $cc_basename in
19549           CC*)
19550             # Sun C++ 4.x
19551             lt_prog_compiler_pic_CXX='-pic'
19552             lt_prog_compiler_static_CXX='-Bstatic'
19553             ;;
19554           lcc*)
19555             # Lucid
19556             lt_prog_compiler_pic_CXX='-pic'
19557             ;;
19558           *)
19559             ;;
19560         esac
19561         ;;
19562       tandem*)
19563         case $cc_basename in
19564           NCC*)
19565             # NonStop-UX NCC 3.20
19566             lt_prog_compiler_pic_CXX='-KPIC'
19567             ;;
19568           *)
19569             ;;
19570         esac
19571         ;;
19572       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19573         case $cc_basename in
19574           CC*)
19575             lt_prog_compiler_wl_CXX='-Wl,'
19576             lt_prog_compiler_pic_CXX='-KPIC'
19577             lt_prog_compiler_static_CXX='-Bstatic'
19578             ;;
19579         esac
19580         ;;
19581       vxworks*)
19582         ;;
19583       *)
19584         lt_prog_compiler_can_build_shared_CXX=no
19585         ;;
19586     esac
19587   fi
19588
19589 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19590 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19591
19592 #
19593 # Check to make sure the PIC flag actually works.
19594 #
19595 if test -n "$lt_prog_compiler_pic_CXX"; then
19596
19597 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19598 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19599 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   lt_prog_compiler_pic_works_CXX=no
19603   ac_outfile=conftest.$ac_objext
19604    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19605    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19606    # Insert the option either (1) after the last *FLAGS variable, or
19607    # (2) before a word containing "conftest.", or (3) at the end.
19608    # Note that $ac_compile itself does not contain backslashes and begins
19609    # with a dollar sign (not a hyphen), so the echo should work correctly.
19610    # The option is referenced via a variable to avoid confusing sed.
19611    lt_compile=`echo "$ac_compile" | $SED \
19612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19614    -e 's:$: $lt_compiler_flag:'`
19615    (eval echo "\"\$as_me:19615: $lt_compile\"" >&5)
19616    (eval "$lt_compile" 2>conftest.err)
19617    ac_status=$?
19618    cat conftest.err >&5
19619    echo "$as_me:19619: \$? = $ac_status" >&5
19620    if (exit $ac_status) && test -s "$ac_outfile"; then
19621      # The compiler can only warn and ignore the option if not recognized
19622      # So say no if there are warnings other than the usual output.
19623      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19624      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19625      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19626        lt_prog_compiler_pic_works_CXX=yes
19627      fi
19628    fi
19629    $rm conftest*
19630
19631 fi
19632 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19633 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19634
19635 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19636     case $lt_prog_compiler_pic_CXX in
19637      "" | " "*) ;;
19638      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19639      esac
19640 else
19641     lt_prog_compiler_pic_CXX=
19642      lt_prog_compiler_can_build_shared_CXX=no
19643 fi
19644
19645 fi
19646 case $host_os in
19647   # For platforms which do not support PIC, -DPIC is meaningless:
19648   *djgpp*)
19649     lt_prog_compiler_pic_CXX=
19650     ;;
19651   *)
19652     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19653     ;;
19654 esac
19655
19656 #
19657 # Check to make sure the static flag actually works.
19658 #
19659 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19660 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19661 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19662 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19663   echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665   lt_prog_compiler_static_works_CXX=no
19666    save_LDFLAGS="$LDFLAGS"
19667    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19668    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19669    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19670      # The linker can only warn and ignore the option if not recognized
19671      # So say no if there are warnings
19672      if test -s conftest.err; then
19673        # Append any errors to the config.log.
19674        cat conftest.err 1>&5
19675        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19676        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19677        if diff conftest.exp conftest.er2 >/dev/null; then
19678          lt_prog_compiler_static_works_CXX=yes
19679        fi
19680      else
19681        lt_prog_compiler_static_works_CXX=yes
19682      fi
19683    fi
19684    $rm conftest*
19685    LDFLAGS="$save_LDFLAGS"
19686
19687 fi
19688 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19689 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19690
19691 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19692     :
19693 else
19694     lt_prog_compiler_static_CXX=
19695 fi
19696
19697
19698 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19699 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19700 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   lt_cv_prog_compiler_c_o_CXX=no
19704    $rm -r conftest 2>/dev/null
19705    mkdir conftest
19706    cd conftest
19707    mkdir out
19708    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19709
19710    lt_compiler_flag="-o out/conftest2.$ac_objext"
19711    # Insert the option either (1) after the last *FLAGS variable, or
19712    # (2) before a word containing "conftest.", or (3) at the end.
19713    # Note that $ac_compile itself does not contain backslashes and begins
19714    # with a dollar sign (not a hyphen), so the echo should work correctly.
19715    lt_compile=`echo "$ac_compile" | $SED \
19716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19718    -e 's:$: $lt_compiler_flag:'`
19719    (eval echo "\"\$as_me:19719: $lt_compile\"" >&5)
19720    (eval "$lt_compile" 2>out/conftest.err)
19721    ac_status=$?
19722    cat out/conftest.err >&5
19723    echo "$as_me:19723: \$? = $ac_status" >&5
19724    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19725    then
19726      # The compiler can only warn and ignore the option if not recognized
19727      # So say no if there are warnings
19728      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19729      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19730      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19731        lt_cv_prog_compiler_c_o_CXX=yes
19732      fi
19733    fi
19734    chmod u+w . 2>&5
19735    $rm conftest*
19736    # SGI C++ compiler will create directory out/ii_files/ for
19737    # template instantiation
19738    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19739    $rm out/* && rmdir out
19740    cd ..
19741    rmdir conftest
19742    $rm conftest*
19743
19744 fi
19745 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19746 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19747
19748
19749 hard_links="nottested"
19750 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19751   # do not overwrite the value of need_locks provided by the user
19752   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19753 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19754   hard_links=yes
19755   $rm conftest*
19756   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19757   touch conftest.a
19758   ln conftest.a conftest.b 2>&5 || hard_links=no
19759   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19760   { echo "$as_me:$LINENO: result: $hard_links" >&5
19761 echo "${ECHO_T}$hard_links" >&6; }
19762   if test "$hard_links" = no; then
19763     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19764 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19765     need_locks=warn
19766   fi
19767 else
19768   need_locks=no
19769 fi
19770
19771 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19772 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19773
19774   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19775   case $host_os in
19776   aix4* | aix5*)
19777     # If we're using GNU nm, then we don't want the "-C" option.
19778     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19779     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19780       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'
19781     else
19782       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'
19783     fi
19784     ;;
19785   pw32*)
19786     export_symbols_cmds_CXX="$ltdll_cmds"
19787   ;;
19788   cygwin* | mingw*)
19789     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'
19790   ;;
19791   *)
19792     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19793   ;;
19794   esac
19795
19796 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19797 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19798 test "$ld_shlibs_CXX" = no && can_build_shared=no
19799
19800 #
19801 # Do we need to explicitly link libc?
19802 #
19803 case "x$archive_cmds_need_lc_CXX" in
19804 x|xyes)
19805   # Assume -lc should be added
19806   archive_cmds_need_lc_CXX=yes
19807
19808   if test "$enable_shared" = yes && test "$GCC" = yes; then
19809     case $archive_cmds_CXX in
19810     *'~'*)
19811       # FIXME: we may have to deal with multi-command sequences.
19812       ;;
19813     '$CC '*)
19814       # Test whether the compiler implicitly links with -lc since on some
19815       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19816       # to ld, don't add -lc before -lgcc.
19817       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19818 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19819       $rm conftest*
19820       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19821
19822       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823   (eval $ac_compile) 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } 2>conftest.err; then
19827         soname=conftest
19828         lib=conftest
19829         libobjs=conftest.$ac_objext
19830         deplibs=
19831         wl=$lt_prog_compiler_wl_CXX
19832         pic_flag=$lt_prog_compiler_pic_CXX
19833         compiler_flags=-v
19834         linker_flags=-v
19835         verstring=
19836         output_objdir=.
19837         libname=conftest
19838         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19839         allow_undefined_flag_CXX=
19840         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19841   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }
19845         then
19846           archive_cmds_need_lc_CXX=no
19847         else
19848           archive_cmds_need_lc_CXX=yes
19849         fi
19850         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19851       else
19852         cat conftest.err 1>&5
19853       fi
19854       $rm conftest*
19855       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19856 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19857       ;;
19858     esac
19859   fi
19860   ;;
19861 esac
19862
19863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19865 library_names_spec=
19866 libname_spec='lib$name'
19867 soname_spec=
19868 shrext_cmds=".so"
19869 postinstall_cmds=
19870 postuninstall_cmds=
19871 finish_cmds=
19872 finish_eval=
19873 shlibpath_var=
19874 shlibpath_overrides_runpath=unknown
19875 version_type=none
19876 dynamic_linker="$host_os ld.so"
19877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19878 if test "$GCC" = yes; then
19879   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19880   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19881     # if the path contains ";" then we assume it to be the separator
19882     # otherwise default to the standard path separator (i.e. ":") - it is
19883     # assumed that no part of a normal pathname contains ";" but that should
19884     # okay in the real world where ";" in dirpaths is itself problematic.
19885     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19886   else
19887     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19888   fi
19889 else
19890   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19891 fi
19892 need_lib_prefix=unknown
19893 hardcode_into_libs=no
19894
19895 # when you set need_version to no, make sure it does not cause -set_version
19896 # flags to be left without arguments
19897 need_version=unknown
19898
19899 case $host_os in
19900 aix3*)
19901   version_type=linux
19902   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19903   shlibpath_var=LIBPATH
19904
19905   # AIX 3 has no versioning support, so we append a major version to the name.
19906   soname_spec='${libname}${release}${shared_ext}$major'
19907   ;;
19908
19909 aix4* | aix5*)
19910   version_type=linux
19911   need_lib_prefix=no
19912   need_version=no
19913   hardcode_into_libs=yes
19914   if test "$host_cpu" = ia64; then
19915     # AIX 5 supports IA64
19916     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19917     shlibpath_var=LD_LIBRARY_PATH
19918   else
19919     # With GCC up to 2.95.x, collect2 would create an import file
19920     # for dependence libraries.  The import file would start with
19921     # the line `#! .'.  This would cause the generated library to
19922     # depend on `.', always an invalid library.  This was fixed in
19923     # development snapshots of GCC prior to 3.0.
19924     case $host_os in
19925       aix4 | aix4.[01] | aix4.[01].*)
19926       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19927            echo ' yes '
19928            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19929         :
19930       else
19931         can_build_shared=no
19932       fi
19933       ;;
19934     esac
19935     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19936     # soname into executable. Probably we can add versioning support to
19937     # collect2, so additional links can be useful in future.
19938     if test "$aix_use_runtimelinking" = yes; then
19939       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19940       # instead of lib<name>.a to let people know that these are not
19941       # typical AIX shared libraries.
19942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19943     else
19944       # We preserve .a as extension for shared libraries through AIX4.2
19945       # and later when we are not doing run time linking.
19946       library_names_spec='${libname}${release}.a $libname.a'
19947       soname_spec='${libname}${release}${shared_ext}$major'
19948     fi
19949     shlibpath_var=LIBPATH
19950   fi
19951   ;;
19952
19953 amigaos*)
19954   library_names_spec='$libname.ixlibrary $libname.a'
19955   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19956   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'
19957   ;;
19958
19959 beos*)
19960   library_names_spec='${libname}${shared_ext}'
19961   dynamic_linker="$host_os ld.so"
19962   shlibpath_var=LIBRARY_PATH
19963   ;;
19964
19965 bsdi[45]*)
19966   version_type=linux
19967   need_version=no
19968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969   soname_spec='${libname}${release}${shared_ext}$major'
19970   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19971   shlibpath_var=LD_LIBRARY_PATH
19972   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19973   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19974   # the default ld.so.conf also contains /usr/contrib/lib and
19975   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19976   # libtool to hard-code these into programs
19977   ;;
19978
19979 cygwin* | mingw* | pw32*)
19980   version_type=windows
19981   shrext_cmds=".dll"
19982   need_version=no
19983   need_lib_prefix=no
19984
19985   case $GCC,$host_os in
19986   yes,cygwin* | yes,mingw* | yes,pw32*)
19987     library_names_spec='$libname.dll.a'
19988     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19989     postinstall_cmds='base_file=`basename \${file}`~
19990       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19991       dldir=$destdir/`dirname \$dlpath`~
19992       test -d \$dldir || mkdir -p \$dldir~
19993       $install_prog $dir/$dlname \$dldir/$dlname~
19994       chmod a+x \$dldir/$dlname'
19995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19996       dlpath=$dir/\$dldll~
19997        $rm \$dlpath'
19998     shlibpath_overrides_runpath=yes
19999
20000     case $host_os in
20001     cygwin*)
20002       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20003       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20004       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20005       ;;
20006     mingw*)
20007       # MinGW DLLs use traditional 'lib' prefix
20008       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20009       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20010       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20011         # It is most probably a Windows format PATH printed by
20012         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20013         # path with ; separators, and with drive letters. We can handle the
20014         # drive letters (cygwin fileutils understands them), so leave them,
20015         # especially as we might pass files found there to a mingw objdump,
20016         # which wouldn't understand a cygwinified path. Ahh.
20017         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20018       else
20019         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20020       fi
20021       ;;
20022     pw32*)
20023       # pw32 DLLs use 'pw' prefix rather than 'lib'
20024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20025       ;;
20026     esac
20027     ;;
20028
20029   *)
20030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20031     ;;
20032   esac
20033   dynamic_linker='Win32 ld.exe'
20034   # FIXME: first we should search . and the directory the executable is in
20035   shlibpath_var=PATH
20036   ;;
20037
20038 darwin* | rhapsody*)
20039   dynamic_linker="$host_os dyld"
20040   version_type=darwin
20041   need_lib_prefix=no
20042   need_version=no
20043   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20044   soname_spec='${libname}${release}${major}$shared_ext'
20045   shlibpath_overrides_runpath=yes
20046   shlibpath_var=DYLD_LIBRARY_PATH
20047   shrext_cmds='.dylib'
20048   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20049   if test "$GCC" = yes; then
20050     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"`
20051   else
20052     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20053   fi
20054   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20055   ;;
20056
20057 dgux*)
20058   version_type=linux
20059   need_lib_prefix=no
20060   need_version=no
20061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20062   soname_spec='${libname}${release}${shared_ext}$major'
20063   shlibpath_var=LD_LIBRARY_PATH
20064   ;;
20065
20066 freebsd1*)
20067   dynamic_linker=no
20068   ;;
20069
20070 kfreebsd*-gnu)
20071   version_type=linux
20072   need_lib_prefix=no
20073   need_version=no
20074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20075   soname_spec='${libname}${release}${shared_ext}$major'
20076   shlibpath_var=LD_LIBRARY_PATH
20077   shlibpath_overrides_runpath=no
20078   hardcode_into_libs=yes
20079   dynamic_linker='GNU ld.so'
20080   ;;
20081
20082 freebsd* | dragonfly*)
20083   # DragonFly does not have aout.  When/if they implement a new
20084   # versioning mechanism, adjust this.
20085   if test -x /usr/bin/objformat; then
20086     objformat=`/usr/bin/objformat`
20087   else
20088     case $host_os in
20089     freebsd[123]*) objformat=aout ;;
20090     *) objformat=elf ;;
20091     esac
20092   fi
20093   version_type=freebsd-$objformat
20094   case $version_type in
20095     freebsd-elf*)
20096       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20097       need_version=no
20098       need_lib_prefix=no
20099       ;;
20100     freebsd-*)
20101       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20102       need_version=yes
20103       ;;
20104   esac
20105   shlibpath_var=LD_LIBRARY_PATH
20106   case $host_os in
20107   freebsd2*)
20108     shlibpath_overrides_runpath=yes
20109     ;;
20110   freebsd3.[01]* | freebsdelf3.[01]*)
20111     shlibpath_overrides_runpath=yes
20112     hardcode_into_libs=yes
20113     ;;
20114   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20115   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20116     shlibpath_overrides_runpath=no
20117     hardcode_into_libs=yes
20118     ;;
20119   freebsd*) # from 4.6 on
20120     shlibpath_overrides_runpath=yes
20121     hardcode_into_libs=yes
20122     ;;
20123   esac
20124   ;;
20125
20126 gnu*)
20127   version_type=linux
20128   need_lib_prefix=no
20129   need_version=no
20130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20131   soname_spec='${libname}${release}${shared_ext}$major'
20132   shlibpath_var=LD_LIBRARY_PATH
20133   hardcode_into_libs=yes
20134   ;;
20135
20136 hpux9* | hpux10* | hpux11*)
20137   # Give a soname corresponding to the major version so that dld.sl refuses to
20138   # link against other versions.
20139   version_type=sunos
20140   need_lib_prefix=no
20141   need_version=no
20142   case $host_cpu in
20143   ia64*)
20144     shrext_cmds='.so'
20145     hardcode_into_libs=yes
20146     dynamic_linker="$host_os dld.so"
20147     shlibpath_var=LD_LIBRARY_PATH
20148     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150     soname_spec='${libname}${release}${shared_ext}$major'
20151     if test "X$HPUX_IA64_MODE" = X32; then
20152       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20153     else
20154       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20155     fi
20156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20157     ;;
20158    hppa*64*)
20159      shrext_cmds='.sl'
20160      hardcode_into_libs=yes
20161      dynamic_linker="$host_os dld.sl"
20162      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20163      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20164      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165      soname_spec='${libname}${release}${shared_ext}$major'
20166      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20167      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20168      ;;
20169    *)
20170     shrext_cmds='.sl'
20171     dynamic_linker="$host_os dld.sl"
20172     shlibpath_var=SHLIB_PATH
20173     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175     soname_spec='${libname}${release}${shared_ext}$major'
20176     ;;
20177   esac
20178   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20179   postinstall_cmds='chmod 555 $lib'
20180   ;;
20181
20182 interix3*)
20183   version_type=linux
20184   need_lib_prefix=no
20185   need_version=no
20186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187   soname_spec='${libname}${release}${shared_ext}$major'
20188   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20189   shlibpath_var=LD_LIBRARY_PATH
20190   shlibpath_overrides_runpath=no
20191   hardcode_into_libs=yes
20192   ;;
20193
20194 irix5* | irix6* | nonstopux*)
20195   case $host_os in
20196     nonstopux*) version_type=nonstopux ;;
20197     *)
20198         if test "$lt_cv_prog_gnu_ld" = yes; then
20199                 version_type=linux
20200         else
20201                 version_type=irix
20202         fi ;;
20203   esac
20204   need_lib_prefix=no
20205   need_version=no
20206   soname_spec='${libname}${release}${shared_ext}$major'
20207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20208   case $host_os in
20209   irix5* | nonstopux*)
20210     libsuff= shlibsuff=
20211     ;;
20212   *)
20213     case $LD in # libtool.m4 will add one of these switches to LD
20214     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20215       libsuff= shlibsuff= libmagic=32-bit;;
20216     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20217       libsuff=32 shlibsuff=N32 libmagic=N32;;
20218     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20219       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20220     *) libsuff= shlibsuff= libmagic=never-match;;
20221     esac
20222     ;;
20223   esac
20224   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20225   shlibpath_overrides_runpath=no
20226   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20227   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20228   hardcode_into_libs=yes
20229   ;;
20230
20231 # No shared lib support for Linux oldld, aout, or coff.
20232 linux*oldld* | linux*aout* | linux*coff*)
20233   dynamic_linker=no
20234   ;;
20235
20236 # This must be Linux ELF.
20237 linux*)
20238   version_type=linux
20239   need_lib_prefix=no
20240   need_version=no
20241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242   soname_spec='${libname}${release}${shared_ext}$major'
20243   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20244   shlibpath_var=LD_LIBRARY_PATH
20245   shlibpath_overrides_runpath=no
20246   # This implies no fast_install, which is unacceptable.
20247   # Some rework will be needed to allow for fast_install
20248   # before this can be enabled.
20249   hardcode_into_libs=yes
20250
20251   # Append ld.so.conf contents to the search path
20252   if test -f /etc/ld.so.conf; then
20253     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' ' '`
20254     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20255   fi
20256
20257   # We used to test for /lib/ld.so.1 and disable shared libraries on
20258   # powerpc, because MkLinux only supported shared libraries with the
20259   # GNU dynamic linker.  Since this was broken with cross compilers,
20260   # most powerpc-linux boxes support dynamic linking these days and
20261   # people can always --disable-shared, the test was removed, and we
20262   # assume the GNU/Linux dynamic linker is in use.
20263   dynamic_linker='GNU/Linux ld.so'
20264   ;;
20265
20266 knetbsd*-gnu)
20267   version_type=linux
20268   need_lib_prefix=no
20269   need_version=no
20270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20271   soname_spec='${libname}${release}${shared_ext}$major'
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=no
20274   hardcode_into_libs=yes
20275   dynamic_linker='GNU ld.so'
20276   ;;
20277
20278 netbsd*)
20279   version_type=sunos
20280   need_lib_prefix=no
20281   need_version=no
20282   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20284     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20285     dynamic_linker='NetBSD (a.out) ld.so'
20286   else
20287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288     soname_spec='${libname}${release}${shared_ext}$major'
20289     dynamic_linker='NetBSD ld.elf_so'
20290   fi
20291   shlibpath_var=LD_LIBRARY_PATH
20292   shlibpath_overrides_runpath=yes
20293   hardcode_into_libs=yes
20294   ;;
20295
20296 newsos6)
20297   version_type=linux
20298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299   shlibpath_var=LD_LIBRARY_PATH
20300   shlibpath_overrides_runpath=yes
20301   ;;
20302
20303 nto-qnx*)
20304   version_type=linux
20305   need_lib_prefix=no
20306   need_version=no
20307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308   soname_spec='${libname}${release}${shared_ext}$major'
20309   shlibpath_var=LD_LIBRARY_PATH
20310   shlibpath_overrides_runpath=yes
20311   ;;
20312
20313 openbsd*)
20314   version_type=sunos
20315   sys_lib_dlsearch_path_spec="/usr/lib"
20316   need_lib_prefix=no
20317   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20318   case $host_os in
20319     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20320     *)                         need_version=no  ;;
20321   esac
20322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20324   shlibpath_var=LD_LIBRARY_PATH
20325   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20326     case $host_os in
20327       openbsd2.[89] | openbsd2.[89].*)
20328         shlibpath_overrides_runpath=no
20329         ;;
20330       *)
20331         shlibpath_overrides_runpath=yes
20332         ;;
20333       esac
20334   else
20335     shlibpath_overrides_runpath=yes
20336   fi
20337   ;;
20338
20339 os2*)
20340   libname_spec='$name'
20341   shrext_cmds=".dll"
20342   need_lib_prefix=no
20343   library_names_spec='$libname${shared_ext} $libname.a'
20344   dynamic_linker='OS/2 ld.exe'
20345   shlibpath_var=LIBPATH
20346   ;;
20347
20348 osf3* | osf4* | osf5*)
20349   version_type=osf
20350   need_lib_prefix=no
20351   need_version=no
20352   soname_spec='${libname}${release}${shared_ext}$major'
20353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354   shlibpath_var=LD_LIBRARY_PATH
20355   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20356   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20357   ;;
20358
20359 solaris*)
20360   version_type=linux
20361   need_lib_prefix=no
20362   need_version=no
20363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364   soname_spec='${libname}${release}${shared_ext}$major'
20365   shlibpath_var=LD_LIBRARY_PATH
20366   shlibpath_overrides_runpath=yes
20367   hardcode_into_libs=yes
20368   # ldd complains unless libraries are executable
20369   postinstall_cmds='chmod +x $lib'
20370   ;;
20371
20372 sunos4*)
20373   version_type=sunos
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20375   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20376   shlibpath_var=LD_LIBRARY_PATH
20377   shlibpath_overrides_runpath=yes
20378   if test "$with_gnu_ld" = yes; then
20379     need_lib_prefix=no
20380   fi
20381   need_version=yes
20382   ;;
20383
20384 sysv4 | sysv4.3*)
20385   version_type=linux
20386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387   soname_spec='${libname}${release}${shared_ext}$major'
20388   shlibpath_var=LD_LIBRARY_PATH
20389   case $host_vendor in
20390     sni)
20391       shlibpath_overrides_runpath=no
20392       need_lib_prefix=no
20393       export_dynamic_flag_spec='${wl}-Blargedynsym'
20394       runpath_var=LD_RUN_PATH
20395       ;;
20396     siemens)
20397       need_lib_prefix=no
20398       ;;
20399     motorola)
20400       need_lib_prefix=no
20401       need_version=no
20402       shlibpath_overrides_runpath=no
20403       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20404       ;;
20405   esac
20406   ;;
20407
20408 sysv4*MP*)
20409   if test -d /usr/nec ;then
20410     version_type=linux
20411     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20412     soname_spec='$libname${shared_ext}.$major'
20413     shlibpath_var=LD_LIBRARY_PATH
20414   fi
20415   ;;
20416
20417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20418   version_type=freebsd-elf
20419   need_lib_prefix=no
20420   need_version=no
20421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20422   soname_spec='${libname}${release}${shared_ext}$major'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   hardcode_into_libs=yes
20425   if test "$with_gnu_ld" = yes; then
20426     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20427     shlibpath_overrides_runpath=no
20428   else
20429     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20430     shlibpath_overrides_runpath=yes
20431     case $host_os in
20432       sco3.2v5*)
20433         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20434         ;;
20435     esac
20436   fi
20437   sys_lib_dlsearch_path_spec='/usr/lib'
20438   ;;
20439
20440 uts4*)
20441   version_type=linux
20442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443   soname_spec='${libname}${release}${shared_ext}$major'
20444   shlibpath_var=LD_LIBRARY_PATH
20445   ;;
20446
20447 *)
20448   dynamic_linker=no
20449   ;;
20450 esac
20451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20452 echo "${ECHO_T}$dynamic_linker" >&6; }
20453 test "$dynamic_linker" = no && can_build_shared=no
20454
20455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20456 if test "$GCC" = yes; then
20457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20458 fi
20459
20460 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20462 hardcode_action_CXX=
20463 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20464    test -n "$runpath_var_CXX" || \
20465    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20466
20467   # We can hardcode non-existant directories.
20468   if test "$hardcode_direct_CXX" != no &&
20469      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20470      # have to relink, otherwise we might link with an installed library
20471      # when we should be linking with a yet-to-be-installed one
20472      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20473      test "$hardcode_minus_L_CXX" != no; then
20474     # Linking always hardcodes the temporary library directory.
20475     hardcode_action_CXX=relink
20476   else
20477     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20478     hardcode_action_CXX=immediate
20479   fi
20480 else
20481   # We cannot hardcode anything, or else we can only hardcode existing
20482   # directories.
20483   hardcode_action_CXX=unsupported
20484 fi
20485 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20486 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20487
20488 if test "$hardcode_action_CXX" = relink; then
20489   # Fast installation is not supported
20490   enable_fast_install=no
20491 elif test "$shlibpath_overrides_runpath" = yes ||
20492      test "$enable_shared" = no; then
20493   # Fast installation is not necessary
20494   enable_fast_install=needless
20495 fi
20496
20497
20498 # The else clause should only fire when bootstrapping the
20499 # libtool distribution, otherwise you forgot to ship ltmain.sh
20500 # with your package, and you will get complaints that there are
20501 # no rules to generate ltmain.sh.
20502 if test -f "$ltmain"; then
20503   # See if we are running on zsh, and set the options which allow our commands through
20504   # without removal of \ escapes.
20505   if test -n "${ZSH_VERSION+set}" ; then
20506     setopt NO_GLOB_SUBST
20507   fi
20508   # Now quote all the things that may contain metacharacters while being
20509   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20510   # variables and quote the copies for generation of the libtool script.
20511   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20512     SED SHELL STRIP \
20513     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20514     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20515     deplibs_check_method reload_flag reload_cmds need_locks \
20516     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20517     lt_cv_sys_global_symbol_to_c_name_address \
20518     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20519     old_postinstall_cmds old_postuninstall_cmds \
20520     compiler_CXX \
20521     CC_CXX \
20522     LD_CXX \
20523     lt_prog_compiler_wl_CXX \
20524     lt_prog_compiler_pic_CXX \
20525     lt_prog_compiler_static_CXX \
20526     lt_prog_compiler_no_builtin_flag_CXX \
20527     export_dynamic_flag_spec_CXX \
20528     thread_safe_flag_spec_CXX \
20529     whole_archive_flag_spec_CXX \
20530     enable_shared_with_static_runtimes_CXX \
20531     old_archive_cmds_CXX \
20532     old_archive_from_new_cmds_CXX \
20533     predep_objects_CXX \
20534     postdep_objects_CXX \
20535     predeps_CXX \
20536     postdeps_CXX \
20537     compiler_lib_search_path_CXX \
20538     archive_cmds_CXX \
20539     archive_expsym_cmds_CXX \
20540     postinstall_cmds_CXX \
20541     postuninstall_cmds_CXX \
20542     old_archive_from_expsyms_cmds_CXX \
20543     allow_undefined_flag_CXX \
20544     no_undefined_flag_CXX \
20545     export_symbols_cmds_CXX \
20546     hardcode_libdir_flag_spec_CXX \
20547     hardcode_libdir_flag_spec_ld_CXX \
20548     hardcode_libdir_separator_CXX \
20549     hardcode_automatic_CXX \
20550     module_cmds_CXX \
20551     module_expsym_cmds_CXX \
20552     lt_cv_prog_compiler_c_o_CXX \
20553     exclude_expsyms_CXX \
20554     include_expsyms_CXX; do
20555
20556     case $var in
20557     old_archive_cmds_CXX | \
20558     old_archive_from_new_cmds_CXX | \
20559     archive_cmds_CXX | \
20560     archive_expsym_cmds_CXX | \
20561     module_cmds_CXX | \
20562     module_expsym_cmds_CXX | \
20563     old_archive_from_expsyms_cmds_CXX | \
20564     export_symbols_cmds_CXX | \
20565     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20566     postinstall_cmds | postuninstall_cmds | \
20567     old_postinstall_cmds | old_postuninstall_cmds | \
20568     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20569       # Double-quote double-evaled strings.
20570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20571       ;;
20572     *)
20573       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20574       ;;
20575     esac
20576   done
20577
20578   case $lt_echo in
20579   *'\$0 --fallback-echo"')
20580     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20581     ;;
20582   esac
20583
20584 cfgfile="$ofile"
20585
20586   cat <<__EOF__ >> "$cfgfile"
20587 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20588
20589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20590
20591 # Shell to use when invoking shell scripts.
20592 SHELL=$lt_SHELL
20593
20594 # Whether or not to build shared libraries.
20595 build_libtool_libs=$enable_shared
20596
20597 # Whether or not to build static libraries.
20598 build_old_libs=$enable_static
20599
20600 # Whether or not to add -lc for building shared libraries.
20601 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20602
20603 # Whether or not to disallow shared libs when runtime libs are static
20604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20605
20606 # Whether or not to optimize for fast installation.
20607 fast_install=$enable_fast_install
20608
20609 # The host system.
20610 host_alias=$host_alias
20611 host=$host
20612 host_os=$host_os
20613
20614 # The build system.
20615 build_alias=$build_alias
20616 build=$build
20617 build_os=$build_os
20618
20619 # An echo program that does not interpret backslashes.
20620 echo=$lt_echo
20621
20622 # The archiver.
20623 AR=$lt_AR
20624 AR_FLAGS=$lt_AR_FLAGS
20625
20626 # A C compiler.
20627 LTCC=$lt_LTCC
20628
20629 # LTCC compiler flags.
20630 LTCFLAGS=$lt_LTCFLAGS
20631
20632 # A language-specific compiler.
20633 CC=$lt_compiler_CXX
20634
20635 # Is the compiler the GNU C compiler?
20636 with_gcc=$GCC_CXX
20637
20638 # An ERE matcher.
20639 EGREP=$lt_EGREP
20640
20641 # The linker used to build libraries.
20642 LD=$lt_LD_CXX
20643
20644 # Whether we need hard or soft links.
20645 LN_S=$lt_LN_S
20646
20647 # A BSD-compatible nm program.
20648 NM=$lt_NM
20649
20650 # A symbol stripping program
20651 STRIP=$lt_STRIP
20652
20653 # Used to examine libraries when file_magic_cmd begins "file"
20654 MAGIC_CMD=$MAGIC_CMD
20655
20656 # Used on cygwin: DLL creation program.
20657 DLLTOOL="$DLLTOOL"
20658
20659 # Used on cygwin: object dumper.
20660 OBJDUMP="$OBJDUMP"
20661
20662 # Used on cygwin: assembler.
20663 AS="$AS"
20664
20665 # The name of the directory that contains temporary libtool files.
20666 objdir=$objdir
20667
20668 # How to create reloadable object files.
20669 reload_flag=$lt_reload_flag
20670 reload_cmds=$lt_reload_cmds
20671
20672 # How to pass a linker flag through the compiler.
20673 wl=$lt_lt_prog_compiler_wl_CXX
20674
20675 # Object file suffix (normally "o").
20676 objext="$ac_objext"
20677
20678 # Old archive suffix (normally "a").
20679 libext="$libext"
20680
20681 # Shared library suffix (normally ".so").
20682 shrext_cmds='$shrext_cmds'
20683
20684 # Executable file suffix (normally "").
20685 exeext="$exeext"
20686
20687 # Additional compiler flags for building library objects.
20688 pic_flag=$lt_lt_prog_compiler_pic_CXX
20689 pic_mode=$pic_mode
20690
20691 # What is the maximum length of a command?
20692 max_cmd_len=$lt_cv_sys_max_cmd_len
20693
20694 # Does compiler simultaneously support -c and -o options?
20695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20696
20697 # Must we lock files when doing compilation?
20698 need_locks=$lt_need_locks
20699
20700 # Do we need the lib prefix for modules?
20701 need_lib_prefix=$need_lib_prefix
20702
20703 # Do we need a version for libraries?
20704 need_version=$need_version
20705
20706 # Whether dlopen is supported.
20707 dlopen_support=$enable_dlopen
20708
20709 # Whether dlopen of programs is supported.
20710 dlopen_self=$enable_dlopen_self
20711
20712 # Whether dlopen of statically linked programs is supported.
20713 dlopen_self_static=$enable_dlopen_self_static
20714
20715 # Compiler flag to prevent dynamic linking.
20716 link_static_flag=$lt_lt_prog_compiler_static_CXX
20717
20718 # Compiler flag to turn off builtin functions.
20719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20720
20721 # Compiler flag to allow reflexive dlopens.
20722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20723
20724 # Compiler flag to generate shared objects directly from archives.
20725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20726
20727 # Compiler flag to generate thread-safe objects.
20728 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20729
20730 # Library versioning type.
20731 version_type=$version_type
20732
20733 # Format of library name prefix.
20734 libname_spec=$lt_libname_spec
20735
20736 # List of archive names.  First name is the real one, the rest are links.
20737 # The last name is the one that the linker finds with -lNAME.
20738 library_names_spec=$lt_library_names_spec
20739
20740 # The coded name of the library, if different from the real name.
20741 soname_spec=$lt_soname_spec
20742
20743 # Commands used to build and install an old-style archive.
20744 RANLIB=$lt_RANLIB
20745 old_archive_cmds=$lt_old_archive_cmds_CXX
20746 old_postinstall_cmds=$lt_old_postinstall_cmds
20747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20748
20749 # Create an old-style archive from a shared archive.
20750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20751
20752 # Create a temporary old-style archive to link instead of a shared archive.
20753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20754
20755 # Commands used to build and install a shared archive.
20756 archive_cmds=$lt_archive_cmds_CXX
20757 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20758 postinstall_cmds=$lt_postinstall_cmds
20759 postuninstall_cmds=$lt_postuninstall_cmds
20760
20761 # Commands used to build a loadable module (assumed same as above if empty)
20762 module_cmds=$lt_module_cmds_CXX
20763 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20764
20765 # Commands to strip libraries.
20766 old_striplib=$lt_old_striplib
20767 striplib=$lt_striplib
20768
20769 # Dependencies to place before the objects being linked to create a
20770 # shared library.
20771 predep_objects=$lt_predep_objects_CXX
20772
20773 # Dependencies to place after the objects being linked to create a
20774 # shared library.
20775 postdep_objects=$lt_postdep_objects_CXX
20776
20777 # Dependencies to place before the objects being linked to create a
20778 # shared library.
20779 predeps=$lt_predeps_CXX
20780
20781 # Dependencies to place after the objects being linked to create a
20782 # shared library.
20783 postdeps=$lt_postdeps_CXX
20784
20785 # The library search path used internally by the compiler when linking
20786 # a shared library.
20787 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20788
20789 # Method to check whether dependent libraries are shared objects.
20790 deplibs_check_method=$lt_deplibs_check_method
20791
20792 # Command to use when deplibs_check_method == file_magic.
20793 file_magic_cmd=$lt_file_magic_cmd
20794
20795 # Flag that allows shared libraries with undefined symbols to be built.
20796 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20797
20798 # Flag that forces no undefined symbols.
20799 no_undefined_flag=$lt_no_undefined_flag_CXX
20800
20801 # Commands used to finish a libtool library installation in a directory.
20802 finish_cmds=$lt_finish_cmds
20803
20804 # Same as above, but a single script fragment to be evaled but not shown.
20805 finish_eval=$lt_finish_eval
20806
20807 # Take the output of nm and produce a listing of raw symbols and C names.
20808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20809
20810 # Transform the output of nm in a proper C declaration
20811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20812
20813 # Transform the output of nm in a C name address pair
20814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20815
20816 # This is the shared library runtime path variable.
20817 runpath_var=$runpath_var
20818
20819 # This is the shared library path variable.
20820 shlibpath_var=$shlibpath_var
20821
20822 # Is shlibpath searched before the hard-coded library search path?
20823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20824
20825 # How to hardcode a shared library path into an executable.
20826 hardcode_action=$hardcode_action_CXX
20827
20828 # Whether we should hardcode library paths into libraries.
20829 hardcode_into_libs=$hardcode_into_libs
20830
20831 # Flag to hardcode \$libdir into a binary during linking.
20832 # This must work even if \$libdir does not exist.
20833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20834
20835 # If ld is used when linking, flag to hardcode \$libdir into
20836 # a binary during linking. This must work even if \$libdir does
20837 # not exist.
20838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20839
20840 # Whether we need a single -rpath flag with a separated argument.
20841 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20842
20843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20844 # resulting binary.
20845 hardcode_direct=$hardcode_direct_CXX
20846
20847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20848 # resulting binary.
20849 hardcode_minus_L=$hardcode_minus_L_CXX
20850
20851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20852 # the resulting binary.
20853 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20854
20855 # Set to yes if building a shared library automatically hardcodes DIR into the library
20856 # and all subsequent libraries and executables linked against it.
20857 hardcode_automatic=$hardcode_automatic_CXX
20858
20859 # Variables whose values should be saved in libtool wrapper scripts and
20860 # restored at relink time.
20861 variables_saved_for_relink="$variables_saved_for_relink"
20862
20863 # Whether libtool must link a program against all its dependency libraries.
20864 link_all_deplibs=$link_all_deplibs_CXX
20865
20866 # Compile-time system search path for libraries
20867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20868
20869 # Run-time system search path for libraries
20870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20871
20872 # Fix the shell variable \$srcfile for the compiler.
20873 fix_srcfile_path="$fix_srcfile_path_CXX"
20874
20875 # Set to yes if exported symbols are required.
20876 always_export_symbols=$always_export_symbols_CXX
20877
20878 # The commands to list exported symbols.
20879 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20880
20881 # The commands to extract the exported symbol list from a shared archive.
20882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20883
20884 # Symbols that should not be listed in the preloaded symbols.
20885 exclude_expsyms=$lt_exclude_expsyms_CXX
20886
20887 # Symbols that must always be exported.
20888 include_expsyms=$lt_include_expsyms_CXX
20889
20890 # ### END LIBTOOL TAG CONFIG: $tagname
20891
20892 __EOF__
20893
20894
20895 else
20896   # If there is no Makefile yet, we rely on a make rule to execute
20897   # `config.status --recheck' to rerun these tests and create the
20898   # libtool script then.
20899   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20900   if test -f "$ltmain_in"; then
20901     test -f Makefile && make "$ltmain"
20902   fi
20903 fi
20904
20905
20906 ac_ext=c
20907 ac_cpp='$CPP $CPPFLAGS'
20908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911
20912 CC=$lt_save_CC
20913 LDCXX=$LD
20914 LD=$lt_save_LD
20915 GCC=$lt_save_GCC
20916 with_gnu_ldcxx=$with_gnu_ld
20917 with_gnu_ld=$lt_save_with_gnu_ld
20918 lt_cv_path_LDCXX=$lt_cv_path_LD
20919 lt_cv_path_LD=$lt_save_path_LD
20920 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20921 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20922
20923         else
20924           tagname=""
20925         fi
20926         ;;
20927
20928       F77)
20929         if test -n "$F77" && test "X$F77" != "Xno"; then
20930
20931 ac_ext=f
20932 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20933 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20935
20936
20937 archive_cmds_need_lc_F77=no
20938 allow_undefined_flag_F77=
20939 always_export_symbols_F77=no
20940 archive_expsym_cmds_F77=
20941 export_dynamic_flag_spec_F77=
20942 hardcode_direct_F77=no
20943 hardcode_libdir_flag_spec_F77=
20944 hardcode_libdir_flag_spec_ld_F77=
20945 hardcode_libdir_separator_F77=
20946 hardcode_minus_L_F77=no
20947 hardcode_automatic_F77=no
20948 module_cmds_F77=
20949 module_expsym_cmds_F77=
20950 link_all_deplibs_F77=unknown
20951 old_archive_cmds_F77=$old_archive_cmds
20952 no_undefined_flag_F77=
20953 whole_archive_flag_spec_F77=
20954 enable_shared_with_static_runtimes_F77=no
20955
20956 # Source file extension for f77 test sources.
20957 ac_ext=f
20958
20959 # Object file extension for compiled f77 test sources.
20960 objext=o
20961 objext_F77=$objext
20962
20963 # Code to be used in simple compile tests
20964 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20965
20966 # Code to be used in simple link tests
20967 lt_simple_link_test_code="      program t\n      end\n"
20968
20969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20970
20971 # If no C compiler was specified, use CC.
20972 LTCC=${LTCC-"$CC"}
20973
20974 # If no C compiler flags were specified, use CFLAGS.
20975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20976
20977 # Allow CC to be a program name with arguments.
20978 compiler=$CC
20979
20980
20981 # save warnings/boilerplate of simple test code
20982 ac_outfile=conftest.$ac_objext
20983 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20985 _lt_compiler_boilerplate=`cat conftest.err`
20986 $rm conftest*
20987
20988 ac_outfile=conftest.$ac_objext
20989 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20991 _lt_linker_boilerplate=`cat conftest.err`
20992 $rm conftest*
20993
20994
20995 # Allow CC to be a program name with arguments.
20996 lt_save_CC="$CC"
20997 CC=${F77-"f77"}
20998 compiler=$CC
20999 compiler_F77=$CC
21000 for cc_temp in $compiler""; do
21001   case $cc_temp in
21002     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21003     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21004     \-*) ;;
21005     *) break;;
21006   esac
21007 done
21008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21009
21010
21011 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21012 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21013 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21014 echo "${ECHO_T}$can_build_shared" >&6; }
21015
21016 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21017 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21018 test "$can_build_shared" = "no" && enable_shared=no
21019
21020 # On AIX, shared libraries and static libraries use the same namespace, and
21021 # are all built from PIC.
21022 case $host_os in
21023 aix3*)
21024   test "$enable_shared" = yes && enable_static=no
21025   if test -n "$RANLIB"; then
21026     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21027     postinstall_cmds='$RANLIB $lib'
21028   fi
21029   ;;
21030 aix4* | aix5*)
21031   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21032     test "$enable_shared" = yes && enable_static=no
21033   fi
21034   ;;
21035 esac
21036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21037 echo "${ECHO_T}$enable_shared" >&6; }
21038
21039 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21040 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21041 # Make sure either enable_shared or enable_static is yes.
21042 test "$enable_shared" = yes || enable_static=yes
21043 { echo "$as_me:$LINENO: result: $enable_static" >&5
21044 echo "${ECHO_T}$enable_static" >&6; }
21045
21046 GCC_F77="$G77"
21047 LD_F77="$LD"
21048
21049 lt_prog_compiler_wl_F77=
21050 lt_prog_compiler_pic_F77=
21051 lt_prog_compiler_static_F77=
21052
21053 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21054 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21055
21056   if test "$GCC" = yes; then
21057     lt_prog_compiler_wl_F77='-Wl,'
21058     lt_prog_compiler_static_F77='-static'
21059
21060     case $host_os in
21061       aix*)
21062       # All AIX code is PIC.
21063       if test "$host_cpu" = ia64; then
21064         # AIX 5 now supports IA64 processor
21065         lt_prog_compiler_static_F77='-Bstatic'
21066       fi
21067       ;;
21068
21069     amigaos*)
21070       # FIXME: we need at least 68020 code to build shared libraries, but
21071       # adding the `-m68020' flag to GCC prevents building anything better,
21072       # like `-m68040'.
21073       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21074       ;;
21075
21076     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21077       # PIC is the default for these OSes.
21078       ;;
21079
21080     mingw* | pw32* | os2*)
21081       # This hack is so that the source file can tell whether it is being
21082       # built for inclusion in a dll (and should export symbols for example).
21083       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21084       ;;
21085
21086     darwin* | rhapsody*)
21087       # PIC is the default on this platform
21088       # Common symbols not allowed in MH_DYLIB files
21089       lt_prog_compiler_pic_F77='-fno-common'
21090       ;;
21091
21092     interix3*)
21093       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21094       # Instead, we relocate shared libraries at runtime.
21095       ;;
21096
21097     msdosdjgpp*)
21098       # Just because we use GCC doesn't mean we suddenly get shared libraries
21099       # on systems that don't support them.
21100       lt_prog_compiler_can_build_shared_F77=no
21101       enable_shared=no
21102       ;;
21103
21104     sysv4*MP*)
21105       if test -d /usr/nec; then
21106         lt_prog_compiler_pic_F77=-Kconform_pic
21107       fi
21108       ;;
21109
21110     hpux*)
21111       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21112       # not for PA HP-UX.
21113       case $host_cpu in
21114       hppa*64*|ia64*)
21115         # +Z the default
21116         ;;
21117       *)
21118         lt_prog_compiler_pic_F77='-fPIC'
21119         ;;
21120       esac
21121       ;;
21122
21123     *)
21124       lt_prog_compiler_pic_F77='-fPIC'
21125       ;;
21126     esac
21127   else
21128     # PORTME Check for flag to pass linker flags through the system compiler.
21129     case $host_os in
21130     aix*)
21131       lt_prog_compiler_wl_F77='-Wl,'
21132       if test "$host_cpu" = ia64; then
21133         # AIX 5 now supports IA64 processor
21134         lt_prog_compiler_static_F77='-Bstatic'
21135       else
21136         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21137       fi
21138       ;;
21139       darwin*)
21140         # PIC is the default on this platform
21141         # Common symbols not allowed in MH_DYLIB files
21142        case $cc_basename in
21143          xlc*)
21144          lt_prog_compiler_pic_F77='-qnocommon'
21145          lt_prog_compiler_wl_F77='-Wl,'
21146          ;;
21147        esac
21148        ;;
21149
21150     mingw* | pw32* | os2*)
21151       # This hack is so that the source file can tell whether it is being
21152       # built for inclusion in a dll (and should export symbols for example).
21153       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21154       ;;
21155
21156     hpux9* | hpux10* | hpux11*)
21157       lt_prog_compiler_wl_F77='-Wl,'
21158       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21159       # not for PA HP-UX.
21160       case $host_cpu in
21161       hppa*64*|ia64*)
21162         # +Z the default
21163         ;;
21164       *)
21165         lt_prog_compiler_pic_F77='+Z'
21166         ;;
21167       esac
21168       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21169       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21170       ;;
21171
21172     irix5* | irix6* | nonstopux*)
21173       lt_prog_compiler_wl_F77='-Wl,'
21174       # PIC (with -KPIC) is the default.
21175       lt_prog_compiler_static_F77='-non_shared'
21176       ;;
21177
21178     newsos6)
21179       lt_prog_compiler_pic_F77='-KPIC'
21180       lt_prog_compiler_static_F77='-Bstatic'
21181       ;;
21182
21183     linux*)
21184       case $cc_basename in
21185       icc* | ecc*)
21186         lt_prog_compiler_wl_F77='-Wl,'
21187         lt_prog_compiler_pic_F77='-KPIC'
21188         lt_prog_compiler_static_F77='-static'
21189         ;;
21190       pgcc* | pgf77* | pgf90* | pgf95*)
21191         # Portland Group compilers (*not* the Pentium gcc compiler,
21192         # which looks to be a dead project)
21193         lt_prog_compiler_wl_F77='-Wl,'
21194         lt_prog_compiler_pic_F77='-fpic'
21195         lt_prog_compiler_static_F77='-Bstatic'
21196         ;;
21197       ccc*)
21198         lt_prog_compiler_wl_F77='-Wl,'
21199         # All Alpha code is PIC.
21200         lt_prog_compiler_static_F77='-non_shared'
21201         ;;
21202       esac
21203       ;;
21204
21205     osf3* | osf4* | osf5*)
21206       lt_prog_compiler_wl_F77='-Wl,'
21207       # All OSF/1 code is PIC.
21208       lt_prog_compiler_static_F77='-non_shared'
21209       ;;
21210
21211     solaris*)
21212       lt_prog_compiler_pic_F77='-KPIC'
21213       lt_prog_compiler_static_F77='-Bstatic'
21214       case $cc_basename in
21215       f77* | f90* | f95*)
21216         lt_prog_compiler_wl_F77='-Qoption ld ';;
21217       *)
21218         lt_prog_compiler_wl_F77='-Wl,';;
21219       esac
21220       ;;
21221
21222     sunos4*)
21223       lt_prog_compiler_wl_F77='-Qoption ld '
21224       lt_prog_compiler_pic_F77='-PIC'
21225       lt_prog_compiler_static_F77='-Bstatic'
21226       ;;
21227
21228     sysv4 | sysv4.2uw2* | sysv4.3*)
21229       lt_prog_compiler_wl_F77='-Wl,'
21230       lt_prog_compiler_pic_F77='-KPIC'
21231       lt_prog_compiler_static_F77='-Bstatic'
21232       ;;
21233
21234     sysv4*MP*)
21235       if test -d /usr/nec ;then
21236         lt_prog_compiler_pic_F77='-Kconform_pic'
21237         lt_prog_compiler_static_F77='-Bstatic'
21238       fi
21239       ;;
21240
21241     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21242       lt_prog_compiler_wl_F77='-Wl,'
21243       lt_prog_compiler_pic_F77='-KPIC'
21244       lt_prog_compiler_static_F77='-Bstatic'
21245       ;;
21246
21247     unicos*)
21248       lt_prog_compiler_wl_F77='-Wl,'
21249       lt_prog_compiler_can_build_shared_F77=no
21250       ;;
21251
21252     uts4*)
21253       lt_prog_compiler_pic_F77='-pic'
21254       lt_prog_compiler_static_F77='-Bstatic'
21255       ;;
21256
21257     *)
21258       lt_prog_compiler_can_build_shared_F77=no
21259       ;;
21260     esac
21261   fi
21262
21263 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21264 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21265
21266 #
21267 # Check to make sure the PIC flag actually works.
21268 #
21269 if test -n "$lt_prog_compiler_pic_F77"; then
21270
21271 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21273 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276   lt_prog_compiler_pic_works_F77=no
21277   ac_outfile=conftest.$ac_objext
21278    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21279    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21280    # Insert the option either (1) after the last *FLAGS variable, or
21281    # (2) before a word containing "conftest.", or (3) at the end.
21282    # Note that $ac_compile itself does not contain backslashes and begins
21283    # with a dollar sign (not a hyphen), so the echo should work correctly.
21284    # The option is referenced via a variable to avoid confusing sed.
21285    lt_compile=`echo "$ac_compile" | $SED \
21286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21288    -e 's:$: $lt_compiler_flag:'`
21289    (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
21290    (eval "$lt_compile" 2>conftest.err)
21291    ac_status=$?
21292    cat conftest.err >&5
21293    echo "$as_me:21293: \$? = $ac_status" >&5
21294    if (exit $ac_status) && test -s "$ac_outfile"; then
21295      # The compiler can only warn and ignore the option if not recognized
21296      # So say no if there are warnings other than the usual output.
21297      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21300        lt_prog_compiler_pic_works_F77=yes
21301      fi
21302    fi
21303    $rm conftest*
21304
21305 fi
21306 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21307 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21308
21309 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21310     case $lt_prog_compiler_pic_F77 in
21311      "" | " "*) ;;
21312      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21313      esac
21314 else
21315     lt_prog_compiler_pic_F77=
21316      lt_prog_compiler_can_build_shared_F77=no
21317 fi
21318
21319 fi
21320 case $host_os in
21321   # For platforms which do not support PIC, -DPIC is meaningless:
21322   *djgpp*)
21323     lt_prog_compiler_pic_F77=
21324     ;;
21325   *)
21326     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21327     ;;
21328 esac
21329
21330 #
21331 # Check to make sure the static flag actually works.
21332 #
21333 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21334 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21335 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21336 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21337   echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339   lt_prog_compiler_static_works_F77=no
21340    save_LDFLAGS="$LDFLAGS"
21341    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21342    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21343    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21344      # The linker can only warn and ignore the option if not recognized
21345      # So say no if there are warnings
21346      if test -s conftest.err; then
21347        # Append any errors to the config.log.
21348        cat conftest.err 1>&5
21349        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21350        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21351        if diff conftest.exp conftest.er2 >/dev/null; then
21352          lt_prog_compiler_static_works_F77=yes
21353        fi
21354      else
21355        lt_prog_compiler_static_works_F77=yes
21356      fi
21357    fi
21358    $rm conftest*
21359    LDFLAGS="$save_LDFLAGS"
21360
21361 fi
21362 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21363 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21364
21365 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21366     :
21367 else
21368     lt_prog_compiler_static_F77=
21369 fi
21370
21371
21372 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21374 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   lt_cv_prog_compiler_c_o_F77=no
21378    $rm -r conftest 2>/dev/null
21379    mkdir conftest
21380    cd conftest
21381    mkdir out
21382    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21383
21384    lt_compiler_flag="-o out/conftest2.$ac_objext"
21385    # Insert the option either (1) after the last *FLAGS variable, or
21386    # (2) before a word containing "conftest.", or (3) at the end.
21387    # Note that $ac_compile itself does not contain backslashes and begins
21388    # with a dollar sign (not a hyphen), so the echo should work correctly.
21389    lt_compile=`echo "$ac_compile" | $SED \
21390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21392    -e 's:$: $lt_compiler_flag:'`
21393    (eval echo "\"\$as_me:21393: $lt_compile\"" >&5)
21394    (eval "$lt_compile" 2>out/conftest.err)
21395    ac_status=$?
21396    cat out/conftest.err >&5
21397    echo "$as_me:21397: \$? = $ac_status" >&5
21398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21399    then
21400      # The compiler can only warn and ignore the option if not recognized
21401      # So say no if there are warnings
21402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21405        lt_cv_prog_compiler_c_o_F77=yes
21406      fi
21407    fi
21408    chmod u+w . 2>&5
21409    $rm conftest*
21410    # SGI C++ compiler will create directory out/ii_files/ for
21411    # template instantiation
21412    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21413    $rm out/* && rmdir out
21414    cd ..
21415    rmdir conftest
21416    $rm conftest*
21417
21418 fi
21419 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21421
21422
21423 hard_links="nottested"
21424 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21425   # do not overwrite the value of need_locks provided by the user
21426   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21427 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21428   hard_links=yes
21429   $rm conftest*
21430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21431   touch conftest.a
21432   ln conftest.a conftest.b 2>&5 || hard_links=no
21433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21434   { echo "$as_me:$LINENO: result: $hard_links" >&5
21435 echo "${ECHO_T}$hard_links" >&6; }
21436   if test "$hard_links" = no; then
21437     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21438 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21439     need_locks=warn
21440   fi
21441 else
21442   need_locks=no
21443 fi
21444
21445 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21446 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21447
21448   runpath_var=
21449   allow_undefined_flag_F77=
21450   enable_shared_with_static_runtimes_F77=no
21451   archive_cmds_F77=
21452   archive_expsym_cmds_F77=
21453   old_archive_From_new_cmds_F77=
21454   old_archive_from_expsyms_cmds_F77=
21455   export_dynamic_flag_spec_F77=
21456   whole_archive_flag_spec_F77=
21457   thread_safe_flag_spec_F77=
21458   hardcode_libdir_flag_spec_F77=
21459   hardcode_libdir_flag_spec_ld_F77=
21460   hardcode_libdir_separator_F77=
21461   hardcode_direct_F77=no
21462   hardcode_minus_L_F77=no
21463   hardcode_shlibpath_var_F77=unsupported
21464   link_all_deplibs_F77=unknown
21465   hardcode_automatic_F77=no
21466   module_cmds_F77=
21467   module_expsym_cmds_F77=
21468   always_export_symbols_F77=no
21469   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21470   # include_expsyms should be a list of space-separated symbols to be *always*
21471   # included in the symbol list
21472   include_expsyms_F77=
21473   # exclude_expsyms can be an extended regexp of symbols to exclude
21474   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21475   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21476   # as well as any symbol that contains `d'.
21477   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21478   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21479   # platforms (ab)use it in PIC code, but their linkers get confused if
21480   # the symbol is explicitly referenced.  Since portable code cannot
21481   # rely on this symbol name, it's probably fine to never include it in
21482   # preloaded symbol tables.
21483   extract_expsyms_cmds=
21484   # Just being paranoid about ensuring that cc_basename is set.
21485   for cc_temp in $compiler""; do
21486   case $cc_temp in
21487     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21488     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21489     \-*) ;;
21490     *) break;;
21491   esac
21492 done
21493 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21494
21495   case $host_os in
21496   cygwin* | mingw* | pw32*)
21497     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21498     # When not using gcc, we currently assume that we are using
21499     # Microsoft Visual C++.
21500     if test "$GCC" != yes; then
21501       with_gnu_ld=no
21502     fi
21503     ;;
21504   interix*)
21505     # we just hope/assume this is gcc and not c89 (= MSVC++)
21506     with_gnu_ld=yes
21507     ;;
21508   openbsd*)
21509     with_gnu_ld=no
21510     ;;
21511   esac
21512
21513   ld_shlibs_F77=yes
21514   if test "$with_gnu_ld" = yes; then
21515     # If archive_cmds runs LD, not CC, wlarc should be empty
21516     wlarc='${wl}'
21517
21518     # Set some defaults for GNU ld with shared library support. These
21519     # are reset later if shared libraries are not supported. Putting them
21520     # here allows them to be overridden if necessary.
21521     runpath_var=LD_RUN_PATH
21522     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21523     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21524     # ancient GNU ld didn't support --whole-archive et. al.
21525     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21526         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21527       else
21528         whole_archive_flag_spec_F77=
21529     fi
21530     supports_anon_versioning=no
21531     case `$LD -v 2>/dev/null` in
21532       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21533       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21534       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21535       *\ 2.11.*) ;; # other 2.11 versions
21536       *) supports_anon_versioning=yes ;;
21537     esac
21538
21539     # See if GNU ld supports shared libraries.
21540     case $host_os in
21541     aix3* | aix4* | aix5*)
21542       # On AIX/PPC, the GNU linker is very broken
21543       if test "$host_cpu" != ia64; then
21544         ld_shlibs_F77=no
21545         cat <<EOF 1>&2
21546
21547 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21548 *** to be unable to reliably create shared libraries on AIX.
21549 *** Therefore, libtool is disabling shared libraries support.  If you
21550 *** really care for shared libraries, you may want to modify your PATH
21551 *** so that a non-GNU linker is found, and then restart.
21552
21553 EOF
21554       fi
21555       ;;
21556
21557     amigaos*)
21558       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)'
21559       hardcode_libdir_flag_spec_F77='-L$libdir'
21560       hardcode_minus_L_F77=yes
21561
21562       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21563       # that the semantics of dynamic libraries on AmigaOS, at least up
21564       # to version 4, is to share data among multiple programs linked
21565       # with the same dynamic library.  Since this doesn't match the
21566       # behavior of shared libraries on other platforms, we can't use
21567       # them.
21568       ld_shlibs_F77=no
21569       ;;
21570
21571     beos*)
21572       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21573         allow_undefined_flag_F77=unsupported
21574         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21575         # support --undefined.  This deserves some investigation.  FIXME
21576         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21577       else
21578         ld_shlibs_F77=no
21579       fi
21580       ;;
21581
21582     cygwin* | mingw* | pw32*)
21583       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21584       # as there is no search path for DLLs.
21585       hardcode_libdir_flag_spec_F77='-L$libdir'
21586       allow_undefined_flag_F77=unsupported
21587       always_export_symbols_F77=no
21588       enable_shared_with_static_runtimes_F77=yes
21589       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21590
21591       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21592         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21593         # If the export-symbols file already is a .def file (1st line
21594         # is EXPORTS), use it as is; otherwise, prepend...
21595         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21596           cp $export_symbols $output_objdir/$soname.def;
21597         else
21598           echo EXPORTS > $output_objdir/$soname.def;
21599           cat $export_symbols >> $output_objdir/$soname.def;
21600         fi~
21601         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21602       else
21603         ld_shlibs_F77=no
21604       fi
21605       ;;
21606
21607     interix3*)
21608       hardcode_direct_F77=no
21609       hardcode_shlibpath_var_F77=no
21610       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21611       export_dynamic_flag_spec_F77='${wl}-E'
21612       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21613       # Instead, shared libraries are loaded at an image base (0x10000000 by
21614       # default) and relocated if they conflict, which is a slow very memory
21615       # consuming and fragmenting process.  To avoid this, we pick a random,
21616       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21617       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21618       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'
21619       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'
21620       ;;
21621
21622     linux*)
21623       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21624         tmp_addflag=
21625         case $cc_basename,$host_cpu in
21626         pgcc*)                          # Portland Group C compiler
21627           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'
21628           tmp_addflag=' $pic_flag'
21629           ;;
21630         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21631           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'
21632           tmp_addflag=' $pic_flag -Mnomain' ;;
21633         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21634           tmp_addflag=' -i_dynamic' ;;
21635         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21636           tmp_addflag=' -i_dynamic -nofor_main' ;;
21637         ifc* | ifort*)                  # Intel Fortran compiler
21638           tmp_addflag=' -nofor_main' ;;
21639         esac
21640         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21641
21642         if test $supports_anon_versioning = yes; then
21643           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21644   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21645   $echo "local: *; };" >> $output_objdir/$libname.ver~
21646           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21647         fi
21648       else
21649         ld_shlibs_F77=no
21650       fi
21651       ;;
21652
21653     netbsd*)
21654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21655         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21656         wlarc=
21657       else
21658         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21659         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21660       fi
21661       ;;
21662
21663     solaris*)
21664       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21665         ld_shlibs_F77=no
21666         cat <<EOF 1>&2
21667
21668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21669 *** create shared libraries on Solaris systems.  Therefore, libtool
21670 *** is disabling shared libraries support.  We urge you to upgrade GNU
21671 *** binutils to release 2.9.1 or newer.  Another option is to modify
21672 *** your PATH or compiler configuration so that the native linker is
21673 *** used, and then restart.
21674
21675 EOF
21676       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21677         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21678         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21679       else
21680         ld_shlibs_F77=no
21681       fi
21682       ;;
21683
21684     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21685       case `$LD -v 2>&1` in
21686         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21687         ld_shlibs_F77=no
21688         cat <<_LT_EOF 1>&2
21689
21690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21691 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21692 *** is disabling shared libraries support.  We urge you to upgrade GNU
21693 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21694 *** your PATH or compiler configuration so that the native linker is
21695 *** used, and then restart.
21696
21697 _LT_EOF
21698         ;;
21699         *)
21700           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21701             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21702             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21703             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21704           else
21705             ld_shlibs_F77=no
21706           fi
21707         ;;
21708       esac
21709       ;;
21710
21711     sunos4*)
21712       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21713       wlarc=
21714       hardcode_direct_F77=yes
21715       hardcode_shlibpath_var_F77=no
21716       ;;
21717
21718     *)
21719       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21720         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21721         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21722       else
21723         ld_shlibs_F77=no
21724       fi
21725       ;;
21726     esac
21727
21728     if test "$ld_shlibs_F77" = no; then
21729       runpath_var=
21730       hardcode_libdir_flag_spec_F77=
21731       export_dynamic_flag_spec_F77=
21732       whole_archive_flag_spec_F77=
21733     fi
21734   else
21735     # PORTME fill in a description of your system's linker (not GNU ld)
21736     case $host_os in
21737     aix3*)
21738       allow_undefined_flag_F77=unsupported
21739       always_export_symbols_F77=yes
21740       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'
21741       # Note: this linker hardcodes the directories in LIBPATH if there
21742       # are no directories specified by -L.
21743       hardcode_minus_L_F77=yes
21744       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21745         # Neither direct hardcoding nor static linking is supported with a
21746         # broken collect2.
21747         hardcode_direct_F77=unsupported
21748       fi
21749       ;;
21750
21751     aix4* | aix5*)
21752       if test "$host_cpu" = ia64; then
21753         # On IA64, the linker does run time linking by default, so we don't
21754         # have to do anything special.
21755         aix_use_runtimelinking=no
21756         exp_sym_flag='-Bexport'
21757         no_entry_flag=""
21758       else
21759         # If we're using GNU nm, then we don't want the "-C" option.
21760         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21761         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21762           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'
21763         else
21764           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'
21765         fi
21766         aix_use_runtimelinking=no
21767
21768         # Test if we are trying to use run time linking or normal
21769         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21770         # need to do runtime linking.
21771         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21772           for ld_flag in $LDFLAGS; do
21773           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21774             aix_use_runtimelinking=yes
21775             break
21776           fi
21777           done
21778           ;;
21779         esac
21780
21781         exp_sym_flag='-bexport'
21782         no_entry_flag='-bnoentry'
21783       fi
21784
21785       # When large executables or shared objects are built, AIX ld can
21786       # have problems creating the table of contents.  If linking a library
21787       # or program results in "error TOC overflow" add -mminimal-toc to
21788       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21789       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21790
21791       archive_cmds_F77=''
21792       hardcode_direct_F77=yes
21793       hardcode_libdir_separator_F77=':'
21794       link_all_deplibs_F77=yes
21795
21796       if test "$GCC" = yes; then
21797         case $host_os in aix4.[012]|aix4.[012].*)
21798         # We only want to do this on AIX 4.2 and lower, the check
21799         # below for broken collect2 doesn't work under 4.3+
21800           collect2name=`${CC} -print-prog-name=collect2`
21801           if test -f "$collect2name" && \
21802            strings "$collect2name" | grep resolve_lib_name >/dev/null
21803           then
21804           # We have reworked collect2
21805           hardcode_direct_F77=yes
21806           else
21807           # We have old collect2
21808           hardcode_direct_F77=unsupported
21809           # It fails to find uninstalled libraries when the uninstalled
21810           # path is not listed in the libpath.  Setting hardcode_minus_L
21811           # to unsupported forces relinking
21812           hardcode_minus_L_F77=yes
21813           hardcode_libdir_flag_spec_F77='-L$libdir'
21814           hardcode_libdir_separator_F77=
21815           fi
21816           ;;
21817         esac
21818         shared_flag='-shared'
21819         if test "$aix_use_runtimelinking" = yes; then
21820           shared_flag="$shared_flag "'${wl}-G'
21821         fi
21822       else
21823         # not using gcc
21824         if test "$host_cpu" = ia64; then
21825         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21826         # chokes on -Wl,-G. The following line is correct:
21827           shared_flag='-G'
21828         else
21829           if test "$aix_use_runtimelinking" = yes; then
21830             shared_flag='${wl}-G'
21831           else
21832             shared_flag='${wl}-bM:SRE'
21833           fi
21834         fi
21835       fi
21836
21837       # It seems that -bexpall does not export symbols beginning with
21838       # underscore (_), so it is better to generate a list of symbols to export.
21839       always_export_symbols_F77=yes
21840       if test "$aix_use_runtimelinking" = yes; then
21841         # Warning - without using the other runtime loading flags (-brtl),
21842         # -berok will link without error, but may produce a broken library.
21843         allow_undefined_flag_F77='-berok'
21844        # Determine the default libpath from the value encoded in an empty executable.
21845        cat >conftest.$ac_ext <<_ACEOF
21846       program main
21847
21848       end
21849 _ACEOF
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (ac_try="$ac_link"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_link") 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } &&
21864          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21865   { (case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870   (eval "$ac_try") 2>&5
21871   ac_status=$?
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); }; } &&
21874          { ac_try='test -s conftest$ac_exeext'
21875   { (case "(($ac_try" in
21876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877   *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880   (eval "$ac_try") 2>&5
21881   ac_status=$?
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); }; }; then
21884
21885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21886 }'`
21887 # Check for a 64-bit object if we didn't find anything.
21888 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; }
21889 }'`; fi
21890 else
21891   echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894
21895 fi
21896
21897 rm -f core conftest.err conftest.$ac_objext \
21898       conftest$ac_exeext conftest.$ac_ext
21899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21900
21901        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21902         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"
21903        else
21904         if test "$host_cpu" = ia64; then
21905           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21906           allow_undefined_flag_F77="-z nodefs"
21907           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"
21908         else
21909          # Determine the default libpath from the value encoded in an empty executable.
21910          cat >conftest.$ac_ext <<_ACEOF
21911       program main
21912
21913       end
21914 _ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (ac_try="$ac_link"
21917 case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_link") 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } &&
21929          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21930   { (case "(($ac_try" in
21931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932   *) ac_try_echo=$ac_try;;
21933 esac
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935   (eval "$ac_try") 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; } &&
21939          { ac_try='test -s conftest$ac_exeext'
21940   { (case "(($ac_try" in
21941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942   *) ac_try_echo=$ac_try;;
21943 esac
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945   (eval "$ac_try") 2>&5
21946   ac_status=$?
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); }; }; then
21949
21950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21951 }'`
21952 # Check for a 64-bit object if we didn't find anything.
21953 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; }
21954 }'`; fi
21955 else
21956   echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959
21960 fi
21961
21962 rm -f core conftest.err conftest.$ac_objext \
21963       conftest$ac_exeext conftest.$ac_ext
21964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21965
21966          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21967           # Warning - without using the other run time loading flags,
21968           # -berok will link without error, but may produce a broken library.
21969           no_undefined_flag_F77=' ${wl}-bernotok'
21970           allow_undefined_flag_F77=' ${wl}-berok'
21971           # Exported symbols can be pulled into shared objects from archives
21972           whole_archive_flag_spec_F77='$convenience'
21973           archive_cmds_need_lc_F77=yes
21974           # This is similar to how AIX traditionally builds its shared libraries.
21975           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'
21976         fi
21977       fi
21978       ;;
21979
21980     amigaos*)
21981       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)'
21982       hardcode_libdir_flag_spec_F77='-L$libdir'
21983       hardcode_minus_L_F77=yes
21984       # see comment about different semantics on the GNU ld section
21985       ld_shlibs_F77=no
21986       ;;
21987
21988     bsdi[45]*)
21989       export_dynamic_flag_spec_F77=-rdynamic
21990       ;;
21991
21992     cygwin* | mingw* | pw32*)
21993       # When not using gcc, we currently assume that we are using
21994       # Microsoft Visual C++.
21995       # hardcode_libdir_flag_spec is actually meaningless, as there is
21996       # no search path for DLLs.
21997       hardcode_libdir_flag_spec_F77=' '
21998       allow_undefined_flag_F77=unsupported
21999       # Tell ltmain to make .lib files, not .a files.
22000       libext=lib
22001       # Tell ltmain to make .dll files, not .so files.
22002       shrext_cmds=".dll"
22003       # FIXME: Setting linknames here is a bad hack.
22004       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22005       # The linker will automatically build a .lib file if we build a DLL.
22006       old_archive_From_new_cmds_F77='true'
22007       # FIXME: Should let the user specify the lib program.
22008       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22009       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22010       enable_shared_with_static_runtimes_F77=yes
22011       ;;
22012
22013     darwin* | rhapsody*)
22014       case $host_os in
22015         rhapsody* | darwin1.[012])
22016          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22017          ;;
22018        *) # Darwin 1.3 on
22019          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22020            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22021          else
22022            case ${MACOSX_DEPLOYMENT_TARGET} in
22023              10.[012])
22024                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22025                ;;
22026              10.*)
22027                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22028                ;;
22029            esac
22030          fi
22031          ;;
22032       esac
22033       archive_cmds_need_lc_F77=no
22034       hardcode_direct_F77=no
22035       hardcode_automatic_F77=yes
22036       hardcode_shlibpath_var_F77=unsupported
22037       whole_archive_flag_spec_F77=''
22038       link_all_deplibs_F77=yes
22039     if test "$GCC" = yes ; then
22040         output_verbose_link_cmd='echo'
22041         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22042       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22043       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22044       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}'
22045       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}'
22046     else
22047       case $cc_basename in
22048         xlc*)
22049          output_verbose_link_cmd='echo'
22050          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22051          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22052           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22053          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}'
22054           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}'
22055           ;;
22056        *)
22057          ld_shlibs_F77=no
22058           ;;
22059       esac
22060     fi
22061       ;;
22062
22063     dgux*)
22064       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22065       hardcode_libdir_flag_spec_F77='-L$libdir'
22066       hardcode_shlibpath_var_F77=no
22067       ;;
22068
22069     freebsd1*)
22070       ld_shlibs_F77=no
22071       ;;
22072
22073     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22074     # support.  Future versions do this automatically, but an explicit c++rt0.o
22075     # does not break anything, and helps significantly (at the cost of a little
22076     # extra space).
22077     freebsd2.2*)
22078       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22079       hardcode_libdir_flag_spec_F77='-R$libdir'
22080       hardcode_direct_F77=yes
22081       hardcode_shlibpath_var_F77=no
22082       ;;
22083
22084     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22085     freebsd2*)
22086       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22087       hardcode_direct_F77=yes
22088       hardcode_minus_L_F77=yes
22089       hardcode_shlibpath_var_F77=no
22090       ;;
22091
22092     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22093     freebsd* | kfreebsd*-gnu | dragonfly*)
22094       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22095       hardcode_libdir_flag_spec_F77='-R$libdir'
22096       hardcode_direct_F77=yes
22097       hardcode_shlibpath_var_F77=no
22098       ;;
22099
22100     hpux9*)
22101       if test "$GCC" = yes; then
22102         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'
22103       else
22104         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'
22105       fi
22106       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22107       hardcode_libdir_separator_F77=:
22108       hardcode_direct_F77=yes
22109
22110       # hardcode_minus_L: Not really in the search PATH,
22111       # but as the default location of the library.
22112       hardcode_minus_L_F77=yes
22113       export_dynamic_flag_spec_F77='${wl}-E'
22114       ;;
22115
22116     hpux10*)
22117       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22118         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22119       else
22120         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22121       fi
22122       if test "$with_gnu_ld" = no; then
22123         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22124         hardcode_libdir_separator_F77=:
22125
22126         hardcode_direct_F77=yes
22127         export_dynamic_flag_spec_F77='${wl}-E'
22128
22129         # hardcode_minus_L: Not really in the search PATH,
22130         # but as the default location of the library.
22131         hardcode_minus_L_F77=yes
22132       fi
22133       ;;
22134
22135     hpux11*)
22136       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22137         case $host_cpu in
22138         hppa*64*)
22139           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22140           ;;
22141         ia64*)
22142           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22143           ;;
22144         *)
22145           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22146           ;;
22147         esac
22148       else
22149         case $host_cpu in
22150         hppa*64*)
22151           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22152           ;;
22153         ia64*)
22154           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22155           ;;
22156         *)
22157           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22158           ;;
22159         esac
22160       fi
22161       if test "$with_gnu_ld" = no; then
22162         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22163         hardcode_libdir_separator_F77=:
22164
22165         case $host_cpu in
22166         hppa*64*|ia64*)
22167           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22168           hardcode_direct_F77=no
22169           hardcode_shlibpath_var_F77=no
22170           ;;
22171         *)
22172           hardcode_direct_F77=yes
22173           export_dynamic_flag_spec_F77='${wl}-E'
22174
22175           # hardcode_minus_L: Not really in the search PATH,
22176           # but as the default location of the library.
22177           hardcode_minus_L_F77=yes
22178           ;;
22179         esac
22180       fi
22181       ;;
22182
22183     irix5* | irix6* | nonstopux*)
22184       if test "$GCC" = yes; then
22185         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'
22186       else
22187         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'
22188         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22189       fi
22190       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22191       hardcode_libdir_separator_F77=:
22192       link_all_deplibs_F77=yes
22193       ;;
22194
22195     netbsd*)
22196       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22197         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22198       else
22199         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22200       fi
22201       hardcode_libdir_flag_spec_F77='-R$libdir'
22202       hardcode_direct_F77=yes
22203       hardcode_shlibpath_var_F77=no
22204       ;;
22205
22206     newsos6)
22207       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22208       hardcode_direct_F77=yes
22209       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22210       hardcode_libdir_separator_F77=:
22211       hardcode_shlibpath_var_F77=no
22212       ;;
22213
22214     openbsd*)
22215       hardcode_direct_F77=yes
22216       hardcode_shlibpath_var_F77=no
22217       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22218         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22219         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22220         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22221         export_dynamic_flag_spec_F77='${wl}-E'
22222       else
22223        case $host_os in
22224          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22225            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226            hardcode_libdir_flag_spec_F77='-R$libdir'
22227            ;;
22228          *)
22229            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22230            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22231            ;;
22232        esac
22233       fi
22234       ;;
22235
22236     os2*)
22237       hardcode_libdir_flag_spec_F77='-L$libdir'
22238       hardcode_minus_L_F77=yes
22239       allow_undefined_flag_F77=unsupported
22240       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'
22241       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22242       ;;
22243
22244     osf3*)
22245       if test "$GCC" = yes; then
22246         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22247         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'
22248       else
22249         allow_undefined_flag_F77=' -expect_unresolved \*'
22250         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'
22251       fi
22252       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22253       hardcode_libdir_separator_F77=:
22254       ;;
22255
22256     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22257       if test "$GCC" = yes; then
22258         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22259         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'
22260         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22261       else
22262         allow_undefined_flag_F77=' -expect_unresolved \*'
22263         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'
22264         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~
22265         $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'
22266
22267         # Both c and cxx compiler support -rpath directly
22268         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22269       fi
22270       hardcode_libdir_separator_F77=:
22271       ;;
22272
22273     solaris*)
22274       no_undefined_flag_F77=' -z text'
22275       if test "$GCC" = yes; then
22276         wlarc='${wl}'
22277         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22279           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22280       else
22281         wlarc=''
22282         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22284         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22285       fi
22286       hardcode_libdir_flag_spec_F77='-R$libdir'
22287       hardcode_shlibpath_var_F77=no
22288       case $host_os in
22289       solaris2.[0-5] | solaris2.[0-5].*) ;;
22290       *)
22291         # The compiler driver will combine linker options so we
22292         # cannot just pass the convience library names through
22293         # without $wl, iff we do not link with $LD.
22294         # Luckily, gcc supports the same syntax we need for Sun Studio.
22295         # Supported since Solaris 2.6 (maybe 2.5.1?)
22296         case $wlarc in
22297         '')
22298           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22299         *)
22300           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' ;;
22301         esac ;;
22302       esac
22303       link_all_deplibs_F77=yes
22304       ;;
22305
22306     sunos4*)
22307       if test "x$host_vendor" = xsequent; then
22308         # Use $CC to link under sequent, because it throws in some extra .o
22309         # files that make .init and .fini sections work.
22310         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22311       else
22312         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22313       fi
22314       hardcode_libdir_flag_spec_F77='-L$libdir'
22315       hardcode_direct_F77=yes
22316       hardcode_minus_L_F77=yes
22317       hardcode_shlibpath_var_F77=no
22318       ;;
22319
22320     sysv4)
22321       case $host_vendor in
22322         sni)
22323           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324           hardcode_direct_F77=yes # is this really true???
22325         ;;
22326         siemens)
22327           ## LD is ld it makes a PLAMLIB
22328           ## CC just makes a GrossModule.
22329           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22330           reload_cmds_F77='$CC -r -o $output$reload_objs'
22331           hardcode_direct_F77=no
22332         ;;
22333         motorola)
22334           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22335           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22336         ;;
22337       esac
22338       runpath_var='LD_RUN_PATH'
22339       hardcode_shlibpath_var_F77=no
22340       ;;
22341
22342     sysv4.3*)
22343       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344       hardcode_shlibpath_var_F77=no
22345       export_dynamic_flag_spec_F77='-Bexport'
22346       ;;
22347
22348     sysv4*MP*)
22349       if test -d /usr/nec; then
22350         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22351         hardcode_shlibpath_var_F77=no
22352         runpath_var=LD_RUN_PATH
22353         hardcode_runpath_var=yes
22354         ld_shlibs_F77=yes
22355       fi
22356       ;;
22357
22358     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22359       no_undefined_flag_F77='${wl}-z,text'
22360       archive_cmds_need_lc_F77=no
22361       hardcode_shlibpath_var_F77=no
22362       runpath_var='LD_RUN_PATH'
22363
22364       if test "$GCC" = yes; then
22365         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22366         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22367       else
22368         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22369         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22370       fi
22371       ;;
22372
22373     sysv5* | sco3.2v5* | sco5v6*)
22374       # Note: We can NOT use -z defs as we might desire, because we do not
22375       # link with -lc, and that would cause any symbols used from libc to
22376       # always be unresolved, which means just about no library would
22377       # ever link correctly.  If we're not using GNU ld we use -z text
22378       # though, which does catch some bad symbols but isn't as heavy-handed
22379       # as -z defs.
22380       no_undefined_flag_F77='${wl}-z,text'
22381       allow_undefined_flag_F77='${wl}-z,nodefs'
22382       archive_cmds_need_lc_F77=no
22383       hardcode_shlibpath_var_F77=no
22384       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22385       hardcode_libdir_separator_F77=':'
22386       link_all_deplibs_F77=yes
22387       export_dynamic_flag_spec_F77='${wl}-Bexport'
22388       runpath_var='LD_RUN_PATH'
22389
22390       if test "$GCC" = yes; then
22391         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22392         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22393       else
22394         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22395         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22396       fi
22397       ;;
22398
22399     uts4*)
22400       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22401       hardcode_libdir_flag_spec_F77='-L$libdir'
22402       hardcode_shlibpath_var_F77=no
22403       ;;
22404
22405     *)
22406       ld_shlibs_F77=no
22407       ;;
22408     esac
22409   fi
22410
22411 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22412 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22413 test "$ld_shlibs_F77" = no && can_build_shared=no
22414
22415 #
22416 # Do we need to explicitly link libc?
22417 #
22418 case "x$archive_cmds_need_lc_F77" in
22419 x|xyes)
22420   # Assume -lc should be added
22421   archive_cmds_need_lc_F77=yes
22422
22423   if test "$enable_shared" = yes && test "$GCC" = yes; then
22424     case $archive_cmds_F77 in
22425     *'~'*)
22426       # FIXME: we may have to deal with multi-command sequences.
22427       ;;
22428     '$CC '*)
22429       # Test whether the compiler implicitly links with -lc since on some
22430       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22431       # to ld, don't add -lc before -lgcc.
22432       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22434       $rm conftest*
22435       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22436
22437       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22438   (eval $ac_compile) 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } 2>conftest.err; then
22442         soname=conftest
22443         lib=conftest
22444         libobjs=conftest.$ac_objext
22445         deplibs=
22446         wl=$lt_prog_compiler_wl_F77
22447         pic_flag=$lt_prog_compiler_pic_F77
22448         compiler_flags=-v
22449         linker_flags=-v
22450         verstring=
22451         output_objdir=.
22452         libname=conftest
22453         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22454         allow_undefined_flag_F77=
22455         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22456   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }
22460         then
22461           archive_cmds_need_lc_F77=no
22462         else
22463           archive_cmds_need_lc_F77=yes
22464         fi
22465         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22466       else
22467         cat conftest.err 1>&5
22468       fi
22469       $rm conftest*
22470       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22471 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22472       ;;
22473     esac
22474   fi
22475   ;;
22476 esac
22477
22478 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22479 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22480 library_names_spec=
22481 libname_spec='lib$name'
22482 soname_spec=
22483 shrext_cmds=".so"
22484 postinstall_cmds=
22485 postuninstall_cmds=
22486 finish_cmds=
22487 finish_eval=
22488 shlibpath_var=
22489 shlibpath_overrides_runpath=unknown
22490 version_type=none
22491 dynamic_linker="$host_os ld.so"
22492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22493 if test "$GCC" = yes; then
22494   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22495   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22496     # if the path contains ";" then we assume it to be the separator
22497     # otherwise default to the standard path separator (i.e. ":") - it is
22498     # assumed that no part of a normal pathname contains ";" but that should
22499     # okay in the real world where ";" in dirpaths is itself problematic.
22500     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22501   else
22502     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22503   fi
22504 else
22505   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22506 fi
22507 need_lib_prefix=unknown
22508 hardcode_into_libs=no
22509
22510 # when you set need_version to no, make sure it does not cause -set_version
22511 # flags to be left without arguments
22512 need_version=unknown
22513
22514 case $host_os in
22515 aix3*)
22516   version_type=linux
22517   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22518   shlibpath_var=LIBPATH
22519
22520   # AIX 3 has no versioning support, so we append a major version to the name.
22521   soname_spec='${libname}${release}${shared_ext}$major'
22522   ;;
22523
22524 aix4* | aix5*)
22525   version_type=linux
22526   need_lib_prefix=no
22527   need_version=no
22528   hardcode_into_libs=yes
22529   if test "$host_cpu" = ia64; then
22530     # AIX 5 supports IA64
22531     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22532     shlibpath_var=LD_LIBRARY_PATH
22533   else
22534     # With GCC up to 2.95.x, collect2 would create an import file
22535     # for dependence libraries.  The import file would start with
22536     # the line `#! .'.  This would cause the generated library to
22537     # depend on `.', always an invalid library.  This was fixed in
22538     # development snapshots of GCC prior to 3.0.
22539     case $host_os in
22540       aix4 | aix4.[01] | aix4.[01].*)
22541       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22542            echo ' yes '
22543            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22544         :
22545       else
22546         can_build_shared=no
22547       fi
22548       ;;
22549     esac
22550     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22551     # soname into executable. Probably we can add versioning support to
22552     # collect2, so additional links can be useful in future.
22553     if test "$aix_use_runtimelinking" = yes; then
22554       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22555       # instead of lib<name>.a to let people know that these are not
22556       # typical AIX shared libraries.
22557       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22558     else
22559       # We preserve .a as extension for shared libraries through AIX4.2
22560       # and later when we are not doing run time linking.
22561       library_names_spec='${libname}${release}.a $libname.a'
22562       soname_spec='${libname}${release}${shared_ext}$major'
22563     fi
22564     shlibpath_var=LIBPATH
22565   fi
22566   ;;
22567
22568 amigaos*)
22569   library_names_spec='$libname.ixlibrary $libname.a'
22570   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22571   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'
22572   ;;
22573
22574 beos*)
22575   library_names_spec='${libname}${shared_ext}'
22576   dynamic_linker="$host_os ld.so"
22577   shlibpath_var=LIBRARY_PATH
22578   ;;
22579
22580 bsdi[45]*)
22581   version_type=linux
22582   need_version=no
22583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22584   soname_spec='${libname}${release}${shared_ext}$major'
22585   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22586   shlibpath_var=LD_LIBRARY_PATH
22587   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22588   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22589   # the default ld.so.conf also contains /usr/contrib/lib and
22590   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22591   # libtool to hard-code these into programs
22592   ;;
22593
22594 cygwin* | mingw* | pw32*)
22595   version_type=windows
22596   shrext_cmds=".dll"
22597   need_version=no
22598   need_lib_prefix=no
22599
22600   case $GCC,$host_os in
22601   yes,cygwin* | yes,mingw* | yes,pw32*)
22602     library_names_spec='$libname.dll.a'
22603     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22604     postinstall_cmds='base_file=`basename \${file}`~
22605       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22606       dldir=$destdir/`dirname \$dlpath`~
22607       test -d \$dldir || mkdir -p \$dldir~
22608       $install_prog $dir/$dlname \$dldir/$dlname~
22609       chmod a+x \$dldir/$dlname'
22610     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22611       dlpath=$dir/\$dldll~
22612        $rm \$dlpath'
22613     shlibpath_overrides_runpath=yes
22614
22615     case $host_os in
22616     cygwin*)
22617       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22618       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22619       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22620       ;;
22621     mingw*)
22622       # MinGW DLLs use traditional 'lib' prefix
22623       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22624       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22625       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22626         # It is most probably a Windows format PATH printed by
22627         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22628         # path with ; separators, and with drive letters. We can handle the
22629         # drive letters (cygwin fileutils understands them), so leave them,
22630         # especially as we might pass files found there to a mingw objdump,
22631         # which wouldn't understand a cygwinified path. Ahh.
22632         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22633       else
22634         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22635       fi
22636       ;;
22637     pw32*)
22638       # pw32 DLLs use 'pw' prefix rather than 'lib'
22639       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22640       ;;
22641     esac
22642     ;;
22643
22644   *)
22645     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22646     ;;
22647   esac
22648   dynamic_linker='Win32 ld.exe'
22649   # FIXME: first we should search . and the directory the executable is in
22650   shlibpath_var=PATH
22651   ;;
22652
22653 darwin* | rhapsody*)
22654   dynamic_linker="$host_os dyld"
22655   version_type=darwin
22656   need_lib_prefix=no
22657   need_version=no
22658   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22659   soname_spec='${libname}${release}${major}$shared_ext'
22660   shlibpath_overrides_runpath=yes
22661   shlibpath_var=DYLD_LIBRARY_PATH
22662   shrext_cmds='.dylib'
22663   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22664   if test "$GCC" = yes; then
22665     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"`
22666   else
22667     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22668   fi
22669   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22670   ;;
22671
22672 dgux*)
22673   version_type=linux
22674   need_lib_prefix=no
22675   need_version=no
22676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22677   soname_spec='${libname}${release}${shared_ext}$major'
22678   shlibpath_var=LD_LIBRARY_PATH
22679   ;;
22680
22681 freebsd1*)
22682   dynamic_linker=no
22683   ;;
22684
22685 kfreebsd*-gnu)
22686   version_type=linux
22687   need_lib_prefix=no
22688   need_version=no
22689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22690   soname_spec='${libname}${release}${shared_ext}$major'
22691   shlibpath_var=LD_LIBRARY_PATH
22692   shlibpath_overrides_runpath=no
22693   hardcode_into_libs=yes
22694   dynamic_linker='GNU ld.so'
22695   ;;
22696
22697 freebsd* | dragonfly*)
22698   # DragonFly does not have aout.  When/if they implement a new
22699   # versioning mechanism, adjust this.
22700   if test -x /usr/bin/objformat; then
22701     objformat=`/usr/bin/objformat`
22702   else
22703     case $host_os in
22704     freebsd[123]*) objformat=aout ;;
22705     *) objformat=elf ;;
22706     esac
22707   fi
22708   version_type=freebsd-$objformat
22709   case $version_type in
22710     freebsd-elf*)
22711       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22712       need_version=no
22713       need_lib_prefix=no
22714       ;;
22715     freebsd-*)
22716       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22717       need_version=yes
22718       ;;
22719   esac
22720   shlibpath_var=LD_LIBRARY_PATH
22721   case $host_os in
22722   freebsd2*)
22723     shlibpath_overrides_runpath=yes
22724     ;;
22725   freebsd3.[01]* | freebsdelf3.[01]*)
22726     shlibpath_overrides_runpath=yes
22727     hardcode_into_libs=yes
22728     ;;
22729   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22730   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22731     shlibpath_overrides_runpath=no
22732     hardcode_into_libs=yes
22733     ;;
22734   freebsd*) # from 4.6 on
22735     shlibpath_overrides_runpath=yes
22736     hardcode_into_libs=yes
22737     ;;
22738   esac
22739   ;;
22740
22741 gnu*)
22742   version_type=linux
22743   need_lib_prefix=no
22744   need_version=no
22745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22746   soname_spec='${libname}${release}${shared_ext}$major'
22747   shlibpath_var=LD_LIBRARY_PATH
22748   hardcode_into_libs=yes
22749   ;;
22750
22751 hpux9* | hpux10* | hpux11*)
22752   # Give a soname corresponding to the major version so that dld.sl refuses to
22753   # link against other versions.
22754   version_type=sunos
22755   need_lib_prefix=no
22756   need_version=no
22757   case $host_cpu in
22758   ia64*)
22759     shrext_cmds='.so'
22760     hardcode_into_libs=yes
22761     dynamic_linker="$host_os dld.so"
22762     shlibpath_var=LD_LIBRARY_PATH
22763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765     soname_spec='${libname}${release}${shared_ext}$major'
22766     if test "X$HPUX_IA64_MODE" = X32; then
22767       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22768     else
22769       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22770     fi
22771     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22772     ;;
22773    hppa*64*)
22774      shrext_cmds='.sl'
22775      hardcode_into_libs=yes
22776      dynamic_linker="$host_os dld.sl"
22777      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22778      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22779      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780      soname_spec='${libname}${release}${shared_ext}$major'
22781      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22782      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22783      ;;
22784    *)
22785     shrext_cmds='.sl'
22786     dynamic_linker="$host_os dld.sl"
22787     shlibpath_var=SHLIB_PATH
22788     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790     soname_spec='${libname}${release}${shared_ext}$major'
22791     ;;
22792   esac
22793   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22794   postinstall_cmds='chmod 555 $lib'
22795   ;;
22796
22797 interix3*)
22798   version_type=linux
22799   need_lib_prefix=no
22800   need_version=no
22801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802   soname_spec='${libname}${release}${shared_ext}$major'
22803   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22804   shlibpath_var=LD_LIBRARY_PATH
22805   shlibpath_overrides_runpath=no
22806   hardcode_into_libs=yes
22807   ;;
22808
22809 irix5* | irix6* | nonstopux*)
22810   case $host_os in
22811     nonstopux*) version_type=nonstopux ;;
22812     *)
22813         if test "$lt_cv_prog_gnu_ld" = yes; then
22814                 version_type=linux
22815         else
22816                 version_type=irix
22817         fi ;;
22818   esac
22819   need_lib_prefix=no
22820   need_version=no
22821   soname_spec='${libname}${release}${shared_ext}$major'
22822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22823   case $host_os in
22824   irix5* | nonstopux*)
22825     libsuff= shlibsuff=
22826     ;;
22827   *)
22828     case $LD in # libtool.m4 will add one of these switches to LD
22829     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22830       libsuff= shlibsuff= libmagic=32-bit;;
22831     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22832       libsuff=32 shlibsuff=N32 libmagic=N32;;
22833     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22834       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22835     *) libsuff= shlibsuff= libmagic=never-match;;
22836     esac
22837     ;;
22838   esac
22839   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22840   shlibpath_overrides_runpath=no
22841   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22842   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22843   hardcode_into_libs=yes
22844   ;;
22845
22846 # No shared lib support for Linux oldld, aout, or coff.
22847 linux*oldld* | linux*aout* | linux*coff*)
22848   dynamic_linker=no
22849   ;;
22850
22851 # This must be Linux ELF.
22852 linux*)
22853   version_type=linux
22854   need_lib_prefix=no
22855   need_version=no
22856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22857   soname_spec='${libname}${release}${shared_ext}$major'
22858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22859   shlibpath_var=LD_LIBRARY_PATH
22860   shlibpath_overrides_runpath=no
22861   # This implies no fast_install, which is unacceptable.
22862   # Some rework will be needed to allow for fast_install
22863   # before this can be enabled.
22864   hardcode_into_libs=yes
22865
22866   # Append ld.so.conf contents to the search path
22867   if test -f /etc/ld.so.conf; then
22868     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' ' '`
22869     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22870   fi
22871
22872   # We used to test for /lib/ld.so.1 and disable shared libraries on
22873   # powerpc, because MkLinux only supported shared libraries with the
22874   # GNU dynamic linker.  Since this was broken with cross compilers,
22875   # most powerpc-linux boxes support dynamic linking these days and
22876   # people can always --disable-shared, the test was removed, and we
22877   # assume the GNU/Linux dynamic linker is in use.
22878   dynamic_linker='GNU/Linux ld.so'
22879   ;;
22880
22881 knetbsd*-gnu)
22882   version_type=linux
22883   need_lib_prefix=no
22884   need_version=no
22885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22886   soname_spec='${libname}${release}${shared_ext}$major'
22887   shlibpath_var=LD_LIBRARY_PATH
22888   shlibpath_overrides_runpath=no
22889   hardcode_into_libs=yes
22890   dynamic_linker='GNU ld.so'
22891   ;;
22892
22893 netbsd*)
22894   version_type=sunos
22895   need_lib_prefix=no
22896   need_version=no
22897   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22899     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22900     dynamic_linker='NetBSD (a.out) ld.so'
22901   else
22902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22903     soname_spec='${libname}${release}${shared_ext}$major'
22904     dynamic_linker='NetBSD ld.elf_so'
22905   fi
22906   shlibpath_var=LD_LIBRARY_PATH
22907   shlibpath_overrides_runpath=yes
22908   hardcode_into_libs=yes
22909   ;;
22910
22911 newsos6)
22912   version_type=linux
22913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914   shlibpath_var=LD_LIBRARY_PATH
22915   shlibpath_overrides_runpath=yes
22916   ;;
22917
22918 nto-qnx*)
22919   version_type=linux
22920   need_lib_prefix=no
22921   need_version=no
22922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22923   soname_spec='${libname}${release}${shared_ext}$major'
22924   shlibpath_var=LD_LIBRARY_PATH
22925   shlibpath_overrides_runpath=yes
22926   ;;
22927
22928 openbsd*)
22929   version_type=sunos
22930   sys_lib_dlsearch_path_spec="/usr/lib"
22931   need_lib_prefix=no
22932   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22933   case $host_os in
22934     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22935     *)                         need_version=no  ;;
22936   esac
22937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22939   shlibpath_var=LD_LIBRARY_PATH
22940   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22941     case $host_os in
22942       openbsd2.[89] | openbsd2.[89].*)
22943         shlibpath_overrides_runpath=no
22944         ;;
22945       *)
22946         shlibpath_overrides_runpath=yes
22947         ;;
22948       esac
22949   else
22950     shlibpath_overrides_runpath=yes
22951   fi
22952   ;;
22953
22954 os2*)
22955   libname_spec='$name'
22956   shrext_cmds=".dll"
22957   need_lib_prefix=no
22958   library_names_spec='$libname${shared_ext} $libname.a'
22959   dynamic_linker='OS/2 ld.exe'
22960   shlibpath_var=LIBPATH
22961   ;;
22962
22963 osf3* | osf4* | osf5*)
22964   version_type=osf
22965   need_lib_prefix=no
22966   need_version=no
22967   soname_spec='${libname}${release}${shared_ext}$major'
22968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969   shlibpath_var=LD_LIBRARY_PATH
22970   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22971   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22972   ;;
22973
22974 solaris*)
22975   version_type=linux
22976   need_lib_prefix=no
22977   need_version=no
22978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979   soname_spec='${libname}${release}${shared_ext}$major'
22980   shlibpath_var=LD_LIBRARY_PATH
22981   shlibpath_overrides_runpath=yes
22982   hardcode_into_libs=yes
22983   # ldd complains unless libraries are executable
22984   postinstall_cmds='chmod +x $lib'
22985   ;;
22986
22987 sunos4*)
22988   version_type=sunos
22989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22990   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22991   shlibpath_var=LD_LIBRARY_PATH
22992   shlibpath_overrides_runpath=yes
22993   if test "$with_gnu_ld" = yes; then
22994     need_lib_prefix=no
22995   fi
22996   need_version=yes
22997   ;;
22998
22999 sysv4 | sysv4.3*)
23000   version_type=linux
23001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002   soname_spec='${libname}${release}${shared_ext}$major'
23003   shlibpath_var=LD_LIBRARY_PATH
23004   case $host_vendor in
23005     sni)
23006       shlibpath_overrides_runpath=no
23007       need_lib_prefix=no
23008       export_dynamic_flag_spec='${wl}-Blargedynsym'
23009       runpath_var=LD_RUN_PATH
23010       ;;
23011     siemens)
23012       need_lib_prefix=no
23013       ;;
23014     motorola)
23015       need_lib_prefix=no
23016       need_version=no
23017       shlibpath_overrides_runpath=no
23018       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23019       ;;
23020   esac
23021   ;;
23022
23023 sysv4*MP*)
23024   if test -d /usr/nec ;then
23025     version_type=linux
23026     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23027     soname_spec='$libname${shared_ext}.$major'
23028     shlibpath_var=LD_LIBRARY_PATH
23029   fi
23030   ;;
23031
23032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23033   version_type=freebsd-elf
23034   need_lib_prefix=no
23035   need_version=no
23036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23037   soname_spec='${libname}${release}${shared_ext}$major'
23038   shlibpath_var=LD_LIBRARY_PATH
23039   hardcode_into_libs=yes
23040   if test "$with_gnu_ld" = yes; then
23041     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23042     shlibpath_overrides_runpath=no
23043   else
23044     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23045     shlibpath_overrides_runpath=yes
23046     case $host_os in
23047       sco3.2v5*)
23048         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23049         ;;
23050     esac
23051   fi
23052   sys_lib_dlsearch_path_spec='/usr/lib'
23053   ;;
23054
23055 uts4*)
23056   version_type=linux
23057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23058   soname_spec='${libname}${release}${shared_ext}$major'
23059   shlibpath_var=LD_LIBRARY_PATH
23060   ;;
23061
23062 *)
23063   dynamic_linker=no
23064   ;;
23065 esac
23066 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23067 echo "${ECHO_T}$dynamic_linker" >&6; }
23068 test "$dynamic_linker" = no && can_build_shared=no
23069
23070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23071 if test "$GCC" = yes; then
23072   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23073 fi
23074
23075 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23076 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23077 hardcode_action_F77=
23078 if test -n "$hardcode_libdir_flag_spec_F77" || \
23079    test -n "$runpath_var_F77" || \
23080    test "X$hardcode_automatic_F77" = "Xyes" ; then
23081
23082   # We can hardcode non-existant directories.
23083   if test "$hardcode_direct_F77" != no &&
23084      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23085      # have to relink, otherwise we might link with an installed library
23086      # when we should be linking with a yet-to-be-installed one
23087      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23088      test "$hardcode_minus_L_F77" != no; then
23089     # Linking always hardcodes the temporary library directory.
23090     hardcode_action_F77=relink
23091   else
23092     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23093     hardcode_action_F77=immediate
23094   fi
23095 else
23096   # We cannot hardcode anything, or else we can only hardcode existing
23097   # directories.
23098   hardcode_action_F77=unsupported
23099 fi
23100 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23101 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23102
23103 if test "$hardcode_action_F77" = relink; then
23104   # Fast installation is not supported
23105   enable_fast_install=no
23106 elif test "$shlibpath_overrides_runpath" = yes ||
23107      test "$enable_shared" = no; then
23108   # Fast installation is not necessary
23109   enable_fast_install=needless
23110 fi
23111
23112
23113 # The else clause should only fire when bootstrapping the
23114 # libtool distribution, otherwise you forgot to ship ltmain.sh
23115 # with your package, and you will get complaints that there are
23116 # no rules to generate ltmain.sh.
23117 if test -f "$ltmain"; then
23118   # See if we are running on zsh, and set the options which allow our commands through
23119   # without removal of \ escapes.
23120   if test -n "${ZSH_VERSION+set}" ; then
23121     setopt NO_GLOB_SUBST
23122   fi
23123   # Now quote all the things that may contain metacharacters while being
23124   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23125   # variables and quote the copies for generation of the libtool script.
23126   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23127     SED SHELL STRIP \
23128     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23129     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23130     deplibs_check_method reload_flag reload_cmds need_locks \
23131     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23132     lt_cv_sys_global_symbol_to_c_name_address \
23133     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23134     old_postinstall_cmds old_postuninstall_cmds \
23135     compiler_F77 \
23136     CC_F77 \
23137     LD_F77 \
23138     lt_prog_compiler_wl_F77 \
23139     lt_prog_compiler_pic_F77 \
23140     lt_prog_compiler_static_F77 \
23141     lt_prog_compiler_no_builtin_flag_F77 \
23142     export_dynamic_flag_spec_F77 \
23143     thread_safe_flag_spec_F77 \
23144     whole_archive_flag_spec_F77 \
23145     enable_shared_with_static_runtimes_F77 \
23146     old_archive_cmds_F77 \
23147     old_archive_from_new_cmds_F77 \
23148     predep_objects_F77 \
23149     postdep_objects_F77 \
23150     predeps_F77 \
23151     postdeps_F77 \
23152     compiler_lib_search_path_F77 \
23153     archive_cmds_F77 \
23154     archive_expsym_cmds_F77 \
23155     postinstall_cmds_F77 \
23156     postuninstall_cmds_F77 \
23157     old_archive_from_expsyms_cmds_F77 \
23158     allow_undefined_flag_F77 \
23159     no_undefined_flag_F77 \
23160     export_symbols_cmds_F77 \
23161     hardcode_libdir_flag_spec_F77 \
23162     hardcode_libdir_flag_spec_ld_F77 \
23163     hardcode_libdir_separator_F77 \
23164     hardcode_automatic_F77 \
23165     module_cmds_F77 \
23166     module_expsym_cmds_F77 \
23167     lt_cv_prog_compiler_c_o_F77 \
23168     exclude_expsyms_F77 \
23169     include_expsyms_F77; do
23170
23171     case $var in
23172     old_archive_cmds_F77 | \
23173     old_archive_from_new_cmds_F77 | \
23174     archive_cmds_F77 | \
23175     archive_expsym_cmds_F77 | \
23176     module_cmds_F77 | \
23177     module_expsym_cmds_F77 | \
23178     old_archive_from_expsyms_cmds_F77 | \
23179     export_symbols_cmds_F77 | \
23180     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23181     postinstall_cmds | postuninstall_cmds | \
23182     old_postinstall_cmds | old_postuninstall_cmds | \
23183     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23184       # Double-quote double-evaled strings.
23185       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23186       ;;
23187     *)
23188       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23189       ;;
23190     esac
23191   done
23192
23193   case $lt_echo in
23194   *'\$0 --fallback-echo"')
23195     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23196     ;;
23197   esac
23198
23199 cfgfile="$ofile"
23200
23201   cat <<__EOF__ >> "$cfgfile"
23202 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23203
23204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23205
23206 # Shell to use when invoking shell scripts.
23207 SHELL=$lt_SHELL
23208
23209 # Whether or not to build shared libraries.
23210 build_libtool_libs=$enable_shared
23211
23212 # Whether or not to build static libraries.
23213 build_old_libs=$enable_static
23214
23215 # Whether or not to add -lc for building shared libraries.
23216 build_libtool_need_lc=$archive_cmds_need_lc_F77
23217
23218 # Whether or not to disallow shared libs when runtime libs are static
23219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23220
23221 # Whether or not to optimize for fast installation.
23222 fast_install=$enable_fast_install
23223
23224 # The host system.
23225 host_alias=$host_alias
23226 host=$host
23227 host_os=$host_os
23228
23229 # The build system.
23230 build_alias=$build_alias
23231 build=$build
23232 build_os=$build_os
23233
23234 # An echo program that does not interpret backslashes.
23235 echo=$lt_echo
23236
23237 # The archiver.
23238 AR=$lt_AR
23239 AR_FLAGS=$lt_AR_FLAGS
23240
23241 # A C compiler.
23242 LTCC=$lt_LTCC
23243
23244 # LTCC compiler flags.
23245 LTCFLAGS=$lt_LTCFLAGS
23246
23247 # A language-specific compiler.
23248 CC=$lt_compiler_F77
23249
23250 # Is the compiler the GNU C compiler?
23251 with_gcc=$GCC_F77
23252
23253 # An ERE matcher.
23254 EGREP=$lt_EGREP
23255
23256 # The linker used to build libraries.
23257 LD=$lt_LD_F77
23258
23259 # Whether we need hard or soft links.
23260 LN_S=$lt_LN_S
23261
23262 # A BSD-compatible nm program.
23263 NM=$lt_NM
23264
23265 # A symbol stripping program
23266 STRIP=$lt_STRIP
23267
23268 # Used to examine libraries when file_magic_cmd begins "file"
23269 MAGIC_CMD=$MAGIC_CMD
23270
23271 # Used on cygwin: DLL creation program.
23272 DLLTOOL="$DLLTOOL"
23273
23274 # Used on cygwin: object dumper.
23275 OBJDUMP="$OBJDUMP"
23276
23277 # Used on cygwin: assembler.
23278 AS="$AS"
23279
23280 # The name of the directory that contains temporary libtool files.
23281 objdir=$objdir
23282
23283 # How to create reloadable object files.
23284 reload_flag=$lt_reload_flag
23285 reload_cmds=$lt_reload_cmds
23286
23287 # How to pass a linker flag through the compiler.
23288 wl=$lt_lt_prog_compiler_wl_F77
23289
23290 # Object file suffix (normally "o").
23291 objext="$ac_objext"
23292
23293 # Old archive suffix (normally "a").
23294 libext="$libext"
23295
23296 # Shared library suffix (normally ".so").
23297 shrext_cmds='$shrext_cmds'
23298
23299 # Executable file suffix (normally "").
23300 exeext="$exeext"
23301
23302 # Additional compiler flags for building library objects.
23303 pic_flag=$lt_lt_prog_compiler_pic_F77
23304 pic_mode=$pic_mode
23305
23306 # What is the maximum length of a command?
23307 max_cmd_len=$lt_cv_sys_max_cmd_len
23308
23309 # Does compiler simultaneously support -c and -o options?
23310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23311
23312 # Must we lock files when doing compilation?
23313 need_locks=$lt_need_locks
23314
23315 # Do we need the lib prefix for modules?
23316 need_lib_prefix=$need_lib_prefix
23317
23318 # Do we need a version for libraries?
23319 need_version=$need_version
23320
23321 # Whether dlopen is supported.
23322 dlopen_support=$enable_dlopen
23323
23324 # Whether dlopen of programs is supported.
23325 dlopen_self=$enable_dlopen_self
23326
23327 # Whether dlopen of statically linked programs is supported.
23328 dlopen_self_static=$enable_dlopen_self_static
23329
23330 # Compiler flag to prevent dynamic linking.
23331 link_static_flag=$lt_lt_prog_compiler_static_F77
23332
23333 # Compiler flag to turn off builtin functions.
23334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23335
23336 # Compiler flag to allow reflexive dlopens.
23337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23338
23339 # Compiler flag to generate shared objects directly from archives.
23340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23341
23342 # Compiler flag to generate thread-safe objects.
23343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23344
23345 # Library versioning type.
23346 version_type=$version_type
23347
23348 # Format of library name prefix.
23349 libname_spec=$lt_libname_spec
23350
23351 # List of archive names.  First name is the real one, the rest are links.
23352 # The last name is the one that the linker finds with -lNAME.
23353 library_names_spec=$lt_library_names_spec
23354
23355 # The coded name of the library, if different from the real name.
23356 soname_spec=$lt_soname_spec
23357
23358 # Commands used to build and install an old-style archive.
23359 RANLIB=$lt_RANLIB
23360 old_archive_cmds=$lt_old_archive_cmds_F77
23361 old_postinstall_cmds=$lt_old_postinstall_cmds
23362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23363
23364 # Create an old-style archive from a shared archive.
23365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23366
23367 # Create a temporary old-style archive to link instead of a shared archive.
23368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23369
23370 # Commands used to build and install a shared archive.
23371 archive_cmds=$lt_archive_cmds_F77
23372 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23373 postinstall_cmds=$lt_postinstall_cmds
23374 postuninstall_cmds=$lt_postuninstall_cmds
23375
23376 # Commands used to build a loadable module (assumed same as above if empty)
23377 module_cmds=$lt_module_cmds_F77
23378 module_expsym_cmds=$lt_module_expsym_cmds_F77
23379
23380 # Commands to strip libraries.
23381 old_striplib=$lt_old_striplib
23382 striplib=$lt_striplib
23383
23384 # Dependencies to place before the objects being linked to create a
23385 # shared library.
23386 predep_objects=$lt_predep_objects_F77
23387
23388 # Dependencies to place after the objects being linked to create a
23389 # shared library.
23390 postdep_objects=$lt_postdep_objects_F77
23391
23392 # Dependencies to place before the objects being linked to create a
23393 # shared library.
23394 predeps=$lt_predeps_F77
23395
23396 # Dependencies to place after the objects being linked to create a
23397 # shared library.
23398 postdeps=$lt_postdeps_F77
23399
23400 # The library search path used internally by the compiler when linking
23401 # a shared library.
23402 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23403
23404 # Method to check whether dependent libraries are shared objects.
23405 deplibs_check_method=$lt_deplibs_check_method
23406
23407 # Command to use when deplibs_check_method == file_magic.
23408 file_magic_cmd=$lt_file_magic_cmd
23409
23410 # Flag that allows shared libraries with undefined symbols to be built.
23411 allow_undefined_flag=$lt_allow_undefined_flag_F77
23412
23413 # Flag that forces no undefined symbols.
23414 no_undefined_flag=$lt_no_undefined_flag_F77
23415
23416 # Commands used to finish a libtool library installation in a directory.
23417 finish_cmds=$lt_finish_cmds
23418
23419 # Same as above, but a single script fragment to be evaled but not shown.
23420 finish_eval=$lt_finish_eval
23421
23422 # Take the output of nm and produce a listing of raw symbols and C names.
23423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23424
23425 # Transform the output of nm in a proper C declaration
23426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23427
23428 # Transform the output of nm in a C name address pair
23429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23430
23431 # This is the shared library runtime path variable.
23432 runpath_var=$runpath_var
23433
23434 # This is the shared library path variable.
23435 shlibpath_var=$shlibpath_var
23436
23437 # Is shlibpath searched before the hard-coded library search path?
23438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23439
23440 # How to hardcode a shared library path into an executable.
23441 hardcode_action=$hardcode_action_F77
23442
23443 # Whether we should hardcode library paths into libraries.
23444 hardcode_into_libs=$hardcode_into_libs
23445
23446 # Flag to hardcode \$libdir into a binary during linking.
23447 # This must work even if \$libdir does not exist.
23448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23449
23450 # If ld is used when linking, flag to hardcode \$libdir into
23451 # a binary during linking. This must work even if \$libdir does
23452 # not exist.
23453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23454
23455 # Whether we need a single -rpath flag with a separated argument.
23456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23457
23458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23459 # resulting binary.
23460 hardcode_direct=$hardcode_direct_F77
23461
23462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23463 # resulting binary.
23464 hardcode_minus_L=$hardcode_minus_L_F77
23465
23466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23467 # the resulting binary.
23468 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23469
23470 # Set to yes if building a shared library automatically hardcodes DIR into the library
23471 # and all subsequent libraries and executables linked against it.
23472 hardcode_automatic=$hardcode_automatic_F77
23473
23474 # Variables whose values should be saved in libtool wrapper scripts and
23475 # restored at relink time.
23476 variables_saved_for_relink="$variables_saved_for_relink"
23477
23478 # Whether libtool must link a program against all its dependency libraries.
23479 link_all_deplibs=$link_all_deplibs_F77
23480
23481 # Compile-time system search path for libraries
23482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23483
23484 # Run-time system search path for libraries
23485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23486
23487 # Fix the shell variable \$srcfile for the compiler.
23488 fix_srcfile_path="$fix_srcfile_path_F77"
23489
23490 # Set to yes if exported symbols are required.
23491 always_export_symbols=$always_export_symbols_F77
23492
23493 # The commands to list exported symbols.
23494 export_symbols_cmds=$lt_export_symbols_cmds_F77
23495
23496 # The commands to extract the exported symbol list from a shared archive.
23497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23498
23499 # Symbols that should not be listed in the preloaded symbols.
23500 exclude_expsyms=$lt_exclude_expsyms_F77
23501
23502 # Symbols that must always be exported.
23503 include_expsyms=$lt_include_expsyms_F77
23504
23505 # ### END LIBTOOL TAG CONFIG: $tagname
23506
23507 __EOF__
23508
23509
23510 else
23511   # If there is no Makefile yet, we rely on a make rule to execute
23512   # `config.status --recheck' to rerun these tests and create the
23513   # libtool script then.
23514   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23515   if test -f "$ltmain_in"; then
23516     test -f Makefile && make "$ltmain"
23517   fi
23518 fi
23519
23520
23521 ac_ext=c
23522 ac_cpp='$CPP $CPPFLAGS'
23523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23526
23527 CC="$lt_save_CC"
23528
23529         else
23530           tagname=""
23531         fi
23532         ;;
23533
23534       GCJ)
23535         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23536           ac_ext=c
23537 ac_cpp='$CPP $CPPFLAGS'
23538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23541
23542
23543 # Source file extension for Java test sources.
23544 ac_ext=java
23545
23546 # Object file extension for compiled Java test sources.
23547 objext=o
23548 objext_GCJ=$objext
23549
23550 # Code to be used in simple compile tests
23551 lt_simple_compile_test_code="class foo {}\n"
23552
23553 # Code to be used in simple link tests
23554 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23555
23556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23557
23558 # If no C compiler was specified, use CC.
23559 LTCC=${LTCC-"$CC"}
23560
23561 # If no C compiler flags were specified, use CFLAGS.
23562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23563
23564 # Allow CC to be a program name with arguments.
23565 compiler=$CC
23566
23567
23568 # save warnings/boilerplate of simple test code
23569 ac_outfile=conftest.$ac_objext
23570 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23572 _lt_compiler_boilerplate=`cat conftest.err`
23573 $rm conftest*
23574
23575 ac_outfile=conftest.$ac_objext
23576 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23578 _lt_linker_boilerplate=`cat conftest.err`
23579 $rm conftest*
23580
23581
23582 # Allow CC to be a program name with arguments.
23583 lt_save_CC="$CC"
23584 CC=${GCJ-"gcj"}
23585 compiler=$CC
23586 compiler_GCJ=$CC
23587 for cc_temp in $compiler""; do
23588   case $cc_temp in
23589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23591     \-*) ;;
23592     *) break;;
23593   esac
23594 done
23595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23596
23597
23598 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23599 archive_cmds_need_lc_GCJ=no
23600
23601 old_archive_cmds_GCJ=$old_archive_cmds
23602
23603
23604 lt_prog_compiler_no_builtin_flag_GCJ=
23605
23606 if test "$GCC" = yes; then
23607   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23608
23609
23610 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23611 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23612 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23613   echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615   lt_cv_prog_compiler_rtti_exceptions=no
23616   ac_outfile=conftest.$ac_objext
23617    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23618    lt_compiler_flag="-fno-rtti -fno-exceptions"
23619    # Insert the option either (1) after the last *FLAGS variable, or
23620    # (2) before a word containing "conftest.", or (3) at the end.
23621    # Note that $ac_compile itself does not contain backslashes and begins
23622    # with a dollar sign (not a hyphen), so the echo should work correctly.
23623    # The option is referenced via a variable to avoid confusing sed.
23624    lt_compile=`echo "$ac_compile" | $SED \
23625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23627    -e 's:$: $lt_compiler_flag:'`
23628    (eval echo "\"\$as_me:23628: $lt_compile\"" >&5)
23629    (eval "$lt_compile" 2>conftest.err)
23630    ac_status=$?
23631    cat conftest.err >&5
23632    echo "$as_me:23632: \$? = $ac_status" >&5
23633    if (exit $ac_status) && test -s "$ac_outfile"; then
23634      # The compiler can only warn and ignore the option if not recognized
23635      # So say no if there are warnings other than the usual output.
23636      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23637      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23638      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23639        lt_cv_prog_compiler_rtti_exceptions=yes
23640      fi
23641    fi
23642    $rm conftest*
23643
23644 fi
23645 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23646 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23647
23648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23649     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23650 else
23651     :
23652 fi
23653
23654 fi
23655
23656 lt_prog_compiler_wl_GCJ=
23657 lt_prog_compiler_pic_GCJ=
23658 lt_prog_compiler_static_GCJ=
23659
23660 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23661 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23662
23663   if test "$GCC" = yes; then
23664     lt_prog_compiler_wl_GCJ='-Wl,'
23665     lt_prog_compiler_static_GCJ='-static'
23666
23667     case $host_os in
23668       aix*)
23669       # All AIX code is PIC.
23670       if test "$host_cpu" = ia64; then
23671         # AIX 5 now supports IA64 processor
23672         lt_prog_compiler_static_GCJ='-Bstatic'
23673       fi
23674       ;;
23675
23676     amigaos*)
23677       # FIXME: we need at least 68020 code to build shared libraries, but
23678       # adding the `-m68020' flag to GCC prevents building anything better,
23679       # like `-m68040'.
23680       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23681       ;;
23682
23683     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23684       # PIC is the default for these OSes.
23685       ;;
23686
23687     mingw* | pw32* | os2*)
23688       # This hack is so that the source file can tell whether it is being
23689       # built for inclusion in a dll (and should export symbols for example).
23690       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23691       ;;
23692
23693     darwin* | rhapsody*)
23694       # PIC is the default on this platform
23695       # Common symbols not allowed in MH_DYLIB files
23696       lt_prog_compiler_pic_GCJ='-fno-common'
23697       ;;
23698
23699     interix3*)
23700       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23701       # Instead, we relocate shared libraries at runtime.
23702       ;;
23703
23704     msdosdjgpp*)
23705       # Just because we use GCC doesn't mean we suddenly get shared libraries
23706       # on systems that don't support them.
23707       lt_prog_compiler_can_build_shared_GCJ=no
23708       enable_shared=no
23709       ;;
23710
23711     sysv4*MP*)
23712       if test -d /usr/nec; then
23713         lt_prog_compiler_pic_GCJ=-Kconform_pic
23714       fi
23715       ;;
23716
23717     hpux*)
23718       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23719       # not for PA HP-UX.
23720       case $host_cpu in
23721       hppa*64*|ia64*)
23722         # +Z the default
23723         ;;
23724       *)
23725         lt_prog_compiler_pic_GCJ='-fPIC'
23726         ;;
23727       esac
23728       ;;
23729
23730     *)
23731       lt_prog_compiler_pic_GCJ='-fPIC'
23732       ;;
23733     esac
23734   else
23735     # PORTME Check for flag to pass linker flags through the system compiler.
23736     case $host_os in
23737     aix*)
23738       lt_prog_compiler_wl_GCJ='-Wl,'
23739       if test "$host_cpu" = ia64; then
23740         # AIX 5 now supports IA64 processor
23741         lt_prog_compiler_static_GCJ='-Bstatic'
23742       else
23743         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23744       fi
23745       ;;
23746       darwin*)
23747         # PIC is the default on this platform
23748         # Common symbols not allowed in MH_DYLIB files
23749        case $cc_basename in
23750          xlc*)
23751          lt_prog_compiler_pic_GCJ='-qnocommon'
23752          lt_prog_compiler_wl_GCJ='-Wl,'
23753          ;;
23754        esac
23755        ;;
23756
23757     mingw* | pw32* | os2*)
23758       # This hack is so that the source file can tell whether it is being
23759       # built for inclusion in a dll (and should export symbols for example).
23760       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23761       ;;
23762
23763     hpux9* | hpux10* | hpux11*)
23764       lt_prog_compiler_wl_GCJ='-Wl,'
23765       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23766       # not for PA HP-UX.
23767       case $host_cpu in
23768       hppa*64*|ia64*)
23769         # +Z the default
23770         ;;
23771       *)
23772         lt_prog_compiler_pic_GCJ='+Z'
23773         ;;
23774       esac
23775       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23776       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23777       ;;
23778
23779     irix5* | irix6* | nonstopux*)
23780       lt_prog_compiler_wl_GCJ='-Wl,'
23781       # PIC (with -KPIC) is the default.
23782       lt_prog_compiler_static_GCJ='-non_shared'
23783       ;;
23784
23785     newsos6)
23786       lt_prog_compiler_pic_GCJ='-KPIC'
23787       lt_prog_compiler_static_GCJ='-Bstatic'
23788       ;;
23789
23790     linux*)
23791       case $cc_basename in
23792       icc* | ecc*)
23793         lt_prog_compiler_wl_GCJ='-Wl,'
23794         lt_prog_compiler_pic_GCJ='-KPIC'
23795         lt_prog_compiler_static_GCJ='-static'
23796         ;;
23797       pgcc* | pgf77* | pgf90* | pgf95*)
23798         # Portland Group compilers (*not* the Pentium gcc compiler,
23799         # which looks to be a dead project)
23800         lt_prog_compiler_wl_GCJ='-Wl,'
23801         lt_prog_compiler_pic_GCJ='-fpic'
23802         lt_prog_compiler_static_GCJ='-Bstatic'
23803         ;;
23804       ccc*)
23805         lt_prog_compiler_wl_GCJ='-Wl,'
23806         # All Alpha code is PIC.
23807         lt_prog_compiler_static_GCJ='-non_shared'
23808         ;;
23809       esac
23810       ;;
23811
23812     osf3* | osf4* | osf5*)
23813       lt_prog_compiler_wl_GCJ='-Wl,'
23814       # All OSF/1 code is PIC.
23815       lt_prog_compiler_static_GCJ='-non_shared'
23816       ;;
23817
23818     solaris*)
23819       lt_prog_compiler_pic_GCJ='-KPIC'
23820       lt_prog_compiler_static_GCJ='-Bstatic'
23821       case $cc_basename in
23822       f77* | f90* | f95*)
23823         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23824       *)
23825         lt_prog_compiler_wl_GCJ='-Wl,';;
23826       esac
23827       ;;
23828
23829     sunos4*)
23830       lt_prog_compiler_wl_GCJ='-Qoption ld '
23831       lt_prog_compiler_pic_GCJ='-PIC'
23832       lt_prog_compiler_static_GCJ='-Bstatic'
23833       ;;
23834
23835     sysv4 | sysv4.2uw2* | sysv4.3*)
23836       lt_prog_compiler_wl_GCJ='-Wl,'
23837       lt_prog_compiler_pic_GCJ='-KPIC'
23838       lt_prog_compiler_static_GCJ='-Bstatic'
23839       ;;
23840
23841     sysv4*MP*)
23842       if test -d /usr/nec ;then
23843         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23844         lt_prog_compiler_static_GCJ='-Bstatic'
23845       fi
23846       ;;
23847
23848     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23849       lt_prog_compiler_wl_GCJ='-Wl,'
23850       lt_prog_compiler_pic_GCJ='-KPIC'
23851       lt_prog_compiler_static_GCJ='-Bstatic'
23852       ;;
23853
23854     unicos*)
23855       lt_prog_compiler_wl_GCJ='-Wl,'
23856       lt_prog_compiler_can_build_shared_GCJ=no
23857       ;;
23858
23859     uts4*)
23860       lt_prog_compiler_pic_GCJ='-pic'
23861       lt_prog_compiler_static_GCJ='-Bstatic'
23862       ;;
23863
23864     *)
23865       lt_prog_compiler_can_build_shared_GCJ=no
23866       ;;
23867     esac
23868   fi
23869
23870 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23871 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23872
23873 #
23874 # Check to make sure the PIC flag actually works.
23875 #
23876 if test -n "$lt_prog_compiler_pic_GCJ"; then
23877
23878 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23880 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23881   echo $ECHO_N "(cached) $ECHO_C" >&6
23882 else
23883   lt_prog_compiler_pic_works_GCJ=no
23884   ac_outfile=conftest.$ac_objext
23885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23886    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23887    # Insert the option either (1) after the last *FLAGS variable, or
23888    # (2) before a word containing "conftest.", or (3) at the end.
23889    # Note that $ac_compile itself does not contain backslashes and begins
23890    # with a dollar sign (not a hyphen), so the echo should work correctly.
23891    # The option is referenced via a variable to avoid confusing sed.
23892    lt_compile=`echo "$ac_compile" | $SED \
23893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23895    -e 's:$: $lt_compiler_flag:'`
23896    (eval echo "\"\$as_me:23896: $lt_compile\"" >&5)
23897    (eval "$lt_compile" 2>conftest.err)
23898    ac_status=$?
23899    cat conftest.err >&5
23900    echo "$as_me:23900: \$? = $ac_status" >&5
23901    if (exit $ac_status) && test -s "$ac_outfile"; then
23902      # The compiler can only warn and ignore the option if not recognized
23903      # So say no if there are warnings other than the usual output.
23904      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23905      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23906      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23907        lt_prog_compiler_pic_works_GCJ=yes
23908      fi
23909    fi
23910    $rm conftest*
23911
23912 fi
23913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23914 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23915
23916 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23917     case $lt_prog_compiler_pic_GCJ in
23918      "" | " "*) ;;
23919      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23920      esac
23921 else
23922     lt_prog_compiler_pic_GCJ=
23923      lt_prog_compiler_can_build_shared_GCJ=no
23924 fi
23925
23926 fi
23927 case $host_os in
23928   # For platforms which do not support PIC, -DPIC is meaningless:
23929   *djgpp*)
23930     lt_prog_compiler_pic_GCJ=
23931     ;;
23932   *)
23933     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23934     ;;
23935 esac
23936
23937 #
23938 # Check to make sure the static flag actually works.
23939 #
23940 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23941 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23942 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23943 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946   lt_prog_compiler_static_works_GCJ=no
23947    save_LDFLAGS="$LDFLAGS"
23948    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23949    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23950    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23951      # The linker can only warn and ignore the option if not recognized
23952      # So say no if there are warnings
23953      if test -s conftest.err; then
23954        # Append any errors to the config.log.
23955        cat conftest.err 1>&5
23956        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23957        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23958        if diff conftest.exp conftest.er2 >/dev/null; then
23959          lt_prog_compiler_static_works_GCJ=yes
23960        fi
23961      else
23962        lt_prog_compiler_static_works_GCJ=yes
23963      fi
23964    fi
23965    $rm conftest*
23966    LDFLAGS="$save_LDFLAGS"
23967
23968 fi
23969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23970 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23971
23972 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23973     :
23974 else
23975     lt_prog_compiler_static_GCJ=
23976 fi
23977
23978
23979 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23980 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23981 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23982   echo $ECHO_N "(cached) $ECHO_C" >&6
23983 else
23984   lt_cv_prog_compiler_c_o_GCJ=no
23985    $rm -r conftest 2>/dev/null
23986    mkdir conftest
23987    cd conftest
23988    mkdir out
23989    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23990
23991    lt_compiler_flag="-o out/conftest2.$ac_objext"
23992    # Insert the option either (1) after the last *FLAGS variable, or
23993    # (2) before a word containing "conftest.", or (3) at the end.
23994    # Note that $ac_compile itself does not contain backslashes and begins
23995    # with a dollar sign (not a hyphen), so the echo should work correctly.
23996    lt_compile=`echo "$ac_compile" | $SED \
23997    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23998    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23999    -e 's:$: $lt_compiler_flag:'`
24000    (eval echo "\"\$as_me:24000: $lt_compile\"" >&5)
24001    (eval "$lt_compile" 2>out/conftest.err)
24002    ac_status=$?
24003    cat out/conftest.err >&5
24004    echo "$as_me:24004: \$? = $ac_status" >&5
24005    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24006    then
24007      # The compiler can only warn and ignore the option if not recognized
24008      # So say no if there are warnings
24009      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24010      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24011      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24012        lt_cv_prog_compiler_c_o_GCJ=yes
24013      fi
24014    fi
24015    chmod u+w . 2>&5
24016    $rm conftest*
24017    # SGI C++ compiler will create directory out/ii_files/ for
24018    # template instantiation
24019    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24020    $rm out/* && rmdir out
24021    cd ..
24022    rmdir conftest
24023    $rm conftest*
24024
24025 fi
24026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24028
24029
24030 hard_links="nottested"
24031 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24032   # do not overwrite the value of need_locks provided by the user
24033   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24034 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24035   hard_links=yes
24036   $rm conftest*
24037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24038   touch conftest.a
24039   ln conftest.a conftest.b 2>&5 || hard_links=no
24040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24041   { echo "$as_me:$LINENO: result: $hard_links" >&5
24042 echo "${ECHO_T}$hard_links" >&6; }
24043   if test "$hard_links" = no; then
24044     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24045 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24046     need_locks=warn
24047   fi
24048 else
24049   need_locks=no
24050 fi
24051
24052 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24053 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24054
24055   runpath_var=
24056   allow_undefined_flag_GCJ=
24057   enable_shared_with_static_runtimes_GCJ=no
24058   archive_cmds_GCJ=
24059   archive_expsym_cmds_GCJ=
24060   old_archive_From_new_cmds_GCJ=
24061   old_archive_from_expsyms_cmds_GCJ=
24062   export_dynamic_flag_spec_GCJ=
24063   whole_archive_flag_spec_GCJ=
24064   thread_safe_flag_spec_GCJ=
24065   hardcode_libdir_flag_spec_GCJ=
24066   hardcode_libdir_flag_spec_ld_GCJ=
24067   hardcode_libdir_separator_GCJ=
24068   hardcode_direct_GCJ=no
24069   hardcode_minus_L_GCJ=no
24070   hardcode_shlibpath_var_GCJ=unsupported
24071   link_all_deplibs_GCJ=unknown
24072   hardcode_automatic_GCJ=no
24073   module_cmds_GCJ=
24074   module_expsym_cmds_GCJ=
24075   always_export_symbols_GCJ=no
24076   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24077   # include_expsyms should be a list of space-separated symbols to be *always*
24078   # included in the symbol list
24079   include_expsyms_GCJ=
24080   # exclude_expsyms can be an extended regexp of symbols to exclude
24081   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24082   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24083   # as well as any symbol that contains `d'.
24084   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24085   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24086   # platforms (ab)use it in PIC code, but their linkers get confused if
24087   # the symbol is explicitly referenced.  Since portable code cannot
24088   # rely on this symbol name, it's probably fine to never include it in
24089   # preloaded symbol tables.
24090   extract_expsyms_cmds=
24091   # Just being paranoid about ensuring that cc_basename is set.
24092   for cc_temp in $compiler""; do
24093   case $cc_temp in
24094     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24095     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24096     \-*) ;;
24097     *) break;;
24098   esac
24099 done
24100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24101
24102   case $host_os in
24103   cygwin* | mingw* | pw32*)
24104     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24105     # When not using gcc, we currently assume that we are using
24106     # Microsoft Visual C++.
24107     if test "$GCC" != yes; then
24108       with_gnu_ld=no
24109     fi
24110     ;;
24111   interix*)
24112     # we just hope/assume this is gcc and not c89 (= MSVC++)
24113     with_gnu_ld=yes
24114     ;;
24115   openbsd*)
24116     with_gnu_ld=no
24117     ;;
24118   esac
24119
24120   ld_shlibs_GCJ=yes
24121   if test "$with_gnu_ld" = yes; then
24122     # If archive_cmds runs LD, not CC, wlarc should be empty
24123     wlarc='${wl}'
24124
24125     # Set some defaults for GNU ld with shared library support. These
24126     # are reset later if shared libraries are not supported. Putting them
24127     # here allows them to be overridden if necessary.
24128     runpath_var=LD_RUN_PATH
24129     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24130     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24131     # ancient GNU ld didn't support --whole-archive et. al.
24132     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24133         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24134       else
24135         whole_archive_flag_spec_GCJ=
24136     fi
24137     supports_anon_versioning=no
24138     case `$LD -v 2>/dev/null` in
24139       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24140       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24141       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24142       *\ 2.11.*) ;; # other 2.11 versions
24143       *) supports_anon_versioning=yes ;;
24144     esac
24145
24146     # See if GNU ld supports shared libraries.
24147     case $host_os in
24148     aix3* | aix4* | aix5*)
24149       # On AIX/PPC, the GNU linker is very broken
24150       if test "$host_cpu" != ia64; then
24151         ld_shlibs_GCJ=no
24152         cat <<EOF 1>&2
24153
24154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24155 *** to be unable to reliably create shared libraries on AIX.
24156 *** Therefore, libtool is disabling shared libraries support.  If you
24157 *** really care for shared libraries, you may want to modify your PATH
24158 *** so that a non-GNU linker is found, and then restart.
24159
24160 EOF
24161       fi
24162       ;;
24163
24164     amigaos*)
24165       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)'
24166       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24167       hardcode_minus_L_GCJ=yes
24168
24169       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24170       # that the semantics of dynamic libraries on AmigaOS, at least up
24171       # to version 4, is to share data among multiple programs linked
24172       # with the same dynamic library.  Since this doesn't match the
24173       # behavior of shared libraries on other platforms, we can't use
24174       # them.
24175       ld_shlibs_GCJ=no
24176       ;;
24177
24178     beos*)
24179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24180         allow_undefined_flag_GCJ=unsupported
24181         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24182         # support --undefined.  This deserves some investigation.  FIXME
24183         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24184       else
24185         ld_shlibs_GCJ=no
24186       fi
24187       ;;
24188
24189     cygwin* | mingw* | pw32*)
24190       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24191       # as there is no search path for DLLs.
24192       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24193       allow_undefined_flag_GCJ=unsupported
24194       always_export_symbols_GCJ=no
24195       enable_shared_with_static_runtimes_GCJ=yes
24196       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24197
24198       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24199         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24200         # If the export-symbols file already is a .def file (1st line
24201         # is EXPORTS), use it as is; otherwise, prepend...
24202         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24203           cp $export_symbols $output_objdir/$soname.def;
24204         else
24205           echo EXPORTS > $output_objdir/$soname.def;
24206           cat $export_symbols >> $output_objdir/$soname.def;
24207         fi~
24208         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24209       else
24210         ld_shlibs_GCJ=no
24211       fi
24212       ;;
24213
24214     interix3*)
24215       hardcode_direct_GCJ=no
24216       hardcode_shlibpath_var_GCJ=no
24217       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24218       export_dynamic_flag_spec_GCJ='${wl}-E'
24219       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24220       # Instead, shared libraries are loaded at an image base (0x10000000 by
24221       # default) and relocated if they conflict, which is a slow very memory
24222       # consuming and fragmenting process.  To avoid this, we pick a random,
24223       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24224       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24225       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'
24226       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'
24227       ;;
24228
24229     linux*)
24230       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24231         tmp_addflag=
24232         case $cc_basename,$host_cpu in
24233         pgcc*)                          # Portland Group C compiler
24234           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'
24235           tmp_addflag=' $pic_flag'
24236           ;;
24237         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24238           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'
24239           tmp_addflag=' $pic_flag -Mnomain' ;;
24240         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24241           tmp_addflag=' -i_dynamic' ;;
24242         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24243           tmp_addflag=' -i_dynamic -nofor_main' ;;
24244         ifc* | ifort*)                  # Intel Fortran compiler
24245           tmp_addflag=' -nofor_main' ;;
24246         esac
24247         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24248
24249         if test $supports_anon_versioning = yes; then
24250           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24251   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24252   $echo "local: *; };" >> $output_objdir/$libname.ver~
24253           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24254         fi
24255       else
24256         ld_shlibs_GCJ=no
24257       fi
24258       ;;
24259
24260     netbsd*)
24261       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24262         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24263         wlarc=
24264       else
24265         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24266         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24267       fi
24268       ;;
24269
24270     solaris*)
24271       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24272         ld_shlibs_GCJ=no
24273         cat <<EOF 1>&2
24274
24275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24276 *** create shared libraries on Solaris systems.  Therefore, libtool
24277 *** is disabling shared libraries support.  We urge you to upgrade GNU
24278 *** binutils to release 2.9.1 or newer.  Another option is to modify
24279 *** your PATH or compiler configuration so that the native linker is
24280 *** used, and then restart.
24281
24282 EOF
24283       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24284         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24285         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24286       else
24287         ld_shlibs_GCJ=no
24288       fi
24289       ;;
24290
24291     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24292       case `$LD -v 2>&1` in
24293         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24294         ld_shlibs_GCJ=no
24295         cat <<_LT_EOF 1>&2
24296
24297 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24298 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24299 *** is disabling shared libraries support.  We urge you to upgrade GNU
24300 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24301 *** your PATH or compiler configuration so that the native linker is
24302 *** used, and then restart.
24303
24304 _LT_EOF
24305         ;;
24306         *)
24307           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24308             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24309             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24310             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24311           else
24312             ld_shlibs_GCJ=no
24313           fi
24314         ;;
24315       esac
24316       ;;
24317
24318     sunos4*)
24319       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24320       wlarc=
24321       hardcode_direct_GCJ=yes
24322       hardcode_shlibpath_var_GCJ=no
24323       ;;
24324
24325     *)
24326       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24327         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24328         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24329       else
24330         ld_shlibs_GCJ=no
24331       fi
24332       ;;
24333     esac
24334
24335     if test "$ld_shlibs_GCJ" = no; then
24336       runpath_var=
24337       hardcode_libdir_flag_spec_GCJ=
24338       export_dynamic_flag_spec_GCJ=
24339       whole_archive_flag_spec_GCJ=
24340     fi
24341   else
24342     # PORTME fill in a description of your system's linker (not GNU ld)
24343     case $host_os in
24344     aix3*)
24345       allow_undefined_flag_GCJ=unsupported
24346       always_export_symbols_GCJ=yes
24347       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'
24348       # Note: this linker hardcodes the directories in LIBPATH if there
24349       # are no directories specified by -L.
24350       hardcode_minus_L_GCJ=yes
24351       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24352         # Neither direct hardcoding nor static linking is supported with a
24353         # broken collect2.
24354         hardcode_direct_GCJ=unsupported
24355       fi
24356       ;;
24357
24358     aix4* | aix5*)
24359       if test "$host_cpu" = ia64; then
24360         # On IA64, the linker does run time linking by default, so we don't
24361         # have to do anything special.
24362         aix_use_runtimelinking=no
24363         exp_sym_flag='-Bexport'
24364         no_entry_flag=""
24365       else
24366         # If we're using GNU nm, then we don't want the "-C" option.
24367         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24368         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24369           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'
24370         else
24371           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'
24372         fi
24373         aix_use_runtimelinking=no
24374
24375         # Test if we are trying to use run time linking or normal
24376         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24377         # need to do runtime linking.
24378         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24379           for ld_flag in $LDFLAGS; do
24380           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24381             aix_use_runtimelinking=yes
24382             break
24383           fi
24384           done
24385           ;;
24386         esac
24387
24388         exp_sym_flag='-bexport'
24389         no_entry_flag='-bnoentry'
24390       fi
24391
24392       # When large executables or shared objects are built, AIX ld can
24393       # have problems creating the table of contents.  If linking a library
24394       # or program results in "error TOC overflow" add -mminimal-toc to
24395       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24396       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24397
24398       archive_cmds_GCJ=''
24399       hardcode_direct_GCJ=yes
24400       hardcode_libdir_separator_GCJ=':'
24401       link_all_deplibs_GCJ=yes
24402
24403       if test "$GCC" = yes; then
24404         case $host_os in aix4.[012]|aix4.[012].*)
24405         # We only want to do this on AIX 4.2 and lower, the check
24406         # below for broken collect2 doesn't work under 4.3+
24407           collect2name=`${CC} -print-prog-name=collect2`
24408           if test -f "$collect2name" && \
24409            strings "$collect2name" | grep resolve_lib_name >/dev/null
24410           then
24411           # We have reworked collect2
24412           hardcode_direct_GCJ=yes
24413           else
24414           # We have old collect2
24415           hardcode_direct_GCJ=unsupported
24416           # It fails to find uninstalled libraries when the uninstalled
24417           # path is not listed in the libpath.  Setting hardcode_minus_L
24418           # to unsupported forces relinking
24419           hardcode_minus_L_GCJ=yes
24420           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24421           hardcode_libdir_separator_GCJ=
24422           fi
24423           ;;
24424         esac
24425         shared_flag='-shared'
24426         if test "$aix_use_runtimelinking" = yes; then
24427           shared_flag="$shared_flag "'${wl}-G'
24428         fi
24429       else
24430         # not using gcc
24431         if test "$host_cpu" = ia64; then
24432         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24433         # chokes on -Wl,-G. The following line is correct:
24434           shared_flag='-G'
24435         else
24436           if test "$aix_use_runtimelinking" = yes; then
24437             shared_flag='${wl}-G'
24438           else
24439             shared_flag='${wl}-bM:SRE'
24440           fi
24441         fi
24442       fi
24443
24444       # It seems that -bexpall does not export symbols beginning with
24445       # underscore (_), so it is better to generate a list of symbols to export.
24446       always_export_symbols_GCJ=yes
24447       if test "$aix_use_runtimelinking" = yes; then
24448         # Warning - without using the other runtime loading flags (-brtl),
24449         # -berok will link without error, but may produce a broken library.
24450         allow_undefined_flag_GCJ='-berok'
24451        # Determine the default libpath from the value encoded in an empty executable.
24452        cat >conftest.$ac_ext <<_ACEOF
24453 /* confdefs.h.  */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h.  */
24458
24459 int
24460 main ()
24461 {
24462
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (ac_try="$ac_link"
24469 case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474   (eval "$ac_link") 2>conftest.er1
24475   ac_status=$?
24476   grep -v '^ *+' conftest.er1 >conftest.err
24477   rm -f conftest.er1
24478   cat conftest.err >&5
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); } &&
24481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24482   { (case "(($ac_try" in
24483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484   *) ac_try_echo=$ac_try;;
24485 esac
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487   (eval "$ac_try") 2>&5
24488   ac_status=$?
24489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490   (exit $ac_status); }; } &&
24491          { ac_try='test -s conftest$ac_exeext'
24492   { (case "(($ac_try" in
24493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494   *) ac_try_echo=$ac_try;;
24495 esac
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497   (eval "$ac_try") 2>&5
24498   ac_status=$?
24499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500   (exit $ac_status); }; }; then
24501
24502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24503 }'`
24504 # Check for a 64-bit object if we didn't find anything.
24505 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; }
24506 }'`; fi
24507 else
24508   echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24510
24511
24512 fi
24513
24514 rm -f core conftest.err conftest.$ac_objext \
24515       conftest$ac_exeext conftest.$ac_ext
24516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24517
24518        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24519         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"
24520        else
24521         if test "$host_cpu" = ia64; then
24522           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24523           allow_undefined_flag_GCJ="-z nodefs"
24524           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"
24525         else
24526          # Determine the default libpath from the value encoded in an empty executable.
24527          cat >conftest.$ac_ext <<_ACEOF
24528 /* confdefs.h.  */
24529 _ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h.  */
24533
24534 int
24535 main ()
24536 {
24537
24538   ;
24539   return 0;
24540 }
24541 _ACEOF
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (ac_try="$ac_link"
24544 case "(($ac_try" in
24545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546   *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549   (eval "$ac_link") 2>conftest.er1
24550   ac_status=$?
24551   grep -v '^ *+' conftest.er1 >conftest.err
24552   rm -f conftest.er1
24553   cat conftest.err >&5
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); } &&
24556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24557   { (case "(($ac_try" in
24558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559   *) ac_try_echo=$ac_try;;
24560 esac
24561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24562   (eval "$ac_try") 2>&5
24563   ac_status=$?
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); }; } &&
24566          { ac_try='test -s conftest$ac_exeext'
24567   { (case "(($ac_try" in
24568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569   *) ac_try_echo=$ac_try;;
24570 esac
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572   (eval "$ac_try") 2>&5
24573   ac_status=$?
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); }; }; then
24576
24577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24578 }'`
24579 # Check for a 64-bit object if we didn't find anything.
24580 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; }
24581 }'`; fi
24582 else
24583   echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586
24587 fi
24588
24589 rm -f core conftest.err conftest.$ac_objext \
24590       conftest$ac_exeext conftest.$ac_ext
24591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24592
24593          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24594           # Warning - without using the other run time loading flags,
24595           # -berok will link without error, but may produce a broken library.
24596           no_undefined_flag_GCJ=' ${wl}-bernotok'
24597           allow_undefined_flag_GCJ=' ${wl}-berok'
24598           # Exported symbols can be pulled into shared objects from archives
24599           whole_archive_flag_spec_GCJ='$convenience'
24600           archive_cmds_need_lc_GCJ=yes
24601           # This is similar to how AIX traditionally builds its shared libraries.
24602           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'
24603         fi
24604       fi
24605       ;;
24606
24607     amigaos*)
24608       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)'
24609       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24610       hardcode_minus_L_GCJ=yes
24611       # see comment about different semantics on the GNU ld section
24612       ld_shlibs_GCJ=no
24613       ;;
24614
24615     bsdi[45]*)
24616       export_dynamic_flag_spec_GCJ=-rdynamic
24617       ;;
24618
24619     cygwin* | mingw* | pw32*)
24620       # When not using gcc, we currently assume that we are using
24621       # Microsoft Visual C++.
24622       # hardcode_libdir_flag_spec is actually meaningless, as there is
24623       # no search path for DLLs.
24624       hardcode_libdir_flag_spec_GCJ=' '
24625       allow_undefined_flag_GCJ=unsupported
24626       # Tell ltmain to make .lib files, not .a files.
24627       libext=lib
24628       # Tell ltmain to make .dll files, not .so files.
24629       shrext_cmds=".dll"
24630       # FIXME: Setting linknames here is a bad hack.
24631       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24632       # The linker will automatically build a .lib file if we build a DLL.
24633       old_archive_From_new_cmds_GCJ='true'
24634       # FIXME: Should let the user specify the lib program.
24635       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24636       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24637       enable_shared_with_static_runtimes_GCJ=yes
24638       ;;
24639
24640     darwin* | rhapsody*)
24641       case $host_os in
24642         rhapsody* | darwin1.[012])
24643          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24644          ;;
24645        *) # Darwin 1.3 on
24646          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24647            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24648          else
24649            case ${MACOSX_DEPLOYMENT_TARGET} in
24650              10.[012])
24651                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24652                ;;
24653              10.*)
24654                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24655                ;;
24656            esac
24657          fi
24658          ;;
24659       esac
24660       archive_cmds_need_lc_GCJ=no
24661       hardcode_direct_GCJ=no
24662       hardcode_automatic_GCJ=yes
24663       hardcode_shlibpath_var_GCJ=unsupported
24664       whole_archive_flag_spec_GCJ=''
24665       link_all_deplibs_GCJ=yes
24666     if test "$GCC" = yes ; then
24667         output_verbose_link_cmd='echo'
24668         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24669       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24670       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24671       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}'
24672       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}'
24673     else
24674       case $cc_basename in
24675         xlc*)
24676          output_verbose_link_cmd='echo'
24677          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24678          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24679           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24680          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}'
24681           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}'
24682           ;;
24683        *)
24684          ld_shlibs_GCJ=no
24685           ;;
24686       esac
24687     fi
24688       ;;
24689
24690     dgux*)
24691       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24692       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24693       hardcode_shlibpath_var_GCJ=no
24694       ;;
24695
24696     freebsd1*)
24697       ld_shlibs_GCJ=no
24698       ;;
24699
24700     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24701     # support.  Future versions do this automatically, but an explicit c++rt0.o
24702     # does not break anything, and helps significantly (at the cost of a little
24703     # extra space).
24704     freebsd2.2*)
24705       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24706       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24707       hardcode_direct_GCJ=yes
24708       hardcode_shlibpath_var_GCJ=no
24709       ;;
24710
24711     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24712     freebsd2*)
24713       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24714       hardcode_direct_GCJ=yes
24715       hardcode_minus_L_GCJ=yes
24716       hardcode_shlibpath_var_GCJ=no
24717       ;;
24718
24719     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24720     freebsd* | kfreebsd*-gnu | dragonfly*)
24721       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24722       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24723       hardcode_direct_GCJ=yes
24724       hardcode_shlibpath_var_GCJ=no
24725       ;;
24726
24727     hpux9*)
24728       if test "$GCC" = yes; then
24729         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'
24730       else
24731         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'
24732       fi
24733       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24734       hardcode_libdir_separator_GCJ=:
24735       hardcode_direct_GCJ=yes
24736
24737       # hardcode_minus_L: Not really in the search PATH,
24738       # but as the default location of the library.
24739       hardcode_minus_L_GCJ=yes
24740       export_dynamic_flag_spec_GCJ='${wl}-E'
24741       ;;
24742
24743     hpux10*)
24744       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24745         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24746       else
24747         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24748       fi
24749       if test "$with_gnu_ld" = no; then
24750         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24751         hardcode_libdir_separator_GCJ=:
24752
24753         hardcode_direct_GCJ=yes
24754         export_dynamic_flag_spec_GCJ='${wl}-E'
24755
24756         # hardcode_minus_L: Not really in the search PATH,
24757         # but as the default location of the library.
24758         hardcode_minus_L_GCJ=yes
24759       fi
24760       ;;
24761
24762     hpux11*)
24763       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24764         case $host_cpu in
24765         hppa*64*)
24766           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24767           ;;
24768         ia64*)
24769           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24770           ;;
24771         *)
24772           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24773           ;;
24774         esac
24775       else
24776         case $host_cpu in
24777         hppa*64*)
24778           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24779           ;;
24780         ia64*)
24781           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24782           ;;
24783         *)
24784           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24785           ;;
24786         esac
24787       fi
24788       if test "$with_gnu_ld" = no; then
24789         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24790         hardcode_libdir_separator_GCJ=:
24791
24792         case $host_cpu in
24793         hppa*64*|ia64*)
24794           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24795           hardcode_direct_GCJ=no
24796           hardcode_shlibpath_var_GCJ=no
24797           ;;
24798         *)
24799           hardcode_direct_GCJ=yes
24800           export_dynamic_flag_spec_GCJ='${wl}-E'
24801
24802           # hardcode_minus_L: Not really in the search PATH,
24803           # but as the default location of the library.
24804           hardcode_minus_L_GCJ=yes
24805           ;;
24806         esac
24807       fi
24808       ;;
24809
24810     irix5* | irix6* | nonstopux*)
24811       if test "$GCC" = yes; then
24812         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'
24813       else
24814         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'
24815         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24816       fi
24817       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24818       hardcode_libdir_separator_GCJ=:
24819       link_all_deplibs_GCJ=yes
24820       ;;
24821
24822     netbsd*)
24823       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24824         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24825       else
24826         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24827       fi
24828       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24829       hardcode_direct_GCJ=yes
24830       hardcode_shlibpath_var_GCJ=no
24831       ;;
24832
24833     newsos6)
24834       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24835       hardcode_direct_GCJ=yes
24836       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24837       hardcode_libdir_separator_GCJ=:
24838       hardcode_shlibpath_var_GCJ=no
24839       ;;
24840
24841     openbsd*)
24842       hardcode_direct_GCJ=yes
24843       hardcode_shlibpath_var_GCJ=no
24844       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24845         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24846         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24847         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24848         export_dynamic_flag_spec_GCJ='${wl}-E'
24849       else
24850        case $host_os in
24851          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24852            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24853            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24854            ;;
24855          *)
24856            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24857            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24858            ;;
24859        esac
24860       fi
24861       ;;
24862
24863     os2*)
24864       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865       hardcode_minus_L_GCJ=yes
24866       allow_undefined_flag_GCJ=unsupported
24867       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'
24868       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24869       ;;
24870
24871     osf3*)
24872       if test "$GCC" = yes; then
24873         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24874         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'
24875       else
24876         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24877         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'
24878       fi
24879       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24880       hardcode_libdir_separator_GCJ=:
24881       ;;
24882
24883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24884       if test "$GCC" = yes; then
24885         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24886         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'
24887         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24888       else
24889         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24890         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'
24891         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~
24892         $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'
24893
24894         # Both c and cxx compiler support -rpath directly
24895         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24896       fi
24897       hardcode_libdir_separator_GCJ=:
24898       ;;
24899
24900     solaris*)
24901       no_undefined_flag_GCJ=' -z text'
24902       if test "$GCC" = yes; then
24903         wlarc='${wl}'
24904         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24906           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24907       else
24908         wlarc=''
24909         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24911         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24912       fi
24913       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24914       hardcode_shlibpath_var_GCJ=no
24915       case $host_os in
24916       solaris2.[0-5] | solaris2.[0-5].*) ;;
24917       *)
24918         # The compiler driver will combine linker options so we
24919         # cannot just pass the convience library names through
24920         # without $wl, iff we do not link with $LD.
24921         # Luckily, gcc supports the same syntax we need for Sun Studio.
24922         # Supported since Solaris 2.6 (maybe 2.5.1?)
24923         case $wlarc in
24924         '')
24925           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24926         *)
24927           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' ;;
24928         esac ;;
24929       esac
24930       link_all_deplibs_GCJ=yes
24931       ;;
24932
24933     sunos4*)
24934       if test "x$host_vendor" = xsequent; then
24935         # Use $CC to link under sequent, because it throws in some extra .o
24936         # files that make .init and .fini sections work.
24937         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24938       else
24939         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24940       fi
24941       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24942       hardcode_direct_GCJ=yes
24943       hardcode_minus_L_GCJ=yes
24944       hardcode_shlibpath_var_GCJ=no
24945       ;;
24946
24947     sysv4)
24948       case $host_vendor in
24949         sni)
24950           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951           hardcode_direct_GCJ=yes # is this really true???
24952         ;;
24953         siemens)
24954           ## LD is ld it makes a PLAMLIB
24955           ## CC just makes a GrossModule.
24956           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24957           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24958           hardcode_direct_GCJ=no
24959         ;;
24960         motorola)
24961           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24962           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24963         ;;
24964       esac
24965       runpath_var='LD_RUN_PATH'
24966       hardcode_shlibpath_var_GCJ=no
24967       ;;
24968
24969     sysv4.3*)
24970       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971       hardcode_shlibpath_var_GCJ=no
24972       export_dynamic_flag_spec_GCJ='-Bexport'
24973       ;;
24974
24975     sysv4*MP*)
24976       if test -d /usr/nec; then
24977         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24978         hardcode_shlibpath_var_GCJ=no
24979         runpath_var=LD_RUN_PATH
24980         hardcode_runpath_var=yes
24981         ld_shlibs_GCJ=yes
24982       fi
24983       ;;
24984
24985     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24986       no_undefined_flag_GCJ='${wl}-z,text'
24987       archive_cmds_need_lc_GCJ=no
24988       hardcode_shlibpath_var_GCJ=no
24989       runpath_var='LD_RUN_PATH'
24990
24991       if test "$GCC" = yes; then
24992         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24993         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24994       else
24995         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24996         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24997       fi
24998       ;;
24999
25000     sysv5* | sco3.2v5* | sco5v6*)
25001       # Note: We can NOT use -z defs as we might desire, because we do not
25002       # link with -lc, and that would cause any symbols used from libc to
25003       # always be unresolved, which means just about no library would
25004       # ever link correctly.  If we're not using GNU ld we use -z text
25005       # though, which does catch some bad symbols but isn't as heavy-handed
25006       # as -z defs.
25007       no_undefined_flag_GCJ='${wl}-z,text'
25008       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25009       archive_cmds_need_lc_GCJ=no
25010       hardcode_shlibpath_var_GCJ=no
25011       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25012       hardcode_libdir_separator_GCJ=':'
25013       link_all_deplibs_GCJ=yes
25014       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25015       runpath_var='LD_RUN_PATH'
25016
25017       if test "$GCC" = yes; then
25018         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25019         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25020       else
25021         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25022         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25023       fi
25024       ;;
25025
25026     uts4*)
25027       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25028       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25029       hardcode_shlibpath_var_GCJ=no
25030       ;;
25031
25032     *)
25033       ld_shlibs_GCJ=no
25034       ;;
25035     esac
25036   fi
25037
25038 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25039 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25040 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25041
25042 #
25043 # Do we need to explicitly link libc?
25044 #
25045 case "x$archive_cmds_need_lc_GCJ" in
25046 x|xyes)
25047   # Assume -lc should be added
25048   archive_cmds_need_lc_GCJ=yes
25049
25050   if test "$enable_shared" = yes && test "$GCC" = yes; then
25051     case $archive_cmds_GCJ in
25052     *'~'*)
25053       # FIXME: we may have to deal with multi-command sequences.
25054       ;;
25055     '$CC '*)
25056       # Test whether the compiler implicitly links with -lc since on some
25057       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25058       # to ld, don't add -lc before -lgcc.
25059       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25061       $rm conftest*
25062       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25063
25064       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25065   (eval $ac_compile) 2>&5
25066   ac_status=$?
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); } 2>conftest.err; then
25069         soname=conftest
25070         lib=conftest
25071         libobjs=conftest.$ac_objext
25072         deplibs=
25073         wl=$lt_prog_compiler_wl_GCJ
25074         pic_flag=$lt_prog_compiler_pic_GCJ
25075         compiler_flags=-v
25076         linker_flags=-v
25077         verstring=
25078         output_objdir=.
25079         libname=conftest
25080         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25081         allow_undefined_flag_GCJ=
25082         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25083   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25084   ac_status=$?
25085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); }
25087         then
25088           archive_cmds_need_lc_GCJ=no
25089         else
25090           archive_cmds_need_lc_GCJ=yes
25091         fi
25092         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25093       else
25094         cat conftest.err 1>&5
25095       fi
25096       $rm conftest*
25097       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25098 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25099       ;;
25100     esac
25101   fi
25102   ;;
25103 esac
25104
25105 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25106 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25107 library_names_spec=
25108 libname_spec='lib$name'
25109 soname_spec=
25110 shrext_cmds=".so"
25111 postinstall_cmds=
25112 postuninstall_cmds=
25113 finish_cmds=
25114 finish_eval=
25115 shlibpath_var=
25116 shlibpath_overrides_runpath=unknown
25117 version_type=none
25118 dynamic_linker="$host_os ld.so"
25119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25120 if test "$GCC" = yes; then
25121   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25122   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25123     # if the path contains ";" then we assume it to be the separator
25124     # otherwise default to the standard path separator (i.e. ":") - it is
25125     # assumed that no part of a normal pathname contains ";" but that should
25126     # okay in the real world where ";" in dirpaths is itself problematic.
25127     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25128   else
25129     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25130   fi
25131 else
25132   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25133 fi
25134 need_lib_prefix=unknown
25135 hardcode_into_libs=no
25136
25137 # when you set need_version to no, make sure it does not cause -set_version
25138 # flags to be left without arguments
25139 need_version=unknown
25140
25141 case $host_os in
25142 aix3*)
25143   version_type=linux
25144   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25145   shlibpath_var=LIBPATH
25146
25147   # AIX 3 has no versioning support, so we append a major version to the name.
25148   soname_spec='${libname}${release}${shared_ext}$major'
25149   ;;
25150
25151 aix4* | aix5*)
25152   version_type=linux
25153   need_lib_prefix=no
25154   need_version=no
25155   hardcode_into_libs=yes
25156   if test "$host_cpu" = ia64; then
25157     # AIX 5 supports IA64
25158     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25159     shlibpath_var=LD_LIBRARY_PATH
25160   else
25161     # With GCC up to 2.95.x, collect2 would create an import file
25162     # for dependence libraries.  The import file would start with
25163     # the line `#! .'.  This would cause the generated library to
25164     # depend on `.', always an invalid library.  This was fixed in
25165     # development snapshots of GCC prior to 3.0.
25166     case $host_os in
25167       aix4 | aix4.[01] | aix4.[01].*)
25168       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25169            echo ' yes '
25170            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25171         :
25172       else
25173         can_build_shared=no
25174       fi
25175       ;;
25176     esac
25177     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25178     # soname into executable. Probably we can add versioning support to
25179     # collect2, so additional links can be useful in future.
25180     if test "$aix_use_runtimelinking" = yes; then
25181       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25182       # instead of lib<name>.a to let people know that these are not
25183       # typical AIX shared libraries.
25184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25185     else
25186       # We preserve .a as extension for shared libraries through AIX4.2
25187       # and later when we are not doing run time linking.
25188       library_names_spec='${libname}${release}.a $libname.a'
25189       soname_spec='${libname}${release}${shared_ext}$major'
25190     fi
25191     shlibpath_var=LIBPATH
25192   fi
25193   ;;
25194
25195 amigaos*)
25196   library_names_spec='$libname.ixlibrary $libname.a'
25197   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25198   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'
25199   ;;
25200
25201 beos*)
25202   library_names_spec='${libname}${shared_ext}'
25203   dynamic_linker="$host_os ld.so"
25204   shlibpath_var=LIBRARY_PATH
25205   ;;
25206
25207 bsdi[45]*)
25208   version_type=linux
25209   need_version=no
25210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25211   soname_spec='${libname}${release}${shared_ext}$major'
25212   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25213   shlibpath_var=LD_LIBRARY_PATH
25214   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25215   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25216   # the default ld.so.conf also contains /usr/contrib/lib and
25217   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25218   # libtool to hard-code these into programs
25219   ;;
25220
25221 cygwin* | mingw* | pw32*)
25222   version_type=windows
25223   shrext_cmds=".dll"
25224   need_version=no
25225   need_lib_prefix=no
25226
25227   case $GCC,$host_os in
25228   yes,cygwin* | yes,mingw* | yes,pw32*)
25229     library_names_spec='$libname.dll.a'
25230     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25231     postinstall_cmds='base_file=`basename \${file}`~
25232       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25233       dldir=$destdir/`dirname \$dlpath`~
25234       test -d \$dldir || mkdir -p \$dldir~
25235       $install_prog $dir/$dlname \$dldir/$dlname~
25236       chmod a+x \$dldir/$dlname'
25237     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25238       dlpath=$dir/\$dldll~
25239        $rm \$dlpath'
25240     shlibpath_overrides_runpath=yes
25241
25242     case $host_os in
25243     cygwin*)
25244       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25245       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25246       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25247       ;;
25248     mingw*)
25249       # MinGW DLLs use traditional 'lib' prefix
25250       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25251       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25252       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25253         # It is most probably a Windows format PATH printed by
25254         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25255         # path with ; separators, and with drive letters. We can handle the
25256         # drive letters (cygwin fileutils understands them), so leave them,
25257         # especially as we might pass files found there to a mingw objdump,
25258         # which wouldn't understand a cygwinified path. Ahh.
25259         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25260       else
25261         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25262       fi
25263       ;;
25264     pw32*)
25265       # pw32 DLLs use 'pw' prefix rather than 'lib'
25266       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25267       ;;
25268     esac
25269     ;;
25270
25271   *)
25272     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25273     ;;
25274   esac
25275   dynamic_linker='Win32 ld.exe'
25276   # FIXME: first we should search . and the directory the executable is in
25277   shlibpath_var=PATH
25278   ;;
25279
25280 darwin* | rhapsody*)
25281   dynamic_linker="$host_os dyld"
25282   version_type=darwin
25283   need_lib_prefix=no
25284   need_version=no
25285   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25286   soname_spec='${libname}${release}${major}$shared_ext'
25287   shlibpath_overrides_runpath=yes
25288   shlibpath_var=DYLD_LIBRARY_PATH
25289   shrext_cmds='.dylib'
25290   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25291   if test "$GCC" = yes; then
25292     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"`
25293   else
25294     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25295   fi
25296   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25297   ;;
25298
25299 dgux*)
25300   version_type=linux
25301   need_lib_prefix=no
25302   need_version=no
25303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25304   soname_spec='${libname}${release}${shared_ext}$major'
25305   shlibpath_var=LD_LIBRARY_PATH
25306   ;;
25307
25308 freebsd1*)
25309   dynamic_linker=no
25310   ;;
25311
25312 kfreebsd*-gnu)
25313   version_type=linux
25314   need_lib_prefix=no
25315   need_version=no
25316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25317   soname_spec='${libname}${release}${shared_ext}$major'
25318   shlibpath_var=LD_LIBRARY_PATH
25319   shlibpath_overrides_runpath=no
25320   hardcode_into_libs=yes
25321   dynamic_linker='GNU ld.so'
25322   ;;
25323
25324 freebsd* | dragonfly*)
25325   # DragonFly does not have aout.  When/if they implement a new
25326   # versioning mechanism, adjust this.
25327   if test -x /usr/bin/objformat; then
25328     objformat=`/usr/bin/objformat`
25329   else
25330     case $host_os in
25331     freebsd[123]*) objformat=aout ;;
25332     *) objformat=elf ;;
25333     esac
25334   fi
25335   version_type=freebsd-$objformat
25336   case $version_type in
25337     freebsd-elf*)
25338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25339       need_version=no
25340       need_lib_prefix=no
25341       ;;
25342     freebsd-*)
25343       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25344       need_version=yes
25345       ;;
25346   esac
25347   shlibpath_var=LD_LIBRARY_PATH
25348   case $host_os in
25349   freebsd2*)
25350     shlibpath_overrides_runpath=yes
25351     ;;
25352   freebsd3.[01]* | freebsdelf3.[01]*)
25353     shlibpath_overrides_runpath=yes
25354     hardcode_into_libs=yes
25355     ;;
25356   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25357   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25358     shlibpath_overrides_runpath=no
25359     hardcode_into_libs=yes
25360     ;;
25361   freebsd*) # from 4.6 on
25362     shlibpath_overrides_runpath=yes
25363     hardcode_into_libs=yes
25364     ;;
25365   esac
25366   ;;
25367
25368 gnu*)
25369   version_type=linux
25370   need_lib_prefix=no
25371   need_version=no
25372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25373   soname_spec='${libname}${release}${shared_ext}$major'
25374   shlibpath_var=LD_LIBRARY_PATH
25375   hardcode_into_libs=yes
25376   ;;
25377
25378 hpux9* | hpux10* | hpux11*)
25379   # Give a soname corresponding to the major version so that dld.sl refuses to
25380   # link against other versions.
25381   version_type=sunos
25382   need_lib_prefix=no
25383   need_version=no
25384   case $host_cpu in
25385   ia64*)
25386     shrext_cmds='.so'
25387     hardcode_into_libs=yes
25388     dynamic_linker="$host_os dld.so"
25389     shlibpath_var=LD_LIBRARY_PATH
25390     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392     soname_spec='${libname}${release}${shared_ext}$major'
25393     if test "X$HPUX_IA64_MODE" = X32; then
25394       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25395     else
25396       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25397     fi
25398     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25399     ;;
25400    hppa*64*)
25401      shrext_cmds='.sl'
25402      hardcode_into_libs=yes
25403      dynamic_linker="$host_os dld.sl"
25404      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25405      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25406      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25407      soname_spec='${libname}${release}${shared_ext}$major'
25408      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25409      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25410      ;;
25411    *)
25412     shrext_cmds='.sl'
25413     dynamic_linker="$host_os dld.sl"
25414     shlibpath_var=SHLIB_PATH
25415     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25417     soname_spec='${libname}${release}${shared_ext}$major'
25418     ;;
25419   esac
25420   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25421   postinstall_cmds='chmod 555 $lib'
25422   ;;
25423
25424 interix3*)
25425   version_type=linux
25426   need_lib_prefix=no
25427   need_version=no
25428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429   soname_spec='${libname}${release}${shared_ext}$major'
25430   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25431   shlibpath_var=LD_LIBRARY_PATH
25432   shlibpath_overrides_runpath=no
25433   hardcode_into_libs=yes
25434   ;;
25435
25436 irix5* | irix6* | nonstopux*)
25437   case $host_os in
25438     nonstopux*) version_type=nonstopux ;;
25439     *)
25440         if test "$lt_cv_prog_gnu_ld" = yes; then
25441                 version_type=linux
25442         else
25443                 version_type=irix
25444         fi ;;
25445   esac
25446   need_lib_prefix=no
25447   need_version=no
25448   soname_spec='${libname}${release}${shared_ext}$major'
25449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25450   case $host_os in
25451   irix5* | nonstopux*)
25452     libsuff= shlibsuff=
25453     ;;
25454   *)
25455     case $LD in # libtool.m4 will add one of these switches to LD
25456     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25457       libsuff= shlibsuff= libmagic=32-bit;;
25458     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25459       libsuff=32 shlibsuff=N32 libmagic=N32;;
25460     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25461       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25462     *) libsuff= shlibsuff= libmagic=never-match;;
25463     esac
25464     ;;
25465   esac
25466   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25467   shlibpath_overrides_runpath=no
25468   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25469   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25470   hardcode_into_libs=yes
25471   ;;
25472
25473 # No shared lib support for Linux oldld, aout, or coff.
25474 linux*oldld* | linux*aout* | linux*coff*)
25475   dynamic_linker=no
25476   ;;
25477
25478 # This must be Linux ELF.
25479 linux*)
25480   version_type=linux
25481   need_lib_prefix=no
25482   need_version=no
25483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25484   soname_spec='${libname}${release}${shared_ext}$major'
25485   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25486   shlibpath_var=LD_LIBRARY_PATH
25487   shlibpath_overrides_runpath=no
25488   # This implies no fast_install, which is unacceptable.
25489   # Some rework will be needed to allow for fast_install
25490   # before this can be enabled.
25491   hardcode_into_libs=yes
25492
25493   # Append ld.so.conf contents to the search path
25494   if test -f /etc/ld.so.conf; then
25495     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' ' '`
25496     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25497   fi
25498
25499   # We used to test for /lib/ld.so.1 and disable shared libraries on
25500   # powerpc, because MkLinux only supported shared libraries with the
25501   # GNU dynamic linker.  Since this was broken with cross compilers,
25502   # most powerpc-linux boxes support dynamic linking these days and
25503   # people can always --disable-shared, the test was removed, and we
25504   # assume the GNU/Linux dynamic linker is in use.
25505   dynamic_linker='GNU/Linux ld.so'
25506   ;;
25507
25508 knetbsd*-gnu)
25509   version_type=linux
25510   need_lib_prefix=no
25511   need_version=no
25512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25513   soname_spec='${libname}${release}${shared_ext}$major'
25514   shlibpath_var=LD_LIBRARY_PATH
25515   shlibpath_overrides_runpath=no
25516   hardcode_into_libs=yes
25517   dynamic_linker='GNU ld.so'
25518   ;;
25519
25520 netbsd*)
25521   version_type=sunos
25522   need_lib_prefix=no
25523   need_version=no
25524   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25526     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25527     dynamic_linker='NetBSD (a.out) ld.so'
25528   else
25529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25530     soname_spec='${libname}${release}${shared_ext}$major'
25531     dynamic_linker='NetBSD ld.elf_so'
25532   fi
25533   shlibpath_var=LD_LIBRARY_PATH
25534   shlibpath_overrides_runpath=yes
25535   hardcode_into_libs=yes
25536   ;;
25537
25538 newsos6)
25539   version_type=linux
25540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25541   shlibpath_var=LD_LIBRARY_PATH
25542   shlibpath_overrides_runpath=yes
25543   ;;
25544
25545 nto-qnx*)
25546   version_type=linux
25547   need_lib_prefix=no
25548   need_version=no
25549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25550   soname_spec='${libname}${release}${shared_ext}$major'
25551   shlibpath_var=LD_LIBRARY_PATH
25552   shlibpath_overrides_runpath=yes
25553   ;;
25554
25555 openbsd*)
25556   version_type=sunos
25557   sys_lib_dlsearch_path_spec="/usr/lib"
25558   need_lib_prefix=no
25559   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25560   case $host_os in
25561     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25562     *)                         need_version=no  ;;
25563   esac
25564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25565   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25566   shlibpath_var=LD_LIBRARY_PATH
25567   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25568     case $host_os in
25569       openbsd2.[89] | openbsd2.[89].*)
25570         shlibpath_overrides_runpath=no
25571         ;;
25572       *)
25573         shlibpath_overrides_runpath=yes
25574         ;;
25575       esac
25576   else
25577     shlibpath_overrides_runpath=yes
25578   fi
25579   ;;
25580
25581 os2*)
25582   libname_spec='$name'
25583   shrext_cmds=".dll"
25584   need_lib_prefix=no
25585   library_names_spec='$libname${shared_ext} $libname.a'
25586   dynamic_linker='OS/2 ld.exe'
25587   shlibpath_var=LIBPATH
25588   ;;
25589
25590 osf3* | osf4* | osf5*)
25591   version_type=osf
25592   need_lib_prefix=no
25593   need_version=no
25594   soname_spec='${libname}${release}${shared_ext}$major'
25595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596   shlibpath_var=LD_LIBRARY_PATH
25597   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25598   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25599   ;;
25600
25601 solaris*)
25602   version_type=linux
25603   need_lib_prefix=no
25604   need_version=no
25605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25606   soname_spec='${libname}${release}${shared_ext}$major'
25607   shlibpath_var=LD_LIBRARY_PATH
25608   shlibpath_overrides_runpath=yes
25609   hardcode_into_libs=yes
25610   # ldd complains unless libraries are executable
25611   postinstall_cmds='chmod +x $lib'
25612   ;;
25613
25614 sunos4*)
25615   version_type=sunos
25616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25617   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25618   shlibpath_var=LD_LIBRARY_PATH
25619   shlibpath_overrides_runpath=yes
25620   if test "$with_gnu_ld" = yes; then
25621     need_lib_prefix=no
25622   fi
25623   need_version=yes
25624   ;;
25625
25626 sysv4 | sysv4.3*)
25627   version_type=linux
25628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25629   soname_spec='${libname}${release}${shared_ext}$major'
25630   shlibpath_var=LD_LIBRARY_PATH
25631   case $host_vendor in
25632     sni)
25633       shlibpath_overrides_runpath=no
25634       need_lib_prefix=no
25635       export_dynamic_flag_spec='${wl}-Blargedynsym'
25636       runpath_var=LD_RUN_PATH
25637       ;;
25638     siemens)
25639       need_lib_prefix=no
25640       ;;
25641     motorola)
25642       need_lib_prefix=no
25643       need_version=no
25644       shlibpath_overrides_runpath=no
25645       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25646       ;;
25647   esac
25648   ;;
25649
25650 sysv4*MP*)
25651   if test -d /usr/nec ;then
25652     version_type=linux
25653     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25654     soname_spec='$libname${shared_ext}.$major'
25655     shlibpath_var=LD_LIBRARY_PATH
25656   fi
25657   ;;
25658
25659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25660   version_type=freebsd-elf
25661   need_lib_prefix=no
25662   need_version=no
25663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25664   soname_spec='${libname}${release}${shared_ext}$major'
25665   shlibpath_var=LD_LIBRARY_PATH
25666   hardcode_into_libs=yes
25667   if test "$with_gnu_ld" = yes; then
25668     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25669     shlibpath_overrides_runpath=no
25670   else
25671     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25672     shlibpath_overrides_runpath=yes
25673     case $host_os in
25674       sco3.2v5*)
25675         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25676         ;;
25677     esac
25678   fi
25679   sys_lib_dlsearch_path_spec='/usr/lib'
25680   ;;
25681
25682 uts4*)
25683   version_type=linux
25684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25685   soname_spec='${libname}${release}${shared_ext}$major'
25686   shlibpath_var=LD_LIBRARY_PATH
25687   ;;
25688
25689 *)
25690   dynamic_linker=no
25691   ;;
25692 esac
25693 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25694 echo "${ECHO_T}$dynamic_linker" >&6; }
25695 test "$dynamic_linker" = no && can_build_shared=no
25696
25697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25698 if test "$GCC" = yes; then
25699   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25700 fi
25701
25702 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25703 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25704 hardcode_action_GCJ=
25705 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25706    test -n "$runpath_var_GCJ" || \
25707    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25708
25709   # We can hardcode non-existant directories.
25710   if test "$hardcode_direct_GCJ" != no &&
25711      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25712      # have to relink, otherwise we might link with an installed library
25713      # when we should be linking with a yet-to-be-installed one
25714      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25715      test "$hardcode_minus_L_GCJ" != no; then
25716     # Linking always hardcodes the temporary library directory.
25717     hardcode_action_GCJ=relink
25718   else
25719     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25720     hardcode_action_GCJ=immediate
25721   fi
25722 else
25723   # We cannot hardcode anything, or else we can only hardcode existing
25724   # directories.
25725   hardcode_action_GCJ=unsupported
25726 fi
25727 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25728 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25729
25730 if test "$hardcode_action_GCJ" = relink; then
25731   # Fast installation is not supported
25732   enable_fast_install=no
25733 elif test "$shlibpath_overrides_runpath" = yes ||
25734      test "$enable_shared" = no; then
25735   # Fast installation is not necessary
25736   enable_fast_install=needless
25737 fi
25738
25739
25740 # The else clause should only fire when bootstrapping the
25741 # libtool distribution, otherwise you forgot to ship ltmain.sh
25742 # with your package, and you will get complaints that there are
25743 # no rules to generate ltmain.sh.
25744 if test -f "$ltmain"; then
25745   # See if we are running on zsh, and set the options which allow our commands through
25746   # without removal of \ escapes.
25747   if test -n "${ZSH_VERSION+set}" ; then
25748     setopt NO_GLOB_SUBST
25749   fi
25750   # Now quote all the things that may contain metacharacters while being
25751   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25752   # variables and quote the copies for generation of the libtool script.
25753   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25754     SED SHELL STRIP \
25755     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25756     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25757     deplibs_check_method reload_flag reload_cmds need_locks \
25758     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25759     lt_cv_sys_global_symbol_to_c_name_address \
25760     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25761     old_postinstall_cmds old_postuninstall_cmds \
25762     compiler_GCJ \
25763     CC_GCJ \
25764     LD_GCJ \
25765     lt_prog_compiler_wl_GCJ \
25766     lt_prog_compiler_pic_GCJ \
25767     lt_prog_compiler_static_GCJ \
25768     lt_prog_compiler_no_builtin_flag_GCJ \
25769     export_dynamic_flag_spec_GCJ \
25770     thread_safe_flag_spec_GCJ \
25771     whole_archive_flag_spec_GCJ \
25772     enable_shared_with_static_runtimes_GCJ \
25773     old_archive_cmds_GCJ \
25774     old_archive_from_new_cmds_GCJ \
25775     predep_objects_GCJ \
25776     postdep_objects_GCJ \
25777     predeps_GCJ \
25778     postdeps_GCJ \
25779     compiler_lib_search_path_GCJ \
25780     archive_cmds_GCJ \
25781     archive_expsym_cmds_GCJ \
25782     postinstall_cmds_GCJ \
25783     postuninstall_cmds_GCJ \
25784     old_archive_from_expsyms_cmds_GCJ \
25785     allow_undefined_flag_GCJ \
25786     no_undefined_flag_GCJ \
25787     export_symbols_cmds_GCJ \
25788     hardcode_libdir_flag_spec_GCJ \
25789     hardcode_libdir_flag_spec_ld_GCJ \
25790     hardcode_libdir_separator_GCJ \
25791     hardcode_automatic_GCJ \
25792     module_cmds_GCJ \
25793     module_expsym_cmds_GCJ \
25794     lt_cv_prog_compiler_c_o_GCJ \
25795     exclude_expsyms_GCJ \
25796     include_expsyms_GCJ; do
25797
25798     case $var in
25799     old_archive_cmds_GCJ | \
25800     old_archive_from_new_cmds_GCJ | \
25801     archive_cmds_GCJ | \
25802     archive_expsym_cmds_GCJ | \
25803     module_cmds_GCJ | \
25804     module_expsym_cmds_GCJ | \
25805     old_archive_from_expsyms_cmds_GCJ | \
25806     export_symbols_cmds_GCJ | \
25807     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25808     postinstall_cmds | postuninstall_cmds | \
25809     old_postinstall_cmds | old_postuninstall_cmds | \
25810     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25811       # Double-quote double-evaled strings.
25812       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25813       ;;
25814     *)
25815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25816       ;;
25817     esac
25818   done
25819
25820   case $lt_echo in
25821   *'\$0 --fallback-echo"')
25822     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25823     ;;
25824   esac
25825
25826 cfgfile="$ofile"
25827
25828   cat <<__EOF__ >> "$cfgfile"
25829 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25830
25831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25832
25833 # Shell to use when invoking shell scripts.
25834 SHELL=$lt_SHELL
25835
25836 # Whether or not to build shared libraries.
25837 build_libtool_libs=$enable_shared
25838
25839 # Whether or not to build static libraries.
25840 build_old_libs=$enable_static
25841
25842 # Whether or not to add -lc for building shared libraries.
25843 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25844
25845 # Whether or not to disallow shared libs when runtime libs are static
25846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25847
25848 # Whether or not to optimize for fast installation.
25849 fast_install=$enable_fast_install
25850
25851 # The host system.
25852 host_alias=$host_alias
25853 host=$host
25854 host_os=$host_os
25855
25856 # The build system.
25857 build_alias=$build_alias
25858 build=$build
25859 build_os=$build_os
25860
25861 # An echo program that does not interpret backslashes.
25862 echo=$lt_echo
25863
25864 # The archiver.
25865 AR=$lt_AR
25866 AR_FLAGS=$lt_AR_FLAGS
25867
25868 # A C compiler.
25869 LTCC=$lt_LTCC
25870
25871 # LTCC compiler flags.
25872 LTCFLAGS=$lt_LTCFLAGS
25873
25874 # A language-specific compiler.
25875 CC=$lt_compiler_GCJ
25876
25877 # Is the compiler the GNU C compiler?
25878 with_gcc=$GCC_GCJ
25879
25880 # An ERE matcher.
25881 EGREP=$lt_EGREP
25882
25883 # The linker used to build libraries.
25884 LD=$lt_LD_GCJ
25885
25886 # Whether we need hard or soft links.
25887 LN_S=$lt_LN_S
25888
25889 # A BSD-compatible nm program.
25890 NM=$lt_NM
25891
25892 # A symbol stripping program
25893 STRIP=$lt_STRIP
25894
25895 # Used to examine libraries when file_magic_cmd begins "file"
25896 MAGIC_CMD=$MAGIC_CMD
25897
25898 # Used on cygwin: DLL creation program.
25899 DLLTOOL="$DLLTOOL"
25900
25901 # Used on cygwin: object dumper.
25902 OBJDUMP="$OBJDUMP"
25903
25904 # Used on cygwin: assembler.
25905 AS="$AS"
25906
25907 # The name of the directory that contains temporary libtool files.
25908 objdir=$objdir
25909
25910 # How to create reloadable object files.
25911 reload_flag=$lt_reload_flag
25912 reload_cmds=$lt_reload_cmds
25913
25914 # How to pass a linker flag through the compiler.
25915 wl=$lt_lt_prog_compiler_wl_GCJ
25916
25917 # Object file suffix (normally "o").
25918 objext="$ac_objext"
25919
25920 # Old archive suffix (normally "a").
25921 libext="$libext"
25922
25923 # Shared library suffix (normally ".so").
25924 shrext_cmds='$shrext_cmds'
25925
25926 # Executable file suffix (normally "").
25927 exeext="$exeext"
25928
25929 # Additional compiler flags for building library objects.
25930 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25931 pic_mode=$pic_mode
25932
25933 # What is the maximum length of a command?
25934 max_cmd_len=$lt_cv_sys_max_cmd_len
25935
25936 # Does compiler simultaneously support -c and -o options?
25937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25938
25939 # Must we lock files when doing compilation?
25940 need_locks=$lt_need_locks
25941
25942 # Do we need the lib prefix for modules?
25943 need_lib_prefix=$need_lib_prefix
25944
25945 # Do we need a version for libraries?
25946 need_version=$need_version
25947
25948 # Whether dlopen is supported.
25949 dlopen_support=$enable_dlopen
25950
25951 # Whether dlopen of programs is supported.
25952 dlopen_self=$enable_dlopen_self
25953
25954 # Whether dlopen of statically linked programs is supported.
25955 dlopen_self_static=$enable_dlopen_self_static
25956
25957 # Compiler flag to prevent dynamic linking.
25958 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25959
25960 # Compiler flag to turn off builtin functions.
25961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25962
25963 # Compiler flag to allow reflexive dlopens.
25964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25965
25966 # Compiler flag to generate shared objects directly from archives.
25967 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25968
25969 # Compiler flag to generate thread-safe objects.
25970 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25971
25972 # Library versioning type.
25973 version_type=$version_type
25974
25975 # Format of library name prefix.
25976 libname_spec=$lt_libname_spec
25977
25978 # List of archive names.  First name is the real one, the rest are links.
25979 # The last name is the one that the linker finds with -lNAME.
25980 library_names_spec=$lt_library_names_spec
25981
25982 # The coded name of the library, if different from the real name.
25983 soname_spec=$lt_soname_spec
25984
25985 # Commands used to build and install an old-style archive.
25986 RANLIB=$lt_RANLIB
25987 old_archive_cmds=$lt_old_archive_cmds_GCJ
25988 old_postinstall_cmds=$lt_old_postinstall_cmds
25989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25990
25991 # Create an old-style archive from a shared archive.
25992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25993
25994 # Create a temporary old-style archive to link instead of a shared archive.
25995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25996
25997 # Commands used to build and install a shared archive.
25998 archive_cmds=$lt_archive_cmds_GCJ
25999 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26000 postinstall_cmds=$lt_postinstall_cmds
26001 postuninstall_cmds=$lt_postuninstall_cmds
26002
26003 # Commands used to build a loadable module (assumed same as above if empty)
26004 module_cmds=$lt_module_cmds_GCJ
26005 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26006
26007 # Commands to strip libraries.
26008 old_striplib=$lt_old_striplib
26009 striplib=$lt_striplib
26010
26011 # Dependencies to place before the objects being linked to create a
26012 # shared library.
26013 predep_objects=$lt_predep_objects_GCJ
26014
26015 # Dependencies to place after the objects being linked to create a
26016 # shared library.
26017 postdep_objects=$lt_postdep_objects_GCJ
26018
26019 # Dependencies to place before the objects being linked to create a
26020 # shared library.
26021 predeps=$lt_predeps_GCJ
26022
26023 # Dependencies to place after the objects being linked to create a
26024 # shared library.
26025 postdeps=$lt_postdeps_GCJ
26026
26027 # The library search path used internally by the compiler when linking
26028 # a shared library.
26029 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26030
26031 # Method to check whether dependent libraries are shared objects.
26032 deplibs_check_method=$lt_deplibs_check_method
26033
26034 # Command to use when deplibs_check_method == file_magic.
26035 file_magic_cmd=$lt_file_magic_cmd
26036
26037 # Flag that allows shared libraries with undefined symbols to be built.
26038 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26039
26040 # Flag that forces no undefined symbols.
26041 no_undefined_flag=$lt_no_undefined_flag_GCJ
26042
26043 # Commands used to finish a libtool library installation in a directory.
26044 finish_cmds=$lt_finish_cmds
26045
26046 # Same as above, but a single script fragment to be evaled but not shown.
26047 finish_eval=$lt_finish_eval
26048
26049 # Take the output of nm and produce a listing of raw symbols and C names.
26050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26051
26052 # Transform the output of nm in a proper C declaration
26053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26054
26055 # Transform the output of nm in a C name address pair
26056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26057
26058 # This is the shared library runtime path variable.
26059 runpath_var=$runpath_var
26060
26061 # This is the shared library path variable.
26062 shlibpath_var=$shlibpath_var
26063
26064 # Is shlibpath searched before the hard-coded library search path?
26065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26066
26067 # How to hardcode a shared library path into an executable.
26068 hardcode_action=$hardcode_action_GCJ
26069
26070 # Whether we should hardcode library paths into libraries.
26071 hardcode_into_libs=$hardcode_into_libs
26072
26073 # Flag to hardcode \$libdir into a binary during linking.
26074 # This must work even if \$libdir does not exist.
26075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26076
26077 # If ld is used when linking, flag to hardcode \$libdir into
26078 # a binary during linking. This must work even if \$libdir does
26079 # not exist.
26080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26081
26082 # Whether we need a single -rpath flag with a separated argument.
26083 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26084
26085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26086 # resulting binary.
26087 hardcode_direct=$hardcode_direct_GCJ
26088
26089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26090 # resulting binary.
26091 hardcode_minus_L=$hardcode_minus_L_GCJ
26092
26093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26094 # the resulting binary.
26095 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26096
26097 # Set to yes if building a shared library automatically hardcodes DIR into the library
26098 # and all subsequent libraries and executables linked against it.
26099 hardcode_automatic=$hardcode_automatic_GCJ
26100
26101 # Variables whose values should be saved in libtool wrapper scripts and
26102 # restored at relink time.
26103 variables_saved_for_relink="$variables_saved_for_relink"
26104
26105 # Whether libtool must link a program against all its dependency libraries.
26106 link_all_deplibs=$link_all_deplibs_GCJ
26107
26108 # Compile-time system search path for libraries
26109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26110
26111 # Run-time system search path for libraries
26112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26113
26114 # Fix the shell variable \$srcfile for the compiler.
26115 fix_srcfile_path="$fix_srcfile_path_GCJ"
26116
26117 # Set to yes if exported symbols are required.
26118 always_export_symbols=$always_export_symbols_GCJ
26119
26120 # The commands to list exported symbols.
26121 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26122
26123 # The commands to extract the exported symbol list from a shared archive.
26124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26125
26126 # Symbols that should not be listed in the preloaded symbols.
26127 exclude_expsyms=$lt_exclude_expsyms_GCJ
26128
26129 # Symbols that must always be exported.
26130 include_expsyms=$lt_include_expsyms_GCJ
26131
26132 # ### END LIBTOOL TAG CONFIG: $tagname
26133
26134 __EOF__
26135
26136
26137 else
26138   # If there is no Makefile yet, we rely on a make rule to execute
26139   # `config.status --recheck' to rerun these tests and create the
26140   # libtool script then.
26141   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26142   if test -f "$ltmain_in"; then
26143     test -f Makefile && make "$ltmain"
26144   fi
26145 fi
26146
26147
26148 ac_ext=c
26149 ac_cpp='$CPP $CPPFLAGS'
26150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153
26154 CC="$lt_save_CC"
26155
26156         else
26157           tagname=""
26158         fi
26159         ;;
26160
26161       RC)
26162         ac_ext=c
26163 ac_cpp='$CPP $CPPFLAGS'
26164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26167
26168
26169 # Source file extension for RC test sources.
26170 ac_ext=rc
26171
26172 # Object file extension for compiled RC test sources.
26173 objext=o
26174 objext_RC=$objext
26175
26176 # Code to be used in simple compile tests
26177 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26178
26179 # Code to be used in simple link tests
26180 lt_simple_link_test_code="$lt_simple_compile_test_code"
26181
26182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26183
26184 # If no C compiler was specified, use CC.
26185 LTCC=${LTCC-"$CC"}
26186
26187 # If no C compiler flags were specified, use CFLAGS.
26188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26189
26190 # Allow CC to be a program name with arguments.
26191 compiler=$CC
26192
26193
26194 # save warnings/boilerplate of simple test code
26195 ac_outfile=conftest.$ac_objext
26196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26198 _lt_compiler_boilerplate=`cat conftest.err`
26199 $rm conftest*
26200
26201 ac_outfile=conftest.$ac_objext
26202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26204 _lt_linker_boilerplate=`cat conftest.err`
26205 $rm conftest*
26206
26207
26208 # Allow CC to be a program name with arguments.
26209 lt_save_CC="$CC"
26210 CC=${RC-"windres"}
26211 compiler=$CC
26212 compiler_RC=$CC
26213 for cc_temp in $compiler""; do
26214   case $cc_temp in
26215     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26216     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26217     \-*) ;;
26218     *) break;;
26219   esac
26220 done
26221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26222
26223 lt_cv_prog_compiler_c_o_RC=yes
26224
26225 # The else clause should only fire when bootstrapping the
26226 # libtool distribution, otherwise you forgot to ship ltmain.sh
26227 # with your package, and you will get complaints that there are
26228 # no rules to generate ltmain.sh.
26229 if test -f "$ltmain"; then
26230   # See if we are running on zsh, and set the options which allow our commands through
26231   # without removal of \ escapes.
26232   if test -n "${ZSH_VERSION+set}" ; then
26233     setopt NO_GLOB_SUBST
26234   fi
26235   # Now quote all the things that may contain metacharacters while being
26236   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26237   # variables and quote the copies for generation of the libtool script.
26238   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26239     SED SHELL STRIP \
26240     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26241     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26242     deplibs_check_method reload_flag reload_cmds need_locks \
26243     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26244     lt_cv_sys_global_symbol_to_c_name_address \
26245     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26246     old_postinstall_cmds old_postuninstall_cmds \
26247     compiler_RC \
26248     CC_RC \
26249     LD_RC \
26250     lt_prog_compiler_wl_RC \
26251     lt_prog_compiler_pic_RC \
26252     lt_prog_compiler_static_RC \
26253     lt_prog_compiler_no_builtin_flag_RC \
26254     export_dynamic_flag_spec_RC \
26255     thread_safe_flag_spec_RC \
26256     whole_archive_flag_spec_RC \
26257     enable_shared_with_static_runtimes_RC \
26258     old_archive_cmds_RC \
26259     old_archive_from_new_cmds_RC \
26260     predep_objects_RC \
26261     postdep_objects_RC \
26262     predeps_RC \
26263     postdeps_RC \
26264     compiler_lib_search_path_RC \
26265     archive_cmds_RC \
26266     archive_expsym_cmds_RC \
26267     postinstall_cmds_RC \
26268     postuninstall_cmds_RC \
26269     old_archive_from_expsyms_cmds_RC \
26270     allow_undefined_flag_RC \
26271     no_undefined_flag_RC \
26272     export_symbols_cmds_RC \
26273     hardcode_libdir_flag_spec_RC \
26274     hardcode_libdir_flag_spec_ld_RC \
26275     hardcode_libdir_separator_RC \
26276     hardcode_automatic_RC \
26277     module_cmds_RC \
26278     module_expsym_cmds_RC \
26279     lt_cv_prog_compiler_c_o_RC \
26280     exclude_expsyms_RC \
26281     include_expsyms_RC; do
26282
26283     case $var in
26284     old_archive_cmds_RC | \
26285     old_archive_from_new_cmds_RC | \
26286     archive_cmds_RC | \
26287     archive_expsym_cmds_RC | \
26288     module_cmds_RC | \
26289     module_expsym_cmds_RC | \
26290     old_archive_from_expsyms_cmds_RC | \
26291     export_symbols_cmds_RC | \
26292     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26293     postinstall_cmds | postuninstall_cmds | \
26294     old_postinstall_cmds | old_postuninstall_cmds | \
26295     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26296       # Double-quote double-evaled strings.
26297       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26298       ;;
26299     *)
26300       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26301       ;;
26302     esac
26303   done
26304
26305   case $lt_echo in
26306   *'\$0 --fallback-echo"')
26307     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26308     ;;
26309   esac
26310
26311 cfgfile="$ofile"
26312
26313   cat <<__EOF__ >> "$cfgfile"
26314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26315
26316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26317
26318 # Shell to use when invoking shell scripts.
26319 SHELL=$lt_SHELL
26320
26321 # Whether or not to build shared libraries.
26322 build_libtool_libs=$enable_shared
26323
26324 # Whether or not to build static libraries.
26325 build_old_libs=$enable_static
26326
26327 # Whether or not to add -lc for building shared libraries.
26328 build_libtool_need_lc=$archive_cmds_need_lc_RC
26329
26330 # Whether or not to disallow shared libs when runtime libs are static
26331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26332
26333 # Whether or not to optimize for fast installation.
26334 fast_install=$enable_fast_install
26335
26336 # The host system.
26337 host_alias=$host_alias
26338 host=$host
26339 host_os=$host_os
26340
26341 # The build system.
26342 build_alias=$build_alias
26343 build=$build
26344 build_os=$build_os
26345
26346 # An echo program that does not interpret backslashes.
26347 echo=$lt_echo
26348
26349 # The archiver.
26350 AR=$lt_AR
26351 AR_FLAGS=$lt_AR_FLAGS
26352
26353 # A C compiler.
26354 LTCC=$lt_LTCC
26355
26356 # LTCC compiler flags.
26357 LTCFLAGS=$lt_LTCFLAGS
26358
26359 # A language-specific compiler.
26360 CC=$lt_compiler_RC
26361
26362 # Is the compiler the GNU C compiler?
26363 with_gcc=$GCC_RC
26364
26365 # An ERE matcher.
26366 EGREP=$lt_EGREP
26367
26368 # The linker used to build libraries.
26369 LD=$lt_LD_RC
26370
26371 # Whether we need hard or soft links.
26372 LN_S=$lt_LN_S
26373
26374 # A BSD-compatible nm program.
26375 NM=$lt_NM
26376
26377 # A symbol stripping program
26378 STRIP=$lt_STRIP
26379
26380 # Used to examine libraries when file_magic_cmd begins "file"
26381 MAGIC_CMD=$MAGIC_CMD
26382
26383 # Used on cygwin: DLL creation program.
26384 DLLTOOL="$DLLTOOL"
26385
26386 # Used on cygwin: object dumper.
26387 OBJDUMP="$OBJDUMP"
26388
26389 # Used on cygwin: assembler.
26390 AS="$AS"
26391
26392 # The name of the directory that contains temporary libtool files.
26393 objdir=$objdir
26394
26395 # How to create reloadable object files.
26396 reload_flag=$lt_reload_flag
26397 reload_cmds=$lt_reload_cmds
26398
26399 # How to pass a linker flag through the compiler.
26400 wl=$lt_lt_prog_compiler_wl_RC
26401
26402 # Object file suffix (normally "o").
26403 objext="$ac_objext"
26404
26405 # Old archive suffix (normally "a").
26406 libext="$libext"
26407
26408 # Shared library suffix (normally ".so").
26409 shrext_cmds='$shrext_cmds'
26410
26411 # Executable file suffix (normally "").
26412 exeext="$exeext"
26413
26414 # Additional compiler flags for building library objects.
26415 pic_flag=$lt_lt_prog_compiler_pic_RC
26416 pic_mode=$pic_mode
26417
26418 # What is the maximum length of a command?
26419 max_cmd_len=$lt_cv_sys_max_cmd_len
26420
26421 # Does compiler simultaneously support -c and -o options?
26422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26423
26424 # Must we lock files when doing compilation?
26425 need_locks=$lt_need_locks
26426
26427 # Do we need the lib prefix for modules?
26428 need_lib_prefix=$need_lib_prefix
26429
26430 # Do we need a version for libraries?
26431 need_version=$need_version
26432
26433 # Whether dlopen is supported.
26434 dlopen_support=$enable_dlopen
26435
26436 # Whether dlopen of programs is supported.
26437 dlopen_self=$enable_dlopen_self
26438
26439 # Whether dlopen of statically linked programs is supported.
26440 dlopen_self_static=$enable_dlopen_self_static
26441
26442 # Compiler flag to prevent dynamic linking.
26443 link_static_flag=$lt_lt_prog_compiler_static_RC
26444
26445 # Compiler flag to turn off builtin functions.
26446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26447
26448 # Compiler flag to allow reflexive dlopens.
26449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26450
26451 # Compiler flag to generate shared objects directly from archives.
26452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26453
26454 # Compiler flag to generate thread-safe objects.
26455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26456
26457 # Library versioning type.
26458 version_type=$version_type
26459
26460 # Format of library name prefix.
26461 libname_spec=$lt_libname_spec
26462
26463 # List of archive names.  First name is the real one, the rest are links.
26464 # The last name is the one that the linker finds with -lNAME.
26465 library_names_spec=$lt_library_names_spec
26466
26467 # The coded name of the library, if different from the real name.
26468 soname_spec=$lt_soname_spec
26469
26470 # Commands used to build and install an old-style archive.
26471 RANLIB=$lt_RANLIB
26472 old_archive_cmds=$lt_old_archive_cmds_RC
26473 old_postinstall_cmds=$lt_old_postinstall_cmds
26474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26475
26476 # Create an old-style archive from a shared archive.
26477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26478
26479 # Create a temporary old-style archive to link instead of a shared archive.
26480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26481
26482 # Commands used to build and install a shared archive.
26483 archive_cmds=$lt_archive_cmds_RC
26484 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26485 postinstall_cmds=$lt_postinstall_cmds
26486 postuninstall_cmds=$lt_postuninstall_cmds
26487
26488 # Commands used to build a loadable module (assumed same as above if empty)
26489 module_cmds=$lt_module_cmds_RC
26490 module_expsym_cmds=$lt_module_expsym_cmds_RC
26491
26492 # Commands to strip libraries.
26493 old_striplib=$lt_old_striplib
26494 striplib=$lt_striplib
26495
26496 # Dependencies to place before the objects being linked to create a
26497 # shared library.
26498 predep_objects=$lt_predep_objects_RC
26499
26500 # Dependencies to place after the objects being linked to create a
26501 # shared library.
26502 postdep_objects=$lt_postdep_objects_RC
26503
26504 # Dependencies to place before the objects being linked to create a
26505 # shared library.
26506 predeps=$lt_predeps_RC
26507
26508 # Dependencies to place after the objects being linked to create a
26509 # shared library.
26510 postdeps=$lt_postdeps_RC
26511
26512 # The library search path used internally by the compiler when linking
26513 # a shared library.
26514 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26515
26516 # Method to check whether dependent libraries are shared objects.
26517 deplibs_check_method=$lt_deplibs_check_method
26518
26519 # Command to use when deplibs_check_method == file_magic.
26520 file_magic_cmd=$lt_file_magic_cmd
26521
26522 # Flag that allows shared libraries with undefined symbols to be built.
26523 allow_undefined_flag=$lt_allow_undefined_flag_RC
26524
26525 # Flag that forces no undefined symbols.
26526 no_undefined_flag=$lt_no_undefined_flag_RC
26527
26528 # Commands used to finish a libtool library installation in a directory.
26529 finish_cmds=$lt_finish_cmds
26530
26531 # Same as above, but a single script fragment to be evaled but not shown.
26532 finish_eval=$lt_finish_eval
26533
26534 # Take the output of nm and produce a listing of raw symbols and C names.
26535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26536
26537 # Transform the output of nm in a proper C declaration
26538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26539
26540 # Transform the output of nm in a C name address pair
26541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26542
26543 # This is the shared library runtime path variable.
26544 runpath_var=$runpath_var
26545
26546 # This is the shared library path variable.
26547 shlibpath_var=$shlibpath_var
26548
26549 # Is shlibpath searched before the hard-coded library search path?
26550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26551
26552 # How to hardcode a shared library path into an executable.
26553 hardcode_action=$hardcode_action_RC
26554
26555 # Whether we should hardcode library paths into libraries.
26556 hardcode_into_libs=$hardcode_into_libs
26557
26558 # Flag to hardcode \$libdir into a binary during linking.
26559 # This must work even if \$libdir does not exist.
26560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26561
26562 # If ld is used when linking, flag to hardcode \$libdir into
26563 # a binary during linking. This must work even if \$libdir does
26564 # not exist.
26565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26566
26567 # Whether we need a single -rpath flag with a separated argument.
26568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26569
26570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26571 # resulting binary.
26572 hardcode_direct=$hardcode_direct_RC
26573
26574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26575 # resulting binary.
26576 hardcode_minus_L=$hardcode_minus_L_RC
26577
26578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26579 # the resulting binary.
26580 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26581
26582 # Set to yes if building a shared library automatically hardcodes DIR into the library
26583 # and all subsequent libraries and executables linked against it.
26584 hardcode_automatic=$hardcode_automatic_RC
26585
26586 # Variables whose values should be saved in libtool wrapper scripts and
26587 # restored at relink time.
26588 variables_saved_for_relink="$variables_saved_for_relink"
26589
26590 # Whether libtool must link a program against all its dependency libraries.
26591 link_all_deplibs=$link_all_deplibs_RC
26592
26593 # Compile-time system search path for libraries
26594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26595
26596 # Run-time system search path for libraries
26597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26598
26599 # Fix the shell variable \$srcfile for the compiler.
26600 fix_srcfile_path="$fix_srcfile_path_RC"
26601
26602 # Set to yes if exported symbols are required.
26603 always_export_symbols=$always_export_symbols_RC
26604
26605 # The commands to list exported symbols.
26606 export_symbols_cmds=$lt_export_symbols_cmds_RC
26607
26608 # The commands to extract the exported symbol list from a shared archive.
26609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26610
26611 # Symbols that should not be listed in the preloaded symbols.
26612 exclude_expsyms=$lt_exclude_expsyms_RC
26613
26614 # Symbols that must always be exported.
26615 include_expsyms=$lt_include_expsyms_RC
26616
26617 # ### END LIBTOOL TAG CONFIG: $tagname
26618
26619 __EOF__
26620
26621
26622 else
26623   # If there is no Makefile yet, we rely on a make rule to execute
26624   # `config.status --recheck' to rerun these tests and create the
26625   # libtool script then.
26626   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26627   if test -f "$ltmain_in"; then
26628     test -f Makefile && make "$ltmain"
26629   fi
26630 fi
26631
26632
26633 ac_ext=c
26634 ac_cpp='$CPP $CPPFLAGS'
26635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26638
26639 CC="$lt_save_CC"
26640
26641         ;;
26642
26643       *)
26644         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26645 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26646    { (exit 1); exit 1; }; }
26647         ;;
26648       esac
26649
26650       # Append the new tag name to the list of available tags.
26651       if test -n "$tagname" ; then
26652       available_tags="$available_tags $tagname"
26653     fi
26654     fi
26655   done
26656   IFS="$lt_save_ifs"
26657
26658   # Now substitute the updated list of available tags.
26659   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26660     mv "${ofile}T" "$ofile"
26661     chmod +x "$ofile"
26662   else
26663     rm -f "${ofile}T"
26664     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26665 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26666    { (exit 1); exit 1; }; }
26667   fi
26668 fi
26669
26670
26671
26672 # This can be used to rebuild libtool when needed
26673 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26674
26675 # Always use our own libtool.
26676 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26677
26678 # Prevent multiple expansion
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700 if test "$lt_cv_dlopen_self" = "yes" ; then
26701
26702 cat >>confdefs.h <<\_ACEOF
26703 #define CAN_DLOPEN_SELF 1
26704 _ACEOF
26705
26706 fi
26707
26708 etags_version=`$ETAGS --version 2>&1`
26709 case "$etags_version" in
26710         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26711         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26712         *) ETAGSFLAGS="" ;;
26713 esac
26714 ETAGSFLAGS=$ETAGSFLAGS
26715
26716
26717 if test "$WITH_LLVMGCCDIR" = "default" ; then
26718   LLVMGCC="llvm-gcc${EXEEXT}"
26719   LLVMGXX="llvm-g++${EXEEXT}"
26720   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26721 set dummy $LLVMGCC; ac_word=$2
26722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26724 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727   case $LLVMGCC in
26728   [\\/]* | ?:[\\/]*)
26729   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26730   ;;
26731   *)
26732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26733 for as_dir in $PATH
26734 do
26735   IFS=$as_save_IFS
26736   test -z "$as_dir" && as_dir=.
26737   for ac_exec_ext in '' $ac_executable_extensions; do
26738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26739     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26741     break 2
26742   fi
26743 done
26744 done
26745 IFS=$as_save_IFS
26746
26747   ;;
26748 esac
26749 fi
26750 LLVMGCC=$ac_cv_path_LLVMGCC
26751 if test -n "$LLVMGCC"; then
26752   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26753 echo "${ECHO_T}$LLVMGCC" >&6; }
26754 else
26755   { echo "$as_me:$LINENO: result: no" >&5
26756 echo "${ECHO_T}no" >&6; }
26757 fi
26758
26759
26760   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26761 set dummy $LLVMGXX; ac_word=$2
26762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26764 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26765   echo $ECHO_N "(cached) $ECHO_C" >&6
26766 else
26767   case $LLVMGXX in
26768   [\\/]* | ?:[\\/]*)
26769   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26770   ;;
26771   *)
26772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26773 for as_dir in $PATH
26774 do
26775   IFS=$as_save_IFS
26776   test -z "$as_dir" && as_dir=.
26777   for ac_exec_ext in '' $ac_executable_extensions; do
26778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26779     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26781     break 2
26782   fi
26783 done
26784 done
26785 IFS=$as_save_IFS
26786
26787   ;;
26788 esac
26789 fi
26790 LLVMGXX=$ac_cv_path_LLVMGXX
26791 if test -n "$LLVMGXX"; then
26792   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26793 echo "${ECHO_T}$LLVMGXX" >&6; }
26794 else
26795   { echo "$as_me:$LINENO: result: no" >&5
26796 echo "${ECHO_T}no" >&6; }
26797 fi
26798
26799
26800 else
26801   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26802   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26803   LLVMGCC=$LLVMGCC
26804
26805   LLVMGXX=$LLVMGXX
26806
26807 fi
26808
26809 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26810 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26811
26812 ICC=no
26813 IXX=no
26814 case $CC in
26815   icc*|icpc*)
26816     ICC=yes
26817     IXX=yes
26818     ;;
26819    *)
26820     ;;
26821 esac
26822
26823 if test "$GCC" != "yes" && test "$ICC" != "yes"
26824 then
26825   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26826 echo "$as_me: error: gcc|icc required but not found" >&2;}
26827    { (exit 1); exit 1; }; }
26828 fi
26829
26830 if test "$GXX" != "yes" && test "$IXX" != "yes"
26831 then
26832   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26833 echo "$as_me: error: g++|icc required but not found" >&2;}
26834    { (exit 1); exit 1; }; }
26835 fi
26836
26837 if test "$GCC" = "yes"
26838 then
26839   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26840   if test "$gccmajor" -lt "3"
26841   then
26842     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26843 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26844    { (exit 1); exit 1; }; }
26845   fi
26846 fi
26847
26848 if test -z "$llvm_cv_gnu_make_command"
26849 then
26850   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26851 echo "$as_me: error: GNU Make required but not found" >&2;}
26852    { (exit 1); exit 1; }; }
26853 fi
26854
26855 { echo "$as_me:$LINENO: result: ok" >&5
26856 echo "${ECHO_T}ok" >&6; }
26857
26858
26859
26860 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26861 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26862 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26863   echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865   ac_check_lib_save_LIBS=$LIBS
26866 LIBS="-lelf  $LIBS"
26867 cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h.  */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h.  */
26873
26874 /* Override any GCC internal prototype to avoid an error.
26875    Use char because int might match the return type of a GCC
26876    builtin and then its argument prototype would still apply.  */
26877 #ifdef __cplusplus
26878 extern "C"
26879 #endif
26880 char elf_begin ();
26881 int
26882 main ()
26883 {
26884 return elf_begin ();
26885   ;
26886   return 0;
26887 }
26888 _ACEOF
26889 rm -f conftest.$ac_objext conftest$ac_exeext
26890 if { (ac_try="$ac_link"
26891 case "(($ac_try" in
26892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893   *) ac_try_echo=$ac_try;;
26894 esac
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896   (eval "$ac_link") 2>conftest.er1
26897   ac_status=$?
26898   grep -v '^ *+' conftest.er1 >conftest.err
26899   rm -f conftest.er1
26900   cat conftest.err >&5
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); } &&
26903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26904   { (case "(($ac_try" in
26905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906   *) ac_try_echo=$ac_try;;
26907 esac
26908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26909   (eval "$ac_try") 2>&5
26910   ac_status=$?
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); }; } &&
26913          { ac_try='test -s conftest$ac_exeext'
26914   { (case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_try") 2>&5
26920   ac_status=$?
26921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922   (exit $ac_status); }; }; then
26923   ac_cv_lib_elf_elf_begin=yes
26924 else
26925   echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928         ac_cv_lib_elf_elf_begin=no
26929 fi
26930
26931 rm -f core conftest.err conftest.$ac_objext \
26932       conftest$ac_exeext conftest.$ac_ext
26933 LIBS=$ac_check_lib_save_LIBS
26934 fi
26935 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26936 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26937 if test $ac_cv_lib_elf_elf_begin = yes; then
26938   cat >>confdefs.h <<_ACEOF
26939 #define HAVE_LIBELF 1
26940 _ACEOF
26941
26942   LIBS="-lelf $LIBS"
26943
26944 fi
26945
26946
26947 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26948 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26949 if test "${ac_cv_lib_m_sin+set}" = set; then
26950   echo $ECHO_N "(cached) $ECHO_C" >&6
26951 else
26952   ac_check_lib_save_LIBS=$LIBS
26953 LIBS="-lm  $LIBS"
26954 cat >conftest.$ac_ext <<_ACEOF
26955 /* confdefs.h.  */
26956 _ACEOF
26957 cat confdefs.h >>conftest.$ac_ext
26958 cat >>conftest.$ac_ext <<_ACEOF
26959 /* end confdefs.h.  */
26960
26961 /* Override any GCC internal prototype to avoid an error.
26962    Use char because int might match the return type of a GCC
26963    builtin and then its argument prototype would still apply.  */
26964 #ifdef __cplusplus
26965 extern "C"
26966 #endif
26967 char sin ();
26968 int
26969 main ()
26970 {
26971 return sin ();
26972   ;
26973   return 0;
26974 }
26975 _ACEOF
26976 rm -f conftest.$ac_objext conftest$ac_exeext
26977 if { (ac_try="$ac_link"
26978 case "(($ac_try" in
26979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980   *) ac_try_echo=$ac_try;;
26981 esac
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983   (eval "$ac_link") 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } &&
26990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26991   { (case "(($ac_try" in
26992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993   *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996   (eval "$ac_try") 2>&5
26997   ac_status=$?
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); }; } &&
27000          { ac_try='test -s conftest$ac_exeext'
27001   { (case "(($ac_try" in
27002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003   *) ac_try_echo=$ac_try;;
27004 esac
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006   (eval "$ac_try") 2>&5
27007   ac_status=$?
27008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009   (exit $ac_status); }; }; then
27010   ac_cv_lib_m_sin=yes
27011 else
27012   echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27014
27015         ac_cv_lib_m_sin=no
27016 fi
27017
27018 rm -f core conftest.err conftest.$ac_objext \
27019       conftest$ac_exeext conftest.$ac_ext
27020 LIBS=$ac_check_lib_save_LIBS
27021 fi
27022 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27023 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27024 if test $ac_cv_lib_m_sin = yes; then
27025   cat >>confdefs.h <<_ACEOF
27026 #define HAVE_LIBM 1
27027 _ACEOF
27028
27029   LIBS="-lm $LIBS"
27030
27031 fi
27032
27033 if test "$llvm_cv_os_type" = "MingW" ; then
27034
27035 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27036 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27037 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27038   echo $ECHO_N "(cached) $ECHO_C" >&6
27039 else
27040   ac_check_lib_save_LIBS=$LIBS
27041 LIBS="-limagehlp  $LIBS"
27042 cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h.  */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h.  */
27048
27049
27050 int
27051 main ()
27052 {
27053 return main ();
27054   ;
27055   return 0;
27056 }
27057 _ACEOF
27058 rm -f conftest.$ac_objext conftest$ac_exeext
27059 if { (ac_try="$ac_link"
27060 case "(($ac_try" in
27061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062   *) ac_try_echo=$ac_try;;
27063 esac
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065   (eval "$ac_link") 2>conftest.er1
27066   ac_status=$?
27067   grep -v '^ *+' conftest.er1 >conftest.err
27068   rm -f conftest.er1
27069   cat conftest.err >&5
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } &&
27072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27073   { (case "(($ac_try" in
27074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075   *) ac_try_echo=$ac_try;;
27076 esac
27077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078   (eval "$ac_try") 2>&5
27079   ac_status=$?
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); }; } &&
27082          { ac_try='test -s conftest$ac_exeext'
27083   { (case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_try") 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; }; then
27092   ac_cv_lib_imagehlp_main=yes
27093 else
27094   echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27096
27097         ac_cv_lib_imagehlp_main=no
27098 fi
27099
27100 rm -f core conftest.err conftest.$ac_objext \
27101       conftest$ac_exeext conftest.$ac_ext
27102 LIBS=$ac_check_lib_save_LIBS
27103 fi
27104 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27105 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27106 if test $ac_cv_lib_imagehlp_main = yes; then
27107   cat >>confdefs.h <<_ACEOF
27108 #define HAVE_LIBIMAGEHLP 1
27109 _ACEOF
27110
27111   LIBS="-limagehlp $LIBS"
27112
27113 fi
27114
27115
27116 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27117 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27118 if test "${ac_cv_lib_psapi_main+set}" = set; then
27119   echo $ECHO_N "(cached) $ECHO_C" >&6
27120 else
27121   ac_check_lib_save_LIBS=$LIBS
27122 LIBS="-lpsapi  $LIBS"
27123 cat >conftest.$ac_ext <<_ACEOF
27124 /* confdefs.h.  */
27125 _ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h.  */
27129
27130
27131 int
27132 main ()
27133 {
27134 return main ();
27135   ;
27136   return 0;
27137 }
27138 _ACEOF
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (ac_try="$ac_link"
27141 case "(($ac_try" in
27142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143   *) ac_try_echo=$ac_try;;
27144 esac
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146   (eval "$ac_link") 2>conftest.er1
27147   ac_status=$?
27148   grep -v '^ *+' conftest.er1 >conftest.err
27149   rm -f conftest.er1
27150   cat conftest.err >&5
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); } &&
27153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27154   { (case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159   (eval "$ac_try") 2>&5
27160   ac_status=$?
27161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); }; } &&
27163          { ac_try='test -s conftest$ac_exeext'
27164   { (case "(($ac_try" in
27165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166   *) ac_try_echo=$ac_try;;
27167 esac
27168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169   (eval "$ac_try") 2>&5
27170   ac_status=$?
27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172   (exit $ac_status); }; }; then
27173   ac_cv_lib_psapi_main=yes
27174 else
27175   echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27177
27178         ac_cv_lib_psapi_main=no
27179 fi
27180
27181 rm -f core conftest.err conftest.$ac_objext \
27182       conftest$ac_exeext conftest.$ac_ext
27183 LIBS=$ac_check_lib_save_LIBS
27184 fi
27185 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27186 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27187 if test $ac_cv_lib_psapi_main = yes; then
27188   cat >>confdefs.h <<_ACEOF
27189 #define HAVE_LIBPSAPI 1
27190 _ACEOF
27191
27192   LIBS="-lpsapi $LIBS"
27193
27194 fi
27195
27196 fi
27197
27198 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27199 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27200 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27201   echo $ECHO_N "(cached) $ECHO_C" >&6
27202 else
27203   ac_func_search_save_LIBS=$LIBS
27204 cat >conftest.$ac_ext <<_ACEOF
27205 /* confdefs.h.  */
27206 _ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h.  */
27210
27211 /* Override any GCC internal prototype to avoid an error.
27212    Use char because int might match the return type of a GCC
27213    builtin and then its argument prototype would still apply.  */
27214 #ifdef __cplusplus
27215 extern "C"
27216 #endif
27217 char lt_dlopen ();
27218 int
27219 main ()
27220 {
27221 return lt_dlopen ();
27222   ;
27223   return 0;
27224 }
27225 _ACEOF
27226 for ac_lib in '' ltdl; do
27227   if test -z "$ac_lib"; then
27228     ac_res="none required"
27229   else
27230     ac_res=-l$ac_lib
27231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27232   fi
27233   rm -f conftest.$ac_objext conftest$ac_exeext
27234 if { (ac_try="$ac_link"
27235 case "(($ac_try" in
27236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237   *) ac_try_echo=$ac_try;;
27238 esac
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240   (eval "$ac_link") 2>conftest.er1
27241   ac_status=$?
27242   grep -v '^ *+' conftest.er1 >conftest.err
27243   rm -f conftest.er1
27244   cat conftest.err >&5
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); } &&
27247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27248   { (case "(($ac_try" in
27249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250   *) ac_try_echo=$ac_try;;
27251 esac
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253   (eval "$ac_try") 2>&5
27254   ac_status=$?
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); }; } &&
27257          { ac_try='test -s conftest$ac_exeext'
27258   { (case "(($ac_try" in
27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260   *) ac_try_echo=$ac_try;;
27261 esac
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263   (eval "$ac_try") 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; }; then
27267   ac_cv_search_lt_dlopen=$ac_res
27268 else
27269   echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27271
27272
27273 fi
27274
27275 rm -f core conftest.err conftest.$ac_objext \
27276       conftest$ac_exeext
27277   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27278   break
27279 fi
27280 done
27281 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27282   :
27283 else
27284   ac_cv_search_lt_dlopen=no
27285 fi
27286 rm conftest.$ac_ext
27287 LIBS=$ac_func_search_save_LIBS
27288 fi
27289 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27290 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27291 ac_res=$ac_cv_search_lt_dlopen
27292 if test "$ac_res" != no; then
27293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27294
27295 cat >>confdefs.h <<\_ACEOF
27296 #define HAVE_LT_DLOPEN 1
27297 _ACEOF
27298
27299 else
27300   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27301                            not be available" >&5
27302 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27303                            not be available" >&2;}
27304 fi
27305
27306
27307 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27308 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27309 if test "${ac_cv_search_dlopen+set}" = set; then
27310   echo $ECHO_N "(cached) $ECHO_C" >&6
27311 else
27312   ac_func_search_save_LIBS=$LIBS
27313 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h.  */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h.  */
27319
27320 /* Override any GCC internal prototype to avoid an error.
27321    Use char because int might match the return type of a GCC
27322    builtin and then its argument prototype would still apply.  */
27323 #ifdef __cplusplus
27324 extern "C"
27325 #endif
27326 char dlopen ();
27327 int
27328 main ()
27329 {
27330 return dlopen ();
27331   ;
27332   return 0;
27333 }
27334 _ACEOF
27335 for ac_lib in '' dl; do
27336   if test -z "$ac_lib"; then
27337     ac_res="none required"
27338   else
27339     ac_res=-l$ac_lib
27340     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27341   fi
27342   rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (ac_try="$ac_link"
27344 case "(($ac_try" in
27345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346   *) ac_try_echo=$ac_try;;
27347 esac
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349   (eval "$ac_link") 2>conftest.er1
27350   ac_status=$?
27351   grep -v '^ *+' conftest.er1 >conftest.err
27352   rm -f conftest.er1
27353   cat conftest.err >&5
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); } &&
27356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27357   { (case "(($ac_try" in
27358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359   *) ac_try_echo=$ac_try;;
27360 esac
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362   (eval "$ac_try") 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); }; } &&
27366          { ac_try='test -s conftest$ac_exeext'
27367   { (case "(($ac_try" in
27368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369   *) ac_try_echo=$ac_try;;
27370 esac
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372   (eval "$ac_try") 2>&5
27373   ac_status=$?
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); }; }; then
27376   ac_cv_search_dlopen=$ac_res
27377 else
27378   echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27380
27381
27382 fi
27383
27384 rm -f core conftest.err conftest.$ac_objext \
27385       conftest$ac_exeext
27386   if test "${ac_cv_search_dlopen+set}" = set; then
27387   break
27388 fi
27389 done
27390 if test "${ac_cv_search_dlopen+set}" = set; then
27391   :
27392 else
27393   ac_cv_search_dlopen=no
27394 fi
27395 rm conftest.$ac_ext
27396 LIBS=$ac_func_search_save_LIBS
27397 fi
27398 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27399 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27400 ac_res=$ac_cv_search_dlopen
27401 if test "$ac_res" != no; then
27402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27403
27404 cat >>confdefs.h <<\_ACEOF
27405 #define HAVE_DLOPEN 1
27406 _ACEOF
27407
27408 else
27409   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27410 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27411 fi
27412
27413
27414 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27415 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27416 if test "${ac_cv_search_mallinfo+set}" = set; then
27417   echo $ECHO_N "(cached) $ECHO_C" >&6
27418 else
27419   ac_func_search_save_LIBS=$LIBS
27420 cat >conftest.$ac_ext <<_ACEOF
27421 /* confdefs.h.  */
27422 _ACEOF
27423 cat confdefs.h >>conftest.$ac_ext
27424 cat >>conftest.$ac_ext <<_ACEOF
27425 /* end confdefs.h.  */
27426
27427 /* Override any GCC internal prototype to avoid an error.
27428    Use char because int might match the return type of a GCC
27429    builtin and then its argument prototype would still apply.  */
27430 #ifdef __cplusplus
27431 extern "C"
27432 #endif
27433 char mallinfo ();
27434 int
27435 main ()
27436 {
27437 return mallinfo ();
27438   ;
27439   return 0;
27440 }
27441 _ACEOF
27442 for ac_lib in '' malloc; do
27443   if test -z "$ac_lib"; then
27444     ac_res="none required"
27445   else
27446     ac_res=-l$ac_lib
27447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27448   fi
27449   rm -f conftest.$ac_objext conftest$ac_exeext
27450 if { (ac_try="$ac_link"
27451 case "(($ac_try" in
27452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453   *) ac_try_echo=$ac_try;;
27454 esac
27455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456   (eval "$ac_link") 2>conftest.er1
27457   ac_status=$?
27458   grep -v '^ *+' conftest.er1 >conftest.err
27459   rm -f conftest.er1
27460   cat conftest.err >&5
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } &&
27463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27464   { (case "(($ac_try" in
27465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466   *) ac_try_echo=$ac_try;;
27467 esac
27468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469   (eval "$ac_try") 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; } &&
27473          { ac_try='test -s conftest$ac_exeext'
27474   { (case "(($ac_try" in
27475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476   *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479   (eval "$ac_try") 2>&5
27480   ac_status=$?
27481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482   (exit $ac_status); }; }; then
27483   ac_cv_search_mallinfo=$ac_res
27484 else
27485   echo "$as_me: failed program was:" >&5
27486 sed 's/^/| /' conftest.$ac_ext >&5
27487
27488
27489 fi
27490
27491 rm -f core conftest.err conftest.$ac_objext \
27492       conftest$ac_exeext
27493   if test "${ac_cv_search_mallinfo+set}" = set; then
27494   break
27495 fi
27496 done
27497 if test "${ac_cv_search_mallinfo+set}" = set; then
27498   :
27499 else
27500   ac_cv_search_mallinfo=no
27501 fi
27502 rm conftest.$ac_ext
27503 LIBS=$ac_func_search_save_LIBS
27504 fi
27505 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27506 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27507 ac_res=$ac_cv_search_mallinfo
27508 if test "$ac_res" != no; then
27509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27510
27511 cat >>confdefs.h <<\_ACEOF
27512 #define HAVE_MALLINFO 1
27513 _ACEOF
27514
27515 fi
27516
27517
27518 if test "$ENABLE_THREADS" -eq 1 ; then
27519
27520 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27521 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27522 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525   ac_check_lib_save_LIBS=$LIBS
27526 LIBS="-lpthread  $LIBS"
27527 cat >conftest.$ac_ext <<_ACEOF
27528 /* confdefs.h.  */
27529 _ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h.  */
27533
27534 /* Override any GCC internal prototype to avoid an error.
27535    Use char because int might match the return type of a GCC
27536    builtin and then its argument prototype would still apply.  */
27537 #ifdef __cplusplus
27538 extern "C"
27539 #endif
27540 char pthread_mutex_init ();
27541 int
27542 main ()
27543 {
27544 return pthread_mutex_init ();
27545   ;
27546   return 0;
27547 }
27548 _ACEOF
27549 rm -f conftest.$ac_objext conftest$ac_exeext
27550 if { (ac_try="$ac_link"
27551 case "(($ac_try" in
27552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553   *) ac_try_echo=$ac_try;;
27554 esac
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556   (eval "$ac_link") 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } &&
27563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27564   { (case "(($ac_try" in
27565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566   *) ac_try_echo=$ac_try;;
27567 esac
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569   (eval "$ac_try") 2>&5
27570   ac_status=$?
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); }; } &&
27573          { ac_try='test -s conftest$ac_exeext'
27574   { (case "(($ac_try" in
27575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576   *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579   (eval "$ac_try") 2>&5
27580   ac_status=$?
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); }; }; then
27583   ac_cv_lib_pthread_pthread_mutex_init=yes
27584 else
27585   echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588         ac_cv_lib_pthread_pthread_mutex_init=no
27589 fi
27590
27591 rm -f core conftest.err conftest.$ac_objext \
27592       conftest$ac_exeext conftest.$ac_ext
27593 LIBS=$ac_check_lib_save_LIBS
27594 fi
27595 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27596 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27597 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27598   cat >>confdefs.h <<_ACEOF
27599 #define HAVE_LIBPTHREAD 1
27600 _ACEOF
27601
27602   LIBS="-lpthread $LIBS"
27603
27604 fi
27605
27606   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27607 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27608 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27609   echo $ECHO_N "(cached) $ECHO_C" >&6
27610 else
27611   ac_func_search_save_LIBS=$LIBS
27612 cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h.  */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h.  */
27618
27619 /* Override any GCC internal prototype to avoid an error.
27620    Use char because int might match the return type of a GCC
27621    builtin and then its argument prototype would still apply.  */
27622 #ifdef __cplusplus
27623 extern "C"
27624 #endif
27625 char pthread_mutex_lock ();
27626 int
27627 main ()
27628 {
27629 return pthread_mutex_lock ();
27630   ;
27631   return 0;
27632 }
27633 _ACEOF
27634 for ac_lib in '' pthread; do
27635   if test -z "$ac_lib"; then
27636     ac_res="none required"
27637   else
27638     ac_res=-l$ac_lib
27639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27640   fi
27641   rm -f conftest.$ac_objext conftest$ac_exeext
27642 if { (ac_try="$ac_link"
27643 case "(($ac_try" in
27644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645   *) ac_try_echo=$ac_try;;
27646 esac
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648   (eval "$ac_link") 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } &&
27655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656   { (case "(($ac_try" in
27657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658   *) ac_try_echo=$ac_try;;
27659 esac
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661   (eval "$ac_try") 2>&5
27662   ac_status=$?
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); }; } &&
27665          { ac_try='test -s conftest$ac_exeext'
27666   { (case "(($ac_try" in
27667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668   *) ac_try_echo=$ac_try;;
27669 esac
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671   (eval "$ac_try") 2>&5
27672   ac_status=$?
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); }; }; then
27675   ac_cv_search_pthread_mutex_lock=$ac_res
27676 else
27677   echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.$ac_ext >&5
27679
27680
27681 fi
27682
27683 rm -f core conftest.err conftest.$ac_objext \
27684       conftest$ac_exeext
27685   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27686   break
27687 fi
27688 done
27689 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27690   :
27691 else
27692   ac_cv_search_pthread_mutex_lock=no
27693 fi
27694 rm conftest.$ac_ext
27695 LIBS=$ac_func_search_save_LIBS
27696 fi
27697 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27698 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27699 ac_res=$ac_cv_search_pthread_mutex_lock
27700 if test "$ac_res" != no; then
27701   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27702
27703 cat >>confdefs.h <<\_ACEOF
27704 #define HAVE_PTHREAD_MUTEX_LOCK 1
27705 _ACEOF
27706
27707 fi
27708
27709 fi
27710
27711
27712 # Check whether --with-udis86 was given.
27713 if test "${with_udis86+set}" = set; then
27714   withval=$with_udis86;
27715       USE_UDIS86=1
27716
27717       case "$withval" in
27718         /usr/lib|yes) ;;
27719         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27720       esac
27721
27722 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27723 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27724 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27725   echo $ECHO_N "(cached) $ECHO_C" >&6
27726 else
27727   ac_check_lib_save_LIBS=$LIBS
27728 LIBS="-ludis86  $LIBS"
27729 cat >conftest.$ac_ext <<_ACEOF
27730 /* confdefs.h.  */
27731 _ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h.  */
27735
27736 /* Override any GCC internal prototype to avoid an error.
27737    Use char because int might match the return type of a GCC
27738    builtin and then its argument prototype would still apply.  */
27739 #ifdef __cplusplus
27740 extern "C"
27741 #endif
27742 char ud_init ();
27743 int
27744 main ()
27745 {
27746 return ud_init ();
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (ac_try="$ac_link"
27753 case "(($ac_try" in
27754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755   *) ac_try_echo=$ac_try;;
27756 esac
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758   (eval "$ac_link") 2>conftest.er1
27759   ac_status=$?
27760   grep -v '^ *+' conftest.er1 >conftest.err
27761   rm -f conftest.er1
27762   cat conftest.err >&5
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); } &&
27765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27766   { (case "(($ac_try" in
27767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768   *) ac_try_echo=$ac_try;;
27769 esac
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771   (eval "$ac_try") 2>&5
27772   ac_status=$?
27773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774   (exit $ac_status); }; } &&
27775          { ac_try='test -s conftest$ac_exeext'
27776   { (case "(($ac_try" in
27777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778   *) ac_try_echo=$ac_try;;
27779 esac
27780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781   (eval "$ac_try") 2>&5
27782   ac_status=$?
27783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784   (exit $ac_status); }; }; then
27785   ac_cv_lib_udis86_ud_init=yes
27786 else
27787   echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27789
27790         ac_cv_lib_udis86_ud_init=no
27791 fi
27792
27793 rm -f core conftest.err conftest.$ac_objext \
27794       conftest$ac_exeext conftest.$ac_ext
27795 LIBS=$ac_check_lib_save_LIBS
27796 fi
27797 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27798 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27799 if test $ac_cv_lib_udis86_ud_init = yes; then
27800   cat >>confdefs.h <<_ACEOF
27801 #define HAVE_LIBUDIS86 1
27802 _ACEOF
27803
27804   LIBS="-ludis86 $LIBS"
27805
27806 else
27807
27808         echo "Error! You need to have libudis86 around."
27809         exit -1
27810
27811 fi
27812
27813
27814 else
27815   USE_UDIS86=0
27816
27817 fi
27818
27819
27820 cat >>confdefs.h <<_ACEOF
27821 #define USE_UDIS86 $USE_UDIS86
27822 _ACEOF
27823
27824
27825
27826
27827
27828
27829
27830
27831 ac_header_dirent=no
27832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27833   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27834 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27835 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27837   echo $ECHO_N "(cached) $ECHO_C" >&6
27838 else
27839   cat >conftest.$ac_ext <<_ACEOF
27840 /* confdefs.h.  */
27841 _ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h.  */
27845 #include <sys/types.h>
27846 #include <$ac_hdr>
27847
27848 int
27849 main ()
27850 {
27851 if ((DIR *) 0)
27852 return 0;
27853   ;
27854   return 0;
27855 }
27856 _ACEOF
27857 rm -f conftest.$ac_objext
27858 if { (ac_try="$ac_compile"
27859 case "(($ac_try" in
27860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861   *) ac_try_echo=$ac_try;;
27862 esac
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864   (eval "$ac_compile") 2>conftest.er1
27865   ac_status=$?
27866   grep -v '^ *+' conftest.er1 >conftest.err
27867   rm -f conftest.er1
27868   cat conftest.err >&5
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); } &&
27871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27872   { (case "(($ac_try" in
27873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874   *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877   (eval "$ac_try") 2>&5
27878   ac_status=$?
27879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); }; } &&
27881          { ac_try='test -s conftest.$ac_objext'
27882   { (case "(($ac_try" in
27883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884   *) ac_try_echo=$ac_try;;
27885 esac
27886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27887   (eval "$ac_try") 2>&5
27888   ac_status=$?
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); }; }; then
27891   eval "$as_ac_Header=yes"
27892 else
27893   echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27895
27896         eval "$as_ac_Header=no"
27897 fi
27898
27899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27900 fi
27901 ac_res=`eval echo '${'$as_ac_Header'}'`
27902                { echo "$as_me:$LINENO: result: $ac_res" >&5
27903 echo "${ECHO_T}$ac_res" >&6; }
27904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27905   cat >>confdefs.h <<_ACEOF
27906 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27907 _ACEOF
27908
27909 ac_header_dirent=$ac_hdr; break
27910 fi
27911
27912 done
27913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27914 if test $ac_header_dirent = dirent.h; then
27915   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27917 if test "${ac_cv_search_opendir+set}" = set; then
27918   echo $ECHO_N "(cached) $ECHO_C" >&6
27919 else
27920   ac_func_search_save_LIBS=$LIBS
27921 cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927
27928 /* Override any GCC internal prototype to avoid an error.
27929    Use char because int might match the return type of a GCC
27930    builtin and then its argument prototype would still apply.  */
27931 #ifdef __cplusplus
27932 extern "C"
27933 #endif
27934 char opendir ();
27935 int
27936 main ()
27937 {
27938 return opendir ();
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 for ac_lib in '' dir; do
27944   if test -z "$ac_lib"; then
27945     ac_res="none required"
27946   else
27947     ac_res=-l$ac_lib
27948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27949   fi
27950   rm -f conftest.$ac_objext conftest$ac_exeext
27951 if { (ac_try="$ac_link"
27952 case "(($ac_try" in
27953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954   *) ac_try_echo=$ac_try;;
27955 esac
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957   (eval "$ac_link") 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } &&
27964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27965   { (case "(($ac_try" in
27966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967   *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970   (eval "$ac_try") 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; } &&
27974          { ac_try='test -s conftest$ac_exeext'
27975   { (case "(($ac_try" in
27976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977   *) ac_try_echo=$ac_try;;
27978 esac
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980   (eval "$ac_try") 2>&5
27981   ac_status=$?
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); }; }; then
27984   ac_cv_search_opendir=$ac_res
27985 else
27986   echo "$as_me: failed program was:" >&5
27987 sed 's/^/| /' conftest.$ac_ext >&5
27988
27989
27990 fi
27991
27992 rm -f core conftest.err conftest.$ac_objext \
27993       conftest$ac_exeext
27994   if test "${ac_cv_search_opendir+set}" = set; then
27995   break
27996 fi
27997 done
27998 if test "${ac_cv_search_opendir+set}" = set; then
27999   :
28000 else
28001   ac_cv_search_opendir=no
28002 fi
28003 rm conftest.$ac_ext
28004 LIBS=$ac_func_search_save_LIBS
28005 fi
28006 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28007 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28008 ac_res=$ac_cv_search_opendir
28009 if test "$ac_res" != no; then
28010   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28011
28012 fi
28013
28014 else
28015   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28016 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28017 if test "${ac_cv_search_opendir+set}" = set; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   ac_func_search_save_LIBS=$LIBS
28021 cat >conftest.$ac_ext <<_ACEOF
28022 /* confdefs.h.  */
28023 _ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h.  */
28027
28028 /* Override any GCC internal prototype to avoid an error.
28029    Use char because int might match the return type of a GCC
28030    builtin and then its argument prototype would still apply.  */
28031 #ifdef __cplusplus
28032 extern "C"
28033 #endif
28034 char opendir ();
28035 int
28036 main ()
28037 {
28038 return opendir ();
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 for ac_lib in '' x; do
28044   if test -z "$ac_lib"; then
28045     ac_res="none required"
28046   else
28047     ac_res=-l$ac_lib
28048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28049   fi
28050   rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057   (eval "$ac_link") 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } &&
28064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065   { (case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070   (eval "$ac_try") 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; } &&
28074          { ac_try='test -s conftest$ac_exeext'
28075   { (case "(($ac_try" in
28076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077   *) ac_try_echo=$ac_try;;
28078 esac
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080   (eval "$ac_try") 2>&5
28081   ac_status=$?
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); }; }; then
28084   ac_cv_search_opendir=$ac_res
28085 else
28086   echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28088
28089
28090 fi
28091
28092 rm -f core conftest.err conftest.$ac_objext \
28093       conftest$ac_exeext
28094   if test "${ac_cv_search_opendir+set}" = set; then
28095   break
28096 fi
28097 done
28098 if test "${ac_cv_search_opendir+set}" = set; then
28099   :
28100 else
28101   ac_cv_search_opendir=no
28102 fi
28103 rm conftest.$ac_ext
28104 LIBS=$ac_func_search_save_LIBS
28105 fi
28106 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28107 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28108 ac_res=$ac_cv_search_opendir
28109 if test "$ac_res" != no; then
28110   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28111
28112 fi
28113
28114 fi
28115
28116 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28117 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28118 if test "${ac_cv_header_mmap_anon+set}" = set; then
28119   echo $ECHO_N "(cached) $ECHO_C" >&6
28120 else
28121    ac_ext=c
28122 ac_cpp='$CPP $CPPFLAGS'
28123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28126
28127   cat >conftest.$ac_ext <<_ACEOF
28128 /* confdefs.h.  */
28129 _ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h.  */
28133 #include <sys/mman.h>
28134 #include <unistd.h>
28135 #include <fcntl.h>
28136 int
28137 main ()
28138 {
28139 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28140   ;
28141   return 0;
28142 }
28143 _ACEOF
28144 rm -f conftest.$ac_objext
28145 if { (ac_try="$ac_compile"
28146 case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151   (eval "$ac_compile") 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } &&
28158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159   { (case "(($ac_try" in
28160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161   *) ac_try_echo=$ac_try;;
28162 esac
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164   (eval "$ac_try") 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; } &&
28168          { ac_try='test -s conftest.$ac_objext'
28169   { (case "(($ac_try" in
28170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171   *) ac_try_echo=$ac_try;;
28172 esac
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174   (eval "$ac_try") 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; }; then
28178   ac_cv_header_mmap_anon=yes
28179 else
28180   echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28182
28183         ac_cv_header_mmap_anon=no
28184 fi
28185
28186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28187   ac_ext=c
28188 ac_cpp='$CPP $CPPFLAGS'
28189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28192
28193
28194 fi
28195 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28196 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28197 if test "$ac_cv_header_mmap_anon" = yes; then
28198
28199 cat >>confdefs.h <<\_ACEOF
28200 #define HAVE_MMAP_ANONYMOUS 1
28201 _ACEOF
28202
28203 fi
28204
28205 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28206 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28207 if test "${ac_cv_header_stat_broken+set}" = set; then
28208   echo $ECHO_N "(cached) $ECHO_C" >&6
28209 else
28210   cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216 #include <sys/types.h>
28217 #include <sys/stat.h>
28218
28219 #if defined S_ISBLK && defined S_IFDIR
28220 # if S_ISBLK (S_IFDIR)
28221 You lose.
28222 # endif
28223 #endif
28224
28225 #if defined S_ISBLK && defined S_IFCHR
28226 # if S_ISBLK (S_IFCHR)
28227 You lose.
28228 # endif
28229 #endif
28230
28231 #if defined S_ISLNK && defined S_IFREG
28232 # if S_ISLNK (S_IFREG)
28233 You lose.
28234 # endif
28235 #endif
28236
28237 #if defined S_ISSOCK && defined S_IFREG
28238 # if S_ISSOCK (S_IFREG)
28239 You lose.
28240 # endif
28241 #endif
28242
28243 _ACEOF
28244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28245   $EGREP "You lose" >/dev/null 2>&1; then
28246   ac_cv_header_stat_broken=yes
28247 else
28248   ac_cv_header_stat_broken=no
28249 fi
28250 rm -f conftest*
28251
28252 fi
28253 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28254 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28255 if test $ac_cv_header_stat_broken = yes; then
28256
28257 cat >>confdefs.h <<\_ACEOF
28258 #define STAT_MACROS_BROKEN 1
28259 _ACEOF
28260
28261 fi
28262
28263 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28264 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28265 if test "${ac_cv_header_stdc+set}" = set; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268   cat >conftest.$ac_ext <<_ACEOF
28269 /* confdefs.h.  */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h.  */
28274 #include <stdlib.h>
28275 #include <stdarg.h>
28276 #include <string.h>
28277 #include <float.h>
28278
28279 int
28280 main ()
28281 {
28282
28283   ;
28284   return 0;
28285 }
28286 _ACEOF
28287 rm -f conftest.$ac_objext
28288 if { (ac_try="$ac_compile"
28289 case "(($ac_try" in
28290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291   *) ac_try_echo=$ac_try;;
28292 esac
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294   (eval "$ac_compile") 2>conftest.er1
28295   ac_status=$?
28296   grep -v '^ *+' conftest.er1 >conftest.err
28297   rm -f conftest.er1
28298   cat conftest.err >&5
28299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300   (exit $ac_status); } &&
28301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28302   { (case "(($ac_try" in
28303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304   *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307   (eval "$ac_try") 2>&5
28308   ac_status=$?
28309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310   (exit $ac_status); }; } &&
28311          { ac_try='test -s conftest.$ac_objext'
28312   { (case "(($ac_try" in
28313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314   *) ac_try_echo=$ac_try;;
28315 esac
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317   (eval "$ac_try") 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); }; }; then
28321   ac_cv_header_stdc=yes
28322 else
28323   echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28325
28326         ac_cv_header_stdc=no
28327 fi
28328
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330
28331 if test $ac_cv_header_stdc = yes; then
28332   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28333   cat >conftest.$ac_ext <<_ACEOF
28334 /* confdefs.h.  */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h.  */
28339 #include <string.h>
28340
28341 _ACEOF
28342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28343   $EGREP "memchr" >/dev/null 2>&1; then
28344   :
28345 else
28346   ac_cv_header_stdc=no
28347 fi
28348 rm -f conftest*
28349
28350 fi
28351
28352 if test $ac_cv_header_stdc = yes; then
28353   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28354   cat >conftest.$ac_ext <<_ACEOF
28355 /* confdefs.h.  */
28356 _ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h.  */
28360 #include <stdlib.h>
28361
28362 _ACEOF
28363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28364   $EGREP "free" >/dev/null 2>&1; then
28365   :
28366 else
28367   ac_cv_header_stdc=no
28368 fi
28369 rm -f conftest*
28370
28371 fi
28372
28373 if test $ac_cv_header_stdc = yes; then
28374   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28375   if test "$cross_compiling" = yes; then
28376   :
28377 else
28378   cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h.  */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h.  */
28384 #include <ctype.h>
28385 #include <stdlib.h>
28386 #if ((' ' & 0x0FF) == 0x020)
28387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28389 #else
28390 # define ISLOWER(c) \
28391                    (('a' <= (c) && (c) <= 'i') \
28392                      || ('j' <= (c) && (c) <= 'r') \
28393                      || ('s' <= (c) && (c) <= 'z'))
28394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28395 #endif
28396
28397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28398 int
28399 main ()
28400 {
28401   int i;
28402   for (i = 0; i < 256; i++)
28403     if (XOR (islower (i), ISLOWER (i))
28404         || toupper (i) != TOUPPER (i))
28405       return 2;
28406   return 0;
28407 }
28408 _ACEOF
28409 rm -f conftest$ac_exeext
28410 if { (ac_try="$ac_link"
28411 case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416   (eval "$ac_link") 2>&5
28417   ac_status=$?
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420   { (case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_try") 2>&5
28426   ac_status=$?
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); }; }; then
28429   :
28430 else
28431   echo "$as_me: program exited with status $ac_status" >&5
28432 echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28434
28435 ( exit $ac_status )
28436 ac_cv_header_stdc=no
28437 fi
28438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28439 fi
28440
28441
28442 fi
28443 fi
28444 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28445 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28446 if test $ac_cv_header_stdc = yes; then
28447
28448 cat >>confdefs.h <<\_ACEOF
28449 #define STDC_HEADERS 1
28450 _ACEOF
28451
28452 fi
28453
28454 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28455 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465 #include <sys/types.h>
28466 #include <sys/wait.h>
28467 #ifndef WEXITSTATUS
28468 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28469 #endif
28470 #ifndef WIFEXITED
28471 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28472 #endif
28473
28474 int
28475 main ()
28476 {
28477   int s;
28478   wait (&s);
28479   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28480   ;
28481   return 0;
28482 }
28483 _ACEOF
28484 rm -f conftest.$ac_objext
28485 if { (ac_try="$ac_compile"
28486 case "(($ac_try" in
28487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488   *) ac_try_echo=$ac_try;;
28489 esac
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491   (eval "$ac_compile") 2>conftest.er1
28492   ac_status=$?
28493   grep -v '^ *+' conftest.er1 >conftest.err
28494   rm -f conftest.er1
28495   cat conftest.err >&5
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); } &&
28498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28499   { (case "(($ac_try" in
28500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501   *) ac_try_echo=$ac_try;;
28502 esac
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504   (eval "$ac_try") 2>&5
28505   ac_status=$?
28506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507   (exit $ac_status); }; } &&
28508          { ac_try='test -s conftest.$ac_objext'
28509   { (case "(($ac_try" in
28510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511   *) ac_try_echo=$ac_try;;
28512 esac
28513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514   (eval "$ac_try") 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; }; then
28518   ac_cv_header_sys_wait_h=yes
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523         ac_cv_header_sys_wait_h=no
28524 fi
28525
28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28527 fi
28528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28529 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28530 if test $ac_cv_header_sys_wait_h = yes; then
28531
28532 cat >>confdefs.h <<\_ACEOF
28533 #define HAVE_SYS_WAIT_H 1
28534 _ACEOF
28535
28536 fi
28537
28538 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28539 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28540 if test "${ac_cv_header_time+set}" = set; then
28541   echo $ECHO_N "(cached) $ECHO_C" >&6
28542 else
28543   cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549 #include <sys/types.h>
28550 #include <sys/time.h>
28551 #include <time.h>
28552
28553 int
28554 main ()
28555 {
28556 if ((struct tm *) 0)
28557 return 0;
28558   ;
28559   return 0;
28560 }
28561 _ACEOF
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566   *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569   (eval "$ac_compile") 2>conftest.er1
28570   ac_status=$?
28571   grep -v '^ *+' conftest.er1 >conftest.err
28572   rm -f conftest.er1
28573   cat conftest.err >&5
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); } &&
28576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28577   { (case "(($ac_try" in
28578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579   *) ac_try_echo=$ac_try;;
28580 esac
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582   (eval "$ac_try") 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; } &&
28586          { ac_try='test -s conftest.$ac_objext'
28587   { (case "(($ac_try" in
28588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589   *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592   (eval "$ac_try") 2>&5
28593   ac_status=$?
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); }; }; then
28596   ac_cv_header_time=yes
28597 else
28598   echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28600
28601         ac_cv_header_time=no
28602 fi
28603
28604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605 fi
28606 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28607 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28608 if test $ac_cv_header_time = yes; then
28609
28610 cat >>confdefs.h <<\_ACEOF
28611 #define TIME_WITH_SYS_TIME 1
28612 _ACEOF
28613
28614 fi
28615
28616
28617
28618
28619
28620
28621
28622
28623 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28624 do
28625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28627   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28630   echo $ECHO_N "(cached) $ECHO_C" >&6
28631 fi
28632 ac_res=`eval echo '${'$as_ac_Header'}'`
28633                { echo "$as_me:$LINENO: result: $ac_res" >&5
28634 echo "${ECHO_T}$ac_res" >&6; }
28635 else
28636   # Is the header compilable?
28637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28639 cat >conftest.$ac_ext <<_ACEOF
28640 /* confdefs.h.  */
28641 _ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h.  */
28645 $ac_includes_default
28646 #include <$ac_header>
28647 _ACEOF
28648 rm -f conftest.$ac_objext
28649 if { (ac_try="$ac_compile"
28650 case "(($ac_try" in
28651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652   *) ac_try_echo=$ac_try;;
28653 esac
28654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655   (eval "$ac_compile") 2>conftest.er1
28656   ac_status=$?
28657   grep -v '^ *+' conftest.er1 >conftest.err
28658   rm -f conftest.er1
28659   cat conftest.err >&5
28660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661   (exit $ac_status); } &&
28662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663   { (case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668   (eval "$ac_try") 2>&5
28669   ac_status=$?
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); }; } &&
28672          { ac_try='test -s conftest.$ac_objext'
28673   { (case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_try") 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   ac_header_compiler=yes
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687         ac_header_compiler=no
28688 fi
28689
28690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28692 echo "${ECHO_T}$ac_header_compiler" >&6; }
28693
28694 # Is the header present?
28695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28697 cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h.  */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h.  */
28703 #include <$ac_header>
28704 _ACEOF
28705 if { (ac_try="$ac_cpp conftest.$ac_ext"
28706 case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28712   ac_status=$?
28713   grep -v '^ *+' conftest.er1 >conftest.err
28714   rm -f conftest.er1
28715   cat conftest.err >&5
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); } >/dev/null; then
28718   if test -s conftest.err; then
28719     ac_cpp_err=$ac_c_preproc_warn_flag
28720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28721   else
28722     ac_cpp_err=
28723   fi
28724 else
28725   ac_cpp_err=yes
28726 fi
28727 if test -z "$ac_cpp_err"; then
28728   ac_header_preproc=yes
28729 else
28730   echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28732
28733   ac_header_preproc=no
28734 fi
28735
28736 rm -f conftest.err conftest.$ac_ext
28737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28738 echo "${ECHO_T}$ac_header_preproc" >&6; }
28739
28740 # So?  What about this header?
28741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28742   yes:no: )
28743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28747     ac_header_preproc=yes
28748     ;;
28749   no:yes:* )
28750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28762     ( cat <<\_ASBOX
28763 ## ----------------------------------- ##
28764 ## Report this to llvmbugs@cs.uiuc.edu ##
28765 ## ----------------------------------- ##
28766 _ASBOX
28767      ) | sed "s/^/$as_me: WARNING:     /" >&2
28768     ;;
28769 esac
28770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28773   echo $ECHO_N "(cached) $ECHO_C" >&6
28774 else
28775   eval "$as_ac_Header=\$ac_header_preproc"
28776 fi
28777 ac_res=`eval echo '${'$as_ac_Header'}'`
28778                { echo "$as_me:$LINENO: result: $ac_res" >&5
28779 echo "${ECHO_T}$ac_res" >&6; }
28780
28781 fi
28782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28783   cat >>confdefs.h <<_ACEOF
28784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28785 _ACEOF
28786
28787 fi
28788
28789 done
28790
28791
28792
28793
28794
28795
28796
28797 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28798 do
28799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28804   echo $ECHO_N "(cached) $ECHO_C" >&6
28805 fi
28806 ac_res=`eval echo '${'$as_ac_Header'}'`
28807                { echo "$as_me:$LINENO: result: $ac_res" >&5
28808 echo "${ECHO_T}$ac_res" >&6; }
28809 else
28810   # Is the header compilable?
28811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28813 cat >conftest.$ac_ext <<_ACEOF
28814 /* confdefs.h.  */
28815 _ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h.  */
28819 $ac_includes_default
28820 #include <$ac_header>
28821 _ACEOF
28822 rm -f conftest.$ac_objext
28823 if { (ac_try="$ac_compile"
28824 case "(($ac_try" in
28825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826   *) ac_try_echo=$ac_try;;
28827 esac
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829   (eval "$ac_compile") 2>conftest.er1
28830   ac_status=$?
28831   grep -v '^ *+' conftest.er1 >conftest.err
28832   rm -f conftest.er1
28833   cat conftest.err >&5
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); } &&
28836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28837   { (case "(($ac_try" in
28838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839   *) ac_try_echo=$ac_try;;
28840 esac
28841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842   (eval "$ac_try") 2>&5
28843   ac_status=$?
28844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845   (exit $ac_status); }; } &&
28846          { ac_try='test -s conftest.$ac_objext'
28847   { (case "(($ac_try" in
28848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849   *) ac_try_echo=$ac_try;;
28850 esac
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852   (eval "$ac_try") 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; }; then
28856   ac_header_compiler=yes
28857 else
28858   echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28860
28861         ac_header_compiler=no
28862 fi
28863
28864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28866 echo "${ECHO_T}$ac_header_compiler" >&6; }
28867
28868 # Is the header present?
28869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28871 cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877 #include <$ac_header>
28878 _ACEOF
28879 if { (ac_try="$ac_cpp conftest.$ac_ext"
28880 case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28886   ac_status=$?
28887   grep -v '^ *+' conftest.er1 >conftest.err
28888   rm -f conftest.er1
28889   cat conftest.err >&5
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); } >/dev/null; then
28892   if test -s conftest.err; then
28893     ac_cpp_err=$ac_c_preproc_warn_flag
28894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28895   else
28896     ac_cpp_err=
28897   fi
28898 else
28899   ac_cpp_err=yes
28900 fi
28901 if test -z "$ac_cpp_err"; then
28902   ac_header_preproc=yes
28903 else
28904   echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28906
28907   ac_header_preproc=no
28908 fi
28909
28910 rm -f conftest.err conftest.$ac_ext
28911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28912 echo "${ECHO_T}$ac_header_preproc" >&6; }
28913
28914 # So?  What about this header?
28915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28916   yes:no: )
28917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28921     ac_header_preproc=yes
28922     ;;
28923   no:yes:* )
28924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28936     ( cat <<\_ASBOX
28937 ## ----------------------------------- ##
28938 ## Report this to llvmbugs@cs.uiuc.edu ##
28939 ## ----------------------------------- ##
28940 _ASBOX
28941      ) | sed "s/^/$as_me: WARNING:     /" >&2
28942     ;;
28943 esac
28944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28947   echo $ECHO_N "(cached) $ECHO_C" >&6
28948 else
28949   eval "$as_ac_Header=\$ac_header_preproc"
28950 fi
28951 ac_res=`eval echo '${'$as_ac_Header'}'`
28952                { echo "$as_me:$LINENO: result: $ac_res" >&5
28953 echo "${ECHO_T}$ac_res" >&6; }
28954
28955 fi
28956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28957   cat >>confdefs.h <<_ACEOF
28958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28959 _ACEOF
28960
28961 fi
28962
28963 done
28964
28965
28966 for ac_header in windows.h
28967 do
28968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 fi
28975 ac_res=`eval echo '${'$as_ac_Header'}'`
28976                { echo "$as_me:$LINENO: result: $ac_res" >&5
28977 echo "${ECHO_T}$ac_res" >&6; }
28978 else
28979   # Is the header compilable?
28980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28982 cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h.  */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h.  */
28988 $ac_includes_default
28989 #include <$ac_header>
28990 _ACEOF
28991 rm -f conftest.$ac_objext
28992 if { (ac_try="$ac_compile"
28993 case "(($ac_try" in
28994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995   *) ac_try_echo=$ac_try;;
28996 esac
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998   (eval "$ac_compile") 2>conftest.er1
28999   ac_status=$?
29000   grep -v '^ *+' conftest.er1 >conftest.err
29001   rm -f conftest.er1
29002   cat conftest.err >&5
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); } &&
29005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29006   { (case "(($ac_try" in
29007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008   *) ac_try_echo=$ac_try;;
29009 esac
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011   (eval "$ac_try") 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; } &&
29015          { ac_try='test -s conftest.$ac_objext'
29016   { (case "(($ac_try" in
29017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018   *) ac_try_echo=$ac_try;;
29019 esac
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021   (eval "$ac_try") 2>&5
29022   ac_status=$?
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); }; }; then
29025   ac_header_compiler=yes
29026 else
29027   echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29029
29030         ac_header_compiler=no
29031 fi
29032
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035 echo "${ECHO_T}$ac_header_compiler" >&6; }
29036
29037 # Is the header present?
29038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29040 cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046 #include <$ac_header>
29047 _ACEOF
29048 if { (ac_try="$ac_cpp conftest.$ac_ext"
29049 case "(($ac_try" in
29050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051   *) ac_try_echo=$ac_try;;
29052 esac
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29055   ac_status=$?
29056   grep -v '^ *+' conftest.er1 >conftest.err
29057   rm -f conftest.er1
29058   cat conftest.err >&5
29059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060   (exit $ac_status); } >/dev/null; then
29061   if test -s conftest.err; then
29062     ac_cpp_err=$ac_c_preproc_warn_flag
29063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29064   else
29065     ac_cpp_err=
29066   fi
29067 else
29068   ac_cpp_err=yes
29069 fi
29070 if test -z "$ac_cpp_err"; then
29071   ac_header_preproc=yes
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076   ac_header_preproc=no
29077 fi
29078
29079 rm -f conftest.err conftest.$ac_ext
29080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29081 echo "${ECHO_T}$ac_header_preproc" >&6; }
29082
29083 # So?  What about this header?
29084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29085   yes:no: )
29086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29090     ac_header_preproc=yes
29091     ;;
29092   no:yes:* )
29093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29105     ( cat <<\_ASBOX
29106 ## ----------------------------------- ##
29107 ## Report this to llvmbugs@cs.uiuc.edu ##
29108 ## ----------------------------------- ##
29109 _ASBOX
29110      ) | sed "s/^/$as_me: WARNING:     /" >&2
29111     ;;
29112 esac
29113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29116   echo $ECHO_N "(cached) $ECHO_C" >&6
29117 else
29118   eval "$as_ac_Header=\$ac_header_preproc"
29119 fi
29120 ac_res=`eval echo '${'$as_ac_Header'}'`
29121                { echo "$as_me:$LINENO: result: $ac_res" >&5
29122 echo "${ECHO_T}$ac_res" >&6; }
29123
29124 fi
29125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29126   cat >>confdefs.h <<_ACEOF
29127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29128 _ACEOF
29129
29130 fi
29131
29132 done
29133
29134
29135
29136
29137
29138 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29139 do
29140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29142   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29145   echo $ECHO_N "(cached) $ECHO_C" >&6
29146 fi
29147 ac_res=`eval echo '${'$as_ac_Header'}'`
29148                { echo "$as_me:$LINENO: result: $ac_res" >&5
29149 echo "${ECHO_T}$ac_res" >&6; }
29150 else
29151   # Is the header compilable?
29152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29155 /* confdefs.h.  */
29156 _ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h.  */
29160 $ac_includes_default
29161 #include <$ac_header>
29162 _ACEOF
29163 rm -f conftest.$ac_objext
29164 if { (ac_try="$ac_compile"
29165 case "(($ac_try" in
29166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29167   *) ac_try_echo=$ac_try;;
29168 esac
29169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29170   (eval "$ac_compile") 2>conftest.er1
29171   ac_status=$?
29172   grep -v '^ *+' conftest.er1 >conftest.err
29173   rm -f conftest.er1
29174   cat conftest.err >&5
29175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176   (exit $ac_status); } &&
29177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29178   { (case "(($ac_try" in
29179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180   *) ac_try_echo=$ac_try;;
29181 esac
29182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29183   (eval "$ac_try") 2>&5
29184   ac_status=$?
29185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186   (exit $ac_status); }; } &&
29187          { ac_try='test -s conftest.$ac_objext'
29188   { (case "(($ac_try" in
29189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190   *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193   (eval "$ac_try") 2>&5
29194   ac_status=$?
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); }; }; then
29197   ac_header_compiler=yes
29198 else
29199   echo "$as_me: failed program was:" >&5
29200 sed 's/^/| /' conftest.$ac_ext >&5
29201
29202         ac_header_compiler=no
29203 fi
29204
29205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29207 echo "${ECHO_T}$ac_header_compiler" >&6; }
29208
29209 # Is the header present?
29210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29212 cat >conftest.$ac_ext <<_ACEOF
29213 /* confdefs.h.  */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h.  */
29218 #include <$ac_header>
29219 _ACEOF
29220 if { (ac_try="$ac_cpp conftest.$ac_ext"
29221 case "(($ac_try" in
29222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223   *) ac_try_echo=$ac_try;;
29224 esac
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } >/dev/null; then
29233   if test -s conftest.err; then
29234     ac_cpp_err=$ac_c_preproc_warn_flag
29235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29236   else
29237     ac_cpp_err=
29238   fi
29239 else
29240   ac_cpp_err=yes
29241 fi
29242 if test -z "$ac_cpp_err"; then
29243   ac_header_preproc=yes
29244 else
29245   echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29247
29248   ac_header_preproc=no
29249 fi
29250
29251 rm -f conftest.err conftest.$ac_ext
29252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29253 echo "${ECHO_T}$ac_header_preproc" >&6; }
29254
29255 # So?  What about this header?
29256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29257   yes:no: )
29258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29262     ac_header_preproc=yes
29263     ;;
29264   no:yes:* )
29265     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29267     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29268 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29269     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29271     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29272 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29275     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29277     ( cat <<\_ASBOX
29278 ## ----------------------------------- ##
29279 ## Report this to llvmbugs@cs.uiuc.edu ##
29280 ## ----------------------------------- ##
29281 _ASBOX
29282      ) | sed "s/^/$as_me: WARNING:     /" >&2
29283     ;;
29284 esac
29285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29288   echo $ECHO_N "(cached) $ECHO_C" >&6
29289 else
29290   eval "$as_ac_Header=\$ac_header_preproc"
29291 fi
29292 ac_res=`eval echo '${'$as_ac_Header'}'`
29293                { echo "$as_me:$LINENO: result: $ac_res" >&5
29294 echo "${ECHO_T}$ac_res" >&6; }
29295
29296 fi
29297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29298   cat >>confdefs.h <<_ACEOF
29299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29300 _ACEOF
29301
29302 fi
29303
29304 done
29305
29306
29307
29308
29309 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29310 do
29311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29316   echo $ECHO_N "(cached) $ECHO_C" >&6
29317 fi
29318 ac_res=`eval echo '${'$as_ac_Header'}'`
29319                { echo "$as_me:$LINENO: result: $ac_res" >&5
29320 echo "${ECHO_T}$ac_res" >&6; }
29321 else
29322   # Is the header compilable?
29323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29325 cat >conftest.$ac_ext <<_ACEOF
29326 /* confdefs.h.  */
29327 _ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h.  */
29331 $ac_includes_default
29332 #include <$ac_header>
29333 _ACEOF
29334 rm -f conftest.$ac_objext
29335 if { (ac_try="$ac_compile"
29336 case "(($ac_try" in
29337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338   *) ac_try_echo=$ac_try;;
29339 esac
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341   (eval "$ac_compile") 2>conftest.er1
29342   ac_status=$?
29343   grep -v '^ *+' conftest.er1 >conftest.err
29344   rm -f conftest.er1
29345   cat conftest.err >&5
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); } &&
29348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29349   { (case "(($ac_try" in
29350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351   *) ac_try_echo=$ac_try;;
29352 esac
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354   (eval "$ac_try") 2>&5
29355   ac_status=$?
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); }; } &&
29358          { ac_try='test -s conftest.$ac_objext'
29359   { (case "(($ac_try" in
29360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361   *) ac_try_echo=$ac_try;;
29362 esac
29363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29364   (eval "$ac_try") 2>&5
29365   ac_status=$?
29366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367   (exit $ac_status); }; }; then
29368   ac_header_compiler=yes
29369 else
29370   echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29372
29373         ac_header_compiler=no
29374 fi
29375
29376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29378 echo "${ECHO_T}$ac_header_compiler" >&6; }
29379
29380 # Is the header present?
29381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29383 cat >conftest.$ac_ext <<_ACEOF
29384 /* confdefs.h.  */
29385 _ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h.  */
29389 #include <$ac_header>
29390 _ACEOF
29391 if { (ac_try="$ac_cpp conftest.$ac_ext"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } >/dev/null; then
29404   if test -s conftest.err; then
29405     ac_cpp_err=$ac_c_preproc_warn_flag
29406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29407   else
29408     ac_cpp_err=
29409   fi
29410 else
29411   ac_cpp_err=yes
29412 fi
29413 if test -z "$ac_cpp_err"; then
29414   ac_header_preproc=yes
29415 else
29416   echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29418
29419   ac_header_preproc=no
29420 fi
29421
29422 rm -f conftest.err conftest.$ac_ext
29423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29424 echo "${ECHO_T}$ac_header_preproc" >&6; }
29425
29426 # So?  What about this header?
29427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29428   yes:no: )
29429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29433     ac_header_preproc=yes
29434     ;;
29435   no:yes:* )
29436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29448     ( cat <<\_ASBOX
29449 ## ----------------------------------- ##
29450 ## Report this to llvmbugs@cs.uiuc.edu ##
29451 ## ----------------------------------- ##
29452 _ASBOX
29453      ) | sed "s/^/$as_me: WARNING:     /" >&2
29454     ;;
29455 esac
29456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29459   echo $ECHO_N "(cached) $ECHO_C" >&6
29460 else
29461   eval "$as_ac_Header=\$ac_header_preproc"
29462 fi
29463 ac_res=`eval echo '${'$as_ac_Header'}'`
29464                { echo "$as_me:$LINENO: result: $ac_res" >&5
29465 echo "${ECHO_T}$ac_res" >&6; }
29466
29467 fi
29468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29469   cat >>confdefs.h <<_ACEOF
29470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29471 _ACEOF
29472
29473 fi
29474
29475 done
29476
29477 if test "$ENABLE_THREADS" -eq 1 ; then
29478
29479 for ac_header in pthread.h
29480 do
29481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 fi
29488 ac_res=`eval echo '${'$as_ac_Header'}'`
29489                { echo "$as_me:$LINENO: result: $ac_res" >&5
29490 echo "${ECHO_T}$ac_res" >&6; }
29491 else
29492   # Is the header compilable?
29493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29495 cat >conftest.$ac_ext <<_ACEOF
29496 /* confdefs.h.  */
29497 _ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h.  */
29501 $ac_includes_default
29502 #include <$ac_header>
29503 _ACEOF
29504 rm -f conftest.$ac_objext
29505 if { (ac_try="$ac_compile"
29506 case "(($ac_try" in
29507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508   *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511   (eval "$ac_compile") 2>conftest.er1
29512   ac_status=$?
29513   grep -v '^ *+' conftest.er1 >conftest.err
29514   rm -f conftest.er1
29515   cat conftest.err >&5
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); } &&
29518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29528          { ac_try='test -s conftest.$ac_objext'
29529   { (case "(($ac_try" in
29530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531   *) ac_try_echo=$ac_try;;
29532 esac
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534   (eval "$ac_try") 2>&5
29535   ac_status=$?
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); }; }; then
29538   ac_header_compiler=yes
29539 else
29540   echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29542
29543         ac_header_compiler=no
29544 fi
29545
29546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548 echo "${ECHO_T}$ac_header_compiler" >&6; }
29549
29550 # Is the header present?
29551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29553 cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559 #include <$ac_header>
29560 _ACEOF
29561 if { (ac_try="$ac_cpp conftest.$ac_ext"
29562 case "(($ac_try" in
29563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564   *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29568   ac_status=$?
29569   grep -v '^ *+' conftest.er1 >conftest.err
29570   rm -f conftest.er1
29571   cat conftest.err >&5
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); } >/dev/null; then
29574   if test -s conftest.err; then
29575     ac_cpp_err=$ac_c_preproc_warn_flag
29576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29577   else
29578     ac_cpp_err=
29579   fi
29580 else
29581   ac_cpp_err=yes
29582 fi
29583 if test -z "$ac_cpp_err"; then
29584   ac_header_preproc=yes
29585 else
29586   echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29588
29589   ac_header_preproc=no
29590 fi
29591
29592 rm -f conftest.err conftest.$ac_ext
29593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29594 echo "${ECHO_T}$ac_header_preproc" >&6; }
29595
29596 # So?  What about this header?
29597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29598   yes:no: )
29599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29603     ac_header_preproc=yes
29604     ;;
29605   no:yes:* )
29606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29618     ( cat <<\_ASBOX
29619 ## ----------------------------------- ##
29620 ## Report this to llvmbugs@cs.uiuc.edu ##
29621 ## ----------------------------------- ##
29622 _ASBOX
29623      ) | sed "s/^/$as_me: WARNING:     /" >&2
29624     ;;
29625 esac
29626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29629   echo $ECHO_N "(cached) $ECHO_C" >&6
29630 else
29631   eval "$as_ac_Header=\$ac_header_preproc"
29632 fi
29633 ac_res=`eval echo '${'$as_ac_Header'}'`
29634                { echo "$as_me:$LINENO: result: $ac_res" >&5
29635 echo "${ECHO_T}$ac_res" >&6; }
29636
29637 fi
29638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29639   cat >>confdefs.h <<_ACEOF
29640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29641 _ACEOF
29642  HAVE_PTHREAD=1
29643
29644 else
29645   HAVE_PTHREAD=0
29646
29647 fi
29648
29649 done
29650
29651 else
29652   HAVE_PTHREAD=0
29653
29654 fi
29655
29656
29657
29658   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29659 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29660 if test "${ac_cv_huge_val_sanity+set}" = set; then
29661   echo $ECHO_N "(cached) $ECHO_C" >&6
29662 else
29663
29664     ac_ext=cpp
29665 ac_cpp='$CXXCPP $CPPFLAGS'
29666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29669
29670     CXXFLAGS=-pedantic
29671     if test "$cross_compiling" = yes; then
29672   ac_cv_huge_val_sanity=yes
29673 else
29674   cat >conftest.$ac_ext <<_ACEOF
29675 /* confdefs.h.  */
29676 _ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h.  */
29680 #include <math.h>
29681 int
29682 main ()
29683 {
29684 double x = HUGE_VAL; return x != x;
29685   ;
29686   return 0;
29687 }
29688 _ACEOF
29689 rm -f conftest$ac_exeext
29690 if { (ac_try="$ac_link"
29691 case "(($ac_try" in
29692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693   *) ac_try_echo=$ac_try;;
29694 esac
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696   (eval "$ac_link") 2>&5
29697   ac_status=$?
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29700   { (case "(($ac_try" in
29701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702   *) ac_try_echo=$ac_try;;
29703 esac
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705   (eval "$ac_try") 2>&5
29706   ac_status=$?
29707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); }; }; then
29709   ac_cv_huge_val_sanity=yes
29710 else
29711   echo "$as_me: program exited with status $ac_status" >&5
29712 echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29714
29715 ( exit $ac_status )
29716 ac_cv_huge_val_sanity=no
29717 fi
29718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29719 fi
29720
29721
29722     ac_ext=c
29723 ac_cpp='$CPP $CPPFLAGS'
29724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29727
29728
29729 fi
29730 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29731 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29732   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29733
29734
29735 { echo "$as_me:$LINENO: checking for pid_t" >&5
29736 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29737 if test "${ac_cv_type_pid_t+set}" = set; then
29738   echo $ECHO_N "(cached) $ECHO_C" >&6
29739 else
29740   cat >conftest.$ac_ext <<_ACEOF
29741 /* confdefs.h.  */
29742 _ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h.  */
29746 $ac_includes_default
29747 typedef pid_t ac__type_new_;
29748 int
29749 main ()
29750 {
29751 if ((ac__type_new_ *) 0)
29752   return 0;
29753 if (sizeof (ac__type_new_))
29754   return 0;
29755   ;
29756   return 0;
29757 }
29758 _ACEOF
29759 rm -f conftest.$ac_objext
29760 if { (ac_try="$ac_compile"
29761 case "(($ac_try" in
29762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763   *) ac_try_echo=$ac_try;;
29764 esac
29765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766   (eval "$ac_compile") 2>conftest.er1
29767   ac_status=$?
29768   grep -v '^ *+' conftest.er1 >conftest.err
29769   rm -f conftest.er1
29770   cat conftest.err >&5
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); } &&
29773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29774   { (case "(($ac_try" in
29775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776   *) ac_try_echo=$ac_try;;
29777 esac
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779   (eval "$ac_try") 2>&5
29780   ac_status=$?
29781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782   (exit $ac_status); }; } &&
29783          { ac_try='test -s conftest.$ac_objext'
29784   { (case "(($ac_try" in
29785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786   *) ac_try_echo=$ac_try;;
29787 esac
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789   (eval "$ac_try") 2>&5
29790   ac_status=$?
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); }; }; then
29793   ac_cv_type_pid_t=yes
29794 else
29795   echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29797
29798         ac_cv_type_pid_t=no
29799 fi
29800
29801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29802 fi
29803 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29804 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29805 if test $ac_cv_type_pid_t = yes; then
29806   :
29807 else
29808
29809 cat >>confdefs.h <<_ACEOF
29810 #define pid_t int
29811 _ACEOF
29812
29813 fi
29814
29815 { echo "$as_me:$LINENO: checking for size_t" >&5
29816 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29817 if test "${ac_cv_type_size_t+set}" = set; then
29818   echo $ECHO_N "(cached) $ECHO_C" >&6
29819 else
29820   cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h.  */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h.  */
29826 $ac_includes_default
29827 typedef size_t ac__type_new_;
29828 int
29829 main ()
29830 {
29831 if ((ac__type_new_ *) 0)
29832   return 0;
29833 if (sizeof (ac__type_new_))
29834   return 0;
29835   ;
29836   return 0;
29837 }
29838 _ACEOF
29839 rm -f conftest.$ac_objext
29840 if { (ac_try="$ac_compile"
29841 case "(($ac_try" in
29842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843   *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846   (eval "$ac_compile") 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } &&
29853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29854   { (case "(($ac_try" in
29855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856   *) ac_try_echo=$ac_try;;
29857 esac
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859   (eval "$ac_try") 2>&5
29860   ac_status=$?
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); }; } &&
29863          { ac_try='test -s conftest.$ac_objext'
29864   { (case "(($ac_try" in
29865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866   *) ac_try_echo=$ac_try;;
29867 esac
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869   (eval "$ac_try") 2>&5
29870   ac_status=$?
29871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); }; }; then
29873   ac_cv_type_size_t=yes
29874 else
29875   echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29877
29878         ac_cv_type_size_t=no
29879 fi
29880
29881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29882 fi
29883 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29884 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29885 if test $ac_cv_type_size_t = yes; then
29886   :
29887 else
29888
29889 cat >>confdefs.h <<_ACEOF
29890 #define size_t unsigned int
29891 _ACEOF
29892
29893 fi
29894
29895 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29896 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29897 if test "${ac_cv_type_signal+set}" = set; then
29898   echo $ECHO_N "(cached) $ECHO_C" >&6
29899 else
29900   cat >conftest.$ac_ext <<_ACEOF
29901 /* confdefs.h.  */
29902 _ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h.  */
29906 #include <sys/types.h>
29907 #include <signal.h>
29908
29909 int
29910 main ()
29911 {
29912 return *(signal (0, 0)) (0) == 1;
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext
29918 if { (ac_try="$ac_compile"
29919 case "(($ac_try" in
29920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921   *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924   (eval "$ac_compile") 2>conftest.er1
29925   ac_status=$?
29926   grep -v '^ *+' conftest.er1 >conftest.err
29927   rm -f conftest.er1
29928   cat conftest.err >&5
29929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930   (exit $ac_status); } &&
29931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29938   ac_status=$?
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); }; } &&
29941          { ac_try='test -s conftest.$ac_objext'
29942   { (case "(($ac_try" in
29943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944   *) ac_try_echo=$ac_try;;
29945 esac
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947   (eval "$ac_try") 2>&5
29948   ac_status=$?
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); }; }; then
29951   ac_cv_type_signal=int
29952 else
29953   echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956         ac_cv_type_signal=void
29957 fi
29958
29959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29960 fi
29961 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29962 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29963
29964 cat >>confdefs.h <<_ACEOF
29965 #define RETSIGTYPE $ac_cv_type_signal
29966 _ACEOF
29967
29968
29969 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29970 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29971 if test "${ac_cv_struct_tm+set}" = set; then
29972   echo $ECHO_N "(cached) $ECHO_C" >&6
29973 else
29974   cat >conftest.$ac_ext <<_ACEOF
29975 /* confdefs.h.  */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h.  */
29980 #include <sys/types.h>
29981 #include <time.h>
29982
29983 int
29984 main ()
29985 {
29986 struct tm *tp; tp->tm_sec;
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext
29992 if { (ac_try="$ac_compile"
29993 case "(($ac_try" in
29994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995   *) ac_try_echo=$ac_try;;
29996 esac
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998   (eval "$ac_compile") 2>conftest.er1
29999   ac_status=$?
30000   grep -v '^ *+' conftest.er1 >conftest.err
30001   rm -f conftest.er1
30002   cat conftest.err >&5
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); } &&
30005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30006   { (case "(($ac_try" in
30007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30008   *) ac_try_echo=$ac_try;;
30009 esac
30010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30011   (eval "$ac_try") 2>&5
30012   ac_status=$?
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); }; } &&
30015          { ac_try='test -s conftest.$ac_objext'
30016   { (case "(($ac_try" in
30017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018   *) ac_try_echo=$ac_try;;
30019 esac
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021   (eval "$ac_try") 2>&5
30022   ac_status=$?
30023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024   (exit $ac_status); }; }; then
30025   ac_cv_struct_tm=time.h
30026 else
30027   echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30029
30030         ac_cv_struct_tm=sys/time.h
30031 fi
30032
30033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30034 fi
30035 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30036 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30037 if test $ac_cv_struct_tm = sys/time.h; then
30038
30039 cat >>confdefs.h <<\_ACEOF
30040 #define TM_IN_SYS_TIME 1
30041 _ACEOF
30042
30043 fi
30044
30045 { echo "$as_me:$LINENO: checking for int64_t" >&5
30046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30047 if test "${ac_cv_type_int64_t+set}" = set; then
30048   echo $ECHO_N "(cached) $ECHO_C" >&6
30049 else
30050   cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056 $ac_includes_default
30057 typedef int64_t ac__type_new_;
30058 int
30059 main ()
30060 {
30061 if ((ac__type_new_ *) 0)
30062   return 0;
30063 if (sizeof (ac__type_new_))
30064   return 0;
30065   ;
30066   return 0;
30067 }
30068 _ACEOF
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
30071 case "(($ac_try" in
30072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073   *) ac_try_echo=$ac_try;;
30074 esac
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076   (eval "$ac_compile") 2>conftest.er1
30077   ac_status=$?
30078   grep -v '^ *+' conftest.er1 >conftest.err
30079   rm -f conftest.er1
30080   cat conftest.err >&5
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); } &&
30083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084   { (case "(($ac_try" in
30085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086   *) ac_try_echo=$ac_try;;
30087 esac
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089   (eval "$ac_try") 2>&5
30090   ac_status=$?
30091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092   (exit $ac_status); }; } &&
30093          { ac_try='test -s conftest.$ac_objext'
30094   { (case "(($ac_try" in
30095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096   *) ac_try_echo=$ac_try;;
30097 esac
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099   (eval "$ac_try") 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; }; then
30103   ac_cv_type_int64_t=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108         ac_cv_type_int64_t=no
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112 fi
30113 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30114 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30115 if test $ac_cv_type_int64_t = yes; then
30116
30117 cat >>confdefs.h <<_ACEOF
30118 #define HAVE_INT64_T 1
30119 _ACEOF
30120
30121
30122 else
30123   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30124 echo "$as_me: error: Type int64_t required but not found" >&2;}
30125    { (exit 1); exit 1; }; }
30126 fi
30127
30128 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30129 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30130 if test "${ac_cv_type_uint64_t+set}" = set; then
30131   echo $ECHO_N "(cached) $ECHO_C" >&6
30132 else
30133   cat >conftest.$ac_ext <<_ACEOF
30134 /* confdefs.h.  */
30135 _ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h.  */
30139 $ac_includes_default
30140 typedef uint64_t ac__type_new_;
30141 int
30142 main ()
30143 {
30144 if ((ac__type_new_ *) 0)
30145   return 0;
30146 if (sizeof (ac__type_new_))
30147   return 0;
30148   ;
30149   return 0;
30150 }
30151 _ACEOF
30152 rm -f conftest.$ac_objext
30153 if { (ac_try="$ac_compile"
30154 case "(($ac_try" in
30155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156   *) ac_try_echo=$ac_try;;
30157 esac
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159   (eval "$ac_compile") 2>conftest.er1
30160   ac_status=$?
30161   grep -v '^ *+' conftest.er1 >conftest.err
30162   rm -f conftest.er1
30163   cat conftest.err >&5
30164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); } &&
30166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30167   { (case "(($ac_try" in
30168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30169   *) ac_try_echo=$ac_try;;
30170 esac
30171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30172   (eval "$ac_try") 2>&5
30173   ac_status=$?
30174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175   (exit $ac_status); }; } &&
30176          { ac_try='test -s conftest.$ac_objext'
30177   { (case "(($ac_try" in
30178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30179   *) ac_try_echo=$ac_try;;
30180 esac
30181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30182   (eval "$ac_try") 2>&5
30183   ac_status=$?
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); }; }; then
30186   ac_cv_type_uint64_t=yes
30187 else
30188   echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30190
30191         ac_cv_type_uint64_t=no
30192 fi
30193
30194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30195 fi
30196 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30197 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30198 if test $ac_cv_type_uint64_t = yes; then
30199
30200 cat >>confdefs.h <<_ACEOF
30201 #define HAVE_UINT64_T 1
30202 _ACEOF
30203
30204
30205 else
30206   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30207 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30208 if test "${ac_cv_type_u_int64_t+set}" = set; then
30209   echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211   cat >conftest.$ac_ext <<_ACEOF
30212 /* confdefs.h.  */
30213 _ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h.  */
30217 $ac_includes_default
30218 typedef u_int64_t ac__type_new_;
30219 int
30220 main ()
30221 {
30222 if ((ac__type_new_ *) 0)
30223   return 0;
30224 if (sizeof (ac__type_new_))
30225   return 0;
30226   ;
30227   return 0;
30228 }
30229 _ACEOF
30230 rm -f conftest.$ac_objext
30231 if { (ac_try="$ac_compile"
30232 case "(($ac_try" in
30233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234   *) ac_try_echo=$ac_try;;
30235 esac
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237   (eval "$ac_compile") 2>conftest.er1
30238   ac_status=$?
30239   grep -v '^ *+' conftest.er1 >conftest.err
30240   rm -f conftest.er1
30241   cat conftest.err >&5
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); } &&
30244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30245   { (case "(($ac_try" in
30246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247   *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250   (eval "$ac_try") 2>&5
30251   ac_status=$?
30252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253   (exit $ac_status); }; } &&
30254          { ac_try='test -s conftest.$ac_objext'
30255   { (case "(($ac_try" in
30256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257   *) ac_try_echo=$ac_try;;
30258 esac
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260   (eval "$ac_try") 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; }; then
30264   ac_cv_type_u_int64_t=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269         ac_cv_type_u_int64_t=no
30270 fi
30271
30272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30273 fi
30274 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30275 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30276 if test $ac_cv_type_u_int64_t = yes; then
30277
30278 cat >>confdefs.h <<_ACEOF
30279 #define HAVE_U_INT64_T 1
30280 _ACEOF
30281
30282
30283 else
30284   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30285 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30286    { (exit 1); exit 1; }; }
30287 fi
30288
30289 fi
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30301 do
30302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30306   echo $ECHO_N "(cached) $ECHO_C" >&6
30307 else
30308   cat >conftest.$ac_ext <<_ACEOF
30309 /* confdefs.h.  */
30310 _ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h.  */
30314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30316 #define $ac_func innocuous_$ac_func
30317
30318 /* System header to define __stub macros and hopefully few prototypes,
30319     which can conflict with char $ac_func (); below.
30320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30321     <limits.h> exists even on freestanding compilers.  */
30322
30323 #ifdef __STDC__
30324 # include <limits.h>
30325 #else
30326 # include <assert.h>
30327 #endif
30328
30329 #undef $ac_func
30330
30331 /* Override any GCC internal prototype to avoid an error.
30332    Use char because int might match the return type of a GCC
30333    builtin and then its argument prototype would still apply.  */
30334 #ifdef __cplusplus
30335 extern "C"
30336 #endif
30337 char $ac_func ();
30338 /* The GNU C library defines this for functions which it implements
30339     to always fail with ENOSYS.  Some functions are actually named
30340     something starting with __ and the normal name is an alias.  */
30341 #if defined __stub_$ac_func || defined __stub___$ac_func
30342 choke me
30343 #endif
30344
30345 int
30346 main ()
30347 {
30348 return $ac_func ();
30349   ;
30350   return 0;
30351 }
30352 _ACEOF
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (ac_try="$ac_link"
30355 case "(($ac_try" in
30356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357   *) ac_try_echo=$ac_try;;
30358 esac
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360   (eval "$ac_link") 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } &&
30367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30368   { (case "(($ac_try" in
30369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370   *) ac_try_echo=$ac_try;;
30371 esac
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373   (eval "$ac_try") 2>&5
30374   ac_status=$?
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); }; } &&
30377          { ac_try='test -s conftest$ac_exeext'
30378   { (case "(($ac_try" in
30379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380   *) ac_try_echo=$ac_try;;
30381 esac
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383   (eval "$ac_try") 2>&5
30384   ac_status=$?
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); }; }; then
30387   eval "$as_ac_var=yes"
30388 else
30389   echo "$as_me: failed program was:" >&5
30390 sed 's/^/| /' conftest.$ac_ext >&5
30391
30392         eval "$as_ac_var=no"
30393 fi
30394
30395 rm -f core conftest.err conftest.$ac_objext \
30396       conftest$ac_exeext conftest.$ac_ext
30397 fi
30398 ac_res=`eval echo '${'$as_ac_var'}'`
30399                { echo "$as_me:$LINENO: result: $ac_res" >&5
30400 echo "${ECHO_T}$ac_res" >&6; }
30401 if test `eval echo '${'$as_ac_var'}'` = yes; then
30402   cat >>confdefs.h <<_ACEOF
30403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30404 _ACEOF
30405
30406 fi
30407 done
30408
30409
30410
30411
30412
30413 for ac_func in powf fmodf strtof round
30414 do
30415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30419   echo $ECHO_N "(cached) $ECHO_C" >&6
30420 else
30421   cat >conftest.$ac_ext <<_ACEOF
30422 /* confdefs.h.  */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h.  */
30427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30429 #define $ac_func innocuous_$ac_func
30430
30431 /* System header to define __stub macros and hopefully few prototypes,
30432     which can conflict with char $ac_func (); below.
30433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434     <limits.h> exists even on freestanding compilers.  */
30435
30436 #ifdef __STDC__
30437 # include <limits.h>
30438 #else
30439 # include <assert.h>
30440 #endif
30441
30442 #undef $ac_func
30443
30444 /* Override any GCC internal prototype to avoid an error.
30445    Use char because int might match the return type of a GCC
30446    builtin and then its argument prototype would still apply.  */
30447 #ifdef __cplusplus
30448 extern "C"
30449 #endif
30450 char $ac_func ();
30451 /* The GNU C library defines this for functions which it implements
30452     to always fail with ENOSYS.  Some functions are actually named
30453     something starting with __ and the normal name is an alias.  */
30454 #if defined __stub_$ac_func || defined __stub___$ac_func
30455 choke me
30456 #endif
30457
30458 int
30459 main ()
30460 {
30461 return $ac_func ();
30462   ;
30463   return 0;
30464 }
30465 _ACEOF
30466 rm -f conftest.$ac_objext conftest$ac_exeext
30467 if { (ac_try="$ac_link"
30468 case "(($ac_try" in
30469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470   *) ac_try_echo=$ac_try;;
30471 esac
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473   (eval "$ac_link") 2>conftest.er1
30474   ac_status=$?
30475   grep -v '^ *+' conftest.er1 >conftest.err
30476   rm -f conftest.er1
30477   cat conftest.err >&5
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); } &&
30480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481   { (case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486   (eval "$ac_try") 2>&5
30487   ac_status=$?
30488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489   (exit $ac_status); }; } &&
30490          { ac_try='test -s conftest$ac_exeext'
30491   { (case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_try") 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; }; then
30500   eval "$as_ac_var=yes"
30501 else
30502   echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30504
30505         eval "$as_ac_var=no"
30506 fi
30507
30508 rm -f core conftest.err conftest.$ac_objext \
30509       conftest$ac_exeext conftest.$ac_ext
30510 fi
30511 ac_res=`eval echo '${'$as_ac_var'}'`
30512                { echo "$as_me:$LINENO: result: $ac_res" >&5
30513 echo "${ECHO_T}$ac_res" >&6; }
30514 if test `eval echo '${'$as_ac_var'}'` = yes; then
30515   cat >>confdefs.h <<_ACEOF
30516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30517 _ACEOF
30518
30519 fi
30520 done
30521
30522
30523
30524
30525
30526
30527 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30528 do
30529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30533   echo $ECHO_N "(cached) $ECHO_C" >&6
30534 else
30535   cat >conftest.$ac_ext <<_ACEOF
30536 /* confdefs.h.  */
30537 _ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h.  */
30541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30543 #define $ac_func innocuous_$ac_func
30544
30545 /* System header to define __stub macros and hopefully few prototypes,
30546     which can conflict with char $ac_func (); below.
30547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30548     <limits.h> exists even on freestanding compilers.  */
30549
30550 #ifdef __STDC__
30551 # include <limits.h>
30552 #else
30553 # include <assert.h>
30554 #endif
30555
30556 #undef $ac_func
30557
30558 /* Override any GCC internal prototype to avoid an error.
30559    Use char because int might match the return type of a GCC
30560    builtin and then its argument prototype would still apply.  */
30561 #ifdef __cplusplus
30562 extern "C"
30563 #endif
30564 char $ac_func ();
30565 /* The GNU C library defines this for functions which it implements
30566     to always fail with ENOSYS.  Some functions are actually named
30567     something starting with __ and the normal name is an alias.  */
30568 #if defined __stub_$ac_func || defined __stub___$ac_func
30569 choke me
30570 #endif
30571
30572 int
30573 main ()
30574 {
30575 return $ac_func ();
30576   ;
30577   return 0;
30578 }
30579 _ACEOF
30580 rm -f conftest.$ac_objext conftest$ac_exeext
30581 if { (ac_try="$ac_link"
30582 case "(($ac_try" in
30583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584   *) ac_try_echo=$ac_try;;
30585 esac
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587   (eval "$ac_link") 2>conftest.er1
30588   ac_status=$?
30589   grep -v '^ *+' conftest.er1 >conftest.err
30590   rm -f conftest.er1
30591   cat conftest.err >&5
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); } &&
30594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30595   { (case "(($ac_try" in
30596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597   *) ac_try_echo=$ac_try;;
30598 esac
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600   (eval "$ac_try") 2>&5
30601   ac_status=$?
30602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603   (exit $ac_status); }; } &&
30604          { ac_try='test -s conftest$ac_exeext'
30605   { (case "(($ac_try" in
30606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607   *) ac_try_echo=$ac_try;;
30608 esac
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610   (eval "$ac_try") 2>&5
30611   ac_status=$?
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); }; }; then
30614   eval "$as_ac_var=yes"
30615 else
30616   echo "$as_me: failed program was:" >&5
30617 sed 's/^/| /' conftest.$ac_ext >&5
30618
30619         eval "$as_ac_var=no"
30620 fi
30621
30622 rm -f core conftest.err conftest.$ac_objext \
30623       conftest$ac_exeext conftest.$ac_ext
30624 fi
30625 ac_res=`eval echo '${'$as_ac_var'}'`
30626                { echo "$as_me:$LINENO: result: $ac_res" >&5
30627 echo "${ECHO_T}$ac_res" >&6; }
30628 if test `eval echo '${'$as_ac_var'}'` = yes; then
30629   cat >>confdefs.h <<_ACEOF
30630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30631 _ACEOF
30632
30633 fi
30634 done
30635
30636
30637
30638
30639 for ac_func in isatty mkdtemp mkstemp
30640 do
30641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30645   echo $ECHO_N "(cached) $ECHO_C" >&6
30646 else
30647   cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h.  */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h.  */
30653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30655 #define $ac_func innocuous_$ac_func
30656
30657 /* System header to define __stub macros and hopefully few prototypes,
30658     which can conflict with char $ac_func (); below.
30659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30660     <limits.h> exists even on freestanding compilers.  */
30661
30662 #ifdef __STDC__
30663 # include <limits.h>
30664 #else
30665 # include <assert.h>
30666 #endif
30667
30668 #undef $ac_func
30669
30670 /* Override any GCC internal prototype to avoid an error.
30671    Use char because int might match the return type of a GCC
30672    builtin and then its argument prototype would still apply.  */
30673 #ifdef __cplusplus
30674 extern "C"
30675 #endif
30676 char $ac_func ();
30677 /* The GNU C library defines this for functions which it implements
30678     to always fail with ENOSYS.  Some functions are actually named
30679     something starting with __ and the normal name is an alias.  */
30680 #if defined __stub_$ac_func || defined __stub___$ac_func
30681 choke me
30682 #endif
30683
30684 int
30685 main ()
30686 {
30687 return $ac_func ();
30688   ;
30689   return 0;
30690 }
30691 _ACEOF
30692 rm -f conftest.$ac_objext conftest$ac_exeext
30693 if { (ac_try="$ac_link"
30694 case "(($ac_try" in
30695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696   *) ac_try_echo=$ac_try;;
30697 esac
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699   (eval "$ac_link") 2>conftest.er1
30700   ac_status=$?
30701   grep -v '^ *+' conftest.er1 >conftest.err
30702   rm -f conftest.er1
30703   cat conftest.err >&5
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); } &&
30706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707   { (case "(($ac_try" in
30708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709   *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712   (eval "$ac_try") 2>&5
30713   ac_status=$?
30714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715   (exit $ac_status); }; } &&
30716          { ac_try='test -s conftest$ac_exeext'
30717   { (case "(($ac_try" in
30718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719   *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722   (eval "$ac_try") 2>&5
30723   ac_status=$?
30724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725   (exit $ac_status); }; }; then
30726   eval "$as_ac_var=yes"
30727 else
30728   echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30730
30731         eval "$as_ac_var=no"
30732 fi
30733
30734 rm -f core conftest.err conftest.$ac_objext \
30735       conftest$ac_exeext conftest.$ac_ext
30736 fi
30737 ac_res=`eval echo '${'$as_ac_var'}'`
30738                { echo "$as_me:$LINENO: result: $ac_res" >&5
30739 echo "${ECHO_T}$ac_res" >&6; }
30740 if test `eval echo '${'$as_ac_var'}'` = yes; then
30741   cat >>confdefs.h <<_ACEOF
30742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30743 _ACEOF
30744
30745 fi
30746 done
30747
30748
30749
30750
30751
30752
30753
30754
30755 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30756 do
30757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30761   echo $ECHO_N "(cached) $ECHO_C" >&6
30762 else
30763   cat >conftest.$ac_ext <<_ACEOF
30764 /* confdefs.h.  */
30765 _ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h.  */
30769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30771 #define $ac_func innocuous_$ac_func
30772
30773 /* System header to define __stub macros and hopefully few prototypes,
30774     which can conflict with char $ac_func (); below.
30775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30776     <limits.h> exists even on freestanding compilers.  */
30777
30778 #ifdef __STDC__
30779 # include <limits.h>
30780 #else
30781 # include <assert.h>
30782 #endif
30783
30784 #undef $ac_func
30785
30786 /* Override any GCC internal prototype to avoid an error.
30787    Use char because int might match the return type of a GCC
30788    builtin and then its argument prototype would still apply.  */
30789 #ifdef __cplusplus
30790 extern "C"
30791 #endif
30792 char $ac_func ();
30793 /* The GNU C library defines this for functions which it implements
30794     to always fail with ENOSYS.  Some functions are actually named
30795     something starting with __ and the normal name is an alias.  */
30796 #if defined __stub_$ac_func || defined __stub___$ac_func
30797 choke me
30798 #endif
30799
30800 int
30801 main ()
30802 {
30803 return $ac_func ();
30804   ;
30805   return 0;
30806 }
30807 _ACEOF
30808 rm -f conftest.$ac_objext conftest$ac_exeext
30809 if { (ac_try="$ac_link"
30810 case "(($ac_try" in
30811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812   *) ac_try_echo=$ac_try;;
30813 esac
30814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815   (eval "$ac_link") 2>conftest.er1
30816   ac_status=$?
30817   grep -v '^ *+' conftest.er1 >conftest.err
30818   rm -f conftest.er1
30819   cat conftest.err >&5
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); } &&
30822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30823   { (case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828   (eval "$ac_try") 2>&5
30829   ac_status=$?
30830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831   (exit $ac_status); }; } &&
30832          { ac_try='test -s conftest$ac_exeext'
30833   { (case "(($ac_try" in
30834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835   *) ac_try_echo=$ac_try;;
30836 esac
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838   (eval "$ac_try") 2>&5
30839   ac_status=$?
30840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841   (exit $ac_status); }; }; then
30842   eval "$as_ac_var=yes"
30843 else
30844   echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847         eval "$as_ac_var=no"
30848 fi
30849
30850 rm -f core conftest.err conftest.$ac_objext \
30851       conftest$ac_exeext conftest.$ac_ext
30852 fi
30853 ac_res=`eval echo '${'$as_ac_var'}'`
30854                { echo "$as_me:$LINENO: result: $ac_res" >&5
30855 echo "${ECHO_T}$ac_res" >&6; }
30856 if test `eval echo '${'$as_ac_var'}'` = yes; then
30857   cat >>confdefs.h <<_ACEOF
30858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30859 _ACEOF
30860
30861 fi
30862 done
30863
30864
30865
30866
30867
30868 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30869 do
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876   cat >conftest.$ac_ext <<_ACEOF
30877 /* confdefs.h.  */
30878 _ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h.  */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30884 #define $ac_func innocuous_$ac_func
30885
30886 /* System header to define __stub macros and hopefully few prototypes,
30887     which can conflict with char $ac_func (); below.
30888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889     <limits.h> exists even on freestanding compilers.  */
30890
30891 #ifdef __STDC__
30892 # include <limits.h>
30893 #else
30894 # include <assert.h>
30895 #endif
30896
30897 #undef $ac_func
30898
30899 /* Override any GCC internal prototype to avoid an error.
30900    Use char because int might match the return type of a GCC
30901    builtin and then its argument prototype would still apply.  */
30902 #ifdef __cplusplus
30903 extern "C"
30904 #endif
30905 char $ac_func ();
30906 /* The GNU C library defines this for functions which it implements
30907     to always fail with ENOSYS.  Some functions are actually named
30908     something starting with __ and the normal name is an alias.  */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30910 choke me
30911 #endif
30912
30913 int
30914 main ()
30915 {
30916 return $ac_func ();
30917   ;
30918   return 0;
30919 }
30920 _ACEOF
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925   *) ac_try_echo=$ac_try;;
30926 esac
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928   (eval "$ac_link") 2>conftest.er1
30929   ac_status=$?
30930   grep -v '^ *+' conftest.er1 >conftest.err
30931   rm -f conftest.er1
30932   cat conftest.err >&5
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); } &&
30935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936   { (case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_try") 2>&5
30942   ac_status=$?
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); }; } &&
30945          { ac_try='test -s conftest$ac_exeext'
30946   { (case "(($ac_try" in
30947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948   *) ac_try_echo=$ac_try;;
30949 esac
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951   (eval "$ac_try") 2>&5
30952   ac_status=$?
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); }; }; then
30955   eval "$as_ac_var=yes"
30956 else
30957   echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30959
30960         eval "$as_ac_var=no"
30961 fi
30962
30963 rm -f core conftest.err conftest.$ac_objext \
30964       conftest$ac_exeext conftest.$ac_ext
30965 fi
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967                { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970   cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972 _ACEOF
30973
30974 fi
30975 done
30976
30977
30978
30979
30980
30981 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30982 do
30983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987   echo $ECHO_N "(cached) $ECHO_C" >&6
30988 else
30989   cat >conftest.$ac_ext <<_ACEOF
30990 /* confdefs.h.  */
30991 _ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h.  */
30995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30997 #define $ac_func innocuous_$ac_func
30998
30999 /* System header to define __stub macros and hopefully few prototypes,
31000     which can conflict with char $ac_func (); below.
31001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002     <limits.h> exists even on freestanding compilers.  */
31003
31004 #ifdef __STDC__
31005 # include <limits.h>
31006 #else
31007 # include <assert.h>
31008 #endif
31009
31010 #undef $ac_func
31011
31012 /* Override any GCC internal prototype to avoid an error.
31013    Use char because int might match the return type of a GCC
31014    builtin and then its argument prototype would still apply.  */
31015 #ifdef __cplusplus
31016 extern "C"
31017 #endif
31018 char $ac_func ();
31019 /* The GNU C library defines this for functions which it implements
31020     to always fail with ENOSYS.  Some functions are actually named
31021     something starting with __ and the normal name is an alias.  */
31022 #if defined __stub_$ac_func || defined __stub___$ac_func
31023 choke me
31024 #endif
31025
31026 int
31027 main ()
31028 {
31029 return $ac_func ();
31030   ;
31031   return 0;
31032 }
31033 _ACEOF
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (ac_try="$ac_link"
31036 case "(($ac_try" in
31037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038   *) ac_try_echo=$ac_try;;
31039 esac
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041   (eval "$ac_link") 2>conftest.er1
31042   ac_status=$?
31043   grep -v '^ *+' conftest.er1 >conftest.err
31044   rm -f conftest.er1
31045   cat conftest.err >&5
31046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047   (exit $ac_status); } &&
31048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049   { (case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_try") 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; } &&
31058          { ac_try='test -s conftest$ac_exeext'
31059   { (case "(($ac_try" in
31060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061   *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064   (eval "$ac_try") 2>&5
31065   ac_status=$?
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); }; }; then
31068   eval "$as_ac_var=yes"
31069 else
31070   echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31072
31073         eval "$as_ac_var=no"
31074 fi
31075
31076 rm -f core conftest.err conftest.$ac_objext \
31077       conftest$ac_exeext conftest.$ac_ext
31078 fi
31079 ac_res=`eval echo '${'$as_ac_var'}'`
31080                { echo "$as_me:$LINENO: result: $ac_res" >&5
31081 echo "${ECHO_T}$ac_res" >&6; }
31082 if test `eval echo '${'$as_ac_var'}'` = yes; then
31083   cat >>confdefs.h <<_ACEOF
31084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31085 _ACEOF
31086
31087 fi
31088 done
31089
31090 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31091 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31092 if test "${llvm_cv_c_printf_a+set}" = set; then
31093   echo $ECHO_N "(cached) $ECHO_C" >&6
31094 else
31095   ac_ext=c
31096 ac_cpp='$CPP $CPPFLAGS'
31097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31100
31101  if test "$cross_compiling" = yes; then
31102   llvmac_cv_c_printf_a=no
31103 else
31104   cat >conftest.$ac_ext <<_ACEOF
31105
31106   /* confdefs.h.  */
31107 _ACEOF
31108 cat confdefs.h >>conftest.$ac_ext
31109 cat >>conftest.$ac_ext <<_ACEOF
31110 /* end confdefs.h.  */
31111
31112 #include <stdio.h>
31113 #include <stdlib.h>
31114
31115 int
31116 main ()
31117 {
31118
31119 volatile double A, B;
31120 char Buffer[100];
31121 A = 1;
31122 A /= 10.0;
31123 sprintf(Buffer, "%a", A);
31124 B = atof(Buffer);
31125 if (A != B)
31126   return (1);
31127 if (A != 0x1.999999999999ap-4)
31128   return (1);
31129 return (0);
31130   ;
31131   return 0;
31132 }
31133 _ACEOF
31134 rm -f conftest$ac_exeext
31135 if { (ac_try="$ac_link"
31136 case "(($ac_try" in
31137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138   *) ac_try_echo=$ac_try;;
31139 esac
31140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31141   (eval "$ac_link") 2>&5
31142   ac_status=$?
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31145   { (case "(($ac_try" in
31146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147   *) ac_try_echo=$ac_try;;
31148 esac
31149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150   (eval "$ac_try") 2>&5
31151   ac_status=$?
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); }; }; then
31154   llvm_cv_c_printf_a=yes
31155 else
31156   echo "$as_me: program exited with status $ac_status" >&5
31157 echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31159
31160 ( exit $ac_status )
31161 llvmac_cv_c_printf_a=no
31162 fi
31163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31164 fi
31165
31166
31167  ac_ext=c
31168 ac_cpp='$CPP $CPPFLAGS'
31169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31172
31173 fi
31174 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31175 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31176  if test "$llvm_cv_c_printf_a" = "yes"; then
31177
31178 cat >>confdefs.h <<\_ACEOF
31179 #define HAVE_PRINTF_A 1
31180 _ACEOF
31181
31182  fi
31183
31184 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31185 # for constant arguments.  Useless!
31186 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31187 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31188 if test "${ac_cv_working_alloca_h+set}" = set; then
31189   echo $ECHO_N "(cached) $ECHO_C" >&6
31190 else
31191   cat >conftest.$ac_ext <<_ACEOF
31192 /* confdefs.h.  */
31193 _ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h.  */
31197 #include <alloca.h>
31198 int
31199 main ()
31200 {
31201 char *p = (char *) alloca (2 * sizeof (int));
31202                           if (p) return 0;
31203   ;
31204   return 0;
31205 }
31206 _ACEOF
31207 rm -f conftest.$ac_objext conftest$ac_exeext
31208 if { (ac_try="$ac_link"
31209 case "(($ac_try" in
31210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211   *) ac_try_echo=$ac_try;;
31212 esac
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214   (eval "$ac_link") 2>conftest.er1
31215   ac_status=$?
31216   grep -v '^ *+' conftest.er1 >conftest.err
31217   rm -f conftest.er1
31218   cat conftest.err >&5
31219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220   (exit $ac_status); } &&
31221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31222   { (case "(($ac_try" in
31223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224   *) ac_try_echo=$ac_try;;
31225 esac
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227   (eval "$ac_try") 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; } &&
31231          { ac_try='test -s conftest$ac_exeext'
31232   { (case "(($ac_try" in
31233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234   *) ac_try_echo=$ac_try;;
31235 esac
31236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237   (eval "$ac_try") 2>&5
31238   ac_status=$?
31239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240   (exit $ac_status); }; }; then
31241   ac_cv_working_alloca_h=yes
31242 else
31243   echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31245
31246         ac_cv_working_alloca_h=no
31247 fi
31248
31249 rm -f core conftest.err conftest.$ac_objext \
31250       conftest$ac_exeext conftest.$ac_ext
31251 fi
31252 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31254 if test $ac_cv_working_alloca_h = yes; then
31255
31256 cat >>confdefs.h <<\_ACEOF
31257 #define HAVE_ALLOCA_H 1
31258 _ACEOF
31259
31260 fi
31261
31262 { echo "$as_me:$LINENO: checking for alloca" >&5
31263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31264 if test "${ac_cv_func_alloca_works+set}" = set; then
31265   echo $ECHO_N "(cached) $ECHO_C" >&6
31266 else
31267   cat >conftest.$ac_ext <<_ACEOF
31268 /* confdefs.h.  */
31269 _ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h.  */
31273 #ifdef __GNUC__
31274 # define alloca __builtin_alloca
31275 #else
31276 # ifdef _MSC_VER
31277 #  include <malloc.h>
31278 #  define alloca _alloca
31279 # else
31280 #  if HAVE_ALLOCA_H
31281 #   include <alloca.h>
31282 #  else
31283 #   ifdef _AIX
31284  #pragma alloca
31285 #   else
31286 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31287 char *alloca ();
31288 #    endif
31289 #   endif
31290 #  endif
31291 # endif
31292 #endif
31293
31294 int
31295 main ()
31296 {
31297 char *p = (char *) alloca (1);
31298                                     if (p) return 0;
31299   ;
31300   return 0;
31301 }
31302 _ACEOF
31303 rm -f conftest.$ac_objext conftest$ac_exeext
31304 if { (ac_try="$ac_link"
31305 case "(($ac_try" in
31306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307   *) ac_try_echo=$ac_try;;
31308 esac
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310   (eval "$ac_link") 2>conftest.er1
31311   ac_status=$?
31312   grep -v '^ *+' conftest.er1 >conftest.err
31313   rm -f conftest.er1
31314   cat conftest.err >&5
31315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316   (exit $ac_status); } &&
31317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31318   { (case "(($ac_try" in
31319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320   *) ac_try_echo=$ac_try;;
31321 esac
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323   (eval "$ac_try") 2>&5
31324   ac_status=$?
31325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326   (exit $ac_status); }; } &&
31327          { ac_try='test -s conftest$ac_exeext'
31328   { (case "(($ac_try" in
31329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330   *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333   (eval "$ac_try") 2>&5
31334   ac_status=$?
31335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336   (exit $ac_status); }; }; then
31337   ac_cv_func_alloca_works=yes
31338 else
31339   echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31341
31342         ac_cv_func_alloca_works=no
31343 fi
31344
31345 rm -f core conftest.err conftest.$ac_objext \
31346       conftest$ac_exeext conftest.$ac_ext
31347 fi
31348 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31349 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31350
31351 if test $ac_cv_func_alloca_works = yes; then
31352
31353 cat >>confdefs.h <<\_ACEOF
31354 #define HAVE_ALLOCA 1
31355 _ACEOF
31356
31357 else
31358   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31359 # that cause trouble.  Some versions do not even contain alloca or
31360 # contain a buggy version.  If you still want to use their alloca,
31361 # use ar to extract alloca.o from them instead of compiling alloca.c.
31362
31363 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31364
31365 cat >>confdefs.h <<\_ACEOF
31366 #define C_ALLOCA 1
31367 _ACEOF
31368
31369
31370 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31371 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31372 if test "${ac_cv_os_cray+set}" = set; then
31373   echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31375   cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381 #if defined CRAY && ! defined CRAY2
31382 webecray
31383 #else
31384 wenotbecray
31385 #endif
31386
31387 _ACEOF
31388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31389   $EGREP "webecray" >/dev/null 2>&1; then
31390   ac_cv_os_cray=yes
31391 else
31392   ac_cv_os_cray=no
31393 fi
31394 rm -f conftest*
31395
31396 fi
31397 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31398 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31399 if test $ac_cv_os_cray = yes; then
31400   for ac_func in _getb67 GETB67 getb67; do
31401     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31405   echo $ECHO_N "(cached) $ECHO_C" >&6
31406 else
31407   cat >conftest.$ac_ext <<_ACEOF
31408 /* confdefs.h.  */
31409 _ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h.  */
31413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31415 #define $ac_func innocuous_$ac_func
31416
31417 /* System header to define __stub macros and hopefully few prototypes,
31418     which can conflict with char $ac_func (); below.
31419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31420     <limits.h> exists even on freestanding compilers.  */
31421
31422 #ifdef __STDC__
31423 # include <limits.h>
31424 #else
31425 # include <assert.h>
31426 #endif
31427
31428 #undef $ac_func
31429
31430 /* Override any GCC internal prototype to avoid an error.
31431    Use char because int might match the return type of a GCC
31432    builtin and then its argument prototype would still apply.  */
31433 #ifdef __cplusplus
31434 extern "C"
31435 #endif
31436 char $ac_func ();
31437 /* The GNU C library defines this for functions which it implements
31438     to always fail with ENOSYS.  Some functions are actually named
31439     something starting with __ and the normal name is an alias.  */
31440 #if defined __stub_$ac_func || defined __stub___$ac_func
31441 choke me
31442 #endif
31443
31444 int
31445 main ()
31446 {
31447 return $ac_func ();
31448   ;
31449   return 0;
31450 }
31451 _ACEOF
31452 rm -f conftest.$ac_objext conftest$ac_exeext
31453 if { (ac_try="$ac_link"
31454 case "(($ac_try" in
31455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456   *) ac_try_echo=$ac_try;;
31457 esac
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459   (eval "$ac_link") 2>conftest.er1
31460   ac_status=$?
31461   grep -v '^ *+' conftest.er1 >conftest.err
31462   rm -f conftest.er1
31463   cat conftest.err >&5
31464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465   (exit $ac_status); } &&
31466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31467   { (case "(($ac_try" in
31468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469   *) ac_try_echo=$ac_try;;
31470 esac
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472   (eval "$ac_try") 2>&5
31473   ac_status=$?
31474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475   (exit $ac_status); }; } &&
31476          { ac_try='test -s conftest$ac_exeext'
31477   { (case "(($ac_try" in
31478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479   *) ac_try_echo=$ac_try;;
31480 esac
31481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482   (eval "$ac_try") 2>&5
31483   ac_status=$?
31484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485   (exit $ac_status); }; }; then
31486   eval "$as_ac_var=yes"
31487 else
31488   echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31490
31491         eval "$as_ac_var=no"
31492 fi
31493
31494 rm -f core conftest.err conftest.$ac_objext \
31495       conftest$ac_exeext conftest.$ac_ext
31496 fi
31497 ac_res=`eval echo '${'$as_ac_var'}'`
31498                { echo "$as_me:$LINENO: result: $ac_res" >&5
31499 echo "${ECHO_T}$ac_res" >&6; }
31500 if test `eval echo '${'$as_ac_var'}'` = yes; then
31501
31502 cat >>confdefs.h <<_ACEOF
31503 #define CRAY_STACKSEG_END $ac_func
31504 _ACEOF
31505
31506     break
31507 fi
31508
31509   done
31510 fi
31511
31512 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31514 if test "${ac_cv_c_stack_direction+set}" = set; then
31515   echo $ECHO_N "(cached) $ECHO_C" >&6
31516 else
31517   if test "$cross_compiling" = yes; then
31518   ac_cv_c_stack_direction=0
31519 else
31520   cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h.  */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h.  */
31526 $ac_includes_default
31527 int
31528 find_stack_direction ()
31529 {
31530   static char *addr = 0;
31531   auto char dummy;
31532   if (addr == 0)
31533     {
31534       addr = &dummy;
31535       return find_stack_direction ();
31536     }
31537   else
31538     return (&dummy > addr) ? 1 : -1;
31539 }
31540
31541 int
31542 main ()
31543 {
31544   return find_stack_direction () < 0;
31545 }
31546 _ACEOF
31547 rm -f conftest$ac_exeext
31548 if { (ac_try="$ac_link"
31549 case "(($ac_try" in
31550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551   *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554   (eval "$ac_link") 2>&5
31555   ac_status=$?
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31558   { (case "(($ac_try" in
31559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560   *) ac_try_echo=$ac_try;;
31561 esac
31562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563   (eval "$ac_try") 2>&5
31564   ac_status=$?
31565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566   (exit $ac_status); }; }; then
31567   ac_cv_c_stack_direction=1
31568 else
31569   echo "$as_me: program exited with status $ac_status" >&5
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573 ( exit $ac_status )
31574 ac_cv_c_stack_direction=-1
31575 fi
31576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31577 fi
31578
31579
31580 fi
31581 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31582 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31583
31584 cat >>confdefs.h <<_ACEOF
31585 #define STACK_DIRECTION $ac_cv_c_stack_direction
31586 _ACEOF
31587
31588
31589 fi
31590
31591
31592 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31593 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31594 if test "${ac_cv_func_rand48+set}" = set; then
31595   echo $ECHO_N "(cached) $ECHO_C" >&6
31596 else
31597   ac_ext=cpp
31598 ac_cpp='$CXXCPP $CPPFLAGS'
31599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31602
31603    cat >conftest.$ac_ext <<_ACEOF
31604 /* confdefs.h.  */
31605 _ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h.  */
31609 #include <stdlib.h>
31610 int
31611 main ()
31612 {
31613 srand48(0);lrand48();drand48();
31614   ;
31615   return 0;
31616 }
31617 _ACEOF
31618 rm -f conftest.$ac_objext
31619 if { (ac_try="$ac_compile"
31620 case "(($ac_try" in
31621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622   *) ac_try_echo=$ac_try;;
31623 esac
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625   (eval "$ac_compile") 2>conftest.er1
31626   ac_status=$?
31627   grep -v '^ *+' conftest.er1 >conftest.err
31628   rm -f conftest.er1
31629   cat conftest.err >&5
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); } &&
31632          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31633   { (case "(($ac_try" in
31634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31635   *) ac_try_echo=$ac_try;;
31636 esac
31637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31638   (eval "$ac_try") 2>&5
31639   ac_status=$?
31640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641   (exit $ac_status); }; } &&
31642          { ac_try='test -s conftest.$ac_objext'
31643   { (case "(($ac_try" in
31644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645   *) ac_try_echo=$ac_try;;
31646 esac
31647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648   (eval "$ac_try") 2>&5
31649   ac_status=$?
31650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); }; }; then
31652   ac_cv_func_rand48=yes
31653 else
31654   echo "$as_me: failed program was:" >&5
31655 sed 's/^/| /' conftest.$ac_ext >&5
31656
31657         ac_cv_func_rand48=no
31658 fi
31659
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661   ac_ext=c
31662 ac_cpp='$CPP $CPPFLAGS'
31663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31666
31667 fi
31668 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31669 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31670
31671 if test "$ac_cv_func_rand48" = "yes" ; then
31672
31673 cat >>confdefs.h <<\_ACEOF
31674 #define HAVE_RAND48 1
31675 _ACEOF
31676
31677 fi
31678
31679
31680 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31681 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31682 if test "${ac_cv_cxx_namespaces+set}" = set; then
31683   echo $ECHO_N "(cached) $ECHO_C" >&6
31684 else
31685   ac_ext=cpp
31686 ac_cpp='$CXXCPP $CPPFLAGS'
31687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31690
31691  cat >conftest.$ac_ext <<_ACEOF
31692 /* confdefs.h.  */
31693 _ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h.  */
31697 namespace Outer { namespace Inner { int i = 0; }}
31698 int
31699 main ()
31700 {
31701 using namespace Outer::Inner; return i;
31702   ;
31703   return 0;
31704 }
31705 _ACEOF
31706 rm -f conftest.$ac_objext
31707 if { (ac_try="$ac_compile"
31708 case "(($ac_try" in
31709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710   *) ac_try_echo=$ac_try;;
31711 esac
31712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713   (eval "$ac_compile") 2>conftest.er1
31714   ac_status=$?
31715   grep -v '^ *+' conftest.er1 >conftest.err
31716   rm -f conftest.er1
31717   cat conftest.err >&5
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); } &&
31720          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31721   { (case "(($ac_try" in
31722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723   *) ac_try_echo=$ac_try;;
31724 esac
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726   (eval "$ac_try") 2>&5
31727   ac_status=$?
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); }; } &&
31730          { ac_try='test -s conftest.$ac_objext'
31731   { (case "(($ac_try" in
31732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733   *) ac_try_echo=$ac_try;;
31734 esac
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736   (eval "$ac_try") 2>&5
31737   ac_status=$?
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); }; }; then
31740   ac_cv_cxx_namespaces=yes
31741 else
31742   echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31744
31745         ac_cv_cxx_namespaces=no
31746 fi
31747
31748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31749  ac_ext=c
31750 ac_cpp='$CPP $CPPFLAGS'
31751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31754
31755
31756 fi
31757 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31758 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31759 if test "$ac_cv_cxx_namespaces" = yes; then
31760
31761 cat >>confdefs.h <<\_ACEOF
31762 #define HAVE_NAMESPACES
31763 _ACEOF
31764
31765 fi
31766
31767 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31768 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31769 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31770   echo $ECHO_N "(cached) $ECHO_C" >&6
31771 else
31772
31773   ac_ext=cpp
31774 ac_cpp='$CXXCPP $CPPFLAGS'
31775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31778
31779   cat >conftest.$ac_ext <<_ACEOF
31780 /* confdefs.h.  */
31781 _ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h.  */
31785 #include <ext/hash_map>
31786 #ifdef HAVE_NAMESPACES
31787 using namespace std;
31788 #endif
31789 int
31790 main ()
31791 {
31792 hash_map<int, int> t;
31793   ;
31794   return 0;
31795 }
31796 _ACEOF
31797 rm -f conftest.$ac_objext
31798 if { (ac_try="$ac_compile"
31799 case "(($ac_try" in
31800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801   *) ac_try_echo=$ac_try;;
31802 esac
31803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31804   (eval "$ac_compile") 2>conftest.er1
31805   ac_status=$?
31806   grep -v '^ *+' conftest.er1 >conftest.err
31807   rm -f conftest.er1
31808   cat conftest.err >&5
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); } &&
31811          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31812   { (case "(($ac_try" in
31813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814   *) ac_try_echo=$ac_try;;
31815 esac
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817   (eval "$ac_try") 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); }; } &&
31821          { ac_try='test -s conftest.$ac_objext'
31822   { (case "(($ac_try" in
31823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824   *) ac_try_echo=$ac_try;;
31825 esac
31826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827   (eval "$ac_try") 2>&5
31828   ac_status=$?
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); }; }; then
31831   ac_cv_cxx_have_std_ext_hash_map=yes
31832 else
31833   echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31835
31836         ac_cv_cxx_have_std_ext_hash_map=no
31837 fi
31838
31839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31840   ac_ext=c
31841 ac_cpp='$CPP $CPPFLAGS'
31842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31845
31846 fi
31847 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31848 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31849  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31850  then
31851
31852 cat >>confdefs.h <<\_ACEOF
31853 #define HAVE_STD_EXT_HASH_MAP 1
31854 _ACEOF
31855
31856  else
31857
31858 cat >>confdefs.h <<\_ACEOF
31859 #define HAVE_STD_EXT_HASH_MAP 0
31860 _ACEOF
31861
31862  fi
31863
31864  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31865 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31866 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31867   echo $ECHO_N "(cached) $ECHO_C" >&6
31868 else
31869
31870   ac_ext=cpp
31871 ac_cpp='$CXXCPP $CPPFLAGS'
31872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31875
31876   cat >conftest.$ac_ext <<_ACEOF
31877 /* confdefs.h.  */
31878 _ACEOF
31879 cat confdefs.h >>conftest.$ac_ext
31880 cat >>conftest.$ac_ext <<_ACEOF
31881 /* end confdefs.h.  */
31882 #include <ext/hash_map>
31883 #ifdef HAVE_NAMESPACES
31884 using namespace __gnu_cxx;
31885 #endif
31886 int
31887 main ()
31888 {
31889 hash_map<int,int> t;
31890   ;
31891   return 0;
31892 }
31893 _ACEOF
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
31896 case "(($ac_try" in
31897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898   *) ac_try_echo=$ac_try;;
31899 esac
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901   (eval "$ac_compile") 2>conftest.er1
31902   ac_status=$?
31903   grep -v '^ *+' conftest.er1 >conftest.err
31904   rm -f conftest.er1
31905   cat conftest.err >&5
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); } &&
31908          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31909   { (case "(($ac_try" in
31910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911   *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914   (eval "$ac_try") 2>&5
31915   ac_status=$?
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); }; } &&
31918          { ac_try='test -s conftest.$ac_objext'
31919   { (case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_try") 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); }; }; then
31928   ac_cv_cxx_have_gnu_ext_hash_map=yes
31929 else
31930   echo "$as_me: failed program was:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31932
31933         ac_cv_cxx_have_gnu_ext_hash_map=no
31934 fi
31935
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31937   ac_ext=c
31938 ac_cpp='$CPP $CPPFLAGS'
31939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31942
31943 fi
31944 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31945 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31946  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31947  then
31948
31949 cat >>confdefs.h <<\_ACEOF
31950 #define HAVE_GNU_EXT_HASH_MAP 1
31951 _ACEOF
31952
31953  else
31954
31955 cat >>confdefs.h <<\_ACEOF
31956 #define HAVE_GNU_EXT_HASH_MAP 0
31957 _ACEOF
31958
31959  fi
31960
31961  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31962 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31963 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31964   echo $ECHO_N "(cached) $ECHO_C" >&6
31965 else
31966
31967   ac_ext=cpp
31968 ac_cpp='$CXXCPP $CPPFLAGS'
31969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31972
31973   cat >conftest.$ac_ext <<_ACEOF
31974 /* confdefs.h.  */
31975 _ACEOF
31976 cat confdefs.h >>conftest.$ac_ext
31977 cat >>conftest.$ac_ext <<_ACEOF
31978 /* end confdefs.h.  */
31979 #include <hash_map>
31980 int
31981 main ()
31982 {
31983 hash_map<int,int> t;
31984   ;
31985   return 0;
31986 }
31987 _ACEOF
31988 rm -f conftest.$ac_objext
31989 if { (ac_try="$ac_compile"
31990 case "(($ac_try" in
31991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992   *) ac_try_echo=$ac_try;;
31993 esac
31994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995   (eval "$ac_compile") 2>conftest.er1
31996   ac_status=$?
31997   grep -v '^ *+' conftest.er1 >conftest.err
31998   rm -f conftest.er1
31999   cat conftest.err >&5
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); } &&
32002          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32003   { (case "(($ac_try" in
32004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005   *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008   (eval "$ac_try") 2>&5
32009   ac_status=$?
32010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011   (exit $ac_status); }; } &&
32012          { ac_try='test -s conftest.$ac_objext'
32013   { (case "(($ac_try" in
32014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32015   *) ac_try_echo=$ac_try;;
32016 esac
32017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32018   (eval "$ac_try") 2>&5
32019   ac_status=$?
32020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021   (exit $ac_status); }; }; then
32022   ac_cv_cxx_have_global_hash_map=yes
32023 else
32024   echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32026
32027         ac_cv_cxx_have_global_hash_map=no
32028 fi
32029
32030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32031   ac_ext=c
32032 ac_cpp='$CPP $CPPFLAGS'
32033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32036
32037 fi
32038 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32039 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32040  if test "$ac_cv_cxx_have_global_hash_map" = yes
32041  then
32042
32043 cat >>confdefs.h <<\_ACEOF
32044 #define HAVE_GLOBAL_HASH_MAP 1
32045 _ACEOF
32046
32047  else
32048
32049 cat >>confdefs.h <<\_ACEOF
32050 #define HAVE_GLOBAL_HASH_MAP 0
32051 _ACEOF
32052
32053  fi
32054
32055 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32056 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32057 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32058   echo $ECHO_N "(cached) $ECHO_C" >&6
32059 else
32060
32061   ac_ext=cpp
32062 ac_cpp='$CXXCPP $CPPFLAGS'
32063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32066
32067   cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h.  */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h.  */
32073 #include <ext/hash_set>
32074 #ifdef HAVE_NAMESPACES
32075 using namespace std;
32076 #endif
32077 int
32078 main ()
32079 {
32080 hash_set<int> t;
32081   ;
32082   return 0;
32083 }
32084 _ACEOF
32085 rm -f conftest.$ac_objext
32086 if { (ac_try="$ac_compile"
32087 case "(($ac_try" in
32088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089   *) ac_try_echo=$ac_try;;
32090 esac
32091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092   (eval "$ac_compile") 2>conftest.er1
32093   ac_status=$?
32094   grep -v '^ *+' conftest.er1 >conftest.err
32095   rm -f conftest.er1
32096   cat conftest.err >&5
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); } &&
32099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32100   { (case "(($ac_try" in
32101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102   *) ac_try_echo=$ac_try;;
32103 esac
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105   (eval "$ac_try") 2>&5
32106   ac_status=$?
32107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108   (exit $ac_status); }; } &&
32109          { ac_try='test -s conftest.$ac_objext'
32110   { (case "(($ac_try" in
32111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32112   *) ac_try_echo=$ac_try;;
32113 esac
32114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32115   (eval "$ac_try") 2>&5
32116   ac_status=$?
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); }; }; then
32119   ac_cv_cxx_have_std_ext_hash_set=yes
32120 else
32121   echo "$as_me: failed program was:" >&5
32122 sed 's/^/| /' conftest.$ac_ext >&5
32123
32124         ac_cv_cxx_have_std_ext_hash_set=no
32125 fi
32126
32127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32128   ac_ext=c
32129 ac_cpp='$CPP $CPPFLAGS'
32130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32133
32134 fi
32135 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32136 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32137  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32138  then
32139
32140 cat >>confdefs.h <<\_ACEOF
32141 #define HAVE_STD_EXT_HASH_SET 1
32142 _ACEOF
32143
32144  else
32145
32146 cat >>confdefs.h <<\_ACEOF
32147 #define HAVE_STD_EXT_HASH_SET 0
32148 _ACEOF
32149
32150  fi
32151
32152  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32153 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32154 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32155   echo $ECHO_N "(cached) $ECHO_C" >&6
32156 else
32157
32158   ac_ext=cpp
32159 ac_cpp='$CXXCPP $CPPFLAGS'
32160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32163
32164   cat >conftest.$ac_ext <<_ACEOF
32165 /* confdefs.h.  */
32166 _ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h.  */
32170 #include <ext/hash_set>
32171 #ifdef HAVE_NAMESPACES
32172 using namespace __gnu_cxx;
32173 #endif
32174 int
32175 main ()
32176 {
32177 hash_set<int> t;
32178   ;
32179   return 0;
32180 }
32181 _ACEOF
32182 rm -f conftest.$ac_objext
32183 if { (ac_try="$ac_compile"
32184 case "(($ac_try" in
32185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186   *) ac_try_echo=$ac_try;;
32187 esac
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189   (eval "$ac_compile") 2>conftest.er1
32190   ac_status=$?
32191   grep -v '^ *+' conftest.er1 >conftest.err
32192   rm -f conftest.er1
32193   cat conftest.err >&5
32194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195   (exit $ac_status); } &&
32196          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32197   { (case "(($ac_try" in
32198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199   *) ac_try_echo=$ac_try;;
32200 esac
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202   (eval "$ac_try") 2>&5
32203   ac_status=$?
32204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205   (exit $ac_status); }; } &&
32206          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32216   ac_cv_cxx_have_gnu_ext_hash_set=yes
32217 else
32218   echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32220
32221         ac_cv_cxx_have_gnu_ext_hash_set=no
32222 fi
32223
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225   ac_ext=c
32226 ac_cpp='$CPP $CPPFLAGS'
32227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32230
32231 fi
32232 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32233 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32234  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32235  then
32236
32237 cat >>confdefs.h <<\_ACEOF
32238 #define HAVE_GNU_EXT_HASH_SET 1
32239 _ACEOF
32240
32241  else
32242
32243 cat >>confdefs.h <<\_ACEOF
32244 #define HAVE_GNU_EXT_HASH_SET 0
32245 _ACEOF
32246
32247  fi
32248
32249  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32250 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32251 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32252   echo $ECHO_N "(cached) $ECHO_C" >&6
32253 else
32254
32255   ac_ext=cpp
32256 ac_cpp='$CXXCPP $CPPFLAGS'
32257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32260
32261   cat >conftest.$ac_ext <<_ACEOF
32262 /* confdefs.h.  */
32263 _ACEOF
32264 cat confdefs.h >>conftest.$ac_ext
32265 cat >>conftest.$ac_ext <<_ACEOF
32266 /* end confdefs.h.  */
32267 #include <hash_set>
32268 int
32269 main ()
32270 {
32271 hash_set<int> t; return 0;
32272   ;
32273   return 0;
32274 }
32275 _ACEOF
32276 rm -f conftest.$ac_objext
32277 if { (ac_try="$ac_compile"
32278 case "(($ac_try" in
32279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280   *) ac_try_echo=$ac_try;;
32281 esac
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283   (eval "$ac_compile") 2>conftest.er1
32284   ac_status=$?
32285   grep -v '^ *+' conftest.er1 >conftest.err
32286   rm -f conftest.er1
32287   cat conftest.err >&5
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); } &&
32290          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32291   { (case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_try") 2>&5
32297   ac_status=$?
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); }; } &&
32300          { ac_try='test -s conftest.$ac_objext'
32301   { (case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_try") 2>&5
32307   ac_status=$?
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); }; }; then
32310   ac_cv_cxx_have_global_hash_set=yes
32311 else
32312   echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32314
32315         ac_cv_cxx_have_global_hash_set=no
32316 fi
32317
32318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32319   ac_ext=c
32320 ac_cpp='$CPP $CPPFLAGS'
32321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32324
32325 fi
32326 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32327 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32328  if test "$ac_cv_cxx_have_global_hash_set" = yes
32329  then
32330
32331 cat >>confdefs.h <<\_ACEOF
32332 #define HAVE_GLOBAL_HASH_SET 1
32333 _ACEOF
32334
32335  else
32336
32337 cat >>confdefs.h <<\_ACEOF
32338 #define HAVE_GLOBAL_HASH_SET 0
32339 _ACEOF
32340
32341  fi
32342
32343 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32344 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32345 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32346   echo $ECHO_N "(cached) $ECHO_C" >&6
32347 else
32348
32349   ac_ext=cpp
32350 ac_cpp='$CXXCPP $CPPFLAGS'
32351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32354
32355   cat >conftest.$ac_ext <<_ACEOF
32356 /* confdefs.h.  */
32357 _ACEOF
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h.  */
32361 #include <iterator>
32362 #ifdef HAVE_NAMESPACES
32363 using namespace std;
32364 #endif
32365 int
32366 main ()
32367 {
32368 iterator<int,int,int> t; return 0;
32369   ;
32370   return 0;
32371 }
32372 _ACEOF
32373 rm -f conftest.$ac_objext
32374 if { (ac_try="$ac_compile"
32375 case "(($ac_try" in
32376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377   *) ac_try_echo=$ac_try;;
32378 esac
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380   (eval "$ac_compile") 2>conftest.er1
32381   ac_status=$?
32382   grep -v '^ *+' conftest.er1 >conftest.err
32383   rm -f conftest.er1
32384   cat conftest.err >&5
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } &&
32387          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32388   { (case "(($ac_try" in
32389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390   *) ac_try_echo=$ac_try;;
32391 esac
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393   (eval "$ac_try") 2>&5
32394   ac_status=$?
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); }; } &&
32397          { ac_try='test -s conftest.$ac_objext'
32398   { (case "(($ac_try" in
32399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32400   *) ac_try_echo=$ac_try;;
32401 esac
32402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32403   (eval "$ac_try") 2>&5
32404   ac_status=$?
32405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406   (exit $ac_status); }; }; then
32407   ac_cv_cxx_have_std_iterator=yes
32408 else
32409   echo "$as_me: failed program was:" >&5
32410 sed 's/^/| /' conftest.$ac_ext >&5
32411
32412         ac_cv_cxx_have_std_iterator=no
32413 fi
32414
32415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32416   ac_ext=c
32417 ac_cpp='$CPP $CPPFLAGS'
32418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32421
32422
32423 fi
32424 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32425 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32426 if test "$ac_cv_cxx_have_std_iterator" = yes
32427 then
32428
32429 cat >>confdefs.h <<\_ACEOF
32430 #define HAVE_STD_ITERATOR 1
32431 _ACEOF
32432
32433 else
32434
32435 cat >>confdefs.h <<\_ACEOF
32436 #define HAVE_STD_ITERATOR 0
32437 _ACEOF
32438
32439 fi
32440
32441 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32442 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32443 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32444   echo $ECHO_N "(cached) $ECHO_C" >&6
32445 else
32446
32447   ac_ext=cpp
32448 ac_cpp='$CXXCPP $CPPFLAGS'
32449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32452
32453   cat >conftest.$ac_ext <<_ACEOF
32454 /* confdefs.h.  */
32455 _ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h.  */
32459 #include <iterator>
32460 #ifdef HAVE_NAMESPACES
32461 using namespace std;
32462 #endif
32463 int
32464 main ()
32465 {
32466 bidirectional_iterator<int,int> t; return 0;
32467   ;
32468   return 0;
32469 }
32470 _ACEOF
32471 rm -f conftest.$ac_objext
32472 if { (ac_try="$ac_compile"
32473 case "(($ac_try" in
32474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475   *) ac_try_echo=$ac_try;;
32476 esac
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478   (eval "$ac_compile") 2>conftest.er1
32479   ac_status=$?
32480   grep -v '^ *+' conftest.er1 >conftest.err
32481   rm -f conftest.er1
32482   cat conftest.err >&5
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } &&
32485          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32486   { (case "(($ac_try" in
32487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488   *) ac_try_echo=$ac_try;;
32489 esac
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491   (eval "$ac_try") 2>&5
32492   ac_status=$?
32493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494   (exit $ac_status); }; } &&
32495          { ac_try='test -s conftest.$ac_objext'
32496   { (case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_try") 2>&5
32502   ac_status=$?
32503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504   (exit $ac_status); }; }; then
32505   ac_cv_cxx_have_bi_iterator=yes
32506 else
32507   echo "$as_me: failed program was:" >&5
32508 sed 's/^/| /' conftest.$ac_ext >&5
32509
32510         ac_cv_cxx_have_bi_iterator=no
32511 fi
32512
32513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32514   ac_ext=c
32515 ac_cpp='$CPP $CPPFLAGS'
32516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32519
32520
32521 fi
32522 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32523 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32524 if test "$ac_cv_cxx_have_bi_iterator" = yes
32525 then
32526
32527 cat >>confdefs.h <<\_ACEOF
32528 #define HAVE_BI_ITERATOR 1
32529 _ACEOF
32530
32531 else
32532
32533 cat >>confdefs.h <<\_ACEOF
32534 #define HAVE_BI_ITERATOR 0
32535 _ACEOF
32536
32537 fi
32538
32539 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32540 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32541 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32542   echo $ECHO_N "(cached) $ECHO_C" >&6
32543 else
32544
32545   ac_ext=cpp
32546 ac_cpp='$CXXCPP $CPPFLAGS'
32547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32550
32551   cat >conftest.$ac_ext <<_ACEOF
32552 /* confdefs.h.  */
32553 _ACEOF
32554 cat confdefs.h >>conftest.$ac_ext
32555 cat >>conftest.$ac_ext <<_ACEOF
32556 /* end confdefs.h.  */
32557 #include <iterator>
32558 #ifdef HAVE_NAMESPACES
32559 using namespace std;
32560 #endif
32561 int
32562 main ()
32563 {
32564 forward_iterator<int,int> t; return 0;
32565   ;
32566   return 0;
32567 }
32568 _ACEOF
32569 rm -f conftest.$ac_objext
32570 if { (ac_try="$ac_compile"
32571 case "(($ac_try" in
32572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573   *) ac_try_echo=$ac_try;;
32574 esac
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576   (eval "$ac_compile") 2>conftest.er1
32577   ac_status=$?
32578   grep -v '^ *+' conftest.er1 >conftest.err
32579   rm -f conftest.er1
32580   cat conftest.err >&5
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); } &&
32583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32584   { (case "(($ac_try" in
32585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586   *) ac_try_echo=$ac_try;;
32587 esac
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589   (eval "$ac_try") 2>&5
32590   ac_status=$?
32591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); }; } &&
32593          { ac_try='test -s conftest.$ac_objext'
32594   { (case "(($ac_try" in
32595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596   *) ac_try_echo=$ac_try;;
32597 esac
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599   (eval "$ac_try") 2>&5
32600   ac_status=$?
32601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602   (exit $ac_status); }; }; then
32603   ac_cv_cxx_have_fwd_iterator=yes
32604 else
32605   echo "$as_me: failed program was:" >&5
32606 sed 's/^/| /' conftest.$ac_ext >&5
32607
32608         ac_cv_cxx_have_fwd_iterator=no
32609 fi
32610
32611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32612   ac_ext=c
32613 ac_cpp='$CPP $CPPFLAGS'
32614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32617
32618
32619 fi
32620 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32621 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32622 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32623 then
32624
32625 cat >>confdefs.h <<\_ACEOF
32626 #define HAVE_FWD_ITERATOR 1
32627 _ACEOF
32628
32629 else
32630
32631 cat >>confdefs.h <<\_ACEOF
32632 #define HAVE_FWD_ITERATOR 0
32633 _ACEOF
32634
32635 fi
32636
32637
32638 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32639 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32640 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32641   echo $ECHO_N "(cached) $ECHO_C" >&6
32642 else
32643   ac_ext=cpp
32644 ac_cpp='$CXXCPP $CPPFLAGS'
32645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32648
32649    cat >conftest.$ac_ext <<_ACEOF
32650 /* confdefs.h.  */
32651 _ACEOF
32652 cat confdefs.h >>conftest.$ac_ext
32653 cat >>conftest.$ac_ext <<_ACEOF
32654 /* end confdefs.h.  */
32655 #include <math.h>
32656 int
32657 main ()
32658 {
32659 float f; isnan(f);
32660   ;
32661   return 0;
32662 }
32663 _ACEOF
32664 rm -f conftest.$ac_objext
32665 if { (ac_try="$ac_compile"
32666 case "(($ac_try" in
32667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668   *) ac_try_echo=$ac_try;;
32669 esac
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671   (eval "$ac_compile") 2>conftest.er1
32672   ac_status=$?
32673   grep -v '^ *+' conftest.er1 >conftest.err
32674   rm -f conftest.er1
32675   cat conftest.err >&5
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } &&
32678          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32679   { (case "(($ac_try" in
32680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681   *) ac_try_echo=$ac_try;;
32682 esac
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684   (eval "$ac_try") 2>&5
32685   ac_status=$?
32686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687   (exit $ac_status); }; } &&
32688          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32695   ac_status=$?
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); }; }; then
32698   ac_cv_func_isnan_in_math_h=yes
32699 else
32700   echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32702
32703         ac_cv_func_isnan_in_math_h=no
32704 fi
32705
32706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32707   ac_ext=c
32708 ac_cpp='$CPP $CPPFLAGS'
32709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32712
32713 fi
32714 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32715 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32716
32717
32718 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32719
32720 cat >>confdefs.h <<\_ACEOF
32721 #define HAVE_ISNAN_IN_MATH_H 1
32722 _ACEOF
32723
32724 fi
32725
32726 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32727 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32728 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32729   echo $ECHO_N "(cached) $ECHO_C" >&6
32730 else
32731   ac_ext=cpp
32732 ac_cpp='$CXXCPP $CPPFLAGS'
32733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32736
32737    cat >conftest.$ac_ext <<_ACEOF
32738 /* confdefs.h.  */
32739 _ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h.  */
32743 #include <cmath>
32744 int
32745 main ()
32746 {
32747 float f; isnan(f);
32748   ;
32749   return 0;
32750 }
32751 _ACEOF
32752 rm -f conftest.$ac_objext
32753 if { (ac_try="$ac_compile"
32754 case "(($ac_try" in
32755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756   *) ac_try_echo=$ac_try;;
32757 esac
32758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759   (eval "$ac_compile") 2>conftest.er1
32760   ac_status=$?
32761   grep -v '^ *+' conftest.er1 >conftest.err
32762   rm -f conftest.er1
32763   cat conftest.err >&5
32764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765   (exit $ac_status); } &&
32766          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32767   { (case "(($ac_try" in
32768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769   *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772   (eval "$ac_try") 2>&5
32773   ac_status=$?
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); }; } &&
32776          { ac_try='test -s conftest.$ac_objext'
32777   { (case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_try") 2>&5
32783   ac_status=$?
32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785   (exit $ac_status); }; }; then
32786   ac_cv_func_isnan_in_cmath=yes
32787 else
32788   echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32790
32791         ac_cv_func_isnan_in_cmath=no
32792 fi
32793
32794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795   ac_ext=c
32796 ac_cpp='$CPP $CPPFLAGS'
32797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32800
32801 fi
32802 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32803 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32804
32805 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32806
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_ISNAN_IN_CMATH 1
32809 _ACEOF
32810
32811 fi
32812
32813 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32814 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32815 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32816   echo $ECHO_N "(cached) $ECHO_C" >&6
32817 else
32818   ac_ext=cpp
32819 ac_cpp='$CXXCPP $CPPFLAGS'
32820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32823
32824    cat >conftest.$ac_ext <<_ACEOF
32825 /* confdefs.h.  */
32826 _ACEOF
32827 cat confdefs.h >>conftest.$ac_ext
32828 cat >>conftest.$ac_ext <<_ACEOF
32829 /* end confdefs.h.  */
32830 #include <cmath>
32831 int
32832 main ()
32833 {
32834 float f; std::isnan(f);
32835   ;
32836   return 0;
32837 }
32838 _ACEOF
32839 rm -f conftest.$ac_objext
32840 if { (ac_try="$ac_compile"
32841 case "(($ac_try" in
32842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32843   *) ac_try_echo=$ac_try;;
32844 esac
32845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32846   (eval "$ac_compile") 2>conftest.er1
32847   ac_status=$?
32848   grep -v '^ *+' conftest.er1 >conftest.err
32849   rm -f conftest.er1
32850   cat conftest.err >&5
32851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852   (exit $ac_status); } &&
32853          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32854   { (case "(($ac_try" in
32855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32856   *) ac_try_echo=$ac_try;;
32857 esac
32858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32859   (eval "$ac_try") 2>&5
32860   ac_status=$?
32861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862   (exit $ac_status); }; } &&
32863          { ac_try='test -s conftest.$ac_objext'
32864   { (case "(($ac_try" in
32865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866   *) ac_try_echo=$ac_try;;
32867 esac
32868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869   (eval "$ac_try") 2>&5
32870   ac_status=$?
32871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872   (exit $ac_status); }; }; then
32873   ac_cv_func_std_isnan_in_cmath=yes
32874 else
32875   echo "$as_me: failed program was:" >&5
32876 sed 's/^/| /' conftest.$ac_ext >&5
32877
32878         ac_cv_func_std_isnan_in_cmath=no
32879 fi
32880
32881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32882   ac_ext=c
32883 ac_cpp='$CPP $CPPFLAGS'
32884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32887
32888 fi
32889 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32890 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32891
32892 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32893
32894 cat >>confdefs.h <<\_ACEOF
32895 #define HAVE_STD_ISNAN_IN_CMATH 1
32896 _ACEOF
32897
32898 fi
32899
32900
32901 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32902 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32903 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32904   echo $ECHO_N "(cached) $ECHO_C" >&6
32905 else
32906   ac_ext=cpp
32907 ac_cpp='$CXXCPP $CPPFLAGS'
32908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32911
32912    cat >conftest.$ac_ext <<_ACEOF
32913 /* confdefs.h.  */
32914 _ACEOF
32915 cat confdefs.h >>conftest.$ac_ext
32916 cat >>conftest.$ac_ext <<_ACEOF
32917 /* end confdefs.h.  */
32918 #include <math.h>
32919 int
32920 main ()
32921 {
32922 float f; isinf(f);
32923   ;
32924   return 0;
32925 }
32926 _ACEOF
32927 rm -f conftest.$ac_objext
32928 if { (ac_try="$ac_compile"
32929 case "(($ac_try" in
32930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32931   *) ac_try_echo=$ac_try;;
32932 esac
32933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32934   (eval "$ac_compile") 2>conftest.er1
32935   ac_status=$?
32936   grep -v '^ *+' conftest.er1 >conftest.err
32937   rm -f conftest.er1
32938   cat conftest.err >&5
32939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940   (exit $ac_status); } &&
32941          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32942   { (case "(($ac_try" in
32943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944   *) ac_try_echo=$ac_try;;
32945 esac
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947   (eval "$ac_try") 2>&5
32948   ac_status=$?
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); }; } &&
32951          { ac_try='test -s conftest.$ac_objext'
32952   { (case "(($ac_try" in
32953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954   *) ac_try_echo=$ac_try;;
32955 esac
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957   (eval "$ac_try") 2>&5
32958   ac_status=$?
32959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960   (exit $ac_status); }; }; then
32961   ac_cv_func_isinf_in_math_h=yes
32962 else
32963   echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32965
32966         ac_cv_func_isinf_in_math_h=no
32967 fi
32968
32969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970   ac_ext=c
32971 ac_cpp='$CPP $CPPFLAGS'
32972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32975
32976 fi
32977 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32978 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32979
32980 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32981
32982 cat >>confdefs.h <<\_ACEOF
32983 #define HAVE_ISINF_IN_MATH_H 1
32984 _ACEOF
32985
32986 fi
32987
32988 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32989 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32990 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32991   echo $ECHO_N "(cached) $ECHO_C" >&6
32992 else
32993   ac_ext=cpp
32994 ac_cpp='$CXXCPP $CPPFLAGS'
32995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32998
32999    cat >conftest.$ac_ext <<_ACEOF
33000 /* confdefs.h.  */
33001 _ACEOF
33002 cat confdefs.h >>conftest.$ac_ext
33003 cat >>conftest.$ac_ext <<_ACEOF
33004 /* end confdefs.h.  */
33005 #include <cmath>
33006 int
33007 main ()
33008 {
33009 float f; isinf(f);
33010   ;
33011   return 0;
33012 }
33013 _ACEOF
33014 rm -f conftest.$ac_objext
33015 if { (ac_try="$ac_compile"
33016 case "(($ac_try" in
33017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018   *) ac_try_echo=$ac_try;;
33019 esac
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021   (eval "$ac_compile") 2>conftest.er1
33022   ac_status=$?
33023   grep -v '^ *+' conftest.er1 >conftest.err
33024   rm -f conftest.er1
33025   cat conftest.err >&5
33026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027   (exit $ac_status); } &&
33028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33029   { (case "(($ac_try" in
33030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031   *) ac_try_echo=$ac_try;;
33032 esac
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034   (eval "$ac_try") 2>&5
33035   ac_status=$?
33036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037   (exit $ac_status); }; } &&
33038          { ac_try='test -s conftest.$ac_objext'
33039   { (case "(($ac_try" in
33040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33041   *) ac_try_echo=$ac_try;;
33042 esac
33043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33044   (eval "$ac_try") 2>&5
33045   ac_status=$?
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); }; }; then
33048   ac_cv_func_isinf_in_cmath=yes
33049 else
33050   echo "$as_me: failed program was:" >&5
33051 sed 's/^/| /' conftest.$ac_ext >&5
33052
33053         ac_cv_func_isinf_in_cmath=no
33054 fi
33055
33056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33057   ac_ext=c
33058 ac_cpp='$CPP $CPPFLAGS'
33059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33062
33063 fi
33064 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33065 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33066
33067 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33068
33069 cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_ISINF_IN_CMATH 1
33071 _ACEOF
33072
33073 fi
33074
33075 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33076 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33077 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33078   echo $ECHO_N "(cached) $ECHO_C" >&6
33079 else
33080   ac_ext=cpp
33081 ac_cpp='$CXXCPP $CPPFLAGS'
33082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33085
33086    cat >conftest.$ac_ext <<_ACEOF
33087 /* confdefs.h.  */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h.  */
33092 #include <cmath>
33093 int
33094 main ()
33095 {
33096 float f; std::isinf(f)}
33097   ;
33098   return 0;
33099 }
33100 _ACEOF
33101 rm -f conftest.$ac_objext
33102 if { (ac_try="$ac_compile"
33103 case "(($ac_try" in
33104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105   *) ac_try_echo=$ac_try;;
33106 esac
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108   (eval "$ac_compile") 2>conftest.er1
33109   ac_status=$?
33110   grep -v '^ *+' conftest.er1 >conftest.err
33111   rm -f conftest.er1
33112   cat conftest.err >&5
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); } &&
33115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33116   { (case "(($ac_try" in
33117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118   *) ac_try_echo=$ac_try;;
33119 esac
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121   (eval "$ac_try") 2>&5
33122   ac_status=$?
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); }; } &&
33125          { ac_try='test -s conftest.$ac_objext'
33126   { (case "(($ac_try" in
33127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128   *) ac_try_echo=$ac_try;;
33129 esac
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131   (eval "$ac_try") 2>&5
33132   ac_status=$?
33133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134   (exit $ac_status); }; }; then
33135   ac_cv_func_std_isinf_in_cmath=yes
33136 else
33137   echo "$as_me: failed program was:" >&5
33138 sed 's/^/| /' conftest.$ac_ext >&5
33139
33140         ac_cv_func_std_isinf_in_cmath=no
33141 fi
33142
33143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33144   ac_ext=c
33145 ac_cpp='$CPP $CPPFLAGS'
33146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33149
33150 fi
33151 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33152 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33153
33154 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33155
33156 cat >>confdefs.h <<\_ACEOF
33157 #define HAVE_STD_ISINF_IN_CMATH 1
33158 _ACEOF
33159
33160 fi
33161
33162 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33163 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33164 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33165   echo $ECHO_N "(cached) $ECHO_C" >&6
33166 else
33167   ac_ext=cpp
33168 ac_cpp='$CXXCPP $CPPFLAGS'
33169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33172
33173    cat >conftest.$ac_ext <<_ACEOF
33174 /* confdefs.h.  */
33175 _ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h.  */
33179 #include <ieeefp.h>
33180 int
33181 main ()
33182 {
33183 float f; finite(f);
33184   ;
33185   return 0;
33186 }
33187 _ACEOF
33188 rm -f conftest.$ac_objext
33189 if { (ac_try="$ac_compile"
33190 case "(($ac_try" in
33191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192   *) ac_try_echo=$ac_try;;
33193 esac
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195   (eval "$ac_compile") 2>conftest.er1
33196   ac_status=$?
33197   grep -v '^ *+' conftest.er1 >conftest.err
33198   rm -f conftest.er1
33199   cat conftest.err >&5
33200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); } &&
33202          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33203   { (case "(($ac_try" in
33204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33205   *) ac_try_echo=$ac_try;;
33206 esac
33207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33208   (eval "$ac_try") 2>&5
33209   ac_status=$?
33210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211   (exit $ac_status); }; } &&
33212          { ac_try='test -s conftest.$ac_objext'
33213   { (case "(($ac_try" in
33214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215   *) ac_try_echo=$ac_try;;
33216 esac
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218   (eval "$ac_try") 2>&5
33219   ac_status=$?
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); }; }; then
33222   ac_cv_func_finite_in_ieeefp_h=yes
33223 else
33224   echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33226
33227         ac_cv_func_finite_in_ieeefp_h=no
33228 fi
33229
33230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33231   ac_ext=c
33232 ac_cpp='$CPP $CPPFLAGS'
33233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33236
33237 fi
33238 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33239 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33240
33241 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33242
33243 cat >>confdefs.h <<\_ACEOF
33244 #define HAVE_FINITE_IN_IEEEFP_H 1
33245 _ACEOF
33246
33247 fi
33248
33249
33250
33251 if test "$llvm_cv_platform_type" = "Unix" ; then
33252
33253
33254 for ac_header in stdlib.h unistd.h
33255 do
33256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33261   echo $ECHO_N "(cached) $ECHO_C" >&6
33262 fi
33263 ac_res=`eval echo '${'$as_ac_Header'}'`
33264                { echo "$as_me:$LINENO: result: $ac_res" >&5
33265 echo "${ECHO_T}$ac_res" >&6; }
33266 else
33267   # Is the header compilable?
33268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33270 cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h.  */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h.  */
33276 $ac_includes_default
33277 #include <$ac_header>
33278 _ACEOF
33279 rm -f conftest.$ac_objext
33280 if { (ac_try="$ac_compile"
33281 case "(($ac_try" in
33282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283   *) ac_try_echo=$ac_try;;
33284 esac
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286   (eval "$ac_compile") 2>conftest.er1
33287   ac_status=$?
33288   grep -v '^ *+' conftest.er1 >conftest.err
33289   rm -f conftest.er1
33290   cat conftest.err >&5
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); } &&
33293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33294   { (case "(($ac_try" in
33295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296   *) ac_try_echo=$ac_try;;
33297 esac
33298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299   (eval "$ac_try") 2>&5
33300   ac_status=$?
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); }; } &&
33303          { ac_try='test -s conftest.$ac_objext'
33304   { (case "(($ac_try" in
33305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306   *) ac_try_echo=$ac_try;;
33307 esac
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309   (eval "$ac_try") 2>&5
33310   ac_status=$?
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); }; }; then
33313   ac_header_compiler=yes
33314 else
33315   echo "$as_me: failed program was:" >&5
33316 sed 's/^/| /' conftest.$ac_ext >&5
33317
33318         ac_header_compiler=no
33319 fi
33320
33321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33323 echo "${ECHO_T}$ac_header_compiler" >&6; }
33324
33325 # Is the header present?
33326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33328 cat >conftest.$ac_ext <<_ACEOF
33329 /* confdefs.h.  */
33330 _ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h.  */
33334 #include <$ac_header>
33335 _ACEOF
33336 if { (ac_try="$ac_cpp conftest.$ac_ext"
33337 case "(($ac_try" in
33338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33339   *) ac_try_echo=$ac_try;;
33340 esac
33341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33343   ac_status=$?
33344   grep -v '^ *+' conftest.er1 >conftest.err
33345   rm -f conftest.er1
33346   cat conftest.err >&5
33347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348   (exit $ac_status); } >/dev/null; then
33349   if test -s conftest.err; then
33350     ac_cpp_err=$ac_c_preproc_warn_flag
33351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33352   else
33353     ac_cpp_err=
33354   fi
33355 else
33356   ac_cpp_err=yes
33357 fi
33358 if test -z "$ac_cpp_err"; then
33359   ac_header_preproc=yes
33360 else
33361   echo "$as_me: failed program was:" >&5
33362 sed 's/^/| /' conftest.$ac_ext >&5
33363
33364   ac_header_preproc=no
33365 fi
33366
33367 rm -f conftest.err conftest.$ac_ext
33368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33369 echo "${ECHO_T}$ac_header_preproc" >&6; }
33370
33371 # So?  What about this header?
33372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33373   yes:no: )
33374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33378     ac_header_preproc=yes
33379     ;;
33380   no:yes:* )
33381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33393     ( cat <<\_ASBOX
33394 ## ----------------------------------- ##
33395 ## Report this to llvmbugs@cs.uiuc.edu ##
33396 ## ----------------------------------- ##
33397 _ASBOX
33398      ) | sed "s/^/$as_me: WARNING:     /" >&2
33399     ;;
33400 esac
33401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33404   echo $ECHO_N "(cached) $ECHO_C" >&6
33405 else
33406   eval "$as_ac_Header=\$ac_header_preproc"
33407 fi
33408 ac_res=`eval echo '${'$as_ac_Header'}'`
33409                { echo "$as_me:$LINENO: result: $ac_res" >&5
33410 echo "${ECHO_T}$ac_res" >&6; }
33411
33412 fi
33413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33414   cat >>confdefs.h <<_ACEOF
33415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33416 _ACEOF
33417
33418 fi
33419
33420 done
33421
33422
33423 for ac_func in getpagesize
33424 do
33425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33429   echo $ECHO_N "(cached) $ECHO_C" >&6
33430 else
33431   cat >conftest.$ac_ext <<_ACEOF
33432 /* confdefs.h.  */
33433 _ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h.  */
33437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33439 #define $ac_func innocuous_$ac_func
33440
33441 /* System header to define __stub macros and hopefully few prototypes,
33442     which can conflict with char $ac_func (); below.
33443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33444     <limits.h> exists even on freestanding compilers.  */
33445
33446 #ifdef __STDC__
33447 # include <limits.h>
33448 #else
33449 # include <assert.h>
33450 #endif
33451
33452 #undef $ac_func
33453
33454 /* Override any GCC internal prototype to avoid an error.
33455    Use char because int might match the return type of a GCC
33456    builtin and then its argument prototype would still apply.  */
33457 #ifdef __cplusplus
33458 extern "C"
33459 #endif
33460 char $ac_func ();
33461 /* The GNU C library defines this for functions which it implements
33462     to always fail with ENOSYS.  Some functions are actually named
33463     something starting with __ and the normal name is an alias.  */
33464 #if defined __stub_$ac_func || defined __stub___$ac_func
33465 choke me
33466 #endif
33467
33468 int
33469 main ()
33470 {
33471 return $ac_func ();
33472   ;
33473   return 0;
33474 }
33475 _ACEOF
33476 rm -f conftest.$ac_objext conftest$ac_exeext
33477 if { (ac_try="$ac_link"
33478 case "(($ac_try" in
33479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480   *) ac_try_echo=$ac_try;;
33481 esac
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483   (eval "$ac_link") 2>conftest.er1
33484   ac_status=$?
33485   grep -v '^ *+' conftest.er1 >conftest.err
33486   rm -f conftest.er1
33487   cat conftest.err >&5
33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489   (exit $ac_status); } &&
33490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33491   { (case "(($ac_try" in
33492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33493   *) ac_try_echo=$ac_try;;
33494 esac
33495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33496   (eval "$ac_try") 2>&5
33497   ac_status=$?
33498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499   (exit $ac_status); }; } &&
33500          { ac_try='test -s conftest$ac_exeext'
33501   { (case "(($ac_try" in
33502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33503   *) ac_try_echo=$ac_try;;
33504 esac
33505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33506   (eval "$ac_try") 2>&5
33507   ac_status=$?
33508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509   (exit $ac_status); }; }; then
33510   eval "$as_ac_var=yes"
33511 else
33512   echo "$as_me: failed program was:" >&5
33513 sed 's/^/| /' conftest.$ac_ext >&5
33514
33515         eval "$as_ac_var=no"
33516 fi
33517
33518 rm -f core conftest.err conftest.$ac_objext \
33519       conftest$ac_exeext conftest.$ac_ext
33520 fi
33521 ac_res=`eval echo '${'$as_ac_var'}'`
33522                { echo "$as_me:$LINENO: result: $ac_res" >&5
33523 echo "${ECHO_T}$ac_res" >&6; }
33524 if test `eval echo '${'$as_ac_var'}'` = yes; then
33525   cat >>confdefs.h <<_ACEOF
33526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33527 _ACEOF
33528
33529 fi
33530 done
33531
33532 { echo "$as_me:$LINENO: checking for working mmap" >&5
33533 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33534 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33535   echo $ECHO_N "(cached) $ECHO_C" >&6
33536 else
33537   if test "$cross_compiling" = yes; then
33538   ac_cv_func_mmap_fixed_mapped=no
33539 else
33540   cat >conftest.$ac_ext <<_ACEOF
33541 /* confdefs.h.  */
33542 _ACEOF
33543 cat confdefs.h >>conftest.$ac_ext
33544 cat >>conftest.$ac_ext <<_ACEOF
33545 /* end confdefs.h.  */
33546 $ac_includes_default
33547 /* malloc might have been renamed as rpl_malloc. */
33548 #undef malloc
33549
33550 /* Thanks to Mike Haertel and Jim Avera for this test.
33551    Here is a matrix of mmap possibilities:
33552         mmap private not fixed
33553         mmap private fixed at somewhere currently unmapped
33554         mmap private fixed at somewhere already mapped
33555         mmap shared not fixed
33556         mmap shared fixed at somewhere currently unmapped
33557         mmap shared fixed at somewhere already mapped
33558    For private mappings, we should verify that changes cannot be read()
33559    back from the file, nor mmap's back from the file at a different
33560    address.  (There have been systems where private was not correctly
33561    implemented like the infamous i386 svr4.0, and systems where the
33562    VM page cache was not coherent with the file system buffer cache
33563    like early versions of FreeBSD and possibly contemporary NetBSD.)
33564    For shared mappings, we should conversely verify that changes get
33565    propagated back to all the places they're supposed to be.
33566
33567    Grep wants private fixed already mapped.
33568    The main things grep needs to know about mmap are:
33569    * does it exist and is it safe to write into the mmap'd area
33570    * how to use it (BSD variants)  */
33571
33572 #include <fcntl.h>
33573 #include <sys/mman.h>
33574
33575 #if !STDC_HEADERS && !HAVE_STDLIB_H
33576 char *malloc ();
33577 #endif
33578
33579 /* This mess was copied from the GNU getpagesize.h.  */
33580 #if !HAVE_GETPAGESIZE
33581 /* Assume that all systems that can run configure have sys/param.h.  */
33582 # if !HAVE_SYS_PARAM_H
33583 #  define HAVE_SYS_PARAM_H 1
33584 # endif
33585
33586 # ifdef _SC_PAGESIZE
33587 #  define getpagesize() sysconf(_SC_PAGESIZE)
33588 # else /* no _SC_PAGESIZE */
33589 #  if HAVE_SYS_PARAM_H
33590 #   include <sys/param.h>
33591 #   ifdef EXEC_PAGESIZE
33592 #    define getpagesize() EXEC_PAGESIZE
33593 #   else /* no EXEC_PAGESIZE */
33594 #    ifdef NBPG
33595 #     define getpagesize() NBPG * CLSIZE
33596 #     ifndef CLSIZE
33597 #      define CLSIZE 1
33598 #     endif /* no CLSIZE */
33599 #    else /* no NBPG */
33600 #     ifdef NBPC
33601 #      define getpagesize() NBPC
33602 #     else /* no NBPC */
33603 #      ifdef PAGESIZE
33604 #       define getpagesize() PAGESIZE
33605 #      endif /* PAGESIZE */
33606 #     endif /* no NBPC */
33607 #    endif /* no NBPG */
33608 #   endif /* no EXEC_PAGESIZE */
33609 #  else /* no HAVE_SYS_PARAM_H */
33610 #   define getpagesize() 8192   /* punt totally */
33611 #  endif /* no HAVE_SYS_PARAM_H */
33612 # endif /* no _SC_PAGESIZE */
33613
33614 #endif /* no HAVE_GETPAGESIZE */
33615
33616 int
33617 main ()
33618 {
33619   char *data, *data2, *data3;
33620   int i, pagesize;
33621   int fd;
33622
33623   pagesize = getpagesize ();
33624
33625   /* First, make a file with some known garbage in it. */
33626   data = (char *) malloc (pagesize);
33627   if (!data)
33628     return 1;
33629   for (i = 0; i < pagesize; ++i)
33630     *(data + i) = rand ();
33631   umask (0);
33632   fd = creat ("conftest.mmap", 0600);
33633   if (fd < 0)
33634     return 1;
33635   if (write (fd, data, pagesize) != pagesize)
33636     return 1;
33637   close (fd);
33638
33639   /* Next, try to mmap the file at a fixed address which already has
33640      something else allocated at it.  If we can, also make sure that
33641      we see the same garbage.  */
33642   fd = open ("conftest.mmap", O_RDWR);
33643   if (fd < 0)
33644     return 1;
33645   data2 = (char *) malloc (2 * pagesize);
33646   if (!data2)
33647     return 1;
33648   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33649   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33650                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33651     return 1;
33652   for (i = 0; i < pagesize; ++i)
33653     if (*(data + i) != *(data2 + i))
33654       return 1;
33655
33656   /* Finally, make sure that changes to the mapped area do not
33657      percolate back to the file as seen by read().  (This is a bug on
33658      some variants of i386 svr4.0.)  */
33659   for (i = 0; i < pagesize; ++i)
33660     *(data2 + i) = *(data2 + i) + 1;
33661   data3 = (char *) malloc (pagesize);
33662   if (!data3)
33663     return 1;
33664   if (read (fd, data3, pagesize) != pagesize)
33665     return 1;
33666   for (i = 0; i < pagesize; ++i)
33667     if (*(data + i) != *(data3 + i))
33668       return 1;
33669   close (fd);
33670   return 0;
33671 }
33672 _ACEOF
33673 rm -f conftest$ac_exeext
33674 if { (ac_try="$ac_link"
33675 case "(($ac_try" in
33676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677   *) ac_try_echo=$ac_try;;
33678 esac
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680   (eval "$ac_link") 2>&5
33681   ac_status=$?
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33684   { (case "(($ac_try" in
33685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686   *) ac_try_echo=$ac_try;;
33687 esac
33688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689   (eval "$ac_try") 2>&5
33690   ac_status=$?
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); }; }; then
33693   ac_cv_func_mmap_fixed_mapped=yes
33694 else
33695   echo "$as_me: program exited with status $ac_status" >&5
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699 ( exit $ac_status )
33700 ac_cv_func_mmap_fixed_mapped=no
33701 fi
33702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33703 fi
33704
33705
33706 fi
33707 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33708 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33709 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33710
33711 cat >>confdefs.h <<\_ACEOF
33712 #define HAVE_MMAP 1
33713 _ACEOF
33714
33715 fi
33716 rm -f conftest.mmap
33717
33718   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33719 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33720 if test "${ac_cv_func_mmap_file+set}" = set; then
33721   echo $ECHO_N "(cached) $ECHO_C" >&6
33722 else
33723    ac_ext=c
33724 ac_cpp='$CPP $CPPFLAGS'
33725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33728
33729   if test "$cross_compiling" = yes; then
33730   ac_cv_func_mmap_file=no
33731 else
33732   cat >conftest.$ac_ext <<_ACEOF
33733
33734     /* confdefs.h.  */
33735 _ACEOF
33736 cat confdefs.h >>conftest.$ac_ext
33737 cat >>conftest.$ac_ext <<_ACEOF
33738 /* end confdefs.h.  */
33739
33740 #include <sys/types.h>
33741 #include <sys/mman.h>
33742 #include <fcntl.h>
33743
33744 int
33745 main ()
33746 {
33747
33748   int fd;
33749   fd = creat ("foo",0777);
33750   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33751   unlink ("foo");
33752   return (fd != (int) MAP_FAILED);
33753   ;
33754   return 0;
33755 }
33756 _ACEOF
33757 rm -f conftest$ac_exeext
33758 if { (ac_try="$ac_link"
33759 case "(($ac_try" in
33760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761   *) ac_try_echo=$ac_try;;
33762 esac
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764   (eval "$ac_link") 2>&5
33765   ac_status=$?
33766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33768   { (case "(($ac_try" in
33769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770   *) ac_try_echo=$ac_try;;
33771 esac
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773   (eval "$ac_try") 2>&5
33774   ac_status=$?
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); }; }; then
33777   ac_cv_func_mmap_file=yes
33778 else
33779   echo "$as_me: program exited with status $ac_status" >&5
33780 echo "$as_me: failed program was:" >&5
33781 sed 's/^/| /' conftest.$ac_ext >&5
33782
33783 ( exit $ac_status )
33784 ac_cv_func_mmap_file=no
33785 fi
33786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33787 fi
33788
33789
33790   ac_ext=c
33791 ac_cpp='$CPP $CPPFLAGS'
33792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33795
33796
33797 fi
33798 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33799 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33800 if test "$ac_cv_func_mmap_file" = yes; then
33801
33802 cat >>confdefs.h <<\_ACEOF
33803 #define HAVE_MMAP_FILE
33804 _ACEOF
33805
33806    MMAP_FILE=yes
33807
33808 fi
33809
33810   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33811 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33812 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33813   echo $ECHO_N "(cached) $ECHO_C" >&6
33814 else
33815   if test "$llvm_cv_os_type" = "Interix" ; then
33816    ac_cv_need_dev_zero_for_mmap=yes
33817  else
33818    ac_cv_need_dev_zero_for_mmap=no
33819  fi
33820
33821 fi
33822 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33823 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33824 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33825
33826 cat >>confdefs.h <<\_ACEOF
33827 #define NEED_DEV_ZERO_FOR_MMAP 1
33828 _ACEOF
33829
33830 fi
33831
33832   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33833   then
33834     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33835 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33836   fi
33837   if test "$ac_cv_func_mmap_file" = "no"
33838   then
33839     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33840 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33841   fi
33842 fi
33843
33844
33845
33846 for ac_func in __dso_handle
33847 do
33848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33852   echo $ECHO_N "(cached) $ECHO_C" >&6
33853 else
33854   cat >conftest.$ac_ext <<_ACEOF
33855 /* confdefs.h.  */
33856 _ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h.  */
33860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33862 #define $ac_func innocuous_$ac_func
33863
33864 /* System header to define __stub macros and hopefully few prototypes,
33865     which can conflict with char $ac_func (); below.
33866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33867     <limits.h> exists even on freestanding compilers.  */
33868
33869 #ifdef __STDC__
33870 # include <limits.h>
33871 #else
33872 # include <assert.h>
33873 #endif
33874
33875 #undef $ac_func
33876
33877 /* Override any GCC internal prototype to avoid an error.
33878    Use char because int might match the return type of a GCC
33879    builtin and then its argument prototype would still apply.  */
33880 #ifdef __cplusplus
33881 extern "C"
33882 #endif
33883 char $ac_func ();
33884 /* The GNU C library defines this for functions which it implements
33885     to always fail with ENOSYS.  Some functions are actually named
33886     something starting with __ and the normal name is an alias.  */
33887 #if defined __stub_$ac_func || defined __stub___$ac_func
33888 choke me
33889 #endif
33890
33891 int
33892 main ()
33893 {
33894 return $ac_func ();
33895   ;
33896   return 0;
33897 }
33898 _ACEOF
33899 rm -f conftest.$ac_objext conftest$ac_exeext
33900 if { (ac_try="$ac_link"
33901 case "(($ac_try" in
33902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903   *) ac_try_echo=$ac_try;;
33904 esac
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906   (eval "$ac_link") 2>conftest.er1
33907   ac_status=$?
33908   grep -v '^ *+' conftest.er1 >conftest.err
33909   rm -f conftest.er1
33910   cat conftest.err >&5
33911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912   (exit $ac_status); } &&
33913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33914   { (case "(($ac_try" in
33915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916   *) ac_try_echo=$ac_try;;
33917 esac
33918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919   (eval "$ac_try") 2>&5
33920   ac_status=$?
33921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922   (exit $ac_status); }; } &&
33923          { ac_try='test -s conftest$ac_exeext'
33924   { (case "(($ac_try" in
33925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926   *) ac_try_echo=$ac_try;;
33927 esac
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929   (eval "$ac_try") 2>&5
33930   ac_status=$?
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); }; }; then
33933   eval "$as_ac_var=yes"
33934 else
33935   echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33937
33938         eval "$as_ac_var=no"
33939 fi
33940
33941 rm -f core conftest.err conftest.$ac_objext \
33942       conftest$ac_exeext conftest.$ac_ext
33943 fi
33944 ac_res=`eval echo '${'$as_ac_var'}'`
33945                { echo "$as_me:$LINENO: result: $ac_res" >&5
33946 echo "${ECHO_T}$ac_res" >&6; }
33947 if test `eval echo '${'$as_ac_var'}'` = yes; then
33948   cat >>confdefs.h <<_ACEOF
33949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33950 _ACEOF
33951
33952 fi
33953 done
33954
33955
33956 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33957 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33958 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33959   echo $ECHO_N "(cached) $ECHO_C" >&6
33960 else
33961   llvm_cv_llvmgcc_sanity="no"
33962 if test -x "$LLVMGCC" ; then
33963   cp /dev/null conftest.c
33964   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33965       grep 'target datalayout =' > /dev/null 2>&1
33966   if test $? -eq 0 ; then
33967     llvm_cv_llvmgcc_sanity="yes"
33968   fi
33969   rm conftest.c
33970 fi
33971 fi
33972 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33973 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33974
33975 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33976   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33977 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33978   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33979   LLVMCC1=$llvmcc1path
33980
33981   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33982   LLVMCC1PLUS=$llvmcc1pluspath
33983
33984   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33985   LLVMGCCDIR=$llvmgccdir
33986
33987   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33988   LLVMGCCLIBEXEC=$llvmgcclibexec
33989
33990   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33991   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33992   LLVMGCC_VERSION=$llvmgccversion
33993
33994   LLVMGCC_MAJVERS=$llvmgccmajvers
33995
33996   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33997   LLVMGCC_LANGS=$llvmgcclangs
33998
33999   { echo "$as_me:$LINENO: result: ok" >&5
34000 echo "${ECHO_T}ok" >&6; }
34001 fi
34002
34003 SHLIBEXT=$libltdl_cv_shlibext
34004
34005
34006 # Translate the various configuration directories and other basic
34007 # information into substitutions that will end up in Makefile.config.in
34008 # that these configured values can be used by the makefiles
34009 if test "${prefix}" = "NONE" ; then
34010   prefix="/usr/local"
34011 fi
34012 eval LLVM_PREFIX="${prefix}";
34013 eval LLVM_BINDIR="${prefix}/bin";
34014 eval LLVM_LIBDIR="${prefix}/lib";
34015 eval LLVM_DATADIR="${prefix}/share/llvm";
34016 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34017 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34018 eval LLVM_INCLUDEDIR="${prefix}/include";
34019 eval LLVM_INFODIR="${prefix}/info";
34020 eval LLVM_MANDIR="${prefix}/man";
34021 LLVM_CONFIGTIME=`date`
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033 # Place the various directores into the config.h file as #defines so that we
34034 # can know about the installation paths within LLVM.
34035
34036 cat >>confdefs.h <<_ACEOF
34037 #define LLVM_PREFIX "$LLVM_PREFIX"
34038 _ACEOF
34039
34040
34041 cat >>confdefs.h <<_ACEOF
34042 #define LLVM_BINDIR "$LLVM_BINDIR"
34043 _ACEOF
34044
34045
34046 cat >>confdefs.h <<_ACEOF
34047 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34048 _ACEOF
34049
34050
34051 cat >>confdefs.h <<_ACEOF
34052 #define LLVM_DATADIR "$LLVM_DATADIR"
34053 _ACEOF
34054
34055
34056 cat >>confdefs.h <<_ACEOF
34057 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34058 _ACEOF
34059
34060
34061 cat >>confdefs.h <<_ACEOF
34062 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34063 _ACEOF
34064
34065
34066 cat >>confdefs.h <<_ACEOF
34067 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34068 _ACEOF
34069
34070
34071 cat >>confdefs.h <<_ACEOF
34072 #define LLVM_INFODIR "$LLVM_INFODIR"
34073 _ACEOF
34074
34075
34076 cat >>confdefs.h <<_ACEOF
34077 #define LLVM_MANDIR "$LLVM_MANDIR"
34078 _ACEOF
34079
34080
34081 cat >>confdefs.h <<_ACEOF
34082 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34083 _ACEOF
34084
34085
34086
34087 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34088
34089 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34090
34091 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34092
34093 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34094
34095 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34096
34097
34098 ac_config_files="$ac_config_files Makefile.config"
34099
34100
34101 ac_config_files="$ac_config_files llvm.spec"
34102
34103
34104 ac_config_files="$ac_config_files docs/doxygen.cfg"
34105
34106
34107 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34108
34109
34110 ac_config_commands="$ac_config_commands setup"
34111
34112 ac_config_commands="$ac_config_commands Makefile"
34113
34114
34115 ac_config_commands="$ac_config_commands Makefile.common"
34116
34117
34118 ac_config_commands="$ac_config_commands examples/Makefile"
34119
34120
34121 ac_config_commands="$ac_config_commands lib/Makefile"
34122
34123
34124 ac_config_commands="$ac_config_commands runtime/Makefile"
34125
34126
34127 ac_config_commands="$ac_config_commands test/Makefile"
34128
34129
34130 ac_config_commands="$ac_config_commands test/Makefile.tests"
34131
34132
34133 ac_config_commands="$ac_config_commands tools/Makefile"
34134
34135
34136 ac_config_commands="$ac_config_commands utils/Makefile"
34137
34138
34139 ac_config_commands="$ac_config_commands projects/Makefile"
34140
34141
34142
34143 cat >confcache <<\_ACEOF
34144 # This file is a shell script that caches the results of configure
34145 # tests run on this system so they can be shared between configure
34146 # scripts and configure runs, see configure's option --config-cache.
34147 # It is not useful on other systems.  If it contains results you don't
34148 # want to keep, you may remove or edit it.
34149 #
34150 # config.status only pays attention to the cache file if you give it
34151 # the --recheck option to rerun configure.
34152 #
34153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34155 # following values.
34156
34157 _ACEOF
34158
34159 # The following way of writing the cache mishandles newlines in values,
34160 # but we know of no workaround that is simple, portable, and efficient.
34161 # So, we kill variables containing newlines.
34162 # Ultrix sh set writes to stderr and can't be redirected directly,
34163 # and sets the high bit in the cache file unless we assign to the vars.
34164 (
34165   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34166     eval ac_val=\$$ac_var
34167     case $ac_val in #(
34168     *${as_nl}*)
34169       case $ac_var in #(
34170       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34171 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34172       esac
34173       case $ac_var in #(
34174       _ | IFS | as_nl) ;; #(
34175       *) $as_unset $ac_var ;;
34176       esac ;;
34177     esac
34178   done
34179
34180   (set) 2>&1 |
34181     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34182     *${as_nl}ac_space=\ *)
34183       # `set' does not quote correctly, so add quotes (double-quote
34184       # substitution turns \\\\ into \\, and sed turns \\ into \).
34185       sed -n \
34186         "s/'/'\\\\''/g;
34187           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34188       ;; #(
34189     *)
34190       # `set' quotes correctly as required by POSIX, so do not add quotes.
34191       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34192       ;;
34193     esac |
34194     sort
34195 ) |
34196   sed '
34197      /^ac_cv_env_/b end
34198      t clear
34199      :clear
34200      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34201      t end
34202      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34203      :end' >>confcache
34204 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34205   if test -w "$cache_file"; then
34206     test "x$cache_file" != "x/dev/null" &&
34207       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34208 echo "$as_me: updating cache $cache_file" >&6;}
34209     cat confcache >$cache_file
34210   else
34211     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34212 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34213   fi
34214 fi
34215 rm -f confcache
34216
34217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34218 # Let make expand exec_prefix.
34219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34220
34221 DEFS=-DHAVE_CONFIG_H
34222
34223 ac_libobjs=
34224 ac_ltlibobjs=
34225 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34226   # 1. Remove the extension, and $U if already installed.
34227   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34228   ac_i=`echo "$ac_i" | sed "$ac_script"`
34229   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34230   #    will be set to the directory where LIBOBJS objects are built.
34231   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34232   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34233 done
34234 LIBOBJS=$ac_libobjs
34235
34236 LTLIBOBJS=$ac_ltlibobjs
34237
34238
34239 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34240   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34241 Usually this means the macro was only invoked conditionally." >&5
34242 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34243 Usually this means the macro was only invoked conditionally." >&2;}
34244    { (exit 1); exit 1; }; }
34245 fi
34246 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34247   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34248 Usually this means the macro was only invoked conditionally." >&5
34249 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34250 Usually this means the macro was only invoked conditionally." >&2;}
34251    { (exit 1); exit 1; }; }
34252 fi
34253
34254 : ${CONFIG_STATUS=./config.status}
34255 ac_clean_files_save=$ac_clean_files
34256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34257 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34258 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34259 cat >$CONFIG_STATUS <<_ACEOF
34260 #! $SHELL
34261 # Generated by $as_me.
34262 # Run this file to recreate the current configuration.
34263 # Compiler output produced by configure, useful for debugging
34264 # configure, is in config.log if it exists.
34265
34266 debug=false
34267 ac_cs_recheck=false
34268 ac_cs_silent=false
34269 SHELL=\${CONFIG_SHELL-$SHELL}
34270 _ACEOF
34271
34272 cat >>$CONFIG_STATUS <<\_ACEOF
34273 ## --------------------- ##
34274 ## M4sh Initialization.  ##
34275 ## --------------------- ##
34276
34277 # Be Bourne compatible
34278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34279   emulate sh
34280   NULLCMD=:
34281   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34282   # is contrary to our usage.  Disable this feature.
34283   alias -g '${1+"$@"}'='"$@"'
34284   setopt NO_GLOB_SUBST
34285 else
34286   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34287 fi
34288 BIN_SH=xpg4; export BIN_SH # for Tru64
34289 DUALCASE=1; export DUALCASE # for MKS sh
34290
34291
34292 # PATH needs CR
34293 # Avoid depending upon Character Ranges.
34294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34297 as_cr_digits='0123456789'
34298 as_cr_alnum=$as_cr_Letters$as_cr_digits
34299
34300 # The user is always right.
34301 if test "${PATH_SEPARATOR+set}" != set; then
34302   echo "#! /bin/sh" >conf$$.sh
34303   echo  "exit 0"   >>conf$$.sh
34304   chmod +x conf$$.sh
34305   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34306     PATH_SEPARATOR=';'
34307   else
34308     PATH_SEPARATOR=:
34309   fi
34310   rm -f conf$$.sh
34311 fi
34312
34313 # Support unset when possible.
34314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34315   as_unset=unset
34316 else
34317   as_unset=false
34318 fi
34319
34320
34321 # IFS
34322 # We need space, tab and new line, in precisely that order.  Quoting is
34323 # there to prevent editors from complaining about space-tab.
34324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34325 # splitting by setting IFS to empty value.)
34326 as_nl='
34327 '
34328 IFS=" ""        $as_nl"
34329
34330 # Find who we are.  Look in the path if we contain no directory separator.
34331 case $0 in
34332   *[\\/]* ) as_myself=$0 ;;
34333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34334 for as_dir in $PATH
34335 do
34336   IFS=$as_save_IFS
34337   test -z "$as_dir" && as_dir=.
34338   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34339 done
34340 IFS=$as_save_IFS
34341
34342      ;;
34343 esac
34344 # We did not find ourselves, most probably we were run as `sh COMMAND'
34345 # in which case we are not to be found in the path.
34346 if test "x$as_myself" = x; then
34347   as_myself=$0
34348 fi
34349 if test ! -f "$as_myself"; then
34350   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34351   { (exit 1); exit 1; }
34352 fi
34353
34354 # Work around bugs in pre-3.0 UWIN ksh.
34355 for as_var in ENV MAIL MAILPATH
34356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34357 done
34358 PS1='$ '
34359 PS2='> '
34360 PS4='+ '
34361
34362 # NLS nuisances.
34363 for as_var in \
34364   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34365   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34366   LC_TELEPHONE LC_TIME
34367 do
34368   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34369     eval $as_var=C; export $as_var
34370   else
34371     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34372   fi
34373 done
34374
34375 # Required to use basename.
34376 if expr a : '\(a\)' >/dev/null 2>&1 &&
34377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34378   as_expr=expr
34379 else
34380   as_expr=false
34381 fi
34382
34383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34384   as_basename=basename
34385 else
34386   as_basename=false
34387 fi
34388
34389
34390 # Name of the executable.
34391 as_me=`$as_basename -- "$0" ||
34392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34393          X"$0" : 'X\(//\)$' \| \
34394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34395 echo X/"$0" |
34396     sed '/^.*\/\([^/][^/]*\)\/*$/{
34397             s//\1/
34398             q
34399           }
34400           /^X\/\(\/\/\)$/{
34401             s//\1/
34402             q
34403           }
34404           /^X\/\(\/\).*/{
34405             s//\1/
34406             q
34407           }
34408           s/.*/./; q'`
34409
34410 # CDPATH.
34411 $as_unset CDPATH
34412
34413
34414
34415   as_lineno_1=$LINENO
34416   as_lineno_2=$LINENO
34417   test "x$as_lineno_1" != "x$as_lineno_2" &&
34418   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34419
34420   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34421   # uniformly replaced by the line number.  The first 'sed' inserts a
34422   # line-number line after each line using $LINENO; the second 'sed'
34423   # does the real work.  The second script uses 'N' to pair each
34424   # line-number line with the line containing $LINENO, and appends
34425   # trailing '-' during substitution so that $LINENO is not a special
34426   # case at line end.
34427   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34428   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34429   # E. McMahon (1931-1989) for sed's syntax.  :-)
34430   sed -n '
34431     p
34432     /[$]LINENO/=
34433   ' <$as_myself |
34434     sed '
34435       s/[$]LINENO.*/&-/
34436       t lineno
34437       b
34438       :lineno
34439       N
34440       :loop
34441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34442       t loop
34443       s/-\n.*//
34444     ' >$as_me.lineno &&
34445   chmod +x "$as_me.lineno" ||
34446     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34447    { (exit 1); exit 1; }; }
34448
34449   # Don't try to exec as it changes $[0], causing all sort of problems
34450   # (the dirname of $[0] is not the place where we might find the
34451   # original and so on.  Autoconf is especially sensitive to this).
34452   . "./$as_me.lineno"
34453   # Exit status is that of the last command.
34454   exit
34455 }
34456
34457
34458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34459   as_dirname=dirname
34460 else
34461   as_dirname=false
34462 fi
34463
34464 ECHO_C= ECHO_N= ECHO_T=
34465 case `echo -n x` in
34466 -n*)
34467   case `echo 'x\c'` in
34468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34469   *)   ECHO_C='\c';;
34470   esac;;
34471 *)
34472   ECHO_N='-n';;
34473 esac
34474
34475 if expr a : '\(a\)' >/dev/null 2>&1 &&
34476    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34477   as_expr=expr
34478 else
34479   as_expr=false
34480 fi
34481
34482 rm -f conf$$ conf$$.exe conf$$.file
34483 if test -d conf$$.dir; then
34484   rm -f conf$$.dir/conf$$.file
34485 else
34486   rm -f conf$$.dir
34487   mkdir conf$$.dir
34488 fi
34489 echo >conf$$.file
34490 if ln -s conf$$.file conf$$ 2>/dev/null; then
34491   as_ln_s='ln -s'
34492   # ... but there are two gotchas:
34493   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34494   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34495   # In both cases, we have to default to `cp -p'.
34496   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34497     as_ln_s='cp -p'
34498 elif ln conf$$.file conf$$ 2>/dev/null; then
34499   as_ln_s=ln
34500 else
34501   as_ln_s='cp -p'
34502 fi
34503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34504 rmdir conf$$.dir 2>/dev/null
34505
34506 if mkdir -p . 2>/dev/null; then
34507   as_mkdir_p=:
34508 else
34509   test -d ./-p && rmdir ./-p
34510   as_mkdir_p=false
34511 fi
34512
34513 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34514 # systems may use methods other than mode bits to determine executability.
34515 cat >conf$$.file <<_ASEOF
34516 #! /bin/sh
34517 exit 0
34518 _ASEOF
34519 chmod +x conf$$.file
34520 if test -x conf$$.file >/dev/null 2>&1; then
34521   as_executable_p="test -x"
34522 else
34523   as_executable_p=:
34524 fi
34525 rm -f conf$$.file
34526
34527 # Sed expression to map a string onto a valid CPP name.
34528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34529
34530 # Sed expression to map a string onto a valid variable name.
34531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34532
34533
34534 exec 6>&1
34535
34536 # Save the log message, to keep $[0] and so on meaningful, and to
34537 # report actual input values of CONFIG_FILES etc. instead of their
34538 # values after options handling.
34539 ac_log="
34540 This file was extended by llvm $as_me 2.2svn, which was
34541 generated by GNU Autoconf 2.60.  Invocation command line was
34542
34543   CONFIG_FILES    = $CONFIG_FILES
34544   CONFIG_HEADERS  = $CONFIG_HEADERS
34545   CONFIG_LINKS    = $CONFIG_LINKS
34546   CONFIG_COMMANDS = $CONFIG_COMMANDS
34547   $ $0 $@
34548
34549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34550 "
34551
34552 _ACEOF
34553
34554 cat >>$CONFIG_STATUS <<_ACEOF
34555 # Files that config.status was made for.
34556 config_files="$ac_config_files"
34557 config_headers="$ac_config_headers"
34558 config_commands="$ac_config_commands"
34559
34560 _ACEOF
34561
34562 cat >>$CONFIG_STATUS <<\_ACEOF
34563 ac_cs_usage="\
34564 \`$as_me' instantiates files from templates according to the
34565 current configuration.
34566
34567 Usage: $0 [OPTIONS] [FILE]...
34568
34569   -h, --help       print this help, then exit
34570   -V, --version    print version number, then exit
34571   -q, --quiet      do not print progress messages
34572   -d, --debug      don't remove temporary files
34573       --recheck    update $as_me by reconfiguring in the same conditions
34574   --file=FILE[:TEMPLATE]
34575                    instantiate the configuration file FILE
34576   --header=FILE[:TEMPLATE]
34577                    instantiate the configuration header FILE
34578
34579 Configuration files:
34580 $config_files
34581
34582 Configuration headers:
34583 $config_headers
34584
34585 Configuration commands:
34586 $config_commands
34587
34588 Report bugs to <bug-autoconf@gnu.org>."
34589
34590 _ACEOF
34591 cat >>$CONFIG_STATUS <<_ACEOF
34592 ac_cs_version="\\
34593 llvm config.status 2.2svn
34594 configured by $0, generated by GNU Autoconf 2.60,
34595   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34596
34597 Copyright (C) 2006 Free Software Foundation, Inc.
34598 This config.status script is free software; the Free Software Foundation
34599 gives unlimited permission to copy, distribute and modify it."
34600
34601 ac_pwd='$ac_pwd'
34602 srcdir='$srcdir'
34603 INSTALL='$INSTALL'
34604 _ACEOF
34605
34606 cat >>$CONFIG_STATUS <<\_ACEOF
34607 # If no file are specified by the user, then we need to provide default
34608 # value.  By we need to know if files were specified by the user.
34609 ac_need_defaults=:
34610 while test $# != 0
34611 do
34612   case $1 in
34613   --*=*)
34614     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34615     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34616     ac_shift=:
34617     ;;
34618   *)
34619     ac_option=$1
34620     ac_optarg=$2
34621     ac_shift=shift
34622     ;;
34623   esac
34624
34625   case $ac_option in
34626   # Handling of the options.
34627   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34628     ac_cs_recheck=: ;;
34629   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34630     echo "$ac_cs_version"; exit ;;
34631   --debug | --debu | --deb | --de | --d | -d )
34632     debug=: ;;
34633   --file | --fil | --fi | --f )
34634     $ac_shift
34635     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34636     ac_need_defaults=false;;
34637   --header | --heade | --head | --hea )
34638     $ac_shift
34639     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34640     ac_need_defaults=false;;
34641   --he | --h)
34642     # Conflict between --help and --header
34643     { echo "$as_me: error: ambiguous option: $1
34644 Try \`$0 --help' for more information." >&2
34645    { (exit 1); exit 1; }; };;
34646   --help | --hel | -h )
34647     echo "$ac_cs_usage"; exit ;;
34648   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34649   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34650     ac_cs_silent=: ;;
34651
34652   # This is an error.
34653   -*) { echo "$as_me: error: unrecognized option: $1
34654 Try \`$0 --help' for more information." >&2
34655    { (exit 1); exit 1; }; } ;;
34656
34657   *) ac_config_targets="$ac_config_targets $1"
34658      ac_need_defaults=false ;;
34659
34660   esac
34661   shift
34662 done
34663
34664 ac_configure_extra_args=
34665
34666 if $ac_cs_silent; then
34667   exec 6>/dev/null
34668   ac_configure_extra_args="$ac_configure_extra_args --silent"
34669 fi
34670
34671 _ACEOF
34672 cat >>$CONFIG_STATUS <<_ACEOF
34673 if \$ac_cs_recheck; then
34674   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34675   CONFIG_SHELL=$SHELL
34676   export CONFIG_SHELL
34677   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34678 fi
34679
34680 _ACEOF
34681 cat >>$CONFIG_STATUS <<\_ACEOF
34682 exec 5>>config.log
34683 {
34684   echo
34685   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34686 ## Running $as_me. ##
34687 _ASBOX
34688   echo "$ac_log"
34689 } >&5
34690
34691 _ACEOF
34692 cat >>$CONFIG_STATUS <<_ACEOF
34693 #
34694 # INIT-COMMANDS
34695 #
34696 llvm_src="${srcdir}"
34697
34698 _ACEOF
34699
34700 cat >>$CONFIG_STATUS <<\_ACEOF
34701
34702 # Handling of arguments.
34703 for ac_config_target in $ac_config_targets
34704 do
34705   case $ac_config_target in
34706     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34707     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34708     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34709     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34710     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34711     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34712     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34713     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34714     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34715     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34716     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34717     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34718     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34719     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34720     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34721     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34722     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34723     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34724     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34725     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34726
34727   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34729    { (exit 1); exit 1; }; };;
34730   esac
34731 done
34732
34733
34734 # If the user did not use the arguments to specify the items to instantiate,
34735 # then the envvar interface is used.  Set only those that are not.
34736 # We use the long form for the default assignment because of an extremely
34737 # bizarre bug on SunOS 4.1.3.
34738 if $ac_need_defaults; then
34739   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34740   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34741   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34742 fi
34743
34744 # Have a temporary directory for convenience.  Make it in the build tree
34745 # simply because there is no reason against having it here, and in addition,
34746 # creating and moving files from /tmp can sometimes cause problems.
34747 # Hook for its removal unless debugging.
34748 # Note that there is a small window in which the directory will not be cleaned:
34749 # after its creation but before its name has been assigned to `$tmp'.
34750 $debug ||
34751 {
34752   tmp=
34753   trap 'exit_status=$?
34754   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34755 ' 0
34756   trap '{ (exit 1); exit 1; }' 1 2 13 15
34757 }
34758 # Create a (secure) tmp directory for tmp files.
34759
34760 {
34761   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34762   test -n "$tmp" && test -d "$tmp"
34763 }  ||
34764 {
34765   tmp=./conf$$-$RANDOM
34766   (umask 077 && mkdir "$tmp")
34767 } ||
34768 {
34769    echo "$me: cannot create a temporary directory in ." >&2
34770    { (exit 1); exit 1; }
34771 }
34772
34773 #
34774 # Set up the sed scripts for CONFIG_FILES section.
34775 #
34776
34777 # No need to generate the scripts if there are no CONFIG_FILES.
34778 # This happens for instance when ./config.status config.h
34779 if test -n "$CONFIG_FILES"; then
34780
34781 _ACEOF
34782
34783
34784
34785 ac_delim='%!_!# '
34786 for ac_last_try in false false false false false :; do
34787   cat >conf$$subs.sed <<_ACEOF
34788 SHELL!$SHELL$ac_delim
34789 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34790 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34791 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34792 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34793 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34794 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34795 exec_prefix!$exec_prefix$ac_delim
34796 prefix!$prefix$ac_delim
34797 program_transform_name!$program_transform_name$ac_delim
34798 bindir!$bindir$ac_delim
34799 sbindir!$sbindir$ac_delim
34800 libexecdir!$libexecdir$ac_delim
34801 datarootdir!$datarootdir$ac_delim
34802 datadir!$datadir$ac_delim
34803 sysconfdir!$sysconfdir$ac_delim
34804 sharedstatedir!$sharedstatedir$ac_delim
34805 localstatedir!$localstatedir$ac_delim
34806 includedir!$includedir$ac_delim
34807 oldincludedir!$oldincludedir$ac_delim
34808 docdir!$docdir$ac_delim
34809 infodir!$infodir$ac_delim
34810 htmldir!$htmldir$ac_delim
34811 dvidir!$dvidir$ac_delim
34812 pdfdir!$pdfdir$ac_delim
34813 psdir!$psdir$ac_delim
34814 libdir!$libdir$ac_delim
34815 localedir!$localedir$ac_delim
34816 mandir!$mandir$ac_delim
34817 DEFS!$DEFS$ac_delim
34818 ECHO_C!$ECHO_C$ac_delim
34819 ECHO_N!$ECHO_N$ac_delim
34820 ECHO_T!$ECHO_T$ac_delim
34821 LIBS!$LIBS$ac_delim
34822 build_alias!$build_alias$ac_delim
34823 host_alias!$host_alias$ac_delim
34824 target_alias!$target_alias$ac_delim
34825 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34826 subdirs!$subdirs$ac_delim
34827 build!$build$ac_delim
34828 build_cpu!$build_cpu$ac_delim
34829 build_vendor!$build_vendor$ac_delim
34830 build_os!$build_os$ac_delim
34831 host!$host$ac_delim
34832 host_cpu!$host_cpu$ac_delim
34833 host_vendor!$host_vendor$ac_delim
34834 host_os!$host_os$ac_delim
34835 target!$target$ac_delim
34836 target_cpu!$target_cpu$ac_delim
34837 target_vendor!$target_vendor$ac_delim
34838 target_os!$target_os$ac_delim
34839 OS!$OS$ac_delim
34840 LINKALL!$LINKALL$ac_delim
34841 NOLINKALL!$NOLINKALL$ac_delim
34842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34844 ARCH!$ARCH$ac_delim
34845 ENDIAN!$ENDIAN$ac_delim
34846 CC!$CC$ac_delim
34847 CFLAGS!$CFLAGS$ac_delim
34848 LDFLAGS!$LDFLAGS$ac_delim
34849 CPPFLAGS!$CPPFLAGS$ac_delim
34850 ac_ct_CC!$ac_ct_CC$ac_delim
34851 EXEEXT!$EXEEXT$ac_delim
34852 OBJEXT!$OBJEXT$ac_delim
34853 CPP!$CPP$ac_delim
34854 GREP!$GREP$ac_delim
34855 EGREP!$EGREP$ac_delim
34856 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34857 BUILD_CC!$BUILD_CC$ac_delim
34858 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34859 CVSBUILD!$CVSBUILD$ac_delim
34860 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34861 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34862 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34863 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34864 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34865 JIT!$JIT$ac_delim
34866 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34867 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34868 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34869 ENABLE_PIC!$ENABLE_PIC$ac_delim
34870 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34871 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34872 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34873 CXX!$CXX$ac_delim
34874 CXXFLAGS!$CXXFLAGS$ac_delim
34875 ac_ct_CXX!$ac_ct_CXX$ac_delim
34876 LEX!$LEX$ac_delim
34877 LEXLIB!$LEXLIB$ac_delim
34878 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34879 FLEX!$FLEX$ac_delim
34880 YACC!$YACC$ac_delim
34881 YFLAGS!$YFLAGS$ac_delim
34882 BISON!$BISON$ac_delim
34883 NM!$NM$ac_delim
34884 ifGNUmake!$ifGNUmake$ac_delim
34885 _ACEOF
34886
34887   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34888     break
34889   elif $ac_last_try; then
34890     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34891 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34892    { (exit 1); exit 1; }; }
34893   else
34894     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34895   fi
34896 done
34897
34898 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34899 if test -n "$ac_eof"; then
34900   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34901   ac_eof=`expr $ac_eof + 1`
34902 fi
34903
34904 cat >>$CONFIG_STATUS <<_ACEOF
34905 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34907 _ACEOF
34908 sed '
34909 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34910 s/^/s,@/; s/!/@,|#_!!_#|/
34911 :n
34912 t n
34913 s/'"$ac_delim"'$/,g/; t
34914 s/$/\\/; p
34915 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34916 ' >>$CONFIG_STATUS <conf$$subs.sed
34917 rm -f conf$$subs.sed
34918 cat >>$CONFIG_STATUS <<_ACEOF
34919 CEOF$ac_eof
34920 _ACEOF
34921
34922
34923 ac_delim='%!_!# '
34924 for ac_last_try in false false false false false :; do
34925   cat >conf$$subs.sed <<_ACEOF
34926 LN_S!$LN_S$ac_delim
34927 CMP!$CMP$ac_delim
34928 CP!$CP$ac_delim
34929 DATE!$DATE$ac_delim
34930 FIND!$FIND$ac_delim
34931 MKDIR!$MKDIR$ac_delim
34932 MV!$MV$ac_delim
34933 RANLIB!$RANLIB$ac_delim
34934 RM!$RM$ac_delim
34935 SED!$SED$ac_delim
34936 TAR!$TAR$ac_delim
34937 BINPWD!$BINPWD$ac_delim
34938 GRAPHVIZ!$GRAPHVIZ$ac_delim
34939 DOT!$DOT$ac_delim
34940 GV!$GV$ac_delim
34941 DOTTY!$DOTTY$ac_delim
34942 PERL!$PERL$ac_delim
34943 HAVE_PERL!$HAVE_PERL$ac_delim
34944 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34945 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34946 INSTALL_DATA!$INSTALL_DATA$ac_delim
34947 BZIP2!$BZIP2$ac_delim
34948 DOXYGEN!$DOXYGEN$ac_delim
34949 GROFF!$GROFF$ac_delim
34950 GZIP!$GZIP$ac_delim
34951 POD2HTML!$POD2HTML$ac_delim
34952 POD2MAN!$POD2MAN$ac_delim
34953 RUNTEST!$RUNTEST$ac_delim
34954 TCLSH!$TCLSH$ac_delim
34955 ZIP!$ZIP$ac_delim
34956 OCAMLC!$OCAMLC$ac_delim
34957 OCAMLOPT!$OCAMLOPT$ac_delim
34958 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34959 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34960 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34961 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34962 LIBADD_DL!$LIBADD_DL$ac_delim
34963 ECHO!$ECHO$ac_delim
34964 AR!$AR$ac_delim
34965 STRIP!$STRIP$ac_delim
34966 CXXCPP!$CXXCPP$ac_delim
34967 F77!$F77$ac_delim
34968 FFLAGS!$FFLAGS$ac_delim
34969 ac_ct_F77!$ac_ct_F77$ac_delim
34970 LIBTOOL!$LIBTOOL$ac_delim
34971 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34972 LLVMGCC!$LLVMGCC$ac_delim
34973 LLVMGXX!$LLVMGXX$ac_delim
34974 USE_UDIS86!$USE_UDIS86$ac_delim
34975 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34976 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34977 ALLOCA!$ALLOCA$ac_delim
34978 MMAP_FILE!$MMAP_FILE$ac_delim
34979 LLVMCC1!$LLVMCC1$ac_delim
34980 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34981 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34982 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34983 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34984 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34985 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34986 SHLIBEXT!$SHLIBEXT$ac_delim
34987 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34988 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34989 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34990 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34991 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34992 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34993 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34994 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34995 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34996 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34997 LIBOBJS!$LIBOBJS$ac_delim
34998 LTLIBOBJS!$LTLIBOBJS$ac_delim
34999 _ACEOF
35000
35001   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
35002     break
35003   elif $ac_last_try; then
35004     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35005 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35006    { (exit 1); exit 1; }; }
35007   else
35008     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35009   fi
35010 done
35011
35012 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35013 if test -n "$ac_eof"; then
35014   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35015   ac_eof=`expr $ac_eof + 1`
35016 fi
35017
35018 cat >>$CONFIG_STATUS <<_ACEOF
35019 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35021 _ACEOF
35022 sed '
35023 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35024 s/^/s,@/; s/!/@,|#_!!_#|/
35025 :n
35026 t n
35027 s/'"$ac_delim"'$/,g/; t
35028 s/$/\\/; p
35029 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35030 ' >>$CONFIG_STATUS <conf$$subs.sed
35031 rm -f conf$$subs.sed
35032 cat >>$CONFIG_STATUS <<_ACEOF
35033 :end
35034 s/|#_!!_#|//g
35035 CEOF$ac_eof
35036 _ACEOF
35037
35038
35039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35041 # trailing colons and then remove the whole line if VPATH becomes empty
35042 # (actually we leave an empty line to preserve line numbers).
35043 if test "x$srcdir" = x.; then
35044   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35045 s/:*\$(srcdir):*/:/
35046 s/:*\${srcdir}:*/:/
35047 s/:*@srcdir@:*/:/
35048 s/^\([^=]*=[     ]*\):*/\1/
35049 s/:*$//
35050 s/^[^=]*=[       ]*$//
35051 }'
35052 fi
35053
35054 cat >>$CONFIG_STATUS <<\_ACEOF
35055 fi # test -n "$CONFIG_FILES"
35056
35057
35058 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35059 do
35060   case $ac_tag in
35061   :[FHLC]) ac_mode=$ac_tag; continue;;
35062   esac
35063   case $ac_mode$ac_tag in
35064   :[FHL]*:*);;
35065   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35066 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35067    { (exit 1); exit 1; }; };;
35068   :[FH]-) ac_tag=-:-;;
35069   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35070   esac
35071   ac_save_IFS=$IFS
35072   IFS=:
35073   set x $ac_tag
35074   IFS=$ac_save_IFS
35075   shift
35076   ac_file=$1
35077   shift
35078
35079   case $ac_mode in
35080   :L) ac_source=$1;;
35081   :[FH])
35082     ac_file_inputs=
35083     for ac_f
35084     do
35085       case $ac_f in
35086       -) ac_f="$tmp/stdin";;
35087       *) # Look for the file first in the build tree, then in the source tree
35088          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35089          # because $ac_f cannot contain `:'.
35090          test -f "$ac_f" ||
35091            case $ac_f in
35092            [\\/$]*) false;;
35093            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35094            esac ||
35095            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35096 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35097    { (exit 1); exit 1; }; };;
35098       esac
35099       ac_file_inputs="$ac_file_inputs $ac_f"
35100     done
35101
35102     # Let's still pretend it is `configure' which instantiates (i.e., don't
35103     # use $as_me), people would be surprised to read:
35104     #    /* config.h.  Generated by config.status.  */
35105     configure_input="Generated from "`IFS=:
35106           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35107     if test x"$ac_file" != x-; then
35108       configure_input="$ac_file.  $configure_input"
35109       { echo "$as_me:$LINENO: creating $ac_file" >&5
35110 echo "$as_me: creating $ac_file" >&6;}
35111     fi
35112
35113     case $ac_tag in
35114     *:-:* | *:-) cat >"$tmp/stdin";;
35115     esac
35116     ;;
35117   esac
35118
35119   ac_dir=`$as_dirname -- "$ac_file" ||
35120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35121          X"$ac_file" : 'X\(//\)[^/]' \| \
35122          X"$ac_file" : 'X\(//\)$' \| \
35123          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35124 echo X"$ac_file" |
35125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35126             s//\1/
35127             q
35128           }
35129           /^X\(\/\/\)[^/].*/{
35130             s//\1/
35131             q
35132           }
35133           /^X\(\/\/\)$/{
35134             s//\1/
35135             q
35136           }
35137           /^X\(\/\).*/{
35138             s//\1/
35139             q
35140           }
35141           s/.*/./; q'`
35142   { as_dir="$ac_dir"
35143   case $as_dir in #(
35144   -*) as_dir=./$as_dir;;
35145   esac
35146   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35147     as_dirs=
35148     while :; do
35149       case $as_dir in #(
35150       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35151       *) as_qdir=$as_dir;;
35152       esac
35153       as_dirs="'$as_qdir' $as_dirs"
35154       as_dir=`$as_dirname -- "$as_dir" ||
35155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35156          X"$as_dir" : 'X\(//\)[^/]' \| \
35157          X"$as_dir" : 'X\(//\)$' \| \
35158          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35159 echo X"$as_dir" |
35160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35161             s//\1/
35162             q
35163           }
35164           /^X\(\/\/\)[^/].*/{
35165             s//\1/
35166             q
35167           }
35168           /^X\(\/\/\)$/{
35169             s//\1/
35170             q
35171           }
35172           /^X\(\/\).*/{
35173             s//\1/
35174             q
35175           }
35176           s/.*/./; q'`
35177       test -d "$as_dir" && break
35178     done
35179     test -z "$as_dirs" || eval "mkdir $as_dirs"
35180   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35181 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35182    { (exit 1); exit 1; }; }; }
35183   ac_builddir=.
35184
35185 case "$ac_dir" in
35186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35187 *)
35188   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35189   # A ".." for each directory in $ac_dir_suffix.
35190   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35191   case $ac_top_builddir_sub in
35192   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35193   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35194   esac ;;
35195 esac
35196 ac_abs_top_builddir=$ac_pwd
35197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35198 # for backward compatibility:
35199 ac_top_builddir=$ac_top_build_prefix
35200
35201 case $srcdir in
35202   .)  # We are building in place.
35203     ac_srcdir=.
35204     ac_top_srcdir=$ac_top_builddir_sub
35205     ac_abs_top_srcdir=$ac_pwd ;;
35206   [\\/]* | ?:[\\/]* )  # Absolute name.
35207     ac_srcdir=$srcdir$ac_dir_suffix;
35208     ac_top_srcdir=$srcdir
35209     ac_abs_top_srcdir=$srcdir ;;
35210   *) # Relative name.
35211     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35212     ac_top_srcdir=$ac_top_build_prefix$srcdir
35213     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35214 esac
35215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35216
35217
35218   case $ac_mode in
35219   :F)
35220   #
35221   # CONFIG_FILE
35222   #
35223
35224   case $INSTALL in
35225   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35226   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35227   esac
35228 _ACEOF
35229
35230 cat >>$CONFIG_STATUS <<\_ACEOF
35231 # If the template does not know about datarootdir, expand it.
35232 # FIXME: This hack should be removed a few years after 2.60.
35233 ac_datarootdir_hack=; ac_datarootdir_seen=
35234
35235 case `sed -n '/datarootdir/ {
35236   p
35237   q
35238 }
35239 /@datadir@/p
35240 /@docdir@/p
35241 /@infodir@/p
35242 /@localedir@/p
35243 /@mandir@/p
35244 ' $ac_file_inputs` in
35245 *datarootdir*) ac_datarootdir_seen=yes;;
35246 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35247   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35248 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35249 _ACEOF
35250 cat >>$CONFIG_STATUS <<_ACEOF
35251   ac_datarootdir_hack='
35252   s&@datadir@&$datadir&g
35253   s&@docdir@&$docdir&g
35254   s&@infodir@&$infodir&g
35255   s&@localedir@&$localedir&g
35256   s&@mandir@&$mandir&g
35257     s&\\\${datarootdir}&$datarootdir&g' ;;
35258 esac
35259 _ACEOF
35260
35261 # Neutralize VPATH when `$srcdir' = `.'.
35262 # Shell code in configure.ac might set extrasub.
35263 # FIXME: do we really want to maintain this feature?
35264 cat >>$CONFIG_STATUS <<_ACEOF
35265   sed "$ac_vpsub
35266 $extrasub
35267 _ACEOF
35268 cat >>$CONFIG_STATUS <<\_ACEOF
35269 :t
35270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35271 s&@configure_input@&$configure_input&;t t
35272 s&@top_builddir@&$ac_top_builddir_sub&;t t
35273 s&@srcdir@&$ac_srcdir&;t t
35274 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35275 s&@top_srcdir@&$ac_top_srcdir&;t t
35276 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35277 s&@builddir@&$ac_builddir&;t t
35278 s&@abs_builddir@&$ac_abs_builddir&;t t
35279 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35280 s&@INSTALL@&$ac_INSTALL&;t t
35281 $ac_datarootdir_hack
35282 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35283
35284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35285   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35286   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35287   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35288 which seems to be undefined.  Please make sure it is defined." >&5
35289 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35290 which seems to be undefined.  Please make sure it is defined." >&2;}
35291
35292   rm -f "$tmp/stdin"
35293   case $ac_file in
35294   -) cat "$tmp/out"; rm -f "$tmp/out";;
35295   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35296   esac
35297  ;;
35298   :H)
35299   #
35300   # CONFIG_HEADER
35301   #
35302 _ACEOF
35303
35304 # Transform confdefs.h into a sed script `conftest.defines', that
35305 # substitutes the proper values into config.h.in to produce config.h.
35306 rm -f conftest.defines conftest.tail
35307 # First, append a space to every undef/define line, to ease matching.
35308 echo 's/$/ /' >conftest.defines
35309 # Then, protect against being on the right side of a sed subst, or in
35310 # an unquoted here document, in config.status.  If some macros were
35311 # called several times there might be several #defines for the same
35312 # symbol, which is useless.  But do not sort them, since the last
35313 # AC_DEFINE must be honored.
35314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35315 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35316 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35317 # PARAMS is the parameter list in the macro definition--in most cases, it's
35318 # just an empty string.
35319 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35320 ac_dB='\\)[      (].*,\\1define\\2'
35321 ac_dC=' '
35322 ac_dD=' ,'
35323
35324 uniq confdefs.h |
35325   sed -n '
35326         t rset
35327         :rset
35328         s/^[     ]*#[    ]*define[       ][      ]*//
35329         t ok
35330         d
35331         :ok
35332         s/[\\&,]/\\&/g
35333         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35334         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35335   ' >>conftest.defines
35336
35337 # Remove the space that was appended to ease matching.
35338 # Then replace #undef with comments.  This is necessary, for
35339 # example, in the case of _POSIX_SOURCE, which is predefined and required
35340 # on some systems where configure will not decide to define it.
35341 # (The regexp can be short, since the line contains either #define or #undef.)
35342 echo 's/ $//
35343 s,^[     #]*u.*,/* & */,' >>conftest.defines
35344
35345 # Break up conftest.defines:
35346 ac_max_sed_lines=50
35347
35348 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35349 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35350 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35351 # et cetera.
35352 ac_in='$ac_file_inputs'
35353 ac_out='"$tmp/out1"'
35354 ac_nxt='"$tmp/out2"'
35355
35356 while :
35357 do
35358   # Write a here document:
35359     cat >>$CONFIG_STATUS <<_ACEOF
35360     # First, check the format of the line:
35361     cat >"\$tmp/defines.sed" <<\\CEOF
35362 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35363 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35364 b
35365 :def
35366 _ACEOF
35367   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35368   echo 'CEOF
35369     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35370   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35371   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35372   grep . conftest.tail >/dev/null || break
35373   rm -f conftest.defines
35374   mv conftest.tail conftest.defines
35375 done
35376 rm -f conftest.defines conftest.tail
35377
35378 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35379 cat >>$CONFIG_STATUS <<\_ACEOF
35380   if test x"$ac_file" != x-; then
35381     echo "/* $configure_input  */" >"$tmp/config.h"
35382     cat "$ac_result" >>"$tmp/config.h"
35383     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35384       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35385 echo "$as_me: $ac_file is unchanged" >&6;}
35386     else
35387       rm -f $ac_file
35388       mv "$tmp/config.h" $ac_file
35389     fi
35390   else
35391     echo "/* $configure_input  */"
35392     cat "$ac_result"
35393   fi
35394   rm -f "$tmp/out12"
35395  ;;
35396
35397   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35398 echo "$as_me: executing $ac_file commands" >&6;}
35399  ;;
35400   esac
35401
35402
35403   case $ac_file$ac_mode in
35404     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35405    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35406     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35407    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35408     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35409    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35410     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35411    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35412     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35413    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35414     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35415    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35416     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35417    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35418     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35419    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35420     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35421    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35422     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35423    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35424
35425   esac
35426 done # for ac_tag
35427
35428
35429 { (exit 0); exit 0; }
35430 _ACEOF
35431 chmod +x $CONFIG_STATUS
35432 ac_clean_files=$ac_clean_files_save
35433
35434
35435 # configure is writing to config.log, and then calls config.status.
35436 # config.status does its own redirection, appending to config.log.
35437 # Unfortunately, on DOS this fails, as config.log is still kept open
35438 # by configure, so config.status won't be able to write to it; its
35439 # output is simply discarded.  So we exec the FD to /dev/null,
35440 # effectively closing config.log, so it can be properly (re)opened and
35441 # appended to by config.status.  When coming back to configure, we
35442 # need to make the FD available again.
35443 if test "$no_create" != yes; then
35444   ac_cs_success=:
35445   ac_config_status_args=
35446   test "$silent" = yes &&
35447     ac_config_status_args="$ac_config_status_args --quiet"
35448   exec 5>/dev/null
35449   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35450   exec 5>>config.log
35451   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35452   # would make configure fail if this is the last instruction.
35453   $ac_cs_success || { (exit 1); exit 1; }
35454 fi
35455
35456 #
35457 # CONFIG_SUBDIRS section.
35458 #
35459 if test "$no_recursion" != yes; then
35460
35461   # Remove --cache-file and --srcdir arguments so they do not pile up.
35462   ac_sub_configure_args=
35463   ac_prev=
35464   eval "set x $ac_configure_args"
35465   shift
35466   for ac_arg
35467   do
35468     if test -n "$ac_prev"; then
35469       ac_prev=
35470       continue
35471     fi
35472     case $ac_arg in
35473     -cache-file | --cache-file | --cache-fil | --cache-fi \
35474     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35475       ac_prev=cache_file ;;
35476     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35477     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35478     | --c=*)
35479       ;;
35480     --config-cache | -C)
35481       ;;
35482     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35483       ac_prev=srcdir ;;
35484     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35485       ;;
35486     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35487       ac_prev=prefix ;;
35488     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35489       ;;
35490     *)
35491       case $ac_arg in
35492       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35493       esac
35494       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35495     esac
35496   done
35497
35498   # Always prepend --prefix to ensure using the same prefix
35499   # in subdir configurations.
35500   ac_arg="--prefix=$prefix"
35501   case $ac_arg in
35502   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35503   esac
35504   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35505
35506   ac_popdir=`pwd`
35507   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35508
35509     # Do not complain, so a configure script can configure whichever
35510     # parts of a large source tree are present.
35511     test -d "$srcdir/$ac_dir" || continue
35512
35513     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35514     echo "$as_me:$LINENO: $ac_msg" >&5
35515     echo "$ac_msg" >&6
35516     { as_dir="$ac_dir"
35517   case $as_dir in #(
35518   -*) as_dir=./$as_dir;;
35519   esac
35520   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35521     as_dirs=
35522     while :; do
35523       case $as_dir in #(
35524       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35525       *) as_qdir=$as_dir;;
35526       esac
35527       as_dirs="'$as_qdir' $as_dirs"
35528       as_dir=`$as_dirname -- "$as_dir" ||
35529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35530          X"$as_dir" : 'X\(//\)[^/]' \| \
35531          X"$as_dir" : 'X\(//\)$' \| \
35532          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35533 echo X"$as_dir" |
35534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35535             s//\1/
35536             q
35537           }
35538           /^X\(\/\/\)[^/].*/{
35539             s//\1/
35540             q
35541           }
35542           /^X\(\/\/\)$/{
35543             s//\1/
35544             q
35545           }
35546           /^X\(\/\).*/{
35547             s//\1/
35548             q
35549           }
35550           s/.*/./; q'`
35551       test -d "$as_dir" && break
35552     done
35553     test -z "$as_dirs" || eval "mkdir $as_dirs"
35554   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35556    { (exit 1); exit 1; }; }; }
35557     ac_builddir=.
35558
35559 case "$ac_dir" in
35560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35561 *)
35562   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35563   # A ".." for each directory in $ac_dir_suffix.
35564   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35565   case $ac_top_builddir_sub in
35566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35568   esac ;;
35569 esac
35570 ac_abs_top_builddir=$ac_pwd
35571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35572 # for backward compatibility:
35573 ac_top_builddir=$ac_top_build_prefix
35574
35575 case $srcdir in
35576   .)  # We are building in place.
35577     ac_srcdir=.
35578     ac_top_srcdir=$ac_top_builddir_sub
35579     ac_abs_top_srcdir=$ac_pwd ;;
35580   [\\/]* | ?:[\\/]* )  # Absolute name.
35581     ac_srcdir=$srcdir$ac_dir_suffix;
35582     ac_top_srcdir=$srcdir
35583     ac_abs_top_srcdir=$srcdir ;;
35584   *) # Relative name.
35585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35586     ac_top_srcdir=$ac_top_build_prefix$srcdir
35587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35588 esac
35589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35590
35591
35592     cd "$ac_dir"
35593
35594     # Check for guested configure; otherwise get Cygnus style configure.
35595     if test -f "$ac_srcdir/configure.gnu"; then
35596       ac_sub_configure=$ac_srcdir/configure.gnu
35597     elif test -f "$ac_srcdir/configure"; then
35598       ac_sub_configure=$ac_srcdir/configure
35599     elif test -f "$ac_srcdir/configure.in"; then
35600       # This should be Cygnus configure.
35601       ac_sub_configure=$ac_aux_dir/configure
35602     else
35603       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35604 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35605       ac_sub_configure=
35606     fi
35607
35608     # The recursion is here.
35609     if test -n "$ac_sub_configure"; then
35610       # Make the cache file name correct relative to the subdirectory.
35611       case $cache_file in
35612       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35613       *) # Relative name.
35614         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35615       esac
35616
35617       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35618 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35619       # The eval makes quoting arguments work.
35620       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35621            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35622         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35623 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35624    { (exit 1); exit 1; }; }
35625     fi
35626
35627     cd "$ac_popdir"
35628   done
35629 fi
35630
35631