Regenerate.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 tagnames=${tagnames+${tagnames},}CXX
707
708 tagnames=${tagnames+${tagnames},}F77
709
710 exec 7<&0 </dev/null 6>&1
711
712 # Name of the host.
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717 #
718 # Initializations.
719 #
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728 SHELL=${CONFIG_SHELL-/bin/sh}
729
730 # Identity of this package.
731 PACKAGE_NAME='llvm'
732 PACKAGE_TARNAME='-llvm-'
733 PACKAGE_VERSION='2.6svn'
734 PACKAGE_STRING='llvm 2.6svn'
735 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
736
737 ac_unique_file="lib/VMCore/Module.cpp"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 LLVM_COPYRIGHT
812 subdirs
813 build
814 build_cpu
815 build_vendor
816 build_os
817 host
818 host_cpu
819 host_vendor
820 host_os
821 target
822 target_cpu
823 target_vendor
824 target_os
825 OS
826 LINKALL
827 NOLINKALL
828 LLVM_ON_UNIX
829 LLVM_ON_WIN32
830 ARCH
831 ENDIAN
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 CPP
840 GREP
841 EGREP
842 LLVM_CROSS_COMPILING
843 BUILD_CC
844 BUILD_EXEEXT
845 BUILD_CXX
846 CVSBUILD
847 ENABLE_OPTIMIZED
848 ENABLE_PROFILING
849 DISABLE_ASSERTIONS
850 ENABLE_EXPENSIVE_CHECKS
851 EXPENSIVE_CHECKS
852 DEBUG_RUNTIME
853 JIT
854 TARGET_HAS_JIT
855 ENABLE_DOXYGEN
856 ENABLE_THREADS
857 ENABLE_PIC
858 TARGETS_TO_BUILD
859 ENABLE_CBE_PRINTF_A
860 EXTRA_OPTIONS
861 BINUTILS_INCDIR
862 CXX
863 CXXFLAGS
864 ac_ct_CXX
865 NM
866 ifGNUmake
867 LN_S
868 CMP
869 CP
870 DATE
871 FIND
872 MKDIR
873 MV
874 RANLIB
875 RM
876 SED
877 TAR
878 BINPWD
879 GRAPHVIZ
880 DOT
881 GV
882 DOTTY
883 PERL
884 HAVE_PERL
885 INSTALL_PROGRAM
886 INSTALL_SCRIPT
887 INSTALL_DATA
888 BZIP2
889 DOXYGEN
890 GROFF
891 GZIP
892 POD2HTML
893 POD2MAN
894 RUNTEST
895 TCLSH
896 ZIP
897 OCAMLC
898 OCAMLOPT
899 OCAMLDEP
900 OCAMLDOC
901 GAS
902 INSTALL_LTDL_TRUE
903 INSTALL_LTDL_FALSE
904 CONVENIENCE_LTDL_TRUE
905 CONVENIENCE_LTDL_FALSE
906 LIBADD_DL
907 ECHO
908 AR
909 STRIP
910 CXXCPP
911 F77
912 FFLAGS
913 ac_ct_F77
914 LIBTOOL
915 LLVMGCC
916 LLVMGXX
917 USE_UDIS86
918 HAVE_PTHREAD
919 HUGE_VAL_SANITY
920 ALLOCA
921 MMAP_FILE
922 LLVMCC1
923 LLVMCC1PLUS
924 LLVMGCCDIR
925 LLVMGCCLIBEXEC
926 LLVMGCC_VERSION
927 LLVMGCC_MAJVERS
928 LLVMGCC_LANGS
929 SHLIBEXT
930 LLVM_PREFIX
931 LLVM_BINDIR
932 LLVM_LIBDIR
933 LLVM_DATADIR
934 LLVM_DOCSDIR
935 LLVM_ETCDIR
936 LLVM_INCLUDEDIR
937 LLVM_INFODIR
938 LLVM_MANDIR
939 LLVM_CONFIGTIME
940 BINDINGS_TO_BUILD
941 ALL_BINDINGS
942 OCAML_LIBDIR
943 ENABLE_VISIBILITY_INLINES_HIDDEN
944 RPATH
945 RDYNAMIC
946 LIBOBJS
947 LTLIBOBJS'
948 ac_subst_files=''
949       ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 LIBS
956 CPPFLAGS
957 CPP
958 CXX
959 CXXFLAGS
960 CCC
961 CXXCPP
962 F77
963 FFLAGS'
964 ac_subdirs_all='projects/sample
965 projects/privbracket
966 projects/llvm-stacker
967 projects/llvm-test
968 projects/test-suite
969 projects/llvm-reopt
970 projects/llvm-gcc
971 projects/llvm-java
972 projects/llvm-tv
973 projects/llvm-poolalloc
974 projects/poolalloc
975 projects/llvm-kernel'
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
996
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014 infodir='${datarootdir}/info'
1015 htmldir='${docdir}'
1016 dvidir='${docdir}'
1017 pdfdir='${docdir}'
1018 psdir='${docdir}'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1022
1023 ac_prev=
1024 ac_dashdash=
1025 for ac_option
1026 do
1027   # If the previous option needs an argument, assign it.
1028   if test -n "$ac_prev"; then
1029     eval $ac_prev=\$ac_option
1030     ac_prev=
1031     continue
1032   fi
1033
1034   case $ac_option in
1035   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036   *)    ac_optarg=yes ;;
1037   esac
1038
1039   # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041   case $ac_dashdash$ac_option in
1042   --)
1043     ac_dashdash=yes ;;
1044
1045   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046     ac_prev=bindir ;;
1047   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048     bindir=$ac_optarg ;;
1049
1050   -build | --build | --buil | --bui | --bu)
1051     ac_prev=build_alias ;;
1052   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053     build_alias=$ac_optarg ;;
1054
1055   -cache-file | --cache-file | --cache-fil | --cache-fi \
1056   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057     ac_prev=cache_file ;;
1058   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060     cache_file=$ac_optarg ;;
1061
1062   --config-cache | -C)
1063     cache_file=config.cache ;;
1064
1065   -datadir | --datadir | --datadi | --datad)
1066     ac_prev=datadir ;;
1067   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068     datadir=$ac_optarg ;;
1069
1070   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071   | --dataroo | --dataro | --datar)
1072     ac_prev=datarootdir ;;
1073   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075     datarootdir=$ac_optarg ;;
1076
1077   -disable-* | --disable-*)
1078     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
1085
1086   -docdir | --docdir | --docdi | --doc | --do)
1087     ac_prev=docdir ;;
1088   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089     docdir=$ac_optarg ;;
1090
1091   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092     ac_prev=dvidir ;;
1093   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094     dvidir=$ac_optarg ;;
1095
1096   -enable-* | --enable-*)
1097     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1103     eval enable_$ac_feature=\$ac_optarg ;;
1104
1105   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107   | --exec | --exe | --ex)
1108     ac_prev=exec_prefix ;;
1109   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111   | --exec=* | --exe=* | --ex=*)
1112     exec_prefix=$ac_optarg ;;
1113
1114   -gas | --gas | --ga | --g)
1115     # Obsolete; use --with-gas.
1116     with_gas=yes ;;
1117
1118   -help | --help | --hel | --he | -h)
1119     ac_init_help=long ;;
1120   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121     ac_init_help=recursive ;;
1122   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123     ac_init_help=short ;;
1124
1125   -host | --host | --hos | --ho)
1126     ac_prev=host_alias ;;
1127   -host=* | --host=* | --hos=* | --ho=*)
1128     host_alias=$ac_optarg ;;
1129
1130   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131     ac_prev=htmldir ;;
1132   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133   | --ht=*)
1134     htmldir=$ac_optarg ;;
1135
1136   -includedir | --includedir | --includedi | --included | --include \
1137   | --includ | --inclu | --incl | --inc)
1138     ac_prev=includedir ;;
1139   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140   | --includ=* | --inclu=* | --incl=* | --inc=*)
1141     includedir=$ac_optarg ;;
1142
1143   -infodir | --infodir | --infodi | --infod | --info | --inf)
1144     ac_prev=infodir ;;
1145   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146     infodir=$ac_optarg ;;
1147
1148   -libdir | --libdir | --libdi | --libd)
1149     ac_prev=libdir ;;
1150   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151     libdir=$ac_optarg ;;
1152
1153   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154   | --libexe | --libex | --libe)
1155     ac_prev=libexecdir ;;
1156   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157   | --libexe=* | --libex=* | --libe=*)
1158     libexecdir=$ac_optarg ;;
1159
1160   -localedir | --localedir | --localedi | --localed | --locale)
1161     ac_prev=localedir ;;
1162   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163     localedir=$ac_optarg ;;
1164
1165   -localstatedir | --localstatedir | --localstatedi | --localstated \
1166   | --localstate | --localstat | --localsta | --localst | --locals)
1167     ac_prev=localstatedir ;;
1168   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170     localstatedir=$ac_optarg ;;
1171
1172   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173     ac_prev=mandir ;;
1174   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175     mandir=$ac_optarg ;;
1176
1177   -nfp | --nfp | --nf)
1178     # Obsolete; use --without-fp.
1179     with_fp=no ;;
1180
1181   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182   | --no-cr | --no-c | -n)
1183     no_create=yes ;;
1184
1185   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187     no_recursion=yes ;;
1188
1189   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191   | --oldin | --oldi | --old | --ol | --o)
1192     ac_prev=oldincludedir ;;
1193   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196     oldincludedir=$ac_optarg ;;
1197
1198   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199     ac_prev=prefix ;;
1200   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201     prefix=$ac_optarg ;;
1202
1203   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204   | --program-pre | --program-pr | --program-p)
1205     ac_prev=program_prefix ;;
1206   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208     program_prefix=$ac_optarg ;;
1209
1210   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211   | --program-suf | --program-su | --program-s)
1212     ac_prev=program_suffix ;;
1213   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215     program_suffix=$ac_optarg ;;
1216
1217   -program-transform-name | --program-transform-name \
1218   | --program-transform-nam | --program-transform-na \
1219   | --program-transform-n | --program-transform- \
1220   | --program-transform | --program-transfor \
1221   | --program-transfo | --program-transf \
1222   | --program-trans | --program-tran \
1223   | --progr-tra | --program-tr | --program-t)
1224     ac_prev=program_transform_name ;;
1225   -program-transform-name=* | --program-transform-name=* \
1226   | --program-transform-nam=* | --program-transform-na=* \
1227   | --program-transform-n=* | --program-transform-=* \
1228   | --program-transform=* | --program-transfor=* \
1229   | --program-transfo=* | --program-transf=* \
1230   | --program-trans=* | --program-tran=* \
1231   | --progr-tra=* | --program-tr=* | --program-t=*)
1232     program_transform_name=$ac_optarg ;;
1233
1234   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235     ac_prev=pdfdir ;;
1236   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237     pdfdir=$ac_optarg ;;
1238
1239   -psdir | --psdir | --psdi | --psd | --ps)
1240     ac_prev=psdir ;;
1241   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242     psdir=$ac_optarg ;;
1243
1244   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245   | -silent | --silent | --silen | --sile | --sil)
1246     silent=yes ;;
1247
1248   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249     ac_prev=sbindir ;;
1250   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251   | --sbi=* | --sb=*)
1252     sbindir=$ac_optarg ;;
1253
1254   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256   | --sharedst | --shareds | --shared | --share | --shar \
1257   | --sha | --sh)
1258     ac_prev=sharedstatedir ;;
1259   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262   | --sha=* | --sh=*)
1263     sharedstatedir=$ac_optarg ;;
1264
1265   -site | --site | --sit)
1266     ac_prev=site ;;
1267   -site=* | --site=* | --sit=*)
1268     site=$ac_optarg ;;
1269
1270   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271     ac_prev=srcdir ;;
1272   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273     srcdir=$ac_optarg ;;
1274
1275   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276   | --syscon | --sysco | --sysc | --sys | --sy)
1277     ac_prev=sysconfdir ;;
1278   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280     sysconfdir=$ac_optarg ;;
1281
1282   -target | --target | --targe | --targ | --tar | --ta | --t)
1283     ac_prev=target_alias ;;
1284   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285     target_alias=$ac_optarg ;;
1286
1287   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288     verbose=yes ;;
1289
1290   -version | --version | --versio | --versi | --vers | -V)
1291     ac_init_version=: ;;
1292
1293   -with-* | --with-*)
1294     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297       { echo "$as_me: error: invalid package name: $ac_package" >&2
1298    { (exit 1); exit 1; }; }
1299     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1300     eval with_$ac_package=\$ac_optarg ;;
1301
1302   -without-* | --without-*)
1303     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306       { echo "$as_me: error: invalid package name: $ac_package" >&2
1307    { (exit 1); exit 1; }; }
1308     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1309     eval with_$ac_package=no ;;
1310
1311   --x)
1312     # Obsolete; use --with-x.
1313     with_x=yes ;;
1314
1315   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316   | --x-incl | --x-inc | --x-in | --x-i)
1317     ac_prev=x_includes ;;
1318   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320     x_includes=$ac_optarg ;;
1321
1322   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324     ac_prev=x_libraries ;;
1325   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327     x_libraries=$ac_optarg ;;
1328
1329   -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 Try \`$0 --help' for more information." >&2
1331    { (exit 1); exit 1; }; }
1332     ;;
1333
1334   *=*)
1335     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339    { (exit 1); exit 1; }; }
1340     eval $ac_envvar=\$ac_optarg
1341     export $ac_envvar ;;
1342
1343   *)
1344     # FIXME: should be removed in autoconf 3.0.
1345     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349     ;;
1350
1351   esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356   { echo "$as_me: error: missing argument to $ac_option" >&2
1357    { (exit 1); exit 1; }; }
1358 fi
1359
1360 # Be sure to have absolute directory names.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   case $ac_val in
1368     [\\/$]* | ?:[\\/]* )  continue;;
1369     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370   esac
1371   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372    { (exit 1); exit 1; }; }
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387     If a cross compiler is detected then cross compile mode will be used." >&2
1388   elif test "x$build_alias" != "x$host_alias"; then
1389     cross_compiling=yes
1390   fi
1391 fi
1392
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396 test "$silent" = yes && exec 6>/dev/null
1397
1398
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402   { echo "$as_me: error: Working directory cannot be determined" >&2
1403    { (exit 1); exit 1; }; }
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405   { echo "$as_me: error: pwd does not report name of working directory" >&2
1406    { (exit 1); exit 1; }; }
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411   ac_srcdir_defaulted=yes
1412   # Try the directory containing this script, then the parent directory.
1413   ac_confdir=`$as_dirname -- "$0" ||
1414 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415          X"$0" : 'X\(//\)[^/]' \| \
1416          X"$0" : 'X\(//\)$' \| \
1417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 echo X"$0" |
1419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)[^/].*/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\).*/{
1432             s//\1/
1433             q
1434           }
1435           s/.*/./; q'`
1436   srcdir=$ac_confdir
1437   if test ! -r "$srcdir/$ac_unique_file"; then
1438     srcdir=..
1439   fi
1440 else
1441   ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446    { (exit 1); exit 1; }; }
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451    { (exit 1); exit 1; }; }
1452         pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455   srcdir=.
1456 fi
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_env_${ac_var}_value=\$${ac_var}
1466   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1469
1470 #
1471 # Report the --help message.
1472 #
1473 if test "$ac_init_help" = "long"; then
1474   # Omit some internal or obsolete options to make the list less imposing.
1475   # This message is too long to be a string in the A/UX 3.1 sh.
1476   cat <<_ACEOF
1477 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1478
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE.  See below for descriptions of some of the useful variables.
1483
1484 Defaults for the options are specified in brackets.
1485
1486 Configuration:
1487   -h, --help              display this help and exit
1488       --help=short        display options specific to this package
1489       --help=recursive    display the short help of all the included packages
1490   -V, --version           display version information and exit
1491   -q, --quiet, --silent   do not print \`checking...' messages
1492       --cache-file=FILE   cache test results in FILE [disabled]
1493   -C, --config-cache      alias for \`--cache-file=config.cache'
1494   -n, --no-create         do not create output files
1495       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1496
1497 Installation directories:
1498   --prefix=PREFIX         install architecture-independent files in PREFIX
1499                           [$ac_default_prefix]
1500   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1501                           [PREFIX]
1502
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1507
1508 For better control, use the options below.
1509
1510 Fine tuning of the installation directories:
1511   --bindir=DIR           user executables [EPREFIX/bin]
1512   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1513   --libexecdir=DIR       program executables [EPREFIX/libexec]
1514   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1515   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1516   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1517   --libdir=DIR           object code libraries [EPREFIX/lib]
1518   --includedir=DIR       C header files [PREFIX/include]
1519   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1520   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1521   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1522   --infodir=DIR          info documentation [DATAROOTDIR/info]
1523   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1524   --mandir=DIR           man documentation [DATAROOTDIR/man]
1525   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1526   --htmldir=DIR          html documentation [DOCDIR]
1527   --dvidir=DIR           dvi documentation [DOCDIR]
1528   --pdfdir=DIR           pdf documentation [DOCDIR]
1529   --psdir=DIR            ps documentation [DOCDIR]
1530 _ACEOF
1531
1532   cat <<\_ACEOF
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542   case $ac_init_help in
1543      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1544    esac
1545   cat <<\_ACEOF
1546
1547 Optional Features:
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --enable-optimized
1551   --enable-profiling
1552   --enable-assertions
1553   --enable-expensive-checks
1554
1555   --enable-debug-runtime
1556   --enable-jit            Enable Just In Time Compiling (default is YES)
1557   --enable-doxygen        Build doxygen documentation (default is NO)
1558   --enable-threads        Use threads if available (default is YES)
1559   --enable-pic            Build LLVM with Position Independent Code (default
1560                           is YES)
1561   --enable-targets        Build specific host targets:
1562                           all,host-only,{target-name} (default=all)
1563   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1564                           %a (default is YES)
1565   --enable-bindings       Build specific language bindings:
1566                           all,auto,none,{binding-name} (default=auto)
1567   --enable-ltdl-install   install libltdl
1568   --enable-shared[=PKGS]  build shared libraries
1569                           [default=yes]
1570   --enable-static[=PKGS]  build static libraries
1571                           [default=yes]
1572   --enable-fast-install[=PKGS]
1573                           optimize for fast installation
1574                           [default=yes]
1575   --disable-libtool-lock  avoid locking (might break parallel builds)
1576
1577 Optional Packages:
1578   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1579   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1580   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1581                           searches PATH)
1582   --with-llvmgcc          Specify location of llvm-gcc driver (default
1583                           searches PATH)
1584   --with-llvmgxx          Specify location of llvm-g++ driver (default
1585                           searches PATH)
1586   --with-extra-options    Specify addtional options to compile LLVM with
1587   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1588                           is stdlib)
1589   --with-binutils-include Specify path to binutils/include/ containing
1590                           plugin-api.h file for gold plugin.
1591   --with-tclinclude       directory where tcl headers are
1592   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1593   --with-pic              try to use only PIC/non-PIC objects [default=use
1594                           both]
1595   --with-tags[=TAGS]      include additional configurations [automatic]
1596   --with-udis86=<path>    Use udis86 external x86 disassembler library
1597
1598 Some influential environment variables:
1599   CC          C compiler command
1600   CFLAGS      C compiler flags
1601   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1602               nonstandard directory <lib dir>
1603   LIBS        libraries to pass to the linker, e.g. -l<library>
1604   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1605               you have headers in a nonstandard directory <include dir>
1606   CPP         C preprocessor
1607   CXX         C++ compiler command
1608   CXXFLAGS    C++ compiler flags
1609   CXXCPP      C++ preprocessor
1610   F77         Fortran 77 compiler command
1611   FFLAGS      Fortran 77 compiler flags
1612
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1615
1616 Report bugs to <llvmbugs@cs.uiuc.edu>.
1617 _ACEOF
1618 ac_status=$?
1619 fi
1620
1621 if test "$ac_init_help" = "recursive"; then
1622   # If there are subdirs, report their specific --help.
1623   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624     test -d "$ac_dir" || continue
1625     ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1631   # A ".." for each directory in $ac_dir_suffix.
1632   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1633   case $ac_top_builddir_sub in
1634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636   esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644   .)  # We are building in place.
1645     ac_srcdir=.
1646     ac_top_srcdir=$ac_top_builddir_sub
1647     ac_abs_top_srcdir=$ac_pwd ;;
1648   [\\/]* | ?:[\\/]* )  # Absolute name.
1649     ac_srcdir=$srcdir$ac_dir_suffix;
1650     ac_top_srcdir=$srcdir
1651     ac_abs_top_srcdir=$srcdir ;;
1652   *) # Relative name.
1653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654     ac_top_srcdir=$ac_top_build_prefix$srcdir
1655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659     cd "$ac_dir" || { ac_status=$?; continue; }
1660     # Check for guested configure.
1661     if test -f "$ac_srcdir/configure.gnu"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664     elif test -f "$ac_srcdir/configure"; then
1665       echo &&
1666       $SHELL "$ac_srcdir/configure" --help=recursive
1667     else
1668       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669     fi || ac_status=$?
1670     cd "$ac_pwd" || { ac_status=$?; break; }
1671   done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676   cat <<\_ACEOF
1677 llvm configure 2.6svn
1678 generated by GNU Autoconf 2.61
1679
1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1681 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684
1685 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1686 _ACEOF
1687   exit
1688 fi
1689 cat >config.log <<_ACEOF
1690 This file contains any messages produced by compilers while
1691 running configure, to aid debugging if configure makes a mistake.
1692
1693 It was created by llvm $as_me 2.6svn, which was
1694 generated by GNU Autoconf 2.61.  Invocation command line was
1695
1696   $ $0 $@
1697
1698 _ACEOF
1699 exec 5>>config.log
1700 {
1701 cat <<_ASUNAME
1702 ## --------- ##
1703 ## Platform. ##
1704 ## --------- ##
1705
1706 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1707 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1708 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1709 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1710 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1711
1712 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1713 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1714
1715 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1716 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1717 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1718 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1719 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1720 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1721 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1722
1723 _ASUNAME
1724
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   echo "PATH: $as_dir"
1731 done
1732 IFS=$as_save_IFS
1733
1734 } >&5
1735
1736 cat >&5 <<_ACEOF
1737
1738
1739 ## ----------- ##
1740 ## Core tests. ##
1741 ## ----------- ##
1742
1743 _ACEOF
1744
1745
1746 # Keep a trace of the command line.
1747 # Strip out --no-create and --no-recursion so they do not pile up.
1748 # Strip out --silent because we don't want to record it for future runs.
1749 # Also quote any args containing shell meta-characters.
1750 # Make two passes to allow for proper duplicate-argument suppression.
1751 ac_configure_args=
1752 ac_configure_args0=
1753 ac_configure_args1=
1754 ac_must_keep_next=false
1755 for ac_pass in 1 2
1756 do
1757   for ac_arg
1758   do
1759     case $ac_arg in
1760     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1761     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1762     | -silent | --silent | --silen | --sile | --sil)
1763       continue ;;
1764     *\'*)
1765       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766     esac
1767     case $ac_pass in
1768     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769     2)
1770       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1771       if test $ac_must_keep_next = true; then
1772         ac_must_keep_next=false # Got value, back to normal.
1773       else
1774         case $ac_arg in
1775           *=* | --config-cache | -C | -disable-* | --disable-* \
1776           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1777           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1778           | -with-* | --with-* | -without-* | --without-* | --x)
1779             case "$ac_configure_args0 " in
1780               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781             esac
1782             ;;
1783           -* ) ac_must_keep_next=true ;;
1784         esac
1785       fi
1786       ac_configure_args="$ac_configure_args '$ac_arg'"
1787       ;;
1788     esac
1789   done
1790 done
1791 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1792 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793
1794 # When interrupted or exit'd, cleanup temporary files, and complete
1795 # config.log.  We remove comments because anyway the quotes in there
1796 # would cause problems or look ugly.
1797 # WARNING: Use '\'' to represent an apostrophe within the trap.
1798 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1799 trap 'exit_status=$?
1800   # Save into config.log some information that might help in debugging.
1801   {
1802     echo
1803
1804     cat <<\_ASBOX
1805 ## ---------------- ##
1806 ## Cache variables. ##
1807 ## ---------------- ##
1808 _ASBOX
1809     echo
1810     # The following way of writing the cache mishandles newlines in values,
1811 (
1812   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1813     eval ac_val=\$$ac_var
1814     case $ac_val in #(
1815     *${as_nl}*)
1816       case $ac_var in #(
1817       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1818 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1819       esac
1820       case $ac_var in #(
1821       _ | IFS | as_nl) ;; #(
1822       *) $as_unset $ac_var ;;
1823       esac ;;
1824     esac
1825   done
1826   (set) 2>&1 |
1827     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1828     *${as_nl}ac_space=\ *)
1829       sed -n \
1830         "s/'\''/'\''\\\\'\'''\''/g;
1831           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1832       ;; #(
1833     *)
1834       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1835       ;;
1836     esac |
1837     sort
1838 )
1839     echo
1840
1841     cat <<\_ASBOX
1842 ## ----------------- ##
1843 ## Output variables. ##
1844 ## ----------------- ##
1845 _ASBOX
1846     echo
1847     for ac_var in $ac_subst_vars
1848     do
1849       eval ac_val=\$$ac_var
1850       case $ac_val in
1851       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852       esac
1853       echo "$ac_var='\''$ac_val'\''"
1854     done | sort
1855     echo
1856
1857     if test -n "$ac_subst_files"; then
1858       cat <<\_ASBOX
1859 ## ------------------- ##
1860 ## File substitutions. ##
1861 ## ------------------- ##
1862 _ASBOX
1863       echo
1864       for ac_var in $ac_subst_files
1865       do
1866         eval ac_val=\$$ac_var
1867         case $ac_val in
1868         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869         esac
1870         echo "$ac_var='\''$ac_val'\''"
1871       done | sort
1872       echo
1873     fi
1874
1875     if test -s confdefs.h; then
1876       cat <<\_ASBOX
1877 ## ----------- ##
1878 ## confdefs.h. ##
1879 ## ----------- ##
1880 _ASBOX
1881       echo
1882       cat confdefs.h
1883       echo
1884     fi
1885     test "$ac_signal" != 0 &&
1886       echo "$as_me: caught signal $ac_signal"
1887     echo "$as_me: exit $exit_status"
1888   } >&5
1889   rm -f core *.core core.conftest.* &&
1890     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1891     exit $exit_status
1892 ' 0
1893 for ac_signal in 1 2 13 15; do
1894   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1895 done
1896 ac_signal=0
1897
1898 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1899 rm -f -r conftest* confdefs.h
1900
1901 # Predefined preprocessor variables.
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_NAME "$PACKAGE_NAME"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1915 _ACEOF
1916
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_STRING "$PACKAGE_STRING"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1925 _ACEOF
1926
1927
1928 # Let the site file select an alternate cache file if it wants to.
1929 # Prefer explicitly selected file to automatically selected ones.
1930 if test -n "$CONFIG_SITE"; then
1931   set x "$CONFIG_SITE"
1932 elif test "x$prefix" != xNONE; then
1933   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1934 else
1935   set x "$ac_default_prefix/share/config.site" \
1936         "$ac_default_prefix/etc/config.site"
1937 fi
1938 shift
1939 for ac_site_file
1940 do
1941   if test -r "$ac_site_file"; then
1942     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1943 echo "$as_me: loading site script $ac_site_file" >&6;}
1944     sed 's/^/| /' "$ac_site_file" >&5
1945     . "$ac_site_file"
1946   fi
1947 done
1948
1949 if test -r "$cache_file"; then
1950   # Some versions of bash will fail to source /dev/null (special
1951   # files actually), so we avoid doing that.
1952   if test -f "$cache_file"; then
1953     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1954 echo "$as_me: loading cache $cache_file" >&6;}
1955     case $cache_file in
1956       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957       *)                      . "./$cache_file";;
1958     esac
1959   fi
1960 else
1961   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1962 echo "$as_me: creating cache $cache_file" >&6;}
1963   >$cache_file
1964 fi
1965
1966 # Check that the precious variables saved in the cache have kept the same
1967 # value.
1968 ac_cache_corrupted=false
1969 for ac_var in $ac_precious_vars; do
1970   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971   eval ac_new_set=\$ac_env_${ac_var}_set
1972   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973   eval ac_new_val=\$ac_env_${ac_var}_value
1974   case $ac_old_set,$ac_new_set in
1975     set,)
1976       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978       ac_cache_corrupted=: ;;
1979     ,set)
1980       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982       ac_cache_corrupted=: ;;
1983     ,);;
1984     *)
1985       if test "x$ac_old_val" != "x$ac_new_val"; then
1986         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1989 echo "$as_me:   former value:  $ac_old_val" >&2;}
1990         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1991 echo "$as_me:   current value: $ac_new_val" >&2;}
1992         ac_cache_corrupted=:
1993       fi;;
1994   esac
1995   # Pass precious variables to config.status.
1996   if test "$ac_new_set" = set; then
1997     case $ac_new_val in
1998     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1999     *) ac_arg=$ac_var=$ac_new_val ;;
2000     esac
2001     case " $ac_configure_args " in
2002       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2003       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2004     esac
2005   fi
2006 done
2007 if $ac_cache_corrupted; then
2008   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2009 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2011 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2012    { (exit 1); exit 1; }; }
2013 fi
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039 ac_ext=c
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044
2045
2046
2047 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2048
2049
2050
2051
2052
2053
2054
2055 ac_aux_dir=
2056 for ac_dir in autoconf "$srcdir"/autoconf; do
2057   if test -f "$ac_dir/install-sh"; then
2058     ac_aux_dir=$ac_dir
2059     ac_install_sh="$ac_aux_dir/install-sh -c"
2060     break
2061   elif test -f "$ac_dir/install.sh"; then
2062     ac_aux_dir=$ac_dir
2063     ac_install_sh="$ac_aux_dir/install.sh -c"
2064     break
2065   elif test -f "$ac_dir/shtool"; then
2066     ac_aux_dir=$ac_dir
2067     ac_install_sh="$ac_aux_dir/shtool install -c"
2068     break
2069   fi
2070 done
2071 if test -z "$ac_aux_dir"; then
2072   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2073 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2074    { (exit 1); exit 1; }; }
2075 fi
2076
2077 # These three variables are undocumented and unsupported,
2078 # and are intended to be withdrawn in a future Autoconf release.
2079 # They can cause serious problems if a builder's source tree is in a directory
2080 # whose full name contains unusual characters.
2081 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2082 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2083 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2084
2085
2086
2087 if test ${srcdir} != "." ; then
2088   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2089     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2090 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2091    { (exit 1); exit 1; }; }
2092   fi
2093 fi
2094
2095 for i in `ls ${srcdir}/projects`
2096 do
2097   if test -d ${srcdir}/projects/${i} ; then
2098     case ${i} in
2099       CVS) ;;
2100       sample)       subdirs="$subdirs projects/sample"
2101     ;;
2102       privbracket)  subdirs="$subdirs projects/privbracket"
2103  ;;
2104       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2105  ;;
2106       # llvm-test is the old name of the test-suite, kept here for backwards
2107       # compatibility
2108       llvm-test)    subdirs="$subdirs projects/llvm-test"
2109  ;;
2110       test-suite)   subdirs="$subdirs projects/test-suite"
2111  ;;
2112       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2113 ;;
2114       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2115   ;;
2116       llvm-java)    subdirs="$subdirs projects/llvm-java"
2117  ;;
2118       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2119    ;;
2120       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2121  ;;
2122       poolalloc)    subdirs="$subdirs projects/poolalloc"
2123  ;;
2124       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2125  ;;
2126       *)
2127         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2128 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2129         ;;
2130     esac
2131   fi
2132 done
2133
2134
2135 # Make sure we can run config.sub.
2136 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2137   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2138 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2139    { (exit 1); exit 1; }; }
2140
2141 { echo "$as_me:$LINENO: checking build system type" >&5
2142 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_build+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   ac_build_alias=$build_alias
2147 test "x$ac_build_alias" = x &&
2148   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2149 test "x$ac_build_alias" = x &&
2150   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152    { (exit 1); exit 1; }; }
2153 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2154   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2156    { (exit 1); exit 1; }; }
2157
2158 fi
2159 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160 echo "${ECHO_T}$ac_cv_build" >&6; }
2161 case $ac_cv_build in
2162 *-*-*) ;;
2163 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2164 echo "$as_me: error: invalid value of canonical build" >&2;}
2165    { (exit 1); exit 1; }; };;
2166 esac
2167 build=$ac_cv_build
2168 ac_save_IFS=$IFS; IFS='-'
2169 set x $ac_cv_build
2170 shift
2171 build_cpu=$1
2172 build_vendor=$2
2173 shift; shift
2174 # Remember, the first character of IFS is used to create $*,
2175 # except with old shells:
2176 build_os=$*
2177 IFS=$ac_save_IFS
2178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179
2180
2181 { echo "$as_me:$LINENO: checking host system type" >&5
2182 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2183 if test "${ac_cv_host+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test "x$host_alias" = x; then
2187   ac_cv_host=$ac_cv_build
2188 else
2189   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2190     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2191 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2192    { (exit 1); exit 1; }; }
2193 fi
2194
2195 fi
2196 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197 echo "${ECHO_T}$ac_cv_host" >&6; }
2198 case $ac_cv_host in
2199 *-*-*) ;;
2200 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2201 echo "$as_me: error: invalid value of canonical host" >&2;}
2202    { (exit 1); exit 1; }; };;
2203 esac
2204 host=$ac_cv_host
2205 ac_save_IFS=$IFS; IFS='-'
2206 set x $ac_cv_host
2207 shift
2208 host_cpu=$1
2209 host_vendor=$2
2210 shift; shift
2211 # Remember, the first character of IFS is used to create $*,
2212 # except with old shells:
2213 host_os=$*
2214 IFS=$ac_save_IFS
2215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216
2217
2218 { echo "$as_me:$LINENO: checking target system type" >&5
2219 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2220 if test "${ac_cv_target+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test "x$target_alias" = x; then
2224   ac_cv_target=$ac_cv_host
2225 else
2226   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2227     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2228 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231
2232 fi
2233 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234 echo "${ECHO_T}$ac_cv_target" >&6; }
2235 case $ac_cv_target in
2236 *-*-*) ;;
2237 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2238 echo "$as_me: error: invalid value of canonical target" >&2;}
2239    { (exit 1); exit 1; }; };;
2240 esac
2241 target=$ac_cv_target
2242 ac_save_IFS=$IFS; IFS='-'
2243 set x $ac_cv_target
2244 shift
2245 target_cpu=$1
2246 target_vendor=$2
2247 shift; shift
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2250 target_os=$*
2251 IFS=$ac_save_IFS
2252 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253
2254
2255 # The aliases save the names the user supplied, while $host etc.
2256 # will get canonicalized.
2257 test -n "$target_alias" &&
2258   test "$program_prefix$program_suffix$program_transform_name" = \
2259     NONENONEs,x,x, &&
2260   program_prefix=${target_alias}-
2261
2262 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2263 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2264 if test "${llvm_cv_os_type+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   case $host in
2268   *-*-aix*)
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="AIX"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-irix*)
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="IRIX"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-cygwin*)
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="Cygwin"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-darwin*)
2284     llvm_cv_link_all_option="-Wl,-all_load"
2285     llvm_cv_no_link_all_option="-Wl,-noall_load"
2286     llvm_cv_os_type="Darwin"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-freebsd*)
2289     llvm_cv_link_all_option="-Wl,--whole-archive"
2290     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291     llvm_cv_os_type="FreeBSD"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-openbsd*)
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="OpenBSD"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-netbsd*)
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="NetBSD"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-dragonfly*)
2304     llvm_cv_link_all_option="-Wl,--whole-archive"
2305     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306     llvm_cv_os_type="DragonFly"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-hpux*)
2309     llvm_cv_link_all_option="-Wl,--whole-archive"
2310     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311     llvm_cv_os_type="HP-UX"
2312     llvm_cv_platform_type="Unix" ;;
2313   *-*-interix*)
2314     llvm_cv_link_all_option="-Wl,--whole-archive"
2315     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316     llvm_cv_os_type="Interix"
2317     llvm_cv_platform_type="Unix" ;;
2318   *-*-linux*)
2319     llvm_cv_link_all_option="-Wl,--whole-archive"
2320     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321     llvm_cv_os_type="Linux"
2322     llvm_cv_platform_type="Unix" ;;
2323   *-*-solaris*)
2324     llvm_cv_link_all_option="-Wl,-z,allextract"
2325     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2326     llvm_cv_os_type="SunOS"
2327     llvm_cv_platform_type="Unix" ;;
2328   *-*-win32*)
2329     llvm_cv_link_all_option="-Wl,--whole-archive"
2330     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331     llvm_cv_os_type="Win32"
2332     llvm_cv_platform_type="Win32" ;;
2333   *-*-mingw*)
2334     llvm_cv_link_all_option="-Wl,--whole-archive"
2335     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336     llvm_cv_os_type="MingW"
2337     llvm_cv_platform_type="Win32" ;;
2338   *)
2339     llvm_cv_link_all_option=""
2340     llvm_cv_no_link_all_option=""
2341     llvm_cv_os_type="Unknown"
2342     llvm_cv_platform_type="Unknown" ;;
2343 esac
2344 fi
2345 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2346 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2347
2348 if test "$llvm_cv_os_type" = "Unknown" ; then
2349   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2350 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354 OS=$llvm_cv_os_type
2355
2356
2357 LINKALL=$llvm_cv_link_all_option
2358
2359 NOLINKALL=$llvm_cv_no_link_all_option
2360
2361
2362 case $llvm_cv_platform_type in
2363   Unix)
2364
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_UNIX 1
2367 _ACEOF
2368
2369     LLVM_ON_UNIX=1
2370
2371     LLVM_ON_WIN32=0
2372
2373     ;;
2374   Win32)
2375
2376 cat >>confdefs.h <<\_ACEOF
2377 #define LLVM_ON_WIN32 1
2378 _ACEOF
2379
2380     LLVM_ON_UNIX=0
2381
2382     LLVM_ON_WIN32=1
2383
2384     ;;
2385 esac
2386
2387 { echo "$as_me:$LINENO: checking target architecture" >&5
2388 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2389 if test "${llvm_cv_target_arch+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   case $target in
2393   i?86-*)                 llvm_cv_target_arch="x86" ;;
2394   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2395   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2396   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2397   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2398   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2399   arm-*)                  llvm_cv_target_arch="ARM" ;;
2400   mips-*)                 llvm_cv_target_arch="Mips" ;;
2401   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2402   xcore-*)                llvm_cv_target_arch="XCore" ;;
2403   *)                      llvm_cv_target_arch="Unknown" ;;
2404 esac
2405 fi
2406 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2407 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2408
2409 if test "$llvm_cv_target_arch" = "Unknown" ; then
2410   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2411 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2412 fi
2413
2414 ARCH=$llvm_cv_target_arch
2415
2416
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   if test -n "$CC"; then
2431   ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   for ac_exec_ext in '' $ac_executable_extensions; do
2439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452   { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2454 else
2455   { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_CC"; then
2462   ac_ct_CC=$CC
2463   # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$ac_ct_CC"; then
2471   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_ac_ct_CC="gcc"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499   if test "x$ac_ct_CC" = x; then
2500     CC=""
2501   else
2502     case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet.  If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512     CC=$ac_ct_CC
2513   fi
2514 else
2515   CC="$ac_cv_prog_CC"
2516 fi
2517
2518 if test -z "$CC"; then
2519           if test -n "$ac_tool_prefix"; then
2520     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$CC"; then
2528   ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_CC="${ac_tool_prefix}cc"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549   { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557   fi
2558 fi
2559 if test -z "$CC"; then
2560   # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   if test -n "$CC"; then
2568   ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570   ac_prog_rejected=no
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579        ac_prog_rejected=yes
2580        continue
2581      fi
2582     ac_cv_prog_CC="cc"
2583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 if test $ac_prog_rejected = yes; then
2591   # We found a bogon in the path, so make sure we never use it.
2592   set dummy $ac_cv_prog_CC
2593   shift
2594   if test $# != 0; then
2595     # We chose a different compiler from the bogus one.
2596     # However, it has the same basename, so the bogon will be chosen
2597     # first if we set CC to just the basename; use the full file name.
2598     shift
2599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600   fi
2601 fi
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606   { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609   { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$CC"; then
2616   if test -n "$ac_tool_prefix"; then
2617   for ac_prog in cl.exe
2618   do
2619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651   { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656     test -n "$CC" && break
2657   done
2658 fi
2659 if test -z "$CC"; then
2660   ac_ct_CC=$CC
2661   for ac_prog in cl.exe
2662 do
2663   # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   if test -n "$ac_ct_CC"; then
2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678   for ac_exec_ext in '' $ac_executable_extensions; do
2679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680     ac_cv_prog_ac_ct_CC="$ac_prog"
2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 else
2695   { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700   test -n "$ac_ct_CC" && break
2701 done
2702
2703   if test "x$ac_ct_CC" = x; then
2704     CC=""
2705   else
2706     case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet.  If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet.  If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716     CC=$ac_ct_CC
2717   fi
2718 fi
2719
2720 fi
2721
2722
2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details." >&2;}
2727    { (exit 1); exit 1; }; }
2728
2729 # Provide some information about the compiler.
2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (ac_try="$ac_compiler --version >&5"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compiler --version >&5") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_compiler -v >&5") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }
2752 { (ac_try="$ac_compiler -V >&5"
2753 case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_compiler -V >&5") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }
2762
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2782 # of exeext.
2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786 #
2787 # List of possible output files, starting from the most likely.
2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789 # only as a last resort.  b.out is created by i960 compilers.
2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791 #
2792 # The IRIX 6 linker writes into existing files which may not be
2793 # executable, retaining their permissions.  Remove them first so a
2794 # subsequent execution test works.
2795 ac_rmfiles=
2796 for ac_file in $ac_files
2797 do
2798   case $ac_file in
2799     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801   esac
2802 done
2803 rm -f $ac_rmfiles
2804
2805 if { (ac_try="$ac_link_default"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_link_default") 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; then
2815   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2819 # Autoconf.
2820 for ac_file in $ac_files ''
2821 do
2822   test -f "$ac_file" || continue
2823   case $ac_file in
2824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825         ;;
2826     [ab].out )
2827         # We found the default executable, but exeext='' is most
2828         # certainly right.
2829         break;;
2830     *.* )
2831         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832         then :; else
2833            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834         fi
2835         # We set ac_cv_exeext here because the later test for it is not
2836         # safe: cross compilers may not add the suffix if given an `-o'
2837         # argument, so we may need to know it at that point already.
2838         # Even if this section looks crufty: it has the advantage of
2839         # actually working.
2840         break;;
2841     * )
2842         break;;
2843   esac
2844 done
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
2847 else
2848   ac_file=''
2849 fi
2850
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861    { (exit 77); exit 77; }; }
2862 fi
2863
2864 ac_exeext=$ac_cv_exeext
2865
2866 # Check that the compiler produces executables we can run.  If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873   if { ac_try='./$ac_file'
2874   { (case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_try") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883     cross_compiling=no
2884   else
2885     if test "$cross_compiling" = maybe; then
2886         cross_compiling=yes
2887     else
2888         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&2;}
2894    { (exit 1); exit 1; }; }
2895     fi
2896   fi
2897 fi
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2900
2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 # Check that the compiler produces executables we can run.  If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908 echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912 if { (ac_try="$ac_link"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_link") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; then
2922   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
2925 # `rm'.
2926 for ac_file in conftest.exe conftest conftest.*; do
2927   test -f "$ac_file" || continue
2928   case $ac_file in
2929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931           break;;
2932     * ) break;;
2933   esac
2934 done
2935 else
2936   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940    { (exit 1); exit 1; }; }
2941 fi
2942
2943 rm -f conftest$ac_cv_exeext
2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2949 ac_exeext=$EXEEXT
2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961
2962 int
2963 main ()
2964 {
2965
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_compile") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; then
2981   for ac_file in conftest.o conftest.obj conftest.*; do
2982   test -f "$ac_file" || continue;
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986        break;;
2987   esac
2988 done
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997    { (exit 1); exit 1; }; }
2998 fi
2999
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 fi
3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3005 ac_objext=$OBJEXT
3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009   echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 int
3019 main ()
3020 {
3021 #ifndef __GNUC__
3022        choke me
3023 #endif
3024
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_compile") 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } && {
3043          test -z "$ac_c_werror_flag" ||
3044          test ! -s conftest.err
3045        } && test -s conftest.$ac_objext; then
3046   ac_compiler_gnu=yes
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051         ac_compiler_gnu=no
3052 fi
3053
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057 fi
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   ac_save_c_werror_flag=$ac_c_werror_flag
3069    ac_c_werror_flag=yes
3070    ac_cv_prog_cc_g=no
3071    CFLAGS="-g"
3072    cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_compile") 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } && {
3101          test -z "$ac_c_werror_flag" ||
3102          test ! -s conftest.err
3103        } && test -s conftest.$ac_objext; then
3104   ac_cv_prog_cc_g=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         CFLAGS=""
3110       cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } && {
3139          test -z "$ac_c_werror_flag" ||
3140          test ! -s conftest.err
3141        } && test -s conftest.$ac_objext; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         ac_c_werror_flag=$ac_save_c_werror_flag
3148          CFLAGS="-g"
3149          cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compile") 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } && {
3178          test -z "$ac_c_werror_flag" ||
3179          test ! -s conftest.err
3180        } && test -s conftest.$ac_objext; then
3181   ac_cv_prog_cc_g=yes
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196    ac_c_werror_flag=$ac_save_c_werror_flag
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201   CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203   if test "$GCC" = yes; then
3204     CFLAGS="-g -O2"
3205   else
3206     CFLAGS="-g"
3207   fi
3208 else
3209   if test "$GCC" = yes; then
3210     CFLAGS="-O2"
3211   else
3212     CFLAGS=
3213   fi
3214 fi
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   ac_cv_prog_cc_c89=no
3221 ac_save_CC=$CC
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #include <stdarg.h>
3229 #include <stdio.h>
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3236      char **p;
3237      int i;
3238 {
3239   return p[i];
3240 }
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3242 {
3243   char *s;
3244   va_list v;
3245   va_start (v,p);
3246   s = g (p, va_arg (v,int));
3247   va_end (v);
3248   return s;
3249 }
3250
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3252    function prototypes and stuff, but not '\xHH' hex character constants.
3253    These don't provoke an error unfortunately, instead are silently treated
3254    as 'x'.  The following induces an error, until -std is added to get
3255    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3256    array size at least.  It's necessary to write '\x00'==0 to get something
3257    that's true only with -std.  */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261    inside strings and character constants.  */
3262 #define FOO(x) 'x'
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269 int argc;
3270 char **argv;
3271 int
3272 main ()
3273 {
3274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 do
3282   CC="$ac_save_CC $ac_arg"
3283   rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } && {
3297          test -z "$ac_c_werror_flag" ||
3298          test ! -s conftest.err
3299        } && test -s conftest.$ac_objext; then
3300   ac_cv_prog_cc_c89=$ac_arg
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306 fi
3307
3308 rm -f core conftest.err conftest.$ac_objext
3309   test "x$ac_cv_prog_cc_c89" != "xno" && break
3310 done
3311 rm -f conftest.$ac_ext
3312 CC=$ac_save_CC
3313
3314 fi
3315 # AC_CACHE_VAL
3316 case "x$ac_cv_prog_cc_c89" in
3317   x)
3318     { echo "$as_me:$LINENO: result: none needed" >&5
3319 echo "${ECHO_T}none needed" >&6; } ;;
3320   xno)
3321     { echo "$as_me:$LINENO: result: unsupported" >&5
3322 echo "${ECHO_T}unsupported" >&6; } ;;
3323   *)
3324     CC="$CC $ac_cv_prog_cc_c89"
3325     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3327 esac
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3346   CPP=
3347 fi
3348 if test -z "$CPP"; then
3349   if test "${ac_cv_prog_CPP+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352       # Double quotes because CPP needs to be expanded
3353     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3354     do
3355       ac_preproc_ok=false
3356 for ac_c_preproc_warn_flag in '' yes
3357 do
3358   # Use a header file that comes with gcc, so configuring glibc
3359   # with a fresh cross-compiler works.
3360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361   # <limits.h> exists even on freestanding compilers.
3362   # On the NeXT, cc -E runs the code through the compiler's parser,
3363   # not just through cpp. "Syntax error" is here to catch this case.
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 #ifdef __STDC__
3371 # include <limits.h>
3372 #else
3373 # include <assert.h>
3374 #endif
3375                      Syntax error
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null && {
3390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391          test ! -s conftest.err
3392        }; then
3393   :
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398   # Broken: fails on valid input.
3399 continue
3400 fi
3401
3402 rm -f conftest.err conftest.$ac_ext
3403
3404   # OK, works on sane cases.  Now check whether nonexistent headers
3405   # can be detected and how.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ac_nonexistent.h>
3413 _ACEOF
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421   ac_status=$?
3422   grep -v '^ *+' conftest.er1 >conftest.err
3423   rm -f conftest.er1
3424   cat conftest.err >&5
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } >/dev/null && {
3427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428          test ! -s conftest.err
3429        }; then
3430   # Broken: success on invalid input.
3431 continue
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436   # Passes both tests.
3437 ac_preproc_ok=:
3438 break
3439 fi
3440
3441 rm -f conftest.err conftest.$ac_ext
3442
3443 done
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3447   break
3448 fi
3449
3450     done
3451     ac_cv_prog_CPP=$CPP
3452
3453 fi
3454   CPP=$ac_cv_prog_CPP
3455 else
3456   ac_cv_prog_CPP=$CPP
3457 fi
3458 { echo "$as_me:$LINENO: result: $CPP" >&5
3459 echo "${ECHO_T}$CPP" >&6; }
3460 ac_preproc_ok=false
3461 for ac_c_preproc_warn_flag in '' yes
3462 do
3463   # Use a header file that comes with gcc, so configuring glibc
3464   # with a fresh cross-compiler works.
3465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3466   # <limits.h> exists even on freestanding compilers.
3467   # On the NeXT, cc -E runs the code through the compiler's parser,
3468   # not just through cpp. "Syntax error" is here to catch this case.
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 #ifdef __STDC__
3476 # include <limits.h>
3477 #else
3478 # include <assert.h>
3479 #endif
3480                      Syntax error
3481 _ACEOF
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } >/dev/null && {
3495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496          test ! -s conftest.err
3497        }; then
3498   :
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   # Broken: fails on valid input.
3504 continue
3505 fi
3506
3507 rm -f conftest.err conftest.$ac_ext
3508
3509   # OK, works on sane cases.  Now check whether nonexistent headers
3510   # can be detected and how.
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null && {
3532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533          test ! -s conftest.err
3534        }; then
3535   # Broken: success on invalid input.
3536 continue
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541   # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3545
3546 rm -f conftest.err conftest.$ac_ext
3547
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3552   :
3553 else
3554   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3555 See \`config.log' for more details." >&5
3556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&2;}
3558    { (exit 1); exit 1; }; }
3559 fi
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567
3568 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3569 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3570 if test "${ac_cv_path_GREP+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   # Extract the first word of "grep ggrep" to use in msg output
3574 if test -z "$GREP"; then
3575 set dummy grep ggrep; ac_prog_name=$2
3576 if test "${ac_cv_path_GREP+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   ac_path_GREP_found=false
3580 # Loop through the user's path and test for each of PROGNAME-LIST
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_prog in grep ggrep; do
3587   for ac_exec_ext in '' $ac_executable_extensions; do
3588     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3589     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3590     # Check for GNU ac_path_GREP and select it if it is found.
3591   # Check for GNU $ac_path_GREP
3592 case `"$ac_path_GREP" --version 2>&1` in
3593 *GNU*)
3594   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3595 *)
3596   ac_count=0
3597   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3598   while :
3599   do
3600     cat "conftest.in" "conftest.in" >"conftest.tmp"
3601     mv "conftest.tmp" "conftest.in"
3602     cp "conftest.in" "conftest.nl"
3603     echo 'GREP' >> "conftest.nl"
3604     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606     ac_count=`expr $ac_count + 1`
3607     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3608       # Best one so far, save it but keep looking for a better one
3609       ac_cv_path_GREP="$ac_path_GREP"
3610       ac_path_GREP_max=$ac_count
3611     fi
3612     # 10*(2^10) chars as input seems more than enough
3613     test $ac_count -gt 10 && break
3614   done
3615   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616 esac
3617
3618
3619     $ac_path_GREP_found && break 3
3620   done
3621 done
3622
3623 done
3624 IFS=$as_save_IFS
3625
3626
3627 fi
3628
3629 GREP="$ac_cv_path_GREP"
3630 if test -z "$GREP"; then
3631   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3632 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3633    { (exit 1); exit 1; }; }
3634 fi
3635
3636 else
3637   ac_cv_path_GREP=$GREP
3638 fi
3639
3640
3641 fi
3642 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3643 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3644  GREP="$ac_cv_path_GREP"
3645
3646
3647 { echo "$as_me:$LINENO: checking for egrep" >&5
3648 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_EGREP+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3653    then ac_cv_path_EGREP="$GREP -E"
3654    else
3655      # Extract the first word of "egrep" to use in msg output
3656 if test -z "$EGREP"; then
3657 set dummy egrep; ac_prog_name=$2
3658 if test "${ac_cv_path_EGREP+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   ac_path_EGREP_found=false
3662 # Loop through the user's path and test for each of PROGNAME-LIST
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_prog in egrep; do
3669   for ac_exec_ext in '' $ac_executable_extensions; do
3670     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3671     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3672     # Check for GNU ac_path_EGREP and select it if it is found.
3673   # Check for GNU $ac_path_EGREP
3674 case `"$ac_path_EGREP" --version 2>&1` in
3675 *GNU*)
3676   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3677 *)
3678   ac_count=0
3679   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3680   while :
3681   do
3682     cat "conftest.in" "conftest.in" >"conftest.tmp"
3683     mv "conftest.tmp" "conftest.in"
3684     cp "conftest.in" "conftest.nl"
3685     echo 'EGREP' >> "conftest.nl"
3686     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3687     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3688     ac_count=`expr $ac_count + 1`
3689     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3690       # Best one so far, save it but keep looking for a better one
3691       ac_cv_path_EGREP="$ac_path_EGREP"
3692       ac_path_EGREP_max=$ac_count
3693     fi
3694     # 10*(2^10) chars as input seems more than enough
3695     test $ac_count -gt 10 && break
3696   done
3697   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3698 esac
3699
3700
3701     $ac_path_EGREP_found && break 3
3702   done
3703 done
3704
3705 done
3706 IFS=$as_save_IFS
3707
3708
3709 fi
3710
3711 EGREP="$ac_cv_path_EGREP"
3712 if test -z "$EGREP"; then
3713   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3714 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3715    { (exit 1); exit 1; }; }
3716 fi
3717
3718 else
3719   ac_cv_path_EGREP=$EGREP
3720 fi
3721
3722
3723    fi
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3727  EGREP="$ac_cv_path_EGREP"
3728
3729
3730 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3731 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3732 if test "${ac_cv_header_stdc+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741 #include <stdlib.h>
3742 #include <stdarg.h>
3743 #include <string.h>
3744 #include <float.h>
3745
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758   *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761   (eval "$ac_compile") 2>conftest.er1
3762   ac_status=$?
3763   grep -v '^ *+' conftest.er1 >conftest.err
3764   rm -f conftest.er1
3765   cat conftest.err >&5
3766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767   (exit $ac_status); } && {
3768          test -z "$ac_c_werror_flag" ||
3769          test ! -s conftest.err
3770        } && test -s conftest.$ac_objext; then
3771   ac_cv_header_stdc=yes
3772 else
3773   echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776         ac_cv_header_stdc=no
3777 fi
3778
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780
3781 if test $ac_cv_header_stdc = yes; then
3782   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3783   cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789 #include <string.h>
3790
3791 _ACEOF
3792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793   $EGREP "memchr" >/dev/null 2>&1; then
3794   :
3795 else
3796   ac_cv_header_stdc=no
3797 fi
3798 rm -f conftest*
3799
3800 fi
3801
3802 if test $ac_cv_header_stdc = yes; then
3803   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3804   cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h.  */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h.  */
3810 #include <stdlib.h>
3811
3812 _ACEOF
3813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814   $EGREP "free" >/dev/null 2>&1; then
3815   :
3816 else
3817   ac_cv_header_stdc=no
3818 fi
3819 rm -f conftest*
3820
3821 fi
3822
3823 if test $ac_cv_header_stdc = yes; then
3824   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3825   if test "$cross_compiling" = yes; then
3826   :
3827 else
3828   cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h.  */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h.  */
3834 #include <ctype.h>
3835 #include <stdlib.h>
3836 #if ((' ' & 0x0FF) == 0x020)
3837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3839 #else
3840 # define ISLOWER(c) \
3841                    (('a' <= (c) && (c) <= 'i') \
3842                      || ('j' <= (c) && (c) <= 'r') \
3843                      || ('s' <= (c) && (c) <= 'z'))
3844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3845 #endif
3846
3847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3848 int
3849 main ()
3850 {
3851   int i;
3852   for (i = 0; i < 256; i++)
3853     if (XOR (islower (i), ISLOWER (i))
3854         || toupper (i) != TOUPPER (i))
3855       return 2;
3856   return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3861 case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866   (eval "$ac_link") 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3870   { (case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875   (eval "$ac_try") 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   :
3880 else
3881   echo "$as_me: program exited with status $ac_status" >&5
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ( exit $ac_status )
3886 ac_cv_header_stdc=no
3887 fi
3888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3889 fi
3890
3891
3892 fi
3893 fi
3894 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3895 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3896 if test $ac_cv_header_stdc = yes; then
3897
3898 cat >>confdefs.h <<\_ACEOF
3899 #define STDC_HEADERS 1
3900 _ACEOF
3901
3902 fi
3903
3904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3915                   inttypes.h stdint.h unistd.h
3916 do
3917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 $ac_includes_default
3930
3931 #include <$ac_header>
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3935 case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940   (eval "$ac_compile") 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } && {
3947          test -z "$ac_c_werror_flag" ||
3948          test ! -s conftest.err
3949        } && test -s conftest.$ac_objext; then
3950   eval "$as_ac_Header=yes"
3951 else
3952   echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955         eval "$as_ac_Header=no"
3956 fi
3957
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 fi
3960 ac_res=`eval echo '${'$as_ac_Header'}'`
3961                { echo "$as_me:$LINENO: result: $ac_res" >&5
3962 echo "${ECHO_T}$ac_res" >&6; }
3963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3964   cat >>confdefs.h <<_ACEOF
3965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3966 _ACEOF
3967
3968 fi
3969
3970 done
3971
3972
3973 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3974 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3975 if test "${ac_cv_c_bigendian+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   # See if sys/param.h defines the BYTE_ORDER macro.
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985 #include <sys/types.h>
3986 #include <sys/param.h>
3987
3988 int
3989 main ()
3990 {
3991 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3992         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3993  bogus endian macros
3994 #endif
3995
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.$ac_objext
4001 if { (ac_try="$ac_compile"
4002 case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007   (eval "$ac_compile") 2>conftest.er1
4008   ac_status=$?
4009   grep -v '^ *+' conftest.er1 >conftest.err
4010   rm -f conftest.er1
4011   cat conftest.err >&5
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); } && {
4014          test -z "$ac_c_werror_flag" ||
4015          test ! -s conftest.err
4016        } && test -s conftest.$ac_objext; then
4017   # It does; now see whether it defined to BIG_ENDIAN or not.
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 #include <sys/types.h>
4025 #include <sys/param.h>
4026
4027 int
4028 main ()
4029 {
4030 #if BYTE_ORDER != BIG_ENDIAN
4031  not big endian
4032 #endif
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_compile") 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } && {
4052          test -z "$ac_c_werror_flag" ||
4053          test ! -s conftest.err
4054        } && test -s conftest.$ac_objext; then
4055   ac_cv_c_bigendian=yes
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060         ac_cv_c_bigendian=no
4061 fi
4062
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068         # It does not; compile a test program.
4069 if test "$cross_compiling" = yes; then
4070   # try to guess the endianness by grepping values into an object file
4071   ac_cv_c_bigendian=unknown
4072   cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4079 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4080 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4081 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4082 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4083 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4084 int
4085 main ()
4086 {
4087  _ascii (); _ebcdic ();
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4094 case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_compile") 2>conftest.er1
4100   ac_status=$?
4101   grep -v '^ *+' conftest.er1 >conftest.err
4102   rm -f conftest.er1
4103   cat conftest.err >&5
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } && {
4106          test -z "$ac_c_werror_flag" ||
4107          test ! -s conftest.err
4108        } && test -s conftest.$ac_objext; then
4109   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4110   ac_cv_c_bigendian=yes
4111 fi
4112 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4113   if test "$ac_cv_c_bigendian" = unknown; then
4114     ac_cv_c_bigendian=no
4115   else
4116     # finding both strings is unlikely to happen, but who knows?
4117     ac_cv_c_bigendian=unknown
4118   fi
4119 fi
4120 else
4121   echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124
4125 fi
4126
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 else
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 $ac_includes_default
4136 int
4137 main ()
4138 {
4139
4140   /* Are we little or big endian?  From Harbison&Steele.  */
4141   union
4142   {
4143     long int l;
4144     char c[sizeof (long int)];
4145   } u;
4146   u.l = 1;
4147   return u.c[sizeof (long int) - 1] == 1;
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_link") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164   { (case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_try") 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   ac_cv_c_bigendian=no
4174 else
4175   echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ( exit $ac_status )
4180 ac_cv_c_bigendian=yes
4181 fi
4182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183 fi
4184
4185
4186 fi
4187
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 fi
4190 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4191 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4192 case $ac_cv_c_bigendian in
4193   yes)
4194     ENDIAN=big
4195  ;;
4196   no)
4197     ENDIAN=little
4198  ;;
4199   *)
4200     { { echo "$as_me:$LINENO: error: unknown endianness
4201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4202 echo "$as_me: error: unknown endianness
4203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4204    { (exit 1); exit 1; }; } ;;
4205 esac
4206
4207
4208 if test "$cross_compiling" = yes; then
4209   LLVM_CROSS_COMPILING=1
4210
4211
4212 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4213 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4214 if test "${ac_cv_build_exeext+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4218   ac_cv_build_exeext=.exe
4219 else
4220   ac_build_prefix=${build_alias}-
4221
4222   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4223 set dummy ${ac_build_prefix}gcc; ac_word=$2
4224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   if test -n "$BUILD_CC"; then
4230   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237   for ac_exec_ext in '' $ac_executable_extensions; do
4238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244 done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 BUILD_CC=$ac_cv_prog_BUILD_CC
4250 if test -n "$BUILD_CC"; then
4251   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4252 echo "${ECHO_T}$BUILD_CC" >&6; }
4253 else
4254   { echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6; }
4256 fi
4257
4258
4259   if test -z "$BUILD_CC"; then
4260      # Extract the first word of "gcc", so it can be a program name with args.
4261 set dummy gcc; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   if test -n "$BUILD_CC"; then
4268   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277     ac_cv_prog_BUILD_CC="gcc"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285 fi
4286 fi
4287 BUILD_CC=$ac_cv_prog_BUILD_CC
4288 if test -n "$BUILD_CC"; then
4289   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4290 echo "${ECHO_T}$BUILD_CC" >&6; }
4291 else
4292   { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294 fi
4295
4296
4297      if test -z "$BUILD_CC"; then
4298        # Extract the first word of "cc", so it can be a program name with args.
4299 set dummy cc; ac_word=$2
4300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4302 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   if test -n "$BUILD_CC"; then
4306   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4307 else
4308   ac_prog_rejected=no
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317        ac_prog_rejected=yes
4318        continue
4319      fi
4320     ac_cv_prog_BUILD_CC="cc"
4321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 if test $ac_prog_rejected = yes; then
4329   # We found a bogon in the path, so make sure we never use it.
4330   set dummy $ac_cv_prog_BUILD_CC
4331   shift
4332   if test $# != 0; then
4333     # We chose a different compiler from the bogus one.
4334     # However, it has the same basename, so the bogon will be chosen
4335     # first if we set BUILD_CC to just the basename; use the full file name.
4336     shift
4337     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4338   fi
4339 fi
4340 fi
4341 fi
4342 BUILD_CC=$ac_cv_prog_BUILD_CC
4343 if test -n "$BUILD_CC"; then
4344   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4345 echo "${ECHO_T}$BUILD_CC" >&6; }
4346 else
4347   { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4349 fi
4350
4351
4352      fi
4353   fi
4354   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4355 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4356    { (exit 1); exit 1; }; }
4357   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4358   rm -f conftest*
4359   echo 'int main () { return 0; }' > conftest.$ac_ext
4360   ac_cv_build_exeext=
4361   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4362   (eval $ac_build_link) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; then
4366     for file in conftest.*; do
4367       case $file in
4368       *.c | *.o | *.obj | *.dSYM) ;;
4369       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4370       esac
4371     done
4372   else
4373     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4374 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4375    { (exit 1); exit 1; }; }
4376   fi
4377   rm -f conftest*
4378   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4379 fi
4380 fi
4381
4382 BUILD_EXEEXT=""
4383 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4384 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4385 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4386 ac_build_exeext=$BUILD_EXEEXT
4387
4388   ac_build_prefix=${build_alias}-
4389   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}g++; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test -n "$BUILD_CXX"; then
4397   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4417 if test -n "$BUILD_CXX"; then
4418   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4419 echo "${ECHO_T}$BUILD_CXX" >&6; }
4420 else
4421   { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4423 fi
4424
4425
4426   if test -z "$BUILD_CXX"; then
4427      # Extract the first word of "g++", so it can be a program name with args.
4428 set dummy g++; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$BUILD_CXX"; then
4435   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_BUILD_CXX="g++"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4455 if test -n "$BUILD_CXX"; then
4456   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4457 echo "${ECHO_T}$BUILD_CXX" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4461 fi
4462
4463
4464      if test -z "$BUILD_CXX"; then
4465        # Extract the first word of "c++", so it can be a program name with args.
4466 set dummy c++; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$BUILD_CXX"; then
4473   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4474 else
4475   ac_prog_rejected=no
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4483     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4484        ac_prog_rejected=yes
4485        continue
4486      fi
4487     ac_cv_prog_BUILD_CXX="c++"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 if test $ac_prog_rejected = yes; then
4496   # We found a bogon in the path, so make sure we never use it.
4497   set dummy $ac_cv_prog_BUILD_CXX
4498   shift
4499   if test $# != 0; then
4500     # We chose a different compiler from the bogus one.
4501     # However, it has the same basename, so the bogon will be chosen
4502     # first if we set BUILD_CXX to just the basename; use the full file name.
4503     shift
4504     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4505   fi
4506 fi
4507 fi
4508 fi
4509 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4510 if test -n "$BUILD_CXX"; then
4511   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4512 echo "${ECHO_T}$BUILD_CXX" >&6; }
4513 else
4514   { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516 fi
4517
4518
4519      fi
4520   fi
4521 else
4522   LLVM_CROSS_COMPILING=0
4523
4524 fi
4525
4526 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4527   cvsbuild="yes"
4528   optimize="no"
4529   CVSBUILD=CVSBUILD=1
4530
4531 else
4532   cvsbuild="no"
4533   optimize="yes"
4534 fi
4535
4536
4537 # Check whether --enable-optimized was given.
4538 if test "${enable_optimized+set}" = set; then
4539   enableval=$enable_optimized;
4540 else
4541   enableval=$optimize
4542 fi
4543
4544 if test ${enableval} = "no" ; then
4545   ENABLE_OPTIMIZED=
4546
4547 else
4548   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4549
4550 fi
4551
4552 # Check whether --enable-profiling was given.
4553 if test "${enable_profiling+set}" = set; then
4554   enableval=$enable_profiling;
4555 else
4556   enableval="no"
4557 fi
4558
4559 if test ${enableval} = "no" ; then
4560   ENABLE_PROFILING=
4561
4562 else
4563   ENABLE_PROFILING=ENABLE_PROFILING=1
4564
4565 fi
4566
4567 # Check whether --enable-assertions was given.
4568 if test "${enable_assertions+set}" = set; then
4569   enableval=$enable_assertions;
4570 else
4571   enableval="yes"
4572 fi
4573
4574 if test ${enableval} = "yes" ; then
4575   DISABLE_ASSERTIONS=
4576
4577 else
4578   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4579
4580 fi
4581
4582 # Check whether --enable-expensive-checks was given.
4583 if test "${enable_expensive_checks+set}" = set; then
4584   enableval=$enable_expensive_checks;
4585 else
4586   enableval="no"
4587 fi
4588
4589 if test ${enableval} = "yes" ; then
4590   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4591
4592   EXPENSIVE_CHECKS=yes
4593
4594 else
4595   ENABLE_EXPENSIVE_CHECKS=
4596
4597   EXPENSIVE_CHECKS=no
4598
4599 fi
4600
4601 # Check whether --enable-debug-runtime was given.
4602 if test "${enable_debug_runtime+set}" = set; then
4603   enableval=$enable_debug_runtime;
4604 else
4605   enableval=no
4606 fi
4607
4608 if test ${enableval} = "no" ; then
4609   DEBUG_RUNTIME=
4610
4611 else
4612   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4613
4614 fi
4615
4616 # Check whether --enable-jit was given.
4617 if test "${enable_jit+set}" = set; then
4618   enableval=$enable_jit;
4619 else
4620   enableval=default
4621 fi
4622
4623 if test ${enableval} = "no"
4624 then
4625   JIT=
4626
4627 else
4628   case "$llvm_cv_target_arch" in
4629     x86)     TARGET_HAS_JIT=1
4630  ;;
4631     Sparc)   TARGET_HAS_JIT=0
4632  ;;
4633     PowerPC) TARGET_HAS_JIT=1
4634  ;;
4635     x86_64)  TARGET_HAS_JIT=1
4636  ;;
4637     Alpha)   TARGET_HAS_JIT=1
4638  ;;
4639     IA64)    TARGET_HAS_JIT=0
4640  ;;
4641     ARM)     TARGET_HAS_JIT=0
4642  ;;
4643     Mips)    TARGET_HAS_JIT=0
4644  ;;
4645     PIC16)   TARGET_HAS_JIT=0
4646  ;;
4647     XCore)   TARGET_HAS_JIT=0
4648  ;;
4649     *)       TARGET_HAS_JIT=0
4650  ;;
4651   esac
4652 fi
4653
4654 # Check whether --enable-doxygen was given.
4655 if test "${enable_doxygen+set}" = set; then
4656   enableval=$enable_doxygen;
4657 else
4658   enableval=default
4659 fi
4660
4661 case "$enableval" in
4662   yes) ENABLE_DOXYGEN=1
4663  ;;
4664   no)  ENABLE_DOXYGEN=0
4665  ;;
4666   default) ENABLE_DOXYGEN=0
4667  ;;
4668   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4669 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4670    { (exit 1); exit 1; }; } ;;
4671 esac
4672
4673 # Check whether --enable-threads was given.
4674 if test "${enable_threads+set}" = set; then
4675   enableval=$enable_threads;
4676 else
4677   enableval=default
4678 fi
4679
4680 case "$enableval" in
4681   yes) ENABLE_THREADS=1
4682  ;;
4683   no)  ENABLE_THREADS=0
4684  ;;
4685   default) ENABLE_THREADS=1
4686  ;;
4687   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4688 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4689    { (exit 1); exit 1; }; } ;;
4690 esac
4691
4692 cat >>confdefs.h <<_ACEOF
4693 #define ENABLE_THREADS $ENABLE_THREADS
4694 _ACEOF
4695
4696
4697 # Check whether --enable-pic was given.
4698 if test "${enable_pic+set}" = set; then
4699   enableval=$enable_pic;
4700 else
4701   enableval=default
4702 fi
4703
4704 case "$enableval" in
4705   yes) ENABLE_PIC=1
4706  ;;
4707   no)  ENABLE_PIC=0
4708  ;;
4709   default) ENABLE_PIC=1
4710  ;;
4711   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4712 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4713    { (exit 1); exit 1; }; } ;;
4714 esac
4715
4716 cat >>confdefs.h <<_ACEOF
4717 #define ENABLE_PIC $ENABLE_PIC
4718 _ACEOF
4719
4720
4721 TARGETS_TO_BUILD=""
4722 # Check whether --enable-targets was given.
4723 if test "${enable_targets+set}" = set; then
4724   enableval=$enable_targets;
4725 else
4726   enableval=all
4727 fi
4728
4729 case "$enableval" in
4730   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4731   host-only)
4732     case "$llvm_cv_target_arch" in
4733       x86)     TARGETS_TO_BUILD="X86" ;;
4734       x86_64)  TARGETS_TO_BUILD="X86" ;;
4735       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4736       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4737       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4738       IA64)    TARGETS_TO_BUILD="IA64" ;;
4739       ARM)     TARGETS_TO_BUILD="ARM" ;;
4740       Mips)    TARGETS_TO_BUILD="Mips" ;;
4741       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4742       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4743       XCore)   TARGETS_TO_BUILD="XCore" ;;
4744       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4745 echo "$as_me: error: Can not set target to build" >&2;}
4746    { (exit 1); exit 1; }; } ;;
4747     esac
4748     ;;
4749   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4750       case "$a_target" in
4751         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4752         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4754         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4755         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4756         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4757         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4758         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4759         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4760         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4761         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4762         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4763         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4764         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4765         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4766 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4767    { (exit 1); exit 1; }; } ;;
4768       esac
4769   done
4770   ;;
4771 esac
4772 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4773
4774
4775 # Check whether --enable-cbe-printf-a was given.
4776 if test "${enable_cbe_printf_a+set}" = set; then
4777   enableval=$enable_cbe_printf_a;
4778 else
4779   enableval=default
4780 fi
4781
4782 case "$enableval" in
4783   yes) ENABLE_CBE_PRINTF_A=1
4784  ;;
4785   no)  ENABLE_CBE_PRINTF_A=0
4786  ;;
4787   default)  ENABLE_CBE_PRINTF_A=1
4788  ;;
4789   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4790 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4791    { (exit 1); exit 1; }; } ;;
4792 esac
4793
4794 cat >>confdefs.h <<_ACEOF
4795 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4796 _ACEOF
4797
4798
4799
4800 # Check whether --with-llvmgccdir was given.
4801 if test "${with_llvmgccdir+set}" = set; then
4802   withval=$with_llvmgccdir;
4803 else
4804   withval=default
4805 fi
4806
4807 case "$withval" in
4808   default) WITH_LLVMGCCDIR=default ;;
4809   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4810   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4811 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4812    { (exit 1); exit 1; }; } ;;
4813 esac
4814
4815
4816 # Check whether --with-llvmgcc was given.
4817 if test "${with_llvmgcc+set}" = set; then
4818   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4819       WITH_LLVMGCCDIR=""
4820 fi
4821
4822
4823
4824 # Check whether --with-llvmgxx was given.
4825 if test "${with_llvmgxx+set}" = set; then
4826   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4827     WITH_LLVMGCCDIR=""
4828 fi
4829
4830
4831 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4832    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4833 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4834    { (exit 1); exit 1; }; };
4835 fi
4836
4837 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4838    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4839 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4840    { (exit 1); exit 1; }; };
4841 fi
4842
4843
4844 # Check whether --with-extra-options was given.
4845 if test "${with_extra_options+set}" = set; then
4846   withval=$with_extra_options;
4847 else
4848   withval=default
4849 fi
4850
4851 case "$withval" in
4852   default) EXTRA_OPTIONS= ;;
4853   *) EXTRA_OPTIONS=$withval ;;
4854 esac
4855 EXTRA_OPTIONS=$EXTRA_OPTIONS
4856
4857
4858 # Check whether --enable-bindings was given.
4859 if test "${enable_bindings+set}" = set; then
4860   enableval=$enable_bindings;
4861 else
4862   enableval=default
4863 fi
4864
4865 BINDINGS_TO_BUILD=""
4866 case "$enableval" in
4867   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4868   all ) BINDINGS_TO_BUILD="ocaml" ;;
4869   none | no) BINDINGS_TO_BUILD="" ;;
4870   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4871       case "$a_binding" in
4872         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4873         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4874 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4875    { (exit 1); exit 1; }; } ;;
4876       esac
4877   done
4878   ;;
4879 esac
4880
4881
4882 # Check whether --with-ocaml-libdir was given.
4883 if test "${with_ocaml_libdir+set}" = set; then
4884   withval=$with_ocaml_libdir;
4885 else
4886   withval=auto
4887 fi
4888
4889 case "$withval" in
4890   auto) with_ocaml_libdir="$withval" ;;
4891   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4892   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4893 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4894    { (exit 1); exit 1; }; } ;;
4895 esac
4896
4897
4898 # Check whether --with-binutils-include was given.
4899 if test "${with_binutils_include+set}" = set; then
4900   withval=$with_binutils_include;
4901 else
4902   withval=default
4903 fi
4904
4905 case "$withval" in
4906   default) WITH_BINUTILS_INCDIR=default ;;
4907   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
4908   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
4909 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
4910    { (exit 1); exit 1; }; } ;;
4911 esac
4912 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
4913   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
4914
4915   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
4916      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
4917      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
4918 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
4919    { (exit 1); exit 1; }; };
4920   fi
4921 fi
4922
4923
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4930 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4931 # On Suns, sometimes $CPP names a directory.
4932 if test -n "$CPP" && test -d "$CPP"; then
4933   CPP=
4934 fi
4935 if test -z "$CPP"; then
4936   if test "${ac_cv_prog_CPP+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939       # Double quotes because CPP needs to be expanded
4940     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4941     do
4942       ac_preproc_ok=false
4943 for ac_c_preproc_warn_flag in '' yes
4944 do
4945   # Use a header file that comes with gcc, so configuring glibc
4946   # with a fresh cross-compiler works.
4947   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4948   # <limits.h> exists even on freestanding compilers.
4949   # On the NeXT, cc -E runs the code through the compiler's parser,
4950   # not just through cpp. "Syntax error" is here to catch this case.
4951   cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957 #ifdef __STDC__
4958 # include <limits.h>
4959 #else
4960 # include <assert.h>
4961 #endif
4962                      Syntax error
4963 _ACEOF
4964 if { (ac_try="$ac_cpp conftest.$ac_ext"
4965 case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null && {
4977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978          test ! -s conftest.err
4979        }; then
4980   :
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985   # Broken: fails on valid input.
4986 continue
4987 fi
4988
4989 rm -f conftest.err conftest.$ac_ext
4990
4991   # OK, works on sane cases.  Now check whether nonexistent headers
4992   # can be detected and how.
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #include <ac_nonexistent.h>
5000 _ACEOF
5001 if { (ac_try="$ac_cpp conftest.$ac_ext"
5002 case "(($ac_try" in
5003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004   *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5008   ac_status=$?
5009   grep -v '^ *+' conftest.er1 >conftest.err
5010   rm -f conftest.er1
5011   cat conftest.err >&5
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); } >/dev/null && {
5014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5015          test ! -s conftest.err
5016        }; then
5017   # Broken: success on invalid input.
5018 continue
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023   # Passes both tests.
5024 ac_preproc_ok=:
5025 break
5026 fi
5027
5028 rm -f conftest.err conftest.$ac_ext
5029
5030 done
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then
5034   break
5035 fi
5036
5037     done
5038     ac_cv_prog_CPP=$CPP
5039
5040 fi
5041   CPP=$ac_cv_prog_CPP
5042 else
5043   ac_cv_prog_CPP=$CPP
5044 fi
5045 { echo "$as_me:$LINENO: result: $CPP" >&5
5046 echo "${ECHO_T}$CPP" >&6; }
5047 ac_preproc_ok=false
5048 for ac_c_preproc_warn_flag in '' yes
5049 do
5050   # Use a header file that comes with gcc, so configuring glibc
5051   # with a fresh cross-compiler works.
5052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053   # <limits.h> exists even on freestanding compilers.
5054   # On the NeXT, cc -E runs the code through the compiler's parser,
5055   # not just through cpp. "Syntax error" is here to catch this case.
5056   cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062 #ifdef __STDC__
5063 # include <limits.h>
5064 #else
5065 # include <assert.h>
5066 #endif
5067                      Syntax error
5068 _ACEOF
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5070 case "(($ac_try" in
5071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072   *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } >/dev/null && {
5082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083          test ! -s conftest.err
5084        }; then
5085   :
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090   # Broken: fails on valid input.
5091 continue
5092 fi
5093
5094 rm -f conftest.err conftest.$ac_ext
5095
5096   # OK, works on sane cases.  Now check whether nonexistent headers
5097   # can be detected and how.
5098   cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 #include <ac_nonexistent.h>
5105 _ACEOF
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 case "(($ac_try" in
5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109   *) ac_try_echo=$ac_try;;
5110 esac
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null && {
5119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120          test ! -s conftest.err
5121        }; then
5122   # Broken: success on invalid input.
5123 continue
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128   # Passes both tests.
5129 ac_preproc_ok=:
5130 break
5131 fi
5132
5133 rm -f conftest.err conftest.$ac_ext
5134
5135 done
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.$ac_ext
5138 if $ac_preproc_ok; then
5139   :
5140 else
5141   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5144 See \`config.log' for more details." >&2;}
5145    { (exit 1); exit 1; }; }
5146 fi
5147
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154 ac_ext=c
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 if test -n "$ac_tool_prefix"; then
5160   for ac_prog in gcc
5161   do
5162     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5166 if test "${ac_cv_prog_CC+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   if test -n "$CC"; then
5170   ac_cv_prog_CC="$CC" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177   for ac_exec_ext in '' $ac_executable_extensions; do
5178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 fi
5188 fi
5189 CC=$ac_cv_prog_CC
5190 if test -n "$CC"; then
5191   { echo "$as_me:$LINENO: result: $CC" >&5
5192 echo "${ECHO_T}$CC" >&6; }
5193 else
5194   { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5196 fi
5197
5198
5199     test -n "$CC" && break
5200   done
5201 fi
5202 if test -z "$CC"; then
5203   ac_ct_CC=$CC
5204   for ac_prog in gcc
5205 do
5206   # Extract the first word of "$ac_prog", so it can be a program name with args.
5207 set dummy $ac_prog; ac_word=$2
5208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   if test -n "$ac_ct_CC"; then
5214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_prog_ac_ct_CC="$ac_prog"
5224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5234 if test -n "$ac_ct_CC"; then
5235   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5236 echo "${ECHO_T}$ac_ct_CC" >&6; }
5237 else
5238   { echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6; }
5240 fi
5241
5242
5243   test -n "$ac_ct_CC" && break
5244 done
5245
5246   if test "x$ac_ct_CC" = x; then
5247     CC=""
5248   else
5249     case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5252 whose name does not start with the host triplet.  If you think this
5253 configuration is useful to you, please write to autoconf@gnu.org." >&5
5254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255 whose name does not start with the host triplet.  If you think this
5256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259     CC=$ac_ct_CC
5260   fi
5261 fi
5262
5263
5264 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5265 See \`config.log' for more details." >&5
5266 echo "$as_me: error: no acceptable C compiler found in \$PATH
5267 See \`config.log' for more details." >&2;}
5268    { (exit 1); exit 1; }; }
5269
5270 # Provide some information about the compiler.
5271 echo "$as_me:$LINENO: checking for C compiler version" >&5
5272 ac_compiler=`set X $ac_compile; echo $2`
5273 { (ac_try="$ac_compiler --version >&5"
5274 case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_compiler --version >&5") 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }
5283 { (ac_try="$ac_compiler -v >&5"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_compiler -v >&5") 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }
5293 { (ac_try="$ac_compiler -V >&5"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_compiler -V >&5") 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }
5303
5304 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5306 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315
5316 int
5317 main ()
5318 {
5319 #ifndef __GNUC__
5320        choke me
5321 #endif
5322
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
5329 case "(($ac_try" in
5330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331   *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334   (eval "$ac_compile") 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } && {
5341          test -z "$ac_c_werror_flag" ||
5342          test ! -s conftest.err
5343        } && test -s conftest.$ac_objext; then
5344   ac_compiler_gnu=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349         ac_compiler_gnu=no
5350 fi
5351
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5354
5355 fi
5356 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5358 GCC=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_CFLAGS=${CFLAGS+set}
5360 ac_save_CFLAGS=$CFLAGS
5361 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5363 if test "${ac_cv_prog_cc_g+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   ac_save_c_werror_flag=$ac_c_werror_flag
5367    ac_c_werror_flag=yes
5368    ac_cv_prog_cc_g=no
5369    CFLAGS="-g"
5370    cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376
5377 int
5378 main ()
5379 {
5380
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_compile") 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } && {
5399          test -z "$ac_c_werror_flag" ||
5400          test ! -s conftest.err
5401        } && test -s conftest.$ac_objext; then
5402   ac_cv_prog_cc_g=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407         CFLAGS=""
5408       cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414
5415 int
5416 main ()
5417 {
5418
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5425 case "(($ac_try" in
5426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427   *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430   (eval "$ac_compile") 2>conftest.er1
5431   ac_status=$?
5432   grep -v '^ *+' conftest.er1 >conftest.err
5433   rm -f conftest.er1
5434   cat conftest.err >&5
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); } && {
5437          test -z "$ac_c_werror_flag" ||
5438          test ! -s conftest.err
5439        } && test -s conftest.$ac_objext; then
5440   :
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445         ac_c_werror_flag=$ac_save_c_werror_flag
5446          CFLAGS="-g"
5447          cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_compile") 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } && {
5476          test -z "$ac_c_werror_flag" ||
5477          test ! -s conftest.err
5478        } && test -s conftest.$ac_objext; then
5479   ac_cv_prog_cc_g=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 fi
5492
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494    ac_c_werror_flag=$ac_save_c_werror_flag
5495 fi
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5498 if test "$ac_test_CFLAGS" = set; then
5499   CFLAGS=$ac_save_CFLAGS
5500 elif test $ac_cv_prog_cc_g = yes; then
5501   if test "$GCC" = yes; then
5502     CFLAGS="-g -O2"
5503   else
5504     CFLAGS="-g"
5505   fi
5506 else
5507   if test "$GCC" = yes; then
5508     CFLAGS="-O2"
5509   else
5510     CFLAGS=
5511   fi
5512 fi
5513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_cc_c89+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   ac_cv_prog_cc_c89=no
5519 ac_save_CC=$CC
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 #include <stdarg.h>
5527 #include <stdio.h>
5528 #include <sys/types.h>
5529 #include <sys/stat.h>
5530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5531 struct buf { int x; };
5532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5533 static char *e (p, i)
5534      char **p;
5535      int i;
5536 {
5537   return p[i];
5538 }
5539 static char *f (char * (*g) (char **, int), char **p, ...)
5540 {
5541   char *s;
5542   va_list v;
5543   va_start (v,p);
5544   s = g (p, va_arg (v,int));
5545   va_end (v);
5546   return s;
5547 }
5548
5549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5550    function prototypes and stuff, but not '\xHH' hex character constants.
5551    These don't provoke an error unfortunately, instead are silently treated
5552    as 'x'.  The following induces an error, until -std is added to get
5553    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5554    array size at least.  It's necessary to write '\x00'==0 to get something
5555    that's true only with -std.  */
5556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5557
5558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5559    inside strings and character constants.  */
5560 #define FOO(x) 'x'
5561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5562
5563 int test (int i, double x);
5564 struct s1 {int (*f) (int a);};
5565 struct s2 {int (*f) (double a);};
5566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5567 int argc;
5568 char **argv;
5569 int
5570 main ()
5571 {
5572 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5578         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5579 do
5580   CC="$ac_save_CC $ac_arg"
5581   rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588   (eval "$ac_compile") 2>conftest.er1
5589   ac_status=$?
5590   grep -v '^ *+' conftest.er1 >conftest.err
5591   rm -f conftest.er1
5592   cat conftest.err >&5
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && {
5595          test -z "$ac_c_werror_flag" ||
5596          test ! -s conftest.err
5597        } && test -s conftest.$ac_objext; then
5598   ac_cv_prog_cc_c89=$ac_arg
5599 else
5600   echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603
5604 fi
5605
5606 rm -f core conftest.err conftest.$ac_objext
5607   test "x$ac_cv_prog_cc_c89" != "xno" && break
5608 done
5609 rm -f conftest.$ac_ext
5610 CC=$ac_save_CC
5611
5612 fi
5613 # AC_CACHE_VAL
5614 case "x$ac_cv_prog_cc_c89" in
5615   x)
5616     { echo "$as_me:$LINENO: result: none needed" >&5
5617 echo "${ECHO_T}none needed" >&6; } ;;
5618   xno)
5619     { echo "$as_me:$LINENO: result: unsupported" >&5
5620 echo "${ECHO_T}unsupported" >&6; } ;;
5621   *)
5622     CC="$CC $ac_cv_prog_cc_c89"
5623     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5624 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5625 esac
5626
5627
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634 ac_ext=cpp
5635 ac_cpp='$CXXCPP $CPPFLAGS'
5636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5639 if test -z "$CXX"; then
5640   if test -n "$CCC"; then
5641     CXX=$CCC
5642   else
5643     if test -n "$ac_tool_prefix"; then
5644   for ac_prog in g++
5645   do
5646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5650 if test "${ac_cv_prog_CXX+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   if test -n "$CXX"; then
5654   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661   for ac_exec_ext in '' $ac_executable_extensions; do
5662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 CXX=$ac_cv_prog_CXX
5674 if test -n "$CXX"; then
5675   { echo "$as_me:$LINENO: result: $CXX" >&5
5676 echo "${ECHO_T}$CXX" >&6; }
5677 else
5678   { echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6; }
5680 fi
5681
5682
5683     test -n "$CXX" && break
5684   done
5685 fi
5686 if test -z "$CXX"; then
5687   ac_ct_CXX=$CXX
5688   for ac_prog in g++
5689 do
5690   # Extract the first word of "$ac_prog", so it can be a program name with args.
5691 set dummy $ac_prog; ac_word=$2
5692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if test -n "$ac_ct_CXX"; then
5698   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705   for ac_exec_ext in '' $ac_executable_extensions; do
5706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707     ac_cv_prog_ac_ct_CXX="$ac_prog"
5708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712 done
5713 IFS=$as_save_IFS
5714
5715 fi
5716 fi
5717 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5718 if test -n "$ac_ct_CXX"; then
5719   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5720 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5721 else
5722   { echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6; }
5724 fi
5725
5726
5727   test -n "$ac_ct_CXX" && break
5728 done
5729
5730   if test "x$ac_ct_CXX" = x; then
5731     CXX="g++"
5732   else
5733     case $cross_compiling:$ac_tool_warned in
5734 yes:)
5735 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5736 whose name does not start with the host triplet.  If you think this
5737 configuration is useful to you, please write to autoconf@gnu.org." >&5
5738 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5739 whose name does not start with the host triplet.  If you think this
5740 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5741 ac_tool_warned=yes ;;
5742 esac
5743     CXX=$ac_ct_CXX
5744   fi
5745 fi
5746
5747   fi
5748 fi
5749 # Provide some information about the compiler.
5750 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5751 ac_compiler=`set X $ac_compile; echo $2`
5752 { (ac_try="$ac_compiler --version >&5"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compiler --version >&5") 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); }
5762 { (ac_try="$ac_compiler -v >&5"
5763 case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_compiler -v >&5") 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }
5772 { (ac_try="$ac_compiler -V >&5"
5773 case "(($ac_try" in
5774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775   *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778   (eval "$ac_compiler -V >&5") 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }
5782
5783 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5784 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5785 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794
5795 int
5796 main ()
5797 {
5798 #ifndef __GNUC__
5799        choke me
5800 #endif
5801
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_compile") 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } && {
5820          test -z "$ac_cxx_werror_flag" ||
5821          test ! -s conftest.err
5822        } && test -s conftest.$ac_objext; then
5823   ac_compiler_gnu=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828         ac_compiler_gnu=no
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
5834 fi
5835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837 GXX=`test $ac_compiler_gnu = yes && echo yes`
5838 ac_test_CXXFLAGS=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS=$CXXFLAGS
5840 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842 if test "${ac_cv_prog_cxx_g+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846    ac_cxx_werror_flag=yes
5847    ac_cv_prog_cxx_g=no
5848    CXXFLAGS="-g"
5849    cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855
5856 int
5857 main ()
5858 {
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_compile") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } && {
5878          test -z "$ac_cxx_werror_flag" ||
5879          test ! -s conftest.err
5880        } && test -s conftest.$ac_objext; then
5881   ac_cv_prog_cxx_g=yes
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886         CXXFLAGS=""
5887       cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893
5894 int
5895 main ()
5896 {
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909   (eval "$ac_compile") 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } && {
5916          test -z "$ac_cxx_werror_flag" ||
5917          test ! -s conftest.err
5918        } && test -s conftest.$ac_objext; then
5919   :
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5925          CXXFLAGS="-g"
5926          cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h.  */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h.  */
5932
5933 int
5934 main ()
5935 {
5936
5937   ;
5938   return 0;
5939 }
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5943 case "(($ac_try" in
5944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945   *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948   (eval "$ac_compile") 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } && {
5955          test -z "$ac_cxx_werror_flag" ||
5956          test ! -s conftest.err
5957        } && test -s conftest.$ac_objext; then
5958   ac_cv_prog_cxx_g=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963
5964 fi
5965
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5974 fi
5975 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5976 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5977 if test "$ac_test_CXXFLAGS" = set; then
5978   CXXFLAGS=$ac_save_CXXFLAGS
5979 elif test $ac_cv_prog_cxx_g = yes; then
5980   if test "$GXX" = yes; then
5981     CXXFLAGS="-g -O2"
5982   else
5983     CXXFLAGS="-g"
5984   fi
5985 else
5986   if test "$GXX" = yes; then
5987     CXXFLAGS="-O2"
5988   else
5989     CXXFLAGS=
5990   fi
5991 fi
5992 ac_ext=c
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
5998
5999 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6000 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6001 if test "${lt_cv_path_NM+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   if test -n "$NM"; then
6005   # Let the user override the test.
6006   lt_cv_path_NM="$NM"
6007 else
6008   lt_nm_to_check="${ac_tool_prefix}nm"
6009   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6010     lt_nm_to_check="$lt_nm_to_check nm"
6011   fi
6012   for lt_tmp_nm in $lt_nm_to_check; do
6013     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6014     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6015       IFS="$lt_save_ifs"
6016       test -z "$ac_dir" && ac_dir=.
6017       tmp_nm="$ac_dir/$lt_tmp_nm"
6018       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6019         # Check to see if the nm accepts a BSD-compat flag.
6020         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6021         #   nm: unknown option "B" ignored
6022         # Tru64's nm complains that /dev/null is an invalid object file
6023         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6024         */dev/null* | *'Invalid file or object type'*)
6025           lt_cv_path_NM="$tmp_nm -B"
6026           break
6027           ;;
6028         *)
6029           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6030           */dev/null*)
6031             lt_cv_path_NM="$tmp_nm -p"
6032             break
6033             ;;
6034           *)
6035             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6036             continue # so that we can try to find one that supports BSD flags
6037             ;;
6038           esac
6039           ;;
6040         esac
6041       fi
6042     done
6043     IFS="$lt_save_ifs"
6044   done
6045   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6046 fi
6047 fi
6048 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6049 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6050 NM="$lt_cv_path_NM"
6051
6052
6053
6054 { echo "$as_me:$LINENO: checking for GNU make" >&5
6055 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6056 if test "${llvm_cv_gnu_make_command+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   llvm_cv_gnu_make_command=''
6060  for a in "$MAKE" make gmake gnumake ; do
6061   if test -z "$a" ; then continue ; fi ;
6062   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6063   then
6064    llvm_cv_gnu_make_command=$a ;
6065    break;
6066   fi
6067  done
6068 fi
6069 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6070 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6071  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6072    ifGNUmake='' ;
6073  else
6074    ifGNUmake='#' ;
6075    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6076 echo "${ECHO_T}\"Not found\"" >&6; };
6077  fi
6078
6079
6080 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6081 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6082 LN_S=$as_ln_s
6083 if test "$LN_S" = "ln -s"; then
6084   { echo "$as_me:$LINENO: result: yes" >&5
6085 echo "${ECHO_T}yes" >&6; }
6086 else
6087   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6088 echo "${ECHO_T}no, using $LN_S" >&6; }
6089 fi
6090
6091 # Extract the first word of "cmp", so it can be a program name with args.
6092 set dummy cmp; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_path_CMP+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   case $CMP in
6099   [\\/]* | ?:[\\/]*)
6100   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6101   ;;
6102   *)
6103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6119   ;;
6120 esac
6121 fi
6122 CMP=$ac_cv_path_CMP
6123 if test -n "$CMP"; then
6124   { echo "$as_me:$LINENO: result: $CMP" >&5
6125 echo "${ECHO_T}$CMP" >&6; }
6126 else
6127   { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6129 fi
6130
6131
6132 # Extract the first word of "cp", so it can be a program name with args.
6133 set dummy cp; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_path_CP+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   case $CP in
6140   [\\/]* | ?:[\\/]*)
6141   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6142   ;;
6143   *)
6144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6160   ;;
6161 esac
6162 fi
6163 CP=$ac_cv_path_CP
6164 if test -n "$CP"; then
6165   { echo "$as_me:$LINENO: result: $CP" >&5
6166 echo "${ECHO_T}$CP" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171
6172
6173 # Extract the first word of "date", so it can be a program name with args.
6174 set dummy date; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_path_DATE+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   case $DATE in
6181   [\\/]* | ?:[\\/]*)
6182   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6183   ;;
6184   *)
6185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6201   ;;
6202 esac
6203 fi
6204 DATE=$ac_cv_path_DATE
6205 if test -n "$DATE"; then
6206   { echo "$as_me:$LINENO: result: $DATE" >&5
6207 echo "${ECHO_T}$DATE" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213
6214 # Extract the first word of "find", so it can be a program name with args.
6215 set dummy find; ac_word=$2
6216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218 if test "${ac_cv_path_FIND+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   case $FIND in
6222   [\\/]* | ?:[\\/]*)
6223   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6224   ;;
6225   *)
6226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6242   ;;
6243 esac
6244 fi
6245 FIND=$ac_cv_path_FIND
6246 if test -n "$FIND"; then
6247   { echo "$as_me:$LINENO: result: $FIND" >&5
6248 echo "${ECHO_T}$FIND" >&6; }
6249 else
6250   { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6252 fi
6253
6254
6255 # Extract the first word of "grep", so it can be a program name with args.
6256 set dummy grep; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_path_GREP+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   case $GREP in
6263   [\\/]* | ?:[\\/]*)
6264   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6265   ;;
6266   *)
6267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272   for ac_exec_ext in '' $ac_executable_extensions; do
6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6283   ;;
6284 esac
6285 fi
6286 GREP=$ac_cv_path_GREP
6287 if test -n "$GREP"; then
6288   { echo "$as_me:$LINENO: result: $GREP" >&5
6289 echo "${ECHO_T}$GREP" >&6; }
6290 else
6291   { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6293 fi
6294
6295
6296 # Extract the first word of "mkdir", so it can be a program name with args.
6297 set dummy mkdir; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_path_MKDIR+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   case $MKDIR in
6304   [\\/]* | ?:[\\/]*)
6305   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6306   ;;
6307   *)
6308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313   for ac_exec_ext in '' $ac_executable_extensions; do
6314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6324   ;;
6325 esac
6326 fi
6327 MKDIR=$ac_cv_path_MKDIR
6328 if test -n "$MKDIR"; then
6329   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6330 echo "${ECHO_T}$MKDIR" >&6; }
6331 else
6332   { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6334 fi
6335
6336
6337 # Extract the first word of "mv", so it can be a program name with args.
6338 set dummy mv; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_MV+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   case $MV in
6345   [\\/]* | ?:[\\/]*)
6346   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6347   ;;
6348   *)
6349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354   for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6365   ;;
6366 esac
6367 fi
6368 MV=$ac_cv_path_MV
6369 if test -n "$MV"; then
6370   { echo "$as_me:$LINENO: result: $MV" >&5
6371 echo "${ECHO_T}$MV" >&6; }
6372 else
6373   { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6375 fi
6376
6377
6378 if test -n "$ac_tool_prefix"; then
6379   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_RANLIB+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   if test -n "$RANLIB"; then
6387   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 RANLIB=$ac_cv_prog_RANLIB
6407 if test -n "$RANLIB"; then
6408   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6409 echo "${ECHO_T}$RANLIB" >&6; }
6410 else
6411   { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_RANLIB"; then
6418   ac_ct_RANLIB=$RANLIB
6419   # Extract the first word of "ranlib", so it can be a program name with args.
6420 set dummy ranlib; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   if test -n "$ac_ct_RANLIB"; then
6427   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434   for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_prog_ac_ct_RANLIB="ranlib"
6437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447 if test -n "$ac_ct_RANLIB"; then
6448   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6449 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6454
6455   if test "x$ac_ct_RANLIB" = x; then
6456     RANLIB=":"
6457   else
6458     case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6461 whose name does not start with the host triplet.  If you think this
6462 configuration is useful to you, please write to autoconf@gnu.org." >&5
6463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6464 whose name does not start with the host triplet.  If you think this
6465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468     RANLIB=$ac_ct_RANLIB
6469   fi
6470 else
6471   RANLIB="$ac_cv_prog_RANLIB"
6472 fi
6473
6474 # Extract the first word of "rm", so it can be a program name with args.
6475 set dummy rm; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_path_RM+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   case $RM in
6482   [\\/]* | ?:[\\/]*)
6483   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6484   ;;
6485   *)
6486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6502   ;;
6503 esac
6504 fi
6505 RM=$ac_cv_path_RM
6506 if test -n "$RM"; then
6507   { echo "$as_me:$LINENO: result: $RM" >&5
6508 echo "${ECHO_T}$RM" >&6; }
6509 else
6510   { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6512 fi
6513
6514
6515 # Extract the first word of "sed", so it can be a program name with args.
6516 set dummy sed; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_path_SED+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   case $SED in
6523   [\\/]* | ?:[\\/]*)
6524   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6525   ;;
6526   *)
6527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6543   ;;
6544 esac
6545 fi
6546 SED=$ac_cv_path_SED
6547 if test -n "$SED"; then
6548   { echo "$as_me:$LINENO: result: $SED" >&5
6549 echo "${ECHO_T}$SED" >&6; }
6550 else
6551   { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6553 fi
6554
6555
6556 # Extract the first word of "tar", so it can be a program name with args.
6557 set dummy tar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_path_TAR+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   case $TAR in
6564   [\\/]* | ?:[\\/]*)
6565   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6566   ;;
6567   *)
6568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573   for ac_exec_ext in '' $ac_executable_extensions; do
6574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6584   ;;
6585 esac
6586 fi
6587 TAR=$ac_cv_path_TAR
6588 if test -n "$TAR"; then
6589   { echo "$as_me:$LINENO: result: $TAR" >&5
6590 echo "${ECHO_T}$TAR" >&6; }
6591 else
6592   { echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6; }
6594 fi
6595
6596
6597 # Extract the first word of "pwd", so it can be a program name with args.
6598 set dummy pwd; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_path_BINPWD+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   case $BINPWD in
6605   [\\/]* | ?:[\\/]*)
6606   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6607   ;;
6608   *)
6609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614   for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6625   ;;
6626 esac
6627 fi
6628 BINPWD=$ac_cv_path_BINPWD
6629 if test -n "$BINPWD"; then
6630   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6631 echo "${ECHO_T}$BINPWD" >&6; }
6632 else
6633   { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6635 fi
6636
6637
6638
6639 # Extract the first word of "Graphviz", so it can be a program name with args.
6640 set dummy Graphviz; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   case $GRAPHVIZ in
6647   [\\/]* | ?:[\\/]*)
6648   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6649   ;;
6650   *)
6651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6667   ;;
6668 esac
6669 fi
6670 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6671 if test -n "$GRAPHVIZ"; then
6672   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6673 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6674 else
6675   { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6677 fi
6678
6679
6680 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_GRAPHVIZ 1
6684 _ACEOF
6685
6686     if test "$llvm_cv_os_type" = "MingW" ; then
6687     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688   fi
6689
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6692 _ACEOF
6693
6694 fi
6695 # Extract the first word of "dot", so it can be a program name with args.
6696 set dummy dot; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_DOT+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $DOT in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6723   ;;
6724 esac
6725 fi
6726 DOT=$ac_cv_path_DOT
6727 if test -n "$DOT"; then
6728   { echo "$as_me:$LINENO: result: $DOT" >&5
6729 echo "${ECHO_T}$DOT" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736 if test "$DOT" != "echo dot" ; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_DOT 1
6740 _ACEOF
6741
6742     if test "$llvm_cv_os_type" = "MingW" ; then
6743     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744   fi
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6748 _ACEOF
6749
6750 fi
6751 for ac_prog in gv gsview32
6752 do
6753   # Extract the first word of "$ac_prog", so it can be a program name with args.
6754 set dummy $ac_prog; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_GV+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   case $GV in
6761   [\\/]* | ?:[\\/]*)
6762   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6763   ;;
6764   *)
6765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770   for ac_exec_ext in '' $ac_executable_extensions; do
6771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780   ;;
6781 esac
6782 fi
6783 GV=$ac_cv_path_GV
6784 if test -n "$GV"; then
6785   { echo "$as_me:$LINENO: result: $GV" >&5
6786 echo "${ECHO_T}$GV" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793   test -n "$GV" && break
6794 done
6795 test -n "$GV" || GV="echo gv"
6796
6797 if test "$GV" != "echo gv" ; then
6798
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_GV 1
6801 _ACEOF
6802
6803     if test "$llvm_cv_os_type" = "MingW" ; then
6804     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6805   fi
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define LLVM_PATH_GV "$GV${EXEEXT}"
6809 _ACEOF
6810
6811 fi
6812 # Extract the first word of "dotty", so it can be a program name with args.
6813 set dummy dotty; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_DOTTY+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $DOTTY in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6840   ;;
6841 esac
6842 fi
6843 DOTTY=$ac_cv_path_DOTTY
6844 if test -n "$DOTTY"; then
6845   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6846 echo "${ECHO_T}$DOTTY" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 if test "$DOTTY" != "echo dotty" ; then
6854
6855 cat >>confdefs.h <<\_ACEOF
6856 #define HAVE_DOTTY 1
6857 _ACEOF
6858
6859     if test "$llvm_cv_os_type" = "MingW" ; then
6860     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861   fi
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6865 _ACEOF
6866
6867 fi
6868
6869
6870 # Extract the first word of "perl", so it can be a program name with args.
6871 set dummy perl; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_PERL+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   case $PERL in
6878   [\\/]* | ?:[\\/]*)
6879   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6880   ;;
6881   *)
6882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887   for ac_exec_ext in '' $ac_executable_extensions; do
6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6898   ;;
6899 esac
6900 fi
6901 PERL=$ac_cv_path_PERL
6902 if test -n "$PERL"; then
6903   { echo "$as_me:$LINENO: result: $PERL" >&5
6904 echo "${ECHO_T}$PERL" >&6; }
6905 else
6906   { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6908 fi
6909
6910
6911 if test "$PERL" != "none"; then
6912   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6913 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6914   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6915     { echo "$as_me:$LINENO: result: yes" >&5
6916 echo "${ECHO_T}yes" >&6; }
6917   else
6918     PERL=none
6919     { echo "$as_me:$LINENO: result: not found" >&5
6920 echo "${ECHO_T}not found" >&6; }
6921   fi
6922 fi
6923
6924
6925 if test x"$PERL" = xnone; then
6926    HAVE_PERL=0
6927
6928    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6929 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6930    { (exit 1); exit 1; }; }
6931 else
6932    HAVE_PERL=1
6933
6934 fi
6935
6936 # Find a good install program.  We prefer a C program (faster),
6937 # so one script is as good as another.  But avoid the broken or
6938 # incompatible versions:
6939 # SysV /etc/install, /usr/sbin/install
6940 # SunOS /usr/etc/install
6941 # IRIX /sbin/install
6942 # AIX /bin/install
6943 # AmigaOS /C/install, which installs bootblocks on floppy discs
6944 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6945 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6946 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6947 # OS/2's system install, which has a completely different semantic
6948 # ./install, which can be erroneously created by make from ./install.sh.
6949 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6950 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6951 if test -z "$INSTALL"; then
6952 if test "${ac_cv_path_install+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   # Account for people who put trailing slashes in PATH elements.
6961 case $as_dir/ in
6962   ./ | .// | /cC/* | \
6963   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6964   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6965   /usr/ucb/* ) ;;
6966   *)
6967     # OSF1 and SCO ODT 3.0 have their own names for install.
6968     # Don't use installbsd from OSF since it installs stuff as root
6969     # by default.
6970     for ac_prog in ginstall scoinst install; do
6971       for ac_exec_ext in '' $ac_executable_extensions; do
6972         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6973           if test $ac_prog = install &&
6974             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975             # AIX install.  It has an incompatible calling convention.
6976             :
6977           elif test $ac_prog = install &&
6978             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979             # program-specific install script used by HP pwplus--don't use.
6980             :
6981           else
6982             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6983             break 3
6984           fi
6985         fi
6986       done
6987     done
6988     ;;
6989 esac
6990 done
6991 IFS=$as_save_IFS
6992
6993
6994 fi
6995   if test "${ac_cv_path_install+set}" = set; then
6996     INSTALL=$ac_cv_path_install
6997   else
6998     # As a last resort, use the slow shell script.  Don't cache a
6999     # value for INSTALL within a source directory, because that will
7000     # break other packages using the cache if that directory is
7001     # removed, or if the value is a relative name.
7002     INSTALL=$ac_install_sh
7003   fi
7004 fi
7005 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7006 echo "${ECHO_T}$INSTALL" >&6; }
7007
7008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7009 # It thinks the first close brace ends the variable substitution.
7010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7011
7012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7013
7014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7015
7016
7017 # Extract the first word of "bzip2", so it can be a program name with args.
7018 set dummy bzip2; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_BZIP2+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $BZIP2 in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044   ;;
7045 esac
7046 fi
7047 BZIP2=$ac_cv_path_BZIP2
7048 if test -n "$BZIP2"; then
7049   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050 echo "${ECHO_T}$BZIP2" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056
7057 # Extract the first word of "doxygen", so it can be a program name with args.
7058 set dummy doxygen; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   case $DOXYGEN in
7065   [\\/]* | ?:[\\/]*)
7066   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7067   ;;
7068   *)
7069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084   ;;
7085 esac
7086 fi
7087 DOXYGEN=$ac_cv_path_DOXYGEN
7088 if test -n "$DOXYGEN"; then
7089   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7090 echo "${ECHO_T}$DOXYGEN" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096
7097 # Extract the first word of "groff", so it can be a program name with args.
7098 set dummy groff; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_GROFF+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $GROFF in
7105   [\\/]* | ?:[\\/]*)
7106   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7107   ;;
7108   *)
7109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114   for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124   ;;
7125 esac
7126 fi
7127 GROFF=$ac_cv_path_GROFF
7128 if test -n "$GROFF"; then
7129   { echo "$as_me:$LINENO: result: $GROFF" >&5
7130 echo "${ECHO_T}$GROFF" >&6; }
7131 else
7132   { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7135
7136
7137 # Extract the first word of "gzip", so it can be a program name with args.
7138 set dummy gzip; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_GZIP+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   case $GZIP in
7145   [\\/]* | ?:[\\/]*)
7146   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7147   ;;
7148   *)
7149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154   for ac_exec_ext in '' $ac_executable_extensions; do
7155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164   ;;
7165 esac
7166 fi
7167 GZIP=$ac_cv_path_GZIP
7168 if test -n "$GZIP"; then
7169   { echo "$as_me:$LINENO: result: $GZIP" >&5
7170 echo "${ECHO_T}$GZIP" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7174 fi
7175
7176
7177 # Extract the first word of "pod2html", so it can be a program name with args.
7178 set dummy pod2html; 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_POD2HTML+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   case $POD2HTML in
7185   [\\/]* | ?:[\\/]*)
7186   ac_cv_path_POD2HTML="$POD2HTML" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7196     ac_cv_path_POD2HTML="$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   ;;
7205 esac
7206 fi
7207 POD2HTML=$ac_cv_path_POD2HTML
7208 if test -n "$POD2HTML"; then
7209   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7210 echo "${ECHO_T}$POD2HTML" >&6; }
7211 else
7212   { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216
7217 # Extract the first word of "pod2man", so it can be a program name with args.
7218 set dummy pod2man; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_POD2MAN+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   case $POD2MAN in
7225   [\\/]* | ?:[\\/]*)
7226   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7227   ;;
7228   *)
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244   ;;
7245 esac
7246 fi
7247 POD2MAN=$ac_cv_path_POD2MAN
7248 if test -n "$POD2MAN"; then
7249   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7250 echo "${ECHO_T}$POD2MAN" >&6; }
7251 else
7252   { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7255
7256
7257 # Extract the first word of "runtest", so it can be a program name with args.
7258 set dummy runtest; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_RUNTEST+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   case $RUNTEST in
7265   [\\/]* | ?:[\\/]*)
7266   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7267   ;;
7268   *)
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284   ;;
7285 esac
7286 fi
7287 RUNTEST=$ac_cv_path_RUNTEST
7288 if test -n "$RUNTEST"; then
7289   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7290 echo "${ECHO_T}$RUNTEST" >&6; }
7291 else
7292   { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7294 fi
7295
7296
7297
7298 no_itcl=true
7299 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7300 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7301
7302 # Check whether --with-tclinclude was given.
7303 if test "${with_tclinclude+set}" = set; then
7304   withval=$with_tclinclude; with_tclinclude=${withval}
7305 else
7306   with_tclinclude=''
7307 fi
7308
7309 if test "${ac_cv_path_tclsh+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312
7313 if test x"${with_tclinclude}" != x ; then
7314   if test -f ${with_tclinclude}/tclsh ; then
7315     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7316   elif test -f ${with_tclinclude}/src/tclsh ; then
7317     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7318   else
7319     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7320 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7321    { (exit 1); exit 1; }; }
7322   fi
7323 fi
7324
7325 if test x"${ac_cv_path_tclsh}" = x ; then
7326   { echo "$as_me:$LINENO: result: none" >&5
7327 echo "${ECHO_T}none" >&6; }
7328   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
7329 do
7330   # Extract the first word of "$ac_prog", so it can be a program name with args.
7331 set dummy $ac_prog; ac_word=$2
7332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334 if test "${ac_cv_path_TCLSH+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337   case $TCLSH in
7338   [\\/]* | ?:[\\/]*)
7339   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7340   ;;
7341   *)
7342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347   for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354 done
7355 IFS=$as_save_IFS
7356
7357   ;;
7358 esac
7359 fi
7360 TCLSH=$ac_cv_path_TCLSH
7361 if test -n "$TCLSH"; then
7362   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7363 echo "${ECHO_T}$TCLSH" >&6; }
7364 else
7365   { echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6; }
7367 fi
7368
7369
7370   test -n "$TCLSH" && break
7371 done
7372
7373   if test x"${TCLSH}" = x ; then
7374     ac_cv_path_tclsh='';
7375   else
7376     ac_cv_path_tclsh="${TCLSH}";
7377   fi
7378 else
7379   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7380 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7381   TCLSH="${ac_cv_path_tclsh}"
7382
7383 fi
7384
7385 fi
7386
7387 # Extract the first word of "zip", so it can be a program name with args.
7388 set dummy zip; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_ZIP+set}" = set; then
7392   echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394   case $ZIP in
7395   [\\/]* | ?:[\\/]*)
7396   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7397   ;;
7398   *)
7399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404   for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414   ;;
7415 esac
7416 fi
7417 ZIP=$ac_cv_path_ZIP
7418 if test -n "$ZIP"; then
7419   { echo "$as_me:$LINENO: result: $ZIP" >&5
7420 echo "${ECHO_T}$ZIP" >&6; }
7421 else
7422   { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7424 fi
7425
7426
7427 for ac_prog in ocamlc
7428 do
7429   # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433 if test "${ac_cv_path_OCAMLC+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   case $OCAMLC in
7437   [\\/]* | ?:[\\/]*)
7438   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7439   ;;
7440   *)
7441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446   for ac_exec_ext in '' $ac_executable_extensions; do
7447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456   ;;
7457 esac
7458 fi
7459 OCAMLC=$ac_cv_path_OCAMLC
7460 if test -n "$OCAMLC"; then
7461   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7462 echo "${ECHO_T}$OCAMLC" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468
7469   test -n "$OCAMLC" && break
7470 done
7471
7472 for ac_prog in ocamlopt
7473 do
7474   # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   case $OCAMLOPT in
7482   [\\/]* | ?:[\\/]*)
7483   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7484   ;;
7485   *)
7486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491   for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501   ;;
7502 esac
7503 fi
7504 OCAMLOPT=$ac_cv_path_OCAMLOPT
7505 if test -n "$OCAMLOPT"; then
7506   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7507 echo "${ECHO_T}$OCAMLOPT" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513
7514   test -n "$OCAMLOPT" && break
7515 done
7516
7517 for ac_prog in ocamldep
7518 do
7519   # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   case $OCAMLDEP in
7527   [\\/]* | ?:[\\/]*)
7528   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7529   ;;
7530   *)
7531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536   for ac_exec_ext in '' $ac_executable_extensions; do
7537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546   ;;
7547 esac
7548 fi
7549 OCAMLDEP=$ac_cv_path_OCAMLDEP
7550 if test -n "$OCAMLDEP"; then
7551   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7552 echo "${ECHO_T}$OCAMLDEP" >&6; }
7553 else
7554   { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7556 fi
7557
7558
7559   test -n "$OCAMLDEP" && break
7560 done
7561
7562 for ac_prog in ocamldoc
7563 do
7564   # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   case $OCAMLDOC in
7572   [\\/]* | ?:[\\/]*)
7573   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7574   ;;
7575   *)
7576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591   ;;
7592 esac
7593 fi
7594 OCAMLDOC=$ac_cv_path_OCAMLDOC
7595 if test -n "$OCAMLDOC"; then
7596   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7597 echo "${ECHO_T}$OCAMLDOC" >&6; }
7598 else
7599   { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7601 fi
7602
7603
7604   test -n "$OCAMLDOC" && break
7605 done
7606
7607 for ac_prog in gas as
7608 do
7609   # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_GAS+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $GAS in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   ;;
7637 esac
7638 fi
7639 GAS=$ac_cv_path_GAS
7640 if test -n "$GAS"; then
7641   { echo "$as_me:$LINENO: result: $GAS" >&5
7642 echo "${ECHO_T}$GAS" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649   test -n "$GAS" && break
7650 done
7651
7652
7653 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7654 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7655 if test "${llvm_cv_link_use_r+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658    ac_ext=c
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664   oldcflags="$CFLAGS"
7665   CFLAGS="$CFLAGS -Wl,-R."
7666   cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672
7673 int
7674 main ()
7675 {
7676 int main() { return 0; }
7677   ;
7678   return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7683 case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688   (eval "$ac_link") 2>conftest.er1
7689   ac_status=$?
7690   grep -v '^ *+' conftest.er1 >conftest.err
7691   rm -f conftest.er1
7692   cat conftest.err >&5
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } && {
7695          test -z "$ac_c_werror_flag" ||
7696          test ! -s conftest.err
7697        } && test -s conftest$ac_exeext &&
7698        $as_test_x conftest$ac_exeext; then
7699   llvm_cv_link_use_r=yes
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704         llvm_cv_link_use_r=no
7705 fi
7706
7707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7708       conftest$ac_exeext conftest.$ac_ext
7709   CFLAGS="$oldcflags"
7710   ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717 fi
7718 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7720 if test "$llvm_cv_link_use_r" = yes ; then
7721
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_LINK_R 1
7724 _ACEOF
7725
7726   fi
7727
7728
7729 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7730 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7731 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734    ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740   oldcflags="$CFLAGS"
7741   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748
7749 int
7750 main ()
7751 {
7752 int main() { return 0; }
7753   ;
7754   return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7759 case "(($ac_try" in
7760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761   *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764   (eval "$ac_link") 2>conftest.er1
7765   ac_status=$?
7766   grep -v '^ *+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } && {
7771          test -z "$ac_c_werror_flag" ||
7772          test ! -s conftest.err
7773        } && test -s conftest$ac_exeext &&
7774        $as_test_x conftest$ac_exeext; then
7775   llvm_cv_link_use_export_dynamic=yes
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780         llvm_cv_link_use_export_dynamic=no
7781 fi
7782
7783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7784       conftest$ac_exeext conftest.$ac_ext
7785   CFLAGS="$oldcflags"
7786   ac_ext=c
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791
7792
7793 fi
7794 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7795 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7796 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7797
7798 cat >>confdefs.h <<\_ACEOF
7799 #define HAVE_LINK_EXPORT_DYNAMIC 1
7800 _ACEOF
7801
7802   fi
7803
7804
7805
7806
7807 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7809 if test "${ac_cv_c_const+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818
7819 int
7820 main ()
7821 {
7822 /* FIXME: Include the comments suggested by Paul. */
7823 #ifndef __cplusplus
7824   /* Ultrix mips cc rejects this.  */
7825   typedef int charset[2];
7826   const charset cs;
7827   /* SunOS 4.1.1 cc rejects this.  */
7828   char const *const *pcpcc;
7829   char **ppc;
7830   /* NEC SVR4.0.2 mips cc rejects this.  */
7831   struct point {int x, y;};
7832   static struct point const zero = {0,0};
7833   /* AIX XL C 1.02.0.0 rejects this.
7834      It does not let you subtract one const X* pointer from another in
7835      an arm of an if-expression whose if-part is not a constant
7836      expression */
7837   const char *g = "string";
7838   pcpcc = &g + (g ? g-g : 0);
7839   /* HPUX 7.0 cc rejects these. */
7840   ++pcpcc;
7841   ppc = (char**) pcpcc;
7842   pcpcc = (char const *const *) ppc;
7843   { /* SCO 3.2v4 cc rejects this.  */
7844     char *t;
7845     char const *s = 0 ? (char *) 0 : (char const *) 0;
7846
7847     *t++ = 0;
7848     if (s) return 0;
7849   }
7850   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7851     int x[] = {25, 17};
7852     const int *foo = &x[0];
7853     ++foo;
7854   }
7855   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7856     typedef const int *iptr;
7857     iptr p = 0;
7858     ++p;
7859   }
7860   { /* AIX XL C 1.02.0.0 rejects this saying
7861        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7862     struct s { int j; const int *ap[3]; };
7863     struct s *b; b->j = 5;
7864   }
7865   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7866     const int foo = 10;
7867     if (!foo) return 0;
7868   }
7869   return !cs[0] && !zero.x;
7870 #endif
7871
7872   ;
7873   return 0;
7874 }
7875 _ACEOF
7876 rm -f conftest.$ac_objext
7877 if { (ac_try="$ac_compile"
7878 case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_compile") 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } && {
7890          test -z "$ac_c_werror_flag" ||
7891          test ! -s conftest.err
7892        } && test -s conftest.$ac_objext; then
7893   ac_cv_c_const=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898         ac_cv_c_const=no
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 fi
7903 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7904 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7905 if test $ac_cv_c_const = no; then
7906
7907 cat >>confdefs.h <<\_ACEOF
7908 #define const
7909 _ACEOF
7910
7911 fi
7912
7913
7914
7915
7916
7917
7918 ac_header_dirent=no
7919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7920   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7921 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7922 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932 #include <sys/types.h>
7933 #include <$ac_hdr>
7934
7935 int
7936 main ()
7937 {
7938 if ((DIR *) 0)
7939 return 0;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_compile") 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } && {
7958          test -z "$ac_c_werror_flag" ||
7959          test ! -s conftest.err
7960        } && test -s conftest.$ac_objext; then
7961   eval "$as_ac_Header=yes"
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966         eval "$as_ac_Header=no"
7967 fi
7968
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 ac_res=`eval echo '${'$as_ac_Header'}'`
7972                { echo "$as_me:$LINENO: result: $ac_res" >&5
7973 echo "${ECHO_T}$ac_res" >&6; }
7974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7975   cat >>confdefs.h <<_ACEOF
7976 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7977 _ACEOF
7978
7979 ac_header_dirent=$ac_hdr; break
7980 fi
7981
7982 done
7983 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7984 if test $ac_header_dirent = dirent.h; then
7985   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7986 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7987 if test "${ac_cv_search_opendir+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   ac_func_search_save_LIBS=$LIBS
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997
7998 /* Override any GCC internal prototype to avoid an error.
7999    Use char because int might match the return type of a GCC
8000    builtin and then its argument prototype would still apply.  */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 char opendir ();
8005 int
8006 main ()
8007 {
8008 return opendir ();
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 for ac_lib in '' dir; do
8014   if test -z "$ac_lib"; then
8015     ac_res="none required"
8016   else
8017     ac_res=-l$ac_lib
8018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8019   fi
8020   rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_link") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } && {
8034          test -z "$ac_c_werror_flag" ||
8035          test ! -s conftest.err
8036        } && test -s conftest$ac_exeext &&
8037        $as_test_x conftest$ac_exeext; then
8038   ac_cv_search_opendir=$ac_res
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043
8044 fi
8045
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047       conftest$ac_exeext
8048   if test "${ac_cv_search_opendir+set}" = set; then
8049   break
8050 fi
8051 done
8052 if test "${ac_cv_search_opendir+set}" = set; then
8053   :
8054 else
8055   ac_cv_search_opendir=no
8056 fi
8057 rm conftest.$ac_ext
8058 LIBS=$ac_func_search_save_LIBS
8059 fi
8060 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8061 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8062 ac_res=$ac_cv_search_opendir
8063 if test "$ac_res" != no; then
8064   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8065
8066 fi
8067
8068 else
8069   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8070 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8071 if test "${ac_cv_search_opendir+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   ac_func_search_save_LIBS=$LIBS
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081
8082 /* Override any GCC internal prototype to avoid an error.
8083    Use char because int might match the return type of a GCC
8084    builtin and then its argument prototype would still apply.  */
8085 #ifdef __cplusplus
8086 extern "C"
8087 #endif
8088 char opendir ();
8089 int
8090 main ()
8091 {
8092 return opendir ();
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 for ac_lib in '' x; do
8098   if test -z "$ac_lib"; then
8099     ac_res="none required"
8100   else
8101     ac_res=-l$ac_lib
8102     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8103   fi
8104   rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8106 case "(($ac_try" in
8107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108   *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111   (eval "$ac_link") 2>conftest.er1
8112   ac_status=$?
8113   grep -v '^ *+' conftest.er1 >conftest.err
8114   rm -f conftest.er1
8115   cat conftest.err >&5
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } && {
8118          test -z "$ac_c_werror_flag" ||
8119          test ! -s conftest.err
8120        } && test -s conftest$ac_exeext &&
8121        $as_test_x conftest$ac_exeext; then
8122   ac_cv_search_opendir=$ac_res
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127
8128 fi
8129
8130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8131       conftest$ac_exeext
8132   if test "${ac_cv_search_opendir+set}" = set; then
8133   break
8134 fi
8135 done
8136 if test "${ac_cv_search_opendir+set}" = set; then
8137   :
8138 else
8139   ac_cv_search_opendir=no
8140 fi
8141 rm conftest.$ac_ext
8142 LIBS=$ac_func_search_save_LIBS
8143 fi
8144 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8145 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8146 ac_res=$ac_cv_search_opendir
8147 if test "$ac_res" != no; then
8148   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8149
8150 fi
8151
8152 fi
8153
8154
8155 for ac_header in dlfcn.h
8156 do
8157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 fi
8164 ac_res=`eval echo '${'$as_ac_Header'}'`
8165                { echo "$as_me:$LINENO: result: $ac_res" >&5
8166 echo "${ECHO_T}$ac_res" >&6; }
8167 else
8168   # Is the header compilable?
8169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 $ac_includes_default
8178 #include <$ac_header>
8179 _ACEOF
8180 rm -f conftest.$ac_objext
8181 if { (ac_try="$ac_compile"
8182 case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187   (eval "$ac_compile") 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } && {
8194          test -z "$ac_c_werror_flag" ||
8195          test ! -s conftest.err
8196        } && test -s conftest.$ac_objext; then
8197   ac_header_compiler=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202         ac_header_compiler=no
8203 fi
8204
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207 echo "${ECHO_T}$ac_header_compiler" >&6; }
8208
8209 # Is the header present?
8210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218 #include <$ac_header>
8219 _ACEOF
8220 if { (ac_try="$ac_cpp conftest.$ac_ext"
8221 case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8227   ac_status=$?
8228   grep -v '^ *+' conftest.er1 >conftest.err
8229   rm -f conftest.er1
8230   cat conftest.err >&5
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } >/dev/null && {
8233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8234          test ! -s conftest.err
8235        }; then
8236   ac_header_preproc=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241   ac_header_preproc=no
8242 fi
8243
8244 rm -f conftest.err conftest.$ac_ext
8245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8246 echo "${ECHO_T}$ac_header_preproc" >&6; }
8247
8248 # So?  What about this header?
8249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8250   yes:no: )
8251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8255     ac_header_preproc=yes
8256     ;;
8257   no:yes:* )
8258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8270     ( cat <<\_ASBOX
8271 ## ----------------------------------- ##
8272 ## Report this to llvmbugs@cs.uiuc.edu ##
8273 ## ----------------------------------- ##
8274 _ASBOX
8275      ) | sed "s/^/$as_me: WARNING:     /" >&2
8276     ;;
8277 esac
8278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   eval "$as_ac_Header=\$ac_header_preproc"
8284 fi
8285 ac_res=`eval echo '${'$as_ac_Header'}'`
8286                { echo "$as_me:$LINENO: result: $ac_res" >&5
8287 echo "${ECHO_T}$ac_res" >&6; }
8288
8289 fi
8290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8291   cat >>confdefs.h <<_ACEOF
8292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8293 _ACEOF
8294
8295 fi
8296
8297 done
8298
8299 # Check whether --enable-ltdl-install was given.
8300 if test "${enable_ltdl_install+set}" = set; then
8301   enableval=$enable_ltdl_install;
8302 fi
8303
8304
8305  if test x"${enable_ltdl_install-no}" != xno; then
8306   INSTALL_LTDL_TRUE=
8307   INSTALL_LTDL_FALSE='#'
8308 else
8309   INSTALL_LTDL_TRUE='#'
8310   INSTALL_LTDL_FALSE=
8311 fi
8312
8313  if test x"${enable_ltdl_convenience-no}" != xno; then
8314   CONVENIENCE_LTDL_TRUE=
8315   CONVENIENCE_LTDL_FALSE='#'
8316 else
8317   CONVENIENCE_LTDL_TRUE='#'
8318   CONVENIENCE_LTDL_FALSE=
8319 fi
8320
8321
8322 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8323 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8324 library_names_spec=
8325 libname_spec='lib$name'
8326 soname_spec=
8327 shrext_cmds=".so"
8328 postinstall_cmds=
8329 postuninstall_cmds=
8330 finish_cmds=
8331 finish_eval=
8332 shlibpath_var=
8333 shlibpath_overrides_runpath=unknown
8334 version_type=none
8335 dynamic_linker="$host_os ld.so"
8336 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8337 if test "$GCC" = yes; then
8338   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8339   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8340     # if the path contains ";" then we assume it to be the separator
8341     # otherwise default to the standard path separator (i.e. ":") - it is
8342     # assumed that no part of a normal pathname contains ";" but that should
8343     # okay in the real world where ";" in dirpaths is itself problematic.
8344     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8345   else
8346     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8347   fi
8348 else
8349   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8350 fi
8351 need_lib_prefix=unknown
8352 hardcode_into_libs=no
8353
8354 # when you set need_version to no, make sure it does not cause -set_version
8355 # flags to be left without arguments
8356 need_version=unknown
8357
8358 case $host_os in
8359 aix3*)
8360   version_type=linux
8361   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8362   shlibpath_var=LIBPATH
8363
8364   # AIX 3 has no versioning support, so we append a major version to the name.
8365   soname_spec='${libname}${release}${shared_ext}$major'
8366   ;;
8367
8368 aix4* | aix5*)
8369   version_type=linux
8370   need_lib_prefix=no
8371   need_version=no
8372   hardcode_into_libs=yes
8373   if test "$host_cpu" = ia64; then
8374     # AIX 5 supports IA64
8375     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8376     shlibpath_var=LD_LIBRARY_PATH
8377   else
8378     # With GCC up to 2.95.x, collect2 would create an import file
8379     # for dependence libraries.  The import file would start with
8380     # the line `#! .'.  This would cause the generated library to
8381     # depend on `.', always an invalid library.  This was fixed in
8382     # development snapshots of GCC prior to 3.0.
8383     case $host_os in
8384       aix4 | aix4.[01] | aix4.[01].*)
8385       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8386            echo ' yes '
8387            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8388         :
8389       else
8390         can_build_shared=no
8391       fi
8392       ;;
8393     esac
8394     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8395     # soname into executable. Probably we can add versioning support to
8396     # collect2, so additional links can be useful in future.
8397     if test "$aix_use_runtimelinking" = yes; then
8398       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8399       # instead of lib<name>.a to let people know that these are not
8400       # typical AIX shared libraries.
8401       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402     else
8403       # We preserve .a as extension for shared libraries through AIX4.2
8404       # and later when we are not doing run time linking.
8405       library_names_spec='${libname}${release}.a $libname.a'
8406       soname_spec='${libname}${release}${shared_ext}$major'
8407     fi
8408     shlibpath_var=LIBPATH
8409   fi
8410   ;;
8411
8412 amigaos*)
8413   library_names_spec='$libname.ixlibrary $libname.a'
8414   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8415   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'
8416   ;;
8417
8418 beos*)
8419   library_names_spec='${libname}${shared_ext}'
8420   dynamic_linker="$host_os ld.so"
8421   shlibpath_var=LIBRARY_PATH
8422   ;;
8423
8424 bsdi[45]*)
8425   version_type=linux
8426   need_version=no
8427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428   soname_spec='${libname}${release}${shared_ext}$major'
8429   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8430   shlibpath_var=LD_LIBRARY_PATH
8431   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8432   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8433   # the default ld.so.conf also contains /usr/contrib/lib and
8434   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8435   # libtool to hard-code these into programs
8436   ;;
8437
8438 cygwin* | mingw* | pw32*)
8439   version_type=windows
8440   shrext_cmds=".dll"
8441   need_version=no
8442   need_lib_prefix=no
8443
8444   case $GCC,$host_os in
8445   yes,cygwin* | yes,mingw* | yes,pw32*)
8446     library_names_spec='$libname.dll.a'
8447     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8448     postinstall_cmds='base_file=`basename \${file}`~
8449       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8450       dldir=$destdir/`dirname \$dlpath`~
8451       test -d \$dldir || mkdir -p \$dldir~
8452       $install_prog $dir/$dlname \$dldir/$dlname~
8453       chmod a+x \$dldir/$dlname'
8454     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8455       dlpath=$dir/\$dldll~
8456        $rm \$dlpath'
8457     shlibpath_overrides_runpath=yes
8458
8459     case $host_os in
8460     cygwin*)
8461       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8462       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8463       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8464       ;;
8465     mingw*)
8466       # MinGW DLLs use traditional 'lib' prefix
8467       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8468       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8470         # It is most probably a Windows format PATH printed by
8471         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8472         # path with ; separators, and with drive letters. We can handle the
8473         # drive letters (cygwin fileutils understands them), so leave them,
8474         # especially as we might pass files found there to a mingw objdump,
8475         # which wouldn't understand a cygwinified path. Ahh.
8476         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8477       else
8478         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8479       fi
8480       ;;
8481     pw32*)
8482       # pw32 DLLs use 'pw' prefix rather than 'lib'
8483       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8484       ;;
8485     esac
8486     ;;
8487
8488   *)
8489     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8490     ;;
8491   esac
8492   dynamic_linker='Win32 ld.exe'
8493   # FIXME: first we should search . and the directory the executable is in
8494   shlibpath_var=PATH
8495   ;;
8496
8497 darwin* | rhapsody*)
8498   dynamic_linker="$host_os dyld"
8499   version_type=darwin
8500   need_lib_prefix=no
8501   need_version=no
8502   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8503   soname_spec='${libname}${release}${major}$shared_ext'
8504   shlibpath_overrides_runpath=yes
8505   shlibpath_var=DYLD_LIBRARY_PATH
8506   shrext_cmds='.dylib'
8507   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8508   if test "$GCC" = yes; then
8509     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"`
8510   else
8511     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8512   fi
8513   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8514   ;;
8515
8516 dgux*)
8517   version_type=linux
8518   need_lib_prefix=no
8519   need_version=no
8520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8521   soname_spec='${libname}${release}${shared_ext}$major'
8522   shlibpath_var=LD_LIBRARY_PATH
8523   ;;
8524
8525 freebsd1*)
8526   dynamic_linker=no
8527   ;;
8528
8529 kfreebsd*-gnu)
8530   version_type=linux
8531   need_lib_prefix=no
8532   need_version=no
8533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8534   soname_spec='${libname}${release}${shared_ext}$major'
8535   shlibpath_var=LD_LIBRARY_PATH
8536   shlibpath_overrides_runpath=no
8537   hardcode_into_libs=yes
8538   dynamic_linker='GNU ld.so'
8539   ;;
8540
8541 freebsd* | dragonfly*)
8542   # DragonFly does not have aout.  When/if they implement a new
8543   # versioning mechanism, adjust this.
8544   if test -x /usr/bin/objformat; then
8545     objformat=`/usr/bin/objformat`
8546   else
8547     case $host_os in
8548     freebsd[123]*) objformat=aout ;;
8549     *) objformat=elf ;;
8550     esac
8551   fi
8552   version_type=freebsd-$objformat
8553   case $version_type in
8554     freebsd-elf*)
8555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8556       need_version=no
8557       need_lib_prefix=no
8558       ;;
8559     freebsd-*)
8560       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8561       need_version=yes
8562       ;;
8563   esac
8564   shlibpath_var=LD_LIBRARY_PATH
8565   case $host_os in
8566   freebsd2*)
8567     shlibpath_overrides_runpath=yes
8568     ;;
8569   freebsd3.[01]* | freebsdelf3.[01]*)
8570     shlibpath_overrides_runpath=yes
8571     hardcode_into_libs=yes
8572     ;;
8573   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8574   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8575     shlibpath_overrides_runpath=no
8576     hardcode_into_libs=yes
8577     ;;
8578   freebsd*) # from 4.6 on
8579     shlibpath_overrides_runpath=yes
8580     hardcode_into_libs=yes
8581     ;;
8582   esac
8583   ;;
8584
8585 gnu*)
8586   version_type=linux
8587   need_lib_prefix=no
8588   need_version=no
8589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8590   soname_spec='${libname}${release}${shared_ext}$major'
8591   shlibpath_var=LD_LIBRARY_PATH
8592   hardcode_into_libs=yes
8593   ;;
8594
8595 hpux9* | hpux10* | hpux11*)
8596   # Give a soname corresponding to the major version so that dld.sl refuses to
8597   # link against other versions.
8598   version_type=sunos
8599   need_lib_prefix=no
8600   need_version=no
8601   case $host_cpu in
8602   ia64*)
8603     shrext_cmds='.so'
8604     hardcode_into_libs=yes
8605     dynamic_linker="$host_os dld.so"
8606     shlibpath_var=LD_LIBRARY_PATH
8607     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609     soname_spec='${libname}${release}${shared_ext}$major'
8610     if test "X$HPUX_IA64_MODE" = X32; then
8611       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8612     else
8613       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8614     fi
8615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8616     ;;
8617    hppa*64*)
8618      shrext_cmds='.sl'
8619      hardcode_into_libs=yes
8620      dynamic_linker="$host_os dld.sl"
8621      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8622      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8623      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624      soname_spec='${libname}${release}${shared_ext}$major'
8625      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8626      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8627      ;;
8628    *)
8629     shrext_cmds='.sl'
8630     dynamic_linker="$host_os dld.sl"
8631     shlibpath_var=SHLIB_PATH
8632     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634     soname_spec='${libname}${release}${shared_ext}$major'
8635     ;;
8636   esac
8637   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8638   postinstall_cmds='chmod 555 $lib'
8639   ;;
8640
8641 interix3*)
8642   version_type=linux
8643   need_lib_prefix=no
8644   need_version=no
8645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646   soname_spec='${libname}${release}${shared_ext}$major'
8647   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8648   shlibpath_var=LD_LIBRARY_PATH
8649   shlibpath_overrides_runpath=no
8650   hardcode_into_libs=yes
8651   ;;
8652
8653 irix5* | irix6* | nonstopux*)
8654   case $host_os in
8655     nonstopux*) version_type=nonstopux ;;
8656     *)
8657         if test "$lt_cv_prog_gnu_ld" = yes; then
8658                 version_type=linux
8659         else
8660                 version_type=irix
8661         fi ;;
8662   esac
8663   need_lib_prefix=no
8664   need_version=no
8665   soname_spec='${libname}${release}${shared_ext}$major'
8666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8667   case $host_os in
8668   irix5* | nonstopux*)
8669     libsuff= shlibsuff=
8670     ;;
8671   *)
8672     case $LD in # libtool.m4 will add one of these switches to LD
8673     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8674       libsuff= shlibsuff= libmagic=32-bit;;
8675     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8676       libsuff=32 shlibsuff=N32 libmagic=N32;;
8677     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8678       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8679     *) libsuff= shlibsuff= libmagic=never-match;;
8680     esac
8681     ;;
8682   esac
8683   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8684   shlibpath_overrides_runpath=no
8685   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8686   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8687   hardcode_into_libs=yes
8688   ;;
8689
8690 # No shared lib support for Linux oldld, aout, or coff.
8691 linux*oldld* | linux*aout* | linux*coff*)
8692   dynamic_linker=no
8693   ;;
8694
8695 # This must be Linux ELF.
8696 linux*)
8697   version_type=linux
8698   need_lib_prefix=no
8699   need_version=no
8700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701   soname_spec='${libname}${release}${shared_ext}$major'
8702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8703   shlibpath_var=LD_LIBRARY_PATH
8704   shlibpath_overrides_runpath=no
8705   # This implies no fast_install, which is unacceptable.
8706   # Some rework will be needed to allow for fast_install
8707   # before this can be enabled.
8708   hardcode_into_libs=yes
8709
8710   # Append ld.so.conf contents to the search path
8711   if test -f /etc/ld.so.conf; then
8712     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' ' '`
8713     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8714   fi
8715
8716   # We used to test for /lib/ld.so.1 and disable shared libraries on
8717   # powerpc, because MkLinux only supported shared libraries with the
8718   # GNU dynamic linker.  Since this was broken with cross compilers,
8719   # most powerpc-linux boxes support dynamic linking these days and
8720   # people can always --disable-shared, the test was removed, and we
8721   # assume the GNU/Linux dynamic linker is in use.
8722   dynamic_linker='GNU/Linux ld.so'
8723   ;;
8724
8725 knetbsd*-gnu)
8726   version_type=linux
8727   need_lib_prefix=no
8728   need_version=no
8729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8730   soname_spec='${libname}${release}${shared_ext}$major'
8731   shlibpath_var=LD_LIBRARY_PATH
8732   shlibpath_overrides_runpath=no
8733   hardcode_into_libs=yes
8734   dynamic_linker='GNU ld.so'
8735   ;;
8736
8737 netbsd*)
8738   version_type=sunos
8739   need_lib_prefix=no
8740   need_version=no
8741   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8743     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8744     dynamic_linker='NetBSD (a.out) ld.so'
8745   else
8746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8747     soname_spec='${libname}${release}${shared_ext}$major'
8748     dynamic_linker='NetBSD ld.elf_so'
8749   fi
8750   shlibpath_var=LD_LIBRARY_PATH
8751   shlibpath_overrides_runpath=yes
8752   hardcode_into_libs=yes
8753   ;;
8754
8755 newsos6)
8756   version_type=linux
8757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758   shlibpath_var=LD_LIBRARY_PATH
8759   shlibpath_overrides_runpath=yes
8760   ;;
8761
8762 nto-qnx*)
8763   version_type=linux
8764   need_lib_prefix=no
8765   need_version=no
8766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767   soname_spec='${libname}${release}${shared_ext}$major'
8768   shlibpath_var=LD_LIBRARY_PATH
8769   shlibpath_overrides_runpath=yes
8770   ;;
8771
8772 openbsd*)
8773   version_type=sunos
8774   sys_lib_dlsearch_path_spec="/usr/lib"
8775   need_lib_prefix=no
8776   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8777   case $host_os in
8778     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8779     *)                         need_version=no  ;;
8780   esac
8781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8782   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8783   shlibpath_var=LD_LIBRARY_PATH
8784   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8785     case $host_os in
8786       openbsd2.[89] | openbsd2.[89].*)
8787         shlibpath_overrides_runpath=no
8788         ;;
8789       *)
8790         shlibpath_overrides_runpath=yes
8791         ;;
8792       esac
8793   else
8794     shlibpath_overrides_runpath=yes
8795   fi
8796   ;;
8797
8798 os2*)
8799   libname_spec='$name'
8800   shrext_cmds=".dll"
8801   need_lib_prefix=no
8802   library_names_spec='$libname${shared_ext} $libname.a'
8803   dynamic_linker='OS/2 ld.exe'
8804   shlibpath_var=LIBPATH
8805   ;;
8806
8807 osf3* | osf4* | osf5*)
8808   version_type=osf
8809   need_lib_prefix=no
8810   need_version=no
8811   soname_spec='${libname}${release}${shared_ext}$major'
8812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813   shlibpath_var=LD_LIBRARY_PATH
8814   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8815   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8816   ;;
8817
8818 solaris*)
8819   version_type=linux
8820   need_lib_prefix=no
8821   need_version=no
8822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823   soname_spec='${libname}${release}${shared_ext}$major'
8824   shlibpath_var=LD_LIBRARY_PATH
8825   shlibpath_overrides_runpath=yes
8826   hardcode_into_libs=yes
8827   # ldd complains unless libraries are executable
8828   postinstall_cmds='chmod +x $lib'
8829   ;;
8830
8831 sunos4*)
8832   version_type=sunos
8833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8834   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8835   shlibpath_var=LD_LIBRARY_PATH
8836   shlibpath_overrides_runpath=yes
8837   if test "$with_gnu_ld" = yes; then
8838     need_lib_prefix=no
8839   fi
8840   need_version=yes
8841   ;;
8842
8843 sysv4 | sysv4.3*)
8844   version_type=linux
8845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846   soname_spec='${libname}${release}${shared_ext}$major'
8847   shlibpath_var=LD_LIBRARY_PATH
8848   case $host_vendor in
8849     sni)
8850       shlibpath_overrides_runpath=no
8851       need_lib_prefix=no
8852       export_dynamic_flag_spec='${wl}-Blargedynsym'
8853       runpath_var=LD_RUN_PATH
8854       ;;
8855     siemens)
8856       need_lib_prefix=no
8857       ;;
8858     motorola)
8859       need_lib_prefix=no
8860       need_version=no
8861       shlibpath_overrides_runpath=no
8862       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8863       ;;
8864   esac
8865   ;;
8866
8867 sysv4*MP*)
8868   if test -d /usr/nec ;then
8869     version_type=linux
8870     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8871     soname_spec='$libname${shared_ext}.$major'
8872     shlibpath_var=LD_LIBRARY_PATH
8873   fi
8874   ;;
8875
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8877   version_type=freebsd-elf
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881   soname_spec='${libname}${release}${shared_ext}$major'
8882   shlibpath_var=LD_LIBRARY_PATH
8883   hardcode_into_libs=yes
8884   if test "$with_gnu_ld" = yes; then
8885     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8886     shlibpath_overrides_runpath=no
8887   else
8888     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8889     shlibpath_overrides_runpath=yes
8890     case $host_os in
8891       sco3.2v5*)
8892         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8893         ;;
8894     esac
8895   fi
8896   sys_lib_dlsearch_path_spec='/usr/lib'
8897   ;;
8898
8899 uts4*)
8900   version_type=linux
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 *)
8907   dynamic_linker=no
8908   ;;
8909 esac
8910 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8911 echo "${ECHO_T}$dynamic_linker" >&6; }
8912 test "$dynamic_linker" = no && can_build_shared=no
8913
8914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8915 if test "$GCC" = yes; then
8916   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8917 fi
8918
8919
8920 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8921 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8922 if test "${libltdl_cv_shlibext+set}" = set; then
8923   echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925
8926 module=yes
8927 eval libltdl_cv_shlibext=$shrext_cmds
8928
8929 fi
8930 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8931 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8932 if test -n "$libltdl_cv_shlibext"; then
8933
8934 cat >>confdefs.h <<_ACEOF
8935 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8936 _ACEOF
8937
8938 fi
8939
8940
8941 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8942 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8943 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   libltdl_cv_shlibpath_var="$shlibpath_var"
8947 fi
8948 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8949 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8950 if test -n "$libltdl_cv_shlibpath_var"; then
8951
8952 cat >>confdefs.h <<_ACEOF
8953 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8954 _ACEOF
8955
8956 fi
8957
8958
8959 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8960 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8961 if test "${libltdl_cv_sys_search_path+set}" = set; then
8962   echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8965 fi
8966 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8967 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8968 if test -n "$libltdl_cv_sys_search_path"; then
8969   sys_search_path=
8970   for dir in $libltdl_cv_sys_search_path; do
8971     if test -z "$sys_search_path"; then
8972       sys_search_path="$dir"
8973     else
8974       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8975     fi
8976   done
8977
8978 cat >>confdefs.h <<_ACEOF
8979 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8980 _ACEOF
8981
8982 fi
8983
8984 { echo "$as_me:$LINENO: checking for objdir" >&5
8985 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8986 if test "${libltdl_cv_objdir+set}" = set; then
8987   echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989   libltdl_cv_objdir="$objdir"
8990   if test -n "$objdir"; then
8991     :
8992   else
8993     rm -f .libs 2>/dev/null
8994     mkdir .libs 2>/dev/null
8995     if test -d .libs; then
8996       libltdl_cv_objdir=.libs
8997     else
8998       # MS-DOS does not allow filenames that begin with a dot.
8999       libltdl_cv_objdir=_libs
9000     fi
9001   rmdir .libs 2>/dev/null
9002   fi
9003
9004 fi
9005 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9006 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9007
9008 cat >>confdefs.h <<_ACEOF
9009 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9010 _ACEOF
9011
9012
9013
9014
9015
9016
9017 # Check for command to grab the raw symbol name followed by C symbol from nm.
9018 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9019 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9020 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9021   echo $ECHO_N "(cached) $ECHO_C" >&6
9022 else
9023
9024 # These are sane defaults that work on at least a few old systems.
9025 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9026
9027 # Character class describing NM global symbol codes.
9028 symcode='[BCDEGRST]'
9029
9030 # Regexp to match symbols that can be accessed directly from C.
9031 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9032
9033 # Transform an extracted symbol line into a proper C declaration
9034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9035
9036 # Transform an extracted symbol line into symbol name and symbol address
9037 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'"
9038
9039 # Define system-specific variables.
9040 case $host_os in
9041 aix*)
9042   symcode='[BCDT]'
9043   ;;
9044 cygwin* | mingw* | pw32*)
9045   symcode='[ABCDGISTW]'
9046   ;;
9047 hpux*) # Its linker distinguishes data from code symbols
9048   if test "$host_cpu" = ia64; then
9049     symcode='[ABCDEGRST]'
9050   fi
9051   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9052   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'"
9053   ;;
9054 linux*)
9055   if test "$host_cpu" = ia64; then
9056     symcode='[ABCDGIRSTW]'
9057     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9058     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'"
9059   fi
9060   ;;
9061 irix* | nonstopux*)
9062   symcode='[BCDEGRST]'
9063   ;;
9064 osf*)
9065   symcode='[BCDEGQRST]'
9066   ;;
9067 solaris*)
9068   symcode='[BDRT]'
9069   ;;
9070 sco3.2v5*)
9071   symcode='[DT]'
9072   ;;
9073 sysv4.2uw2*)
9074   symcode='[DT]'
9075   ;;
9076 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9077   symcode='[ABDT]'
9078   ;;
9079 sysv4)
9080   symcode='[DFNSTU]'
9081   ;;
9082 esac
9083
9084 # Handle CRLF in mingw tool chain
9085 opt_cr=
9086 case $build_os in
9087 mingw*)
9088   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9089   ;;
9090 esac
9091
9092 # If we're using GNU nm, then use its standard symbol codes.
9093 case `$NM -V 2>&1` in
9094 *GNU* | *'with BFD'*)
9095   symcode='[ABCDGIRSTW]' ;;
9096 esac
9097
9098 # Try without a prefix undercore, then with it.
9099 for ac_symprfx in "" "_"; do
9100
9101   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9102   symxfrm="\\1 $ac_symprfx\\2 \\2"
9103
9104   # Write the raw and C identifiers.
9105   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9106
9107   # Check to see that the pipe works correctly.
9108   pipe_works=no
9109
9110   rm -f conftest*
9111   cat > conftest.$ac_ext <<EOF
9112 #ifdef __cplusplus
9113 extern "C" {
9114 #endif
9115 char nm_test_var;
9116 void nm_test_func(){}
9117 #ifdef __cplusplus
9118 }
9119 #endif
9120 int main(){nm_test_var='a';nm_test_func();return(0);}
9121 EOF
9122
9123   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124   (eval $ac_compile) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; then
9128     # Now try to grab the symbols.
9129     nlist=conftest.nm
9130     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9131   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } && test -s "$nlist"; then
9135       # Try sorting and uniquifying the output.
9136       if sort "$nlist" | uniq > "$nlist"T; then
9137         mv -f "$nlist"T "$nlist"
9138       else
9139         rm -f "$nlist"T
9140       fi
9141
9142       # Make sure that we snagged all the symbols we need.
9143       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9144         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9145           cat <<EOF > conftest.$ac_ext
9146 #ifdef __cplusplus
9147 extern "C" {
9148 #endif
9149
9150 EOF
9151           # Now generate the symbol file.
9152           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9153
9154           cat <<EOF >> conftest.$ac_ext
9155 #if defined (__STDC__) && __STDC__
9156 # define lt_ptr_t void *
9157 #else
9158 # define lt_ptr_t char *
9159 # define const
9160 #endif
9161
9162 /* The mapping between symbol names and symbols. */
9163 const struct {
9164   const char *name;
9165   lt_ptr_t address;
9166 }
9167 lt_preloaded_symbols[] =
9168 {
9169 EOF
9170           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9171           cat <<\EOF >> conftest.$ac_ext
9172   {0, (lt_ptr_t) 0}
9173 };
9174
9175 #ifdef __cplusplus
9176 }
9177 #endif
9178 EOF
9179           # Now try linking the two files.
9180           mv conftest.$ac_objext conftstm.$ac_objext
9181           lt_save_LIBS="$LIBS"
9182           lt_save_CFLAGS="$CFLAGS"
9183           LIBS="conftstm.$ac_objext"
9184           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9185           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186   (eval $ac_link) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9190             pipe_works=yes
9191           fi
9192           LIBS="$lt_save_LIBS"
9193           CFLAGS="$lt_save_CFLAGS"
9194         else
9195           echo "cannot find nm_test_func in $nlist" >&5
9196         fi
9197       else
9198         echo "cannot find nm_test_var in $nlist" >&5
9199       fi
9200     else
9201       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9202     fi
9203   else
9204     echo "$progname: failed program was:" >&5
9205     cat conftest.$ac_ext >&5
9206   fi
9207   rm -f conftest* conftst*
9208
9209   # Do not use the global_symbol_pipe unless it works.
9210   if test "$pipe_works" = yes; then
9211     break
9212   else
9213     lt_cv_sys_global_symbol_pipe=
9214   fi
9215 done
9216
9217 fi
9218
9219 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9220   lt_cv_sys_global_symbol_to_cdecl=
9221 fi
9222 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9223   { echo "$as_me:$LINENO: result: failed" >&5
9224 echo "${ECHO_T}failed" >&6; }
9225 else
9226   { echo "$as_me:$LINENO: result: ok" >&5
9227 echo "${ECHO_T}ok" >&6; }
9228 fi
9229
9230
9231 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9232 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9233 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9237     libltdl_cv_preloaded_symbols=yes
9238   else
9239     libltdl_cv_preloaded_symbols=no
9240   fi
9241
9242 fi
9243 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9244 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9245 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9246
9247 cat >>confdefs.h <<\_ACEOF
9248 #define HAVE_PRELOADED_SYMBOLS 1
9249 _ACEOF
9250
9251 fi
9252
9253 LIBADD_DL=
9254
9255 ac_ext=c
9256 ac_cpp='$CPP $CPPFLAGS'
9257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9260
9261
9262 { echo "$as_me:$LINENO: checking for shl_load" >&5
9263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9264 if test "${ac_cv_func_shl_load+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9275 #define shl_load innocuous_shl_load
9276
9277 /* System header to define __stub macros and hopefully few prototypes,
9278     which can conflict with char shl_load (); below.
9279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280     <limits.h> exists even on freestanding compilers.  */
9281
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9287
9288 #undef shl_load
9289
9290 /* Override any GCC internal prototype to avoid an error.
9291    Use char because int might match the return type of a GCC
9292    builtin and then its argument prototype would still apply.  */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 char shl_load ();
9297 /* The GNU C library defines this for functions which it implements
9298     to always fail with ENOSYS.  Some functions are actually named
9299     something starting with __ and the normal name is an alias.  */
9300 #if defined __stub_shl_load || defined __stub___shl_load
9301 choke me
9302 #endif
9303
9304 int
9305 main ()
9306 {
9307 return shl_load ();
9308   ;
9309   return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (ac_try="$ac_link"
9314 case "(($ac_try" in
9315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316   *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319   (eval "$ac_link") 2>conftest.er1
9320   ac_status=$?
9321   grep -v '^ *+' conftest.er1 >conftest.err
9322   rm -f conftest.er1
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } && {
9326          test -z "$ac_c_werror_flag" ||
9327          test ! -s conftest.err
9328        } && test -s conftest$ac_exeext &&
9329        $as_test_x conftest$ac_exeext; then
9330   ac_cv_func_shl_load=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335         ac_cv_func_shl_load=no
9336 fi
9337
9338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9339       conftest$ac_exeext conftest.$ac_ext
9340 fi
9341 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9342 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9343 if test $ac_cv_func_shl_load = yes; then
9344
9345 cat >>confdefs.h <<\_ACEOF
9346 #define HAVE_SHL_LOAD 1
9347 _ACEOF
9348
9349 else
9350   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9351 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9352 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9353   echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355   ac_check_lib_save_LIBS=$LIBS
9356 LIBS="-ldld  $LIBS"
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h.  */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h.  */
9363
9364 /* Override any GCC internal prototype to avoid an error.
9365    Use char because int might match the return type of a GCC
9366    builtin and then its argument prototype would still apply.  */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 char shl_load ();
9371 int
9372 main ()
9373 {
9374 return shl_load ();
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (ac_try="$ac_link"
9381 case "(($ac_try" in
9382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383   *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386   (eval "$ac_link") 2>conftest.er1
9387   ac_status=$?
9388   grep -v '^ *+' conftest.er1 >conftest.err
9389   rm -f conftest.er1
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } && {
9393          test -z "$ac_c_werror_flag" ||
9394          test ! -s conftest.err
9395        } && test -s conftest$ac_exeext &&
9396        $as_test_x conftest$ac_exeext; then
9397   ac_cv_lib_dld_shl_load=yes
9398 else
9399   echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9401
9402         ac_cv_lib_dld_shl_load=no
9403 fi
9404
9405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9406       conftest$ac_exeext conftest.$ac_ext
9407 LIBS=$ac_check_lib_save_LIBS
9408 fi
9409 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9410 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9411 if test $ac_cv_lib_dld_shl_load = yes; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_SHL_LOAD 1
9415 _ACEOF
9416
9417         LIBADD_DL="$LIBADD_DL -ldld"
9418 else
9419   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9420 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-ldl  $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432
9433 /* Override any GCC internal prototype to avoid an error.
9434    Use char because int might match the return type of a GCC
9435    builtin and then its argument prototype would still apply.  */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char dlopen ();
9440 int
9441 main ()
9442 {
9443 return dlopen ();
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_link") 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } && {
9462          test -z "$ac_c_werror_flag" ||
9463          test ! -s conftest.err
9464        } && test -s conftest$ac_exeext &&
9465        $as_test_x conftest$ac_exeext; then
9466   ac_cv_lib_dl_dlopen=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471         ac_cv_lib_dl_dlopen=no
9472 fi
9473
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475       conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9477 fi
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9480 if test $ac_cv_lib_dl_dlopen = yes; then
9481
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_LIBDL 1
9484 _ACEOF
9485
9486                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 #if HAVE_DLFCN_H
9495 #  include <dlfcn.h>
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501 dlopen(0, 0);
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513   (eval "$ac_link") 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } && {
9520          test -z "$ac_c_werror_flag" ||
9521          test ! -s conftest.err
9522        } && test -s conftest$ac_exeext &&
9523        $as_test_x conftest$ac_exeext; then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_LIBDL 1
9527 _ACEOF
9528  libltdl_cv_func_dlopen="yes"
9529 else
9530   echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9534 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9535 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-lsvld  $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546
9547 /* Override any GCC internal prototype to avoid an error.
9548    Use char because int might match the return type of a GCC
9549    builtin and then its argument prototype would still apply.  */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char dlopen ();
9554 int
9555 main ()
9556 {
9557 return dlopen ();
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9564 case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_link") 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } && {
9576          test -z "$ac_c_werror_flag" ||
9577          test ! -s conftest.err
9578        } && test -s conftest$ac_exeext &&
9579        $as_test_x conftest$ac_exeext; then
9580   ac_cv_lib_svld_dlopen=yes
9581 else
9582   echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585         ac_cv_lib_svld_dlopen=no
9586 fi
9587
9588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9589       conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$ac_check_lib_save_LIBS
9591 fi
9592 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9593 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9594 if test $ac_cv_lib_svld_dlopen = yes; then
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_LIBDL 1
9598 _ACEOF
9599
9600                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9601 else
9602   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607   ac_check_lib_save_LIBS=$LIBS
9608 LIBS="-ldld  $LIBS"
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615
9616 /* Override any GCC internal prototype to avoid an error.
9617    Use char because int might match the return type of a GCC
9618    builtin and then its argument prototype would still apply.  */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char dld_link ();
9623 int
9624 main ()
9625 {
9626 return dld_link ();
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9633 case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_link") 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } && {
9645          test -z "$ac_c_werror_flag" ||
9646          test ! -s conftest.err
9647        } && test -s conftest$ac_exeext &&
9648        $as_test_x conftest$ac_exeext; then
9649   ac_cv_lib_dld_dld_link=yes
9650 else
9651   echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654         ac_cv_lib_dld_dld_link=no
9655 fi
9656
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658       conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9660 fi
9661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9662 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9663 if test $ac_cv_lib_dld_dld_link = yes; then
9664
9665 cat >>confdefs.h <<\_ACEOF
9666 #define HAVE_DLD 1
9667 _ACEOF
9668
9669                 LIBADD_DL="$LIBADD_DL -ldld"
9670 else
9671   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9672 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9673 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9684 #define _dyld_func_lookup innocuous__dyld_func_lookup
9685
9686 /* System header to define __stub macros and hopefully few prototypes,
9687     which can conflict with char _dyld_func_lookup (); below.
9688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689     <limits.h> exists even on freestanding compilers.  */
9690
9691 #ifdef __STDC__
9692 # include <limits.h>
9693 #else
9694 # include <assert.h>
9695 #endif
9696
9697 #undef _dyld_func_lookup
9698
9699 /* Override any GCC internal prototype to avoid an error.
9700    Use char because int might match the return type of a GCC
9701    builtin and then its argument prototype would still apply.  */
9702 #ifdef __cplusplus
9703 extern "C"
9704 #endif
9705 char _dyld_func_lookup ();
9706 /* The GNU C library defines this for functions which it implements
9707     to always fail with ENOSYS.  Some functions are actually named
9708     something starting with __ and the normal name is an alias.  */
9709 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9710 choke me
9711 #endif
9712
9713 int
9714 main ()
9715 {
9716 return _dyld_func_lookup ();
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725   *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728   (eval "$ac_link") 2>conftest.er1
9729   ac_status=$?
9730   grep -v '^ *+' conftest.er1 >conftest.err
9731   rm -f conftest.er1
9732   cat conftest.err >&5
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } && {
9735          test -z "$ac_c_werror_flag" ||
9736          test ! -s conftest.err
9737        } && test -s conftest$ac_exeext &&
9738        $as_test_x conftest$ac_exeext; then
9739   ac_cv_func__dyld_func_lookup=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744         ac_cv_func__dyld_func_lookup=no
9745 fi
9746
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748       conftest$ac_exeext conftest.$ac_ext
9749 fi
9750 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9751 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9752 if test $ac_cv_func__dyld_func_lookup = yes; then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_DYLD 1
9756 _ACEOF
9757
9758 fi
9759
9760
9761 fi
9762
9763
9764 fi
9765
9766
9767 fi
9768
9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770       conftest$ac_exeext conftest.$ac_ext
9771
9772 fi
9773
9774
9775 fi
9776
9777
9778 fi
9779
9780
9781 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9782 then
9783   lt_save_LIBS="$LIBS"
9784   LIBS="$LIBS $LIBADD_DL"
9785
9786 for ac_func in dlerror
9787 do
9788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9802 #define $ac_func innocuous_$ac_func
9803
9804 /* System header to define __stub macros and hopefully few prototypes,
9805     which can conflict with char $ac_func (); below.
9806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807     <limits.h> exists even on freestanding compilers.  */
9808
9809 #ifdef __STDC__
9810 # include <limits.h>
9811 #else
9812 # include <assert.h>
9813 #endif
9814
9815 #undef $ac_func
9816
9817 /* Override any GCC internal prototype to avoid an error.
9818    Use char because int might match the return type of a GCC
9819    builtin and then its argument prototype would still apply.  */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 char $ac_func ();
9824 /* The GNU C library defines this for functions which it implements
9825     to always fail with ENOSYS.  Some functions are actually named
9826     something starting with __ and the normal name is an alias.  */
9827 #if defined __stub_$ac_func || defined __stub___$ac_func
9828 choke me
9829 #endif
9830
9831 int
9832 main ()
9833 {
9834 return $ac_func ();
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9841 case "(($ac_try" in
9842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843   *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846   (eval "$ac_link") 2>conftest.er1
9847   ac_status=$?
9848   grep -v '^ *+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } && {
9853          test -z "$ac_c_werror_flag" ||
9854          test ! -s conftest.err
9855        } && test -s conftest$ac_exeext &&
9856        $as_test_x conftest$ac_exeext; then
9857   eval "$as_ac_var=yes"
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862         eval "$as_ac_var=no"
9863 fi
9864
9865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866       conftest$ac_exeext conftest.$ac_ext
9867 fi
9868 ac_res=`eval echo '${'$as_ac_var'}'`
9869                { echo "$as_me:$LINENO: result: $ac_res" >&5
9870 echo "${ECHO_T}$ac_res" >&6; }
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872   cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874 _ACEOF
9875
9876 fi
9877 done
9878
9879   LIBS="$lt_save_LIBS"
9880 fi
9881 ac_ext=c
9882 ac_cpp='$CPP $CPPFLAGS'
9883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9886
9887
9888
9889 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9890 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9891 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   ac_cv_sys_symbol_underscore=no
9895   cat > conftest.$ac_ext <<EOF
9896 void nm_test_func(){}
9897 int main(){nm_test_func;return 0;}
9898 EOF
9899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900   (eval $ac_compile) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; then
9904     # Now try to grab the symbols.
9905     ac_nlist=conftest.nm
9906     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9907   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } && test -s "$ac_nlist"; then
9911       # See whether the symbols have a leading underscore.
9912       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9913         ac_cv_sys_symbol_underscore=yes
9914       else
9915         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9916           :
9917         else
9918           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9919         fi
9920       fi
9921     else
9922       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9923     fi
9924   else
9925     echo "configure: failed program was:" >&5
9926     cat conftest.c >&5
9927   fi
9928   rm -rf conftest*
9929
9930 fi
9931 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9932 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9933
9934
9935 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9936   if test x"$libltdl_cv_func_dlopen" = xyes ||
9937      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9938         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9939 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9940 if test "${libltdl_cv_need_uscore+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   libltdl_cv_need_uscore=unknown
9944           save_LIBS="$LIBS"
9945           LIBS="$LIBS $LIBADD_DL"
9946           if test "$cross_compiling" = yes; then :
9947   libltdl_cv_need_uscore=cross
9948 else
9949   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9950   lt_status=$lt_dlunknown
9951   cat > conftest.$ac_ext <<EOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9954
9955 #if HAVE_DLFCN_H
9956 #include <dlfcn.h>
9957 #endif
9958
9959 #include <stdio.h>
9960
9961 #ifdef RTLD_GLOBAL
9962 #  define LT_DLGLOBAL           RTLD_GLOBAL
9963 #else
9964 #  ifdef DL_GLOBAL
9965 #    define LT_DLGLOBAL         DL_GLOBAL
9966 #  else
9967 #    define LT_DLGLOBAL         0
9968 #  endif
9969 #endif
9970
9971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9972    find out it does not work in some platform. */
9973 #ifndef LT_DLLAZY_OR_NOW
9974 #  ifdef RTLD_LAZY
9975 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9976 #  else
9977 #    ifdef DL_LAZY
9978 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9979 #    else
9980 #      ifdef RTLD_NOW
9981 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9982 #      else
9983 #        ifdef DL_NOW
9984 #          define LT_DLLAZY_OR_NOW      DL_NOW
9985 #        else
9986 #          define LT_DLLAZY_OR_NOW      0
9987 #        endif
9988 #      endif
9989 #    endif
9990 #  endif
9991 #endif
9992
9993 #ifdef __cplusplus
9994 extern "C" void exit (int);
9995 #endif
9996
9997 void fnord() { int i=42;}
9998 int main ()
9999 {
10000   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10001   int status = $lt_dlunknown;
10002
10003   if (self)
10004     {
10005       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10006       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10007       /* dlclose (self); */
10008     }
10009   else
10010     puts (dlerror ());
10011
10012     exit (status);
10013 }
10014 EOF
10015   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10020     (./conftest; exit; ) >&5 2>/dev/null
10021     lt_status=$?
10022     case x$lt_status in
10023       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10024       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10025       x$lt_dlunknown|x*)  ;;
10026     esac
10027   else :
10028     # compilation failed
10029
10030   fi
10031 fi
10032 rm -fr conftest*
10033
10034           LIBS="$save_LIBS"
10035
10036 fi
10037 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10038 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10039   fi
10040 fi
10041
10042 if test x"$libltdl_cv_need_uscore" = xyes; then
10043
10044 cat >>confdefs.h <<\_ACEOF
10045 #define NEED_USCORE 1
10046 _ACEOF
10047
10048 fi
10049
10050
10051 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10052 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10053 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   # PORTME does your system automatically load deplibs for dlopen?
10057   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10058   # For now, we just catch OSes we know something about -- in the
10059   # future, we'll try test this programmatically.
10060   libltdl_cv_sys_dlopen_deplibs=unknown
10061   case "$host_os" in
10062   aix3*|aix4.1.*|aix4.2.*)
10063     # Unknown whether this is true for these versions of AIX, but
10064     # we want this `case' here to explicitly catch those versions.
10065     libltdl_cv_sys_dlopen_deplibs=unknown
10066     ;;
10067   aix[45]*)
10068     libltdl_cv_sys_dlopen_deplibs=yes
10069     ;;
10070   darwin*)
10071     # Assuming the user has installed a libdl from somewhere, this is true
10072     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10073     libltdl_cv_sys_dlopen_deplibs=yes
10074     ;;
10075   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10076     # GNU and its variants, using gnu ld.so (Glibc)
10077     libltdl_cv_sys_dlopen_deplibs=yes
10078     ;;
10079   hpux10*|hpux11*)
10080     libltdl_cv_sys_dlopen_deplibs=yes
10081     ;;
10082   interix*)
10083     libltdl_cv_sys_dlopen_deplibs=yes
10084     ;;
10085   irix[12345]*|irix6.[01]*)
10086     # Catch all versions of IRIX before 6.2, and indicate that we don't
10087     # know how it worked for any of those versions.
10088     libltdl_cv_sys_dlopen_deplibs=unknown
10089     ;;
10090   irix*)
10091     # The case above catches anything before 6.2, and it's known that
10092     # at 6.2 and later dlopen does load deplibs.
10093     libltdl_cv_sys_dlopen_deplibs=yes
10094     ;;
10095   netbsd*)
10096     libltdl_cv_sys_dlopen_deplibs=yes
10097     ;;
10098   openbsd*)
10099     libltdl_cv_sys_dlopen_deplibs=yes
10100     ;;
10101   osf[1234]*)
10102     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10103     # it did *not* use an RPATH in a shared library to find objects the
10104     # library depends on, so we explictly say `no'.
10105     libltdl_cv_sys_dlopen_deplibs=no
10106     ;;
10107   osf5.0|osf5.0a|osf5.1)
10108     # dlopen *does* load deplibs and with the right loader patch applied
10109     # it even uses RPATH in a shared library to search for shared objects
10110     # that the library depends on, but there's no easy way to know if that
10111     # patch is installed.  Since this is the case, all we can really
10112     # say is unknown -- it depends on the patch being installed.  If
10113     # it is, this changes to `yes'.  Without it, it would be `no'.
10114     libltdl_cv_sys_dlopen_deplibs=unknown
10115     ;;
10116   osf*)
10117     # the two cases above should catch all versions of osf <= 5.1.  Read
10118     # the comments above for what we know about them.
10119     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10120     # is used to find them so we can finally say `yes'.
10121     libltdl_cv_sys_dlopen_deplibs=yes
10122     ;;
10123   solaris*)
10124     libltdl_cv_sys_dlopen_deplibs=yes
10125     ;;
10126   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10127     libltdl_cv_sys_dlopen_deplibs=yes
10128     ;;
10129   esac
10130
10131 fi
10132 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10133 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10134 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define LTDL_DLOPEN_DEPLIBS 1
10138 _ACEOF
10139
10140 fi
10141
10142
10143 for ac_header in argz.h
10144 do
10145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 fi
10152 ac_res=`eval echo '${'$as_ac_Header'}'`
10153                { echo "$as_me:$LINENO: result: $ac_res" >&5
10154 echo "${ECHO_T}$ac_res" >&6; }
10155 else
10156   # Is the header compilable?
10157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 $ac_includes_default
10166 #include <$ac_header>
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_compile") 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } && {
10182          test -z "$ac_c_werror_flag" ||
10183          test ! -s conftest.err
10184        } && test -s conftest.$ac_objext; then
10185   ac_header_compiler=yes
10186 else
10187   echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190         ac_header_compiler=no
10191 fi
10192
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195 echo "${ECHO_T}$ac_header_compiler" >&6; }
10196
10197 # Is the header present?
10198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 #include <$ac_header>
10207 _ACEOF
10208 if { (ac_try="$ac_cpp conftest.$ac_ext"
10209 case "(($ac_try" in
10210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211   *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215   ac_status=$?
10216   grep -v '^ *+' conftest.er1 >conftest.err
10217   rm -f conftest.er1
10218   cat conftest.err >&5
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); } >/dev/null && {
10221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222          test ! -s conftest.err
10223        }; then
10224   ac_header_preproc=yes
10225 else
10226   echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229   ac_header_preproc=no
10230 fi
10231
10232 rm -f conftest.err conftest.$ac_ext
10233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234 echo "${ECHO_T}$ac_header_preproc" >&6; }
10235
10236 # So?  What about this header?
10237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238   yes:no: )
10239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243     ac_header_preproc=yes
10244     ;;
10245   no:yes:* )
10246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10258     ( cat <<\_ASBOX
10259 ## ----------------------------------- ##
10260 ## Report this to llvmbugs@cs.uiuc.edu ##
10261 ## ----------------------------------- ##
10262 _ASBOX
10263      ) | sed "s/^/$as_me: WARNING:     /" >&2
10264     ;;
10265 esac
10266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   eval "$as_ac_Header=\$ac_header_preproc"
10272 fi
10273 ac_res=`eval echo '${'$as_ac_Header'}'`
10274                { echo "$as_me:$LINENO: result: $ac_res" >&5
10275 echo "${ECHO_T}$ac_res" >&6; }
10276
10277 fi
10278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279   cat >>confdefs.h <<_ACEOF
10280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10282
10283 fi
10284
10285 done
10286
10287
10288 { echo "$as_me:$LINENO: checking for error_t" >&5
10289 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10290 if test "${ac_cv_type_error_t+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 #if HAVE_ARGZ_H
10300 #  include <argz.h>
10301 #endif
10302
10303 typedef error_t ac__type_new_;
10304 int
10305 main ()
10306 {
10307 if ((ac__type_new_ *) 0)
10308   return 0;
10309 if (sizeof (ac__type_new_))
10310   return 0;
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext
10316 if { (ac_try="$ac_compile"
10317 case "(($ac_try" in
10318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319   *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322   (eval "$ac_compile") 2>conftest.er1
10323   ac_status=$?
10324   grep -v '^ *+' conftest.er1 >conftest.err
10325   rm -f conftest.er1
10326   cat conftest.err >&5
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } && {
10329          test -z "$ac_c_werror_flag" ||
10330          test ! -s conftest.err
10331        } && test -s conftest.$ac_objext; then
10332   ac_cv_type_error_t=yes
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337         ac_cv_type_error_t=no
10338 fi
10339
10340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 fi
10342 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10343 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10344 if test $ac_cv_type_error_t = yes; then
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_ERROR_T 1
10348 _ACEOF
10349
10350
10351 else
10352
10353 cat >>confdefs.h <<\_ACEOF
10354 #define error_t int
10355 _ACEOF
10356
10357 fi
10358
10359
10360
10361
10362
10363
10364
10365 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10366 do
10367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10381 #define $ac_func innocuous_$ac_func
10382
10383 /* System header to define __stub macros and hopefully few prototypes,
10384     which can conflict with char $ac_func (); below.
10385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386     <limits.h> exists even on freestanding compilers.  */
10387
10388 #ifdef __STDC__
10389 # include <limits.h>
10390 #else
10391 # include <assert.h>
10392 #endif
10393
10394 #undef $ac_func
10395
10396 /* Override any GCC internal prototype to avoid an error.
10397    Use char because int might match the return type of a GCC
10398    builtin and then its argument prototype would still apply.  */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char $ac_func ();
10403 /* The GNU C library defines this for functions which it implements
10404     to always fail with ENOSYS.  Some functions are actually named
10405     something starting with __ and the normal name is an alias.  */
10406 #if defined __stub_$ac_func || defined __stub___$ac_func
10407 choke me
10408 #endif
10409
10410 int
10411 main ()
10412 {
10413 return $ac_func ();
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422   *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425   (eval "$ac_link") 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && {
10432          test -z "$ac_c_werror_flag" ||
10433          test ! -s conftest.err
10434        } && test -s conftest$ac_exeext &&
10435        $as_test_x conftest$ac_exeext; then
10436   eval "$as_ac_var=yes"
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441         eval "$as_ac_var=no"
10442 fi
10443
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445       conftest$ac_exeext conftest.$ac_ext
10446 fi
10447 ac_res=`eval echo '${'$as_ac_var'}'`
10448                { echo "$as_me:$LINENO: result: $ac_res" >&5
10449 echo "${ECHO_T}$ac_res" >&6; }
10450 if test `eval echo '${'$as_ac_var'}'` = yes; then
10451   cat >>confdefs.h <<_ACEOF
10452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10453 _ACEOF
10454
10455 fi
10456 done
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10486                   stdio.h unistd.h
10487 do
10488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 fi
10495 ac_res=`eval echo '${'$as_ac_Header'}'`
10496                { echo "$as_me:$LINENO: result: $ac_res" >&5
10497 echo "${ECHO_T}$ac_res" >&6; }
10498 else
10499   # Is the header compilable?
10500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 $ac_includes_default
10509 #include <$ac_header>
10510 _ACEOF
10511 rm -f conftest.$ac_objext
10512 if { (ac_try="$ac_compile"
10513 case "(($ac_try" in
10514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515   *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518   (eval "$ac_compile") 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } && {
10525          test -z "$ac_c_werror_flag" ||
10526          test ! -s conftest.err
10527        } && test -s conftest.$ac_objext; then
10528   ac_header_compiler=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533         ac_header_compiler=no
10534 fi
10535
10536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538 echo "${ECHO_T}$ac_header_compiler" >&6; }
10539
10540 # Is the header present?
10541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h.  */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h.  */
10549 #include <$ac_header>
10550 _ACEOF
10551 if { (ac_try="$ac_cpp conftest.$ac_ext"
10552 case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10558   ac_status=$?
10559   grep -v '^ *+' conftest.er1 >conftest.err
10560   rm -f conftest.er1
10561   cat conftest.err >&5
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } >/dev/null && {
10564          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565          test ! -s conftest.err
10566        }; then
10567   ac_header_preproc=yes
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572   ac_header_preproc=no
10573 fi
10574
10575 rm -f conftest.err conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 echo "${ECHO_T}$ac_header_preproc" >&6; }
10578
10579 # So?  What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581   yes:no: )
10582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586     ac_header_preproc=yes
10587     ;;
10588   no:yes:* )
10589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10601     ( cat <<\_ASBOX
10602 ## ----------------------------------- ##
10603 ## Report this to llvmbugs@cs.uiuc.edu ##
10604 ## ----------------------------------- ##
10605 _ASBOX
10606      ) | sed "s/^/$as_me: WARNING:     /" >&2
10607     ;;
10608 esac
10609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   eval "$as_ac_Header=\$ac_header_preproc"
10615 fi
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617                { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10619
10620 fi
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622   cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624 _ACEOF
10625
10626 fi
10627
10628 done
10629
10630
10631
10632
10633
10634 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10635 do
10636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10638   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 fi
10643 ac_res=`eval echo '${'$as_ac_Header'}'`
10644                { echo "$as_me:$LINENO: result: $ac_res" >&5
10645 echo "${ECHO_T}$ac_res" >&6; }
10646 else
10647   # Is the header compilable?
10648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 $ac_includes_default
10657 #include <$ac_header>
10658 _ACEOF
10659 rm -f conftest.$ac_objext
10660 if { (ac_try="$ac_compile"
10661 case "(($ac_try" in
10662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663   *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666   (eval "$ac_compile") 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } && {
10673          test -z "$ac_c_werror_flag" ||
10674          test ! -s conftest.err
10675        } && test -s conftest.$ac_objext; then
10676   ac_header_compiler=yes
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681         ac_header_compiler=no
10682 fi
10683
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10686 echo "${ECHO_T}$ac_header_compiler" >&6; }
10687
10688 # Is the header present?
10689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697 #include <$ac_header>
10698 _ACEOF
10699 if { (ac_try="$ac_cpp conftest.$ac_ext"
10700 case "(($ac_try" in
10701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702   *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10706   ac_status=$?
10707   grep -v '^ *+' conftest.er1 >conftest.err
10708   rm -f conftest.er1
10709   cat conftest.err >&5
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } >/dev/null && {
10712          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10713          test ! -s conftest.err
10714        }; then
10715   ac_header_preproc=yes
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720   ac_header_preproc=no
10721 fi
10722
10723 rm -f conftest.err conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10725 echo "${ECHO_T}$ac_header_preproc" >&6; }
10726
10727 # So?  What about this header?
10728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10729   yes:no: )
10730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10734     ac_header_preproc=yes
10735     ;;
10736   no:yes:* )
10737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10749     ( cat <<\_ASBOX
10750 ## ----------------------------------- ##
10751 ## Report this to llvmbugs@cs.uiuc.edu ##
10752 ## ----------------------------------- ##
10753 _ASBOX
10754      ) | sed "s/^/$as_me: WARNING:     /" >&2
10755     ;;
10756 esac
10757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762   eval "$as_ac_Header=\$ac_header_preproc"
10763 fi
10764 ac_res=`eval echo '${'$as_ac_Header'}'`
10765                { echo "$as_me:$LINENO: result: $ac_res" >&5
10766 echo "${ECHO_T}$ac_res" >&6; }
10767
10768 fi
10769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10770   cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10772 _ACEOF
10773
10774 fi
10775
10776 done
10777
10778
10779
10780 for ac_header in string.h strings.h
10781 do
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 fi
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790                { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 else
10793   # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h.  */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h.  */
10802 $ac_includes_default
10803 #include <$ac_header>
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_compile") 2>conftest.er1
10813   ac_status=$?
10814   grep -v '^ *+' conftest.er1 >conftest.err
10815   rm -f conftest.er1
10816   cat conftest.err >&5
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } && {
10819          test -z "$ac_c_werror_flag" ||
10820          test ! -s conftest.err
10821        } && test -s conftest.$ac_objext; then
10822   ac_header_compiler=yes
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827         ac_header_compiler=no
10828 fi
10829
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10833
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 #include <$ac_header>
10844 _ACEOF
10845 if { (ac_try="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848   *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } >/dev/null && {
10858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859          test ! -s conftest.err
10860        }; then
10861   ac_header_preproc=yes
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866   ac_header_preproc=no
10867 fi
10868
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10872
10873 # So?  What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875   yes:no: )
10876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880     ac_header_preproc=yes
10881     ;;
10882   no:yes:* )
10883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10895     ( cat <<\_ASBOX
10896 ## ----------------------------------- ##
10897 ## Report this to llvmbugs@cs.uiuc.edu ##
10898 ## ----------------------------------- ##
10899 _ASBOX
10900      ) | sed "s/^/$as_me: WARNING:     /" >&2
10901     ;;
10902 esac
10903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   eval "$as_ac_Header=\$ac_header_preproc"
10909 fi
10910 ac_res=`eval echo '${'$as_ac_Header'}'`
10911                { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10913
10914 fi
10915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916   cat >>confdefs.h <<_ACEOF
10917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10918 _ACEOF
10919  break
10920 fi
10921
10922 done
10923
10924
10925
10926
10927 for ac_func in strchr index
10928 do
10929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10943 #define $ac_func innocuous_$ac_func
10944
10945 /* System header to define __stub macros and hopefully few prototypes,
10946     which can conflict with char $ac_func (); below.
10947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10948     <limits.h> exists even on freestanding compilers.  */
10949
10950 #ifdef __STDC__
10951 # include <limits.h>
10952 #else
10953 # include <assert.h>
10954 #endif
10955
10956 #undef $ac_func
10957
10958 /* Override any GCC internal prototype to avoid an error.
10959    Use char because int might match the return type of a GCC
10960    builtin and then its argument prototype would still apply.  */
10961 #ifdef __cplusplus
10962 extern "C"
10963 #endif
10964 char $ac_func ();
10965 /* The GNU C library defines this for functions which it implements
10966     to always fail with ENOSYS.  Some functions are actually named
10967     something starting with __ and the normal name is an alias.  */
10968 #if defined __stub_$ac_func || defined __stub___$ac_func
10969 choke me
10970 #endif
10971
10972 int
10973 main ()
10974 {
10975 return $ac_func ();
10976   ;
10977   return 0;
10978 }
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984   *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987   (eval "$ac_link") 2>conftest.er1
10988   ac_status=$?
10989   grep -v '^ *+' conftest.er1 >conftest.err
10990   rm -f conftest.er1
10991   cat conftest.err >&5
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } && {
10994          test -z "$ac_c_werror_flag" ||
10995          test ! -s conftest.err
10996        } && test -s conftest$ac_exeext &&
10997        $as_test_x conftest$ac_exeext; then
10998   eval "$as_ac_var=yes"
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003         eval "$as_ac_var=no"
11004 fi
11005
11006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007       conftest$ac_exeext conftest.$ac_ext
11008 fi
11009 ac_res=`eval echo '${'$as_ac_var'}'`
11010                { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 if test `eval echo '${'$as_ac_var'}'` = yes; then
11013   cat >>confdefs.h <<_ACEOF
11014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11015 _ACEOF
11016  break
11017 fi
11018 done
11019
11020
11021
11022 for ac_func in strrchr rindex
11023 do
11024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11038 #define $ac_func innocuous_$ac_func
11039
11040 /* System header to define __stub macros and hopefully few prototypes,
11041     which can conflict with char $ac_func (); below.
11042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043     <limits.h> exists even on freestanding compilers.  */
11044
11045 #ifdef __STDC__
11046 # include <limits.h>
11047 #else
11048 # include <assert.h>
11049 #endif
11050
11051 #undef $ac_func
11052
11053 /* Override any GCC internal prototype to avoid an error.
11054    Use char because int might match the return type of a GCC
11055    builtin and then its argument prototype would still apply.  */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char $ac_func ();
11060 /* The GNU C library defines this for functions which it implements
11061     to always fail with ENOSYS.  Some functions are actually named
11062     something starting with __ and the normal name is an alias.  */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11064 choke me
11065 #endif
11066
11067 int
11068 main ()
11069 {
11070 return $ac_func ();
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079   *) ac_try_echo=$ac_try;;
11080 esac
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082   (eval "$ac_link") 2>conftest.er1
11083   ac_status=$?
11084   grep -v '^ *+' conftest.er1 >conftest.err
11085   rm -f conftest.er1
11086   cat conftest.err >&5
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } && {
11089          test -z "$ac_c_werror_flag" ||
11090          test ! -s conftest.err
11091        } && test -s conftest$ac_exeext &&
11092        $as_test_x conftest$ac_exeext; then
11093   eval "$as_ac_var=yes"
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098         eval "$as_ac_var=no"
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102       conftest$ac_exeext conftest.$ac_ext
11103 fi
11104 ac_res=`eval echo '${'$as_ac_var'}'`
11105                { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108   cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 _ACEOF
11111  break
11112 fi
11113 done
11114
11115
11116
11117 for ac_func in memcpy bcopy
11118 do
11119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11133 #define $ac_func innocuous_$ac_func
11134
11135 /* System header to define __stub macros and hopefully few prototypes,
11136     which can conflict with char $ac_func (); below.
11137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138     <limits.h> exists even on freestanding compilers.  */
11139
11140 #ifdef __STDC__
11141 # include <limits.h>
11142 #else
11143 # include <assert.h>
11144 #endif
11145
11146 #undef $ac_func
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149    Use char because int might match the return type of a GCC
11150    builtin and then its argument prototype would still apply.  */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char $ac_func ();
11155 /* The GNU C library defines this for functions which it implements
11156     to always fail with ENOSYS.  Some functions are actually named
11157     something starting with __ and the normal name is an alias.  */
11158 #if defined __stub_$ac_func || defined __stub___$ac_func
11159 choke me
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165 return $ac_func ();
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_link") 2>conftest.er1
11178   ac_status=$?
11179   grep -v '^ *+' conftest.er1 >conftest.err
11180   rm -f conftest.er1
11181   cat conftest.err >&5
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } && {
11184          test -z "$ac_c_werror_flag" ||
11185          test ! -s conftest.err
11186        } && test -s conftest$ac_exeext &&
11187        $as_test_x conftest$ac_exeext; then
11188   eval "$as_ac_var=yes"
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193         eval "$as_ac_var=no"
11194 fi
11195
11196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11197       conftest$ac_exeext conftest.$ac_ext
11198 fi
11199 ac_res=`eval echo '${'$as_ac_var'}'`
11200                { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11202 if test `eval echo '${'$as_ac_var'}'` = yes; then
11203   cat >>confdefs.h <<_ACEOF
11204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11205 _ACEOF
11206  break
11207 fi
11208 done
11209
11210
11211
11212 for ac_func in memmove strcmp
11213 do
11214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11228 #define $ac_func innocuous_$ac_func
11229
11230 /* System header to define __stub macros and hopefully few prototypes,
11231     which can conflict with char $ac_func (); below.
11232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233     <limits.h> exists even on freestanding compilers.  */
11234
11235 #ifdef __STDC__
11236 # include <limits.h>
11237 #else
11238 # include <assert.h>
11239 #endif
11240
11241 #undef $ac_func
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244    Use char because int might match the return type of a GCC
11245    builtin and then its argument prototype would still apply.  */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char $ac_func ();
11250 /* The GNU C library defines this for functions which it implements
11251     to always fail with ENOSYS.  Some functions are actually named
11252     something starting with __ and the normal name is an alias.  */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11254 choke me
11255 #endif
11256
11257 int
11258 main ()
11259 {
11260 return $ac_func ();
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_link") 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } && {
11279          test -z "$ac_c_werror_flag" ||
11280          test ! -s conftest.err
11281        } && test -s conftest$ac_exeext &&
11282        $as_test_x conftest$ac_exeext; then
11283   eval "$as_ac_var=yes"
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288         eval "$as_ac_var=no"
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11292       conftest$ac_exeext conftest.$ac_ext
11293 fi
11294 ac_res=`eval echo '${'$as_ac_var'}'`
11295                { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11297 if test `eval echo '${'$as_ac_var'}'` = yes; then
11298   cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11300 _ACEOF
11301
11302 fi
11303 done
11304
11305
11306
11307
11308 for ac_func in closedir opendir readdir
11309 do
11310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11324 #define $ac_func innocuous_$ac_func
11325
11326 /* System header to define __stub macros and hopefully few prototypes,
11327     which can conflict with char $ac_func (); below.
11328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11329     <limits.h> exists even on freestanding compilers.  */
11330
11331 #ifdef __STDC__
11332 # include <limits.h>
11333 #else
11334 # include <assert.h>
11335 #endif
11336
11337 #undef $ac_func
11338
11339 /* Override any GCC internal prototype to avoid an error.
11340    Use char because int might match the return type of a GCC
11341    builtin and then its argument prototype would still apply.  */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char $ac_func ();
11346 /* The GNU C library defines this for functions which it implements
11347     to always fail with ENOSYS.  Some functions are actually named
11348     something starting with __ and the normal name is an alias.  */
11349 #if defined __stub_$ac_func || defined __stub___$ac_func
11350 choke me
11351 #endif
11352
11353 int
11354 main ()
11355 {
11356 return $ac_func ();
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (ac_try="$ac_link"
11363 case "(($ac_try" in
11364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365   *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368   (eval "$ac_link") 2>conftest.er1
11369   ac_status=$?
11370   grep -v '^ *+' conftest.er1 >conftest.err
11371   rm -f conftest.er1
11372   cat conftest.err >&5
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } && {
11375          test -z "$ac_c_werror_flag" ||
11376          test ! -s conftest.err
11377        } && test -s conftest$ac_exeext &&
11378        $as_test_x conftest$ac_exeext; then
11379   eval "$as_ac_var=yes"
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384         eval "$as_ac_var=no"
11385 fi
11386
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388       conftest$ac_exeext conftest.$ac_ext
11389 fi
11390 ac_res=`eval echo '${'$as_ac_var'}'`
11391                { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394   cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11396 _ACEOF
11397
11398 fi
11399 done
11400
11401
11402 # Check whether --enable-shared was given.
11403 if test "${enable_shared+set}" = set; then
11404   enableval=$enable_shared; p=${PACKAGE-default}
11405     case $enableval in
11406     yes) enable_shared=yes ;;
11407     no) enable_shared=no ;;
11408     *)
11409       enable_shared=no
11410       # Look at the argument we got.  We use all the common list separators.
11411       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11412       for pkg in $enableval; do
11413         IFS="$lt_save_ifs"
11414         if test "X$pkg" = "X$p"; then
11415           enable_shared=yes
11416         fi
11417       done
11418       IFS="$lt_save_ifs"
11419       ;;
11420     esac
11421 else
11422   enable_shared=yes
11423 fi
11424
11425
11426 # Check whether --enable-static was given.
11427 if test "${enable_static+set}" = set; then
11428   enableval=$enable_static; p=${PACKAGE-default}
11429     case $enableval in
11430     yes) enable_static=yes ;;
11431     no) enable_static=no ;;
11432     *)
11433      enable_static=no
11434       # Look at the argument we got.  We use all the common list separators.
11435       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11436       for pkg in $enableval; do
11437         IFS="$lt_save_ifs"
11438         if test "X$pkg" = "X$p"; then
11439           enable_static=yes
11440         fi
11441       done
11442       IFS="$lt_save_ifs"
11443       ;;
11444     esac
11445 else
11446   enable_static=yes
11447 fi
11448
11449
11450 # Check whether --enable-fast-install was given.
11451 if test "${enable_fast_install+set}" = set; then
11452   enableval=$enable_fast_install; p=${PACKAGE-default}
11453     case $enableval in
11454     yes) enable_fast_install=yes ;;
11455     no) enable_fast_install=no ;;
11456     *)
11457       enable_fast_install=no
11458       # Look at the argument we got.  We use all the common list separators.
11459       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11460       for pkg in $enableval; do
11461         IFS="$lt_save_ifs"
11462         if test "X$pkg" = "X$p"; then
11463           enable_fast_install=yes
11464         fi
11465       done
11466       IFS="$lt_save_ifs"
11467       ;;
11468     esac
11469 else
11470   enable_fast_install=yes
11471 fi
11472
11473
11474 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11475 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11476 if test "${lt_cv_path_SED+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   # Loop through the user's path and test for sed and gsed.
11480 # Then use that list of sed's as ones to test for truncation.
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484   IFS=$as_save_IFS
11485   test -z "$as_dir" && as_dir=.
11486   for lt_ac_prog in sed gsed; do
11487     for ac_exec_ext in '' $ac_executable_extensions; do
11488       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11489         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11490       fi
11491     done
11492   done
11493 done
11494 lt_ac_max=0
11495 lt_ac_count=0
11496 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11497 # along with /bin/sed that truncates output.
11498 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11499   test ! -f $lt_ac_sed && continue
11500   cat /dev/null > conftest.in
11501   lt_ac_count=0
11502   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11503   # Check for GNU sed and select it if it is found.
11504   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11505     lt_cv_path_SED=$lt_ac_sed
11506     break
11507   fi
11508   while true; do
11509     cat conftest.in conftest.in >conftest.tmp
11510     mv conftest.tmp conftest.in
11511     cp conftest.in conftest.nl
11512     echo >>conftest.nl
11513     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11514     cmp -s conftest.out conftest.nl || break
11515     # 10000 chars as input seems more than enough
11516     test $lt_ac_count -gt 10 && break
11517     lt_ac_count=`expr $lt_ac_count + 1`
11518     if test $lt_ac_count -gt $lt_ac_max; then
11519       lt_ac_max=$lt_ac_count
11520       lt_cv_path_SED=$lt_ac_sed
11521     fi
11522   done
11523 done
11524
11525 fi
11526
11527 SED=$lt_cv_path_SED
11528 { echo "$as_me:$LINENO: result: $SED" >&5
11529 echo "${ECHO_T}$SED" >&6; }
11530
11531
11532 # Check whether --with-gnu-ld was given.
11533 if test "${with_gnu_ld+set}" = set; then
11534   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11535 else
11536   with_gnu_ld=no
11537 fi
11538
11539 ac_prog=ld
11540 if test "$GCC" = yes; then
11541   # Check if gcc -print-prog-name=ld gives a path.
11542   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11543 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11544   case $host in
11545   *-*-mingw*)
11546     # gcc leaves a trailing carriage return which upsets mingw
11547     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11548   *)
11549     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11550   esac
11551   case $ac_prog in
11552     # Accept absolute paths.
11553     [\\/]* | ?:[\\/]*)
11554       re_direlt='/[^/][^/]*/\.\./'
11555       # Canonicalize the pathname of ld
11556       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11557       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11558         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11559       done
11560       test -z "$LD" && LD="$ac_prog"
11561       ;;
11562   "")
11563     # If it fails, then pretend we aren't using GCC.
11564     ac_prog=ld
11565     ;;
11566   *)
11567     # If it is relative, then search for the first ld in PATH.
11568     with_gnu_ld=unknown
11569     ;;
11570   esac
11571 elif test "$with_gnu_ld" = yes; then
11572   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11573 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11574 else
11575   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11576 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11577 fi
11578 if test "${lt_cv_path_LD+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   if test -z "$LD"; then
11582   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11583   for ac_dir in $PATH; do
11584     IFS="$lt_save_ifs"
11585     test -z "$ac_dir" && ac_dir=.
11586     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11587       lt_cv_path_LD="$ac_dir/$ac_prog"
11588       # Check to see if the program is GNU ld.  I'd rather use --version,
11589       # but apparently some variants of GNU ld only accept -v.
11590       # Break only if it was the GNU/non-GNU ld that we prefer.
11591       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11592       *GNU* | *'with BFD'*)
11593         test "$with_gnu_ld" != no && break
11594         ;;
11595       *)
11596         test "$with_gnu_ld" != yes && break
11597         ;;
11598       esac
11599     fi
11600   done
11601   IFS="$lt_save_ifs"
11602 else
11603   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11604 fi
11605 fi
11606
11607 LD="$lt_cv_path_LD"
11608 if test -n "$LD"; then
11609   { echo "$as_me:$LINENO: result: $LD" >&5
11610 echo "${ECHO_T}$LD" >&6; }
11611 else
11612   { echo "$as_me:$LINENO: result: no" >&5
11613 echo "${ECHO_T}no" >&6; }
11614 fi
11615 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11616 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11617    { (exit 1); exit 1; }; }
11618 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11619 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11620 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11624 case `$LD -v 2>&1 </dev/null` in
11625 *GNU* | *'with BFD'*)
11626   lt_cv_prog_gnu_ld=yes
11627   ;;
11628 *)
11629   lt_cv_prog_gnu_ld=no
11630   ;;
11631 esac
11632 fi
11633 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11634 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11635 with_gnu_ld=$lt_cv_prog_gnu_ld
11636
11637
11638 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11639 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11640 if test "${lt_cv_ld_reload_flag+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   lt_cv_ld_reload_flag='-r'
11644 fi
11645 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11646 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11647 reload_flag=$lt_cv_ld_reload_flag
11648 case $reload_flag in
11649 "" | " "*) ;;
11650 *) reload_flag=" $reload_flag" ;;
11651 esac
11652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11653 case $host_os in
11654   darwin*)
11655     if test "$GCC" = yes; then
11656       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11657     else
11658       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11659     fi
11660     ;;
11661 esac
11662
11663 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11664 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11665 if test "${lt_cv_deplibs_check_method+set}" = set; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668   lt_cv_file_magic_cmd='$MAGIC_CMD'
11669 lt_cv_file_magic_test_file=
11670 lt_cv_deplibs_check_method='unknown'
11671 # Need to set the preceding variable on all platforms that support
11672 # interlibrary dependencies.
11673 # 'none' -- dependencies not supported.
11674 # `unknown' -- same as none, but documents that we really don't know.
11675 # 'pass_all' -- all dependencies passed with no checks.
11676 # 'test_compile' -- check by making test program.
11677 # 'file_magic [[regex]]' -- check by looking for files in library path
11678 # which responds to the $file_magic_cmd with a given extended regex.
11679 # If you have `file' or equivalent on your system and you're not sure
11680 # whether `pass_all' will *always* work, you probably want this one.
11681
11682 case $host_os in
11683 aix4* | aix5*)
11684   lt_cv_deplibs_check_method=pass_all
11685   ;;
11686
11687 beos*)
11688   lt_cv_deplibs_check_method=pass_all
11689   ;;
11690
11691 bsdi[45]*)
11692   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11693   lt_cv_file_magic_cmd='/usr/bin/file -L'
11694   lt_cv_file_magic_test_file=/shlib/libc.so
11695   ;;
11696
11697 cygwin*)
11698   # func_win32_libid is a shell function defined in ltmain.sh
11699   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11700   lt_cv_file_magic_cmd='func_win32_libid'
11701   ;;
11702
11703 mingw* | pw32*)
11704   # Base MSYS/MinGW do not provide the 'file' command needed by
11705   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11706   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11707   lt_cv_file_magic_cmd='$OBJDUMP -f'
11708   ;;
11709
11710 darwin* | rhapsody*)
11711   lt_cv_deplibs_check_method=pass_all
11712   ;;
11713
11714 freebsd* | kfreebsd*-gnu | dragonfly*)
11715   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11716     case $host_cpu in
11717     i*86 )
11718       # Not sure whether the presence of OpenBSD here was a mistake.
11719       # Let's accept both of them until this is cleared up.
11720       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11721       lt_cv_file_magic_cmd=/usr/bin/file
11722       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11723       ;;
11724     esac
11725   else
11726     lt_cv_deplibs_check_method=pass_all
11727   fi
11728   ;;
11729
11730 gnu*)
11731   lt_cv_deplibs_check_method=pass_all
11732   ;;
11733
11734 hpux10.20* | hpux11*)
11735   lt_cv_file_magic_cmd=/usr/bin/file
11736   case $host_cpu in
11737   ia64*)
11738     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11739     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11740     ;;
11741   hppa*64*)
11742     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]'
11743     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11744     ;;
11745   *)
11746     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11747     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11748     ;;
11749   esac
11750   ;;
11751
11752 interix3*)
11753   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11754   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11755   ;;
11756
11757 irix5* | irix6* | nonstopux*)
11758   case $LD in
11759   *-32|*"-32 ") libmagic=32-bit;;
11760   *-n32|*"-n32 ") libmagic=N32;;
11761   *-64|*"-64 ") libmagic=64-bit;;
11762   *) libmagic=never-match;;
11763   esac
11764   lt_cv_deplibs_check_method=pass_all
11765   ;;
11766
11767 # This must be Linux ELF.
11768 linux*)
11769   lt_cv_deplibs_check_method=pass_all
11770   ;;
11771
11772 netbsd*)
11773   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11774     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11775   else
11776     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11777   fi
11778   ;;
11779
11780 newos6*)
11781   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11782   lt_cv_file_magic_cmd=/usr/bin/file
11783   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11784   ;;
11785
11786 nto-qnx*)
11787   lt_cv_deplibs_check_method=unknown
11788   ;;
11789
11790 openbsd*)
11791   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11793   else
11794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11795   fi
11796   ;;
11797
11798 osf3* | osf4* | osf5*)
11799   lt_cv_deplibs_check_method=pass_all
11800   ;;
11801
11802 solaris*)
11803   lt_cv_deplibs_check_method=pass_all
11804   ;;
11805
11806 sysv4 | sysv4.3*)
11807   case $host_vendor in
11808   motorola)
11809     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]'
11810     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11811     ;;
11812   ncr)
11813     lt_cv_deplibs_check_method=pass_all
11814     ;;
11815   sequent)
11816     lt_cv_file_magic_cmd='/bin/file'
11817     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11818     ;;
11819   sni)
11820     lt_cv_file_magic_cmd='/bin/file'
11821     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11822     lt_cv_file_magic_test_file=/lib/libc.so
11823     ;;
11824   siemens)
11825     lt_cv_deplibs_check_method=pass_all
11826     ;;
11827   pc)
11828     lt_cv_deplibs_check_method=pass_all
11829     ;;
11830   esac
11831   ;;
11832
11833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11834   lt_cv_deplibs_check_method=pass_all
11835   ;;
11836 esac
11837
11838 fi
11839 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11840 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11841 file_magic_cmd=$lt_cv_file_magic_cmd
11842 deplibs_check_method=$lt_cv_deplibs_check_method
11843 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11844
11845
11846
11847 # If no C compiler was specified, use CC.
11848 LTCC=${LTCC-"$CC"}
11849
11850 # If no C compiler flags were specified, use CFLAGS.
11851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11852
11853 # Allow CC to be a program name with arguments.
11854 compiler=$CC
11855
11856 # Check whether --enable-libtool-lock was given.
11857 if test "${enable_libtool_lock+set}" = set; then
11858   enableval=$enable_libtool_lock;
11859 fi
11860
11861 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11862
11863 # Some flags need to be propagated to the compiler or linker for good
11864 # libtool support.
11865 case $host in
11866 ia64-*-hpux*)
11867   # Find out which ABI we are using.
11868   echo 'int i;' > conftest.$ac_ext
11869   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870   (eval $ac_compile) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; then
11874     case `/usr/bin/file conftest.$ac_objext` in
11875     *ELF-32*)
11876       HPUX_IA64_MODE="32"
11877       ;;
11878     *ELF-64*)
11879       HPUX_IA64_MODE="64"
11880       ;;
11881     esac
11882   fi
11883   rm -rf conftest*
11884   ;;
11885 *-*-irix6*)
11886   # Find out which ABI we are using.
11887   echo '#line 11887 "configure"' > conftest.$ac_ext
11888   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889   (eval $ac_compile) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; then
11893    if test "$lt_cv_prog_gnu_ld" = yes; then
11894     case `/usr/bin/file conftest.$ac_objext` in
11895     *32-bit*)
11896       LD="${LD-ld} -melf32bsmip"
11897       ;;
11898     *N32*)
11899       LD="${LD-ld} -melf32bmipn32"
11900       ;;
11901     *64-bit*)
11902       LD="${LD-ld} -melf64bmip"
11903       ;;
11904     esac
11905    else
11906     case `/usr/bin/file conftest.$ac_objext` in
11907     *32-bit*)
11908       LD="${LD-ld} -32"
11909       ;;
11910     *N32*)
11911       LD="${LD-ld} -n32"
11912       ;;
11913     *64-bit*)
11914       LD="${LD-ld} -64"
11915       ;;
11916     esac
11917    fi
11918   fi
11919   rm -rf conftest*
11920   ;;
11921
11922 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11923   # Find out which ABI we are using.
11924   echo 'int i;' > conftest.$ac_ext
11925   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926   (eval $ac_compile) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; then
11930     case `/usr/bin/file conftest.o` in
11931     *32-bit*)
11932       case $host in
11933         x86_64-*linux*)
11934           LD="${LD-ld} -m elf_i386"
11935           ;;
11936         ppc64-*linux*|powerpc64-*linux*)
11937           LD="${LD-ld} -m elf32ppclinux"
11938           ;;
11939         s390x-*linux*)
11940           LD="${LD-ld} -m elf_s390"
11941           ;;
11942         sparc64-*linux*)
11943           LD="${LD-ld} -m elf32_sparc"
11944           ;;
11945       esac
11946       ;;
11947     *64-bit*)
11948       case $host in
11949         x86_64-*linux*)
11950           LD="${LD-ld} -m elf_x86_64"
11951           ;;
11952         ppc*-*linux*|powerpc*-*linux*)
11953           LD="${LD-ld} -m elf64ppc"
11954           ;;
11955         s390*-*linux*)
11956           LD="${LD-ld} -m elf64_s390"
11957           ;;
11958         sparc*-*linux*)
11959           LD="${LD-ld} -m elf64_sparc"
11960           ;;
11961       esac
11962       ;;
11963     esac
11964   fi
11965   rm -rf conftest*
11966   ;;
11967
11968 *-*-sco3.2v5*)
11969   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11970   SAVE_CFLAGS="$CFLAGS"
11971   CFLAGS="$CFLAGS -belf"
11972   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11973 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11974 if test "${lt_cv_cc_needs_belf+set}" = set; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977   ac_ext=c
11978 ac_cpp='$CPP $CPPFLAGS'
11979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11982
11983      cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989
11990 int
11991 main ()
11992 {
11993
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002   *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005   (eval "$ac_link") 2>conftest.er1
12006   ac_status=$?
12007   grep -v '^ *+' conftest.er1 >conftest.err
12008   rm -f conftest.er1
12009   cat conftest.err >&5
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } && {
12012          test -z "$ac_c_werror_flag" ||
12013          test ! -s conftest.err
12014        } && test -s conftest$ac_exeext &&
12015        $as_test_x conftest$ac_exeext; then
12016   lt_cv_cc_needs_belf=yes
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021         lt_cv_cc_needs_belf=no
12022 fi
12023
12024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12025       conftest$ac_exeext conftest.$ac_ext
12026      ac_ext=c
12027 ac_cpp='$CPP $CPPFLAGS'
12028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032 fi
12033 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12034 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12035   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12036     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12037     CFLAGS="$SAVE_CFLAGS"
12038   fi
12039   ;;
12040 sparc*-*solaris*)
12041   # Find out which ABI we are using.
12042   echo 'int i;' > conftest.$ac_ext
12043   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044   (eval $ac_compile) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; then
12048     case `/usr/bin/file conftest.o` in
12049     *64-bit*)
12050       case $lt_cv_prog_gnu_ld in
12051       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12052       *)    LD="${LD-ld} -64" ;;
12053       esac
12054       ;;
12055     esac
12056   fi
12057   rm -rf conftest*
12058   ;;
12059
12060
12061 esac
12062
12063 need_locks="$enable_libtool_lock"
12064
12065
12066
12067
12068 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12069     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12070     (test "X$CXX" != "Xg++"))) ; then
12071   ac_ext=cpp
12072 ac_cpp='$CXXCPP $CPPFLAGS'
12073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12076 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12077 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12078 if test -z "$CXXCPP"; then
12079   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082       # Double quotes because CXXCPP needs to be expanded
12083     for CXXCPP in "$CXX -E" "/lib/cpp"
12084     do
12085       ac_preproc_ok=false
12086 for ac_cxx_preproc_warn_flag in '' yes
12087 do
12088   # Use a header file that comes with gcc, so configuring glibc
12089   # with a fresh cross-compiler works.
12090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091   # <limits.h> exists even on freestanding compilers.
12092   # On the NeXT, cc -E runs the code through the compiler's parser,
12093   # not just through cpp. "Syntax error" is here to catch this case.
12094   cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 #ifdef __STDC__
12101 # include <limits.h>
12102 #else
12103 # include <assert.h>
12104 #endif
12105                      Syntax error
12106 _ACEOF
12107 if { (ac_try="$ac_cpp conftest.$ac_ext"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } >/dev/null && {
12120          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12121          test ! -s conftest.err
12122        }; then
12123   :
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128   # Broken: fails on valid input.
12129 continue
12130 fi
12131
12132 rm -f conftest.err conftest.$ac_ext
12133
12134   # OK, works on sane cases.  Now check whether nonexistent headers
12135   # can be detected and how.
12136   cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h.  */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h.  */
12142 #include <ac_nonexistent.h>
12143 _ACEOF
12144 if { (ac_try="$ac_cpp conftest.$ac_ext"
12145 case "(($ac_try" in
12146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147   *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12151   ac_status=$?
12152   grep -v '^ *+' conftest.er1 >conftest.err
12153   rm -f conftest.er1
12154   cat conftest.err >&5
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } >/dev/null && {
12157          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12158          test ! -s conftest.err
12159        }; then
12160   # Broken: success on invalid input.
12161 continue
12162 else
12163   echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166   # Passes both tests.
12167 ac_preproc_ok=:
12168 break
12169 fi
12170
12171 rm -f conftest.err conftest.$ac_ext
12172
12173 done
12174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12175 rm -f conftest.err conftest.$ac_ext
12176 if $ac_preproc_ok; then
12177   break
12178 fi
12179
12180     done
12181     ac_cv_prog_CXXCPP=$CXXCPP
12182
12183 fi
12184   CXXCPP=$ac_cv_prog_CXXCPP
12185 else
12186   ac_cv_prog_CXXCPP=$CXXCPP
12187 fi
12188 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12189 echo "${ECHO_T}$CXXCPP" >&6; }
12190 ac_preproc_ok=false
12191 for ac_cxx_preproc_warn_flag in '' yes
12192 do
12193   # Use a header file that comes with gcc, so configuring glibc
12194   # with a fresh cross-compiler works.
12195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12196   # <limits.h> exists even on freestanding compilers.
12197   # On the NeXT, cc -E runs the code through the compiler's parser,
12198   # not just through cpp. "Syntax error" is here to catch this case.
12199   cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 #ifdef __STDC__
12206 # include <limits.h>
12207 #else
12208 # include <assert.h>
12209 #endif
12210                      Syntax error
12211 _ACEOF
12212 if { (ac_try="$ac_cpp conftest.$ac_ext"
12213 case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } >/dev/null && {
12225          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12226          test ! -s conftest.err
12227        }; then
12228   :
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233   # Broken: fails on valid input.
12234 continue
12235 fi
12236
12237 rm -f conftest.err conftest.$ac_ext
12238
12239   # OK, works on sane cases.  Now check whether nonexistent headers
12240   # can be detected and how.
12241   cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 #include <ac_nonexistent.h>
12248 _ACEOF
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256   ac_status=$?
12257   grep -v '^ *+' conftest.er1 >conftest.err
12258   rm -f conftest.er1
12259   cat conftest.err >&5
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } >/dev/null && {
12262          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12263          test ! -s conftest.err
12264        }; then
12265   # Broken: success on invalid input.
12266 continue
12267 else
12268   echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271   # Passes both tests.
12272 ac_preproc_ok=:
12273 break
12274 fi
12275
12276 rm -f conftest.err conftest.$ac_ext
12277
12278 done
12279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12280 rm -f conftest.err conftest.$ac_ext
12281 if $ac_preproc_ok; then
12282   :
12283 else
12284   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12285 See \`config.log' for more details." >&5
12286 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12287 See \`config.log' for more details." >&2;}
12288    { (exit 1); exit 1; }; }
12289 fi
12290
12291 ac_ext=cpp
12292 ac_cpp='$CXXCPP $CPPFLAGS'
12293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12296
12297 fi
12298
12299
12300 ac_ext=f
12301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12304 if test -n "$ac_tool_prefix"; then
12305   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12306   do
12307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12311 if test "${ac_cv_prog_F77+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   if test -n "$F77"; then
12315   ac_cv_prog_F77="$F77" # Let the user override the test.
12316 else
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12319 do
12320   IFS=$as_save_IFS
12321   test -z "$as_dir" && as_dir=.
12322   for ac_exec_ext in '' $ac_executable_extensions; do
12323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12326     break 2
12327   fi
12328 done
12329 done
12330 IFS=$as_save_IFS
12331
12332 fi
12333 fi
12334 F77=$ac_cv_prog_F77
12335 if test -n "$F77"; then
12336   { echo "$as_me:$LINENO: result: $F77" >&5
12337 echo "${ECHO_T}$F77" >&6; }
12338 else
12339   { echo "$as_me:$LINENO: result: no" >&5
12340 echo "${ECHO_T}no" >&6; }
12341 fi
12342
12343
12344     test -n "$F77" && break
12345   done
12346 fi
12347 if test -z "$F77"; then
12348   ac_ct_F77=$F77
12349   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12350 do
12351   # Extract the first word of "$ac_prog", so it can be a program name with args.
12352 set dummy $ac_prog; ac_word=$2
12353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12355 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   if test -n "$ac_ct_F77"; then
12359   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364   IFS=$as_save_IFS
12365   test -z "$as_dir" && as_dir=.
12366   for ac_exec_ext in '' $ac_executable_extensions; do
12367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368     ac_cv_prog_ac_ct_F77="$ac_prog"
12369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12370     break 2
12371   fi
12372 done
12373 done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12379 if test -n "$ac_ct_F77"; then
12380   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12381 echo "${ECHO_T}$ac_ct_F77" >&6; }
12382 else
12383   { echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6; }
12385 fi
12386
12387
12388   test -n "$ac_ct_F77" && break
12389 done
12390
12391   if test "x$ac_ct_F77" = x; then
12392     F77=""
12393   else
12394     case $cross_compiling:$ac_tool_warned in
12395 yes:)
12396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12397 whose name does not start with the host triplet.  If you think this
12398 configuration is useful to you, please write to autoconf@gnu.org." >&5
12399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12400 whose name does not start with the host triplet.  If you think this
12401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12402 ac_tool_warned=yes ;;
12403 esac
12404     F77=$ac_ct_F77
12405   fi
12406 fi
12407
12408
12409 # Provide some information about the compiler.
12410 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12411 ac_compiler=`set X $ac_compile; echo $2`
12412 { (ac_try="$ac_compiler --version >&5"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_compiler --version >&5") 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }
12422 { (ac_try="$ac_compiler -v >&5"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_compiler -v >&5") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }
12432 { (ac_try="$ac_compiler -V >&5"
12433 case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_compiler -V >&5") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }
12442 rm -f a.out
12443
12444 # If we don't use `.F' as extension, the preprocessor is not run on the
12445 # input file.  (Note that this only needs to work for GNU compilers.)
12446 ac_save_ext=$ac_ext
12447 ac_ext=F
12448 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12449 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12450 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   cat >conftest.$ac_ext <<_ACEOF
12454       program main
12455 #ifndef __GNUC__
12456        choke me
12457 #endif
12458
12459       end
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468   (eval "$ac_compile") 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } && {
12475          test -z "$ac_f77_werror_flag" ||
12476          test ! -s conftest.err
12477        } && test -s conftest.$ac_objext; then
12478   ac_compiler_gnu=yes
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483         ac_compiler_gnu=no
12484 fi
12485
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12488
12489 fi
12490 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12491 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12492 ac_ext=$ac_save_ext
12493 ac_test_FFLAGS=${FFLAGS+set}
12494 ac_save_FFLAGS=$FFLAGS
12495 FFLAGS=
12496 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12497 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12498 if test "${ac_cv_prog_f77_g+set}" = set; then
12499   echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501   FFLAGS=-g
12502 cat >conftest.$ac_ext <<_ACEOF
12503       program main
12504
12505       end
12506 _ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_compile") 2>conftest.er1
12515   ac_status=$?
12516   grep -v '^ *+' conftest.er1 >conftest.err
12517   rm -f conftest.er1
12518   cat conftest.err >&5
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } && {
12521          test -z "$ac_f77_werror_flag" ||
12522          test ! -s conftest.err
12523        } && test -s conftest.$ac_objext; then
12524   ac_cv_prog_f77_g=yes
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529         ac_cv_prog_f77_g=no
12530 fi
12531
12532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533
12534 fi
12535 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12536 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12537 if test "$ac_test_FFLAGS" = set; then
12538   FFLAGS=$ac_save_FFLAGS
12539 elif test $ac_cv_prog_f77_g = yes; then
12540   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12541     FFLAGS="-g -O2"
12542   else
12543     FFLAGS="-g"
12544   fi
12545 else
12546   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12547     FFLAGS="-O2"
12548   else
12549     FFLAGS=
12550   fi
12551 fi
12552
12553 G77=`test $ac_compiler_gnu = yes && echo yes`
12554 ac_ext=c
12555 ac_cpp='$CPP $CPPFLAGS'
12556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12559
12560
12561
12562 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12563
12564 # find the maximum length of command line arguments
12565 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12566 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12567 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570     i=0
12571   teststring="ABCD"
12572
12573   case $build_os in
12574   msdosdjgpp*)
12575     # On DJGPP, this test can blow up pretty badly due to problems in libc
12576     # (any single argument exceeding 2000 bytes causes a buffer overrun
12577     # during glob expansion).  Even if it were fixed, the result of this
12578     # check would be larger than it should be.
12579     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12580     ;;
12581
12582   gnu*)
12583     # Under GNU Hurd, this test is not required because there is
12584     # no limit to the length of command line arguments.
12585     # Libtool will interpret -1 as no limit whatsoever
12586     lt_cv_sys_max_cmd_len=-1;
12587     ;;
12588
12589   cygwin* | mingw*)
12590     # On Win9x/ME, this test blows up -- it succeeds, but takes
12591     # about 5 minutes as the teststring grows exponentially.
12592     # Worse, since 9x/ME are not pre-emptively multitasking,
12593     # you end up with a "frozen" computer, even though with patience
12594     # the test eventually succeeds (with a max line length of 256k).
12595     # Instead, let's just punt: use the minimum linelength reported by
12596     # all of the supported platforms: 8192 (on NT/2K/XP).
12597     lt_cv_sys_max_cmd_len=8192;
12598     ;;
12599
12600   amigaos*)
12601     # On AmigaOS with pdksh, this test takes hours, literally.
12602     # So we just punt and use a minimum line length of 8192.
12603     lt_cv_sys_max_cmd_len=8192;
12604     ;;
12605
12606   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12607     # This has been around since 386BSD, at least.  Likely further.
12608     if test -x /sbin/sysctl; then
12609       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12610     elif test -x /usr/sbin/sysctl; then
12611       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12612     else
12613       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12614     fi
12615     # And add a safety zone
12616     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12617     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12618     ;;
12619
12620   interix*)
12621     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12622     lt_cv_sys_max_cmd_len=196608
12623     ;;
12624
12625   osf*)
12626     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12627     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12628     # nice to cause kernel panics so lets avoid the loop below.
12629     # First set a reasonable default.
12630     lt_cv_sys_max_cmd_len=16384
12631     #
12632     if test -x /sbin/sysconfig; then
12633       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12634         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12635       esac
12636     fi
12637     ;;
12638   sco3.2v5*)
12639     lt_cv_sys_max_cmd_len=102400
12640     ;;
12641   sysv5* | sco5v6* | sysv4.2uw2*)
12642     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12643     if test -n "$kargmax"; then
12644       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12645     else
12646       lt_cv_sys_max_cmd_len=32768
12647     fi
12648     ;;
12649   *)
12650     # If test is not a shell built-in, we'll probably end up computing a
12651     # maximum length that is only half of the actual maximum length, but
12652     # we can't tell.
12653     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12654     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12655                = "XX$teststring") >/dev/null 2>&1 &&
12656             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12657             lt_cv_sys_max_cmd_len=$new_result &&
12658             test $i != 17 # 1/2 MB should be enough
12659     do
12660       i=`expr $i + 1`
12661       teststring=$teststring$teststring
12662     done
12663     teststring=
12664     # Add a significant safety factor because C++ compilers can tack on massive
12665     # amounts of additional arguments before passing them to the linker.
12666     # It appears as though 1/2 is a usable value.
12667     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12668     ;;
12669   esac
12670
12671 fi
12672
12673 if test -n $lt_cv_sys_max_cmd_len ; then
12674   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12675 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12676 else
12677   { echo "$as_me:$LINENO: result: none" >&5
12678 echo "${ECHO_T}none" >&6; }
12679 fi
12680
12681
12682
12683
12684 # Check for command to grab the raw symbol name followed by C symbol from nm.
12685 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12686 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12687 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690
12691 # These are sane defaults that work on at least a few old systems.
12692 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12693
12694 # Character class describing NM global symbol codes.
12695 symcode='[BCDEGRST]'
12696
12697 # Regexp to match symbols that can be accessed directly from C.
12698 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12699
12700 # Transform an extracted symbol line into a proper C declaration
12701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12702
12703 # Transform an extracted symbol line into symbol name and symbol address
12704 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'"
12705
12706 # Define system-specific variables.
12707 case $host_os in
12708 aix*)
12709   symcode='[BCDT]'
12710   ;;
12711 cygwin* | mingw* | pw32*)
12712   symcode='[ABCDGISTW]'
12713   ;;
12714 hpux*) # Its linker distinguishes data from code symbols
12715   if test "$host_cpu" = ia64; then
12716     symcode='[ABCDEGRST]'
12717   fi
12718   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12719   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'"
12720   ;;
12721 linux*)
12722   if test "$host_cpu" = ia64; then
12723     symcode='[ABCDGIRSTW]'
12724     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12725     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'"
12726   fi
12727   ;;
12728 irix* | nonstopux*)
12729   symcode='[BCDEGRST]'
12730   ;;
12731 osf*)
12732   symcode='[BCDEGQRST]'
12733   ;;
12734 solaris*)
12735   symcode='[BDRT]'
12736   ;;
12737 sco3.2v5*)
12738   symcode='[DT]'
12739   ;;
12740 sysv4.2uw2*)
12741   symcode='[DT]'
12742   ;;
12743 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12744   symcode='[ABDT]'
12745   ;;
12746 sysv4)
12747   symcode='[DFNSTU]'
12748   ;;
12749 esac
12750
12751 # Handle CRLF in mingw tool chain
12752 opt_cr=
12753 case $build_os in
12754 mingw*)
12755   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12756   ;;
12757 esac
12758
12759 # If we're using GNU nm, then use its standard symbol codes.
12760 case `$NM -V 2>&1` in
12761 *GNU* | *'with BFD'*)
12762   symcode='[ABCDGIRSTW]' ;;
12763 esac
12764
12765 # Try without a prefix undercore, then with it.
12766 for ac_symprfx in "" "_"; do
12767
12768   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12769   symxfrm="\\1 $ac_symprfx\\2 \\2"
12770
12771   # Write the raw and C identifiers.
12772   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12773
12774   # Check to see that the pipe works correctly.
12775   pipe_works=no
12776
12777   rm -f conftest*
12778   cat > conftest.$ac_ext <<EOF
12779 #ifdef __cplusplus
12780 extern "C" {
12781 #endif
12782 char nm_test_var;
12783 void nm_test_func(){}
12784 #ifdef __cplusplus
12785 }
12786 #endif
12787 int main(){nm_test_var='a';nm_test_func();return(0);}
12788 EOF
12789
12790   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791   (eval $ac_compile) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; then
12795     # Now try to grab the symbols.
12796     nlist=conftest.nm
12797     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12798   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } && test -s "$nlist"; then
12802       # Try sorting and uniquifying the output.
12803       if sort "$nlist" | uniq > "$nlist"T; then
12804         mv -f "$nlist"T "$nlist"
12805       else
12806         rm -f "$nlist"T
12807       fi
12808
12809       # Make sure that we snagged all the symbols we need.
12810       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12811         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12812           cat <<EOF > conftest.$ac_ext
12813 #ifdef __cplusplus
12814 extern "C" {
12815 #endif
12816
12817 EOF
12818           # Now generate the symbol file.
12819           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12820
12821           cat <<EOF >> conftest.$ac_ext
12822 #if defined (__STDC__) && __STDC__
12823 # define lt_ptr_t void *
12824 #else
12825 # define lt_ptr_t char *
12826 # define const
12827 #endif
12828
12829 /* The mapping between symbol names and symbols. */
12830 const struct {
12831   const char *name;
12832   lt_ptr_t address;
12833 }
12834 lt_preloaded_symbols[] =
12835 {
12836 EOF
12837           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12838           cat <<\EOF >> conftest.$ac_ext
12839   {0, (lt_ptr_t) 0}
12840 };
12841
12842 #ifdef __cplusplus
12843 }
12844 #endif
12845 EOF
12846           # Now try linking the two files.
12847           mv conftest.$ac_objext conftstm.$ac_objext
12848           lt_save_LIBS="$LIBS"
12849           lt_save_CFLAGS="$CFLAGS"
12850           LIBS="conftstm.$ac_objext"
12851           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12852           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853   (eval $ac_link) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12857             pipe_works=yes
12858           fi
12859           LIBS="$lt_save_LIBS"
12860           CFLAGS="$lt_save_CFLAGS"
12861         else
12862           echo "cannot find nm_test_func in $nlist" >&5
12863         fi
12864       else
12865         echo "cannot find nm_test_var in $nlist" >&5
12866       fi
12867     else
12868       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12869     fi
12870   else
12871     echo "$progname: failed program was:" >&5
12872     cat conftest.$ac_ext >&5
12873   fi
12874   rm -f conftest* conftst*
12875
12876   # Do not use the global_symbol_pipe unless it works.
12877   if test "$pipe_works" = yes; then
12878     break
12879   else
12880     lt_cv_sys_global_symbol_pipe=
12881   fi
12882 done
12883
12884 fi
12885
12886 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12887   lt_cv_sys_global_symbol_to_cdecl=
12888 fi
12889 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12890   { echo "$as_me:$LINENO: result: failed" >&5
12891 echo "${ECHO_T}failed" >&6; }
12892 else
12893   { echo "$as_me:$LINENO: result: ok" >&5
12894 echo "${ECHO_T}ok" >&6; }
12895 fi
12896
12897 { echo "$as_me:$LINENO: checking for objdir" >&5
12898 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12899 if test "${lt_cv_objdir+set}" = set; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902   rm -f .libs 2>/dev/null
12903 mkdir .libs 2>/dev/null
12904 if test -d .libs; then
12905   lt_cv_objdir=.libs
12906 else
12907   # MS-DOS does not allow filenames that begin with a dot.
12908   lt_cv_objdir=_libs
12909 fi
12910 rmdir .libs 2>/dev/null
12911 fi
12912 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12913 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12914 objdir=$lt_cv_objdir
12915
12916
12917
12918
12919
12920 case $host_os in
12921 aix3*)
12922   # AIX sometimes has problems with the GCC collect2 program.  For some
12923   # reason, if we set the COLLECT_NAMES environment variable, the problems
12924   # vanish in a puff of smoke.
12925   if test "X${COLLECT_NAMES+set}" != Xset; then
12926     COLLECT_NAMES=
12927     export COLLECT_NAMES
12928   fi
12929   ;;
12930 esac
12931
12932 # Sed substitution that helps us do robust quoting.  It backslashifies
12933 # metacharacters that are still active within double-quoted strings.
12934 Xsed='sed -e 1s/^X//'
12935 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12936
12937 # Same as above, but do not quote variable references.
12938 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12939
12940 # Sed substitution to delay expansion of an escaped shell variable in a
12941 # double_quote_subst'ed string.
12942 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12943
12944 # Sed substitution to avoid accidental globbing in evaled expressions
12945 no_glob_subst='s/\*/\\\*/g'
12946
12947 # Constants:
12948 rm="rm -f"
12949
12950 # Global variables:
12951 default_ofile=mklib
12952 can_build_shared=yes
12953
12954 # All known linkers require a `.a' archive for static linking (except MSVC,
12955 # which needs '.lib').
12956 libext=a
12957 ltmain="$ac_aux_dir/ltmain.sh"
12958 ofile="$default_ofile"
12959 with_gnu_ld="$lt_cv_prog_gnu_ld"
12960
12961 if test -n "$ac_tool_prefix"; then
12962   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12963 set dummy ${ac_tool_prefix}ar; ac_word=$2
12964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12966 if test "${ac_cv_prog_AR+set}" = set; then
12967   echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969   if test -n "$AR"; then
12970   ac_cv_prog_AR="$AR" # Let the user override the test.
12971 else
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12974 do
12975   IFS=$as_save_IFS
12976   test -z "$as_dir" && as_dir=.
12977   for ac_exec_ext in '' $ac_executable_extensions; do
12978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979     ac_cv_prog_AR="${ac_tool_prefix}ar"
12980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12981     break 2
12982   fi
12983 done
12984 done
12985 IFS=$as_save_IFS
12986
12987 fi
12988 fi
12989 AR=$ac_cv_prog_AR
12990 if test -n "$AR"; then
12991   { echo "$as_me:$LINENO: result: $AR" >&5
12992 echo "${ECHO_T}$AR" >&6; }
12993 else
12994   { echo "$as_me:$LINENO: result: no" >&5
12995 echo "${ECHO_T}no" >&6; }
12996 fi
12997
12998
12999 fi
13000 if test -z "$ac_cv_prog_AR"; then
13001   ac_ct_AR=$AR
13002   # Extract the first word of "ar", so it can be a program name with args.
13003 set dummy ar; ac_word=$2
13004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13007   echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009   if test -n "$ac_ct_AR"; then
13010   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13014 do
13015   IFS=$as_save_IFS
13016   test -z "$as_dir" && as_dir=.
13017   for ac_exec_ext in '' $ac_executable_extensions; do
13018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019     ac_cv_prog_ac_ct_AR="ar"
13020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13021     break 2
13022   fi
13023 done
13024 done
13025 IFS=$as_save_IFS
13026
13027 fi
13028 fi
13029 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13030 if test -n "$ac_ct_AR"; then
13031   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13032 echo "${ECHO_T}$ac_ct_AR" >&6; }
13033 else
13034   { echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6; }
13036 fi
13037
13038   if test "x$ac_ct_AR" = x; then
13039     AR="false"
13040   else
13041     case $cross_compiling:$ac_tool_warned in
13042 yes:)
13043 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13044 whose name does not start with the host triplet.  If you think this
13045 configuration is useful to you, please write to autoconf@gnu.org." >&5
13046 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13047 whose name does not start with the host triplet.  If you think this
13048 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13049 ac_tool_warned=yes ;;
13050 esac
13051     AR=$ac_ct_AR
13052   fi
13053 else
13054   AR="$ac_cv_prog_AR"
13055 fi
13056
13057 if test -n "$ac_tool_prefix"; then
13058   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13062 if test "${ac_cv_prog_RANLIB+set}" = set; then
13063   echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065   if test -n "$RANLIB"; then
13066   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13067 else
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13070 do
13071   IFS=$as_save_IFS
13072   test -z "$as_dir" && as_dir=.
13073   for ac_exec_ext in '' $ac_executable_extensions; do
13074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13077     break 2
13078   fi
13079 done
13080 done
13081 IFS=$as_save_IFS
13082
13083 fi
13084 fi
13085 RANLIB=$ac_cv_prog_RANLIB
13086 if test -n "$RANLIB"; then
13087   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13088 echo "${ECHO_T}$RANLIB" >&6; }
13089 else
13090   { echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6; }
13092 fi
13093
13094
13095 fi
13096 if test -z "$ac_cv_prog_RANLIB"; then
13097   ac_ct_RANLIB=$RANLIB
13098   # Extract the first word of "ranlib", so it can be a program name with args.
13099 set dummy ranlib; ac_word=$2
13100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   if test -n "$ac_ct_RANLIB"; then
13106   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111   IFS=$as_save_IFS
13112   test -z "$as_dir" && as_dir=.
13113   for ac_exec_ext in '' $ac_executable_extensions; do
13114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13115     ac_cv_prog_ac_ct_RANLIB="ranlib"
13116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117     break 2
13118   fi
13119 done
13120 done
13121 IFS=$as_save_IFS
13122
13123 fi
13124 fi
13125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13126 if test -n "$ac_ct_RANLIB"; then
13127   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13128 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13129 else
13130   { echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6; }
13132 fi
13133
13134   if test "x$ac_ct_RANLIB" = x; then
13135     RANLIB=":"
13136   else
13137     case $cross_compiling:$ac_tool_warned in
13138 yes:)
13139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13140 whose name does not start with the host triplet.  If you think this
13141 configuration is useful to you, please write to autoconf@gnu.org." >&5
13142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13143 whose name does not start with the host triplet.  If you think this
13144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13145 ac_tool_warned=yes ;;
13146 esac
13147     RANLIB=$ac_ct_RANLIB
13148   fi
13149 else
13150   RANLIB="$ac_cv_prog_RANLIB"
13151 fi
13152
13153 if test -n "$ac_tool_prefix"; then
13154   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13155 set dummy ${ac_tool_prefix}strip; ac_word=$2
13156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158 if test "${ac_cv_prog_STRIP+set}" = set; then
13159   echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161   if test -n "$STRIP"; then
13162   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13166 do
13167   IFS=$as_save_IFS
13168   test -z "$as_dir" && as_dir=.
13169   for ac_exec_ext in '' $ac_executable_extensions; do
13170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173     break 2
13174   fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 fi
13180 fi
13181 STRIP=$ac_cv_prog_STRIP
13182 if test -n "$STRIP"; then
13183   { echo "$as_me:$LINENO: result: $STRIP" >&5
13184 echo "${ECHO_T}$STRIP" >&6; }
13185 else
13186   { echo "$as_me:$LINENO: result: no" >&5
13187 echo "${ECHO_T}no" >&6; }
13188 fi
13189
13190
13191 fi
13192 if test -z "$ac_cv_prog_STRIP"; then
13193   ac_ct_STRIP=$STRIP
13194   # Extract the first word of "strip", so it can be a program name with args.
13195 set dummy strip; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   if test -n "$ac_ct_STRIP"; then
13202   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207   IFS=$as_save_IFS
13208   test -z "$as_dir" && as_dir=.
13209   for ac_exec_ext in '' $ac_executable_extensions; do
13210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211     ac_cv_prog_ac_ct_STRIP="strip"
13212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213     break 2
13214   fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13222 if test -n "$ac_ct_STRIP"; then
13223   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13224 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13225 else
13226   { echo "$as_me:$LINENO: result: no" >&5
13227 echo "${ECHO_T}no" >&6; }
13228 fi
13229
13230   if test "x$ac_ct_STRIP" = x; then
13231     STRIP=":"
13232   else
13233     case $cross_compiling:$ac_tool_warned in
13234 yes:)
13235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13236 whose name does not start with the host triplet.  If you think this
13237 configuration is useful to you, please write to autoconf@gnu.org." >&5
13238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13239 whose name does not start with the host triplet.  If you think this
13240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13241 ac_tool_warned=yes ;;
13242 esac
13243     STRIP=$ac_ct_STRIP
13244   fi
13245 else
13246   STRIP="$ac_cv_prog_STRIP"
13247 fi
13248
13249
13250 old_CC="$CC"
13251 old_CFLAGS="$CFLAGS"
13252
13253 # Set sane defaults for various variables
13254 test -z "$AR" && AR=ar
13255 test -z "$AR_FLAGS" && AR_FLAGS=cru
13256 test -z "$AS" && AS=as
13257 test -z "$CC" && CC=cc
13258 test -z "$LTCC" && LTCC=$CC
13259 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13260 test -z "$DLLTOOL" && DLLTOOL=dlltool
13261 test -z "$LD" && LD=ld
13262 test -z "$LN_S" && LN_S="ln -s"
13263 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13264 test -z "$NM" && NM=nm
13265 test -z "$SED" && SED=sed
13266 test -z "$OBJDUMP" && OBJDUMP=objdump
13267 test -z "$RANLIB" && RANLIB=:
13268 test -z "$STRIP" && STRIP=:
13269 test -z "$ac_objext" && ac_objext=o
13270
13271 # Determine commands to create old-style static archives.
13272 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13273 old_postinstall_cmds='chmod 644 $oldlib'
13274 old_postuninstall_cmds=
13275
13276 if test -n "$RANLIB"; then
13277   case $host_os in
13278   openbsd*)
13279     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13280     ;;
13281   *)
13282     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13283     ;;
13284   esac
13285   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13286 fi
13287
13288 for cc_temp in $compiler""; do
13289   case $cc_temp in
13290     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13291     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13292     \-*) ;;
13293     *) break;;
13294   esac
13295 done
13296 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13297
13298
13299 # Only perform the check for file, if the check method requires it
13300 case $deplibs_check_method in
13301 file_magic*)
13302   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13303     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13304 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13305 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13306   echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308   case $MAGIC_CMD in
13309 [\\/*] |  ?:[\\/]*)
13310   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13311   ;;
13312 *)
13313   lt_save_MAGIC_CMD="$MAGIC_CMD"
13314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13315   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13316   for ac_dir in $ac_dummy; do
13317     IFS="$lt_save_ifs"
13318     test -z "$ac_dir" && ac_dir=.
13319     if test -f $ac_dir/${ac_tool_prefix}file; then
13320       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13321       if test -n "$file_magic_test_file"; then
13322         case $deplibs_check_method in
13323         "file_magic "*)
13324           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13325           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13326           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13327             $EGREP "$file_magic_regex" > /dev/null; then
13328             :
13329           else
13330             cat <<EOF 1>&2
13331
13332 *** Warning: the command libtool uses to detect shared libraries,
13333 *** $file_magic_cmd, produces output that libtool cannot recognize.
13334 *** The result is that libtool may fail to recognize shared libraries
13335 *** as such.  This will affect the creation of libtool libraries that
13336 *** depend on shared libraries, but programs linked with such libtool
13337 *** libraries will work regardless of this problem.  Nevertheless, you
13338 *** may want to report the problem to your system manager and/or to
13339 *** bug-libtool@gnu.org
13340
13341 EOF
13342           fi ;;
13343         esac
13344       fi
13345       break
13346     fi
13347   done
13348   IFS="$lt_save_ifs"
13349   MAGIC_CMD="$lt_save_MAGIC_CMD"
13350   ;;
13351 esac
13352 fi
13353
13354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13355 if test -n "$MAGIC_CMD"; then
13356   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13357 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13358 else
13359   { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13361 fi
13362
13363 if test -z "$lt_cv_path_MAGIC_CMD"; then
13364   if test -n "$ac_tool_prefix"; then
13365     { echo "$as_me:$LINENO: checking for file" >&5
13366 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13367 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   case $MAGIC_CMD in
13371 [\\/*] |  ?:[\\/]*)
13372   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13373   ;;
13374 *)
13375   lt_save_MAGIC_CMD="$MAGIC_CMD"
13376   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13377   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13378   for ac_dir in $ac_dummy; do
13379     IFS="$lt_save_ifs"
13380     test -z "$ac_dir" && ac_dir=.
13381     if test -f $ac_dir/file; then
13382       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13383       if test -n "$file_magic_test_file"; then
13384         case $deplibs_check_method in
13385         "file_magic "*)
13386           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13387           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13388           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13389             $EGREP "$file_magic_regex" > /dev/null; then
13390             :
13391           else
13392             cat <<EOF 1>&2
13393
13394 *** Warning: the command libtool uses to detect shared libraries,
13395 *** $file_magic_cmd, produces output that libtool cannot recognize.
13396 *** The result is that libtool may fail to recognize shared libraries
13397 *** as such.  This will affect the creation of libtool libraries that
13398 *** depend on shared libraries, but programs linked with such libtool
13399 *** libraries will work regardless of this problem.  Nevertheless, you
13400 *** may want to report the problem to your system manager and/or to
13401 *** bug-libtool@gnu.org
13402
13403 EOF
13404           fi ;;
13405         esac
13406       fi
13407       break
13408     fi
13409   done
13410   IFS="$lt_save_ifs"
13411   MAGIC_CMD="$lt_save_MAGIC_CMD"
13412   ;;
13413 esac
13414 fi
13415
13416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13417 if test -n "$MAGIC_CMD"; then
13418   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13419 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13420 else
13421   { echo "$as_me:$LINENO: result: no" >&5
13422 echo "${ECHO_T}no" >&6; }
13423 fi
13424
13425   else
13426     MAGIC_CMD=:
13427   fi
13428 fi
13429
13430   fi
13431   ;;
13432 esac
13433
13434 enable_dlopen=yes
13435 enable_win32_dll=no
13436
13437 # Check whether --enable-libtool-lock was given.
13438 if test "${enable_libtool_lock+set}" = set; then
13439   enableval=$enable_libtool_lock;
13440 fi
13441
13442 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13443
13444
13445 # Check whether --with-pic was given.
13446 if test "${with_pic+set}" = set; then
13447   withval=$with_pic; pic_mode="$withval"
13448 else
13449   pic_mode=default
13450 fi
13451
13452 test -z "$pic_mode" && pic_mode=default
13453
13454 # Use C for the default configuration in the libtool script
13455 tagname=
13456 lt_save_CC="$CC"
13457 ac_ext=c
13458 ac_cpp='$CPP $CPPFLAGS'
13459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13462
13463
13464 # Source file extension for C test sources.
13465 ac_ext=c
13466
13467 # Object file extension for compiled C test sources.
13468 objext=o
13469 objext=$objext
13470
13471 # Code to be used in simple compile tests
13472 lt_simple_compile_test_code="int some_variable = 0;\n"
13473
13474 # Code to be used in simple link tests
13475 lt_simple_link_test_code='int main(){return(0);}\n'
13476
13477
13478 # If no C compiler was specified, use CC.
13479 LTCC=${LTCC-"$CC"}
13480
13481 # If no C compiler flags were specified, use CFLAGS.
13482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13483
13484 # Allow CC to be a program name with arguments.
13485 compiler=$CC
13486
13487
13488 # save warnings/boilerplate of simple test code
13489 ac_outfile=conftest.$ac_objext
13490 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13492 _lt_compiler_boilerplate=`cat conftest.err`
13493 $rm conftest*
13494
13495 ac_outfile=conftest.$ac_objext
13496 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13498 _lt_linker_boilerplate=`cat conftest.err`
13499 $rm conftest*
13500
13501
13502
13503 lt_prog_compiler_no_builtin_flag=
13504
13505 if test "$GCC" = yes; then
13506   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13507
13508
13509 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13510 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13511 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   lt_cv_prog_compiler_rtti_exceptions=no
13515   ac_outfile=conftest.$ac_objext
13516    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13517    lt_compiler_flag="-fno-rtti -fno-exceptions"
13518    # Insert the option either (1) after the last *FLAGS variable, or
13519    # (2) before a word containing "conftest.", or (3) at the end.
13520    # Note that $ac_compile itself does not contain backslashes and begins
13521    # with a dollar sign (not a hyphen), so the echo should work correctly.
13522    # The option is referenced via a variable to avoid confusing sed.
13523    lt_compile=`echo "$ac_compile" | $SED \
13524    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13525    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13526    -e 's:$: $lt_compiler_flag:'`
13527    (eval echo "\"\$as_me:13527: $lt_compile\"" >&5)
13528    (eval "$lt_compile" 2>conftest.err)
13529    ac_status=$?
13530    cat conftest.err >&5
13531    echo "$as_me:13531: \$? = $ac_status" >&5
13532    if (exit $ac_status) && test -s "$ac_outfile"; then
13533      # The compiler can only warn and ignore the option if not recognized
13534      # So say no if there are warnings other than the usual output.
13535      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13536      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13537      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13538        lt_cv_prog_compiler_rtti_exceptions=yes
13539      fi
13540    fi
13541    $rm conftest*
13542
13543 fi
13544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13545 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13546
13547 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13548     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13549 else
13550     :
13551 fi
13552
13553 fi
13554
13555 lt_prog_compiler_wl=
13556 lt_prog_compiler_pic=
13557 lt_prog_compiler_static=
13558
13559 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13561
13562   if test "$GCC" = yes; then
13563     lt_prog_compiler_wl='-Wl,'
13564     lt_prog_compiler_static='-static'
13565
13566     case $host_os in
13567       aix*)
13568       # All AIX code is PIC.
13569       if test "$host_cpu" = ia64; then
13570         # AIX 5 now supports IA64 processor
13571         lt_prog_compiler_static='-Bstatic'
13572       fi
13573       ;;
13574
13575     amigaos*)
13576       # FIXME: we need at least 68020 code to build shared libraries, but
13577       # adding the `-m68020' flag to GCC prevents building anything better,
13578       # like `-m68040'.
13579       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13580       ;;
13581
13582     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13583       # PIC is the default for these OSes.
13584       ;;
13585
13586     mingw* | pw32* | os2*)
13587       # This hack is so that the source file can tell whether it is being
13588       # built for inclusion in a dll (and should export symbols for example).
13589       lt_prog_compiler_pic='-DDLL_EXPORT'
13590       ;;
13591
13592     darwin* | rhapsody*)
13593       # PIC is the default on this platform
13594       # Common symbols not allowed in MH_DYLIB files
13595       lt_prog_compiler_pic='-fno-common'
13596       ;;
13597
13598     interix3*)
13599       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13600       # Instead, we relocate shared libraries at runtime.
13601       ;;
13602
13603     msdosdjgpp*)
13604       # Just because we use GCC doesn't mean we suddenly get shared libraries
13605       # on systems that don't support them.
13606       lt_prog_compiler_can_build_shared=no
13607       enable_shared=no
13608       ;;
13609
13610     sysv4*MP*)
13611       if test -d /usr/nec; then
13612         lt_prog_compiler_pic=-Kconform_pic
13613       fi
13614       ;;
13615
13616     hpux*)
13617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13618       # not for PA HP-UX.
13619       case $host_cpu in
13620       hppa*64*|ia64*)
13621         # +Z the default
13622         ;;
13623       *)
13624         lt_prog_compiler_pic='-fPIC'
13625         ;;
13626       esac
13627       ;;
13628
13629     *)
13630       lt_prog_compiler_pic='-fPIC'
13631       ;;
13632     esac
13633   else
13634     # PORTME Check for flag to pass linker flags through the system compiler.
13635     case $host_os in
13636     aix*)
13637       lt_prog_compiler_wl='-Wl,'
13638       if test "$host_cpu" = ia64; then
13639         # AIX 5 now supports IA64 processor
13640         lt_prog_compiler_static='-Bstatic'
13641       else
13642         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13643       fi
13644       ;;
13645       darwin*)
13646         # PIC is the default on this platform
13647         # Common symbols not allowed in MH_DYLIB files
13648        case $cc_basename in
13649          xlc*)
13650          lt_prog_compiler_pic='-qnocommon'
13651          lt_prog_compiler_wl='-Wl,'
13652          ;;
13653        esac
13654        ;;
13655
13656     mingw* | pw32* | os2*)
13657       # This hack is so that the source file can tell whether it is being
13658       # built for inclusion in a dll (and should export symbols for example).
13659       lt_prog_compiler_pic='-DDLL_EXPORT'
13660       ;;
13661
13662     hpux9* | hpux10* | hpux11*)
13663       lt_prog_compiler_wl='-Wl,'
13664       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13665       # not for PA HP-UX.
13666       case $host_cpu in
13667       hppa*64*|ia64*)
13668         # +Z the default
13669         ;;
13670       *)
13671         lt_prog_compiler_pic='+Z'
13672         ;;
13673       esac
13674       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13675       lt_prog_compiler_static='${wl}-a ${wl}archive'
13676       ;;
13677
13678     irix5* | irix6* | nonstopux*)
13679       lt_prog_compiler_wl='-Wl,'
13680       # PIC (with -KPIC) is the default.
13681       lt_prog_compiler_static='-non_shared'
13682       ;;
13683
13684     newsos6)
13685       lt_prog_compiler_pic='-KPIC'
13686       lt_prog_compiler_static='-Bstatic'
13687       ;;
13688
13689     linux*)
13690       case $cc_basename in
13691       icc* | ecc*)
13692         lt_prog_compiler_wl='-Wl,'
13693         lt_prog_compiler_pic='-KPIC'
13694         lt_prog_compiler_static='-static'
13695         ;;
13696       pgcc* | pgf77* | pgf90* | pgf95*)
13697         # Portland Group compilers (*not* the Pentium gcc compiler,
13698         # which looks to be a dead project)
13699         lt_prog_compiler_wl='-Wl,'
13700         lt_prog_compiler_pic='-fpic'
13701         lt_prog_compiler_static='-Bstatic'
13702         ;;
13703       ccc*)
13704         lt_prog_compiler_wl='-Wl,'
13705         # All Alpha code is PIC.
13706         lt_prog_compiler_static='-non_shared'
13707         ;;
13708       esac
13709       ;;
13710
13711     osf3* | osf4* | osf5*)
13712       lt_prog_compiler_wl='-Wl,'
13713       # All OSF/1 code is PIC.
13714       lt_prog_compiler_static='-non_shared'
13715       ;;
13716
13717     solaris*)
13718       lt_prog_compiler_pic='-KPIC'
13719       lt_prog_compiler_static='-Bstatic'
13720       case $cc_basename in
13721       f77* | f90* | f95*)
13722         lt_prog_compiler_wl='-Qoption ld ';;
13723       *)
13724         lt_prog_compiler_wl='-Wl,';;
13725       esac
13726       ;;
13727
13728     sunos4*)
13729       lt_prog_compiler_wl='-Qoption ld '
13730       lt_prog_compiler_pic='-PIC'
13731       lt_prog_compiler_static='-Bstatic'
13732       ;;
13733
13734     sysv4 | sysv4.2uw2* | sysv4.3*)
13735       lt_prog_compiler_wl='-Wl,'
13736       lt_prog_compiler_pic='-KPIC'
13737       lt_prog_compiler_static='-Bstatic'
13738       ;;
13739
13740     sysv4*MP*)
13741       if test -d /usr/nec ;then
13742         lt_prog_compiler_pic='-Kconform_pic'
13743         lt_prog_compiler_static='-Bstatic'
13744       fi
13745       ;;
13746
13747     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13748       lt_prog_compiler_wl='-Wl,'
13749       lt_prog_compiler_pic='-KPIC'
13750       lt_prog_compiler_static='-Bstatic'
13751       ;;
13752
13753     unicos*)
13754       lt_prog_compiler_wl='-Wl,'
13755       lt_prog_compiler_can_build_shared=no
13756       ;;
13757
13758     uts4*)
13759       lt_prog_compiler_pic='-pic'
13760       lt_prog_compiler_static='-Bstatic'
13761       ;;
13762
13763     *)
13764       lt_prog_compiler_can_build_shared=no
13765       ;;
13766     esac
13767   fi
13768
13769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13770 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13771
13772 #
13773 # Check to make sure the PIC flag actually works.
13774 #
13775 if test -n "$lt_prog_compiler_pic"; then
13776
13777 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13778 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13779 if test "${lt_prog_compiler_pic_works+set}" = set; then
13780   echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782   lt_prog_compiler_pic_works=no
13783   ac_outfile=conftest.$ac_objext
13784    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13785    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13786    # Insert the option either (1) after the last *FLAGS variable, or
13787    # (2) before a word containing "conftest.", or (3) at the end.
13788    # Note that $ac_compile itself does not contain backslashes and begins
13789    # with a dollar sign (not a hyphen), so the echo should work correctly.
13790    # The option is referenced via a variable to avoid confusing sed.
13791    lt_compile=`echo "$ac_compile" | $SED \
13792    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13793    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794    -e 's:$: $lt_compiler_flag:'`
13795    (eval echo "\"\$as_me:13795: $lt_compile\"" >&5)
13796    (eval "$lt_compile" 2>conftest.err)
13797    ac_status=$?
13798    cat conftest.err >&5
13799    echo "$as_me:13799: \$? = $ac_status" >&5
13800    if (exit $ac_status) && test -s "$ac_outfile"; then
13801      # The compiler can only warn and ignore the option if not recognized
13802      # So say no if there are warnings other than the usual output.
13803      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13804      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13805      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13806        lt_prog_compiler_pic_works=yes
13807      fi
13808    fi
13809    $rm conftest*
13810
13811 fi
13812 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13813 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13814
13815 if test x"$lt_prog_compiler_pic_works" = xyes; then
13816     case $lt_prog_compiler_pic in
13817      "" | " "*) ;;
13818      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13819      esac
13820 else
13821     lt_prog_compiler_pic=
13822      lt_prog_compiler_can_build_shared=no
13823 fi
13824
13825 fi
13826 case $host_os in
13827   # For platforms which do not support PIC, -DPIC is meaningless:
13828   *djgpp*)
13829     lt_prog_compiler_pic=
13830     ;;
13831   *)
13832     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13833     ;;
13834 esac
13835
13836 #
13837 # Check to make sure the static flag actually works.
13838 #
13839 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13840 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13841 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13842 if test "${lt_prog_compiler_static_works+set}" = set; then
13843   echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845   lt_prog_compiler_static_works=no
13846    save_LDFLAGS="$LDFLAGS"
13847    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13848    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13849    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13850      # The linker can only warn and ignore the option if not recognized
13851      # So say no if there are warnings
13852      if test -s conftest.err; then
13853        # Append any errors to the config.log.
13854        cat conftest.err 1>&5
13855        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13856        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13857        if diff conftest.exp conftest.er2 >/dev/null; then
13858          lt_prog_compiler_static_works=yes
13859        fi
13860      else
13861        lt_prog_compiler_static_works=yes
13862      fi
13863    fi
13864    $rm conftest*
13865    LDFLAGS="$save_LDFLAGS"
13866
13867 fi
13868 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13869 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13870
13871 if test x"$lt_prog_compiler_static_works" = xyes; then
13872     :
13873 else
13874     lt_prog_compiler_static=
13875 fi
13876
13877
13878 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13881   echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883   lt_cv_prog_compiler_c_o=no
13884    $rm -r conftest 2>/dev/null
13885    mkdir conftest
13886    cd conftest
13887    mkdir out
13888    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13889
13890    lt_compiler_flag="-o out/conftest2.$ac_objext"
13891    # Insert the option either (1) after the last *FLAGS variable, or
13892    # (2) before a word containing "conftest.", or (3) at the end.
13893    # Note that $ac_compile itself does not contain backslashes and begins
13894    # with a dollar sign (not a hyphen), so the echo should work correctly.
13895    lt_compile=`echo "$ac_compile" | $SED \
13896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13898    -e 's:$: $lt_compiler_flag:'`
13899    (eval echo "\"\$as_me:13899: $lt_compile\"" >&5)
13900    (eval "$lt_compile" 2>out/conftest.err)
13901    ac_status=$?
13902    cat out/conftest.err >&5
13903    echo "$as_me:13903: \$? = $ac_status" >&5
13904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13905    then
13906      # The compiler can only warn and ignore the option if not recognized
13907      # So say no if there are warnings
13908      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13909      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13910      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13911        lt_cv_prog_compiler_c_o=yes
13912      fi
13913    fi
13914    chmod u+w . 2>&5
13915    $rm conftest*
13916    # SGI C++ compiler will create directory out/ii_files/ for
13917    # template instantiation
13918    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13919    $rm out/* && rmdir out
13920    cd ..
13921    rmdir conftest
13922    $rm conftest*
13923
13924 fi
13925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13927
13928
13929 hard_links="nottested"
13930 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13931   # do not overwrite the value of need_locks provided by the user
13932   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13933 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13934   hard_links=yes
13935   $rm conftest*
13936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13937   touch conftest.a
13938   ln conftest.a conftest.b 2>&5 || hard_links=no
13939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940   { echo "$as_me:$LINENO: result: $hard_links" >&5
13941 echo "${ECHO_T}$hard_links" >&6; }
13942   if test "$hard_links" = no; then
13943     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13944 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13945     need_locks=warn
13946   fi
13947 else
13948   need_locks=no
13949 fi
13950
13951 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13953
13954   runpath_var=
13955   allow_undefined_flag=
13956   enable_shared_with_static_runtimes=no
13957   archive_cmds=
13958   archive_expsym_cmds=
13959   old_archive_From_new_cmds=
13960   old_archive_from_expsyms_cmds=
13961   export_dynamic_flag_spec=
13962   whole_archive_flag_spec=
13963   thread_safe_flag_spec=
13964   hardcode_libdir_flag_spec=
13965   hardcode_libdir_flag_spec_ld=
13966   hardcode_libdir_separator=
13967   hardcode_direct=no
13968   hardcode_minus_L=no
13969   hardcode_shlibpath_var=unsupported
13970   link_all_deplibs=unknown
13971   hardcode_automatic=no
13972   module_cmds=
13973   module_expsym_cmds=
13974   always_export_symbols=no
13975   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13976   # include_expsyms should be a list of space-separated symbols to be *always*
13977   # included in the symbol list
13978   include_expsyms=
13979   # exclude_expsyms can be an extended regexp of symbols to exclude
13980   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13981   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13982   # as well as any symbol that contains `d'.
13983   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13984   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13985   # platforms (ab)use it in PIC code, but their linkers get confused if
13986   # the symbol is explicitly referenced.  Since portable code cannot
13987   # rely on this symbol name, it's probably fine to never include it in
13988   # preloaded symbol tables.
13989   extract_expsyms_cmds=
13990   # Just being paranoid about ensuring that cc_basename is set.
13991   for cc_temp in $compiler""; do
13992   case $cc_temp in
13993     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13994     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13995     \-*) ;;
13996     *) break;;
13997   esac
13998 done
13999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14000
14001   case $host_os in
14002   cygwin* | mingw* | pw32*)
14003     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14004     # When not using gcc, we currently assume that we are using
14005     # Microsoft Visual C++.
14006     if test "$GCC" != yes; then
14007       with_gnu_ld=no
14008     fi
14009     ;;
14010   interix*)
14011     # we just hope/assume this is gcc and not c89 (= MSVC++)
14012     with_gnu_ld=yes
14013     ;;
14014   openbsd*)
14015     with_gnu_ld=no
14016     ;;
14017   esac
14018
14019   ld_shlibs=yes
14020   if test "$with_gnu_ld" = yes; then
14021     # If archive_cmds runs LD, not CC, wlarc should be empty
14022     wlarc='${wl}'
14023
14024     # Set some defaults for GNU ld with shared library support. These
14025     # are reset later if shared libraries are not supported. Putting them
14026     # here allows them to be overridden if necessary.
14027     runpath_var=LD_RUN_PATH
14028     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14029     export_dynamic_flag_spec='${wl}--export-dynamic'
14030     # ancient GNU ld didn't support --whole-archive et. al.
14031     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14032         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14033       else
14034         whole_archive_flag_spec=
14035     fi
14036     supports_anon_versioning=no
14037     case `$LD -v 2>/dev/null` in
14038       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14039       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14040       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14041       *\ 2.11.*) ;; # other 2.11 versions
14042       *) supports_anon_versioning=yes ;;
14043     esac
14044
14045     # See if GNU ld supports shared libraries.
14046     case $host_os in
14047     aix3* | aix4* | aix5*)
14048       # On AIX/PPC, the GNU linker is very broken
14049       if test "$host_cpu" != ia64; then
14050         ld_shlibs=no
14051         cat <<EOF 1>&2
14052
14053 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14054 *** to be unable to reliably create shared libraries on AIX.
14055 *** Therefore, libtool is disabling shared libraries support.  If you
14056 *** really care for shared libraries, you may want to modify your PATH
14057 *** so that a non-GNU linker is found, and then restart.
14058
14059 EOF
14060       fi
14061       ;;
14062
14063     amigaos*)
14064       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)'
14065       hardcode_libdir_flag_spec='-L$libdir'
14066       hardcode_minus_L=yes
14067
14068       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14069       # that the semantics of dynamic libraries on AmigaOS, at least up
14070       # to version 4, is to share data among multiple programs linked
14071       # with the same dynamic library.  Since this doesn't match the
14072       # behavior of shared libraries on other platforms, we can't use
14073       # them.
14074       ld_shlibs=no
14075       ;;
14076
14077     beos*)
14078       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14079         allow_undefined_flag=unsupported
14080         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081         # support --undefined.  This deserves some investigation.  FIXME
14082         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083       else
14084         ld_shlibs=no
14085       fi
14086       ;;
14087
14088     cygwin* | mingw* | pw32*)
14089       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14090       # as there is no search path for DLLs.
14091       hardcode_libdir_flag_spec='-L$libdir'
14092       allow_undefined_flag=unsupported
14093       always_export_symbols=no
14094       enable_shared_with_static_runtimes=yes
14095       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14096
14097       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14098         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14099         # If the export-symbols file already is a .def file (1st line
14100         # is EXPORTS), use it as is; otherwise, prepend...
14101         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14102           cp $export_symbols $output_objdir/$soname.def;
14103         else
14104           echo EXPORTS > $output_objdir/$soname.def;
14105           cat $export_symbols >> $output_objdir/$soname.def;
14106         fi~
14107         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14108       else
14109         ld_shlibs=no
14110       fi
14111       ;;
14112
14113     interix3*)
14114       hardcode_direct=no
14115       hardcode_shlibpath_var=no
14116       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14117       export_dynamic_flag_spec='${wl}-E'
14118       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14119       # Instead, shared libraries are loaded at an image base (0x10000000 by
14120       # default) and relocated if they conflict, which is a slow very memory
14121       # consuming and fragmenting process.  To avoid this, we pick a random,
14122       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14123       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14124       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14125       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'
14126       ;;
14127
14128     linux*)
14129       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14130         tmp_addflag=
14131         case $cc_basename,$host_cpu in
14132         pgcc*)                          # Portland Group C compiler
14133           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'
14134           tmp_addflag=' $pic_flag'
14135           ;;
14136         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14137           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'
14138           tmp_addflag=' $pic_flag -Mnomain' ;;
14139         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14140           tmp_addflag=' -i_dynamic' ;;
14141         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14142           tmp_addflag=' -i_dynamic -nofor_main' ;;
14143         ifc* | ifort*)                  # Intel Fortran compiler
14144           tmp_addflag=' -nofor_main' ;;
14145         esac
14146         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14147
14148         if test $supports_anon_versioning = yes; then
14149           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14150   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14151   $echo "local: *; };" >> $output_objdir/$libname.ver~
14152           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14153         fi
14154       else
14155         ld_shlibs=no
14156       fi
14157       ;;
14158
14159     netbsd*)
14160       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14161         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14162         wlarc=
14163       else
14164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14166       fi
14167       ;;
14168
14169     solaris*)
14170       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14171         ld_shlibs=no
14172         cat <<EOF 1>&2
14173
14174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14175 *** create shared libraries on Solaris systems.  Therefore, libtool
14176 *** is disabling shared libraries support.  We urge you to upgrade GNU
14177 *** binutils to release 2.9.1 or newer.  Another option is to modify
14178 *** your PATH or compiler configuration so that the native linker is
14179 *** used, and then restart.
14180
14181 EOF
14182       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14185       else
14186         ld_shlibs=no
14187       fi
14188       ;;
14189
14190     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14191       case `$LD -v 2>&1` in
14192         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14193         ld_shlibs=no
14194         cat <<_LT_EOF 1>&2
14195
14196 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14197 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14198 *** is disabling shared libraries support.  We urge you to upgrade GNU
14199 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14200 *** your PATH or compiler configuration so that the native linker is
14201 *** used, and then restart.
14202
14203 _LT_EOF
14204         ;;
14205         *)
14206           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14207             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14208             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14209             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14210           else
14211             ld_shlibs=no
14212           fi
14213         ;;
14214       esac
14215       ;;
14216
14217     sunos4*)
14218       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14219       wlarc=
14220       hardcode_direct=yes
14221       hardcode_shlibpath_var=no
14222       ;;
14223
14224     *)
14225       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14226         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14228       else
14229         ld_shlibs=no
14230       fi
14231       ;;
14232     esac
14233
14234     if test "$ld_shlibs" = no; then
14235       runpath_var=
14236       hardcode_libdir_flag_spec=
14237       export_dynamic_flag_spec=
14238       whole_archive_flag_spec=
14239     fi
14240   else
14241     # PORTME fill in a description of your system's linker (not GNU ld)
14242     case $host_os in
14243     aix3*)
14244       allow_undefined_flag=unsupported
14245       always_export_symbols=yes
14246       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'
14247       # Note: this linker hardcodes the directories in LIBPATH if there
14248       # are no directories specified by -L.
14249       hardcode_minus_L=yes
14250       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14251         # Neither direct hardcoding nor static linking is supported with a
14252         # broken collect2.
14253         hardcode_direct=unsupported
14254       fi
14255       ;;
14256
14257     aix4* | aix5*)
14258       if test "$host_cpu" = ia64; then
14259         # On IA64, the linker does run time linking by default, so we don't
14260         # have to do anything special.
14261         aix_use_runtimelinking=no
14262         exp_sym_flag='-Bexport'
14263         no_entry_flag=""
14264       else
14265         # If we're using GNU nm, then we don't want the "-C" option.
14266         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14267         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14268           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'
14269         else
14270           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'
14271         fi
14272         aix_use_runtimelinking=no
14273
14274         # Test if we are trying to use run time linking or normal
14275         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14276         # need to do runtime linking.
14277         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14278           for ld_flag in $LDFLAGS; do
14279           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14280             aix_use_runtimelinking=yes
14281             break
14282           fi
14283           done
14284           ;;
14285         esac
14286
14287         exp_sym_flag='-bexport'
14288         no_entry_flag='-bnoentry'
14289       fi
14290
14291       # When large executables or shared objects are built, AIX ld can
14292       # have problems creating the table of contents.  If linking a library
14293       # or program results in "error TOC overflow" add -mminimal-toc to
14294       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14295       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14296
14297       archive_cmds=''
14298       hardcode_direct=yes
14299       hardcode_libdir_separator=':'
14300       link_all_deplibs=yes
14301
14302       if test "$GCC" = yes; then
14303         case $host_os in aix4.[012]|aix4.[012].*)
14304         # We only want to do this on AIX 4.2 and lower, the check
14305         # below for broken collect2 doesn't work under 4.3+
14306           collect2name=`${CC} -print-prog-name=collect2`
14307           if test -f "$collect2name" && \
14308            strings "$collect2name" | grep resolve_lib_name >/dev/null
14309           then
14310           # We have reworked collect2
14311           hardcode_direct=yes
14312           else
14313           # We have old collect2
14314           hardcode_direct=unsupported
14315           # It fails to find uninstalled libraries when the uninstalled
14316           # path is not listed in the libpath.  Setting hardcode_minus_L
14317           # to unsupported forces relinking
14318           hardcode_minus_L=yes
14319           hardcode_libdir_flag_spec='-L$libdir'
14320           hardcode_libdir_separator=
14321           fi
14322           ;;
14323         esac
14324         shared_flag='-shared'
14325         if test "$aix_use_runtimelinking" = yes; then
14326           shared_flag="$shared_flag "'${wl}-G'
14327         fi
14328       else
14329         # not using gcc
14330         if test "$host_cpu" = ia64; then
14331         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14332         # chokes on -Wl,-G. The following line is correct:
14333           shared_flag='-G'
14334         else
14335           if test "$aix_use_runtimelinking" = yes; then
14336             shared_flag='${wl}-G'
14337           else
14338             shared_flag='${wl}-bM:SRE'
14339           fi
14340         fi
14341       fi
14342
14343       # It seems that -bexpall does not export symbols beginning with
14344       # underscore (_), so it is better to generate a list of symbols to export.
14345       always_export_symbols=yes
14346       if test "$aix_use_runtimelinking" = yes; then
14347         # Warning - without using the other runtime loading flags (-brtl),
14348         # -berok will link without error, but may produce a broken library.
14349         allow_undefined_flag='-berok'
14350        # Determine the default libpath from the value encoded in an empty executable.
14351        cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357
14358 int
14359 main ()
14360 {
14361
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370   *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373   (eval "$ac_link") 2>conftest.er1
14374   ac_status=$?
14375   grep -v '^ *+' conftest.er1 >conftest.err
14376   rm -f conftest.er1
14377   cat conftest.err >&5
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } && {
14380          test -z "$ac_c_werror_flag" ||
14381          test ! -s conftest.err
14382        } && test -s conftest$ac_exeext &&
14383        $as_test_x conftest$ac_exeext; then
14384
14385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14386 }'`
14387 # Check for a 64-bit object if we didn't find anything.
14388 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; }
14389 }'`; fi
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394
14395 fi
14396
14397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14398       conftest$ac_exeext conftest.$ac_ext
14399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14400
14401        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14402         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"
14403        else
14404         if test "$host_cpu" = ia64; then
14405           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14406           allow_undefined_flag="-z nodefs"
14407           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"
14408         else
14409          # Determine the default libpath from the value encoded in an empty executable.
14410          cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h.  */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h.  */
14416
14417 int
14418 main ()
14419 {
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (ac_try="$ac_link"
14427 case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_link") 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } && {
14439          test -z "$ac_c_werror_flag" ||
14440          test ! -s conftest.err
14441        } && test -s conftest$ac_exeext &&
14442        $as_test_x conftest$ac_exeext; then
14443
14444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14445 }'`
14446 # Check for a 64-bit object if we didn't find anything.
14447 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; }
14448 }'`; fi
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453
14454 fi
14455
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457       conftest$ac_exeext conftest.$ac_ext
14458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14459
14460          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14461           # Warning - without using the other run time loading flags,
14462           # -berok will link without error, but may produce a broken library.
14463           no_undefined_flag=' ${wl}-bernotok'
14464           allow_undefined_flag=' ${wl}-berok'
14465           # Exported symbols can be pulled into shared objects from archives
14466           whole_archive_flag_spec='$convenience'
14467           archive_cmds_need_lc=yes
14468           # This is similar to how AIX traditionally builds its shared libraries.
14469           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'
14470         fi
14471       fi
14472       ;;
14473
14474     amigaos*)
14475       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)'
14476       hardcode_libdir_flag_spec='-L$libdir'
14477       hardcode_minus_L=yes
14478       # see comment about different semantics on the GNU ld section
14479       ld_shlibs=no
14480       ;;
14481
14482     bsdi[45]*)
14483       export_dynamic_flag_spec=-rdynamic
14484       ;;
14485
14486     cygwin* | mingw* | pw32*)
14487       # When not using gcc, we currently assume that we are using
14488       # Microsoft Visual C++.
14489       # hardcode_libdir_flag_spec is actually meaningless, as there is
14490       # no search path for DLLs.
14491       hardcode_libdir_flag_spec=' '
14492       allow_undefined_flag=unsupported
14493       # Tell ltmain to make .lib files, not .a files.
14494       libext=lib
14495       # Tell ltmain to make .dll files, not .so files.
14496       shrext_cmds=".dll"
14497       # FIXME: Setting linknames here is a bad hack.
14498       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14499       # The linker will automatically build a .lib file if we build a DLL.
14500       old_archive_From_new_cmds='true'
14501       # FIXME: Should let the user specify the lib program.
14502       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14503       fix_srcfile_path='`cygpath -w "$srcfile"`'
14504       enable_shared_with_static_runtimes=yes
14505       ;;
14506
14507     darwin* | rhapsody*)
14508       case $host_os in
14509         rhapsody* | darwin1.[012])
14510          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14511          ;;
14512        *) # Darwin 1.3 on
14513          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14514            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14515          else
14516            case ${MACOSX_DEPLOYMENT_TARGET} in
14517              10.[012])
14518                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14519                ;;
14520              10.*)
14521                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14522                ;;
14523            esac
14524          fi
14525          ;;
14526       esac
14527       archive_cmds_need_lc=no
14528       hardcode_direct=no
14529       hardcode_automatic=yes
14530       hardcode_shlibpath_var=unsupported
14531       whole_archive_flag_spec=''
14532       link_all_deplibs=yes
14533     if test "$GCC" = yes ; then
14534         output_verbose_link_cmd='echo'
14535         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14536       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14537       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14538       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}'
14539       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}'
14540     else
14541       case $cc_basename in
14542         xlc*)
14543          output_verbose_link_cmd='echo'
14544          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14545          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14546           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14547          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}'
14548           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}'
14549           ;;
14550        *)
14551          ld_shlibs=no
14552           ;;
14553       esac
14554     fi
14555       ;;
14556
14557     dgux*)
14558       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559       hardcode_libdir_flag_spec='-L$libdir'
14560       hardcode_shlibpath_var=no
14561       ;;
14562
14563     freebsd1*)
14564       ld_shlibs=no
14565       ;;
14566
14567     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14568     # support.  Future versions do this automatically, but an explicit c++rt0.o
14569     # does not break anything, and helps significantly (at the cost of a little
14570     # extra space).
14571     freebsd2.2*)
14572       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14573       hardcode_libdir_flag_spec='-R$libdir'
14574       hardcode_direct=yes
14575       hardcode_shlibpath_var=no
14576       ;;
14577
14578     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14579     freebsd2*)
14580       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14581       hardcode_direct=yes
14582       hardcode_minus_L=yes
14583       hardcode_shlibpath_var=no
14584       ;;
14585
14586     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14587     freebsd* | kfreebsd*-gnu | dragonfly*)
14588       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14589       hardcode_libdir_flag_spec='-R$libdir'
14590       hardcode_direct=yes
14591       hardcode_shlibpath_var=no
14592       ;;
14593
14594     hpux9*)
14595       if test "$GCC" = yes; then
14596         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'
14597       else
14598         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'
14599       fi
14600       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14601       hardcode_libdir_separator=:
14602       hardcode_direct=yes
14603
14604       # hardcode_minus_L: Not really in the search PATH,
14605       # but as the default location of the library.
14606       hardcode_minus_L=yes
14607       export_dynamic_flag_spec='${wl}-E'
14608       ;;
14609
14610     hpux10*)
14611       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14612         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14613       else
14614         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14615       fi
14616       if test "$with_gnu_ld" = no; then
14617         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14618         hardcode_libdir_separator=:
14619
14620         hardcode_direct=yes
14621         export_dynamic_flag_spec='${wl}-E'
14622
14623         # hardcode_minus_L: Not really in the search PATH,
14624         # but as the default location of the library.
14625         hardcode_minus_L=yes
14626       fi
14627       ;;
14628
14629     hpux11*)
14630       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14631         case $host_cpu in
14632         hppa*64*)
14633           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14634           ;;
14635         ia64*)
14636           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14637           ;;
14638         *)
14639           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14640           ;;
14641         esac
14642       else
14643         case $host_cpu in
14644         hppa*64*)
14645           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14646           ;;
14647         ia64*)
14648           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14649           ;;
14650         *)
14651           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14652           ;;
14653         esac
14654       fi
14655       if test "$with_gnu_ld" = no; then
14656         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14657         hardcode_libdir_separator=:
14658
14659         case $host_cpu in
14660         hppa*64*|ia64*)
14661           hardcode_libdir_flag_spec_ld='+b $libdir'
14662           hardcode_direct=no
14663           hardcode_shlibpath_var=no
14664           ;;
14665         *)
14666           hardcode_direct=yes
14667           export_dynamic_flag_spec='${wl}-E'
14668
14669           # hardcode_minus_L: Not really in the search PATH,
14670           # but as the default location of the library.
14671           hardcode_minus_L=yes
14672           ;;
14673         esac
14674       fi
14675       ;;
14676
14677     irix5* | irix6* | nonstopux*)
14678       if test "$GCC" = yes; then
14679         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'
14680       else
14681         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'
14682         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14683       fi
14684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14685       hardcode_libdir_separator=:
14686       link_all_deplibs=yes
14687       ;;
14688
14689     netbsd*)
14690       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14691         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14692       else
14693         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14694       fi
14695       hardcode_libdir_flag_spec='-R$libdir'
14696       hardcode_direct=yes
14697       hardcode_shlibpath_var=no
14698       ;;
14699
14700     newsos6)
14701       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702       hardcode_direct=yes
14703       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14704       hardcode_libdir_separator=:
14705       hardcode_shlibpath_var=no
14706       ;;
14707
14708     openbsd*)
14709       hardcode_direct=yes
14710       hardcode_shlibpath_var=no
14711       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14712         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14713         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14714         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14715         export_dynamic_flag_spec='${wl}-E'
14716       else
14717        case $host_os in
14718          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14719            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14720            hardcode_libdir_flag_spec='-R$libdir'
14721            ;;
14722          *)
14723            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14724            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14725            ;;
14726        esac
14727       fi
14728       ;;
14729
14730     os2*)
14731       hardcode_libdir_flag_spec='-L$libdir'
14732       hardcode_minus_L=yes
14733       allow_undefined_flag=unsupported
14734       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'
14735       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14736       ;;
14737
14738     osf3*)
14739       if test "$GCC" = yes; then
14740         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14741         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'
14742       else
14743         allow_undefined_flag=' -expect_unresolved \*'
14744         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'
14745       fi
14746       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14747       hardcode_libdir_separator=:
14748       ;;
14749
14750     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14751       if test "$GCC" = yes; then
14752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14753         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'
14754         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14755       else
14756         allow_undefined_flag=' -expect_unresolved \*'
14757         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'
14758         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14759         $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'
14760
14761         # Both c and cxx compiler support -rpath directly
14762         hardcode_libdir_flag_spec='-rpath $libdir'
14763       fi
14764       hardcode_libdir_separator=:
14765       ;;
14766
14767     solaris*)
14768       no_undefined_flag=' -z text'
14769       if test "$GCC" = yes; then
14770         wlarc='${wl}'
14771         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14772         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14773           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14774       else
14775         wlarc=''
14776         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14778         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14779       fi
14780       hardcode_libdir_flag_spec='-R$libdir'
14781       hardcode_shlibpath_var=no
14782       case $host_os in
14783       solaris2.[0-5] | solaris2.[0-5].*) ;;
14784       *)
14785         # The compiler driver will combine linker options so we
14786         # cannot just pass the convience library names through
14787         # without $wl, iff we do not link with $LD.
14788         # Luckily, gcc supports the same syntax we need for Sun Studio.
14789         # Supported since Solaris 2.6 (maybe 2.5.1?)
14790         case $wlarc in
14791         '')
14792           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14793         *)
14794           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' ;;
14795         esac ;;
14796       esac
14797       link_all_deplibs=yes
14798       ;;
14799
14800     sunos4*)
14801       if test "x$host_vendor" = xsequent; then
14802         # Use $CC to link under sequent, because it throws in some extra .o
14803         # files that make .init and .fini sections work.
14804         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14805       else
14806         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14807       fi
14808       hardcode_libdir_flag_spec='-L$libdir'
14809       hardcode_direct=yes
14810       hardcode_minus_L=yes
14811       hardcode_shlibpath_var=no
14812       ;;
14813
14814     sysv4)
14815       case $host_vendor in
14816         sni)
14817           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818           hardcode_direct=yes # is this really true???
14819         ;;
14820         siemens)
14821           ## LD is ld it makes a PLAMLIB
14822           ## CC just makes a GrossModule.
14823           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14824           reload_cmds='$CC -r -o $output$reload_objs'
14825           hardcode_direct=no
14826         ;;
14827         motorola)
14828           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14830         ;;
14831       esac
14832       runpath_var='LD_RUN_PATH'
14833       hardcode_shlibpath_var=no
14834       ;;
14835
14836     sysv4.3*)
14837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14838       hardcode_shlibpath_var=no
14839       export_dynamic_flag_spec='-Bexport'
14840       ;;
14841
14842     sysv4*MP*)
14843       if test -d /usr/nec; then
14844         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845         hardcode_shlibpath_var=no
14846         runpath_var=LD_RUN_PATH
14847         hardcode_runpath_var=yes
14848         ld_shlibs=yes
14849       fi
14850       ;;
14851
14852     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14853       no_undefined_flag='${wl}-z,text'
14854       archive_cmds_need_lc=no
14855       hardcode_shlibpath_var=no
14856       runpath_var='LD_RUN_PATH'
14857
14858       if test "$GCC" = yes; then
14859         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14860         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14861       else
14862         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14863         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14864       fi
14865       ;;
14866
14867     sysv5* | sco3.2v5* | sco5v6*)
14868       # Note: We can NOT use -z defs as we might desire, because we do not
14869       # link with -lc, and that would cause any symbols used from libc to
14870       # always be unresolved, which means just about no library would
14871       # ever link correctly.  If we're not using GNU ld we use -z text
14872       # though, which does catch some bad symbols but isn't as heavy-handed
14873       # as -z defs.
14874       no_undefined_flag='${wl}-z,text'
14875       allow_undefined_flag='${wl}-z,nodefs'
14876       archive_cmds_need_lc=no
14877       hardcode_shlibpath_var=no
14878       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14879       hardcode_libdir_separator=':'
14880       link_all_deplibs=yes
14881       export_dynamic_flag_spec='${wl}-Bexport'
14882       runpath_var='LD_RUN_PATH'
14883
14884       if test "$GCC" = yes; then
14885         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14886         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14887       else
14888         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14889         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14890       fi
14891       ;;
14892
14893     uts4*)
14894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14895       hardcode_libdir_flag_spec='-L$libdir'
14896       hardcode_shlibpath_var=no
14897       ;;
14898
14899     *)
14900       ld_shlibs=no
14901       ;;
14902     esac
14903   fi
14904
14905 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14906 echo "${ECHO_T}$ld_shlibs" >&6; }
14907 test "$ld_shlibs" = no && can_build_shared=no
14908
14909 #
14910 # Do we need to explicitly link libc?
14911 #
14912 case "x$archive_cmds_need_lc" in
14913 x|xyes)
14914   # Assume -lc should be added
14915   archive_cmds_need_lc=yes
14916
14917   if test "$enable_shared" = yes && test "$GCC" = yes; then
14918     case $archive_cmds in
14919     *'~'*)
14920       # FIXME: we may have to deal with multi-command sequences.
14921       ;;
14922     '$CC '*)
14923       # Test whether the compiler implicitly links with -lc since on some
14924       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14925       # to ld, don't add -lc before -lgcc.
14926       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14928       $rm conftest*
14929       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14930
14931       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932   (eval $ac_compile) 2>&5
14933   ac_status=$?
14934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935   (exit $ac_status); } 2>conftest.err; then
14936         soname=conftest
14937         lib=conftest
14938         libobjs=conftest.$ac_objext
14939         deplibs=
14940         wl=$lt_prog_compiler_wl
14941         pic_flag=$lt_prog_compiler_pic
14942         compiler_flags=-v
14943         linker_flags=-v
14944         verstring=
14945         output_objdir=.
14946         libname=conftest
14947         lt_save_allow_undefined_flag=$allow_undefined_flag
14948         allow_undefined_flag=
14949         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14950   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }
14954         then
14955           archive_cmds_need_lc=no
14956         else
14957           archive_cmds_need_lc=yes
14958         fi
14959         allow_undefined_flag=$lt_save_allow_undefined_flag
14960       else
14961         cat conftest.err 1>&5
14962       fi
14963       $rm conftest*
14964       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14966       ;;
14967     esac
14968   fi
14969   ;;
14970 esac
14971
14972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14974 library_names_spec=
14975 libname_spec='lib$name'
14976 soname_spec=
14977 shrext_cmds=".so"
14978 postinstall_cmds=
14979 postuninstall_cmds=
14980 finish_cmds=
14981 finish_eval=
14982 shlibpath_var=
14983 shlibpath_overrides_runpath=unknown
14984 version_type=none
14985 dynamic_linker="$host_os ld.so"
14986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14987 if test "$GCC" = yes; then
14988   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14989   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14990     # if the path contains ";" then we assume it to be the separator
14991     # otherwise default to the standard path separator (i.e. ":") - it is
14992     # assumed that no part of a normal pathname contains ";" but that should
14993     # okay in the real world where ";" in dirpaths is itself problematic.
14994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14995   else
14996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14997   fi
14998 else
14999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15000 fi
15001 need_lib_prefix=unknown
15002 hardcode_into_libs=no
15003
15004 # when you set need_version to no, make sure it does not cause -set_version
15005 # flags to be left without arguments
15006 need_version=unknown
15007
15008 case $host_os in
15009 aix3*)
15010   version_type=linux
15011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15012   shlibpath_var=LIBPATH
15013
15014   # AIX 3 has no versioning support, so we append a major version to the name.
15015   soname_spec='${libname}${release}${shared_ext}$major'
15016   ;;
15017
15018 aix4* | aix5*)
15019   version_type=linux
15020   need_lib_prefix=no
15021   need_version=no
15022   hardcode_into_libs=yes
15023   if test "$host_cpu" = ia64; then
15024     # AIX 5 supports IA64
15025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15026     shlibpath_var=LD_LIBRARY_PATH
15027   else
15028     # With GCC up to 2.95.x, collect2 would create an import file
15029     # for dependence libraries.  The import file would start with
15030     # the line `#! .'.  This would cause the generated library to
15031     # depend on `.', always an invalid library.  This was fixed in
15032     # development snapshots of GCC prior to 3.0.
15033     case $host_os in
15034       aix4 | aix4.[01] | aix4.[01].*)
15035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15036            echo ' yes '
15037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15038         :
15039       else
15040         can_build_shared=no
15041       fi
15042       ;;
15043     esac
15044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15045     # soname into executable. Probably we can add versioning support to
15046     # collect2, so additional links can be useful in future.
15047     if test "$aix_use_runtimelinking" = yes; then
15048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15049       # instead of lib<name>.a to let people know that these are not
15050       # typical AIX shared libraries.
15051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052     else
15053       # We preserve .a as extension for shared libraries through AIX4.2
15054       # and later when we are not doing run time linking.
15055       library_names_spec='${libname}${release}.a $libname.a'
15056       soname_spec='${libname}${release}${shared_ext}$major'
15057     fi
15058     shlibpath_var=LIBPATH
15059   fi
15060   ;;
15061
15062 amigaos*)
15063   library_names_spec='$libname.ixlibrary $libname.a'
15064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15065   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'
15066   ;;
15067
15068 beos*)
15069   library_names_spec='${libname}${shared_ext}'
15070   dynamic_linker="$host_os ld.so"
15071   shlibpath_var=LIBRARY_PATH
15072   ;;
15073
15074 bsdi[45]*)
15075   version_type=linux
15076   need_version=no
15077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078   soname_spec='${libname}${release}${shared_ext}$major'
15079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15080   shlibpath_var=LD_LIBRARY_PATH
15081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15083   # the default ld.so.conf also contains /usr/contrib/lib and
15084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15085   # libtool to hard-code these into programs
15086   ;;
15087
15088 cygwin* | mingw* | pw32*)
15089   version_type=windows
15090   shrext_cmds=".dll"
15091   need_version=no
15092   need_lib_prefix=no
15093
15094   case $GCC,$host_os in
15095   yes,cygwin* | yes,mingw* | yes,pw32*)
15096     library_names_spec='$libname.dll.a'
15097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15098     postinstall_cmds='base_file=`basename \${file}`~
15099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15100       dldir=$destdir/`dirname \$dlpath`~
15101       test -d \$dldir || mkdir -p \$dldir~
15102       $install_prog $dir/$dlname \$dldir/$dlname~
15103       chmod a+x \$dldir/$dlname'
15104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15105       dlpath=$dir/\$dldll~
15106        $rm \$dlpath'
15107     shlibpath_overrides_runpath=yes
15108
15109     case $host_os in
15110     cygwin*)
15111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15114       ;;
15115     mingw*)
15116       # MinGW DLLs use traditional 'lib' prefix
15117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15119       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15120         # It is most probably a Windows format PATH printed by
15121         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15122         # path with ; separators, and with drive letters. We can handle the
15123         # drive letters (cygwin fileutils understands them), so leave them,
15124         # especially as we might pass files found there to a mingw objdump,
15125         # which wouldn't understand a cygwinified path. Ahh.
15126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15127       else
15128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15129       fi
15130       ;;
15131     pw32*)
15132       # pw32 DLLs use 'pw' prefix rather than 'lib'
15133       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15134       ;;
15135     esac
15136     ;;
15137
15138   *)
15139     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15140     ;;
15141   esac
15142   dynamic_linker='Win32 ld.exe'
15143   # FIXME: first we should search . and the directory the executable is in
15144   shlibpath_var=PATH
15145   ;;
15146
15147 darwin* | rhapsody*)
15148   dynamic_linker="$host_os dyld"
15149   version_type=darwin
15150   need_lib_prefix=no
15151   need_version=no
15152   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15153   soname_spec='${libname}${release}${major}$shared_ext'
15154   shlibpath_overrides_runpath=yes
15155   shlibpath_var=DYLD_LIBRARY_PATH
15156   shrext_cmds='.dylib'
15157   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15158   if test "$GCC" = yes; then
15159     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"`
15160   else
15161     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15162   fi
15163   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15164   ;;
15165
15166 dgux*)
15167   version_type=linux
15168   need_lib_prefix=no
15169   need_version=no
15170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15171   soname_spec='${libname}${release}${shared_ext}$major'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   ;;
15174
15175 freebsd1*)
15176   dynamic_linker=no
15177   ;;
15178
15179 kfreebsd*-gnu)
15180   version_type=linux
15181   need_lib_prefix=no
15182   need_version=no
15183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15184   soname_spec='${libname}${release}${shared_ext}$major'
15185   shlibpath_var=LD_LIBRARY_PATH
15186   shlibpath_overrides_runpath=no
15187   hardcode_into_libs=yes
15188   dynamic_linker='GNU ld.so'
15189   ;;
15190
15191 freebsd* | dragonfly*)
15192   # DragonFly does not have aout.  When/if they implement a new
15193   # versioning mechanism, adjust this.
15194   if test -x /usr/bin/objformat; then
15195     objformat=`/usr/bin/objformat`
15196   else
15197     case $host_os in
15198     freebsd[123]*) objformat=aout ;;
15199     *) objformat=elf ;;
15200     esac
15201   fi
15202   version_type=freebsd-$objformat
15203   case $version_type in
15204     freebsd-elf*)
15205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15206       need_version=no
15207       need_lib_prefix=no
15208       ;;
15209     freebsd-*)
15210       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15211       need_version=yes
15212       ;;
15213   esac
15214   shlibpath_var=LD_LIBRARY_PATH
15215   case $host_os in
15216   freebsd2*)
15217     shlibpath_overrides_runpath=yes
15218     ;;
15219   freebsd3.[01]* | freebsdelf3.[01]*)
15220     shlibpath_overrides_runpath=yes
15221     hardcode_into_libs=yes
15222     ;;
15223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15225     shlibpath_overrides_runpath=no
15226     hardcode_into_libs=yes
15227     ;;
15228   freebsd*) # from 4.6 on
15229     shlibpath_overrides_runpath=yes
15230     hardcode_into_libs=yes
15231     ;;
15232   esac
15233   ;;
15234
15235 gnu*)
15236   version_type=linux
15237   need_lib_prefix=no
15238   need_version=no
15239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15240   soname_spec='${libname}${release}${shared_ext}$major'
15241   shlibpath_var=LD_LIBRARY_PATH
15242   hardcode_into_libs=yes
15243   ;;
15244
15245 hpux9* | hpux10* | hpux11*)
15246   # Give a soname corresponding to the major version so that dld.sl refuses to
15247   # link against other versions.
15248   version_type=sunos
15249   need_lib_prefix=no
15250   need_version=no
15251   case $host_cpu in
15252   ia64*)
15253     shrext_cmds='.so'
15254     hardcode_into_libs=yes
15255     dynamic_linker="$host_os dld.so"
15256     shlibpath_var=LD_LIBRARY_PATH
15257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259     soname_spec='${libname}${release}${shared_ext}$major'
15260     if test "X$HPUX_IA64_MODE" = X32; then
15261       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15262     else
15263       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15264     fi
15265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15266     ;;
15267    hppa*64*)
15268      shrext_cmds='.sl'
15269      hardcode_into_libs=yes
15270      dynamic_linker="$host_os dld.sl"
15271      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274      soname_spec='${libname}${release}${shared_ext}$major'
15275      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277      ;;
15278    *)
15279     shrext_cmds='.sl'
15280     dynamic_linker="$host_os dld.sl"
15281     shlibpath_var=SHLIB_PATH
15282     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284     soname_spec='${libname}${release}${shared_ext}$major'
15285     ;;
15286   esac
15287   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15288   postinstall_cmds='chmod 555 $lib'
15289   ;;
15290
15291 interix3*)
15292   version_type=linux
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15298   shlibpath_var=LD_LIBRARY_PATH
15299   shlibpath_overrides_runpath=no
15300   hardcode_into_libs=yes
15301   ;;
15302
15303 irix5* | irix6* | nonstopux*)
15304   case $host_os in
15305     nonstopux*) version_type=nonstopux ;;
15306     *)
15307         if test "$lt_cv_prog_gnu_ld" = yes; then
15308                 version_type=linux
15309         else
15310                 version_type=irix
15311         fi ;;
15312   esac
15313   need_lib_prefix=no
15314   need_version=no
15315   soname_spec='${libname}${release}${shared_ext}$major'
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15317   case $host_os in
15318   irix5* | nonstopux*)
15319     libsuff= shlibsuff=
15320     ;;
15321   *)
15322     case $LD in # libtool.m4 will add one of these switches to LD
15323     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15324       libsuff= shlibsuff= libmagic=32-bit;;
15325     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15326       libsuff=32 shlibsuff=N32 libmagic=N32;;
15327     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15328       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15329     *) libsuff= shlibsuff= libmagic=never-match;;
15330     esac
15331     ;;
15332   esac
15333   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15334   shlibpath_overrides_runpath=no
15335   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15336   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15337   hardcode_into_libs=yes
15338   ;;
15339
15340 # No shared lib support for Linux oldld, aout, or coff.
15341 linux*oldld* | linux*aout* | linux*coff*)
15342   dynamic_linker=no
15343   ;;
15344
15345 # This must be Linux ELF.
15346 linux*)
15347   version_type=linux
15348   need_lib_prefix=no
15349   need_version=no
15350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351   soname_spec='${libname}${release}${shared_ext}$major'
15352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15353   shlibpath_var=LD_LIBRARY_PATH
15354   shlibpath_overrides_runpath=no
15355   # This implies no fast_install, which is unacceptable.
15356   # Some rework will be needed to allow for fast_install
15357   # before this can be enabled.
15358   hardcode_into_libs=yes
15359
15360   # Append ld.so.conf contents to the search path
15361   if test -f /etc/ld.so.conf; then
15362     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' ' '`
15363     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15364   fi
15365
15366   # We used to test for /lib/ld.so.1 and disable shared libraries on
15367   # powerpc, because MkLinux only supported shared libraries with the
15368   # GNU dynamic linker.  Since this was broken with cross compilers,
15369   # most powerpc-linux boxes support dynamic linking these days and
15370   # people can always --disable-shared, the test was removed, and we
15371   # assume the GNU/Linux dynamic linker is in use.
15372   dynamic_linker='GNU/Linux ld.so'
15373   ;;
15374
15375 knetbsd*-gnu)
15376   version_type=linux
15377   need_lib_prefix=no
15378   need_version=no
15379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15380   soname_spec='${libname}${release}${shared_ext}$major'
15381   shlibpath_var=LD_LIBRARY_PATH
15382   shlibpath_overrides_runpath=no
15383   hardcode_into_libs=yes
15384   dynamic_linker='GNU ld.so'
15385   ;;
15386
15387 netbsd*)
15388   version_type=sunos
15389   need_lib_prefix=no
15390   need_version=no
15391   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15393     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15394     dynamic_linker='NetBSD (a.out) ld.so'
15395   else
15396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15397     soname_spec='${libname}${release}${shared_ext}$major'
15398     dynamic_linker='NetBSD ld.elf_so'
15399   fi
15400   shlibpath_var=LD_LIBRARY_PATH
15401   shlibpath_overrides_runpath=yes
15402   hardcode_into_libs=yes
15403   ;;
15404
15405 newsos6)
15406   version_type=linux
15407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   shlibpath_overrides_runpath=yes
15410   ;;
15411
15412 nto-qnx*)
15413   version_type=linux
15414   need_lib_prefix=no
15415   need_version=no
15416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   shlibpath_var=LD_LIBRARY_PATH
15419   shlibpath_overrides_runpath=yes
15420   ;;
15421
15422 openbsd*)
15423   version_type=sunos
15424   sys_lib_dlsearch_path_spec="/usr/lib"
15425   need_lib_prefix=no
15426   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15427   case $host_os in
15428     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15429     *)                         need_version=no  ;;
15430   esac
15431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15432   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15433   shlibpath_var=LD_LIBRARY_PATH
15434   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15435     case $host_os in
15436       openbsd2.[89] | openbsd2.[89].*)
15437         shlibpath_overrides_runpath=no
15438         ;;
15439       *)
15440         shlibpath_overrides_runpath=yes
15441         ;;
15442       esac
15443   else
15444     shlibpath_overrides_runpath=yes
15445   fi
15446   ;;
15447
15448 os2*)
15449   libname_spec='$name'
15450   shrext_cmds=".dll"
15451   need_lib_prefix=no
15452   library_names_spec='$libname${shared_ext} $libname.a'
15453   dynamic_linker='OS/2 ld.exe'
15454   shlibpath_var=LIBPATH
15455   ;;
15456
15457 osf3* | osf4* | osf5*)
15458   version_type=osf
15459   need_lib_prefix=no
15460   need_version=no
15461   soname_spec='${libname}${release}${shared_ext}$major'
15462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463   shlibpath_var=LD_LIBRARY_PATH
15464   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15465   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15466   ;;
15467
15468 solaris*)
15469   version_type=linux
15470   need_lib_prefix=no
15471   need_version=no
15472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473   soname_spec='${libname}${release}${shared_ext}$major'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=yes
15476   hardcode_into_libs=yes
15477   # ldd complains unless libraries are executable
15478   postinstall_cmds='chmod +x $lib'
15479   ;;
15480
15481 sunos4*)
15482   version_type=sunos
15483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15484   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   shlibpath_overrides_runpath=yes
15487   if test "$with_gnu_ld" = yes; then
15488     need_lib_prefix=no
15489   fi
15490   need_version=yes
15491   ;;
15492
15493 sysv4 | sysv4.3*)
15494   version_type=linux
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496   soname_spec='${libname}${release}${shared_ext}$major'
15497   shlibpath_var=LD_LIBRARY_PATH
15498   case $host_vendor in
15499     sni)
15500       shlibpath_overrides_runpath=no
15501       need_lib_prefix=no
15502       export_dynamic_flag_spec='${wl}-Blargedynsym'
15503       runpath_var=LD_RUN_PATH
15504       ;;
15505     siemens)
15506       need_lib_prefix=no
15507       ;;
15508     motorola)
15509       need_lib_prefix=no
15510       need_version=no
15511       shlibpath_overrides_runpath=no
15512       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15513       ;;
15514   esac
15515   ;;
15516
15517 sysv4*MP*)
15518   if test -d /usr/nec ;then
15519     version_type=linux
15520     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15521     soname_spec='$libname${shared_ext}.$major'
15522     shlibpath_var=LD_LIBRARY_PATH
15523   fi
15524   ;;
15525
15526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15527   version_type=freebsd-elf
15528   need_lib_prefix=no
15529   need_version=no
15530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15531   soname_spec='${libname}${release}${shared_ext}$major'
15532   shlibpath_var=LD_LIBRARY_PATH
15533   hardcode_into_libs=yes
15534   if test "$with_gnu_ld" = yes; then
15535     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15536     shlibpath_overrides_runpath=no
15537   else
15538     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15539     shlibpath_overrides_runpath=yes
15540     case $host_os in
15541       sco3.2v5*)
15542         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15543         ;;
15544     esac
15545   fi
15546   sys_lib_dlsearch_path_spec='/usr/lib'
15547   ;;
15548
15549 uts4*)
15550   version_type=linux
15551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552   soname_spec='${libname}${release}${shared_ext}$major'
15553   shlibpath_var=LD_LIBRARY_PATH
15554   ;;
15555
15556 *)
15557   dynamic_linker=no
15558   ;;
15559 esac
15560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15561 echo "${ECHO_T}$dynamic_linker" >&6; }
15562 test "$dynamic_linker" = no && can_build_shared=no
15563
15564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15565 if test "$GCC" = yes; then
15566   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15567 fi
15568
15569 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15571 hardcode_action=
15572 if test -n "$hardcode_libdir_flag_spec" || \
15573    test -n "$runpath_var" || \
15574    test "X$hardcode_automatic" = "Xyes" ; then
15575
15576   # We can hardcode non-existant directories.
15577   if test "$hardcode_direct" != no &&
15578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15579      # have to relink, otherwise we might link with an installed library
15580      # when we should be linking with a yet-to-be-installed one
15581      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15582      test "$hardcode_minus_L" != no; then
15583     # Linking always hardcodes the temporary library directory.
15584     hardcode_action=relink
15585   else
15586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15587     hardcode_action=immediate
15588   fi
15589 else
15590   # We cannot hardcode anything, or else we can only hardcode existing
15591   # directories.
15592   hardcode_action=unsupported
15593 fi
15594 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15595 echo "${ECHO_T}$hardcode_action" >&6; }
15596
15597 if test "$hardcode_action" = relink; then
15598   # Fast installation is not supported
15599   enable_fast_install=no
15600 elif test "$shlibpath_overrides_runpath" = yes ||
15601      test "$enable_shared" = no; then
15602   # Fast installation is not necessary
15603   enable_fast_install=needless
15604 fi
15605
15606 striplib=
15607 old_striplib=
15608 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15611   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15612   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15613   { echo "$as_me:$LINENO: result: yes" >&5
15614 echo "${ECHO_T}yes" >&6; }
15615 else
15616 # FIXME - insert some real tests, host_os isn't really good enough
15617   case $host_os in
15618    darwin*)
15619        if test -n "$STRIP" ; then
15620          striplib="$STRIP -x"
15621          { echo "$as_me:$LINENO: result: yes" >&5
15622 echo "${ECHO_T}yes" >&6; }
15623        else
15624   { echo "$as_me:$LINENO: result: no" >&5
15625 echo "${ECHO_T}no" >&6; }
15626 fi
15627        ;;
15628    *)
15629   { echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6; }
15631     ;;
15632   esac
15633 fi
15634
15635 if test "x$enable_dlopen" != xyes; then
15636   enable_dlopen=unknown
15637   enable_dlopen_self=unknown
15638   enable_dlopen_self_static=unknown
15639 else
15640   lt_cv_dlopen=no
15641   lt_cv_dlopen_libs=
15642
15643   case $host_os in
15644   beos*)
15645     lt_cv_dlopen="load_add_on"
15646     lt_cv_dlopen_libs=
15647     lt_cv_dlopen_self=yes
15648     ;;
15649
15650   mingw* | pw32*)
15651     lt_cv_dlopen="LoadLibrary"
15652     lt_cv_dlopen_libs=
15653    ;;
15654
15655   cygwin*)
15656     lt_cv_dlopen="dlopen"
15657     lt_cv_dlopen_libs=
15658    ;;
15659
15660   darwin*)
15661   # if libdl is installed we need to link against it
15662     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15665   echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667   ac_check_lib_save_LIBS=$LIBS
15668 LIBS="-ldl  $LIBS"
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h.  */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h.  */
15675
15676 /* Override any GCC internal prototype to avoid an error.
15677    Use char because int might match the return type of a GCC
15678    builtin and then its argument prototype would still apply.  */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 char dlopen ();
15683 int
15684 main ()
15685 {
15686 return dlopen ();
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_link") 2>conftest.er1
15699   ac_status=$?
15700   grep -v '^ *+' conftest.er1 >conftest.err
15701   rm -f conftest.er1
15702   cat conftest.err >&5
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } && {
15705          test -z "$ac_c_werror_flag" ||
15706          test ! -s conftest.err
15707        } && test -s conftest$ac_exeext &&
15708        $as_test_x conftest$ac_exeext; then
15709   ac_cv_lib_dl_dlopen=yes
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714         ac_cv_lib_dl_dlopen=no
15715 fi
15716
15717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15718       conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS
15720 fi
15721 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15723 if test $ac_cv_lib_dl_dlopen = yes; then
15724   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15725 else
15726
15727     lt_cv_dlopen="dyld"
15728     lt_cv_dlopen_libs=
15729     lt_cv_dlopen_self=yes
15730
15731 fi
15732
15733    ;;
15734
15735   *)
15736     { echo "$as_me:$LINENO: checking for shl_load" >&5
15737 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15738 if test "${ac_cv_func_shl_load+set}" = set; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741   cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h.  */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h.  */
15747 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15749 #define shl_load innocuous_shl_load
15750
15751 /* System header to define __stub macros and hopefully few prototypes,
15752     which can conflict with char shl_load (); below.
15753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754     <limits.h> exists even on freestanding compilers.  */
15755
15756 #ifdef __STDC__
15757 # include <limits.h>
15758 #else
15759 # include <assert.h>
15760 #endif
15761
15762 #undef shl_load
15763
15764 /* Override any GCC internal prototype to avoid an error.
15765    Use char because int might match the return type of a GCC
15766    builtin and then its argument prototype would still apply.  */
15767 #ifdef __cplusplus
15768 extern "C"
15769 #endif
15770 char shl_load ();
15771 /* The GNU C library defines this for functions which it implements
15772     to always fail with ENOSYS.  Some functions are actually named
15773     something starting with __ and the normal name is an alias.  */
15774 #if defined __stub_shl_load || defined __stub___shl_load
15775 choke me
15776 #endif
15777
15778 int
15779 main ()
15780 {
15781 return shl_load ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790   *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793   (eval "$ac_link") 2>conftest.er1
15794   ac_status=$?
15795   grep -v '^ *+' conftest.er1 >conftest.err
15796   rm -f conftest.er1
15797   cat conftest.err >&5
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); } && {
15800          test -z "$ac_c_werror_flag" ||
15801          test ! -s conftest.err
15802        } && test -s conftest$ac_exeext &&
15803        $as_test_x conftest$ac_exeext; then
15804   ac_cv_func_shl_load=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809         ac_cv_func_shl_load=no
15810 fi
15811
15812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813       conftest$ac_exeext conftest.$ac_ext
15814 fi
15815 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15816 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15817 if test $ac_cv_func_shl_load = yes; then
15818   lt_cv_dlopen="shl_load"
15819 else
15820   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15821 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   ac_check_lib_save_LIBS=$LIBS
15826 LIBS="-ldld  $LIBS"
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833
15834 /* Override any GCC internal prototype to avoid an error.
15835    Use char because int might match the return type of a GCC
15836    builtin and then its argument prototype would still apply.  */
15837 #ifdef __cplusplus
15838 extern "C"
15839 #endif
15840 char shl_load ();
15841 int
15842 main ()
15843 {
15844 return shl_load ();
15845   ;
15846   return 0;
15847 }
15848 _ACEOF
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (ac_try="$ac_link"
15851 case "(($ac_try" in
15852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853   *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856   (eval "$ac_link") 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } && {
15863          test -z "$ac_c_werror_flag" ||
15864          test ! -s conftest.err
15865        } && test -s conftest$ac_exeext &&
15866        $as_test_x conftest$ac_exeext; then
15867   ac_cv_lib_dld_shl_load=yes
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872         ac_cv_lib_dld_shl_load=no
15873 fi
15874
15875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15876       conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15878 fi
15879 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15880 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15881 if test $ac_cv_lib_dld_shl_load = yes; then
15882   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15883 else
15884   { echo "$as_me:$LINENO: checking for dlopen" >&5
15885 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15886 if test "${ac_cv_func_dlopen+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15897 #define dlopen innocuous_dlopen
15898
15899 /* System header to define __stub macros and hopefully few prototypes,
15900     which can conflict with char dlopen (); below.
15901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902     <limits.h> exists even on freestanding compilers.  */
15903
15904 #ifdef __STDC__
15905 # include <limits.h>
15906 #else
15907 # include <assert.h>
15908 #endif
15909
15910 #undef dlopen
15911
15912 /* Override any GCC internal prototype to avoid an error.
15913    Use char because int might match the return type of a GCC
15914    builtin and then its argument prototype would still apply.  */
15915 #ifdef __cplusplus
15916 extern "C"
15917 #endif
15918 char dlopen ();
15919 /* The GNU C library defines this for functions which it implements
15920     to always fail with ENOSYS.  Some functions are actually named
15921     something starting with __ and the normal name is an alias.  */
15922 #if defined __stub_dlopen || defined __stub___dlopen
15923 choke me
15924 #endif
15925
15926 int
15927 main ()
15928 {
15929 return dlopen ();
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941   (eval "$ac_link") 2>conftest.er1
15942   ac_status=$?
15943   grep -v '^ *+' conftest.er1 >conftest.err
15944   rm -f conftest.er1
15945   cat conftest.err >&5
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } && {
15948          test -z "$ac_c_werror_flag" ||
15949          test ! -s conftest.err
15950        } && test -s conftest$ac_exeext &&
15951        $as_test_x conftest$ac_exeext; then
15952   ac_cv_func_dlopen=yes
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957         ac_cv_func_dlopen=no
15958 fi
15959
15960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15961       conftest$ac_exeext conftest.$ac_ext
15962 fi
15963 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15964 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15965 if test $ac_cv_func_dlopen = yes; then
15966   lt_cv_dlopen="dlopen"
15967 else
15968   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15971   echo $ECHO_N "(cached) $ECHO_C" >&6
15972 else
15973   ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-ldl  $LIBS"
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981
15982 /* Override any GCC internal prototype to avoid an error.
15983    Use char because int might match the return type of a GCC
15984    builtin and then its argument prototype would still apply.  */
15985 #ifdef __cplusplus
15986 extern "C"
15987 #endif
15988 char dlopen ();
15989 int
15990 main ()
15991 {
15992 return dlopen ();
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (ac_try="$ac_link"
15999 case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_link") 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } && {
16011          test -z "$ac_c_werror_flag" ||
16012          test ! -s conftest.err
16013        } && test -s conftest$ac_exeext &&
16014        $as_test_x conftest$ac_exeext; then
16015   ac_cv_lib_dl_dlopen=yes
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020         ac_cv_lib_dl_dlopen=no
16021 fi
16022
16023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16024       conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16026 fi
16027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16029 if test $ac_cv_lib_dl_dlopen = yes; then
16030   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16031 else
16032   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037   ac_check_lib_save_LIBS=$LIBS
16038 LIBS="-lsvld  $LIBS"
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045
16046 /* Override any GCC internal prototype to avoid an error.
16047    Use char because int might match the return type of a GCC
16048    builtin and then its argument prototype would still apply.  */
16049 #ifdef __cplusplus
16050 extern "C"
16051 #endif
16052 char dlopen ();
16053 int
16054 main ()
16055 {
16056 return dlopen ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_link") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } && {
16075          test -z "$ac_c_werror_flag" ||
16076          test ! -s conftest.err
16077        } && test -s conftest$ac_exeext &&
16078        $as_test_x conftest$ac_exeext; then
16079   ac_cv_lib_svld_dlopen=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_cv_lib_svld_dlopen=no
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088       conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16090 fi
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16093 if test $ac_cv_lib_svld_dlopen = yes; then
16094   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16095 else
16096   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   ac_check_lib_save_LIBS=$LIBS
16102 LIBS="-ldld  $LIBS"
16103 cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h.  */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h.  */
16109
16110 /* Override any GCC internal prototype to avoid an error.
16111    Use char because int might match the return type of a GCC
16112    builtin and then its argument prototype would still apply.  */
16113 #ifdef __cplusplus
16114 extern "C"
16115 #endif
16116 char dld_link ();
16117 int
16118 main ()
16119 {
16120 return dld_link ();
16121   ;
16122   return 0;
16123 }
16124 _ACEOF
16125 rm -f conftest.$ac_objext conftest$ac_exeext
16126 if { (ac_try="$ac_link"
16127 case "(($ac_try" in
16128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129   *) ac_try_echo=$ac_try;;
16130 esac
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132   (eval "$ac_link") 2>conftest.er1
16133   ac_status=$?
16134   grep -v '^ *+' conftest.er1 >conftest.err
16135   rm -f conftest.er1
16136   cat conftest.err >&5
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); } && {
16139          test -z "$ac_c_werror_flag" ||
16140          test ! -s conftest.err
16141        } && test -s conftest$ac_exeext &&
16142        $as_test_x conftest$ac_exeext; then
16143   ac_cv_lib_dld_dld_link=yes
16144 else
16145   echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148         ac_cv_lib_dld_dld_link=no
16149 fi
16150
16151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16152       conftest$ac_exeext conftest.$ac_ext
16153 LIBS=$ac_check_lib_save_LIBS
16154 fi
16155 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16156 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16157 if test $ac_cv_lib_dld_dld_link = yes; then
16158   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16159 fi
16160
16161
16162 fi
16163
16164
16165 fi
16166
16167
16168 fi
16169
16170
16171 fi
16172
16173
16174 fi
16175
16176     ;;
16177   esac
16178
16179   if test "x$lt_cv_dlopen" != xno; then
16180     enable_dlopen=yes
16181   else
16182     enable_dlopen=no
16183   fi
16184
16185   case $lt_cv_dlopen in
16186   dlopen)
16187     save_CPPFLAGS="$CPPFLAGS"
16188     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16189
16190     save_LDFLAGS="$LDFLAGS"
16191     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16192
16193     save_LIBS="$LIBS"
16194     LIBS="$lt_cv_dlopen_libs $LIBS"
16195
16196     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16197 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16198 if test "${lt_cv_dlopen_self+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201           if test "$cross_compiling" = yes; then :
16202   lt_cv_dlopen_self=cross
16203 else
16204   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16205   lt_status=$lt_dlunknown
16206   cat > conftest.$ac_ext <<EOF
16207 #line 16207 "configure"
16208 #include "confdefs.h"
16209
16210 #if HAVE_DLFCN_H
16211 #include <dlfcn.h>
16212 #endif
16213
16214 #include <stdio.h>
16215
16216 #ifdef RTLD_GLOBAL
16217 #  define LT_DLGLOBAL           RTLD_GLOBAL
16218 #else
16219 #  ifdef DL_GLOBAL
16220 #    define LT_DLGLOBAL         DL_GLOBAL
16221 #  else
16222 #    define LT_DLGLOBAL         0
16223 #  endif
16224 #endif
16225
16226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16227    find out it does not work in some platform. */
16228 #ifndef LT_DLLAZY_OR_NOW
16229 #  ifdef RTLD_LAZY
16230 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16231 #  else
16232 #    ifdef DL_LAZY
16233 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16234 #    else
16235 #      ifdef RTLD_NOW
16236 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16237 #      else
16238 #        ifdef DL_NOW
16239 #          define LT_DLLAZY_OR_NOW      DL_NOW
16240 #        else
16241 #          define LT_DLLAZY_OR_NOW      0
16242 #        endif
16243 #      endif
16244 #    endif
16245 #  endif
16246 #endif
16247
16248 #ifdef __cplusplus
16249 extern "C" void exit (int);
16250 #endif
16251
16252 void fnord() { int i=42;}
16253 int main ()
16254 {
16255   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16256   int status = $lt_dlunknown;
16257
16258   if (self)
16259     {
16260       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16261       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16262       /* dlclose (self); */
16263     }
16264   else
16265     puts (dlerror ());
16266
16267     exit (status);
16268 }
16269 EOF
16270   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271   (eval $ac_link) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16275     (./conftest; exit; ) >&5 2>/dev/null
16276     lt_status=$?
16277     case x$lt_status in
16278       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16279       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16280       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16281     esac
16282   else :
16283     # compilation failed
16284     lt_cv_dlopen_self=no
16285   fi
16286 fi
16287 rm -fr conftest*
16288
16289
16290 fi
16291 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16292 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16293
16294     if test "x$lt_cv_dlopen_self" = xyes; then
16295       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16296       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16297 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16298 if test "${lt_cv_dlopen_self_static+set}" = set; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301           if test "$cross_compiling" = yes; then :
16302   lt_cv_dlopen_self_static=cross
16303 else
16304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16305   lt_status=$lt_dlunknown
16306   cat > conftest.$ac_ext <<EOF
16307 #line 16307 "configure"
16308 #include "confdefs.h"
16309
16310 #if HAVE_DLFCN_H
16311 #include <dlfcn.h>
16312 #endif
16313
16314 #include <stdio.h>
16315
16316 #ifdef RTLD_GLOBAL
16317 #  define LT_DLGLOBAL           RTLD_GLOBAL
16318 #else
16319 #  ifdef DL_GLOBAL
16320 #    define LT_DLGLOBAL         DL_GLOBAL
16321 #  else
16322 #    define LT_DLGLOBAL         0
16323 #  endif
16324 #endif
16325
16326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16327    find out it does not work in some platform. */
16328 #ifndef LT_DLLAZY_OR_NOW
16329 #  ifdef RTLD_LAZY
16330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16331 #  else
16332 #    ifdef DL_LAZY
16333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16334 #    else
16335 #      ifdef RTLD_NOW
16336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16337 #      else
16338 #        ifdef DL_NOW
16339 #          define LT_DLLAZY_OR_NOW      DL_NOW
16340 #        else
16341 #          define LT_DLLAZY_OR_NOW      0
16342 #        endif
16343 #      endif
16344 #    endif
16345 #  endif
16346 #endif
16347
16348 #ifdef __cplusplus
16349 extern "C" void exit (int);
16350 #endif
16351
16352 void fnord() { int i=42;}
16353 int main ()
16354 {
16355   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16356   int status = $lt_dlunknown;
16357
16358   if (self)
16359     {
16360       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16361       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16362       /* dlclose (self); */
16363     }
16364   else
16365     puts (dlerror ());
16366
16367     exit (status);
16368 }
16369 EOF
16370   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371   (eval $ac_link) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16375     (./conftest; exit; ) >&5 2>/dev/null
16376     lt_status=$?
16377     case x$lt_status in
16378       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16379       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16380       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16381     esac
16382   else :
16383     # compilation failed
16384     lt_cv_dlopen_self_static=no
16385   fi
16386 fi
16387 rm -fr conftest*
16388
16389
16390 fi
16391 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16392 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16393     fi
16394
16395     CPPFLAGS="$save_CPPFLAGS"
16396     LDFLAGS="$save_LDFLAGS"
16397     LIBS="$save_LIBS"
16398     ;;
16399   esac
16400
16401   case $lt_cv_dlopen_self in
16402   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16403   *) enable_dlopen_self=unknown ;;
16404   esac
16405
16406   case $lt_cv_dlopen_self_static in
16407   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16408   *) enable_dlopen_self_static=unknown ;;
16409   esac
16410 fi
16411
16412
16413 # Report which library types will actually be built
16414 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16416 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16417 echo "${ECHO_T}$can_build_shared" >&6; }
16418
16419 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16421 test "$can_build_shared" = "no" && enable_shared=no
16422
16423 # On AIX, shared libraries and static libraries use the same namespace, and
16424 # are all built from PIC.
16425 case $host_os in
16426 aix3*)
16427   test "$enable_shared" = yes && enable_static=no
16428   if test -n "$RANLIB"; then
16429     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16430     postinstall_cmds='$RANLIB $lib'
16431   fi
16432   ;;
16433
16434 aix4* | aix5*)
16435   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16436     test "$enable_shared" = yes && enable_static=no
16437   fi
16438     ;;
16439 esac
16440 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16441 echo "${ECHO_T}$enable_shared" >&6; }
16442
16443 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16445 # Make sure either enable_shared or enable_static is yes.
16446 test "$enable_shared" = yes || enable_static=yes
16447 { echo "$as_me:$LINENO: result: $enable_static" >&5
16448 echo "${ECHO_T}$enable_static" >&6; }
16449
16450 # The else clause should only fire when bootstrapping the
16451 # libtool distribution, otherwise you forgot to ship ltmain.sh
16452 # with your package, and you will get complaints that there are
16453 # no rules to generate ltmain.sh.
16454 if test -f "$ltmain"; then
16455   # See if we are running on zsh, and set the options which allow our commands through
16456   # without removal of \ escapes.
16457   if test -n "${ZSH_VERSION+set}" ; then
16458     setopt NO_GLOB_SUBST
16459   fi
16460   # Now quote all the things that may contain metacharacters while being
16461   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16462   # variables and quote the copies for generation of the libtool script.
16463   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16464     SED SHELL STRIP \
16465     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16466     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16467     deplibs_check_method reload_flag reload_cmds need_locks \
16468     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16469     lt_cv_sys_global_symbol_to_c_name_address \
16470     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16471     old_postinstall_cmds old_postuninstall_cmds \
16472     compiler \
16473     CC \
16474     LD \
16475     lt_prog_compiler_wl \
16476     lt_prog_compiler_pic \
16477     lt_prog_compiler_static \
16478     lt_prog_compiler_no_builtin_flag \
16479     export_dynamic_flag_spec \
16480     thread_safe_flag_spec \
16481     whole_archive_flag_spec \
16482     enable_shared_with_static_runtimes \
16483     old_archive_cmds \
16484     old_archive_from_new_cmds \
16485     predep_objects \
16486     postdep_objects \
16487     predeps \
16488     postdeps \
16489     compiler_lib_search_path \
16490     archive_cmds \
16491     archive_expsym_cmds \
16492     postinstall_cmds \
16493     postuninstall_cmds \
16494     old_archive_from_expsyms_cmds \
16495     allow_undefined_flag \
16496     no_undefined_flag \
16497     export_symbols_cmds \
16498     hardcode_libdir_flag_spec \
16499     hardcode_libdir_flag_spec_ld \
16500     hardcode_libdir_separator \
16501     hardcode_automatic \
16502     module_cmds \
16503     module_expsym_cmds \
16504     lt_cv_prog_compiler_c_o \
16505     exclude_expsyms \
16506     include_expsyms; do
16507
16508     case $var in
16509     old_archive_cmds | \
16510     old_archive_from_new_cmds | \
16511     archive_cmds | \
16512     archive_expsym_cmds | \
16513     module_cmds | \
16514     module_expsym_cmds | \
16515     old_archive_from_expsyms_cmds | \
16516     export_symbols_cmds | \
16517     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16518     postinstall_cmds | postuninstall_cmds | \
16519     old_postinstall_cmds | old_postuninstall_cmds | \
16520     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16521       # Double-quote double-evaled strings.
16522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16523       ;;
16524     *)
16525       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16526       ;;
16527     esac
16528   done
16529
16530   case $lt_echo in
16531   *'\$0 --fallback-echo"')
16532     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16533     ;;
16534   esac
16535
16536 cfgfile="${ofile}T"
16537   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16538   $rm -f "$cfgfile"
16539   { echo "$as_me:$LINENO: creating $ofile" >&5
16540 echo "$as_me: creating $ofile" >&6;}
16541
16542   cat <<__EOF__ >> "$cfgfile"
16543 #! $SHELL
16544
16545 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16546 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16547 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16548 #
16549 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16550 # Free Software Foundation, Inc.
16551 #
16552 # This file is part of GNU Libtool:
16553 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16554 #
16555 # This program is free software; you can redistribute it and/or modify
16556 # it under the terms of the GNU General Public License as published by
16557 # the Free Software Foundation; either version 2 of the License, or
16558 # (at your option) any later version.
16559 #
16560 # This program is distributed in the hope that it will be useful, but
16561 # WITHOUT ANY WARRANTY; without even the implied warranty of
16562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16563 # General Public License for more details.
16564 #
16565 # You should have received a copy of the GNU General Public License
16566 # along with this program; if not, write to the Free Software
16567 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16568 #
16569 # As a special exception to the GNU General Public License, if you
16570 # distribute this file as part of a program that contains a
16571 # configuration script generated by Autoconf, you may include it under
16572 # the same distribution terms that you use for the rest of that program.
16573
16574 # A sed program that does not truncate output.
16575 SED=$lt_SED
16576
16577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16578 Xsed="$SED -e 1s/^X//"
16579
16580 # The HP-UX ksh and POSIX shell print the target directory to stdout
16581 # if CDPATH is set.
16582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16583
16584 # The names of the tagged configurations supported by this script.
16585 available_tags=
16586
16587 # ### BEGIN LIBTOOL CONFIG
16588
16589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16590
16591 # Shell to use when invoking shell scripts.
16592 SHELL=$lt_SHELL
16593
16594 # Whether or not to build shared libraries.
16595 build_libtool_libs=$enable_shared
16596
16597 # Whether or not to build static libraries.
16598 build_old_libs=$enable_static
16599
16600 # Whether or not to add -lc for building shared libraries.
16601 build_libtool_need_lc=$archive_cmds_need_lc
16602
16603 # Whether or not to disallow shared libs when runtime libs are static
16604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16605
16606 # Whether or not to optimize for fast installation.
16607 fast_install=$enable_fast_install
16608
16609 # The host system.
16610 host_alias=$host_alias
16611 host=$host
16612 host_os=$host_os
16613
16614 # The build system.
16615 build_alias=$build_alias
16616 build=$build
16617 build_os=$build_os
16618
16619 # An echo program that does not interpret backslashes.
16620 echo=$lt_echo
16621
16622 # The archiver.
16623 AR=$lt_AR
16624 AR_FLAGS=$lt_AR_FLAGS
16625
16626 # A C compiler.
16627 LTCC=$lt_LTCC
16628
16629 # LTCC compiler flags.
16630 LTCFLAGS=$lt_LTCFLAGS
16631
16632 # A language-specific compiler.
16633 CC=$lt_compiler
16634
16635 # Is the compiler the GNU C compiler?
16636 with_gcc=$GCC
16637
16638 # An ERE matcher.
16639 EGREP=$lt_EGREP
16640
16641 # The linker used to build libraries.
16642 LD=$lt_LD
16643
16644 # Whether we need hard or soft links.
16645 LN_S=$lt_LN_S
16646
16647 # A BSD-compatible nm program.
16648 NM=$lt_NM
16649
16650 # A symbol stripping program
16651 STRIP=$lt_STRIP
16652
16653 # Used to examine libraries when file_magic_cmd begins "file"
16654 MAGIC_CMD=$MAGIC_CMD
16655
16656 # Used on cygwin: DLL creation program.
16657 DLLTOOL="$DLLTOOL"
16658
16659 # Used on cygwin: object dumper.
16660 OBJDUMP="$OBJDUMP"
16661
16662 # Used on cygwin: assembler.
16663 AS="$AS"
16664
16665 # The name of the directory that contains temporary libtool files.
16666 objdir=$objdir
16667
16668 # How to create reloadable object files.
16669 reload_flag=$lt_reload_flag
16670 reload_cmds=$lt_reload_cmds
16671
16672 # How to pass a linker flag through the compiler.
16673 wl=$lt_lt_prog_compiler_wl
16674
16675 # Object file suffix (normally "o").
16676 objext="$ac_objext"
16677
16678 # Old archive suffix (normally "a").
16679 libext="$libext"
16680
16681 # Shared library suffix (normally ".so").
16682 shrext_cmds='$shrext_cmds'
16683
16684 # Executable file suffix (normally "").
16685 exeext="$exeext"
16686
16687 # Additional compiler flags for building library objects.
16688 pic_flag=$lt_lt_prog_compiler_pic
16689 pic_mode=$pic_mode
16690
16691 # What is the maximum length of a command?
16692 max_cmd_len=$lt_cv_sys_max_cmd_len
16693
16694 # Does compiler simultaneously support -c and -o options?
16695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16696
16697 # Must we lock files when doing compilation?
16698 need_locks=$lt_need_locks
16699
16700 # Do we need the lib prefix for modules?
16701 need_lib_prefix=$need_lib_prefix
16702
16703 # Do we need a version for libraries?
16704 need_version=$need_version
16705
16706 # Whether dlopen is supported.
16707 dlopen_support=$enable_dlopen
16708
16709 # Whether dlopen of programs is supported.
16710 dlopen_self=$enable_dlopen_self
16711
16712 # Whether dlopen of statically linked programs is supported.
16713 dlopen_self_static=$enable_dlopen_self_static
16714
16715 # Compiler flag to prevent dynamic linking.
16716 link_static_flag=$lt_lt_prog_compiler_static
16717
16718 # Compiler flag to turn off builtin functions.
16719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16720
16721 # Compiler flag to allow reflexive dlopens.
16722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16723
16724 # Compiler flag to generate shared objects directly from archives.
16725 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16726
16727 # Compiler flag to generate thread-safe objects.
16728 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16729
16730 # Library versioning type.
16731 version_type=$version_type
16732
16733 # Format of library name prefix.
16734 libname_spec=$lt_libname_spec
16735
16736 # List of archive names.  First name is the real one, the rest are links.
16737 # The last name is the one that the linker finds with -lNAME.
16738 library_names_spec=$lt_library_names_spec
16739
16740 # The coded name of the library, if different from the real name.
16741 soname_spec=$lt_soname_spec
16742
16743 # Commands used to build and install an old-style archive.
16744 RANLIB=$lt_RANLIB
16745 old_archive_cmds=$lt_old_archive_cmds
16746 old_postinstall_cmds=$lt_old_postinstall_cmds
16747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16748
16749 # Create an old-style archive from a shared archive.
16750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16751
16752 # Create a temporary old-style archive to link instead of a shared archive.
16753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16754
16755 # Commands used to build and install a shared archive.
16756 archive_cmds=$lt_archive_cmds
16757 archive_expsym_cmds=$lt_archive_expsym_cmds
16758 postinstall_cmds=$lt_postinstall_cmds
16759 postuninstall_cmds=$lt_postuninstall_cmds
16760
16761 # Commands used to build a loadable module (assumed same as above if empty)
16762 module_cmds=$lt_module_cmds
16763 module_expsym_cmds=$lt_module_expsym_cmds
16764
16765 # Commands to strip libraries.
16766 old_striplib=$lt_old_striplib
16767 striplib=$lt_striplib
16768
16769 # Dependencies to place before the objects being linked to create a
16770 # shared library.
16771 predep_objects=$lt_predep_objects
16772
16773 # Dependencies to place after the objects being linked to create a
16774 # shared library.
16775 postdep_objects=$lt_postdep_objects
16776
16777 # Dependencies to place before the objects being linked to create a
16778 # shared library.
16779 predeps=$lt_predeps
16780
16781 # Dependencies to place after the objects being linked to create a
16782 # shared library.
16783 postdeps=$lt_postdeps
16784
16785 # The library search path used internally by the compiler when linking
16786 # a shared library.
16787 compiler_lib_search_path=$lt_compiler_lib_search_path
16788
16789 # Method to check whether dependent libraries are shared objects.
16790 deplibs_check_method=$lt_deplibs_check_method
16791
16792 # Command to use when deplibs_check_method == file_magic.
16793 file_magic_cmd=$lt_file_magic_cmd
16794
16795 # Flag that allows shared libraries with undefined symbols to be built.
16796 allow_undefined_flag=$lt_allow_undefined_flag
16797
16798 # Flag that forces no undefined symbols.
16799 no_undefined_flag=$lt_no_undefined_flag
16800
16801 # Commands used to finish a libtool library installation in a directory.
16802 finish_cmds=$lt_finish_cmds
16803
16804 # Same as above, but a single script fragment to be evaled but not shown.
16805 finish_eval=$lt_finish_eval
16806
16807 # Take the output of nm and produce a listing of raw symbols and C names.
16808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16809
16810 # Transform the output of nm in a proper C declaration
16811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16812
16813 # Transform the output of nm in a C name address pair
16814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16815
16816 # This is the shared library runtime path variable.
16817 runpath_var=$runpath_var
16818
16819 # This is the shared library path variable.
16820 shlibpath_var=$shlibpath_var
16821
16822 # Is shlibpath searched before the hard-coded library search path?
16823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16824
16825 # How to hardcode a shared library path into an executable.
16826 hardcode_action=$hardcode_action
16827
16828 # Whether we should hardcode library paths into libraries.
16829 hardcode_into_libs=$hardcode_into_libs
16830
16831 # Flag to hardcode \$libdir into a binary during linking.
16832 # This must work even if \$libdir does not exist.
16833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16834
16835 # If ld is used when linking, flag to hardcode \$libdir into
16836 # a binary during linking. This must work even if \$libdir does
16837 # not exist.
16838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16839
16840 # Whether we need a single -rpath flag with a separated argument.
16841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16842
16843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16844 # resulting binary.
16845 hardcode_direct=$hardcode_direct
16846
16847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16848 # resulting binary.
16849 hardcode_minus_L=$hardcode_minus_L
16850
16851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16852 # the resulting binary.
16853 hardcode_shlibpath_var=$hardcode_shlibpath_var
16854
16855 # Set to yes if building a shared library automatically hardcodes DIR into the library
16856 # and all subsequent libraries and executables linked against it.
16857 hardcode_automatic=$hardcode_automatic
16858
16859 # Variables whose values should be saved in libtool wrapper scripts and
16860 # restored at relink time.
16861 variables_saved_for_relink="$variables_saved_for_relink"
16862
16863 # Whether libtool must link a program against all its dependency libraries.
16864 link_all_deplibs=$link_all_deplibs
16865
16866 # Compile-time system search path for libraries
16867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16868
16869 # Run-time system search path for libraries
16870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16871
16872 # Fix the shell variable \$srcfile for the compiler.
16873 fix_srcfile_path="$fix_srcfile_path"
16874
16875 # Set to yes if exported symbols are required.
16876 always_export_symbols=$always_export_symbols
16877
16878 # The commands to list exported symbols.
16879 export_symbols_cmds=$lt_export_symbols_cmds
16880
16881 # The commands to extract the exported symbol list from a shared archive.
16882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16883
16884 # Symbols that should not be listed in the preloaded symbols.
16885 exclude_expsyms=$lt_exclude_expsyms
16886
16887 # Symbols that must always be exported.
16888 include_expsyms=$lt_include_expsyms
16889
16890 # ### END LIBTOOL CONFIG
16891
16892 __EOF__
16893
16894
16895   case $host_os in
16896   aix3*)
16897     cat <<\EOF >> "$cfgfile"
16898
16899 # AIX sometimes has problems with the GCC collect2 program.  For some
16900 # reason, if we set the COLLECT_NAMES environment variable, the problems
16901 # vanish in a puff of smoke.
16902 if test "X${COLLECT_NAMES+set}" != Xset; then
16903   COLLECT_NAMES=
16904   export COLLECT_NAMES
16905 fi
16906 EOF
16907     ;;
16908   esac
16909
16910   # We use sed instead of cat because bash on DJGPP gets confused if
16911   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16912   # text mode, it properly converts lines to CR/LF.  This bash problem
16913   # is reportedly fixed, but why not run on old versions too?
16914   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16915
16916   mv -f "$cfgfile" "$ofile" || \
16917     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16918   chmod +x "$ofile"
16919
16920 else
16921   # If there is no Makefile yet, we rely on a make rule to execute
16922   # `config.status --recheck' to rerun these tests and create the
16923   # libtool script then.
16924   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16925   if test -f "$ltmain_in"; then
16926     test -f Makefile && make "$ltmain"
16927   fi
16928 fi
16929
16930
16931 ac_ext=c
16932 ac_cpp='$CPP $CPPFLAGS'
16933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16936
16937 CC="$lt_save_CC"
16938
16939
16940 # Check whether --with-tags was given.
16941 if test "${with_tags+set}" = set; then
16942   withval=$with_tags; tagnames="$withval"
16943 fi
16944
16945
16946 if test -f "$ltmain" && test -n "$tagnames"; then
16947   if test ! -f "${ofile}"; then
16948     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16950   fi
16951
16952   if test -z "$LTCC"; then
16953     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16954     if test -z "$LTCC"; then
16955       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16957     else
16958       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16960     fi
16961   fi
16962   if test -z "$LTCFLAGS"; then
16963     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16964   fi
16965
16966   # Extract list of available tagged configurations in $ofile.
16967   # Note that this assumes the entire list is on one line.
16968   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16969
16970   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16971   for tagname in $tagnames; do
16972     IFS="$lt_save_ifs"
16973     # Check whether tagname contains only valid characters
16974     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16975     "") ;;
16976     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16978    { (exit 1); exit 1; }; }
16979         ;;
16980     esac
16981
16982     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16983     then
16984       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16986    { (exit 1); exit 1; }; }
16987     fi
16988
16989     # Update the list of available tags.
16990     if test -n "$tagname"; then
16991       echo appending configuration tag \"$tagname\" to $ofile
16992
16993       case $tagname in
16994       CXX)
16995         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16996             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16997             (test "X$CXX" != "Xg++"))) ; then
16998           ac_ext=cpp
16999 ac_cpp='$CXXCPP $CPPFLAGS'
17000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17003
17004
17005
17006
17007 archive_cmds_need_lc_CXX=no
17008 allow_undefined_flag_CXX=
17009 always_export_symbols_CXX=no
17010 archive_expsym_cmds_CXX=
17011 export_dynamic_flag_spec_CXX=
17012 hardcode_direct_CXX=no
17013 hardcode_libdir_flag_spec_CXX=
17014 hardcode_libdir_flag_spec_ld_CXX=
17015 hardcode_libdir_separator_CXX=
17016 hardcode_minus_L_CXX=no
17017 hardcode_shlibpath_var_CXX=unsupported
17018 hardcode_automatic_CXX=no
17019 module_cmds_CXX=
17020 module_expsym_cmds_CXX=
17021 link_all_deplibs_CXX=unknown
17022 old_archive_cmds_CXX=$old_archive_cmds
17023 no_undefined_flag_CXX=
17024 whole_archive_flag_spec_CXX=
17025 enable_shared_with_static_runtimes_CXX=no
17026
17027 # Dependencies to place before and after the object being linked:
17028 predep_objects_CXX=
17029 postdep_objects_CXX=
17030 predeps_CXX=
17031 postdeps_CXX=
17032 compiler_lib_search_path_CXX=
17033
17034 # Source file extension for C++ test sources.
17035 ac_ext=cpp
17036
17037 # Object file extension for compiled C++ test sources.
17038 objext=o
17039 objext_CXX=$objext
17040
17041 # Code to be used in simple compile tests
17042 lt_simple_compile_test_code="int some_variable = 0;\n"
17043
17044 # Code to be used in simple link tests
17045 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17046
17047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17048
17049 # If no C compiler was specified, use CC.
17050 LTCC=${LTCC-"$CC"}
17051
17052 # If no C compiler flags were specified, use CFLAGS.
17053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17054
17055 # Allow CC to be a program name with arguments.
17056 compiler=$CC
17057
17058
17059 # save warnings/boilerplate of simple test code
17060 ac_outfile=conftest.$ac_objext
17061 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17063 _lt_compiler_boilerplate=`cat conftest.err`
17064 $rm conftest*
17065
17066 ac_outfile=conftest.$ac_objext
17067 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17069 _lt_linker_boilerplate=`cat conftest.err`
17070 $rm conftest*
17071
17072
17073 # Allow CC to be a program name with arguments.
17074 lt_save_CC=$CC
17075 lt_save_LD=$LD
17076 lt_save_GCC=$GCC
17077 GCC=$GXX
17078 lt_save_with_gnu_ld=$with_gnu_ld
17079 lt_save_path_LD=$lt_cv_path_LD
17080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17081   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17082 else
17083   $as_unset lt_cv_prog_gnu_ld
17084 fi
17085 if test -n "${lt_cv_path_LDCXX+set}"; then
17086   lt_cv_path_LD=$lt_cv_path_LDCXX
17087 else
17088   $as_unset lt_cv_path_LD
17089 fi
17090 test -z "${LDCXX+set}" || LD=$LDCXX
17091 CC=${CXX-"c++"}
17092 compiler=$CC
17093 compiler_CXX=$CC
17094 for cc_temp in $compiler""; do
17095   case $cc_temp in
17096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17098     \-*) ;;
17099     *) break;;
17100   esac
17101 done
17102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17103
17104
17105 # We don't want -fno-exception wen compiling C++ code, so set the
17106 # no_builtin_flag separately
17107 if test "$GXX" = yes; then
17108   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17109 else
17110   lt_prog_compiler_no_builtin_flag_CXX=
17111 fi
17112
17113 if test "$GXX" = yes; then
17114   # Set up default GNU C++ configuration
17115
17116
17117 # Check whether --with-gnu-ld was given.
17118 if test "${with_gnu_ld+set}" = set; then
17119   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17120 else
17121   with_gnu_ld=no
17122 fi
17123
17124 ac_prog=ld
17125 if test "$GCC" = yes; then
17126   # Check if gcc -print-prog-name=ld gives a path.
17127   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17129   case $host in
17130   *-*-mingw*)
17131     # gcc leaves a trailing carriage return which upsets mingw
17132     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17133   *)
17134     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17135   esac
17136   case $ac_prog in
17137     # Accept absolute paths.
17138     [\\/]* | ?:[\\/]*)
17139       re_direlt='/[^/][^/]*/\.\./'
17140       # Canonicalize the pathname of ld
17141       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17142       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17143         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17144       done
17145       test -z "$LD" && LD="$ac_prog"
17146       ;;
17147   "")
17148     # If it fails, then pretend we aren't using GCC.
17149     ac_prog=ld
17150     ;;
17151   *)
17152     # If it is relative, then search for the first ld in PATH.
17153     with_gnu_ld=unknown
17154     ;;
17155   esac
17156 elif test "$with_gnu_ld" = yes; then
17157   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17159 else
17160   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17162 fi
17163 if test "${lt_cv_path_LD+set}" = set; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   if test -z "$LD"; then
17167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17168   for ac_dir in $PATH; do
17169     IFS="$lt_save_ifs"
17170     test -z "$ac_dir" && ac_dir=.
17171     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17172       lt_cv_path_LD="$ac_dir/$ac_prog"
17173       # Check to see if the program is GNU ld.  I'd rather use --version,
17174       # but apparently some variants of GNU ld only accept -v.
17175       # Break only if it was the GNU/non-GNU ld that we prefer.
17176       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17177       *GNU* | *'with BFD'*)
17178         test "$with_gnu_ld" != no && break
17179         ;;
17180       *)
17181         test "$with_gnu_ld" != yes && break
17182         ;;
17183       esac
17184     fi
17185   done
17186   IFS="$lt_save_ifs"
17187 else
17188   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17189 fi
17190 fi
17191
17192 LD="$lt_cv_path_LD"
17193 if test -n "$LD"; then
17194   { echo "$as_me:$LINENO: result: $LD" >&5
17195 echo "${ECHO_T}$LD" >&6; }
17196 else
17197   { echo "$as_me:$LINENO: result: no" >&5
17198 echo "${ECHO_T}no" >&6; }
17199 fi
17200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17202    { (exit 1); exit 1; }; }
17203 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17209 case `$LD -v 2>&1 </dev/null` in
17210 *GNU* | *'with BFD'*)
17211   lt_cv_prog_gnu_ld=yes
17212   ;;
17213 *)
17214   lt_cv_prog_gnu_ld=no
17215   ;;
17216 esac
17217 fi
17218 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17220 with_gnu_ld=$lt_cv_prog_gnu_ld
17221
17222
17223
17224   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17225   # archiving commands below assume that GNU ld is being used.
17226   if test "$with_gnu_ld" = yes; then
17227     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17228     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'
17229
17230     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17231     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17232
17233     # If archive_cmds runs LD, not CC, wlarc should be empty
17234     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17235     #     investigate it a little bit more. (MM)
17236     wlarc='${wl}'
17237
17238     # ancient GNU ld didn't support --whole-archive et. al.
17239     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17240         grep 'no-whole-archive' > /dev/null; then
17241       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17242     else
17243       whole_archive_flag_spec_CXX=
17244     fi
17245   else
17246     with_gnu_ld=no
17247     wlarc=
17248
17249     # A generic and very simple default shared library creation
17250     # command for GNU C++ for the case where it uses the native
17251     # linker, instead of GNU ld.  If possible, this setting should
17252     # overridden to take advantage of the native linker features on
17253     # the platform it is being used on.
17254     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17255   fi
17256
17257   # Commands to make compiler produce verbose output that lists
17258   # what "hidden" libraries, object files and flags are used when
17259   # linking a shared library.
17260   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17261
17262 else
17263   GXX=no
17264   with_gnu_ld=no
17265   wlarc=
17266 fi
17267
17268 # PORTME: fill in a description of your system's C++ link characteristics
17269 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17270 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17271 ld_shlibs_CXX=yes
17272 case $host_os in
17273   aix3*)
17274     # FIXME: insert proper C++ library support
17275     ld_shlibs_CXX=no
17276     ;;
17277   aix4* | aix5*)
17278     if test "$host_cpu" = ia64; then
17279       # On IA64, the linker does run time linking by default, so we don't
17280       # have to do anything special.
17281       aix_use_runtimelinking=no
17282       exp_sym_flag='-Bexport'
17283       no_entry_flag=""
17284     else
17285       aix_use_runtimelinking=no
17286
17287       # Test if we are trying to use run time linking or normal
17288       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17289       # need to do runtime linking.
17290       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17291         for ld_flag in $LDFLAGS; do
17292           case $ld_flag in
17293           *-brtl*)
17294             aix_use_runtimelinking=yes
17295             break
17296             ;;
17297           esac
17298         done
17299         ;;
17300       esac
17301
17302       exp_sym_flag='-bexport'
17303       no_entry_flag='-bnoentry'
17304     fi
17305
17306     # When large executables or shared objects are built, AIX ld can
17307     # have problems creating the table of contents.  If linking a library
17308     # or program results in "error TOC overflow" add -mminimal-toc to
17309     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17310     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17311
17312     archive_cmds_CXX=''
17313     hardcode_direct_CXX=yes
17314     hardcode_libdir_separator_CXX=':'
17315     link_all_deplibs_CXX=yes
17316
17317     if test "$GXX" = yes; then
17318       case $host_os in aix4.[012]|aix4.[012].*)
17319       # We only want to do this on AIX 4.2 and lower, the check
17320       # below for broken collect2 doesn't work under 4.3+
17321         collect2name=`${CC} -print-prog-name=collect2`
17322         if test -f "$collect2name" && \
17323            strings "$collect2name" | grep resolve_lib_name >/dev/null
17324         then
17325           # We have reworked collect2
17326           hardcode_direct_CXX=yes
17327         else
17328           # We have old collect2
17329           hardcode_direct_CXX=unsupported
17330           # It fails to find uninstalled libraries when the uninstalled
17331           # path is not listed in the libpath.  Setting hardcode_minus_L
17332           # to unsupported forces relinking
17333           hardcode_minus_L_CXX=yes
17334           hardcode_libdir_flag_spec_CXX='-L$libdir'
17335           hardcode_libdir_separator_CXX=
17336         fi
17337         ;;
17338       esac
17339       shared_flag='-shared'
17340       if test "$aix_use_runtimelinking" = yes; then
17341         shared_flag="$shared_flag "'${wl}-G'
17342       fi
17343     else
17344       # not using gcc
17345       if test "$host_cpu" = ia64; then
17346         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17347         # chokes on -Wl,-G. The following line is correct:
17348         shared_flag='-G'
17349       else
17350         if test "$aix_use_runtimelinking" = yes; then
17351           shared_flag='${wl}-G'
17352         else
17353           shared_flag='${wl}-bM:SRE'
17354         fi
17355       fi
17356     fi
17357
17358     # It seems that -bexpall does not export symbols beginning with
17359     # underscore (_), so it is better to generate a list of symbols to export.
17360     always_export_symbols_CXX=yes
17361     if test "$aix_use_runtimelinking" = yes; then
17362       # Warning - without using the other runtime loading flags (-brtl),
17363       # -berok will link without error, but may produce a broken library.
17364       allow_undefined_flag_CXX='-berok'
17365       # Determine the default libpath from the value encoded in an empty executable.
17366       cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372
17373 int
17374 main ()
17375 {
17376
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388   (eval "$ac_link") 2>conftest.er1
17389   ac_status=$?
17390   grep -v '^ *+' conftest.er1 >conftest.err
17391   rm -f conftest.er1
17392   cat conftest.err >&5
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); } && {
17395          test -z "$ac_cxx_werror_flag" ||
17396          test ! -s conftest.err
17397        } && test -s conftest$ac_exeext &&
17398        $as_test_x conftest$ac_exeext; then
17399
17400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17401 }'`
17402 # Check for a 64-bit object if we didn't find anything.
17403 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; }
17404 }'`; fi
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409
17410 fi
17411
17412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17413       conftest$ac_exeext conftest.$ac_ext
17414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17415
17416       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17417
17418       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"
17419      else
17420       if test "$host_cpu" = ia64; then
17421         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17422         allow_undefined_flag_CXX="-z nodefs"
17423         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"
17424       else
17425         # Determine the default libpath from the value encoded in an empty executable.
17426         cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432
17433 int
17434 main ()
17435 {
17436
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_link") 2>conftest.er1
17449   ac_status=$?
17450   grep -v '^ *+' conftest.er1 >conftest.err
17451   rm -f conftest.er1
17452   cat conftest.err >&5
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); } && {
17455          test -z "$ac_cxx_werror_flag" ||
17456          test ! -s conftest.err
17457        } && test -s conftest$ac_exeext &&
17458        $as_test_x conftest$ac_exeext; then
17459
17460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17461 }'`
17462 # Check for a 64-bit object if we didn't find anything.
17463 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; }
17464 }'`; fi
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469
17470 fi
17471
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473       conftest$ac_exeext conftest.$ac_ext
17474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17475
17476         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17477         # Warning - without using the other run time loading flags,
17478         # -berok will link without error, but may produce a broken library.
17479         no_undefined_flag_CXX=' ${wl}-bernotok'
17480         allow_undefined_flag_CXX=' ${wl}-berok'
17481         # Exported symbols can be pulled into shared objects from archives
17482         whole_archive_flag_spec_CXX='$convenience'
17483         archive_cmds_need_lc_CXX=yes
17484         # This is similar to how AIX traditionally builds its shared libraries.
17485         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'
17486       fi
17487     fi
17488     ;;
17489
17490   beos*)
17491     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17492       allow_undefined_flag_CXX=unsupported
17493       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17494       # support --undefined.  This deserves some investigation.  FIXME
17495       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17496     else
17497       ld_shlibs_CXX=no
17498     fi
17499     ;;
17500
17501   chorus*)
17502     case $cc_basename in
17503       *)
17504         # FIXME: insert proper C++ library support
17505         ld_shlibs_CXX=no
17506         ;;
17507     esac
17508     ;;
17509
17510   cygwin* | mingw* | pw32*)
17511     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17512     # as there is no search path for DLLs.
17513     hardcode_libdir_flag_spec_CXX='-L$libdir'
17514     allow_undefined_flag_CXX=unsupported
17515     always_export_symbols_CXX=no
17516     enable_shared_with_static_runtimes_CXX=yes
17517
17518     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17519       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'
17520       # If the export-symbols file already is a .def file (1st line
17521       # is EXPORTS), use it as is; otherwise, prepend...
17522       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17523         cp $export_symbols $output_objdir/$soname.def;
17524       else
17525         echo EXPORTS > $output_objdir/$soname.def;
17526         cat $export_symbols >> $output_objdir/$soname.def;
17527       fi~
17528       $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'
17529     else
17530       ld_shlibs_CXX=no
17531     fi
17532   ;;
17533       darwin* | rhapsody*)
17534         case $host_os in
17535         rhapsody* | darwin1.[012])
17536          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17537          ;;
17538        *) # Darwin 1.3 on
17539          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17540            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17541          else
17542            case ${MACOSX_DEPLOYMENT_TARGET} in
17543              10.[012])
17544                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17545                ;;
17546              10.*)
17547                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17548                ;;
17549            esac
17550          fi
17551          ;;
17552         esac
17553       archive_cmds_need_lc_CXX=no
17554       hardcode_direct_CXX=no
17555       hardcode_automatic_CXX=yes
17556       hardcode_shlibpath_var_CXX=unsupported
17557       whole_archive_flag_spec_CXX=''
17558       link_all_deplibs_CXX=yes
17559
17560     if test "$GXX" = yes ; then
17561       lt_int_apple_cc_single_mod=no
17562       output_verbose_link_cmd='echo'
17563       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17564        lt_int_apple_cc_single_mod=yes
17565       fi
17566       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17567        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17568       else
17569           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'
17570         fi
17571         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17572         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17573           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17574             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}'
17575           else
17576             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}'
17577           fi
17578             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}'
17579       else
17580       case $cc_basename in
17581         xlc*)
17582          output_verbose_link_cmd='echo'
17583           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'
17584           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17585           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17586           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}'
17587           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}'
17588           ;;
17589        *)
17590          ld_shlibs_CXX=no
17591           ;;
17592       esac
17593       fi
17594         ;;
17595
17596   dgux*)
17597     case $cc_basename in
17598       ec++*)
17599         # FIXME: insert proper C++ library support
17600         ld_shlibs_CXX=no
17601         ;;
17602       ghcx*)
17603         # Green Hills C++ Compiler
17604         # FIXME: insert proper C++ library support
17605         ld_shlibs_CXX=no
17606         ;;
17607       *)
17608         # FIXME: insert proper C++ library support
17609         ld_shlibs_CXX=no
17610         ;;
17611     esac
17612     ;;
17613   freebsd[12]*)
17614     # C++ shared libraries reported to be fairly broken before switch to ELF
17615     ld_shlibs_CXX=no
17616     ;;
17617   freebsd-elf*)
17618     archive_cmds_need_lc_CXX=no
17619     ;;
17620   freebsd* | kfreebsd*-gnu | dragonfly*)
17621     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17622     # conventions
17623     ld_shlibs_CXX=yes
17624     ;;
17625   gnu*)
17626     ;;
17627   hpux9*)
17628     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17629     hardcode_libdir_separator_CXX=:
17630     export_dynamic_flag_spec_CXX='${wl}-E'
17631     hardcode_direct_CXX=yes
17632     hardcode_minus_L_CXX=yes # Not in the search PATH,
17633                                 # but as the default
17634                                 # location of the library.
17635
17636     case $cc_basename in
17637     CC*)
17638       # FIXME: insert proper C++ library support
17639       ld_shlibs_CXX=no
17640       ;;
17641     aCC*)
17642       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'
17643       # Commands to make compiler produce verbose output that lists
17644       # what "hidden" libraries, object files and flags are used when
17645       # linking a shared library.
17646       #
17647       # There doesn't appear to be a way to prevent this compiler from
17648       # explicitly linking system object files so we need to strip them
17649       # from the output so that they don't get included in the library
17650       # dependencies.
17651       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'
17652       ;;
17653     *)
17654       if test "$GXX" = yes; then
17655         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'
17656       else
17657         # FIXME: insert proper C++ library support
17658         ld_shlibs_CXX=no
17659       fi
17660       ;;
17661     esac
17662     ;;
17663   hpux10*|hpux11*)
17664     if test $with_gnu_ld = no; then
17665       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17666       hardcode_libdir_separator_CXX=:
17667
17668       case $host_cpu in
17669       hppa*64*|ia64*)
17670         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17671         ;;
17672       *)
17673         export_dynamic_flag_spec_CXX='${wl}-E'
17674         ;;
17675       esac
17676     fi
17677     case $host_cpu in
17678     hppa*64*|ia64*)
17679       hardcode_direct_CXX=no
17680       hardcode_shlibpath_var_CXX=no
17681       ;;
17682     *)
17683       hardcode_direct_CXX=yes
17684       hardcode_minus_L_CXX=yes # Not in the search PATH,
17685                                               # but as the default
17686                                               # location of the library.
17687       ;;
17688     esac
17689
17690     case $cc_basename in
17691       CC*)
17692         # FIXME: insert proper C++ library support
17693         ld_shlibs_CXX=no
17694         ;;
17695       aCC*)
17696         case $host_cpu in
17697         hppa*64*)
17698           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699           ;;
17700         ia64*)
17701           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17702           ;;
17703         *)
17704           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17705           ;;
17706         esac
17707         # Commands to make compiler produce verbose output that lists
17708         # what "hidden" libraries, object files and flags are used when
17709         # linking a shared library.
17710         #
17711         # There doesn't appear to be a way to prevent this compiler from
17712         # explicitly linking system object files so we need to strip them
17713         # from the output so that they don't get included in the library
17714         # dependencies.
17715         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'
17716         ;;
17717       *)
17718         if test "$GXX" = yes; then
17719           if test $with_gnu_ld = no; then
17720             case $host_cpu in
17721             hppa*64*)
17722               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17723               ;;
17724             ia64*)
17725               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17726               ;;
17727             *)
17728               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'
17729               ;;
17730             esac
17731           fi
17732         else
17733           # FIXME: insert proper C++ library support
17734           ld_shlibs_CXX=no
17735         fi
17736         ;;
17737     esac
17738     ;;
17739   interix3*)
17740     hardcode_direct_CXX=no
17741     hardcode_shlibpath_var_CXX=no
17742     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17743     export_dynamic_flag_spec_CXX='${wl}-E'
17744     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17745     # Instead, shared libraries are loaded at an image base (0x10000000 by
17746     # default) and relocated if they conflict, which is a slow very memory
17747     # consuming and fragmenting process.  To avoid this, we pick a random,
17748     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17749     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17750     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'
17751     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'
17752     ;;
17753   irix5* | irix6*)
17754     case $cc_basename in
17755       CC*)
17756         # SGI C++
17757         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'
17758
17759         # Archives containing C++ object files must be created using
17760         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17761         # necessary to make sure instantiated templates are included
17762         # in the archive.
17763         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17764         ;;
17765       *)
17766         if test "$GXX" = yes; then
17767           if test "$with_gnu_ld" = no; then
17768             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'
17769           else
17770             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'
17771           fi
17772         fi
17773         link_all_deplibs_CXX=yes
17774         ;;
17775     esac
17776     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17777     hardcode_libdir_separator_CXX=:
17778     ;;
17779   linux*)
17780     case $cc_basename in
17781       KCC*)
17782         # Kuck and Associates, Inc. (KAI) C++ Compiler
17783
17784         # KCC will only create a shared library if the output file
17785         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17786         # to its proper name (with version) after linking.
17787         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'
17788         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'
17789         # Commands to make compiler produce verbose output that lists
17790         # what "hidden" libraries, object files and flags are used when
17791         # linking a shared library.
17792         #
17793         # There doesn't appear to be a way to prevent this compiler from
17794         # explicitly linking system object files so we need to strip them
17795         # from the output so that they don't get included in the library
17796         # dependencies.
17797         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'
17798
17799         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17800         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17801
17802         # Archives containing C++ object files must be created using
17803         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17804         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17805         ;;
17806       icpc*)
17807         # Intel C++
17808         with_gnu_ld=yes
17809         # version 8.0 and above of icpc choke on multiply defined symbols
17810         # if we add $predep_objects and $postdep_objects, however 7.1 and
17811         # earlier do not add the objects themselves.
17812         case `$CC -V 2>&1` in
17813         *"Version 7."*)
17814           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17815           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'
17816           ;;
17817         *)  # Version 8.0 or newer
17818           tmp_idyn=
17819           case $host_cpu in
17820             ia64*) tmp_idyn=' -i_dynamic';;
17821           esac
17822           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17823           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'
17824           ;;
17825         esac
17826         archive_cmds_need_lc_CXX=no
17827         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17828         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17829         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17830         ;;
17831       pgCC*)
17832         # Portland Group C++ compiler
17833         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17834         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'
17835
17836         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17837         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17838         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'
17839         ;;
17840       cxx*)
17841         # Compaq C++
17842         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17843         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'
17844
17845         runpath_var=LD_RUN_PATH
17846         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17847         hardcode_libdir_separator_CXX=:
17848
17849         # Commands to make compiler produce verbose output that lists
17850         # what "hidden" libraries, object files and flags are used when
17851         # linking a shared library.
17852         #
17853         # There doesn't appear to be a way to prevent this compiler from
17854         # explicitly linking system object files so we need to strip them
17855         # from the output so that they don't get included in the library
17856         # dependencies.
17857         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'
17858         ;;
17859     esac
17860     ;;
17861   lynxos*)
17862     # FIXME: insert proper C++ library support
17863     ld_shlibs_CXX=no
17864     ;;
17865   m88k*)
17866     # FIXME: insert proper C++ library support
17867     ld_shlibs_CXX=no
17868     ;;
17869   mvs*)
17870     case $cc_basename in
17871       cxx*)
17872         # FIXME: insert proper C++ library support
17873         ld_shlibs_CXX=no
17874         ;;
17875       *)
17876         # FIXME: insert proper C++ library support
17877         ld_shlibs_CXX=no
17878         ;;
17879     esac
17880     ;;
17881   netbsd*)
17882     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17883       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17884       wlarc=
17885       hardcode_libdir_flag_spec_CXX='-R$libdir'
17886       hardcode_direct_CXX=yes
17887       hardcode_shlibpath_var_CXX=no
17888     fi
17889     # Workaround some broken pre-1.5 toolchains
17890     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17891     ;;
17892   openbsd2*)
17893     # C++ shared libraries are fairly broken
17894     ld_shlibs_CXX=no
17895     ;;
17896   openbsd*)
17897     hardcode_direct_CXX=yes
17898     hardcode_shlibpath_var_CXX=no
17899     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17900     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17902       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17903       export_dynamic_flag_spec_CXX='${wl}-E'
17904       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17905     fi
17906     output_verbose_link_cmd='echo'
17907     ;;
17908   osf3*)
17909     case $cc_basename in
17910       KCC*)
17911         # Kuck and Associates, Inc. (KAI) C++ Compiler
17912
17913         # KCC will only create a shared library if the output file
17914         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17915         # to its proper name (with version) after linking.
17916         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'
17917
17918         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17919         hardcode_libdir_separator_CXX=:
17920
17921         # Archives containing C++ object files must be created using
17922         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17923         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17924
17925         ;;
17926       RCC*)
17927         # Rational C++ 2.4.1
17928         # FIXME: insert proper C++ library support
17929         ld_shlibs_CXX=no
17930         ;;
17931       cxx*)
17932         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17933         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'
17934
17935         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17936         hardcode_libdir_separator_CXX=:
17937
17938         # Commands to make compiler produce verbose output that lists
17939         # what "hidden" libraries, object files and flags are used when
17940         # linking a shared library.
17941         #
17942         # There doesn't appear to be a way to prevent this compiler from
17943         # explicitly linking system object files so we need to strip them
17944         # from the output so that they don't get included in the library
17945         # dependencies.
17946         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'
17947         ;;
17948       *)
17949         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17950           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17951           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'
17952
17953           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17954           hardcode_libdir_separator_CXX=:
17955
17956           # Commands to make compiler produce verbose output that lists
17957           # what "hidden" libraries, object files and flags are used when
17958           # linking a shared library.
17959           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17960
17961         else
17962           # FIXME: insert proper C++ library support
17963           ld_shlibs_CXX=no
17964         fi
17965         ;;
17966     esac
17967     ;;
17968   osf4* | osf5*)
17969     case $cc_basename in
17970       KCC*)
17971         # Kuck and Associates, Inc. (KAI) C++ Compiler
17972
17973         # KCC will only create a shared library if the output file
17974         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17975         # to its proper name (with version) after linking.
17976         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'
17977
17978         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17979         hardcode_libdir_separator_CXX=:
17980
17981         # Archives containing C++ object files must be created using
17982         # the KAI C++ compiler.
17983         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17984         ;;
17985       RCC*)
17986         # Rational C++ 2.4.1
17987         # FIXME: insert proper C++ library support
17988         ld_shlibs_CXX=no
17989         ;;
17990       cxx*)
17991         allow_undefined_flag_CXX=' -expect_unresolved \*'
17992         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'
17993         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17994           echo "-hidden">> $lib.exp~
17995           $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~
17996           $rm $lib.exp'
17997
17998         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17999         hardcode_libdir_separator_CXX=:
18000
18001         # Commands to make compiler produce verbose output that lists
18002         # what "hidden" libraries, object files and flags are used when
18003         # linking a shared library.
18004         #
18005         # There doesn't appear to be a way to prevent this compiler from
18006         # explicitly linking system object files so we need to strip them
18007         # from the output so that they don't get included in the library
18008         # dependencies.
18009         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'
18010         ;;
18011       *)
18012         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18013           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18014          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'
18015
18016           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18017           hardcode_libdir_separator_CXX=:
18018
18019           # Commands to make compiler produce verbose output that lists
18020           # what "hidden" libraries, object files and flags are used when
18021           # linking a shared library.
18022           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18023
18024         else
18025           # FIXME: insert proper C++ library support
18026           ld_shlibs_CXX=no
18027         fi
18028         ;;
18029     esac
18030     ;;
18031   psos*)
18032     # FIXME: insert proper C++ library support
18033     ld_shlibs_CXX=no
18034     ;;
18035   sunos4*)
18036     case $cc_basename in
18037       CC*)
18038         # Sun C++ 4.x
18039         # FIXME: insert proper C++ library support
18040         ld_shlibs_CXX=no
18041         ;;
18042       lcc*)
18043         # Lucid
18044         # FIXME: insert proper C++ library support
18045         ld_shlibs_CXX=no
18046         ;;
18047       *)
18048         # FIXME: insert proper C++ library support
18049         ld_shlibs_CXX=no
18050         ;;
18051     esac
18052     ;;
18053   solaris*)
18054     case $cc_basename in
18055       CC*)
18056         # Sun C++ 4.2, 5.x and Centerline C++
18057         archive_cmds_need_lc_CXX=yes
18058         no_undefined_flag_CXX=' -zdefs'
18059         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18060         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18061         $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'
18062
18063         hardcode_libdir_flag_spec_CXX='-R$libdir'
18064         hardcode_shlibpath_var_CXX=no
18065         case $host_os in
18066           solaris2.[0-5] | solaris2.[0-5].*) ;;
18067           *)
18068             # The C++ compiler is used as linker so we must use $wl
18069             # flag to pass the commands to the underlying system
18070             # linker. We must also pass each convience library through
18071             # to the system linker between allextract/defaultextract.
18072             # The C++ compiler will combine linker options so we
18073             # cannot just pass the convience library names through
18074             # without $wl.
18075             # Supported since Solaris 2.6 (maybe 2.5.1?)
18076             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'
18077             ;;
18078         esac
18079         link_all_deplibs_CXX=yes
18080
18081         output_verbose_link_cmd='echo'
18082
18083         # Archives containing C++ object files must be created using
18084         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18085         # necessary to make sure instantiated templates are included
18086         # in the archive.
18087         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18088         ;;
18089       gcx*)
18090         # Green Hills C++ Compiler
18091         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18092
18093         # The C++ compiler must be used to create the archive.
18094         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18095         ;;
18096       *)
18097         # GNU C++ compiler with Solaris linker
18098         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18099           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18100           if $CC --version | grep -v '^2\.7' > /dev/null; then
18101             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18102             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18103                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18104
18105             # Commands to make compiler produce verbose output that lists
18106             # what "hidden" libraries, object files and flags are used when
18107             # linking a shared library.
18108             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18109           else
18110             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18111             # platform.
18112             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18113             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18114                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18115
18116             # Commands to make compiler produce verbose output that lists
18117             # what "hidden" libraries, object files and flags are used when
18118             # linking a shared library.
18119             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18120           fi
18121
18122           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18123         fi
18124         ;;
18125     esac
18126     ;;
18127   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18128     no_undefined_flag_CXX='${wl}-z,text'
18129     archive_cmds_need_lc_CXX=no
18130     hardcode_shlibpath_var_CXX=no
18131     runpath_var='LD_RUN_PATH'
18132
18133     case $cc_basename in
18134       CC*)
18135         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18136         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18137         ;;
18138       *)
18139         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18141         ;;
18142     esac
18143     ;;
18144   sysv5* | sco3.2v5* | sco5v6*)
18145     # Note: We can NOT use -z defs as we might desire, because we do not
18146     # link with -lc, and that would cause any symbols used from libc to
18147     # always be unresolved, which means just about no library would
18148     # ever link correctly.  If we're not using GNU ld we use -z text
18149     # though, which does catch some bad symbols but isn't as heavy-handed
18150     # as -z defs.
18151     # For security reasons, it is highly recommended that you always
18152     # use absolute paths for naming shared libraries, and exclude the
18153     # DT_RUNPATH tag from executables and libraries.  But doing so
18154     # requires that you compile everything twice, which is a pain.
18155     # So that behaviour is only enabled if SCOABSPATH is set to a
18156     # non-empty value in the environment.  Most likely only useful for
18157     # creating official distributions of packages.
18158     # This is a hack until libtool officially supports absolute path
18159     # names for shared libraries.
18160     no_undefined_flag_CXX='${wl}-z,text'
18161     allow_undefined_flag_CXX='${wl}-z,nodefs'
18162     archive_cmds_need_lc_CXX=no
18163     hardcode_shlibpath_var_CXX=no
18164     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18165     hardcode_libdir_separator_CXX=':'
18166     link_all_deplibs_CXX=yes
18167     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18168     runpath_var='LD_RUN_PATH'
18169
18170     case $cc_basename in
18171       CC*)
18172         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18173         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18174         ;;
18175       *)
18176         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18177         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18178         ;;
18179     esac
18180     ;;
18181   tandem*)
18182     case $cc_basename in
18183       NCC*)
18184         # NonStop-UX NCC 3.20
18185         # FIXME: insert proper C++ library support
18186         ld_shlibs_CXX=no
18187         ;;
18188       *)
18189         # FIXME: insert proper C++ library support
18190         ld_shlibs_CXX=no
18191         ;;
18192     esac
18193     ;;
18194   vxworks*)
18195     # FIXME: insert proper C++ library support
18196     ld_shlibs_CXX=no
18197     ;;
18198   *)
18199     # FIXME: insert proper C++ library support
18200     ld_shlibs_CXX=no
18201     ;;
18202 esac
18203 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18204 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18205 test "$ld_shlibs_CXX" = no && can_build_shared=no
18206
18207 GCC_CXX="$GXX"
18208 LD_CXX="$LD"
18209
18210
18211 cat > conftest.$ac_ext <<EOF
18212 class Foo
18213 {
18214 public:
18215   Foo (void) { a = 0; }
18216 private:
18217   int a;
18218 };
18219 EOF
18220
18221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18222   (eval $ac_compile) 2>&5
18223   ac_status=$?
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); }; then
18226   # Parse the compiler output and extract the necessary
18227   # objects, libraries and library flags.
18228
18229   # Sentinel used to keep track of whether or not we are before
18230   # the conftest object file.
18231   pre_test_object_deps_done=no
18232
18233   # The `*' in the case matches for architectures that use `case' in
18234   # $output_verbose_cmd can trigger glob expansion during the loop
18235   # eval without this substitution.
18236   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18237
18238   for p in `eval $output_verbose_link_cmd`; do
18239     case $p in
18240
18241     -L* | -R* | -l*)
18242        # Some compilers place space between "-{L,R}" and the path.
18243        # Remove the space.
18244        if test $p = "-L" \
18245           || test $p = "-R"; then
18246          prev=$p
18247          continue
18248        else
18249          prev=
18250        fi
18251
18252        if test "$pre_test_object_deps_done" = no; then
18253          case $p in
18254          -L* | -R*)
18255            # Internal compiler library paths should come after those
18256            # provided the user.  The postdeps already come after the
18257            # user supplied libs so there is no need to process them.
18258            if test -z "$compiler_lib_search_path_CXX"; then
18259              compiler_lib_search_path_CXX="${prev}${p}"
18260            else
18261              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18262            fi
18263            ;;
18264          # The "-l" case would never come before the object being
18265          # linked, so don't bother handling this case.
18266          esac
18267        else
18268          if test -z "$postdeps_CXX"; then
18269            postdeps_CXX="${prev}${p}"
18270          else
18271            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18272          fi
18273        fi
18274        ;;
18275
18276     *.$objext)
18277        # This assumes that the test object file only shows up
18278        # once in the compiler output.
18279        if test "$p" = "conftest.$objext"; then
18280          pre_test_object_deps_done=yes
18281          continue
18282        fi
18283
18284        if test "$pre_test_object_deps_done" = no; then
18285          if test -z "$predep_objects_CXX"; then
18286            predep_objects_CXX="$p"
18287          else
18288            predep_objects_CXX="$predep_objects_CXX $p"
18289          fi
18290        else
18291          if test -z "$postdep_objects_CXX"; then
18292            postdep_objects_CXX="$p"
18293          else
18294            postdep_objects_CXX="$postdep_objects_CXX $p"
18295          fi
18296        fi
18297        ;;
18298
18299     *) ;; # Ignore the rest.
18300
18301     esac
18302   done
18303
18304   # Clean up.
18305   rm -f a.out a.exe
18306 else
18307   echo "libtool.m4: error: problem compiling CXX test program"
18308 fi
18309
18310 $rm -f confest.$objext
18311
18312 # PORTME: override above test on systems where it is broken
18313 case $host_os in
18314 interix3*)
18315   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18316   # hack all around it, let's just trust "g++" to DTRT.
18317   predep_objects_CXX=
18318   postdep_objects_CXX=
18319   postdeps_CXX=
18320   ;;
18321
18322 solaris*)
18323   case $cc_basename in
18324   CC*)
18325     # Adding this requires a known-good setup of shared libraries for
18326     # Sun compiler versions before 5.6, else PIC objects from an old
18327     # archive will be linked into the output, leading to subtle bugs.
18328     postdeps_CXX='-lCstd -lCrun'
18329     ;;
18330   esac
18331   ;;
18332 esac
18333
18334
18335 case " $postdeps_CXX " in
18336 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18337 esac
18338
18339 lt_prog_compiler_wl_CXX=
18340 lt_prog_compiler_pic_CXX=
18341 lt_prog_compiler_static_CXX=
18342
18343 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18344 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18345
18346   # C++ specific cases for pic, static, wl, etc.
18347   if test "$GXX" = yes; then
18348     lt_prog_compiler_wl_CXX='-Wl,'
18349     lt_prog_compiler_static_CXX='-static'
18350
18351     case $host_os in
18352     aix*)
18353       # All AIX code is PIC.
18354       if test "$host_cpu" = ia64; then
18355         # AIX 5 now supports IA64 processor
18356         lt_prog_compiler_static_CXX='-Bstatic'
18357       fi
18358       ;;
18359     amigaos*)
18360       # FIXME: we need at least 68020 code to build shared libraries, but
18361       # adding the `-m68020' flag to GCC prevents building anything better,
18362       # like `-m68040'.
18363       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18364       ;;
18365     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18366       # PIC is the default for these OSes.
18367       ;;
18368     mingw* | os2* | pw32*)
18369       # This hack is so that the source file can tell whether it is being
18370       # built for inclusion in a dll (and should export symbols for example).
18371       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18372       ;;
18373     darwin* | rhapsody*)
18374       # PIC is the default on this platform
18375       # Common symbols not allowed in MH_DYLIB files
18376       lt_prog_compiler_pic_CXX='-fno-common'
18377       ;;
18378     *djgpp*)
18379       # DJGPP does not support shared libraries at all
18380       lt_prog_compiler_pic_CXX=
18381       ;;
18382     interix3*)
18383       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18384       # Instead, we relocate shared libraries at runtime.
18385       ;;
18386     sysv4*MP*)
18387       if test -d /usr/nec; then
18388         lt_prog_compiler_pic_CXX=-Kconform_pic
18389       fi
18390       ;;
18391     hpux*)
18392       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18393       # not for PA HP-UX.
18394       case $host_cpu in
18395       hppa*64*|ia64*)
18396         ;;
18397       *)
18398         lt_prog_compiler_pic_CXX='-fPIC'
18399         ;;
18400       esac
18401       ;;
18402     *)
18403       lt_prog_compiler_pic_CXX='-fPIC'
18404       ;;
18405     esac
18406   else
18407     case $host_os in
18408       aix4* | aix5*)
18409         # All AIX code is PIC.
18410         if test "$host_cpu" = ia64; then
18411           # AIX 5 now supports IA64 processor
18412           lt_prog_compiler_static_CXX='-Bstatic'
18413         else
18414           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18415         fi
18416         ;;
18417       chorus*)
18418         case $cc_basename in
18419         cxch68*)
18420           # Green Hills C++ Compiler
18421           # _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"
18422           ;;
18423         esac
18424         ;;
18425        darwin*)
18426          # PIC is the default on this platform
18427          # Common symbols not allowed in MH_DYLIB files
18428          case $cc_basename in
18429            xlc*)
18430            lt_prog_compiler_pic_CXX='-qnocommon'
18431            lt_prog_compiler_wl_CXX='-Wl,'
18432            ;;
18433          esac
18434        ;;
18435       dgux*)
18436         case $cc_basename in
18437           ec++*)
18438             lt_prog_compiler_pic_CXX='-KPIC'
18439             ;;
18440           ghcx*)
18441             # Green Hills C++ Compiler
18442             lt_prog_compiler_pic_CXX='-pic'
18443             ;;
18444           *)
18445             ;;
18446         esac
18447         ;;
18448       freebsd* | kfreebsd*-gnu | dragonfly*)
18449         # FreeBSD uses GNU C++
18450         ;;
18451       hpux9* | hpux10* | hpux11*)
18452         case $cc_basename in
18453           CC*)
18454             lt_prog_compiler_wl_CXX='-Wl,'
18455             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18456             if test "$host_cpu" != ia64; then
18457               lt_prog_compiler_pic_CXX='+Z'
18458             fi
18459             ;;
18460           aCC*)
18461             lt_prog_compiler_wl_CXX='-Wl,'
18462             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18463             case $host_cpu in
18464             hppa*64*|ia64*)
18465               # +Z the default
18466               ;;
18467             *)
18468               lt_prog_compiler_pic_CXX='+Z'
18469               ;;
18470             esac
18471             ;;
18472           *)
18473             ;;
18474         esac
18475         ;;
18476       interix*)
18477         # This is c89, which is MS Visual C++ (no shared libs)
18478         # Anyone wants to do a port?
18479         ;;
18480       irix5* | irix6* | nonstopux*)
18481         case $cc_basename in
18482           CC*)
18483             lt_prog_compiler_wl_CXX='-Wl,'
18484             lt_prog_compiler_static_CXX='-non_shared'
18485             # CC pic flag -KPIC is the default.
18486             ;;
18487           *)
18488             ;;
18489         esac
18490         ;;
18491       linux*)
18492         case $cc_basename in
18493           KCC*)
18494             # KAI C++ Compiler
18495             lt_prog_compiler_wl_CXX='--backend -Wl,'
18496             lt_prog_compiler_pic_CXX='-fPIC'
18497             ;;
18498           icpc* | ecpc*)
18499             # Intel C++
18500             lt_prog_compiler_wl_CXX='-Wl,'
18501             lt_prog_compiler_pic_CXX='-KPIC'
18502             lt_prog_compiler_static_CXX='-static'
18503             ;;
18504           pgCC*)
18505             # Portland Group C++ compiler.
18506             lt_prog_compiler_wl_CXX='-Wl,'
18507             lt_prog_compiler_pic_CXX='-fpic'
18508             lt_prog_compiler_static_CXX='-Bstatic'
18509             ;;
18510           cxx*)
18511             # Compaq C++
18512             # Make sure the PIC flag is empty.  It appears that all Alpha
18513             # Linux and Compaq Tru64 Unix objects are PIC.
18514             lt_prog_compiler_pic_CXX=
18515             lt_prog_compiler_static_CXX='-non_shared'
18516             ;;
18517           *)
18518             ;;
18519         esac
18520         ;;
18521       lynxos*)
18522         ;;
18523       m88k*)
18524         ;;
18525       mvs*)
18526         case $cc_basename in
18527           cxx*)
18528             lt_prog_compiler_pic_CXX='-W c,exportall'
18529             ;;
18530           *)
18531             ;;
18532         esac
18533         ;;
18534       netbsd*)
18535         ;;
18536       osf3* | osf4* | osf5*)
18537         case $cc_basename in
18538           KCC*)
18539             lt_prog_compiler_wl_CXX='--backend -Wl,'
18540             ;;
18541           RCC*)
18542             # Rational C++ 2.4.1
18543             lt_prog_compiler_pic_CXX='-pic'
18544             ;;
18545           cxx*)
18546             # Digital/Compaq C++
18547             lt_prog_compiler_wl_CXX='-Wl,'
18548             # Make sure the PIC flag is empty.  It appears that all Alpha
18549             # Linux and Compaq Tru64 Unix objects are PIC.
18550             lt_prog_compiler_pic_CXX=
18551             lt_prog_compiler_static_CXX='-non_shared'
18552             ;;
18553           *)
18554             ;;
18555         esac
18556         ;;
18557       psos*)
18558         ;;
18559       solaris*)
18560         case $cc_basename in
18561           CC*)
18562             # Sun C++ 4.2, 5.x and Centerline C++
18563             lt_prog_compiler_pic_CXX='-KPIC'
18564             lt_prog_compiler_static_CXX='-Bstatic'
18565             lt_prog_compiler_wl_CXX='-Qoption ld '
18566             ;;
18567           gcx*)
18568             # Green Hills C++ Compiler
18569             lt_prog_compiler_pic_CXX='-PIC'
18570             ;;
18571           *)
18572             ;;
18573         esac
18574         ;;
18575       sunos4*)
18576         case $cc_basename in
18577           CC*)
18578             # Sun C++ 4.x
18579             lt_prog_compiler_pic_CXX='-pic'
18580             lt_prog_compiler_static_CXX='-Bstatic'
18581             ;;
18582           lcc*)
18583             # Lucid
18584             lt_prog_compiler_pic_CXX='-pic'
18585             ;;
18586           *)
18587             ;;
18588         esac
18589         ;;
18590       tandem*)
18591         case $cc_basename in
18592           NCC*)
18593             # NonStop-UX NCC 3.20
18594             lt_prog_compiler_pic_CXX='-KPIC'
18595             ;;
18596           *)
18597             ;;
18598         esac
18599         ;;
18600       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18601         case $cc_basename in
18602           CC*)
18603             lt_prog_compiler_wl_CXX='-Wl,'
18604             lt_prog_compiler_pic_CXX='-KPIC'
18605             lt_prog_compiler_static_CXX='-Bstatic'
18606             ;;
18607         esac
18608         ;;
18609       vxworks*)
18610         ;;
18611       *)
18612         lt_prog_compiler_can_build_shared_CXX=no
18613         ;;
18614     esac
18615   fi
18616
18617 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18618 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18619
18620 #
18621 # Check to make sure the PIC flag actually works.
18622 #
18623 if test -n "$lt_prog_compiler_pic_CXX"; then
18624
18625 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18626 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18627 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18628   echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630   lt_prog_compiler_pic_works_CXX=no
18631   ac_outfile=conftest.$ac_objext
18632    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18633    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18634    # Insert the option either (1) after the last *FLAGS variable, or
18635    # (2) before a word containing "conftest.", or (3) at the end.
18636    # Note that $ac_compile itself does not contain backslashes and begins
18637    # with a dollar sign (not a hyphen), so the echo should work correctly.
18638    # The option is referenced via a variable to avoid confusing sed.
18639    lt_compile=`echo "$ac_compile" | $SED \
18640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18642    -e 's:$: $lt_compiler_flag:'`
18643    (eval echo "\"\$as_me:18643: $lt_compile\"" >&5)
18644    (eval "$lt_compile" 2>conftest.err)
18645    ac_status=$?
18646    cat conftest.err >&5
18647    echo "$as_me:18647: \$? = $ac_status" >&5
18648    if (exit $ac_status) && test -s "$ac_outfile"; then
18649      # The compiler can only warn and ignore the option if not recognized
18650      # So say no if there are warnings other than the usual output.
18651      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18652      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18653      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18654        lt_prog_compiler_pic_works_CXX=yes
18655      fi
18656    fi
18657    $rm conftest*
18658
18659 fi
18660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18661 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18662
18663 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18664     case $lt_prog_compiler_pic_CXX in
18665      "" | " "*) ;;
18666      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18667      esac
18668 else
18669     lt_prog_compiler_pic_CXX=
18670      lt_prog_compiler_can_build_shared_CXX=no
18671 fi
18672
18673 fi
18674 case $host_os in
18675   # For platforms which do not support PIC, -DPIC is meaningless:
18676   *djgpp*)
18677     lt_prog_compiler_pic_CXX=
18678     ;;
18679   *)
18680     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18681     ;;
18682 esac
18683
18684 #
18685 # Check to make sure the static flag actually works.
18686 #
18687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18688 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18689 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18690 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   lt_prog_compiler_static_works_CXX=no
18694    save_LDFLAGS="$LDFLAGS"
18695    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18696    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18697    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18698      # The linker can only warn and ignore the option if not recognized
18699      # So say no if there are warnings
18700      if test -s conftest.err; then
18701        # Append any errors to the config.log.
18702        cat conftest.err 1>&5
18703        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18704        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18705        if diff conftest.exp conftest.er2 >/dev/null; then
18706          lt_prog_compiler_static_works_CXX=yes
18707        fi
18708      else
18709        lt_prog_compiler_static_works_CXX=yes
18710      fi
18711    fi
18712    $rm conftest*
18713    LDFLAGS="$save_LDFLAGS"
18714
18715 fi
18716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18717 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18718
18719 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18720     :
18721 else
18722     lt_prog_compiler_static_CXX=
18723 fi
18724
18725
18726 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18728 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   lt_cv_prog_compiler_c_o_CXX=no
18732    $rm -r conftest 2>/dev/null
18733    mkdir conftest
18734    cd conftest
18735    mkdir out
18736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18737
18738    lt_compiler_flag="-o out/conftest2.$ac_objext"
18739    # Insert the option either (1) after the last *FLAGS variable, or
18740    # (2) before a word containing "conftest.", or (3) at the end.
18741    # Note that $ac_compile itself does not contain backslashes and begins
18742    # with a dollar sign (not a hyphen), so the echo should work correctly.
18743    lt_compile=`echo "$ac_compile" | $SED \
18744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18746    -e 's:$: $lt_compiler_flag:'`
18747    (eval echo "\"\$as_me:18747: $lt_compile\"" >&5)
18748    (eval "$lt_compile" 2>out/conftest.err)
18749    ac_status=$?
18750    cat out/conftest.err >&5
18751    echo "$as_me:18751: \$? = $ac_status" >&5
18752    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18753    then
18754      # The compiler can only warn and ignore the option if not recognized
18755      # So say no if there are warnings
18756      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18757      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18758      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18759        lt_cv_prog_compiler_c_o_CXX=yes
18760      fi
18761    fi
18762    chmod u+w . 2>&5
18763    $rm conftest*
18764    # SGI C++ compiler will create directory out/ii_files/ for
18765    # template instantiation
18766    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18767    $rm out/* && rmdir out
18768    cd ..
18769    rmdir conftest
18770    $rm conftest*
18771
18772 fi
18773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18775
18776
18777 hard_links="nottested"
18778 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18779   # do not overwrite the value of need_locks provided by the user
18780   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18782   hard_links=yes
18783   $rm conftest*
18784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18785   touch conftest.a
18786   ln conftest.a conftest.b 2>&5 || hard_links=no
18787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18788   { echo "$as_me:$LINENO: result: $hard_links" >&5
18789 echo "${ECHO_T}$hard_links" >&6; }
18790   if test "$hard_links" = no; then
18791     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18793     need_locks=warn
18794   fi
18795 else
18796   need_locks=no
18797 fi
18798
18799 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18801
18802   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18803   case $host_os in
18804   aix4* | aix5*)
18805     # If we're using GNU nm, then we don't want the "-C" option.
18806     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18807     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18808       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'
18809     else
18810       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'
18811     fi
18812     ;;
18813   pw32*)
18814     export_symbols_cmds_CXX="$ltdll_cmds"
18815   ;;
18816   cygwin* | mingw*)
18817     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'
18818   ;;
18819   *)
18820     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18821   ;;
18822   esac
18823
18824 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18825 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18826 test "$ld_shlibs_CXX" = no && can_build_shared=no
18827
18828 #
18829 # Do we need to explicitly link libc?
18830 #
18831 case "x$archive_cmds_need_lc_CXX" in
18832 x|xyes)
18833   # Assume -lc should be added
18834   archive_cmds_need_lc_CXX=yes
18835
18836   if test "$enable_shared" = yes && test "$GCC" = yes; then
18837     case $archive_cmds_CXX in
18838     *'~'*)
18839       # FIXME: we may have to deal with multi-command sequences.
18840       ;;
18841     '$CC '*)
18842       # Test whether the compiler implicitly links with -lc since on some
18843       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18844       # to ld, don't add -lc before -lgcc.
18845       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18847       $rm conftest*
18848       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18849
18850       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851   (eval $ac_compile) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } 2>conftest.err; then
18855         soname=conftest
18856         lib=conftest
18857         libobjs=conftest.$ac_objext
18858         deplibs=
18859         wl=$lt_prog_compiler_wl_CXX
18860         pic_flag=$lt_prog_compiler_pic_CXX
18861         compiler_flags=-v
18862         linker_flags=-v
18863         verstring=
18864         output_objdir=.
18865         libname=conftest
18866         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18867         allow_undefined_flag_CXX=
18868         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18869   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }
18873         then
18874           archive_cmds_need_lc_CXX=no
18875         else
18876           archive_cmds_need_lc_CXX=yes
18877         fi
18878         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18879       else
18880         cat conftest.err 1>&5
18881       fi
18882       $rm conftest*
18883       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18884 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18885       ;;
18886     esac
18887   fi
18888   ;;
18889 esac
18890
18891 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18893 library_names_spec=
18894 libname_spec='lib$name'
18895 soname_spec=
18896 shrext_cmds=".so"
18897 postinstall_cmds=
18898 postuninstall_cmds=
18899 finish_cmds=
18900 finish_eval=
18901 shlibpath_var=
18902 shlibpath_overrides_runpath=unknown
18903 version_type=none
18904 dynamic_linker="$host_os ld.so"
18905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18906 if test "$GCC" = yes; then
18907   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18908   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18909     # if the path contains ";" then we assume it to be the separator
18910     # otherwise default to the standard path separator (i.e. ":") - it is
18911     # assumed that no part of a normal pathname contains ";" but that should
18912     # okay in the real world where ";" in dirpaths is itself problematic.
18913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18914   else
18915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18916   fi
18917 else
18918   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18919 fi
18920 need_lib_prefix=unknown
18921 hardcode_into_libs=no
18922
18923 # when you set need_version to no, make sure it does not cause -set_version
18924 # flags to be left without arguments
18925 need_version=unknown
18926
18927 case $host_os in
18928 aix3*)
18929   version_type=linux
18930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18931   shlibpath_var=LIBPATH
18932
18933   # AIX 3 has no versioning support, so we append a major version to the name.
18934   soname_spec='${libname}${release}${shared_ext}$major'
18935   ;;
18936
18937 aix4* | aix5*)
18938   version_type=linux
18939   need_lib_prefix=no
18940   need_version=no
18941   hardcode_into_libs=yes
18942   if test "$host_cpu" = ia64; then
18943     # AIX 5 supports IA64
18944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18945     shlibpath_var=LD_LIBRARY_PATH
18946   else
18947     # With GCC up to 2.95.x, collect2 would create an import file
18948     # for dependence libraries.  The import file would start with
18949     # the line `#! .'.  This would cause the generated library to
18950     # depend on `.', always an invalid library.  This was fixed in
18951     # development snapshots of GCC prior to 3.0.
18952     case $host_os in
18953       aix4 | aix4.[01] | aix4.[01].*)
18954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18955            echo ' yes '
18956            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18957         :
18958       else
18959         can_build_shared=no
18960       fi
18961       ;;
18962     esac
18963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18964     # soname into executable. Probably we can add versioning support to
18965     # collect2, so additional links can be useful in future.
18966     if test "$aix_use_runtimelinking" = yes; then
18967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18968       # instead of lib<name>.a to let people know that these are not
18969       # typical AIX shared libraries.
18970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971     else
18972       # We preserve .a as extension for shared libraries through AIX4.2
18973       # and later when we are not doing run time linking.
18974       library_names_spec='${libname}${release}.a $libname.a'
18975       soname_spec='${libname}${release}${shared_ext}$major'
18976     fi
18977     shlibpath_var=LIBPATH
18978   fi
18979   ;;
18980
18981 amigaos*)
18982   library_names_spec='$libname.ixlibrary $libname.a'
18983   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18984   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'
18985   ;;
18986
18987 beos*)
18988   library_names_spec='${libname}${shared_ext}'
18989   dynamic_linker="$host_os ld.so"
18990   shlibpath_var=LIBRARY_PATH
18991   ;;
18992
18993 bsdi[45]*)
18994   version_type=linux
18995   need_version=no
18996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18997   soname_spec='${libname}${release}${shared_ext}$major'
18998   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18999   shlibpath_var=LD_LIBRARY_PATH
19000   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19001   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19002   # the default ld.so.conf also contains /usr/contrib/lib and
19003   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19004   # libtool to hard-code these into programs
19005   ;;
19006
19007 cygwin* | mingw* | pw32*)
19008   version_type=windows
19009   shrext_cmds=".dll"
19010   need_version=no
19011   need_lib_prefix=no
19012
19013   case $GCC,$host_os in
19014   yes,cygwin* | yes,mingw* | yes,pw32*)
19015     library_names_spec='$libname.dll.a'
19016     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19017     postinstall_cmds='base_file=`basename \${file}`~
19018       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19019       dldir=$destdir/`dirname \$dlpath`~
19020       test -d \$dldir || mkdir -p \$dldir~
19021       $install_prog $dir/$dlname \$dldir/$dlname~
19022       chmod a+x \$dldir/$dlname'
19023     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19024       dlpath=$dir/\$dldll~
19025        $rm \$dlpath'
19026     shlibpath_overrides_runpath=yes
19027
19028     case $host_os in
19029     cygwin*)
19030       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19031       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19032       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19033       ;;
19034     mingw*)
19035       # MinGW DLLs use traditional 'lib' prefix
19036       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19037       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19038       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19039         # It is most probably a Windows format PATH printed by
19040         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19041         # path with ; separators, and with drive letters. We can handle the
19042         # drive letters (cygwin fileutils understands them), so leave them,
19043         # especially as we might pass files found there to a mingw objdump,
19044         # which wouldn't understand a cygwinified path. Ahh.
19045         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19046       else
19047         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19048       fi
19049       ;;
19050     pw32*)
19051       # pw32 DLLs use 'pw' prefix rather than 'lib'
19052       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19053       ;;
19054     esac
19055     ;;
19056
19057   *)
19058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19059     ;;
19060   esac
19061   dynamic_linker='Win32 ld.exe'
19062   # FIXME: first we should search . and the directory the executable is in
19063   shlibpath_var=PATH
19064   ;;
19065
19066 darwin* | rhapsody*)
19067   dynamic_linker="$host_os dyld"
19068   version_type=darwin
19069   need_lib_prefix=no
19070   need_version=no
19071   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19072   soname_spec='${libname}${release}${major}$shared_ext'
19073   shlibpath_overrides_runpath=yes
19074   shlibpath_var=DYLD_LIBRARY_PATH
19075   shrext_cmds='.dylib'
19076   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19077   if test "$GCC" = yes; then
19078     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"`
19079   else
19080     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19081   fi
19082   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19083   ;;
19084
19085 dgux*)
19086   version_type=linux
19087   need_lib_prefix=no
19088   need_version=no
19089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19090   soname_spec='${libname}${release}${shared_ext}$major'
19091   shlibpath_var=LD_LIBRARY_PATH
19092   ;;
19093
19094 freebsd1*)
19095   dynamic_linker=no
19096   ;;
19097
19098 kfreebsd*-gnu)
19099   version_type=linux
19100   need_lib_prefix=no
19101   need_version=no
19102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19103   soname_spec='${libname}${release}${shared_ext}$major'
19104   shlibpath_var=LD_LIBRARY_PATH
19105   shlibpath_overrides_runpath=no
19106   hardcode_into_libs=yes
19107   dynamic_linker='GNU ld.so'
19108   ;;
19109
19110 freebsd* | dragonfly*)
19111   # DragonFly does not have aout.  When/if they implement a new
19112   # versioning mechanism, adjust this.
19113   if test -x /usr/bin/objformat; then
19114     objformat=`/usr/bin/objformat`
19115   else
19116     case $host_os in
19117     freebsd[123]*) objformat=aout ;;
19118     *) objformat=elf ;;
19119     esac
19120   fi
19121   version_type=freebsd-$objformat
19122   case $version_type in
19123     freebsd-elf*)
19124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19125       need_version=no
19126       need_lib_prefix=no
19127       ;;
19128     freebsd-*)
19129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19130       need_version=yes
19131       ;;
19132   esac
19133   shlibpath_var=LD_LIBRARY_PATH
19134   case $host_os in
19135   freebsd2*)
19136     shlibpath_overrides_runpath=yes
19137     ;;
19138   freebsd3.[01]* | freebsdelf3.[01]*)
19139     shlibpath_overrides_runpath=yes
19140     hardcode_into_libs=yes
19141     ;;
19142   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19143   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19144     shlibpath_overrides_runpath=no
19145     hardcode_into_libs=yes
19146     ;;
19147   freebsd*) # from 4.6 on
19148     shlibpath_overrides_runpath=yes
19149     hardcode_into_libs=yes
19150     ;;
19151   esac
19152   ;;
19153
19154 gnu*)
19155   version_type=linux
19156   need_lib_prefix=no
19157   need_version=no
19158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19159   soname_spec='${libname}${release}${shared_ext}$major'
19160   shlibpath_var=LD_LIBRARY_PATH
19161   hardcode_into_libs=yes
19162   ;;
19163
19164 hpux9* | hpux10* | hpux11*)
19165   # Give a soname corresponding to the major version so that dld.sl refuses to
19166   # link against other versions.
19167   version_type=sunos
19168   need_lib_prefix=no
19169   need_version=no
19170   case $host_cpu in
19171   ia64*)
19172     shrext_cmds='.so'
19173     hardcode_into_libs=yes
19174     dynamic_linker="$host_os dld.so"
19175     shlibpath_var=LD_LIBRARY_PATH
19176     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19178     soname_spec='${libname}${release}${shared_ext}$major'
19179     if test "X$HPUX_IA64_MODE" = X32; then
19180       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19181     else
19182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19183     fi
19184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19185     ;;
19186    hppa*64*)
19187      shrext_cmds='.sl'
19188      hardcode_into_libs=yes
19189      dynamic_linker="$host_os dld.sl"
19190      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19191      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19192      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193      soname_spec='${libname}${release}${shared_ext}$major'
19194      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19195      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19196      ;;
19197    *)
19198     shrext_cmds='.sl'
19199     dynamic_linker="$host_os dld.sl"
19200     shlibpath_var=SHLIB_PATH
19201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203     soname_spec='${libname}${release}${shared_ext}$major'
19204     ;;
19205   esac
19206   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19207   postinstall_cmds='chmod 555 $lib'
19208   ;;
19209
19210 interix3*)
19211   version_type=linux
19212   need_lib_prefix=no
19213   need_version=no
19214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19215   soname_spec='${libname}${release}${shared_ext}$major'
19216   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19217   shlibpath_var=LD_LIBRARY_PATH
19218   shlibpath_overrides_runpath=no
19219   hardcode_into_libs=yes
19220   ;;
19221
19222 irix5* | irix6* | nonstopux*)
19223   case $host_os in
19224     nonstopux*) version_type=nonstopux ;;
19225     *)
19226         if test "$lt_cv_prog_gnu_ld" = yes; then
19227                 version_type=linux
19228         else
19229                 version_type=irix
19230         fi ;;
19231   esac
19232   need_lib_prefix=no
19233   need_version=no
19234   soname_spec='${libname}${release}${shared_ext}$major'
19235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19236   case $host_os in
19237   irix5* | nonstopux*)
19238     libsuff= shlibsuff=
19239     ;;
19240   *)
19241     case $LD in # libtool.m4 will add one of these switches to LD
19242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19243       libsuff= shlibsuff= libmagic=32-bit;;
19244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19245       libsuff=32 shlibsuff=N32 libmagic=N32;;
19246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19248     *) libsuff= shlibsuff= libmagic=never-match;;
19249     esac
19250     ;;
19251   esac
19252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19253   shlibpath_overrides_runpath=no
19254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19256   hardcode_into_libs=yes
19257   ;;
19258
19259 # No shared lib support for Linux oldld, aout, or coff.
19260 linux*oldld* | linux*aout* | linux*coff*)
19261   dynamic_linker=no
19262   ;;
19263
19264 # This must be Linux ELF.
19265 linux*)
19266   version_type=linux
19267   need_lib_prefix=no
19268   need_version=no
19269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270   soname_spec='${libname}${release}${shared_ext}$major'
19271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19272   shlibpath_var=LD_LIBRARY_PATH
19273   shlibpath_overrides_runpath=no
19274   # This implies no fast_install, which is unacceptable.
19275   # Some rework will be needed to allow for fast_install
19276   # before this can be enabled.
19277   hardcode_into_libs=yes
19278
19279   # Append ld.so.conf contents to the search path
19280   if test -f /etc/ld.so.conf; then
19281     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' ' '`
19282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19283   fi
19284
19285   # We used to test for /lib/ld.so.1 and disable shared libraries on
19286   # powerpc, because MkLinux only supported shared libraries with the
19287   # GNU dynamic linker.  Since this was broken with cross compilers,
19288   # most powerpc-linux boxes support dynamic linking these days and
19289   # people can always --disable-shared, the test was removed, and we
19290   # assume the GNU/Linux dynamic linker is in use.
19291   dynamic_linker='GNU/Linux ld.so'
19292   ;;
19293
19294 knetbsd*-gnu)
19295   version_type=linux
19296   need_lib_prefix=no
19297   need_version=no
19298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19299   soname_spec='${libname}${release}${shared_ext}$major'
19300   shlibpath_var=LD_LIBRARY_PATH
19301   shlibpath_overrides_runpath=no
19302   hardcode_into_libs=yes
19303   dynamic_linker='GNU ld.so'
19304   ;;
19305
19306 netbsd*)
19307   version_type=sunos
19308   need_lib_prefix=no
19309   need_version=no
19310   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19312     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19313     dynamic_linker='NetBSD (a.out) ld.so'
19314   else
19315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19316     soname_spec='${libname}${release}${shared_ext}$major'
19317     dynamic_linker='NetBSD ld.elf_so'
19318   fi
19319   shlibpath_var=LD_LIBRARY_PATH
19320   shlibpath_overrides_runpath=yes
19321   hardcode_into_libs=yes
19322   ;;
19323
19324 newsos6)
19325   version_type=linux
19326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19327   shlibpath_var=LD_LIBRARY_PATH
19328   shlibpath_overrides_runpath=yes
19329   ;;
19330
19331 nto-qnx*)
19332   version_type=linux
19333   need_lib_prefix=no
19334   need_version=no
19335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19336   soname_spec='${libname}${release}${shared_ext}$major'
19337   shlibpath_var=LD_LIBRARY_PATH
19338   shlibpath_overrides_runpath=yes
19339   ;;
19340
19341 openbsd*)
19342   version_type=sunos
19343   sys_lib_dlsearch_path_spec="/usr/lib"
19344   need_lib_prefix=no
19345   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19346   case $host_os in
19347     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19348     *)                         need_version=no  ;;
19349   esac
19350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19352   shlibpath_var=LD_LIBRARY_PATH
19353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19354     case $host_os in
19355       openbsd2.[89] | openbsd2.[89].*)
19356         shlibpath_overrides_runpath=no
19357         ;;
19358       *)
19359         shlibpath_overrides_runpath=yes
19360         ;;
19361       esac
19362   else
19363     shlibpath_overrides_runpath=yes
19364   fi
19365   ;;
19366
19367 os2*)
19368   libname_spec='$name'
19369   shrext_cmds=".dll"
19370   need_lib_prefix=no
19371   library_names_spec='$libname${shared_ext} $libname.a'
19372   dynamic_linker='OS/2 ld.exe'
19373   shlibpath_var=LIBPATH
19374   ;;
19375
19376 osf3* | osf4* | osf5*)
19377   version_type=osf
19378   need_lib_prefix=no
19379   need_version=no
19380   soname_spec='${libname}${release}${shared_ext}$major'
19381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382   shlibpath_var=LD_LIBRARY_PATH
19383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19385   ;;
19386
19387 solaris*)
19388   version_type=linux
19389   need_lib_prefix=no
19390   need_version=no
19391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392   soname_spec='${libname}${release}${shared_ext}$major'
19393   shlibpath_var=LD_LIBRARY_PATH
19394   shlibpath_overrides_runpath=yes
19395   hardcode_into_libs=yes
19396   # ldd complains unless libraries are executable
19397   postinstall_cmds='chmod +x $lib'
19398   ;;
19399
19400 sunos4*)
19401   version_type=sunos
19402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19404   shlibpath_var=LD_LIBRARY_PATH
19405   shlibpath_overrides_runpath=yes
19406   if test "$with_gnu_ld" = yes; then
19407     need_lib_prefix=no
19408   fi
19409   need_version=yes
19410   ;;
19411
19412 sysv4 | sysv4.3*)
19413   version_type=linux
19414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19415   soname_spec='${libname}${release}${shared_ext}$major'
19416   shlibpath_var=LD_LIBRARY_PATH
19417   case $host_vendor in
19418     sni)
19419       shlibpath_overrides_runpath=no
19420       need_lib_prefix=no
19421       export_dynamic_flag_spec='${wl}-Blargedynsym'
19422       runpath_var=LD_RUN_PATH
19423       ;;
19424     siemens)
19425       need_lib_prefix=no
19426       ;;
19427     motorola)
19428       need_lib_prefix=no
19429       need_version=no
19430       shlibpath_overrides_runpath=no
19431       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19432       ;;
19433   esac
19434   ;;
19435
19436 sysv4*MP*)
19437   if test -d /usr/nec ;then
19438     version_type=linux
19439     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19440     soname_spec='$libname${shared_ext}.$major'
19441     shlibpath_var=LD_LIBRARY_PATH
19442   fi
19443   ;;
19444
19445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19446   version_type=freebsd-elf
19447   need_lib_prefix=no
19448   need_version=no
19449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19450   soname_spec='${libname}${release}${shared_ext}$major'
19451   shlibpath_var=LD_LIBRARY_PATH
19452   hardcode_into_libs=yes
19453   if test "$with_gnu_ld" = yes; then
19454     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19455     shlibpath_overrides_runpath=no
19456   else
19457     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19458     shlibpath_overrides_runpath=yes
19459     case $host_os in
19460       sco3.2v5*)
19461         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19462         ;;
19463     esac
19464   fi
19465   sys_lib_dlsearch_path_spec='/usr/lib'
19466   ;;
19467
19468 uts4*)
19469   version_type=linux
19470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471   soname_spec='${libname}${release}${shared_ext}$major'
19472   shlibpath_var=LD_LIBRARY_PATH
19473   ;;
19474
19475 *)
19476   dynamic_linker=no
19477   ;;
19478 esac
19479 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19480 echo "${ECHO_T}$dynamic_linker" >&6; }
19481 test "$dynamic_linker" = no && can_build_shared=no
19482
19483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19484 if test "$GCC" = yes; then
19485   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19486 fi
19487
19488 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19489 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19490 hardcode_action_CXX=
19491 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19492    test -n "$runpath_var_CXX" || \
19493    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19494
19495   # We can hardcode non-existant directories.
19496   if test "$hardcode_direct_CXX" != no &&
19497      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19498      # have to relink, otherwise we might link with an installed library
19499      # when we should be linking with a yet-to-be-installed one
19500      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19501      test "$hardcode_minus_L_CXX" != no; then
19502     # Linking always hardcodes the temporary library directory.
19503     hardcode_action_CXX=relink
19504   else
19505     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19506     hardcode_action_CXX=immediate
19507   fi
19508 else
19509   # We cannot hardcode anything, or else we can only hardcode existing
19510   # directories.
19511   hardcode_action_CXX=unsupported
19512 fi
19513 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19514 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19515
19516 if test "$hardcode_action_CXX" = relink; then
19517   # Fast installation is not supported
19518   enable_fast_install=no
19519 elif test "$shlibpath_overrides_runpath" = yes ||
19520      test "$enable_shared" = no; then
19521   # Fast installation is not necessary
19522   enable_fast_install=needless
19523 fi
19524
19525
19526 # The else clause should only fire when bootstrapping the
19527 # libtool distribution, otherwise you forgot to ship ltmain.sh
19528 # with your package, and you will get complaints that there are
19529 # no rules to generate ltmain.sh.
19530 if test -f "$ltmain"; then
19531   # See if we are running on zsh, and set the options which allow our commands through
19532   # without removal of \ escapes.
19533   if test -n "${ZSH_VERSION+set}" ; then
19534     setopt NO_GLOB_SUBST
19535   fi
19536   # Now quote all the things that may contain metacharacters while being
19537   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19538   # variables and quote the copies for generation of the libtool script.
19539   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19540     SED SHELL STRIP \
19541     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19542     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19543     deplibs_check_method reload_flag reload_cmds need_locks \
19544     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19545     lt_cv_sys_global_symbol_to_c_name_address \
19546     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19547     old_postinstall_cmds old_postuninstall_cmds \
19548     compiler_CXX \
19549     CC_CXX \
19550     LD_CXX \
19551     lt_prog_compiler_wl_CXX \
19552     lt_prog_compiler_pic_CXX \
19553     lt_prog_compiler_static_CXX \
19554     lt_prog_compiler_no_builtin_flag_CXX \
19555     export_dynamic_flag_spec_CXX \
19556     thread_safe_flag_spec_CXX \
19557     whole_archive_flag_spec_CXX \
19558     enable_shared_with_static_runtimes_CXX \
19559     old_archive_cmds_CXX \
19560     old_archive_from_new_cmds_CXX \
19561     predep_objects_CXX \
19562     postdep_objects_CXX \
19563     predeps_CXX \
19564     postdeps_CXX \
19565     compiler_lib_search_path_CXX \
19566     archive_cmds_CXX \
19567     archive_expsym_cmds_CXX \
19568     postinstall_cmds_CXX \
19569     postuninstall_cmds_CXX \
19570     old_archive_from_expsyms_cmds_CXX \
19571     allow_undefined_flag_CXX \
19572     no_undefined_flag_CXX \
19573     export_symbols_cmds_CXX \
19574     hardcode_libdir_flag_spec_CXX \
19575     hardcode_libdir_flag_spec_ld_CXX \
19576     hardcode_libdir_separator_CXX \
19577     hardcode_automatic_CXX \
19578     module_cmds_CXX \
19579     module_expsym_cmds_CXX \
19580     lt_cv_prog_compiler_c_o_CXX \
19581     exclude_expsyms_CXX \
19582     include_expsyms_CXX; do
19583
19584     case $var in
19585     old_archive_cmds_CXX | \
19586     old_archive_from_new_cmds_CXX | \
19587     archive_cmds_CXX | \
19588     archive_expsym_cmds_CXX | \
19589     module_cmds_CXX | \
19590     module_expsym_cmds_CXX | \
19591     old_archive_from_expsyms_cmds_CXX | \
19592     export_symbols_cmds_CXX | \
19593     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19594     postinstall_cmds | postuninstall_cmds | \
19595     old_postinstall_cmds | old_postuninstall_cmds | \
19596     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19597       # Double-quote double-evaled strings.
19598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19599       ;;
19600     *)
19601       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19602       ;;
19603     esac
19604   done
19605
19606   case $lt_echo in
19607   *'\$0 --fallback-echo"')
19608     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19609     ;;
19610   esac
19611
19612 cfgfile="$ofile"
19613
19614   cat <<__EOF__ >> "$cfgfile"
19615 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19616
19617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19618
19619 # Shell to use when invoking shell scripts.
19620 SHELL=$lt_SHELL
19621
19622 # Whether or not to build shared libraries.
19623 build_libtool_libs=$enable_shared
19624
19625 # Whether or not to build static libraries.
19626 build_old_libs=$enable_static
19627
19628 # Whether or not to add -lc for building shared libraries.
19629 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19630
19631 # Whether or not to disallow shared libs when runtime libs are static
19632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19633
19634 # Whether or not to optimize for fast installation.
19635 fast_install=$enable_fast_install
19636
19637 # The host system.
19638 host_alias=$host_alias
19639 host=$host
19640 host_os=$host_os
19641
19642 # The build system.
19643 build_alias=$build_alias
19644 build=$build
19645 build_os=$build_os
19646
19647 # An echo program that does not interpret backslashes.
19648 echo=$lt_echo
19649
19650 # The archiver.
19651 AR=$lt_AR
19652 AR_FLAGS=$lt_AR_FLAGS
19653
19654 # A C compiler.
19655 LTCC=$lt_LTCC
19656
19657 # LTCC compiler flags.
19658 LTCFLAGS=$lt_LTCFLAGS
19659
19660 # A language-specific compiler.
19661 CC=$lt_compiler_CXX
19662
19663 # Is the compiler the GNU C compiler?
19664 with_gcc=$GCC_CXX
19665
19666 # An ERE matcher.
19667 EGREP=$lt_EGREP
19668
19669 # The linker used to build libraries.
19670 LD=$lt_LD_CXX
19671
19672 # Whether we need hard or soft links.
19673 LN_S=$lt_LN_S
19674
19675 # A BSD-compatible nm program.
19676 NM=$lt_NM
19677
19678 # A symbol stripping program
19679 STRIP=$lt_STRIP
19680
19681 # Used to examine libraries when file_magic_cmd begins "file"
19682 MAGIC_CMD=$MAGIC_CMD
19683
19684 # Used on cygwin: DLL creation program.
19685 DLLTOOL="$DLLTOOL"
19686
19687 # Used on cygwin: object dumper.
19688 OBJDUMP="$OBJDUMP"
19689
19690 # Used on cygwin: assembler.
19691 AS="$AS"
19692
19693 # The name of the directory that contains temporary libtool files.
19694 objdir=$objdir
19695
19696 # How to create reloadable object files.
19697 reload_flag=$lt_reload_flag
19698 reload_cmds=$lt_reload_cmds
19699
19700 # How to pass a linker flag through the compiler.
19701 wl=$lt_lt_prog_compiler_wl_CXX
19702
19703 # Object file suffix (normally "o").
19704 objext="$ac_objext"
19705
19706 # Old archive suffix (normally "a").
19707 libext="$libext"
19708
19709 # Shared library suffix (normally ".so").
19710 shrext_cmds='$shrext_cmds'
19711
19712 # Executable file suffix (normally "").
19713 exeext="$exeext"
19714
19715 # Additional compiler flags for building library objects.
19716 pic_flag=$lt_lt_prog_compiler_pic_CXX
19717 pic_mode=$pic_mode
19718
19719 # What is the maximum length of a command?
19720 max_cmd_len=$lt_cv_sys_max_cmd_len
19721
19722 # Does compiler simultaneously support -c and -o options?
19723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19724
19725 # Must we lock files when doing compilation?
19726 need_locks=$lt_need_locks
19727
19728 # Do we need the lib prefix for modules?
19729 need_lib_prefix=$need_lib_prefix
19730
19731 # Do we need a version for libraries?
19732 need_version=$need_version
19733
19734 # Whether dlopen is supported.
19735 dlopen_support=$enable_dlopen
19736
19737 # Whether dlopen of programs is supported.
19738 dlopen_self=$enable_dlopen_self
19739
19740 # Whether dlopen of statically linked programs is supported.
19741 dlopen_self_static=$enable_dlopen_self_static
19742
19743 # Compiler flag to prevent dynamic linking.
19744 link_static_flag=$lt_lt_prog_compiler_static_CXX
19745
19746 # Compiler flag to turn off builtin functions.
19747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19748
19749 # Compiler flag to allow reflexive dlopens.
19750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19751
19752 # Compiler flag to generate shared objects directly from archives.
19753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19754
19755 # Compiler flag to generate thread-safe objects.
19756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19757
19758 # Library versioning type.
19759 version_type=$version_type
19760
19761 # Format of library name prefix.
19762 libname_spec=$lt_libname_spec
19763
19764 # List of archive names.  First name is the real one, the rest are links.
19765 # The last name is the one that the linker finds with -lNAME.
19766 library_names_spec=$lt_library_names_spec
19767
19768 # The coded name of the library, if different from the real name.
19769 soname_spec=$lt_soname_spec
19770
19771 # Commands used to build and install an old-style archive.
19772 RANLIB=$lt_RANLIB
19773 old_archive_cmds=$lt_old_archive_cmds_CXX
19774 old_postinstall_cmds=$lt_old_postinstall_cmds
19775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19776
19777 # Create an old-style archive from a shared archive.
19778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19779
19780 # Create a temporary old-style archive to link instead of a shared archive.
19781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19782
19783 # Commands used to build and install a shared archive.
19784 archive_cmds=$lt_archive_cmds_CXX
19785 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19786 postinstall_cmds=$lt_postinstall_cmds
19787 postuninstall_cmds=$lt_postuninstall_cmds
19788
19789 # Commands used to build a loadable module (assumed same as above if empty)
19790 module_cmds=$lt_module_cmds_CXX
19791 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19792
19793 # Commands to strip libraries.
19794 old_striplib=$lt_old_striplib
19795 striplib=$lt_striplib
19796
19797 # Dependencies to place before the objects being linked to create a
19798 # shared library.
19799 predep_objects=$lt_predep_objects_CXX
19800
19801 # Dependencies to place after the objects being linked to create a
19802 # shared library.
19803 postdep_objects=$lt_postdep_objects_CXX
19804
19805 # Dependencies to place before the objects being linked to create a
19806 # shared library.
19807 predeps=$lt_predeps_CXX
19808
19809 # Dependencies to place after the objects being linked to create a
19810 # shared library.
19811 postdeps=$lt_postdeps_CXX
19812
19813 # The library search path used internally by the compiler when linking
19814 # a shared library.
19815 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19816
19817 # Method to check whether dependent libraries are shared objects.
19818 deplibs_check_method=$lt_deplibs_check_method
19819
19820 # Command to use when deplibs_check_method == file_magic.
19821 file_magic_cmd=$lt_file_magic_cmd
19822
19823 # Flag that allows shared libraries with undefined symbols to be built.
19824 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19825
19826 # Flag that forces no undefined symbols.
19827 no_undefined_flag=$lt_no_undefined_flag_CXX
19828
19829 # Commands used to finish a libtool library installation in a directory.
19830 finish_cmds=$lt_finish_cmds
19831
19832 # Same as above, but a single script fragment to be evaled but not shown.
19833 finish_eval=$lt_finish_eval
19834
19835 # Take the output of nm and produce a listing of raw symbols and C names.
19836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19837
19838 # Transform the output of nm in a proper C declaration
19839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19840
19841 # Transform the output of nm in a C name address pair
19842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19843
19844 # This is the shared library runtime path variable.
19845 runpath_var=$runpath_var
19846
19847 # This is the shared library path variable.
19848 shlibpath_var=$shlibpath_var
19849
19850 # Is shlibpath searched before the hard-coded library search path?
19851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19852
19853 # How to hardcode a shared library path into an executable.
19854 hardcode_action=$hardcode_action_CXX
19855
19856 # Whether we should hardcode library paths into libraries.
19857 hardcode_into_libs=$hardcode_into_libs
19858
19859 # Flag to hardcode \$libdir into a binary during linking.
19860 # This must work even if \$libdir does not exist.
19861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19862
19863 # If ld is used when linking, flag to hardcode \$libdir into
19864 # a binary during linking. This must work even if \$libdir does
19865 # not exist.
19866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19867
19868 # Whether we need a single -rpath flag with a separated argument.
19869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19870
19871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19872 # resulting binary.
19873 hardcode_direct=$hardcode_direct_CXX
19874
19875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19876 # resulting binary.
19877 hardcode_minus_L=$hardcode_minus_L_CXX
19878
19879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19880 # the resulting binary.
19881 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19882
19883 # Set to yes if building a shared library automatically hardcodes DIR into the library
19884 # and all subsequent libraries and executables linked against it.
19885 hardcode_automatic=$hardcode_automatic_CXX
19886
19887 # Variables whose values should be saved in libtool wrapper scripts and
19888 # restored at relink time.
19889 variables_saved_for_relink="$variables_saved_for_relink"
19890
19891 # Whether libtool must link a program against all its dependency libraries.
19892 link_all_deplibs=$link_all_deplibs_CXX
19893
19894 # Compile-time system search path for libraries
19895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19896
19897 # Run-time system search path for libraries
19898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19899
19900 # Fix the shell variable \$srcfile for the compiler.
19901 fix_srcfile_path="$fix_srcfile_path_CXX"
19902
19903 # Set to yes if exported symbols are required.
19904 always_export_symbols=$always_export_symbols_CXX
19905
19906 # The commands to list exported symbols.
19907 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19908
19909 # The commands to extract the exported symbol list from a shared archive.
19910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19911
19912 # Symbols that should not be listed in the preloaded symbols.
19913 exclude_expsyms=$lt_exclude_expsyms_CXX
19914
19915 # Symbols that must always be exported.
19916 include_expsyms=$lt_include_expsyms_CXX
19917
19918 # ### END LIBTOOL TAG CONFIG: $tagname
19919
19920 __EOF__
19921
19922
19923 else
19924   # If there is no Makefile yet, we rely on a make rule to execute
19925   # `config.status --recheck' to rerun these tests and create the
19926   # libtool script then.
19927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19928   if test -f "$ltmain_in"; then
19929     test -f Makefile && make "$ltmain"
19930   fi
19931 fi
19932
19933
19934 ac_ext=c
19935 ac_cpp='$CPP $CPPFLAGS'
19936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19939
19940 CC=$lt_save_CC
19941 LDCXX=$LD
19942 LD=$lt_save_LD
19943 GCC=$lt_save_GCC
19944 with_gnu_ldcxx=$with_gnu_ld
19945 with_gnu_ld=$lt_save_with_gnu_ld
19946 lt_cv_path_LDCXX=$lt_cv_path_LD
19947 lt_cv_path_LD=$lt_save_path_LD
19948 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19949 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19950
19951         else
19952           tagname=""
19953         fi
19954         ;;
19955
19956       F77)
19957         if test -n "$F77" && test "X$F77" != "Xno"; then
19958
19959 ac_ext=f
19960 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19961 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19963
19964
19965 archive_cmds_need_lc_F77=no
19966 allow_undefined_flag_F77=
19967 always_export_symbols_F77=no
19968 archive_expsym_cmds_F77=
19969 export_dynamic_flag_spec_F77=
19970 hardcode_direct_F77=no
19971 hardcode_libdir_flag_spec_F77=
19972 hardcode_libdir_flag_spec_ld_F77=
19973 hardcode_libdir_separator_F77=
19974 hardcode_minus_L_F77=no
19975 hardcode_automatic_F77=no
19976 module_cmds_F77=
19977 module_expsym_cmds_F77=
19978 link_all_deplibs_F77=unknown
19979 old_archive_cmds_F77=$old_archive_cmds
19980 no_undefined_flag_F77=
19981 whole_archive_flag_spec_F77=
19982 enable_shared_with_static_runtimes_F77=no
19983
19984 # Source file extension for f77 test sources.
19985 ac_ext=f
19986
19987 # Object file extension for compiled f77 test sources.
19988 objext=o
19989 objext_F77=$objext
19990
19991 # Code to be used in simple compile tests
19992 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19993
19994 # Code to be used in simple link tests
19995 lt_simple_link_test_code="      program t\n      end\n"
19996
19997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19998
19999 # If no C compiler was specified, use CC.
20000 LTCC=${LTCC-"$CC"}
20001
20002 # If no C compiler flags were specified, use CFLAGS.
20003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20004
20005 # Allow CC to be a program name with arguments.
20006 compiler=$CC
20007
20008
20009 # save warnings/boilerplate of simple test code
20010 ac_outfile=conftest.$ac_objext
20011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20013 _lt_compiler_boilerplate=`cat conftest.err`
20014 $rm conftest*
20015
20016 ac_outfile=conftest.$ac_objext
20017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20019 _lt_linker_boilerplate=`cat conftest.err`
20020 $rm conftest*
20021
20022
20023 # Allow CC to be a program name with arguments.
20024 lt_save_CC="$CC"
20025 CC=${F77-"f77"}
20026 compiler=$CC
20027 compiler_F77=$CC
20028 for cc_temp in $compiler""; do
20029   case $cc_temp in
20030     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20031     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20032     \-*) ;;
20033     *) break;;
20034   esac
20035 done
20036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20037
20038
20039 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20040 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20041 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20042 echo "${ECHO_T}$can_build_shared" >&6; }
20043
20044 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20045 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20046 test "$can_build_shared" = "no" && enable_shared=no
20047
20048 # On AIX, shared libraries and static libraries use the same namespace, and
20049 # are all built from PIC.
20050 case $host_os in
20051 aix3*)
20052   test "$enable_shared" = yes && enable_static=no
20053   if test -n "$RANLIB"; then
20054     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20055     postinstall_cmds='$RANLIB $lib'
20056   fi
20057   ;;
20058 aix4* | aix5*)
20059   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20060     test "$enable_shared" = yes && enable_static=no
20061   fi
20062   ;;
20063 esac
20064 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20065 echo "${ECHO_T}$enable_shared" >&6; }
20066
20067 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20068 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20069 # Make sure either enable_shared or enable_static is yes.
20070 test "$enable_shared" = yes || enable_static=yes
20071 { echo "$as_me:$LINENO: result: $enable_static" >&5
20072 echo "${ECHO_T}$enable_static" >&6; }
20073
20074 GCC_F77="$G77"
20075 LD_F77="$LD"
20076
20077 lt_prog_compiler_wl_F77=
20078 lt_prog_compiler_pic_F77=
20079 lt_prog_compiler_static_F77=
20080
20081 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20082 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20083
20084   if test "$GCC" = yes; then
20085     lt_prog_compiler_wl_F77='-Wl,'
20086     lt_prog_compiler_static_F77='-static'
20087
20088     case $host_os in
20089       aix*)
20090       # All AIX code is PIC.
20091       if test "$host_cpu" = ia64; then
20092         # AIX 5 now supports IA64 processor
20093         lt_prog_compiler_static_F77='-Bstatic'
20094       fi
20095       ;;
20096
20097     amigaos*)
20098       # FIXME: we need at least 68020 code to build shared libraries, but
20099       # adding the `-m68020' flag to GCC prevents building anything better,
20100       # like `-m68040'.
20101       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20102       ;;
20103
20104     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20105       # PIC is the default for these OSes.
20106       ;;
20107
20108     mingw* | pw32* | os2*)
20109       # This hack is so that the source file can tell whether it is being
20110       # built for inclusion in a dll (and should export symbols for example).
20111       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20112       ;;
20113
20114     darwin* | rhapsody*)
20115       # PIC is the default on this platform
20116       # Common symbols not allowed in MH_DYLIB files
20117       lt_prog_compiler_pic_F77='-fno-common'
20118       ;;
20119
20120     interix3*)
20121       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20122       # Instead, we relocate shared libraries at runtime.
20123       ;;
20124
20125     msdosdjgpp*)
20126       # Just because we use GCC doesn't mean we suddenly get shared libraries
20127       # on systems that don't support them.
20128       lt_prog_compiler_can_build_shared_F77=no
20129       enable_shared=no
20130       ;;
20131
20132     sysv4*MP*)
20133       if test -d /usr/nec; then
20134         lt_prog_compiler_pic_F77=-Kconform_pic
20135       fi
20136       ;;
20137
20138     hpux*)
20139       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20140       # not for PA HP-UX.
20141       case $host_cpu in
20142       hppa*64*|ia64*)
20143         # +Z the default
20144         ;;
20145       *)
20146         lt_prog_compiler_pic_F77='-fPIC'
20147         ;;
20148       esac
20149       ;;
20150
20151     *)
20152       lt_prog_compiler_pic_F77='-fPIC'
20153       ;;
20154     esac
20155   else
20156     # PORTME Check for flag to pass linker flags through the system compiler.
20157     case $host_os in
20158     aix*)
20159       lt_prog_compiler_wl_F77='-Wl,'
20160       if test "$host_cpu" = ia64; then
20161         # AIX 5 now supports IA64 processor
20162         lt_prog_compiler_static_F77='-Bstatic'
20163       else
20164         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20165       fi
20166       ;;
20167       darwin*)
20168         # PIC is the default on this platform
20169         # Common symbols not allowed in MH_DYLIB files
20170        case $cc_basename in
20171          xlc*)
20172          lt_prog_compiler_pic_F77='-qnocommon'
20173          lt_prog_compiler_wl_F77='-Wl,'
20174          ;;
20175        esac
20176        ;;
20177
20178     mingw* | pw32* | os2*)
20179       # This hack is so that the source file can tell whether it is being
20180       # built for inclusion in a dll (and should export symbols for example).
20181       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20182       ;;
20183
20184     hpux9* | hpux10* | hpux11*)
20185       lt_prog_compiler_wl_F77='-Wl,'
20186       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20187       # not for PA HP-UX.
20188       case $host_cpu in
20189       hppa*64*|ia64*)
20190         # +Z the default
20191         ;;
20192       *)
20193         lt_prog_compiler_pic_F77='+Z'
20194         ;;
20195       esac
20196       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20197       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20198       ;;
20199
20200     irix5* | irix6* | nonstopux*)
20201       lt_prog_compiler_wl_F77='-Wl,'
20202       # PIC (with -KPIC) is the default.
20203       lt_prog_compiler_static_F77='-non_shared'
20204       ;;
20205
20206     newsos6)
20207       lt_prog_compiler_pic_F77='-KPIC'
20208       lt_prog_compiler_static_F77='-Bstatic'
20209       ;;
20210
20211     linux*)
20212       case $cc_basename in
20213       icc* | ecc*)
20214         lt_prog_compiler_wl_F77='-Wl,'
20215         lt_prog_compiler_pic_F77='-KPIC'
20216         lt_prog_compiler_static_F77='-static'
20217         ;;
20218       pgcc* | pgf77* | pgf90* | pgf95*)
20219         # Portland Group compilers (*not* the Pentium gcc compiler,
20220         # which looks to be a dead project)
20221         lt_prog_compiler_wl_F77='-Wl,'
20222         lt_prog_compiler_pic_F77='-fpic'
20223         lt_prog_compiler_static_F77='-Bstatic'
20224         ;;
20225       ccc*)
20226         lt_prog_compiler_wl_F77='-Wl,'
20227         # All Alpha code is PIC.
20228         lt_prog_compiler_static_F77='-non_shared'
20229         ;;
20230       esac
20231       ;;
20232
20233     osf3* | osf4* | osf5*)
20234       lt_prog_compiler_wl_F77='-Wl,'
20235       # All OSF/1 code is PIC.
20236       lt_prog_compiler_static_F77='-non_shared'
20237       ;;
20238
20239     solaris*)
20240       lt_prog_compiler_pic_F77='-KPIC'
20241       lt_prog_compiler_static_F77='-Bstatic'
20242       case $cc_basename in
20243       f77* | f90* | f95*)
20244         lt_prog_compiler_wl_F77='-Qoption ld ';;
20245       *)
20246         lt_prog_compiler_wl_F77='-Wl,';;
20247       esac
20248       ;;
20249
20250     sunos4*)
20251       lt_prog_compiler_wl_F77='-Qoption ld '
20252       lt_prog_compiler_pic_F77='-PIC'
20253       lt_prog_compiler_static_F77='-Bstatic'
20254       ;;
20255
20256     sysv4 | sysv4.2uw2* | sysv4.3*)
20257       lt_prog_compiler_wl_F77='-Wl,'
20258       lt_prog_compiler_pic_F77='-KPIC'
20259       lt_prog_compiler_static_F77='-Bstatic'
20260       ;;
20261
20262     sysv4*MP*)
20263       if test -d /usr/nec ;then
20264         lt_prog_compiler_pic_F77='-Kconform_pic'
20265         lt_prog_compiler_static_F77='-Bstatic'
20266       fi
20267       ;;
20268
20269     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20270       lt_prog_compiler_wl_F77='-Wl,'
20271       lt_prog_compiler_pic_F77='-KPIC'
20272       lt_prog_compiler_static_F77='-Bstatic'
20273       ;;
20274
20275     unicos*)
20276       lt_prog_compiler_wl_F77='-Wl,'
20277       lt_prog_compiler_can_build_shared_F77=no
20278       ;;
20279
20280     uts4*)
20281       lt_prog_compiler_pic_F77='-pic'
20282       lt_prog_compiler_static_F77='-Bstatic'
20283       ;;
20284
20285     *)
20286       lt_prog_compiler_can_build_shared_F77=no
20287       ;;
20288     esac
20289   fi
20290
20291 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20292 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20293
20294 #
20295 # Check to make sure the PIC flag actually works.
20296 #
20297 if test -n "$lt_prog_compiler_pic_F77"; then
20298
20299 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20300 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20301 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304   lt_prog_compiler_pic_works_F77=no
20305   ac_outfile=conftest.$ac_objext
20306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20307    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20308    # Insert the option either (1) after the last *FLAGS variable, or
20309    # (2) before a word containing "conftest.", or (3) at the end.
20310    # Note that $ac_compile itself does not contain backslashes and begins
20311    # with a dollar sign (not a hyphen), so the echo should work correctly.
20312    # The option is referenced via a variable to avoid confusing sed.
20313    lt_compile=`echo "$ac_compile" | $SED \
20314    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20316    -e 's:$: $lt_compiler_flag:'`
20317    (eval echo "\"\$as_me:20317: $lt_compile\"" >&5)
20318    (eval "$lt_compile" 2>conftest.err)
20319    ac_status=$?
20320    cat conftest.err >&5
20321    echo "$as_me:20321: \$? = $ac_status" >&5
20322    if (exit $ac_status) && test -s "$ac_outfile"; then
20323      # The compiler can only warn and ignore the option if not recognized
20324      # So say no if there are warnings other than the usual output.
20325      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20326      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20327      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20328        lt_prog_compiler_pic_works_F77=yes
20329      fi
20330    fi
20331    $rm conftest*
20332
20333 fi
20334 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20335 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20336
20337 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20338     case $lt_prog_compiler_pic_F77 in
20339      "" | " "*) ;;
20340      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20341      esac
20342 else
20343     lt_prog_compiler_pic_F77=
20344      lt_prog_compiler_can_build_shared_F77=no
20345 fi
20346
20347 fi
20348 case $host_os in
20349   # For platforms which do not support PIC, -DPIC is meaningless:
20350   *djgpp*)
20351     lt_prog_compiler_pic_F77=
20352     ;;
20353   *)
20354     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20355     ;;
20356 esac
20357
20358 #
20359 # Check to make sure the static flag actually works.
20360 #
20361 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20362 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20363 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20364 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367   lt_prog_compiler_static_works_F77=no
20368    save_LDFLAGS="$LDFLAGS"
20369    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20370    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20371    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20372      # The linker can only warn and ignore the option if not recognized
20373      # So say no if there are warnings
20374      if test -s conftest.err; then
20375        # Append any errors to the config.log.
20376        cat conftest.err 1>&5
20377        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20378        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20379        if diff conftest.exp conftest.er2 >/dev/null; then
20380          lt_prog_compiler_static_works_F77=yes
20381        fi
20382      else
20383        lt_prog_compiler_static_works_F77=yes
20384      fi
20385    fi
20386    $rm conftest*
20387    LDFLAGS="$save_LDFLAGS"
20388
20389 fi
20390 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20391 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20392
20393 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20394     :
20395 else
20396     lt_prog_compiler_static_F77=
20397 fi
20398
20399
20400 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20401 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20402 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20403   echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405   lt_cv_prog_compiler_c_o_F77=no
20406    $rm -r conftest 2>/dev/null
20407    mkdir conftest
20408    cd conftest
20409    mkdir out
20410    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20411
20412    lt_compiler_flag="-o out/conftest2.$ac_objext"
20413    # Insert the option either (1) after the last *FLAGS variable, or
20414    # (2) before a word containing "conftest.", or (3) at the end.
20415    # Note that $ac_compile itself does not contain backslashes and begins
20416    # with a dollar sign (not a hyphen), so the echo should work correctly.
20417    lt_compile=`echo "$ac_compile" | $SED \
20418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20420    -e 's:$: $lt_compiler_flag:'`
20421    (eval echo "\"\$as_me:20421: $lt_compile\"" >&5)
20422    (eval "$lt_compile" 2>out/conftest.err)
20423    ac_status=$?
20424    cat out/conftest.err >&5
20425    echo "$as_me:20425: \$? = $ac_status" >&5
20426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20427    then
20428      # The compiler can only warn and ignore the option if not recognized
20429      # So say no if there are warnings
20430      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20431      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20432      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20433        lt_cv_prog_compiler_c_o_F77=yes
20434      fi
20435    fi
20436    chmod u+w . 2>&5
20437    $rm conftest*
20438    # SGI C++ compiler will create directory out/ii_files/ for
20439    # template instantiation
20440    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20441    $rm out/* && rmdir out
20442    cd ..
20443    rmdir conftest
20444    $rm conftest*
20445
20446 fi
20447 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20448 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20449
20450
20451 hard_links="nottested"
20452 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20453   # do not overwrite the value of need_locks provided by the user
20454   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20455 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20456   hard_links=yes
20457   $rm conftest*
20458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20459   touch conftest.a
20460   ln conftest.a conftest.b 2>&5 || hard_links=no
20461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20462   { echo "$as_me:$LINENO: result: $hard_links" >&5
20463 echo "${ECHO_T}$hard_links" >&6; }
20464   if test "$hard_links" = no; then
20465     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20466 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20467     need_locks=warn
20468   fi
20469 else
20470   need_locks=no
20471 fi
20472
20473 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20475
20476   runpath_var=
20477   allow_undefined_flag_F77=
20478   enable_shared_with_static_runtimes_F77=no
20479   archive_cmds_F77=
20480   archive_expsym_cmds_F77=
20481   old_archive_From_new_cmds_F77=
20482   old_archive_from_expsyms_cmds_F77=
20483   export_dynamic_flag_spec_F77=
20484   whole_archive_flag_spec_F77=
20485   thread_safe_flag_spec_F77=
20486   hardcode_libdir_flag_spec_F77=
20487   hardcode_libdir_flag_spec_ld_F77=
20488   hardcode_libdir_separator_F77=
20489   hardcode_direct_F77=no
20490   hardcode_minus_L_F77=no
20491   hardcode_shlibpath_var_F77=unsupported
20492   link_all_deplibs_F77=unknown
20493   hardcode_automatic_F77=no
20494   module_cmds_F77=
20495   module_expsym_cmds_F77=
20496   always_export_symbols_F77=no
20497   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20498   # include_expsyms should be a list of space-separated symbols to be *always*
20499   # included in the symbol list
20500   include_expsyms_F77=
20501   # exclude_expsyms can be an extended regexp of symbols to exclude
20502   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20503   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20504   # as well as any symbol that contains `d'.
20505   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20506   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20507   # platforms (ab)use it in PIC code, but their linkers get confused if
20508   # the symbol is explicitly referenced.  Since portable code cannot
20509   # rely on this symbol name, it's probably fine to never include it in
20510   # preloaded symbol tables.
20511   extract_expsyms_cmds=
20512   # Just being paranoid about ensuring that cc_basename is set.
20513   for cc_temp in $compiler""; do
20514   case $cc_temp in
20515     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20516     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20517     \-*) ;;
20518     *) break;;
20519   esac
20520 done
20521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20522
20523   case $host_os in
20524   cygwin* | mingw* | pw32*)
20525     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20526     # When not using gcc, we currently assume that we are using
20527     # Microsoft Visual C++.
20528     if test "$GCC" != yes; then
20529       with_gnu_ld=no
20530     fi
20531     ;;
20532   interix*)
20533     # we just hope/assume this is gcc and not c89 (= MSVC++)
20534     with_gnu_ld=yes
20535     ;;
20536   openbsd*)
20537     with_gnu_ld=no
20538     ;;
20539   esac
20540
20541   ld_shlibs_F77=yes
20542   if test "$with_gnu_ld" = yes; then
20543     # If archive_cmds runs LD, not CC, wlarc should be empty
20544     wlarc='${wl}'
20545
20546     # Set some defaults for GNU ld with shared library support. These
20547     # are reset later if shared libraries are not supported. Putting them
20548     # here allows them to be overridden if necessary.
20549     runpath_var=LD_RUN_PATH
20550     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20551     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20552     # ancient GNU ld didn't support --whole-archive et. al.
20553     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20554         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20555       else
20556         whole_archive_flag_spec_F77=
20557     fi
20558     supports_anon_versioning=no
20559     case `$LD -v 2>/dev/null` in
20560       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20561       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20562       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20563       *\ 2.11.*) ;; # other 2.11 versions
20564       *) supports_anon_versioning=yes ;;
20565     esac
20566
20567     # See if GNU ld supports shared libraries.
20568     case $host_os in
20569     aix3* | aix4* | aix5*)
20570       # On AIX/PPC, the GNU linker is very broken
20571       if test "$host_cpu" != ia64; then
20572         ld_shlibs_F77=no
20573         cat <<EOF 1>&2
20574
20575 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20576 *** to be unable to reliably create shared libraries on AIX.
20577 *** Therefore, libtool is disabling shared libraries support.  If you
20578 *** really care for shared libraries, you may want to modify your PATH
20579 *** so that a non-GNU linker is found, and then restart.
20580
20581 EOF
20582       fi
20583       ;;
20584
20585     amigaos*)
20586       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)'
20587       hardcode_libdir_flag_spec_F77='-L$libdir'
20588       hardcode_minus_L_F77=yes
20589
20590       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20591       # that the semantics of dynamic libraries on AmigaOS, at least up
20592       # to version 4, is to share data among multiple programs linked
20593       # with the same dynamic library.  Since this doesn't match the
20594       # behavior of shared libraries on other platforms, we can't use
20595       # them.
20596       ld_shlibs_F77=no
20597       ;;
20598
20599     beos*)
20600       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20601         allow_undefined_flag_F77=unsupported
20602         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20603         # support --undefined.  This deserves some investigation.  FIXME
20604         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20605       else
20606         ld_shlibs_F77=no
20607       fi
20608       ;;
20609
20610     cygwin* | mingw* | pw32*)
20611       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20612       # as there is no search path for DLLs.
20613       hardcode_libdir_flag_spec_F77='-L$libdir'
20614       allow_undefined_flag_F77=unsupported
20615       always_export_symbols_F77=no
20616       enable_shared_with_static_runtimes_F77=yes
20617       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20618
20619       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20620         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20621         # If the export-symbols file already is a .def file (1st line
20622         # is EXPORTS), use it as is; otherwise, prepend...
20623         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20624           cp $export_symbols $output_objdir/$soname.def;
20625         else
20626           echo EXPORTS > $output_objdir/$soname.def;
20627           cat $export_symbols >> $output_objdir/$soname.def;
20628         fi~
20629         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20630       else
20631         ld_shlibs_F77=no
20632       fi
20633       ;;
20634
20635     interix3*)
20636       hardcode_direct_F77=no
20637       hardcode_shlibpath_var_F77=no
20638       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20639       export_dynamic_flag_spec_F77='${wl}-E'
20640       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20641       # Instead, shared libraries are loaded at an image base (0x10000000 by
20642       # default) and relocated if they conflict, which is a slow very memory
20643       # consuming and fragmenting process.  To avoid this, we pick a random,
20644       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20645       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20646       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'
20647       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'
20648       ;;
20649
20650     linux*)
20651       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20652         tmp_addflag=
20653         case $cc_basename,$host_cpu in
20654         pgcc*)                          # Portland Group C compiler
20655           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'
20656           tmp_addflag=' $pic_flag'
20657           ;;
20658         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20659           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'
20660           tmp_addflag=' $pic_flag -Mnomain' ;;
20661         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20662           tmp_addflag=' -i_dynamic' ;;
20663         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20664           tmp_addflag=' -i_dynamic -nofor_main' ;;
20665         ifc* | ifort*)                  # Intel Fortran compiler
20666           tmp_addflag=' -nofor_main' ;;
20667         esac
20668         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20669
20670         if test $supports_anon_versioning = yes; then
20671           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20672   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20673   $echo "local: *; };" >> $output_objdir/$libname.ver~
20674           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20675         fi
20676       else
20677         ld_shlibs_F77=no
20678       fi
20679       ;;
20680
20681     netbsd*)
20682       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20683         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20684         wlarc=
20685       else
20686         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20687         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20688       fi
20689       ;;
20690
20691     solaris*)
20692       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20693         ld_shlibs_F77=no
20694         cat <<EOF 1>&2
20695
20696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20697 *** create shared libraries on Solaris systems.  Therefore, libtool
20698 *** is disabling shared libraries support.  We urge you to upgrade GNU
20699 *** binutils to release 2.9.1 or newer.  Another option is to modify
20700 *** your PATH or compiler configuration so that the native linker is
20701 *** used, and then restart.
20702
20703 EOF
20704       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20705         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20706         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20707       else
20708         ld_shlibs_F77=no
20709       fi
20710       ;;
20711
20712     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20713       case `$LD -v 2>&1` in
20714         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20715         ld_shlibs_F77=no
20716         cat <<_LT_EOF 1>&2
20717
20718 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20719 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20720 *** is disabling shared libraries support.  We urge you to upgrade GNU
20721 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20722 *** your PATH or compiler configuration so that the native linker is
20723 *** used, and then restart.
20724
20725 _LT_EOF
20726         ;;
20727         *)
20728           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20729             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20730             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20731             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20732           else
20733             ld_shlibs_F77=no
20734           fi
20735         ;;
20736       esac
20737       ;;
20738
20739     sunos4*)
20740       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20741       wlarc=
20742       hardcode_direct_F77=yes
20743       hardcode_shlibpath_var_F77=no
20744       ;;
20745
20746     *)
20747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20748         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20749         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20750       else
20751         ld_shlibs_F77=no
20752       fi
20753       ;;
20754     esac
20755
20756     if test "$ld_shlibs_F77" = no; then
20757       runpath_var=
20758       hardcode_libdir_flag_spec_F77=
20759       export_dynamic_flag_spec_F77=
20760       whole_archive_flag_spec_F77=
20761     fi
20762   else
20763     # PORTME fill in a description of your system's linker (not GNU ld)
20764     case $host_os in
20765     aix3*)
20766       allow_undefined_flag_F77=unsupported
20767       always_export_symbols_F77=yes
20768       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'
20769       # Note: this linker hardcodes the directories in LIBPATH if there
20770       # are no directories specified by -L.
20771       hardcode_minus_L_F77=yes
20772       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20773         # Neither direct hardcoding nor static linking is supported with a
20774         # broken collect2.
20775         hardcode_direct_F77=unsupported
20776       fi
20777       ;;
20778
20779     aix4* | aix5*)
20780       if test "$host_cpu" = ia64; then
20781         # On IA64, the linker does run time linking by default, so we don't
20782         # have to do anything special.
20783         aix_use_runtimelinking=no
20784         exp_sym_flag='-Bexport'
20785         no_entry_flag=""
20786       else
20787         # If we're using GNU nm, then we don't want the "-C" option.
20788         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20789         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20790           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'
20791         else
20792           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'
20793         fi
20794         aix_use_runtimelinking=no
20795
20796         # Test if we are trying to use run time linking or normal
20797         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20798         # need to do runtime linking.
20799         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20800           for ld_flag in $LDFLAGS; do
20801           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20802             aix_use_runtimelinking=yes
20803             break
20804           fi
20805           done
20806           ;;
20807         esac
20808
20809         exp_sym_flag='-bexport'
20810         no_entry_flag='-bnoentry'
20811       fi
20812
20813       # When large executables or shared objects are built, AIX ld can
20814       # have problems creating the table of contents.  If linking a library
20815       # or program results in "error TOC overflow" add -mminimal-toc to
20816       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20817       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20818
20819       archive_cmds_F77=''
20820       hardcode_direct_F77=yes
20821       hardcode_libdir_separator_F77=':'
20822       link_all_deplibs_F77=yes
20823
20824       if test "$GCC" = yes; then
20825         case $host_os in aix4.[012]|aix4.[012].*)
20826         # We only want to do this on AIX 4.2 and lower, the check
20827         # below for broken collect2 doesn't work under 4.3+
20828           collect2name=`${CC} -print-prog-name=collect2`
20829           if test -f "$collect2name" && \
20830            strings "$collect2name" | grep resolve_lib_name >/dev/null
20831           then
20832           # We have reworked collect2
20833           hardcode_direct_F77=yes
20834           else
20835           # We have old collect2
20836           hardcode_direct_F77=unsupported
20837           # It fails to find uninstalled libraries when the uninstalled
20838           # path is not listed in the libpath.  Setting hardcode_minus_L
20839           # to unsupported forces relinking
20840           hardcode_minus_L_F77=yes
20841           hardcode_libdir_flag_spec_F77='-L$libdir'
20842           hardcode_libdir_separator_F77=
20843           fi
20844           ;;
20845         esac
20846         shared_flag='-shared'
20847         if test "$aix_use_runtimelinking" = yes; then
20848           shared_flag="$shared_flag "'${wl}-G'
20849         fi
20850       else
20851         # not using gcc
20852         if test "$host_cpu" = ia64; then
20853         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20854         # chokes on -Wl,-G. The following line is correct:
20855           shared_flag='-G'
20856         else
20857           if test "$aix_use_runtimelinking" = yes; then
20858             shared_flag='${wl}-G'
20859           else
20860             shared_flag='${wl}-bM:SRE'
20861           fi
20862         fi
20863       fi
20864
20865       # It seems that -bexpall does not export symbols beginning with
20866       # underscore (_), so it is better to generate a list of symbols to export.
20867       always_export_symbols_F77=yes
20868       if test "$aix_use_runtimelinking" = yes; then
20869         # Warning - without using the other runtime loading flags (-brtl),
20870         # -berok will link without error, but may produce a broken library.
20871         allow_undefined_flag_F77='-berok'
20872        # Determine the default libpath from the value encoded in an empty executable.
20873        cat >conftest.$ac_ext <<_ACEOF
20874       program main
20875
20876       end
20877 _ACEOF
20878 rm -f conftest.$ac_objext conftest$ac_exeext
20879 if { (ac_try="$ac_link"
20880 case "(($ac_try" in
20881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882   *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885   (eval "$ac_link") 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } && {
20892          test -z "$ac_f77_werror_flag" ||
20893          test ! -s conftest.err
20894        } && test -s conftest$ac_exeext &&
20895        $as_test_x conftest$ac_exeext; then
20896
20897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20898 }'`
20899 # Check for a 64-bit object if we didn't find anything.
20900 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; }
20901 }'`; fi
20902 else
20903   echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906
20907 fi
20908
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910       conftest$ac_exeext conftest.$ac_ext
20911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20912
20913        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20914         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"
20915        else
20916         if test "$host_cpu" = ia64; then
20917           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20918           allow_undefined_flag_F77="-z nodefs"
20919           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"
20920         else
20921          # Determine the default libpath from the value encoded in an empty executable.
20922          cat >conftest.$ac_ext <<_ACEOF
20923       program main
20924
20925       end
20926 _ACEOF
20927 rm -f conftest.$ac_objext conftest$ac_exeext
20928 if { (ac_try="$ac_link"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_link") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_f77_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest$ac_exeext &&
20944        $as_test_x conftest$ac_exeext; then
20945
20946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20947 }'`
20948 # Check for a 64-bit object if we didn't find anything.
20949 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; }
20950 }'`; fi
20951 else
20952   echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955
20956 fi
20957
20958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20959       conftest$ac_exeext conftest.$ac_ext
20960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20961
20962          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20963           # Warning - without using the other run time loading flags,
20964           # -berok will link without error, but may produce a broken library.
20965           no_undefined_flag_F77=' ${wl}-bernotok'
20966           allow_undefined_flag_F77=' ${wl}-berok'
20967           # Exported symbols can be pulled into shared objects from archives
20968           whole_archive_flag_spec_F77='$convenience'
20969           archive_cmds_need_lc_F77=yes
20970           # This is similar to how AIX traditionally builds its shared libraries.
20971           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'
20972         fi
20973       fi
20974       ;;
20975
20976     amigaos*)
20977       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)'
20978       hardcode_libdir_flag_spec_F77='-L$libdir'
20979       hardcode_minus_L_F77=yes
20980       # see comment about different semantics on the GNU ld section
20981       ld_shlibs_F77=no
20982       ;;
20983
20984     bsdi[45]*)
20985       export_dynamic_flag_spec_F77=-rdynamic
20986       ;;
20987
20988     cygwin* | mingw* | pw32*)
20989       # When not using gcc, we currently assume that we are using
20990       # Microsoft Visual C++.
20991       # hardcode_libdir_flag_spec is actually meaningless, as there is
20992       # no search path for DLLs.
20993       hardcode_libdir_flag_spec_F77=' '
20994       allow_undefined_flag_F77=unsupported
20995       # Tell ltmain to make .lib files, not .a files.
20996       libext=lib
20997       # Tell ltmain to make .dll files, not .so files.
20998       shrext_cmds=".dll"
20999       # FIXME: Setting linknames here is a bad hack.
21000       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21001       # The linker will automatically build a .lib file if we build a DLL.
21002       old_archive_From_new_cmds_F77='true'
21003       # FIXME: Should let the user specify the lib program.
21004       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21005       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21006       enable_shared_with_static_runtimes_F77=yes
21007       ;;
21008
21009     darwin* | rhapsody*)
21010       case $host_os in
21011         rhapsody* | darwin1.[012])
21012          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21013          ;;
21014        *) # Darwin 1.3 on
21015          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21016            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21017          else
21018            case ${MACOSX_DEPLOYMENT_TARGET} in
21019              10.[012])
21020                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21021                ;;
21022              10.*)
21023                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21024                ;;
21025            esac
21026          fi
21027          ;;
21028       esac
21029       archive_cmds_need_lc_F77=no
21030       hardcode_direct_F77=no
21031       hardcode_automatic_F77=yes
21032       hardcode_shlibpath_var_F77=unsupported
21033       whole_archive_flag_spec_F77=''
21034       link_all_deplibs_F77=yes
21035     if test "$GCC" = yes ; then
21036         output_verbose_link_cmd='echo'
21037         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21038       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21039       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21040       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}'
21041       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}'
21042     else
21043       case $cc_basename in
21044         xlc*)
21045          output_verbose_link_cmd='echo'
21046          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21047          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21048           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21049          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}'
21050           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}'
21051           ;;
21052        *)
21053          ld_shlibs_F77=no
21054           ;;
21055       esac
21056     fi
21057       ;;
21058
21059     dgux*)
21060       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21061       hardcode_libdir_flag_spec_F77='-L$libdir'
21062       hardcode_shlibpath_var_F77=no
21063       ;;
21064
21065     freebsd1*)
21066       ld_shlibs_F77=no
21067       ;;
21068
21069     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21070     # support.  Future versions do this automatically, but an explicit c++rt0.o
21071     # does not break anything, and helps significantly (at the cost of a little
21072     # extra space).
21073     freebsd2.2*)
21074       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21075       hardcode_libdir_flag_spec_F77='-R$libdir'
21076       hardcode_direct_F77=yes
21077       hardcode_shlibpath_var_F77=no
21078       ;;
21079
21080     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21081     freebsd2*)
21082       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21083       hardcode_direct_F77=yes
21084       hardcode_minus_L_F77=yes
21085       hardcode_shlibpath_var_F77=no
21086       ;;
21087
21088     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21089     freebsd* | kfreebsd*-gnu | dragonfly*)
21090       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21091       hardcode_libdir_flag_spec_F77='-R$libdir'
21092       hardcode_direct_F77=yes
21093       hardcode_shlibpath_var_F77=no
21094       ;;
21095
21096     hpux9*)
21097       if test "$GCC" = yes; then
21098         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'
21099       else
21100         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'
21101       fi
21102       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21103       hardcode_libdir_separator_F77=:
21104       hardcode_direct_F77=yes
21105
21106       # hardcode_minus_L: Not really in the search PATH,
21107       # but as the default location of the library.
21108       hardcode_minus_L_F77=yes
21109       export_dynamic_flag_spec_F77='${wl}-E'
21110       ;;
21111
21112     hpux10*)
21113       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21114         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21115       else
21116         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21117       fi
21118       if test "$with_gnu_ld" = no; then
21119         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21120         hardcode_libdir_separator_F77=:
21121
21122         hardcode_direct_F77=yes
21123         export_dynamic_flag_spec_F77='${wl}-E'
21124
21125         # hardcode_minus_L: Not really in the search PATH,
21126         # but as the default location of the library.
21127         hardcode_minus_L_F77=yes
21128       fi
21129       ;;
21130
21131     hpux11*)
21132       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21133         case $host_cpu in
21134         hppa*64*)
21135           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21136           ;;
21137         ia64*)
21138           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21139           ;;
21140         *)
21141           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21142           ;;
21143         esac
21144       else
21145         case $host_cpu in
21146         hppa*64*)
21147           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21148           ;;
21149         ia64*)
21150           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21151           ;;
21152         *)
21153           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21154           ;;
21155         esac
21156       fi
21157       if test "$with_gnu_ld" = no; then
21158         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21159         hardcode_libdir_separator_F77=:
21160
21161         case $host_cpu in
21162         hppa*64*|ia64*)
21163           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21164           hardcode_direct_F77=no
21165           hardcode_shlibpath_var_F77=no
21166           ;;
21167         *)
21168           hardcode_direct_F77=yes
21169           export_dynamic_flag_spec_F77='${wl}-E'
21170
21171           # hardcode_minus_L: Not really in the search PATH,
21172           # but as the default location of the library.
21173           hardcode_minus_L_F77=yes
21174           ;;
21175         esac
21176       fi
21177       ;;
21178
21179     irix5* | irix6* | nonstopux*)
21180       if test "$GCC" = yes; then
21181         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'
21182       else
21183         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'
21184         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21185       fi
21186       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21187       hardcode_libdir_separator_F77=:
21188       link_all_deplibs_F77=yes
21189       ;;
21190
21191     netbsd*)
21192       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21193         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21194       else
21195         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21196       fi
21197       hardcode_libdir_flag_spec_F77='-R$libdir'
21198       hardcode_direct_F77=yes
21199       hardcode_shlibpath_var_F77=no
21200       ;;
21201
21202     newsos6)
21203       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21204       hardcode_direct_F77=yes
21205       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21206       hardcode_libdir_separator_F77=:
21207       hardcode_shlibpath_var_F77=no
21208       ;;
21209
21210     openbsd*)
21211       hardcode_direct_F77=yes
21212       hardcode_shlibpath_var_F77=no
21213       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21214         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21215         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21216         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21217         export_dynamic_flag_spec_F77='${wl}-E'
21218       else
21219        case $host_os in
21220          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21221            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21222            hardcode_libdir_flag_spec_F77='-R$libdir'
21223            ;;
21224          *)
21225            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21226            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21227            ;;
21228        esac
21229       fi
21230       ;;
21231
21232     os2*)
21233       hardcode_libdir_flag_spec_F77='-L$libdir'
21234       hardcode_minus_L_F77=yes
21235       allow_undefined_flag_F77=unsupported
21236       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'
21237       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21238       ;;
21239
21240     osf3*)
21241       if test "$GCC" = yes; then
21242         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21243         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'
21244       else
21245         allow_undefined_flag_F77=' -expect_unresolved \*'
21246         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'
21247       fi
21248       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21249       hardcode_libdir_separator_F77=:
21250       ;;
21251
21252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21253       if test "$GCC" = yes; then
21254         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21255         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'
21256         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21257       else
21258         allow_undefined_flag_F77=' -expect_unresolved \*'
21259         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'
21260         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~
21261         $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'
21262
21263         # Both c and cxx compiler support -rpath directly
21264         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21265       fi
21266       hardcode_libdir_separator_F77=:
21267       ;;
21268
21269     solaris*)
21270       no_undefined_flag_F77=' -z text'
21271       if test "$GCC" = yes; then
21272         wlarc='${wl}'
21273         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21274         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21276       else
21277         wlarc=''
21278         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21279         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21280         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21281       fi
21282       hardcode_libdir_flag_spec_F77='-R$libdir'
21283       hardcode_shlibpath_var_F77=no
21284       case $host_os in
21285       solaris2.[0-5] | solaris2.[0-5].*) ;;
21286       *)
21287         # The compiler driver will combine linker options so we
21288         # cannot just pass the convience library names through
21289         # without $wl, iff we do not link with $LD.
21290         # Luckily, gcc supports the same syntax we need for Sun Studio.
21291         # Supported since Solaris 2.6 (maybe 2.5.1?)
21292         case $wlarc in
21293         '')
21294           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21295         *)
21296           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' ;;
21297         esac ;;
21298       esac
21299       link_all_deplibs_F77=yes
21300       ;;
21301
21302     sunos4*)
21303       if test "x$host_vendor" = xsequent; then
21304         # Use $CC to link under sequent, because it throws in some extra .o
21305         # files that make .init and .fini sections work.
21306         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21307       else
21308         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21309       fi
21310       hardcode_libdir_flag_spec_F77='-L$libdir'
21311       hardcode_direct_F77=yes
21312       hardcode_minus_L_F77=yes
21313       hardcode_shlibpath_var_F77=no
21314       ;;
21315
21316     sysv4)
21317       case $host_vendor in
21318         sni)
21319           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21320           hardcode_direct_F77=yes # is this really true???
21321         ;;
21322         siemens)
21323           ## LD is ld it makes a PLAMLIB
21324           ## CC just makes a GrossModule.
21325           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21326           reload_cmds_F77='$CC -r -o $output$reload_objs'
21327           hardcode_direct_F77=no
21328         ;;
21329         motorola)
21330           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21331           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21332         ;;
21333       esac
21334       runpath_var='LD_RUN_PATH'
21335       hardcode_shlibpath_var_F77=no
21336       ;;
21337
21338     sysv4.3*)
21339       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21340       hardcode_shlibpath_var_F77=no
21341       export_dynamic_flag_spec_F77='-Bexport'
21342       ;;
21343
21344     sysv4*MP*)
21345       if test -d /usr/nec; then
21346         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21347         hardcode_shlibpath_var_F77=no
21348         runpath_var=LD_RUN_PATH
21349         hardcode_runpath_var=yes
21350         ld_shlibs_F77=yes
21351       fi
21352       ;;
21353
21354     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21355       no_undefined_flag_F77='${wl}-z,text'
21356       archive_cmds_need_lc_F77=no
21357       hardcode_shlibpath_var_F77=no
21358       runpath_var='LD_RUN_PATH'
21359
21360       if test "$GCC" = yes; then
21361         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21362         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21363       else
21364         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21365         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21366       fi
21367       ;;
21368
21369     sysv5* | sco3.2v5* | sco5v6*)
21370       # Note: We can NOT use -z defs as we might desire, because we do not
21371       # link with -lc, and that would cause any symbols used from libc to
21372       # always be unresolved, which means just about no library would
21373       # ever link correctly.  If we're not using GNU ld we use -z text
21374       # though, which does catch some bad symbols but isn't as heavy-handed
21375       # as -z defs.
21376       no_undefined_flag_F77='${wl}-z,text'
21377       allow_undefined_flag_F77='${wl}-z,nodefs'
21378       archive_cmds_need_lc_F77=no
21379       hardcode_shlibpath_var_F77=no
21380       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21381       hardcode_libdir_separator_F77=':'
21382       link_all_deplibs_F77=yes
21383       export_dynamic_flag_spec_F77='${wl}-Bexport'
21384       runpath_var='LD_RUN_PATH'
21385
21386       if test "$GCC" = yes; then
21387         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21388         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21389       else
21390         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21391         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21392       fi
21393       ;;
21394
21395     uts4*)
21396       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21397       hardcode_libdir_flag_spec_F77='-L$libdir'
21398       hardcode_shlibpath_var_F77=no
21399       ;;
21400
21401     *)
21402       ld_shlibs_F77=no
21403       ;;
21404     esac
21405   fi
21406
21407 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21408 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21409 test "$ld_shlibs_F77" = no && can_build_shared=no
21410
21411 #
21412 # Do we need to explicitly link libc?
21413 #
21414 case "x$archive_cmds_need_lc_F77" in
21415 x|xyes)
21416   # Assume -lc should be added
21417   archive_cmds_need_lc_F77=yes
21418
21419   if test "$enable_shared" = yes && test "$GCC" = yes; then
21420     case $archive_cmds_F77 in
21421     *'~'*)
21422       # FIXME: we may have to deal with multi-command sequences.
21423       ;;
21424     '$CC '*)
21425       # Test whether the compiler implicitly links with -lc since on some
21426       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21427       # to ld, don't add -lc before -lgcc.
21428       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21430       $rm conftest*
21431       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21432
21433       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434   (eval $ac_compile) 2>&5
21435   ac_status=$?
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } 2>conftest.err; then
21438         soname=conftest
21439         lib=conftest
21440         libobjs=conftest.$ac_objext
21441         deplibs=
21442         wl=$lt_prog_compiler_wl_F77
21443         pic_flag=$lt_prog_compiler_pic_F77
21444         compiler_flags=-v
21445         linker_flags=-v
21446         verstring=
21447         output_objdir=.
21448         libname=conftest
21449         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21450         allow_undefined_flag_F77=
21451         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21452   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); }
21456         then
21457           archive_cmds_need_lc_F77=no
21458         else
21459           archive_cmds_need_lc_F77=yes
21460         fi
21461         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21462       else
21463         cat conftest.err 1>&5
21464       fi
21465       $rm conftest*
21466       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21467 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21468       ;;
21469     esac
21470   fi
21471   ;;
21472 esac
21473
21474 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21476 library_names_spec=
21477 libname_spec='lib$name'
21478 soname_spec=
21479 shrext_cmds=".so"
21480 postinstall_cmds=
21481 postuninstall_cmds=
21482 finish_cmds=
21483 finish_eval=
21484 shlibpath_var=
21485 shlibpath_overrides_runpath=unknown
21486 version_type=none
21487 dynamic_linker="$host_os ld.so"
21488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21489 if test "$GCC" = yes; then
21490   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21491   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21492     # if the path contains ";" then we assume it to be the separator
21493     # otherwise default to the standard path separator (i.e. ":") - it is
21494     # assumed that no part of a normal pathname contains ";" but that should
21495     # okay in the real world where ";" in dirpaths is itself problematic.
21496     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21497   else
21498     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21499   fi
21500 else
21501   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21502 fi
21503 need_lib_prefix=unknown
21504 hardcode_into_libs=no
21505
21506 # when you set need_version to no, make sure it does not cause -set_version
21507 # flags to be left without arguments
21508 need_version=unknown
21509
21510 case $host_os in
21511 aix3*)
21512   version_type=linux
21513   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21514   shlibpath_var=LIBPATH
21515
21516   # AIX 3 has no versioning support, so we append a major version to the name.
21517   soname_spec='${libname}${release}${shared_ext}$major'
21518   ;;
21519
21520 aix4* | aix5*)
21521   version_type=linux
21522   need_lib_prefix=no
21523   need_version=no
21524   hardcode_into_libs=yes
21525   if test "$host_cpu" = ia64; then
21526     # AIX 5 supports IA64
21527     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21528     shlibpath_var=LD_LIBRARY_PATH
21529   else
21530     # With GCC up to 2.95.x, collect2 would create an import file
21531     # for dependence libraries.  The import file would start with
21532     # the line `#! .'.  This would cause the generated library to
21533     # depend on `.', always an invalid library.  This was fixed in
21534     # development snapshots of GCC prior to 3.0.
21535     case $host_os in
21536       aix4 | aix4.[01] | aix4.[01].*)
21537       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21538            echo ' yes '
21539            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21540         :
21541       else
21542         can_build_shared=no
21543       fi
21544       ;;
21545     esac
21546     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21547     # soname into executable. Probably we can add versioning support to
21548     # collect2, so additional links can be useful in future.
21549     if test "$aix_use_runtimelinking" = yes; then
21550       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21551       # instead of lib<name>.a to let people know that these are not
21552       # typical AIX shared libraries.
21553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554     else
21555       # We preserve .a as extension for shared libraries through AIX4.2
21556       # and later when we are not doing run time linking.
21557       library_names_spec='${libname}${release}.a $libname.a'
21558       soname_spec='${libname}${release}${shared_ext}$major'
21559     fi
21560     shlibpath_var=LIBPATH
21561   fi
21562   ;;
21563
21564 amigaos*)
21565   library_names_spec='$libname.ixlibrary $libname.a'
21566   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21567   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'
21568   ;;
21569
21570 beos*)
21571   library_names_spec='${libname}${shared_ext}'
21572   dynamic_linker="$host_os ld.so"
21573   shlibpath_var=LIBRARY_PATH
21574   ;;
21575
21576 bsdi[45]*)
21577   version_type=linux
21578   need_version=no
21579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21580   soname_spec='${libname}${release}${shared_ext}$major'
21581   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21582   shlibpath_var=LD_LIBRARY_PATH
21583   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21584   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21585   # the default ld.so.conf also contains /usr/contrib/lib and
21586   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21587   # libtool to hard-code these into programs
21588   ;;
21589
21590 cygwin* | mingw* | pw32*)
21591   version_type=windows
21592   shrext_cmds=".dll"
21593   need_version=no
21594   need_lib_prefix=no
21595
21596   case $GCC,$host_os in
21597   yes,cygwin* | yes,mingw* | yes,pw32*)
21598     library_names_spec='$libname.dll.a'
21599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21600     postinstall_cmds='base_file=`basename \${file}`~
21601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21602       dldir=$destdir/`dirname \$dlpath`~
21603       test -d \$dldir || mkdir -p \$dldir~
21604       $install_prog $dir/$dlname \$dldir/$dlname~
21605       chmod a+x \$dldir/$dlname'
21606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21607       dlpath=$dir/\$dldll~
21608        $rm \$dlpath'
21609     shlibpath_overrides_runpath=yes
21610
21611     case $host_os in
21612     cygwin*)
21613       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21614       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21615       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21616       ;;
21617     mingw*)
21618       # MinGW DLLs use traditional 'lib' prefix
21619       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21620       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21621       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21622         # It is most probably a Windows format PATH printed by
21623         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21624         # path with ; separators, and with drive letters. We can handle the
21625         # drive letters (cygwin fileutils understands them), so leave them,
21626         # especially as we might pass files found there to a mingw objdump,
21627         # which wouldn't understand a cygwinified path. Ahh.
21628         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21629       else
21630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21631       fi
21632       ;;
21633     pw32*)
21634       # pw32 DLLs use 'pw' prefix rather than 'lib'
21635       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21636       ;;
21637     esac
21638     ;;
21639
21640   *)
21641     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21642     ;;
21643   esac
21644   dynamic_linker='Win32 ld.exe'
21645   # FIXME: first we should search . and the directory the executable is in
21646   shlibpath_var=PATH
21647   ;;
21648
21649 darwin* | rhapsody*)
21650   dynamic_linker="$host_os dyld"
21651   version_type=darwin
21652   need_lib_prefix=no
21653   need_version=no
21654   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21655   soname_spec='${libname}${release}${major}$shared_ext'
21656   shlibpath_overrides_runpath=yes
21657   shlibpath_var=DYLD_LIBRARY_PATH
21658   shrext_cmds='.dylib'
21659   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21660   if test "$GCC" = yes; then
21661     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"`
21662   else
21663     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21664   fi
21665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21666   ;;
21667
21668 dgux*)
21669   version_type=linux
21670   need_lib_prefix=no
21671   need_version=no
21672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21673   soname_spec='${libname}${release}${shared_ext}$major'
21674   shlibpath_var=LD_LIBRARY_PATH
21675   ;;
21676
21677 freebsd1*)
21678   dynamic_linker=no
21679   ;;
21680
21681 kfreebsd*-gnu)
21682   version_type=linux
21683   need_lib_prefix=no
21684   need_version=no
21685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21686   soname_spec='${libname}${release}${shared_ext}$major'
21687   shlibpath_var=LD_LIBRARY_PATH
21688   shlibpath_overrides_runpath=no
21689   hardcode_into_libs=yes
21690   dynamic_linker='GNU ld.so'
21691   ;;
21692
21693 freebsd* | dragonfly*)
21694   # DragonFly does not have aout.  When/if they implement a new
21695   # versioning mechanism, adjust this.
21696   if test -x /usr/bin/objformat; then
21697     objformat=`/usr/bin/objformat`
21698   else
21699     case $host_os in
21700     freebsd[123]*) objformat=aout ;;
21701     *) objformat=elf ;;
21702     esac
21703   fi
21704   version_type=freebsd-$objformat
21705   case $version_type in
21706     freebsd-elf*)
21707       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21708       need_version=no
21709       need_lib_prefix=no
21710       ;;
21711     freebsd-*)
21712       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21713       need_version=yes
21714       ;;
21715   esac
21716   shlibpath_var=LD_LIBRARY_PATH
21717   case $host_os in
21718   freebsd2*)
21719     shlibpath_overrides_runpath=yes
21720     ;;
21721   freebsd3.[01]* | freebsdelf3.[01]*)
21722     shlibpath_overrides_runpath=yes
21723     hardcode_into_libs=yes
21724     ;;
21725   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21726   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21727     shlibpath_overrides_runpath=no
21728     hardcode_into_libs=yes
21729     ;;
21730   freebsd*) # from 4.6 on
21731     shlibpath_overrides_runpath=yes
21732     hardcode_into_libs=yes
21733     ;;
21734   esac
21735   ;;
21736
21737 gnu*)
21738   version_type=linux
21739   need_lib_prefix=no
21740   need_version=no
21741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21742   soname_spec='${libname}${release}${shared_ext}$major'
21743   shlibpath_var=LD_LIBRARY_PATH
21744   hardcode_into_libs=yes
21745   ;;
21746
21747 hpux9* | hpux10* | hpux11*)
21748   # Give a soname corresponding to the major version so that dld.sl refuses to
21749   # link against other versions.
21750   version_type=sunos
21751   need_lib_prefix=no
21752   need_version=no
21753   case $host_cpu in
21754   ia64*)
21755     shrext_cmds='.so'
21756     hardcode_into_libs=yes
21757     dynamic_linker="$host_os dld.so"
21758     shlibpath_var=LD_LIBRARY_PATH
21759     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21761     soname_spec='${libname}${release}${shared_ext}$major'
21762     if test "X$HPUX_IA64_MODE" = X32; then
21763       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21764     else
21765       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21766     fi
21767     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21768     ;;
21769    hppa*64*)
21770      shrext_cmds='.sl'
21771      hardcode_into_libs=yes
21772      dynamic_linker="$host_os dld.sl"
21773      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21774      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21775      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776      soname_spec='${libname}${release}${shared_ext}$major'
21777      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21778      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21779      ;;
21780    *)
21781     shrext_cmds='.sl'
21782     dynamic_linker="$host_os dld.sl"
21783     shlibpath_var=SHLIB_PATH
21784     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21786     soname_spec='${libname}${release}${shared_ext}$major'
21787     ;;
21788   esac
21789   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21790   postinstall_cmds='chmod 555 $lib'
21791   ;;
21792
21793 interix3*)
21794   version_type=linux
21795   need_lib_prefix=no
21796   need_version=no
21797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21798   soname_spec='${libname}${release}${shared_ext}$major'
21799   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21800   shlibpath_var=LD_LIBRARY_PATH
21801   shlibpath_overrides_runpath=no
21802   hardcode_into_libs=yes
21803   ;;
21804
21805 irix5* | irix6* | nonstopux*)
21806   case $host_os in
21807     nonstopux*) version_type=nonstopux ;;
21808     *)
21809         if test "$lt_cv_prog_gnu_ld" = yes; then
21810                 version_type=linux
21811         else
21812                 version_type=irix
21813         fi ;;
21814   esac
21815   need_lib_prefix=no
21816   need_version=no
21817   soname_spec='${libname}${release}${shared_ext}$major'
21818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21819   case $host_os in
21820   irix5* | nonstopux*)
21821     libsuff= shlibsuff=
21822     ;;
21823   *)
21824     case $LD in # libtool.m4 will add one of these switches to LD
21825     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21826       libsuff= shlibsuff= libmagic=32-bit;;
21827     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21828       libsuff=32 shlibsuff=N32 libmagic=N32;;
21829     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21830       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21831     *) libsuff= shlibsuff= libmagic=never-match;;
21832     esac
21833     ;;
21834   esac
21835   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21836   shlibpath_overrides_runpath=no
21837   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21838   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21839   hardcode_into_libs=yes
21840   ;;
21841
21842 # No shared lib support for Linux oldld, aout, or coff.
21843 linux*oldld* | linux*aout* | linux*coff*)
21844   dynamic_linker=no
21845   ;;
21846
21847 # This must be Linux ELF.
21848 linux*)
21849   version_type=linux
21850   need_lib_prefix=no
21851   need_version=no
21852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21853   soname_spec='${libname}${release}${shared_ext}$major'
21854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21855   shlibpath_var=LD_LIBRARY_PATH
21856   shlibpath_overrides_runpath=no
21857   # This implies no fast_install, which is unacceptable.
21858   # Some rework will be needed to allow for fast_install
21859   # before this can be enabled.
21860   hardcode_into_libs=yes
21861
21862   # Append ld.so.conf contents to the search path
21863   if test -f /etc/ld.so.conf; then
21864     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' ' '`
21865     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21866   fi
21867
21868   # We used to test for /lib/ld.so.1 and disable shared libraries on
21869   # powerpc, because MkLinux only supported shared libraries with the
21870   # GNU dynamic linker.  Since this was broken with cross compilers,
21871   # most powerpc-linux boxes support dynamic linking these days and
21872   # people can always --disable-shared, the test was removed, and we
21873   # assume the GNU/Linux dynamic linker is in use.
21874   dynamic_linker='GNU/Linux ld.so'
21875   ;;
21876
21877 knetbsd*-gnu)
21878   version_type=linux
21879   need_lib_prefix=no
21880   need_version=no
21881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21882   soname_spec='${libname}${release}${shared_ext}$major'
21883   shlibpath_var=LD_LIBRARY_PATH
21884   shlibpath_overrides_runpath=no
21885   hardcode_into_libs=yes
21886   dynamic_linker='GNU ld.so'
21887   ;;
21888
21889 netbsd*)
21890   version_type=sunos
21891   need_lib_prefix=no
21892   need_version=no
21893   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21895     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21896     dynamic_linker='NetBSD (a.out) ld.so'
21897   else
21898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21899     soname_spec='${libname}${release}${shared_ext}$major'
21900     dynamic_linker='NetBSD ld.elf_so'
21901   fi
21902   shlibpath_var=LD_LIBRARY_PATH
21903   shlibpath_overrides_runpath=yes
21904   hardcode_into_libs=yes
21905   ;;
21906
21907 newsos6)
21908   version_type=linux
21909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21910   shlibpath_var=LD_LIBRARY_PATH
21911   shlibpath_overrides_runpath=yes
21912   ;;
21913
21914 nto-qnx*)
21915   version_type=linux
21916   need_lib_prefix=no
21917   need_version=no
21918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21919   soname_spec='${libname}${release}${shared_ext}$major'
21920   shlibpath_var=LD_LIBRARY_PATH
21921   shlibpath_overrides_runpath=yes
21922   ;;
21923
21924 openbsd*)
21925   version_type=sunos
21926   sys_lib_dlsearch_path_spec="/usr/lib"
21927   need_lib_prefix=no
21928   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21929   case $host_os in
21930     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21931     *)                         need_version=no  ;;
21932   esac
21933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21935   shlibpath_var=LD_LIBRARY_PATH
21936   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21937     case $host_os in
21938       openbsd2.[89] | openbsd2.[89].*)
21939         shlibpath_overrides_runpath=no
21940         ;;
21941       *)
21942         shlibpath_overrides_runpath=yes
21943         ;;
21944       esac
21945   else
21946     shlibpath_overrides_runpath=yes
21947   fi
21948   ;;
21949
21950 os2*)
21951   libname_spec='$name'
21952   shrext_cmds=".dll"
21953   need_lib_prefix=no
21954   library_names_spec='$libname${shared_ext} $libname.a'
21955   dynamic_linker='OS/2 ld.exe'
21956   shlibpath_var=LIBPATH
21957   ;;
21958
21959 osf3* | osf4* | osf5*)
21960   version_type=osf
21961   need_lib_prefix=no
21962   need_version=no
21963   soname_spec='${libname}${release}${shared_ext}$major'
21964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21965   shlibpath_var=LD_LIBRARY_PATH
21966   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21967   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21968   ;;
21969
21970 solaris*)
21971   version_type=linux
21972   need_lib_prefix=no
21973   need_version=no
21974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21975   soname_spec='${libname}${release}${shared_ext}$major'
21976   shlibpath_var=LD_LIBRARY_PATH
21977   shlibpath_overrides_runpath=yes
21978   hardcode_into_libs=yes
21979   # ldd complains unless libraries are executable
21980   postinstall_cmds='chmod +x $lib'
21981   ;;
21982
21983 sunos4*)
21984   version_type=sunos
21985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21986   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21987   shlibpath_var=LD_LIBRARY_PATH
21988   shlibpath_overrides_runpath=yes
21989   if test "$with_gnu_ld" = yes; then
21990     need_lib_prefix=no
21991   fi
21992   need_version=yes
21993   ;;
21994
21995 sysv4 | sysv4.3*)
21996   version_type=linux
21997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21998   soname_spec='${libname}${release}${shared_ext}$major'
21999   shlibpath_var=LD_LIBRARY_PATH
22000   case $host_vendor in
22001     sni)
22002       shlibpath_overrides_runpath=no
22003       need_lib_prefix=no
22004       export_dynamic_flag_spec='${wl}-Blargedynsym'
22005       runpath_var=LD_RUN_PATH
22006       ;;
22007     siemens)
22008       need_lib_prefix=no
22009       ;;
22010     motorola)
22011       need_lib_prefix=no
22012       need_version=no
22013       shlibpath_overrides_runpath=no
22014       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22015       ;;
22016   esac
22017   ;;
22018
22019 sysv4*MP*)
22020   if test -d /usr/nec ;then
22021     version_type=linux
22022     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22023     soname_spec='$libname${shared_ext}.$major'
22024     shlibpath_var=LD_LIBRARY_PATH
22025   fi
22026   ;;
22027
22028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22029   version_type=freebsd-elf
22030   need_lib_prefix=no
22031   need_version=no
22032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22033   soname_spec='${libname}${release}${shared_ext}$major'
22034   shlibpath_var=LD_LIBRARY_PATH
22035   hardcode_into_libs=yes
22036   if test "$with_gnu_ld" = yes; then
22037     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22038     shlibpath_overrides_runpath=no
22039   else
22040     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22041     shlibpath_overrides_runpath=yes
22042     case $host_os in
22043       sco3.2v5*)
22044         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22045         ;;
22046     esac
22047   fi
22048   sys_lib_dlsearch_path_spec='/usr/lib'
22049   ;;
22050
22051 uts4*)
22052   version_type=linux
22053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22054   soname_spec='${libname}${release}${shared_ext}$major'
22055   shlibpath_var=LD_LIBRARY_PATH
22056   ;;
22057
22058 *)
22059   dynamic_linker=no
22060   ;;
22061 esac
22062 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22063 echo "${ECHO_T}$dynamic_linker" >&6; }
22064 test "$dynamic_linker" = no && can_build_shared=no
22065
22066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22067 if test "$GCC" = yes; then
22068   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22069 fi
22070
22071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22073 hardcode_action_F77=
22074 if test -n "$hardcode_libdir_flag_spec_F77" || \
22075    test -n "$runpath_var_F77" || \
22076    test "X$hardcode_automatic_F77" = "Xyes" ; then
22077
22078   # We can hardcode non-existant directories.
22079   if test "$hardcode_direct_F77" != no &&
22080      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22081      # have to relink, otherwise we might link with an installed library
22082      # when we should be linking with a yet-to-be-installed one
22083      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22084      test "$hardcode_minus_L_F77" != no; then
22085     # Linking always hardcodes the temporary library directory.
22086     hardcode_action_F77=relink
22087   else
22088     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22089     hardcode_action_F77=immediate
22090   fi
22091 else
22092   # We cannot hardcode anything, or else we can only hardcode existing
22093   # directories.
22094   hardcode_action_F77=unsupported
22095 fi
22096 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22097 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22098
22099 if test "$hardcode_action_F77" = relink; then
22100   # Fast installation is not supported
22101   enable_fast_install=no
22102 elif test "$shlibpath_overrides_runpath" = yes ||
22103      test "$enable_shared" = no; then
22104   # Fast installation is not necessary
22105   enable_fast_install=needless
22106 fi
22107
22108
22109 # The else clause should only fire when bootstrapping the
22110 # libtool distribution, otherwise you forgot to ship ltmain.sh
22111 # with your package, and you will get complaints that there are
22112 # no rules to generate ltmain.sh.
22113 if test -f "$ltmain"; then
22114   # See if we are running on zsh, and set the options which allow our commands through
22115   # without removal of \ escapes.
22116   if test -n "${ZSH_VERSION+set}" ; then
22117     setopt NO_GLOB_SUBST
22118   fi
22119   # Now quote all the things that may contain metacharacters while being
22120   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22121   # variables and quote the copies for generation of the libtool script.
22122   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22123     SED SHELL STRIP \
22124     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22125     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22126     deplibs_check_method reload_flag reload_cmds need_locks \
22127     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22128     lt_cv_sys_global_symbol_to_c_name_address \
22129     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22130     old_postinstall_cmds old_postuninstall_cmds \
22131     compiler_F77 \
22132     CC_F77 \
22133     LD_F77 \
22134     lt_prog_compiler_wl_F77 \
22135     lt_prog_compiler_pic_F77 \
22136     lt_prog_compiler_static_F77 \
22137     lt_prog_compiler_no_builtin_flag_F77 \
22138     export_dynamic_flag_spec_F77 \
22139     thread_safe_flag_spec_F77 \
22140     whole_archive_flag_spec_F77 \
22141     enable_shared_with_static_runtimes_F77 \
22142     old_archive_cmds_F77 \
22143     old_archive_from_new_cmds_F77 \
22144     predep_objects_F77 \
22145     postdep_objects_F77 \
22146     predeps_F77 \
22147     postdeps_F77 \
22148     compiler_lib_search_path_F77 \
22149     archive_cmds_F77 \
22150     archive_expsym_cmds_F77 \
22151     postinstall_cmds_F77 \
22152     postuninstall_cmds_F77 \
22153     old_archive_from_expsyms_cmds_F77 \
22154     allow_undefined_flag_F77 \
22155     no_undefined_flag_F77 \
22156     export_symbols_cmds_F77 \
22157     hardcode_libdir_flag_spec_F77 \
22158     hardcode_libdir_flag_spec_ld_F77 \
22159     hardcode_libdir_separator_F77 \
22160     hardcode_automatic_F77 \
22161     module_cmds_F77 \
22162     module_expsym_cmds_F77 \
22163     lt_cv_prog_compiler_c_o_F77 \
22164     exclude_expsyms_F77 \
22165     include_expsyms_F77; do
22166
22167     case $var in
22168     old_archive_cmds_F77 | \
22169     old_archive_from_new_cmds_F77 | \
22170     archive_cmds_F77 | \
22171     archive_expsym_cmds_F77 | \
22172     module_cmds_F77 | \
22173     module_expsym_cmds_F77 | \
22174     old_archive_from_expsyms_cmds_F77 | \
22175     export_symbols_cmds_F77 | \
22176     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22177     postinstall_cmds | postuninstall_cmds | \
22178     old_postinstall_cmds | old_postuninstall_cmds | \
22179     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22180       # Double-quote double-evaled strings.
22181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22182       ;;
22183     *)
22184       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22185       ;;
22186     esac
22187   done
22188
22189   case $lt_echo in
22190   *'\$0 --fallback-echo"')
22191     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22192     ;;
22193   esac
22194
22195 cfgfile="$ofile"
22196
22197   cat <<__EOF__ >> "$cfgfile"
22198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22199
22200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22201
22202 # Shell to use when invoking shell scripts.
22203 SHELL=$lt_SHELL
22204
22205 # Whether or not to build shared libraries.
22206 build_libtool_libs=$enable_shared
22207
22208 # Whether or not to build static libraries.
22209 build_old_libs=$enable_static
22210
22211 # Whether or not to add -lc for building shared libraries.
22212 build_libtool_need_lc=$archive_cmds_need_lc_F77
22213
22214 # Whether or not to disallow shared libs when runtime libs are static
22215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22216
22217 # Whether or not to optimize for fast installation.
22218 fast_install=$enable_fast_install
22219
22220 # The host system.
22221 host_alias=$host_alias
22222 host=$host
22223 host_os=$host_os
22224
22225 # The build system.
22226 build_alias=$build_alias
22227 build=$build
22228 build_os=$build_os
22229
22230 # An echo program that does not interpret backslashes.
22231 echo=$lt_echo
22232
22233 # The archiver.
22234 AR=$lt_AR
22235 AR_FLAGS=$lt_AR_FLAGS
22236
22237 # A C compiler.
22238 LTCC=$lt_LTCC
22239
22240 # LTCC compiler flags.
22241 LTCFLAGS=$lt_LTCFLAGS
22242
22243 # A language-specific compiler.
22244 CC=$lt_compiler_F77
22245
22246 # Is the compiler the GNU C compiler?
22247 with_gcc=$GCC_F77
22248
22249 # An ERE matcher.
22250 EGREP=$lt_EGREP
22251
22252 # The linker used to build libraries.
22253 LD=$lt_LD_F77
22254
22255 # Whether we need hard or soft links.
22256 LN_S=$lt_LN_S
22257
22258 # A BSD-compatible nm program.
22259 NM=$lt_NM
22260
22261 # A symbol stripping program
22262 STRIP=$lt_STRIP
22263
22264 # Used to examine libraries when file_magic_cmd begins "file"
22265 MAGIC_CMD=$MAGIC_CMD
22266
22267 # Used on cygwin: DLL creation program.
22268 DLLTOOL="$DLLTOOL"
22269
22270 # Used on cygwin: object dumper.
22271 OBJDUMP="$OBJDUMP"
22272
22273 # Used on cygwin: assembler.
22274 AS="$AS"
22275
22276 # The name of the directory that contains temporary libtool files.
22277 objdir=$objdir
22278
22279 # How to create reloadable object files.
22280 reload_flag=$lt_reload_flag
22281 reload_cmds=$lt_reload_cmds
22282
22283 # How to pass a linker flag through the compiler.
22284 wl=$lt_lt_prog_compiler_wl_F77
22285
22286 # Object file suffix (normally "o").
22287 objext="$ac_objext"
22288
22289 # Old archive suffix (normally "a").
22290 libext="$libext"
22291
22292 # Shared library suffix (normally ".so").
22293 shrext_cmds='$shrext_cmds'
22294
22295 # Executable file suffix (normally "").
22296 exeext="$exeext"
22297
22298 # Additional compiler flags for building library objects.
22299 pic_flag=$lt_lt_prog_compiler_pic_F77
22300 pic_mode=$pic_mode
22301
22302 # What is the maximum length of a command?
22303 max_cmd_len=$lt_cv_sys_max_cmd_len
22304
22305 # Does compiler simultaneously support -c and -o options?
22306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22307
22308 # Must we lock files when doing compilation?
22309 need_locks=$lt_need_locks
22310
22311 # Do we need the lib prefix for modules?
22312 need_lib_prefix=$need_lib_prefix
22313
22314 # Do we need a version for libraries?
22315 need_version=$need_version
22316
22317 # Whether dlopen is supported.
22318 dlopen_support=$enable_dlopen
22319
22320 # Whether dlopen of programs is supported.
22321 dlopen_self=$enable_dlopen_self
22322
22323 # Whether dlopen of statically linked programs is supported.
22324 dlopen_self_static=$enable_dlopen_self_static
22325
22326 # Compiler flag to prevent dynamic linking.
22327 link_static_flag=$lt_lt_prog_compiler_static_F77
22328
22329 # Compiler flag to turn off builtin functions.
22330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22331
22332 # Compiler flag to allow reflexive dlopens.
22333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22334
22335 # Compiler flag to generate shared objects directly from archives.
22336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22337
22338 # Compiler flag to generate thread-safe objects.
22339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22340
22341 # Library versioning type.
22342 version_type=$version_type
22343
22344 # Format of library name prefix.
22345 libname_spec=$lt_libname_spec
22346
22347 # List of archive names.  First name is the real one, the rest are links.
22348 # The last name is the one that the linker finds with -lNAME.
22349 library_names_spec=$lt_library_names_spec
22350
22351 # The coded name of the library, if different from the real name.
22352 soname_spec=$lt_soname_spec
22353
22354 # Commands used to build and install an old-style archive.
22355 RANLIB=$lt_RANLIB
22356 old_archive_cmds=$lt_old_archive_cmds_F77
22357 old_postinstall_cmds=$lt_old_postinstall_cmds
22358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22359
22360 # Create an old-style archive from a shared archive.
22361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22362
22363 # Create a temporary old-style archive to link instead of a shared archive.
22364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22365
22366 # Commands used to build and install a shared archive.
22367 archive_cmds=$lt_archive_cmds_F77
22368 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22369 postinstall_cmds=$lt_postinstall_cmds
22370 postuninstall_cmds=$lt_postuninstall_cmds
22371
22372 # Commands used to build a loadable module (assumed same as above if empty)
22373 module_cmds=$lt_module_cmds_F77
22374 module_expsym_cmds=$lt_module_expsym_cmds_F77
22375
22376 # Commands to strip libraries.
22377 old_striplib=$lt_old_striplib
22378 striplib=$lt_striplib
22379
22380 # Dependencies to place before the objects being linked to create a
22381 # shared library.
22382 predep_objects=$lt_predep_objects_F77
22383
22384 # Dependencies to place after the objects being linked to create a
22385 # shared library.
22386 postdep_objects=$lt_postdep_objects_F77
22387
22388 # Dependencies to place before the objects being linked to create a
22389 # shared library.
22390 predeps=$lt_predeps_F77
22391
22392 # Dependencies to place after the objects being linked to create a
22393 # shared library.
22394 postdeps=$lt_postdeps_F77
22395
22396 # The library search path used internally by the compiler when linking
22397 # a shared library.
22398 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22399
22400 # Method to check whether dependent libraries are shared objects.
22401 deplibs_check_method=$lt_deplibs_check_method
22402
22403 # Command to use when deplibs_check_method == file_magic.
22404 file_magic_cmd=$lt_file_magic_cmd
22405
22406 # Flag that allows shared libraries with undefined symbols to be built.
22407 allow_undefined_flag=$lt_allow_undefined_flag_F77
22408
22409 # Flag that forces no undefined symbols.
22410 no_undefined_flag=$lt_no_undefined_flag_F77
22411
22412 # Commands used to finish a libtool library installation in a directory.
22413 finish_cmds=$lt_finish_cmds
22414
22415 # Same as above, but a single script fragment to be evaled but not shown.
22416 finish_eval=$lt_finish_eval
22417
22418 # Take the output of nm and produce a listing of raw symbols and C names.
22419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22420
22421 # Transform the output of nm in a proper C declaration
22422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22423
22424 # Transform the output of nm in a C name address pair
22425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22426
22427 # This is the shared library runtime path variable.
22428 runpath_var=$runpath_var
22429
22430 # This is the shared library path variable.
22431 shlibpath_var=$shlibpath_var
22432
22433 # Is shlibpath searched before the hard-coded library search path?
22434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22435
22436 # How to hardcode a shared library path into an executable.
22437 hardcode_action=$hardcode_action_F77
22438
22439 # Whether we should hardcode library paths into libraries.
22440 hardcode_into_libs=$hardcode_into_libs
22441
22442 # Flag to hardcode \$libdir into a binary during linking.
22443 # This must work even if \$libdir does not exist.
22444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22445
22446 # If ld is used when linking, flag to hardcode \$libdir into
22447 # a binary during linking. This must work even if \$libdir does
22448 # not exist.
22449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22450
22451 # Whether we need a single -rpath flag with a separated argument.
22452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22453
22454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22455 # resulting binary.
22456 hardcode_direct=$hardcode_direct_F77
22457
22458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22459 # resulting binary.
22460 hardcode_minus_L=$hardcode_minus_L_F77
22461
22462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22463 # the resulting binary.
22464 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22465
22466 # Set to yes if building a shared library automatically hardcodes DIR into the library
22467 # and all subsequent libraries and executables linked against it.
22468 hardcode_automatic=$hardcode_automatic_F77
22469
22470 # Variables whose values should be saved in libtool wrapper scripts and
22471 # restored at relink time.
22472 variables_saved_for_relink="$variables_saved_for_relink"
22473
22474 # Whether libtool must link a program against all its dependency libraries.
22475 link_all_deplibs=$link_all_deplibs_F77
22476
22477 # Compile-time system search path for libraries
22478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22479
22480 # Run-time system search path for libraries
22481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22482
22483 # Fix the shell variable \$srcfile for the compiler.
22484 fix_srcfile_path="$fix_srcfile_path_F77"
22485
22486 # Set to yes if exported symbols are required.
22487 always_export_symbols=$always_export_symbols_F77
22488
22489 # The commands to list exported symbols.
22490 export_symbols_cmds=$lt_export_symbols_cmds_F77
22491
22492 # The commands to extract the exported symbol list from a shared archive.
22493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22494
22495 # Symbols that should not be listed in the preloaded symbols.
22496 exclude_expsyms=$lt_exclude_expsyms_F77
22497
22498 # Symbols that must always be exported.
22499 include_expsyms=$lt_include_expsyms_F77
22500
22501 # ### END LIBTOOL TAG CONFIG: $tagname
22502
22503 __EOF__
22504
22505
22506 else
22507   # If there is no Makefile yet, we rely on a make rule to execute
22508   # `config.status --recheck' to rerun these tests and create the
22509   # libtool script then.
22510   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22511   if test -f "$ltmain_in"; then
22512     test -f Makefile && make "$ltmain"
22513   fi
22514 fi
22515
22516
22517 ac_ext=c
22518 ac_cpp='$CPP $CPPFLAGS'
22519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22522
22523 CC="$lt_save_CC"
22524
22525         else
22526           tagname=""
22527         fi
22528         ;;
22529
22530       GCJ)
22531         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22532           ac_ext=c
22533 ac_cpp='$CPP $CPPFLAGS'
22534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22537
22538
22539 # Source file extension for Java test sources.
22540 ac_ext=java
22541
22542 # Object file extension for compiled Java test sources.
22543 objext=o
22544 objext_GCJ=$objext
22545
22546 # Code to be used in simple compile tests
22547 lt_simple_compile_test_code="class foo {}\n"
22548
22549 # Code to be used in simple link tests
22550 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22551
22552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22553
22554 # If no C compiler was specified, use CC.
22555 LTCC=${LTCC-"$CC"}
22556
22557 # If no C compiler flags were specified, use CFLAGS.
22558 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22559
22560 # Allow CC to be a program name with arguments.
22561 compiler=$CC
22562
22563
22564 # save warnings/boilerplate of simple test code
22565 ac_outfile=conftest.$ac_objext
22566 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22568 _lt_compiler_boilerplate=`cat conftest.err`
22569 $rm conftest*
22570
22571 ac_outfile=conftest.$ac_objext
22572 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22574 _lt_linker_boilerplate=`cat conftest.err`
22575 $rm conftest*
22576
22577
22578 # Allow CC to be a program name with arguments.
22579 lt_save_CC="$CC"
22580 CC=${GCJ-"gcj"}
22581 compiler=$CC
22582 compiler_GCJ=$CC
22583 for cc_temp in $compiler""; do
22584   case $cc_temp in
22585     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22586     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22587     \-*) ;;
22588     *) break;;
22589   esac
22590 done
22591 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22592
22593
22594 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22595 archive_cmds_need_lc_GCJ=no
22596
22597 old_archive_cmds_GCJ=$old_archive_cmds
22598
22599
22600 lt_prog_compiler_no_builtin_flag_GCJ=
22601
22602 if test "$GCC" = yes; then
22603   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22604
22605
22606 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22607 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22608 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22609   echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611   lt_cv_prog_compiler_rtti_exceptions=no
22612   ac_outfile=conftest.$ac_objext
22613    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22614    lt_compiler_flag="-fno-rtti -fno-exceptions"
22615    # Insert the option either (1) after the last *FLAGS variable, or
22616    # (2) before a word containing "conftest.", or (3) at the end.
22617    # Note that $ac_compile itself does not contain backslashes and begins
22618    # with a dollar sign (not a hyphen), so the echo should work correctly.
22619    # The option is referenced via a variable to avoid confusing sed.
22620    lt_compile=`echo "$ac_compile" | $SED \
22621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22623    -e 's:$: $lt_compiler_flag:'`
22624    (eval echo "\"\$as_me:22624: $lt_compile\"" >&5)
22625    (eval "$lt_compile" 2>conftest.err)
22626    ac_status=$?
22627    cat conftest.err >&5
22628    echo "$as_me:22628: \$? = $ac_status" >&5
22629    if (exit $ac_status) && test -s "$ac_outfile"; then
22630      # The compiler can only warn and ignore the option if not recognized
22631      # So say no if there are warnings other than the usual output.
22632      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22633      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22634      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22635        lt_cv_prog_compiler_rtti_exceptions=yes
22636      fi
22637    fi
22638    $rm conftest*
22639
22640 fi
22641 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22642 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22643
22644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22645     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22646 else
22647     :
22648 fi
22649
22650 fi
22651
22652 lt_prog_compiler_wl_GCJ=
22653 lt_prog_compiler_pic_GCJ=
22654 lt_prog_compiler_static_GCJ=
22655
22656 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22657 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22658
22659   if test "$GCC" = yes; then
22660     lt_prog_compiler_wl_GCJ='-Wl,'
22661     lt_prog_compiler_static_GCJ='-static'
22662
22663     case $host_os in
22664       aix*)
22665       # All AIX code is PIC.
22666       if test "$host_cpu" = ia64; then
22667         # AIX 5 now supports IA64 processor
22668         lt_prog_compiler_static_GCJ='-Bstatic'
22669       fi
22670       ;;
22671
22672     amigaos*)
22673       # FIXME: we need at least 68020 code to build shared libraries, but
22674       # adding the `-m68020' flag to GCC prevents building anything better,
22675       # like `-m68040'.
22676       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22677       ;;
22678
22679     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22680       # PIC is the default for these OSes.
22681       ;;
22682
22683     mingw* | pw32* | os2*)
22684       # This hack is so that the source file can tell whether it is being
22685       # built for inclusion in a dll (and should export symbols for example).
22686       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22687       ;;
22688
22689     darwin* | rhapsody*)
22690       # PIC is the default on this platform
22691       # Common symbols not allowed in MH_DYLIB files
22692       lt_prog_compiler_pic_GCJ='-fno-common'
22693       ;;
22694
22695     interix3*)
22696       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22697       # Instead, we relocate shared libraries at runtime.
22698       ;;
22699
22700     msdosdjgpp*)
22701       # Just because we use GCC doesn't mean we suddenly get shared libraries
22702       # on systems that don't support them.
22703       lt_prog_compiler_can_build_shared_GCJ=no
22704       enable_shared=no
22705       ;;
22706
22707     sysv4*MP*)
22708       if test -d /usr/nec; then
22709         lt_prog_compiler_pic_GCJ=-Kconform_pic
22710       fi
22711       ;;
22712
22713     hpux*)
22714       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22715       # not for PA HP-UX.
22716       case $host_cpu in
22717       hppa*64*|ia64*)
22718         # +Z the default
22719         ;;
22720       *)
22721         lt_prog_compiler_pic_GCJ='-fPIC'
22722         ;;
22723       esac
22724       ;;
22725
22726     *)
22727       lt_prog_compiler_pic_GCJ='-fPIC'
22728       ;;
22729     esac
22730   else
22731     # PORTME Check for flag to pass linker flags through the system compiler.
22732     case $host_os in
22733     aix*)
22734       lt_prog_compiler_wl_GCJ='-Wl,'
22735       if test "$host_cpu" = ia64; then
22736         # AIX 5 now supports IA64 processor
22737         lt_prog_compiler_static_GCJ='-Bstatic'
22738       else
22739         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22740       fi
22741       ;;
22742       darwin*)
22743         # PIC is the default on this platform
22744         # Common symbols not allowed in MH_DYLIB files
22745        case $cc_basename in
22746          xlc*)
22747          lt_prog_compiler_pic_GCJ='-qnocommon'
22748          lt_prog_compiler_wl_GCJ='-Wl,'
22749          ;;
22750        esac
22751        ;;
22752
22753     mingw* | pw32* | os2*)
22754       # This hack is so that the source file can tell whether it is being
22755       # built for inclusion in a dll (and should export symbols for example).
22756       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22757       ;;
22758
22759     hpux9* | hpux10* | hpux11*)
22760       lt_prog_compiler_wl_GCJ='-Wl,'
22761       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22762       # not for PA HP-UX.
22763       case $host_cpu in
22764       hppa*64*|ia64*)
22765         # +Z the default
22766         ;;
22767       *)
22768         lt_prog_compiler_pic_GCJ='+Z'
22769         ;;
22770       esac
22771       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22772       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22773       ;;
22774
22775     irix5* | irix6* | nonstopux*)
22776       lt_prog_compiler_wl_GCJ='-Wl,'
22777       # PIC (with -KPIC) is the default.
22778       lt_prog_compiler_static_GCJ='-non_shared'
22779       ;;
22780
22781     newsos6)
22782       lt_prog_compiler_pic_GCJ='-KPIC'
22783       lt_prog_compiler_static_GCJ='-Bstatic'
22784       ;;
22785
22786     linux*)
22787       case $cc_basename in
22788       icc* | ecc*)
22789         lt_prog_compiler_wl_GCJ='-Wl,'
22790         lt_prog_compiler_pic_GCJ='-KPIC'
22791         lt_prog_compiler_static_GCJ='-static'
22792         ;;
22793       pgcc* | pgf77* | pgf90* | pgf95*)
22794         # Portland Group compilers (*not* the Pentium gcc compiler,
22795         # which looks to be a dead project)
22796         lt_prog_compiler_wl_GCJ='-Wl,'
22797         lt_prog_compiler_pic_GCJ='-fpic'
22798         lt_prog_compiler_static_GCJ='-Bstatic'
22799         ;;
22800       ccc*)
22801         lt_prog_compiler_wl_GCJ='-Wl,'
22802         # All Alpha code is PIC.
22803         lt_prog_compiler_static_GCJ='-non_shared'
22804         ;;
22805       esac
22806       ;;
22807
22808     osf3* | osf4* | osf5*)
22809       lt_prog_compiler_wl_GCJ='-Wl,'
22810       # All OSF/1 code is PIC.
22811       lt_prog_compiler_static_GCJ='-non_shared'
22812       ;;
22813
22814     solaris*)
22815       lt_prog_compiler_pic_GCJ='-KPIC'
22816       lt_prog_compiler_static_GCJ='-Bstatic'
22817       case $cc_basename in
22818       f77* | f90* | f95*)
22819         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22820       *)
22821         lt_prog_compiler_wl_GCJ='-Wl,';;
22822       esac
22823       ;;
22824
22825     sunos4*)
22826       lt_prog_compiler_wl_GCJ='-Qoption ld '
22827       lt_prog_compiler_pic_GCJ='-PIC'
22828       lt_prog_compiler_static_GCJ='-Bstatic'
22829       ;;
22830
22831     sysv4 | sysv4.2uw2* | sysv4.3*)
22832       lt_prog_compiler_wl_GCJ='-Wl,'
22833       lt_prog_compiler_pic_GCJ='-KPIC'
22834       lt_prog_compiler_static_GCJ='-Bstatic'
22835       ;;
22836
22837     sysv4*MP*)
22838       if test -d /usr/nec ;then
22839         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22840         lt_prog_compiler_static_GCJ='-Bstatic'
22841       fi
22842       ;;
22843
22844     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22845       lt_prog_compiler_wl_GCJ='-Wl,'
22846       lt_prog_compiler_pic_GCJ='-KPIC'
22847       lt_prog_compiler_static_GCJ='-Bstatic'
22848       ;;
22849
22850     unicos*)
22851       lt_prog_compiler_wl_GCJ='-Wl,'
22852       lt_prog_compiler_can_build_shared_GCJ=no
22853       ;;
22854
22855     uts4*)
22856       lt_prog_compiler_pic_GCJ='-pic'
22857       lt_prog_compiler_static_GCJ='-Bstatic'
22858       ;;
22859
22860     *)
22861       lt_prog_compiler_can_build_shared_GCJ=no
22862       ;;
22863     esac
22864   fi
22865
22866 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22867 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22868
22869 #
22870 # Check to make sure the PIC flag actually works.
22871 #
22872 if test -n "$lt_prog_compiler_pic_GCJ"; then
22873
22874 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22875 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22876 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22877   echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879   lt_prog_compiler_pic_works_GCJ=no
22880   ac_outfile=conftest.$ac_objext
22881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22882    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22883    # Insert the option either (1) after the last *FLAGS variable, or
22884    # (2) before a word containing "conftest.", or (3) at the end.
22885    # Note that $ac_compile itself does not contain backslashes and begins
22886    # with a dollar sign (not a hyphen), so the echo should work correctly.
22887    # The option is referenced via a variable to avoid confusing sed.
22888    lt_compile=`echo "$ac_compile" | $SED \
22889    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22891    -e 's:$: $lt_compiler_flag:'`
22892    (eval echo "\"\$as_me:22892: $lt_compile\"" >&5)
22893    (eval "$lt_compile" 2>conftest.err)
22894    ac_status=$?
22895    cat conftest.err >&5
22896    echo "$as_me:22896: \$? = $ac_status" >&5
22897    if (exit $ac_status) && test -s "$ac_outfile"; then
22898      # The compiler can only warn and ignore the option if not recognized
22899      # So say no if there are warnings other than the usual output.
22900      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22901      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22902      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22903        lt_prog_compiler_pic_works_GCJ=yes
22904      fi
22905    fi
22906    $rm conftest*
22907
22908 fi
22909 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22910 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22911
22912 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22913     case $lt_prog_compiler_pic_GCJ in
22914      "" | " "*) ;;
22915      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22916      esac
22917 else
22918     lt_prog_compiler_pic_GCJ=
22919      lt_prog_compiler_can_build_shared_GCJ=no
22920 fi
22921
22922 fi
22923 case $host_os in
22924   # For platforms which do not support PIC, -DPIC is meaningless:
22925   *djgpp*)
22926     lt_prog_compiler_pic_GCJ=
22927     ;;
22928   *)
22929     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22930     ;;
22931 esac
22932
22933 #
22934 # Check to make sure the static flag actually works.
22935 #
22936 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22937 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22938 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22939 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942   lt_prog_compiler_static_works_GCJ=no
22943    save_LDFLAGS="$LDFLAGS"
22944    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22945    printf "$lt_simple_link_test_code" > conftest.$ac_ext
22946    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22947      # The linker can only warn and ignore the option if not recognized
22948      # So say no if there are warnings
22949      if test -s conftest.err; then
22950        # Append any errors to the config.log.
22951        cat conftest.err 1>&5
22952        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22953        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22954        if diff conftest.exp conftest.er2 >/dev/null; then
22955          lt_prog_compiler_static_works_GCJ=yes
22956        fi
22957      else
22958        lt_prog_compiler_static_works_GCJ=yes
22959      fi
22960    fi
22961    $rm conftest*
22962    LDFLAGS="$save_LDFLAGS"
22963
22964 fi
22965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22966 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22967
22968 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22969     :
22970 else
22971     lt_prog_compiler_static_GCJ=
22972 fi
22973
22974
22975 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22976 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22977 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22978   echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980   lt_cv_prog_compiler_c_o_GCJ=no
22981    $rm -r conftest 2>/dev/null
22982    mkdir conftest
22983    cd conftest
22984    mkdir out
22985    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22986
22987    lt_compiler_flag="-o out/conftest2.$ac_objext"
22988    # Insert the option either (1) after the last *FLAGS variable, or
22989    # (2) before a word containing "conftest.", or (3) at the end.
22990    # Note that $ac_compile itself does not contain backslashes and begins
22991    # with a dollar sign (not a hyphen), so the echo should work correctly.
22992    lt_compile=`echo "$ac_compile" | $SED \
22993    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22995    -e 's:$: $lt_compiler_flag:'`
22996    (eval echo "\"\$as_me:22996: $lt_compile\"" >&5)
22997    (eval "$lt_compile" 2>out/conftest.err)
22998    ac_status=$?
22999    cat out/conftest.err >&5
23000    echo "$as_me:23000: \$? = $ac_status" >&5
23001    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23002    then
23003      # The compiler can only warn and ignore the option if not recognized
23004      # So say no if there are warnings
23005      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23006      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23007      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23008        lt_cv_prog_compiler_c_o_GCJ=yes
23009      fi
23010    fi
23011    chmod u+w . 2>&5
23012    $rm conftest*
23013    # SGI C++ compiler will create directory out/ii_files/ for
23014    # template instantiation
23015    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23016    $rm out/* && rmdir out
23017    cd ..
23018    rmdir conftest
23019    $rm conftest*
23020
23021 fi
23022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23023 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23024
23025
23026 hard_links="nottested"
23027 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23028   # do not overwrite the value of need_locks provided by the user
23029   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23030 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23031   hard_links=yes
23032   $rm conftest*
23033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23034   touch conftest.a
23035   ln conftest.a conftest.b 2>&5 || hard_links=no
23036   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23037   { echo "$as_me:$LINENO: result: $hard_links" >&5
23038 echo "${ECHO_T}$hard_links" >&6; }
23039   if test "$hard_links" = no; then
23040     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23041 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23042     need_locks=warn
23043   fi
23044 else
23045   need_locks=no
23046 fi
23047
23048 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23049 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23050
23051   runpath_var=
23052   allow_undefined_flag_GCJ=
23053   enable_shared_with_static_runtimes_GCJ=no
23054   archive_cmds_GCJ=
23055   archive_expsym_cmds_GCJ=
23056   old_archive_From_new_cmds_GCJ=
23057   old_archive_from_expsyms_cmds_GCJ=
23058   export_dynamic_flag_spec_GCJ=
23059   whole_archive_flag_spec_GCJ=
23060   thread_safe_flag_spec_GCJ=
23061   hardcode_libdir_flag_spec_GCJ=
23062   hardcode_libdir_flag_spec_ld_GCJ=
23063   hardcode_libdir_separator_GCJ=
23064   hardcode_direct_GCJ=no
23065   hardcode_minus_L_GCJ=no
23066   hardcode_shlibpath_var_GCJ=unsupported
23067   link_all_deplibs_GCJ=unknown
23068   hardcode_automatic_GCJ=no
23069   module_cmds_GCJ=
23070   module_expsym_cmds_GCJ=
23071   always_export_symbols_GCJ=no
23072   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23073   # include_expsyms should be a list of space-separated symbols to be *always*
23074   # included in the symbol list
23075   include_expsyms_GCJ=
23076   # exclude_expsyms can be an extended regexp of symbols to exclude
23077   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23078   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23079   # as well as any symbol that contains `d'.
23080   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23081   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23082   # platforms (ab)use it in PIC code, but their linkers get confused if
23083   # the symbol is explicitly referenced.  Since portable code cannot
23084   # rely on this symbol name, it's probably fine to never include it in
23085   # preloaded symbol tables.
23086   extract_expsyms_cmds=
23087   # Just being paranoid about ensuring that cc_basename is set.
23088   for cc_temp in $compiler""; do
23089   case $cc_temp in
23090     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23091     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23092     \-*) ;;
23093     *) break;;
23094   esac
23095 done
23096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23097
23098   case $host_os in
23099   cygwin* | mingw* | pw32*)
23100     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23101     # When not using gcc, we currently assume that we are using
23102     # Microsoft Visual C++.
23103     if test "$GCC" != yes; then
23104       with_gnu_ld=no
23105     fi
23106     ;;
23107   interix*)
23108     # we just hope/assume this is gcc and not c89 (= MSVC++)
23109     with_gnu_ld=yes
23110     ;;
23111   openbsd*)
23112     with_gnu_ld=no
23113     ;;
23114   esac
23115
23116   ld_shlibs_GCJ=yes
23117   if test "$with_gnu_ld" = yes; then
23118     # If archive_cmds runs LD, not CC, wlarc should be empty
23119     wlarc='${wl}'
23120
23121     # Set some defaults for GNU ld with shared library support. These
23122     # are reset later if shared libraries are not supported. Putting them
23123     # here allows them to be overridden if necessary.
23124     runpath_var=LD_RUN_PATH
23125     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23126     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23127     # ancient GNU ld didn't support --whole-archive et. al.
23128     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23129         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23130       else
23131         whole_archive_flag_spec_GCJ=
23132     fi
23133     supports_anon_versioning=no
23134     case `$LD -v 2>/dev/null` in
23135       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23136       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23137       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23138       *\ 2.11.*) ;; # other 2.11 versions
23139       *) supports_anon_versioning=yes ;;
23140     esac
23141
23142     # See if GNU ld supports shared libraries.
23143     case $host_os in
23144     aix3* | aix4* | aix5*)
23145       # On AIX/PPC, the GNU linker is very broken
23146       if test "$host_cpu" != ia64; then
23147         ld_shlibs_GCJ=no
23148         cat <<EOF 1>&2
23149
23150 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23151 *** to be unable to reliably create shared libraries on AIX.
23152 *** Therefore, libtool is disabling shared libraries support.  If you
23153 *** really care for shared libraries, you may want to modify your PATH
23154 *** so that a non-GNU linker is found, and then restart.
23155
23156 EOF
23157       fi
23158       ;;
23159
23160     amigaos*)
23161       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)'
23162       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23163       hardcode_minus_L_GCJ=yes
23164
23165       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23166       # that the semantics of dynamic libraries on AmigaOS, at least up
23167       # to version 4, is to share data among multiple programs linked
23168       # with the same dynamic library.  Since this doesn't match the
23169       # behavior of shared libraries on other platforms, we can't use
23170       # them.
23171       ld_shlibs_GCJ=no
23172       ;;
23173
23174     beos*)
23175       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23176         allow_undefined_flag_GCJ=unsupported
23177         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23178         # support --undefined.  This deserves some investigation.  FIXME
23179         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23180       else
23181         ld_shlibs_GCJ=no
23182       fi
23183       ;;
23184
23185     cygwin* | mingw* | pw32*)
23186       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23187       # as there is no search path for DLLs.
23188       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23189       allow_undefined_flag_GCJ=unsupported
23190       always_export_symbols_GCJ=no
23191       enable_shared_with_static_runtimes_GCJ=yes
23192       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23193
23194       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23195         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23196         # If the export-symbols file already is a .def file (1st line
23197         # is EXPORTS), use it as is; otherwise, prepend...
23198         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23199           cp $export_symbols $output_objdir/$soname.def;
23200         else
23201           echo EXPORTS > $output_objdir/$soname.def;
23202           cat $export_symbols >> $output_objdir/$soname.def;
23203         fi~
23204         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23205       else
23206         ld_shlibs_GCJ=no
23207       fi
23208       ;;
23209
23210     interix3*)
23211       hardcode_direct_GCJ=no
23212       hardcode_shlibpath_var_GCJ=no
23213       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23214       export_dynamic_flag_spec_GCJ='${wl}-E'
23215       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23216       # Instead, shared libraries are loaded at an image base (0x10000000 by
23217       # default) and relocated if they conflict, which is a slow very memory
23218       # consuming and fragmenting process.  To avoid this, we pick a random,
23219       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23220       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23221       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'
23222       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'
23223       ;;
23224
23225     linux*)
23226       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23227         tmp_addflag=
23228         case $cc_basename,$host_cpu in
23229         pgcc*)                          # Portland Group C compiler
23230           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'
23231           tmp_addflag=' $pic_flag'
23232           ;;
23233         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23234           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'
23235           tmp_addflag=' $pic_flag -Mnomain' ;;
23236         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23237           tmp_addflag=' -i_dynamic' ;;
23238         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23239           tmp_addflag=' -i_dynamic -nofor_main' ;;
23240         ifc* | ifort*)                  # Intel Fortran compiler
23241           tmp_addflag=' -nofor_main' ;;
23242         esac
23243         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23244
23245         if test $supports_anon_versioning = yes; then
23246           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23247   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23248   $echo "local: *; };" >> $output_objdir/$libname.ver~
23249           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23250         fi
23251       else
23252         ld_shlibs_GCJ=no
23253       fi
23254       ;;
23255
23256     netbsd*)
23257       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23258         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23259         wlarc=
23260       else
23261         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23262         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23263       fi
23264       ;;
23265
23266     solaris*)
23267       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23268         ld_shlibs_GCJ=no
23269         cat <<EOF 1>&2
23270
23271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23272 *** create shared libraries on Solaris systems.  Therefore, libtool
23273 *** is disabling shared libraries support.  We urge you to upgrade GNU
23274 *** binutils to release 2.9.1 or newer.  Another option is to modify
23275 *** your PATH or compiler configuration so that the native linker is
23276 *** used, and then restart.
23277
23278 EOF
23279       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23280         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23281         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23282       else
23283         ld_shlibs_GCJ=no
23284       fi
23285       ;;
23286
23287     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23288       case `$LD -v 2>&1` in
23289         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23290         ld_shlibs_GCJ=no
23291         cat <<_LT_EOF 1>&2
23292
23293 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23294 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23295 *** is disabling shared libraries support.  We urge you to upgrade GNU
23296 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23297 *** your PATH or compiler configuration so that the native linker is
23298 *** used, and then restart.
23299
23300 _LT_EOF
23301         ;;
23302         *)
23303           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23304             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23305             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23306             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23307           else
23308             ld_shlibs_GCJ=no
23309           fi
23310         ;;
23311       esac
23312       ;;
23313
23314     sunos4*)
23315       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23316       wlarc=
23317       hardcode_direct_GCJ=yes
23318       hardcode_shlibpath_var_GCJ=no
23319       ;;
23320
23321     *)
23322       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23323         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23324         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23325       else
23326         ld_shlibs_GCJ=no
23327       fi
23328       ;;
23329     esac
23330
23331     if test "$ld_shlibs_GCJ" = no; then
23332       runpath_var=
23333       hardcode_libdir_flag_spec_GCJ=
23334       export_dynamic_flag_spec_GCJ=
23335       whole_archive_flag_spec_GCJ=
23336     fi
23337   else
23338     # PORTME fill in a description of your system's linker (not GNU ld)
23339     case $host_os in
23340     aix3*)
23341       allow_undefined_flag_GCJ=unsupported
23342       always_export_symbols_GCJ=yes
23343       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'
23344       # Note: this linker hardcodes the directories in LIBPATH if there
23345       # are no directories specified by -L.
23346       hardcode_minus_L_GCJ=yes
23347       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23348         # Neither direct hardcoding nor static linking is supported with a
23349         # broken collect2.
23350         hardcode_direct_GCJ=unsupported
23351       fi
23352       ;;
23353
23354     aix4* | aix5*)
23355       if test "$host_cpu" = ia64; then
23356         # On IA64, the linker does run time linking by default, so we don't
23357         # have to do anything special.
23358         aix_use_runtimelinking=no
23359         exp_sym_flag='-Bexport'
23360         no_entry_flag=""
23361       else
23362         # If we're using GNU nm, then we don't want the "-C" option.
23363         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23364         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23365           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'
23366         else
23367           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'
23368         fi
23369         aix_use_runtimelinking=no
23370
23371         # Test if we are trying to use run time linking or normal
23372         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23373         # need to do runtime linking.
23374         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23375           for ld_flag in $LDFLAGS; do
23376           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23377             aix_use_runtimelinking=yes
23378             break
23379           fi
23380           done
23381           ;;
23382         esac
23383
23384         exp_sym_flag='-bexport'
23385         no_entry_flag='-bnoentry'
23386       fi
23387
23388       # When large executables or shared objects are built, AIX ld can
23389       # have problems creating the table of contents.  If linking a library
23390       # or program results in "error TOC overflow" add -mminimal-toc to
23391       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23392       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23393
23394       archive_cmds_GCJ=''
23395       hardcode_direct_GCJ=yes
23396       hardcode_libdir_separator_GCJ=':'
23397       link_all_deplibs_GCJ=yes
23398
23399       if test "$GCC" = yes; then
23400         case $host_os in aix4.[012]|aix4.[012].*)
23401         # We only want to do this on AIX 4.2 and lower, the check
23402         # below for broken collect2 doesn't work under 4.3+
23403           collect2name=`${CC} -print-prog-name=collect2`
23404           if test -f "$collect2name" && \
23405            strings "$collect2name" | grep resolve_lib_name >/dev/null
23406           then
23407           # We have reworked collect2
23408           hardcode_direct_GCJ=yes
23409           else
23410           # We have old collect2
23411           hardcode_direct_GCJ=unsupported
23412           # It fails to find uninstalled libraries when the uninstalled
23413           # path is not listed in the libpath.  Setting hardcode_minus_L
23414           # to unsupported forces relinking
23415           hardcode_minus_L_GCJ=yes
23416           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23417           hardcode_libdir_separator_GCJ=
23418           fi
23419           ;;
23420         esac
23421         shared_flag='-shared'
23422         if test "$aix_use_runtimelinking" = yes; then
23423           shared_flag="$shared_flag "'${wl}-G'
23424         fi
23425       else
23426         # not using gcc
23427         if test "$host_cpu" = ia64; then
23428         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23429         # chokes on -Wl,-G. The following line is correct:
23430           shared_flag='-G'
23431         else
23432           if test "$aix_use_runtimelinking" = yes; then
23433             shared_flag='${wl}-G'
23434           else
23435             shared_flag='${wl}-bM:SRE'
23436           fi
23437         fi
23438       fi
23439
23440       # It seems that -bexpall does not export symbols beginning with
23441       # underscore (_), so it is better to generate a list of symbols to export.
23442       always_export_symbols_GCJ=yes
23443       if test "$aix_use_runtimelinking" = yes; then
23444         # Warning - without using the other runtime loading flags (-brtl),
23445         # -berok will link without error, but may produce a broken library.
23446         allow_undefined_flag_GCJ='-berok'
23447        # Determine the default libpath from the value encoded in an empty executable.
23448        cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454
23455 int
23456 main ()
23457 {
23458
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 rm -f conftest.$ac_objext conftest$ac_exeext
23464 if { (ac_try="$ac_link"
23465 case "(($ac_try" in
23466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467   *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470   (eval "$ac_link") 2>conftest.er1
23471   ac_status=$?
23472   grep -v '^ *+' conftest.er1 >conftest.err
23473   rm -f conftest.er1
23474   cat conftest.err >&5
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); } && {
23477          test -z "$ac_c_werror_flag" ||
23478          test ! -s conftest.err
23479        } && test -s conftest$ac_exeext &&
23480        $as_test_x conftest$ac_exeext; then
23481
23482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23483 }'`
23484 # Check for a 64-bit object if we didn't find anything.
23485 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; }
23486 }'`; fi
23487 else
23488   echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23490
23491
23492 fi
23493
23494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23495       conftest$ac_exeext conftest.$ac_ext
23496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23497
23498        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23499         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"
23500        else
23501         if test "$host_cpu" = ia64; then
23502           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23503           allow_undefined_flag_GCJ="-z nodefs"
23504           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"
23505         else
23506          # Determine the default libpath from the value encoded in an empty executable.
23507          cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513
23514 int
23515 main ()
23516 {
23517
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (ac_try="$ac_link"
23524 case "(($ac_try" in
23525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526   *) ac_try_echo=$ac_try;;
23527 esac
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529   (eval "$ac_link") 2>conftest.er1
23530   ac_status=$?
23531   grep -v '^ *+' conftest.er1 >conftest.err
23532   rm -f conftest.er1
23533   cat conftest.err >&5
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); } && {
23536          test -z "$ac_c_werror_flag" ||
23537          test ! -s conftest.err
23538        } && test -s conftest$ac_exeext &&
23539        $as_test_x conftest$ac_exeext; then
23540
23541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23542 }'`
23543 # Check for a 64-bit object if we didn't find anything.
23544 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; }
23545 }'`; fi
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550
23551 fi
23552
23553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23554       conftest$ac_exeext conftest.$ac_ext
23555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23556
23557          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23558           # Warning - without using the other run time loading flags,
23559           # -berok will link without error, but may produce a broken library.
23560           no_undefined_flag_GCJ=' ${wl}-bernotok'
23561           allow_undefined_flag_GCJ=' ${wl}-berok'
23562           # Exported symbols can be pulled into shared objects from archives
23563           whole_archive_flag_spec_GCJ='$convenience'
23564           archive_cmds_need_lc_GCJ=yes
23565           # This is similar to how AIX traditionally builds its shared libraries.
23566           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'
23567         fi
23568       fi
23569       ;;
23570
23571     amigaos*)
23572       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)'
23573       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23574       hardcode_minus_L_GCJ=yes
23575       # see comment about different semantics on the GNU ld section
23576       ld_shlibs_GCJ=no
23577       ;;
23578
23579     bsdi[45]*)
23580       export_dynamic_flag_spec_GCJ=-rdynamic
23581       ;;
23582
23583     cygwin* | mingw* | pw32*)
23584       # When not using gcc, we currently assume that we are using
23585       # Microsoft Visual C++.
23586       # hardcode_libdir_flag_spec is actually meaningless, as there is
23587       # no search path for DLLs.
23588       hardcode_libdir_flag_spec_GCJ=' '
23589       allow_undefined_flag_GCJ=unsupported
23590       # Tell ltmain to make .lib files, not .a files.
23591       libext=lib
23592       # Tell ltmain to make .dll files, not .so files.
23593       shrext_cmds=".dll"
23594       # FIXME: Setting linknames here is a bad hack.
23595       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23596       # The linker will automatically build a .lib file if we build a DLL.
23597       old_archive_From_new_cmds_GCJ='true'
23598       # FIXME: Should let the user specify the lib program.
23599       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23600       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23601       enable_shared_with_static_runtimes_GCJ=yes
23602       ;;
23603
23604     darwin* | rhapsody*)
23605       case $host_os in
23606         rhapsody* | darwin1.[012])
23607          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23608          ;;
23609        *) # Darwin 1.3 on
23610          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23611            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23612          else
23613            case ${MACOSX_DEPLOYMENT_TARGET} in
23614              10.[012])
23615                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23616                ;;
23617              10.*)
23618                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23619                ;;
23620            esac
23621          fi
23622          ;;
23623       esac
23624       archive_cmds_need_lc_GCJ=no
23625       hardcode_direct_GCJ=no
23626       hardcode_automatic_GCJ=yes
23627       hardcode_shlibpath_var_GCJ=unsupported
23628       whole_archive_flag_spec_GCJ=''
23629       link_all_deplibs_GCJ=yes
23630     if test "$GCC" = yes ; then
23631         output_verbose_link_cmd='echo'
23632         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23633       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23634       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23635       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}'
23636       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}'
23637     else
23638       case $cc_basename in
23639         xlc*)
23640          output_verbose_link_cmd='echo'
23641          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23642          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23643           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23644          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}'
23645           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}'
23646           ;;
23647        *)
23648          ld_shlibs_GCJ=no
23649           ;;
23650       esac
23651     fi
23652       ;;
23653
23654     dgux*)
23655       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23656       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23657       hardcode_shlibpath_var_GCJ=no
23658       ;;
23659
23660     freebsd1*)
23661       ld_shlibs_GCJ=no
23662       ;;
23663
23664     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23665     # support.  Future versions do this automatically, but an explicit c++rt0.o
23666     # does not break anything, and helps significantly (at the cost of a little
23667     # extra space).
23668     freebsd2.2*)
23669       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23670       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23671       hardcode_direct_GCJ=yes
23672       hardcode_shlibpath_var_GCJ=no
23673       ;;
23674
23675     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23676     freebsd2*)
23677       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23678       hardcode_direct_GCJ=yes
23679       hardcode_minus_L_GCJ=yes
23680       hardcode_shlibpath_var_GCJ=no
23681       ;;
23682
23683     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23684     freebsd* | kfreebsd*-gnu | dragonfly*)
23685       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23686       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23687       hardcode_direct_GCJ=yes
23688       hardcode_shlibpath_var_GCJ=no
23689       ;;
23690
23691     hpux9*)
23692       if test "$GCC" = yes; then
23693         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'
23694       else
23695         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'
23696       fi
23697       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23698       hardcode_libdir_separator_GCJ=:
23699       hardcode_direct_GCJ=yes
23700
23701       # hardcode_minus_L: Not really in the search PATH,
23702       # but as the default location of the library.
23703       hardcode_minus_L_GCJ=yes
23704       export_dynamic_flag_spec_GCJ='${wl}-E'
23705       ;;
23706
23707     hpux10*)
23708       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23709         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23710       else
23711         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23712       fi
23713       if test "$with_gnu_ld" = no; then
23714         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23715         hardcode_libdir_separator_GCJ=:
23716
23717         hardcode_direct_GCJ=yes
23718         export_dynamic_flag_spec_GCJ='${wl}-E'
23719
23720         # hardcode_minus_L: Not really in the search PATH,
23721         # but as the default location of the library.
23722         hardcode_minus_L_GCJ=yes
23723       fi
23724       ;;
23725
23726     hpux11*)
23727       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23728         case $host_cpu in
23729         hppa*64*)
23730           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23731           ;;
23732         ia64*)
23733           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23734           ;;
23735         *)
23736           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23737           ;;
23738         esac
23739       else
23740         case $host_cpu in
23741         hppa*64*)
23742           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23743           ;;
23744         ia64*)
23745           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23746           ;;
23747         *)
23748           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23749           ;;
23750         esac
23751       fi
23752       if test "$with_gnu_ld" = no; then
23753         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23754         hardcode_libdir_separator_GCJ=:
23755
23756         case $host_cpu in
23757         hppa*64*|ia64*)
23758           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23759           hardcode_direct_GCJ=no
23760           hardcode_shlibpath_var_GCJ=no
23761           ;;
23762         *)
23763           hardcode_direct_GCJ=yes
23764           export_dynamic_flag_spec_GCJ='${wl}-E'
23765
23766           # hardcode_minus_L: Not really in the search PATH,
23767           # but as the default location of the library.
23768           hardcode_minus_L_GCJ=yes
23769           ;;
23770         esac
23771       fi
23772       ;;
23773
23774     irix5* | irix6* | nonstopux*)
23775       if test "$GCC" = yes; then
23776         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'
23777       else
23778         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'
23779         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23780       fi
23781       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23782       hardcode_libdir_separator_GCJ=:
23783       link_all_deplibs_GCJ=yes
23784       ;;
23785
23786     netbsd*)
23787       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23788         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23789       else
23790         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23791       fi
23792       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23793       hardcode_direct_GCJ=yes
23794       hardcode_shlibpath_var_GCJ=no
23795       ;;
23796
23797     newsos6)
23798       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23799       hardcode_direct_GCJ=yes
23800       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23801       hardcode_libdir_separator_GCJ=:
23802       hardcode_shlibpath_var_GCJ=no
23803       ;;
23804
23805     openbsd*)
23806       hardcode_direct_GCJ=yes
23807       hardcode_shlibpath_var_GCJ=no
23808       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23809         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23810         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23811         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23812         export_dynamic_flag_spec_GCJ='${wl}-E'
23813       else
23814        case $host_os in
23815          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23816            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23817            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23818            ;;
23819          *)
23820            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23821            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23822            ;;
23823        esac
23824       fi
23825       ;;
23826
23827     os2*)
23828       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23829       hardcode_minus_L_GCJ=yes
23830       allow_undefined_flag_GCJ=unsupported
23831       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'
23832       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23833       ;;
23834
23835     osf3*)
23836       if test "$GCC" = yes; then
23837         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23838         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'
23839       else
23840         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23841         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'
23842       fi
23843       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23844       hardcode_libdir_separator_GCJ=:
23845       ;;
23846
23847     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23848       if test "$GCC" = yes; then
23849         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23850         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'
23851         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23852       else
23853         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23854         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'
23855         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~
23856         $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'
23857
23858         # Both c and cxx compiler support -rpath directly
23859         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23860       fi
23861       hardcode_libdir_separator_GCJ=:
23862       ;;
23863
23864     solaris*)
23865       no_undefined_flag_GCJ=' -z text'
23866       if test "$GCC" = yes; then
23867         wlarc='${wl}'
23868         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23869         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23870           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23871       else
23872         wlarc=''
23873         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23874         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23875         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23876       fi
23877       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23878       hardcode_shlibpath_var_GCJ=no
23879       case $host_os in
23880       solaris2.[0-5] | solaris2.[0-5].*) ;;
23881       *)
23882         # The compiler driver will combine linker options so we
23883         # cannot just pass the convience library names through
23884         # without $wl, iff we do not link with $LD.
23885         # Luckily, gcc supports the same syntax we need for Sun Studio.
23886         # Supported since Solaris 2.6 (maybe 2.5.1?)
23887         case $wlarc in
23888         '')
23889           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23890         *)
23891           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' ;;
23892         esac ;;
23893       esac
23894       link_all_deplibs_GCJ=yes
23895       ;;
23896
23897     sunos4*)
23898       if test "x$host_vendor" = xsequent; then
23899         # Use $CC to link under sequent, because it throws in some extra .o
23900         # files that make .init and .fini sections work.
23901         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23902       else
23903         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23904       fi
23905       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23906       hardcode_direct_GCJ=yes
23907       hardcode_minus_L_GCJ=yes
23908       hardcode_shlibpath_var_GCJ=no
23909       ;;
23910
23911     sysv4)
23912       case $host_vendor in
23913         sni)
23914           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23915           hardcode_direct_GCJ=yes # is this really true???
23916         ;;
23917         siemens)
23918           ## LD is ld it makes a PLAMLIB
23919           ## CC just makes a GrossModule.
23920           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23921           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23922           hardcode_direct_GCJ=no
23923         ;;
23924         motorola)
23925           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23926           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23927         ;;
23928       esac
23929       runpath_var='LD_RUN_PATH'
23930       hardcode_shlibpath_var_GCJ=no
23931       ;;
23932
23933     sysv4.3*)
23934       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23935       hardcode_shlibpath_var_GCJ=no
23936       export_dynamic_flag_spec_GCJ='-Bexport'
23937       ;;
23938
23939     sysv4*MP*)
23940       if test -d /usr/nec; then
23941         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23942         hardcode_shlibpath_var_GCJ=no
23943         runpath_var=LD_RUN_PATH
23944         hardcode_runpath_var=yes
23945         ld_shlibs_GCJ=yes
23946       fi
23947       ;;
23948
23949     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23950       no_undefined_flag_GCJ='${wl}-z,text'
23951       archive_cmds_need_lc_GCJ=no
23952       hardcode_shlibpath_var_GCJ=no
23953       runpath_var='LD_RUN_PATH'
23954
23955       if test "$GCC" = yes; then
23956         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23957         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23958       else
23959         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23960         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23961       fi
23962       ;;
23963
23964     sysv5* | sco3.2v5* | sco5v6*)
23965       # Note: We can NOT use -z defs as we might desire, because we do not
23966       # link with -lc, and that would cause any symbols used from libc to
23967       # always be unresolved, which means just about no library would
23968       # ever link correctly.  If we're not using GNU ld we use -z text
23969       # though, which does catch some bad symbols but isn't as heavy-handed
23970       # as -z defs.
23971       no_undefined_flag_GCJ='${wl}-z,text'
23972       allow_undefined_flag_GCJ='${wl}-z,nodefs'
23973       archive_cmds_need_lc_GCJ=no
23974       hardcode_shlibpath_var_GCJ=no
23975       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23976       hardcode_libdir_separator_GCJ=':'
23977       link_all_deplibs_GCJ=yes
23978       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23979       runpath_var='LD_RUN_PATH'
23980
23981       if test "$GCC" = yes; then
23982         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23983         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23984       else
23985         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23986         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23987       fi
23988       ;;
23989
23990     uts4*)
23991       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23992       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23993       hardcode_shlibpath_var_GCJ=no
23994       ;;
23995
23996     *)
23997       ld_shlibs_GCJ=no
23998       ;;
23999     esac
24000   fi
24001
24002 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24003 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24004 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24005
24006 #
24007 # Do we need to explicitly link libc?
24008 #
24009 case "x$archive_cmds_need_lc_GCJ" in
24010 x|xyes)
24011   # Assume -lc should be added
24012   archive_cmds_need_lc_GCJ=yes
24013
24014   if test "$enable_shared" = yes && test "$GCC" = yes; then
24015     case $archive_cmds_GCJ in
24016     *'~'*)
24017       # FIXME: we may have to deal with multi-command sequences.
24018       ;;
24019     '$CC '*)
24020       # Test whether the compiler implicitly links with -lc since on some
24021       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24022       # to ld, don't add -lc before -lgcc.
24023       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24024 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24025       $rm conftest*
24026       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24027
24028       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24029   (eval $ac_compile) 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); } 2>conftest.err; then
24033         soname=conftest
24034         lib=conftest
24035         libobjs=conftest.$ac_objext
24036         deplibs=
24037         wl=$lt_prog_compiler_wl_GCJ
24038         pic_flag=$lt_prog_compiler_pic_GCJ
24039         compiler_flags=-v
24040         linker_flags=-v
24041         verstring=
24042         output_objdir=.
24043         libname=conftest
24044         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24045         allow_undefined_flag_GCJ=
24046         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24047   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24048   ac_status=$?
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }
24051         then
24052           archive_cmds_need_lc_GCJ=no
24053         else
24054           archive_cmds_need_lc_GCJ=yes
24055         fi
24056         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24057       else
24058         cat conftest.err 1>&5
24059       fi
24060       $rm conftest*
24061       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24062 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24063       ;;
24064     esac
24065   fi
24066   ;;
24067 esac
24068
24069 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24070 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24071 library_names_spec=
24072 libname_spec='lib$name'
24073 soname_spec=
24074 shrext_cmds=".so"
24075 postinstall_cmds=
24076 postuninstall_cmds=
24077 finish_cmds=
24078 finish_eval=
24079 shlibpath_var=
24080 shlibpath_overrides_runpath=unknown
24081 version_type=none
24082 dynamic_linker="$host_os ld.so"
24083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24084 if test "$GCC" = yes; then
24085   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24086   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24087     # if the path contains ";" then we assume it to be the separator
24088     # otherwise default to the standard path separator (i.e. ":") - it is
24089     # assumed that no part of a normal pathname contains ";" but that should
24090     # okay in the real world where ";" in dirpaths is itself problematic.
24091     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24092   else
24093     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24094   fi
24095 else
24096   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24097 fi
24098 need_lib_prefix=unknown
24099 hardcode_into_libs=no
24100
24101 # when you set need_version to no, make sure it does not cause -set_version
24102 # flags to be left without arguments
24103 need_version=unknown
24104
24105 case $host_os in
24106 aix3*)
24107   version_type=linux
24108   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24109   shlibpath_var=LIBPATH
24110
24111   # AIX 3 has no versioning support, so we append a major version to the name.
24112   soname_spec='${libname}${release}${shared_ext}$major'
24113   ;;
24114
24115 aix4* | aix5*)
24116   version_type=linux
24117   need_lib_prefix=no
24118   need_version=no
24119   hardcode_into_libs=yes
24120   if test "$host_cpu" = ia64; then
24121     # AIX 5 supports IA64
24122     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24123     shlibpath_var=LD_LIBRARY_PATH
24124   else
24125     # With GCC up to 2.95.x, collect2 would create an import file
24126     # for dependence libraries.  The import file would start with
24127     # the line `#! .'.  This would cause the generated library to
24128     # depend on `.', always an invalid library.  This was fixed in
24129     # development snapshots of GCC prior to 3.0.
24130     case $host_os in
24131       aix4 | aix4.[01] | aix4.[01].*)
24132       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24133            echo ' yes '
24134            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24135         :
24136       else
24137         can_build_shared=no
24138       fi
24139       ;;
24140     esac
24141     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24142     # soname into executable. Probably we can add versioning support to
24143     # collect2, so additional links can be useful in future.
24144     if test "$aix_use_runtimelinking" = yes; then
24145       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24146       # instead of lib<name>.a to let people know that these are not
24147       # typical AIX shared libraries.
24148       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24149     else
24150       # We preserve .a as extension for shared libraries through AIX4.2
24151       # and later when we are not doing run time linking.
24152       library_names_spec='${libname}${release}.a $libname.a'
24153       soname_spec='${libname}${release}${shared_ext}$major'
24154     fi
24155     shlibpath_var=LIBPATH
24156   fi
24157   ;;
24158
24159 amigaos*)
24160   library_names_spec='$libname.ixlibrary $libname.a'
24161   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24162   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'
24163   ;;
24164
24165 beos*)
24166   library_names_spec='${libname}${shared_ext}'
24167   dynamic_linker="$host_os ld.so"
24168   shlibpath_var=LIBRARY_PATH
24169   ;;
24170
24171 bsdi[45]*)
24172   version_type=linux
24173   need_version=no
24174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24175   soname_spec='${libname}${release}${shared_ext}$major'
24176   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24177   shlibpath_var=LD_LIBRARY_PATH
24178   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24179   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24180   # the default ld.so.conf also contains /usr/contrib/lib and
24181   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24182   # libtool to hard-code these into programs
24183   ;;
24184
24185 cygwin* | mingw* | pw32*)
24186   version_type=windows
24187   shrext_cmds=".dll"
24188   need_version=no
24189   need_lib_prefix=no
24190
24191   case $GCC,$host_os in
24192   yes,cygwin* | yes,mingw* | yes,pw32*)
24193     library_names_spec='$libname.dll.a'
24194     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24195     postinstall_cmds='base_file=`basename \${file}`~
24196       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24197       dldir=$destdir/`dirname \$dlpath`~
24198       test -d \$dldir || mkdir -p \$dldir~
24199       $install_prog $dir/$dlname \$dldir/$dlname~
24200       chmod a+x \$dldir/$dlname'
24201     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24202       dlpath=$dir/\$dldll~
24203        $rm \$dlpath'
24204     shlibpath_overrides_runpath=yes
24205
24206     case $host_os in
24207     cygwin*)
24208       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24209       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24210       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24211       ;;
24212     mingw*)
24213       # MinGW DLLs use traditional 'lib' prefix
24214       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24215       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24216       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24217         # It is most probably a Windows format PATH printed by
24218         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24219         # path with ; separators, and with drive letters. We can handle the
24220         # drive letters (cygwin fileutils understands them), so leave them,
24221         # especially as we might pass files found there to a mingw objdump,
24222         # which wouldn't understand a cygwinified path. Ahh.
24223         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24224       else
24225         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24226       fi
24227       ;;
24228     pw32*)
24229       # pw32 DLLs use 'pw' prefix rather than 'lib'
24230       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24231       ;;
24232     esac
24233     ;;
24234
24235   *)
24236     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24237     ;;
24238   esac
24239   dynamic_linker='Win32 ld.exe'
24240   # FIXME: first we should search . and the directory the executable is in
24241   shlibpath_var=PATH
24242   ;;
24243
24244 darwin* | rhapsody*)
24245   dynamic_linker="$host_os dyld"
24246   version_type=darwin
24247   need_lib_prefix=no
24248   need_version=no
24249   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24250   soname_spec='${libname}${release}${major}$shared_ext'
24251   shlibpath_overrides_runpath=yes
24252   shlibpath_var=DYLD_LIBRARY_PATH
24253   shrext_cmds='.dylib'
24254   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24255   if test "$GCC" = yes; then
24256     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"`
24257   else
24258     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24259   fi
24260   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24261   ;;
24262
24263 dgux*)
24264   version_type=linux
24265   need_lib_prefix=no
24266   need_version=no
24267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24268   soname_spec='${libname}${release}${shared_ext}$major'
24269   shlibpath_var=LD_LIBRARY_PATH
24270   ;;
24271
24272 freebsd1*)
24273   dynamic_linker=no
24274   ;;
24275
24276 kfreebsd*-gnu)
24277   version_type=linux
24278   need_lib_prefix=no
24279   need_version=no
24280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24281   soname_spec='${libname}${release}${shared_ext}$major'
24282   shlibpath_var=LD_LIBRARY_PATH
24283   shlibpath_overrides_runpath=no
24284   hardcode_into_libs=yes
24285   dynamic_linker='GNU ld.so'
24286   ;;
24287
24288 freebsd* | dragonfly*)
24289   # DragonFly does not have aout.  When/if they implement a new
24290   # versioning mechanism, adjust this.
24291   if test -x /usr/bin/objformat; then
24292     objformat=`/usr/bin/objformat`
24293   else
24294     case $host_os in
24295     freebsd[123]*) objformat=aout ;;
24296     *) objformat=elf ;;
24297     esac
24298   fi
24299   version_type=freebsd-$objformat
24300   case $version_type in
24301     freebsd-elf*)
24302       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24303       need_version=no
24304       need_lib_prefix=no
24305       ;;
24306     freebsd-*)
24307       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24308       need_version=yes
24309       ;;
24310   esac
24311   shlibpath_var=LD_LIBRARY_PATH
24312   case $host_os in
24313   freebsd2*)
24314     shlibpath_overrides_runpath=yes
24315     ;;
24316   freebsd3.[01]* | freebsdelf3.[01]*)
24317     shlibpath_overrides_runpath=yes
24318     hardcode_into_libs=yes
24319     ;;
24320   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24321   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24322     shlibpath_overrides_runpath=no
24323     hardcode_into_libs=yes
24324     ;;
24325   freebsd*) # from 4.6 on
24326     shlibpath_overrides_runpath=yes
24327     hardcode_into_libs=yes
24328     ;;
24329   esac
24330   ;;
24331
24332 gnu*)
24333   version_type=linux
24334   need_lib_prefix=no
24335   need_version=no
24336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24337   soname_spec='${libname}${release}${shared_ext}$major'
24338   shlibpath_var=LD_LIBRARY_PATH
24339   hardcode_into_libs=yes
24340   ;;
24341
24342 hpux9* | hpux10* | hpux11*)
24343   # Give a soname corresponding to the major version so that dld.sl refuses to
24344   # link against other versions.
24345   version_type=sunos
24346   need_lib_prefix=no
24347   need_version=no
24348   case $host_cpu in
24349   ia64*)
24350     shrext_cmds='.so'
24351     hardcode_into_libs=yes
24352     dynamic_linker="$host_os dld.so"
24353     shlibpath_var=LD_LIBRARY_PATH
24354     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24356     soname_spec='${libname}${release}${shared_ext}$major'
24357     if test "X$HPUX_IA64_MODE" = X32; then
24358       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24359     else
24360       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24361     fi
24362     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24363     ;;
24364    hppa*64*)
24365      shrext_cmds='.sl'
24366      hardcode_into_libs=yes
24367      dynamic_linker="$host_os dld.sl"
24368      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24369      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24370      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24371      soname_spec='${libname}${release}${shared_ext}$major'
24372      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24373      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24374      ;;
24375    *)
24376     shrext_cmds='.sl'
24377     dynamic_linker="$host_os dld.sl"
24378     shlibpath_var=SHLIB_PATH
24379     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24381     soname_spec='${libname}${release}${shared_ext}$major'
24382     ;;
24383   esac
24384   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24385   postinstall_cmds='chmod 555 $lib'
24386   ;;
24387
24388 interix3*)
24389   version_type=linux
24390   need_lib_prefix=no
24391   need_version=no
24392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24393   soname_spec='${libname}${release}${shared_ext}$major'
24394   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24395   shlibpath_var=LD_LIBRARY_PATH
24396   shlibpath_overrides_runpath=no
24397   hardcode_into_libs=yes
24398   ;;
24399
24400 irix5* | irix6* | nonstopux*)
24401   case $host_os in
24402     nonstopux*) version_type=nonstopux ;;
24403     *)
24404         if test "$lt_cv_prog_gnu_ld" = yes; then
24405                 version_type=linux
24406         else
24407                 version_type=irix
24408         fi ;;
24409   esac
24410   need_lib_prefix=no
24411   need_version=no
24412   soname_spec='${libname}${release}${shared_ext}$major'
24413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24414   case $host_os in
24415   irix5* | nonstopux*)
24416     libsuff= shlibsuff=
24417     ;;
24418   *)
24419     case $LD in # libtool.m4 will add one of these switches to LD
24420     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24421       libsuff= shlibsuff= libmagic=32-bit;;
24422     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24423       libsuff=32 shlibsuff=N32 libmagic=N32;;
24424     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24425       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24426     *) libsuff= shlibsuff= libmagic=never-match;;
24427     esac
24428     ;;
24429   esac
24430   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24431   shlibpath_overrides_runpath=no
24432   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24433   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24434   hardcode_into_libs=yes
24435   ;;
24436
24437 # No shared lib support for Linux oldld, aout, or coff.
24438 linux*oldld* | linux*aout* | linux*coff*)
24439   dynamic_linker=no
24440   ;;
24441
24442 # This must be Linux ELF.
24443 linux*)
24444   version_type=linux
24445   need_lib_prefix=no
24446   need_version=no
24447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24448   soname_spec='${libname}${release}${shared_ext}$major'
24449   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24450   shlibpath_var=LD_LIBRARY_PATH
24451   shlibpath_overrides_runpath=no
24452   # This implies no fast_install, which is unacceptable.
24453   # Some rework will be needed to allow for fast_install
24454   # before this can be enabled.
24455   hardcode_into_libs=yes
24456
24457   # Append ld.so.conf contents to the search path
24458   if test -f /etc/ld.so.conf; then
24459     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' ' '`
24460     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24461   fi
24462
24463   # We used to test for /lib/ld.so.1 and disable shared libraries on
24464   # powerpc, because MkLinux only supported shared libraries with the
24465   # GNU dynamic linker.  Since this was broken with cross compilers,
24466   # most powerpc-linux boxes support dynamic linking these days and
24467   # people can always --disable-shared, the test was removed, and we
24468   # assume the GNU/Linux dynamic linker is in use.
24469   dynamic_linker='GNU/Linux ld.so'
24470   ;;
24471
24472 knetbsd*-gnu)
24473   version_type=linux
24474   need_lib_prefix=no
24475   need_version=no
24476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24477   soname_spec='${libname}${release}${shared_ext}$major'
24478   shlibpath_var=LD_LIBRARY_PATH
24479   shlibpath_overrides_runpath=no
24480   hardcode_into_libs=yes
24481   dynamic_linker='GNU ld.so'
24482   ;;
24483
24484 netbsd*)
24485   version_type=sunos
24486   need_lib_prefix=no
24487   need_version=no
24488   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24490     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24491     dynamic_linker='NetBSD (a.out) ld.so'
24492   else
24493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24494     soname_spec='${libname}${release}${shared_ext}$major'
24495     dynamic_linker='NetBSD ld.elf_so'
24496   fi
24497   shlibpath_var=LD_LIBRARY_PATH
24498   shlibpath_overrides_runpath=yes
24499   hardcode_into_libs=yes
24500   ;;
24501
24502 newsos6)
24503   version_type=linux
24504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24505   shlibpath_var=LD_LIBRARY_PATH
24506   shlibpath_overrides_runpath=yes
24507   ;;
24508
24509 nto-qnx*)
24510   version_type=linux
24511   need_lib_prefix=no
24512   need_version=no
24513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24514   soname_spec='${libname}${release}${shared_ext}$major'
24515   shlibpath_var=LD_LIBRARY_PATH
24516   shlibpath_overrides_runpath=yes
24517   ;;
24518
24519 openbsd*)
24520   version_type=sunos
24521   sys_lib_dlsearch_path_spec="/usr/lib"
24522   need_lib_prefix=no
24523   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24524   case $host_os in
24525     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24526     *)                         need_version=no  ;;
24527   esac
24528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24529   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24530   shlibpath_var=LD_LIBRARY_PATH
24531   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24532     case $host_os in
24533       openbsd2.[89] | openbsd2.[89].*)
24534         shlibpath_overrides_runpath=no
24535         ;;
24536       *)
24537         shlibpath_overrides_runpath=yes
24538         ;;
24539       esac
24540   else
24541     shlibpath_overrides_runpath=yes
24542   fi
24543   ;;
24544
24545 os2*)
24546   libname_spec='$name'
24547   shrext_cmds=".dll"
24548   need_lib_prefix=no
24549   library_names_spec='$libname${shared_ext} $libname.a'
24550   dynamic_linker='OS/2 ld.exe'
24551   shlibpath_var=LIBPATH
24552   ;;
24553
24554 osf3* | osf4* | osf5*)
24555   version_type=osf
24556   need_lib_prefix=no
24557   need_version=no
24558   soname_spec='${libname}${release}${shared_ext}$major'
24559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24560   shlibpath_var=LD_LIBRARY_PATH
24561   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24562   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24563   ;;
24564
24565 solaris*)
24566   version_type=linux
24567   need_lib_prefix=no
24568   need_version=no
24569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24570   soname_spec='${libname}${release}${shared_ext}$major'
24571   shlibpath_var=LD_LIBRARY_PATH
24572   shlibpath_overrides_runpath=yes
24573   hardcode_into_libs=yes
24574   # ldd complains unless libraries are executable
24575   postinstall_cmds='chmod +x $lib'
24576   ;;
24577
24578 sunos4*)
24579   version_type=sunos
24580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24581   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24582   shlibpath_var=LD_LIBRARY_PATH
24583   shlibpath_overrides_runpath=yes
24584   if test "$with_gnu_ld" = yes; then
24585     need_lib_prefix=no
24586   fi
24587   need_version=yes
24588   ;;
24589
24590 sysv4 | sysv4.3*)
24591   version_type=linux
24592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24593   soname_spec='${libname}${release}${shared_ext}$major'
24594   shlibpath_var=LD_LIBRARY_PATH
24595   case $host_vendor in
24596     sni)
24597       shlibpath_overrides_runpath=no
24598       need_lib_prefix=no
24599       export_dynamic_flag_spec='${wl}-Blargedynsym'
24600       runpath_var=LD_RUN_PATH
24601       ;;
24602     siemens)
24603       need_lib_prefix=no
24604       ;;
24605     motorola)
24606       need_lib_prefix=no
24607       need_version=no
24608       shlibpath_overrides_runpath=no
24609       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24610       ;;
24611   esac
24612   ;;
24613
24614 sysv4*MP*)
24615   if test -d /usr/nec ;then
24616     version_type=linux
24617     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24618     soname_spec='$libname${shared_ext}.$major'
24619     shlibpath_var=LD_LIBRARY_PATH
24620   fi
24621   ;;
24622
24623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24624   version_type=freebsd-elf
24625   need_lib_prefix=no
24626   need_version=no
24627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24628   soname_spec='${libname}${release}${shared_ext}$major'
24629   shlibpath_var=LD_LIBRARY_PATH
24630   hardcode_into_libs=yes
24631   if test "$with_gnu_ld" = yes; then
24632     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24633     shlibpath_overrides_runpath=no
24634   else
24635     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24636     shlibpath_overrides_runpath=yes
24637     case $host_os in
24638       sco3.2v5*)
24639         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24640         ;;
24641     esac
24642   fi
24643   sys_lib_dlsearch_path_spec='/usr/lib'
24644   ;;
24645
24646 uts4*)
24647   version_type=linux
24648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24649   soname_spec='${libname}${release}${shared_ext}$major'
24650   shlibpath_var=LD_LIBRARY_PATH
24651   ;;
24652
24653 *)
24654   dynamic_linker=no
24655   ;;
24656 esac
24657 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24658 echo "${ECHO_T}$dynamic_linker" >&6; }
24659 test "$dynamic_linker" = no && can_build_shared=no
24660
24661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24662 if test "$GCC" = yes; then
24663   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24664 fi
24665
24666 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24667 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24668 hardcode_action_GCJ=
24669 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24670    test -n "$runpath_var_GCJ" || \
24671    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24672
24673   # We can hardcode non-existant directories.
24674   if test "$hardcode_direct_GCJ" != no &&
24675      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24676      # have to relink, otherwise we might link with an installed library
24677      # when we should be linking with a yet-to-be-installed one
24678      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24679      test "$hardcode_minus_L_GCJ" != no; then
24680     # Linking always hardcodes the temporary library directory.
24681     hardcode_action_GCJ=relink
24682   else
24683     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24684     hardcode_action_GCJ=immediate
24685   fi
24686 else
24687   # We cannot hardcode anything, or else we can only hardcode existing
24688   # directories.
24689   hardcode_action_GCJ=unsupported
24690 fi
24691 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24692 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24693
24694 if test "$hardcode_action_GCJ" = relink; then
24695   # Fast installation is not supported
24696   enable_fast_install=no
24697 elif test "$shlibpath_overrides_runpath" = yes ||
24698      test "$enable_shared" = no; then
24699   # Fast installation is not necessary
24700   enable_fast_install=needless
24701 fi
24702
24703
24704 # The else clause should only fire when bootstrapping the
24705 # libtool distribution, otherwise you forgot to ship ltmain.sh
24706 # with your package, and you will get complaints that there are
24707 # no rules to generate ltmain.sh.
24708 if test -f "$ltmain"; then
24709   # See if we are running on zsh, and set the options which allow our commands through
24710   # without removal of \ escapes.
24711   if test -n "${ZSH_VERSION+set}" ; then
24712     setopt NO_GLOB_SUBST
24713   fi
24714   # Now quote all the things that may contain metacharacters while being
24715   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24716   # variables and quote the copies for generation of the libtool script.
24717   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24718     SED SHELL STRIP \
24719     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24720     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24721     deplibs_check_method reload_flag reload_cmds need_locks \
24722     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24723     lt_cv_sys_global_symbol_to_c_name_address \
24724     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24725     old_postinstall_cmds old_postuninstall_cmds \
24726     compiler_GCJ \
24727     CC_GCJ \
24728     LD_GCJ \
24729     lt_prog_compiler_wl_GCJ \
24730     lt_prog_compiler_pic_GCJ \
24731     lt_prog_compiler_static_GCJ \
24732     lt_prog_compiler_no_builtin_flag_GCJ \
24733     export_dynamic_flag_spec_GCJ \
24734     thread_safe_flag_spec_GCJ \
24735     whole_archive_flag_spec_GCJ \
24736     enable_shared_with_static_runtimes_GCJ \
24737     old_archive_cmds_GCJ \
24738     old_archive_from_new_cmds_GCJ \
24739     predep_objects_GCJ \
24740     postdep_objects_GCJ \
24741     predeps_GCJ \
24742     postdeps_GCJ \
24743     compiler_lib_search_path_GCJ \
24744     archive_cmds_GCJ \
24745     archive_expsym_cmds_GCJ \
24746     postinstall_cmds_GCJ \
24747     postuninstall_cmds_GCJ \
24748     old_archive_from_expsyms_cmds_GCJ \
24749     allow_undefined_flag_GCJ \
24750     no_undefined_flag_GCJ \
24751     export_symbols_cmds_GCJ \
24752     hardcode_libdir_flag_spec_GCJ \
24753     hardcode_libdir_flag_spec_ld_GCJ \
24754     hardcode_libdir_separator_GCJ \
24755     hardcode_automatic_GCJ \
24756     module_cmds_GCJ \
24757     module_expsym_cmds_GCJ \
24758     lt_cv_prog_compiler_c_o_GCJ \
24759     exclude_expsyms_GCJ \
24760     include_expsyms_GCJ; do
24761
24762     case $var in
24763     old_archive_cmds_GCJ | \
24764     old_archive_from_new_cmds_GCJ | \
24765     archive_cmds_GCJ | \
24766     archive_expsym_cmds_GCJ | \
24767     module_cmds_GCJ | \
24768     module_expsym_cmds_GCJ | \
24769     old_archive_from_expsyms_cmds_GCJ | \
24770     export_symbols_cmds_GCJ | \
24771     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24772     postinstall_cmds | postuninstall_cmds | \
24773     old_postinstall_cmds | old_postuninstall_cmds | \
24774     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24775       # Double-quote double-evaled strings.
24776       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24777       ;;
24778     *)
24779       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24780       ;;
24781     esac
24782   done
24783
24784   case $lt_echo in
24785   *'\$0 --fallback-echo"')
24786     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24787     ;;
24788   esac
24789
24790 cfgfile="$ofile"
24791
24792   cat <<__EOF__ >> "$cfgfile"
24793 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24794
24795 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24796
24797 # Shell to use when invoking shell scripts.
24798 SHELL=$lt_SHELL
24799
24800 # Whether or not to build shared libraries.
24801 build_libtool_libs=$enable_shared
24802
24803 # Whether or not to build static libraries.
24804 build_old_libs=$enable_static
24805
24806 # Whether or not to add -lc for building shared libraries.
24807 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24808
24809 # Whether or not to disallow shared libs when runtime libs are static
24810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24811
24812 # Whether or not to optimize for fast installation.
24813 fast_install=$enable_fast_install
24814
24815 # The host system.
24816 host_alias=$host_alias
24817 host=$host
24818 host_os=$host_os
24819
24820 # The build system.
24821 build_alias=$build_alias
24822 build=$build
24823 build_os=$build_os
24824
24825 # An echo program that does not interpret backslashes.
24826 echo=$lt_echo
24827
24828 # The archiver.
24829 AR=$lt_AR
24830 AR_FLAGS=$lt_AR_FLAGS
24831
24832 # A C compiler.
24833 LTCC=$lt_LTCC
24834
24835 # LTCC compiler flags.
24836 LTCFLAGS=$lt_LTCFLAGS
24837
24838 # A language-specific compiler.
24839 CC=$lt_compiler_GCJ
24840
24841 # Is the compiler the GNU C compiler?
24842 with_gcc=$GCC_GCJ
24843
24844 # An ERE matcher.
24845 EGREP=$lt_EGREP
24846
24847 # The linker used to build libraries.
24848 LD=$lt_LD_GCJ
24849
24850 # Whether we need hard or soft links.
24851 LN_S=$lt_LN_S
24852
24853 # A BSD-compatible nm program.
24854 NM=$lt_NM
24855
24856 # A symbol stripping program
24857 STRIP=$lt_STRIP
24858
24859 # Used to examine libraries when file_magic_cmd begins "file"
24860 MAGIC_CMD=$MAGIC_CMD
24861
24862 # Used on cygwin: DLL creation program.
24863 DLLTOOL="$DLLTOOL"
24864
24865 # Used on cygwin: object dumper.
24866 OBJDUMP="$OBJDUMP"
24867
24868 # Used on cygwin: assembler.
24869 AS="$AS"
24870
24871 # The name of the directory that contains temporary libtool files.
24872 objdir=$objdir
24873
24874 # How to create reloadable object files.
24875 reload_flag=$lt_reload_flag
24876 reload_cmds=$lt_reload_cmds
24877
24878 # How to pass a linker flag through the compiler.
24879 wl=$lt_lt_prog_compiler_wl_GCJ
24880
24881 # Object file suffix (normally "o").
24882 objext="$ac_objext"
24883
24884 # Old archive suffix (normally "a").
24885 libext="$libext"
24886
24887 # Shared library suffix (normally ".so").
24888 shrext_cmds='$shrext_cmds'
24889
24890 # Executable file suffix (normally "").
24891 exeext="$exeext"
24892
24893 # Additional compiler flags for building library objects.
24894 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24895 pic_mode=$pic_mode
24896
24897 # What is the maximum length of a command?
24898 max_cmd_len=$lt_cv_sys_max_cmd_len
24899
24900 # Does compiler simultaneously support -c and -o options?
24901 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24902
24903 # Must we lock files when doing compilation?
24904 need_locks=$lt_need_locks
24905
24906 # Do we need the lib prefix for modules?
24907 need_lib_prefix=$need_lib_prefix
24908
24909 # Do we need a version for libraries?
24910 need_version=$need_version
24911
24912 # Whether dlopen is supported.
24913 dlopen_support=$enable_dlopen
24914
24915 # Whether dlopen of programs is supported.
24916 dlopen_self=$enable_dlopen_self
24917
24918 # Whether dlopen of statically linked programs is supported.
24919 dlopen_self_static=$enable_dlopen_self_static
24920
24921 # Compiler flag to prevent dynamic linking.
24922 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24923
24924 # Compiler flag to turn off builtin functions.
24925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24926
24927 # Compiler flag to allow reflexive dlopens.
24928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24929
24930 # Compiler flag to generate shared objects directly from archives.
24931 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24932
24933 # Compiler flag to generate thread-safe objects.
24934 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24935
24936 # Library versioning type.
24937 version_type=$version_type
24938
24939 # Format of library name prefix.
24940 libname_spec=$lt_libname_spec
24941
24942 # List of archive names.  First name is the real one, the rest are links.
24943 # The last name is the one that the linker finds with -lNAME.
24944 library_names_spec=$lt_library_names_spec
24945
24946 # The coded name of the library, if different from the real name.
24947 soname_spec=$lt_soname_spec
24948
24949 # Commands used to build and install an old-style archive.
24950 RANLIB=$lt_RANLIB
24951 old_archive_cmds=$lt_old_archive_cmds_GCJ
24952 old_postinstall_cmds=$lt_old_postinstall_cmds
24953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24954
24955 # Create an old-style archive from a shared archive.
24956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24957
24958 # Create a temporary old-style archive to link instead of a shared archive.
24959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24960
24961 # Commands used to build and install a shared archive.
24962 archive_cmds=$lt_archive_cmds_GCJ
24963 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24964 postinstall_cmds=$lt_postinstall_cmds
24965 postuninstall_cmds=$lt_postuninstall_cmds
24966
24967 # Commands used to build a loadable module (assumed same as above if empty)
24968 module_cmds=$lt_module_cmds_GCJ
24969 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24970
24971 # Commands to strip libraries.
24972 old_striplib=$lt_old_striplib
24973 striplib=$lt_striplib
24974
24975 # Dependencies to place before the objects being linked to create a
24976 # shared library.
24977 predep_objects=$lt_predep_objects_GCJ
24978
24979 # Dependencies to place after the objects being linked to create a
24980 # shared library.
24981 postdep_objects=$lt_postdep_objects_GCJ
24982
24983 # Dependencies to place before the objects being linked to create a
24984 # shared library.
24985 predeps=$lt_predeps_GCJ
24986
24987 # Dependencies to place after the objects being linked to create a
24988 # shared library.
24989 postdeps=$lt_postdeps_GCJ
24990
24991 # The library search path used internally by the compiler when linking
24992 # a shared library.
24993 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24994
24995 # Method to check whether dependent libraries are shared objects.
24996 deplibs_check_method=$lt_deplibs_check_method
24997
24998 # Command to use when deplibs_check_method == file_magic.
24999 file_magic_cmd=$lt_file_magic_cmd
25000
25001 # Flag that allows shared libraries with undefined symbols to be built.
25002 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25003
25004 # Flag that forces no undefined symbols.
25005 no_undefined_flag=$lt_no_undefined_flag_GCJ
25006
25007 # Commands used to finish a libtool library installation in a directory.
25008 finish_cmds=$lt_finish_cmds
25009
25010 # Same as above, but a single script fragment to be evaled but not shown.
25011 finish_eval=$lt_finish_eval
25012
25013 # Take the output of nm and produce a listing of raw symbols and C names.
25014 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25015
25016 # Transform the output of nm in a proper C declaration
25017 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25018
25019 # Transform the output of nm in a C name address pair
25020 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25021
25022 # This is the shared library runtime path variable.
25023 runpath_var=$runpath_var
25024
25025 # This is the shared library path variable.
25026 shlibpath_var=$shlibpath_var
25027
25028 # Is shlibpath searched before the hard-coded library search path?
25029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25030
25031 # How to hardcode a shared library path into an executable.
25032 hardcode_action=$hardcode_action_GCJ
25033
25034 # Whether we should hardcode library paths into libraries.
25035 hardcode_into_libs=$hardcode_into_libs
25036
25037 # Flag to hardcode \$libdir into a binary during linking.
25038 # This must work even if \$libdir does not exist.
25039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25040
25041 # If ld is used when linking, flag to hardcode \$libdir into
25042 # a binary during linking. This must work even if \$libdir does
25043 # not exist.
25044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25045
25046 # Whether we need a single -rpath flag with a separated argument.
25047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25048
25049 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25050 # resulting binary.
25051 hardcode_direct=$hardcode_direct_GCJ
25052
25053 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25054 # resulting binary.
25055 hardcode_minus_L=$hardcode_minus_L_GCJ
25056
25057 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25058 # the resulting binary.
25059 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25060
25061 # Set to yes if building a shared library automatically hardcodes DIR into the library
25062 # and all subsequent libraries and executables linked against it.
25063 hardcode_automatic=$hardcode_automatic_GCJ
25064
25065 # Variables whose values should be saved in libtool wrapper scripts and
25066 # restored at relink time.
25067 variables_saved_for_relink="$variables_saved_for_relink"
25068
25069 # Whether libtool must link a program against all its dependency libraries.
25070 link_all_deplibs=$link_all_deplibs_GCJ
25071
25072 # Compile-time system search path for libraries
25073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25074
25075 # Run-time system search path for libraries
25076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25077
25078 # Fix the shell variable \$srcfile for the compiler.
25079 fix_srcfile_path="$fix_srcfile_path_GCJ"
25080
25081 # Set to yes if exported symbols are required.
25082 always_export_symbols=$always_export_symbols_GCJ
25083
25084 # The commands to list exported symbols.
25085 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25086
25087 # The commands to extract the exported symbol list from a shared archive.
25088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25089
25090 # Symbols that should not be listed in the preloaded symbols.
25091 exclude_expsyms=$lt_exclude_expsyms_GCJ
25092
25093 # Symbols that must always be exported.
25094 include_expsyms=$lt_include_expsyms_GCJ
25095
25096 # ### END LIBTOOL TAG CONFIG: $tagname
25097
25098 __EOF__
25099
25100
25101 else
25102   # If there is no Makefile yet, we rely on a make rule to execute
25103   # `config.status --recheck' to rerun these tests and create the
25104   # libtool script then.
25105   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25106   if test -f "$ltmain_in"; then
25107     test -f Makefile && make "$ltmain"
25108   fi
25109 fi
25110
25111
25112 ac_ext=c
25113 ac_cpp='$CPP $CPPFLAGS'
25114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25117
25118 CC="$lt_save_CC"
25119
25120         else
25121           tagname=""
25122         fi
25123         ;;
25124
25125       RC)
25126         ac_ext=c
25127 ac_cpp='$CPP $CPPFLAGS'
25128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25131
25132
25133 # Source file extension for RC test sources.
25134 ac_ext=rc
25135
25136 # Object file extension for compiled RC test sources.
25137 objext=o
25138 objext_RC=$objext
25139
25140 # Code to be used in simple compile tests
25141 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25142
25143 # Code to be used in simple link tests
25144 lt_simple_link_test_code="$lt_simple_compile_test_code"
25145
25146 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25147
25148 # If no C compiler was specified, use CC.
25149 LTCC=${LTCC-"$CC"}
25150
25151 # If no C compiler flags were specified, use CFLAGS.
25152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25153
25154 # Allow CC to be a program name with arguments.
25155 compiler=$CC
25156
25157
25158 # save warnings/boilerplate of simple test code
25159 ac_outfile=conftest.$ac_objext
25160 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25161 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25162 _lt_compiler_boilerplate=`cat conftest.err`
25163 $rm conftest*
25164
25165 ac_outfile=conftest.$ac_objext
25166 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25167 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25168 _lt_linker_boilerplate=`cat conftest.err`
25169 $rm conftest*
25170
25171
25172 # Allow CC to be a program name with arguments.
25173 lt_save_CC="$CC"
25174 CC=${RC-"windres"}
25175 compiler=$CC
25176 compiler_RC=$CC
25177 for cc_temp in $compiler""; do
25178   case $cc_temp in
25179     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25180     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25181     \-*) ;;
25182     *) break;;
25183   esac
25184 done
25185 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25186
25187 lt_cv_prog_compiler_c_o_RC=yes
25188
25189 # The else clause should only fire when bootstrapping the
25190 # libtool distribution, otherwise you forgot to ship ltmain.sh
25191 # with your package, and you will get complaints that there are
25192 # no rules to generate ltmain.sh.
25193 if test -f "$ltmain"; then
25194   # See if we are running on zsh, and set the options which allow our commands through
25195   # without removal of \ escapes.
25196   if test -n "${ZSH_VERSION+set}" ; then
25197     setopt NO_GLOB_SUBST
25198   fi
25199   # Now quote all the things that may contain metacharacters while being
25200   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25201   # variables and quote the copies for generation of the libtool script.
25202   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25203     SED SHELL STRIP \
25204     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25205     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25206     deplibs_check_method reload_flag reload_cmds need_locks \
25207     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25208     lt_cv_sys_global_symbol_to_c_name_address \
25209     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25210     old_postinstall_cmds old_postuninstall_cmds \
25211     compiler_RC \
25212     CC_RC \
25213     LD_RC \
25214     lt_prog_compiler_wl_RC \
25215     lt_prog_compiler_pic_RC \
25216     lt_prog_compiler_static_RC \
25217     lt_prog_compiler_no_builtin_flag_RC \
25218     export_dynamic_flag_spec_RC \
25219     thread_safe_flag_spec_RC \
25220     whole_archive_flag_spec_RC \
25221     enable_shared_with_static_runtimes_RC \
25222     old_archive_cmds_RC \
25223     old_archive_from_new_cmds_RC \
25224     predep_objects_RC \
25225     postdep_objects_RC \
25226     predeps_RC \
25227     postdeps_RC \
25228     compiler_lib_search_path_RC \
25229     archive_cmds_RC \
25230     archive_expsym_cmds_RC \
25231     postinstall_cmds_RC \
25232     postuninstall_cmds_RC \
25233     old_archive_from_expsyms_cmds_RC \
25234     allow_undefined_flag_RC \
25235     no_undefined_flag_RC \
25236     export_symbols_cmds_RC \
25237     hardcode_libdir_flag_spec_RC \
25238     hardcode_libdir_flag_spec_ld_RC \
25239     hardcode_libdir_separator_RC \
25240     hardcode_automatic_RC \
25241     module_cmds_RC \
25242     module_expsym_cmds_RC \
25243     lt_cv_prog_compiler_c_o_RC \
25244     exclude_expsyms_RC \
25245     include_expsyms_RC; do
25246
25247     case $var in
25248     old_archive_cmds_RC | \
25249     old_archive_from_new_cmds_RC | \
25250     archive_cmds_RC | \
25251     archive_expsym_cmds_RC | \
25252     module_cmds_RC | \
25253     module_expsym_cmds_RC | \
25254     old_archive_from_expsyms_cmds_RC | \
25255     export_symbols_cmds_RC | \
25256     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25257     postinstall_cmds | postuninstall_cmds | \
25258     old_postinstall_cmds | old_postuninstall_cmds | \
25259     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25260       # Double-quote double-evaled strings.
25261       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25262       ;;
25263     *)
25264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25265       ;;
25266     esac
25267   done
25268
25269   case $lt_echo in
25270   *'\$0 --fallback-echo"')
25271     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25272     ;;
25273   esac
25274
25275 cfgfile="$ofile"
25276
25277   cat <<__EOF__ >> "$cfgfile"
25278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25279
25280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25281
25282 # Shell to use when invoking shell scripts.
25283 SHELL=$lt_SHELL
25284
25285 # Whether or not to build shared libraries.
25286 build_libtool_libs=$enable_shared
25287
25288 # Whether or not to build static libraries.
25289 build_old_libs=$enable_static
25290
25291 # Whether or not to add -lc for building shared libraries.
25292 build_libtool_need_lc=$archive_cmds_need_lc_RC
25293
25294 # Whether or not to disallow shared libs when runtime libs are static
25295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25296
25297 # Whether or not to optimize for fast installation.
25298 fast_install=$enable_fast_install
25299
25300 # The host system.
25301 host_alias=$host_alias
25302 host=$host
25303 host_os=$host_os
25304
25305 # The build system.
25306 build_alias=$build_alias
25307 build=$build
25308 build_os=$build_os
25309
25310 # An echo program that does not interpret backslashes.
25311 echo=$lt_echo
25312
25313 # The archiver.
25314 AR=$lt_AR
25315 AR_FLAGS=$lt_AR_FLAGS
25316
25317 # A C compiler.
25318 LTCC=$lt_LTCC
25319
25320 # LTCC compiler flags.
25321 LTCFLAGS=$lt_LTCFLAGS
25322
25323 # A language-specific compiler.
25324 CC=$lt_compiler_RC
25325
25326 # Is the compiler the GNU C compiler?
25327 with_gcc=$GCC_RC
25328
25329 # An ERE matcher.
25330 EGREP=$lt_EGREP
25331
25332 # The linker used to build libraries.
25333 LD=$lt_LD_RC
25334
25335 # Whether we need hard or soft links.
25336 LN_S=$lt_LN_S
25337
25338 # A BSD-compatible nm program.
25339 NM=$lt_NM
25340
25341 # A symbol stripping program
25342 STRIP=$lt_STRIP
25343
25344 # Used to examine libraries when file_magic_cmd begins "file"
25345 MAGIC_CMD=$MAGIC_CMD
25346
25347 # Used on cygwin: DLL creation program.
25348 DLLTOOL="$DLLTOOL"
25349
25350 # Used on cygwin: object dumper.
25351 OBJDUMP="$OBJDUMP"
25352
25353 # Used on cygwin: assembler.
25354 AS="$AS"
25355
25356 # The name of the directory that contains temporary libtool files.
25357 objdir=$objdir
25358
25359 # How to create reloadable object files.
25360 reload_flag=$lt_reload_flag
25361 reload_cmds=$lt_reload_cmds
25362
25363 # How to pass a linker flag through the compiler.
25364 wl=$lt_lt_prog_compiler_wl_RC
25365
25366 # Object file suffix (normally "o").
25367 objext="$ac_objext"
25368
25369 # Old archive suffix (normally "a").
25370 libext="$libext"
25371
25372 # Shared library suffix (normally ".so").
25373 shrext_cmds='$shrext_cmds'
25374
25375 # Executable file suffix (normally "").
25376 exeext="$exeext"
25377
25378 # Additional compiler flags for building library objects.
25379 pic_flag=$lt_lt_prog_compiler_pic_RC
25380 pic_mode=$pic_mode
25381
25382 # What is the maximum length of a command?
25383 max_cmd_len=$lt_cv_sys_max_cmd_len
25384
25385 # Does compiler simultaneously support -c and -o options?
25386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25387
25388 # Must we lock files when doing compilation?
25389 need_locks=$lt_need_locks
25390
25391 # Do we need the lib prefix for modules?
25392 need_lib_prefix=$need_lib_prefix
25393
25394 # Do we need a version for libraries?
25395 need_version=$need_version
25396
25397 # Whether dlopen is supported.
25398 dlopen_support=$enable_dlopen
25399
25400 # Whether dlopen of programs is supported.
25401 dlopen_self=$enable_dlopen_self
25402
25403 # Whether dlopen of statically linked programs is supported.
25404 dlopen_self_static=$enable_dlopen_self_static
25405
25406 # Compiler flag to prevent dynamic linking.
25407 link_static_flag=$lt_lt_prog_compiler_static_RC
25408
25409 # Compiler flag to turn off builtin functions.
25410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25411
25412 # Compiler flag to allow reflexive dlopens.
25413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25414
25415 # Compiler flag to generate shared objects directly from archives.
25416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25417
25418 # Compiler flag to generate thread-safe objects.
25419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25420
25421 # Library versioning type.
25422 version_type=$version_type
25423
25424 # Format of library name prefix.
25425 libname_spec=$lt_libname_spec
25426
25427 # List of archive names.  First name is the real one, the rest are links.
25428 # The last name is the one that the linker finds with -lNAME.
25429 library_names_spec=$lt_library_names_spec
25430
25431 # The coded name of the library, if different from the real name.
25432 soname_spec=$lt_soname_spec
25433
25434 # Commands used to build and install an old-style archive.
25435 RANLIB=$lt_RANLIB
25436 old_archive_cmds=$lt_old_archive_cmds_RC
25437 old_postinstall_cmds=$lt_old_postinstall_cmds
25438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25439
25440 # Create an old-style archive from a shared archive.
25441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25442
25443 # Create a temporary old-style archive to link instead of a shared archive.
25444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25445
25446 # Commands used to build and install a shared archive.
25447 archive_cmds=$lt_archive_cmds_RC
25448 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25449 postinstall_cmds=$lt_postinstall_cmds
25450 postuninstall_cmds=$lt_postuninstall_cmds
25451
25452 # Commands used to build a loadable module (assumed same as above if empty)
25453 module_cmds=$lt_module_cmds_RC
25454 module_expsym_cmds=$lt_module_expsym_cmds_RC
25455
25456 # Commands to strip libraries.
25457 old_striplib=$lt_old_striplib
25458 striplib=$lt_striplib
25459
25460 # Dependencies to place before the objects being linked to create a
25461 # shared library.
25462 predep_objects=$lt_predep_objects_RC
25463
25464 # Dependencies to place after the objects being linked to create a
25465 # shared library.
25466 postdep_objects=$lt_postdep_objects_RC
25467
25468 # Dependencies to place before the objects being linked to create a
25469 # shared library.
25470 predeps=$lt_predeps_RC
25471
25472 # Dependencies to place after the objects being linked to create a
25473 # shared library.
25474 postdeps=$lt_postdeps_RC
25475
25476 # The library search path used internally by the compiler when linking
25477 # a shared library.
25478 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25479
25480 # Method to check whether dependent libraries are shared objects.
25481 deplibs_check_method=$lt_deplibs_check_method
25482
25483 # Command to use when deplibs_check_method == file_magic.
25484 file_magic_cmd=$lt_file_magic_cmd
25485
25486 # Flag that allows shared libraries with undefined symbols to be built.
25487 allow_undefined_flag=$lt_allow_undefined_flag_RC
25488
25489 # Flag that forces no undefined symbols.
25490 no_undefined_flag=$lt_no_undefined_flag_RC
25491
25492 # Commands used to finish a libtool library installation in a directory.
25493 finish_cmds=$lt_finish_cmds
25494
25495 # Same as above, but a single script fragment to be evaled but not shown.
25496 finish_eval=$lt_finish_eval
25497
25498 # Take the output of nm and produce a listing of raw symbols and C names.
25499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25500
25501 # Transform the output of nm in a proper C declaration
25502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25503
25504 # Transform the output of nm in a C name address pair
25505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25506
25507 # This is the shared library runtime path variable.
25508 runpath_var=$runpath_var
25509
25510 # This is the shared library path variable.
25511 shlibpath_var=$shlibpath_var
25512
25513 # Is shlibpath searched before the hard-coded library search path?
25514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25515
25516 # How to hardcode a shared library path into an executable.
25517 hardcode_action=$hardcode_action_RC
25518
25519 # Whether we should hardcode library paths into libraries.
25520 hardcode_into_libs=$hardcode_into_libs
25521
25522 # Flag to hardcode \$libdir into a binary during linking.
25523 # This must work even if \$libdir does not exist.
25524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25525
25526 # If ld is used when linking, flag to hardcode \$libdir into
25527 # a binary during linking. This must work even if \$libdir does
25528 # not exist.
25529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25530
25531 # Whether we need a single -rpath flag with a separated argument.
25532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25533
25534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25535 # resulting binary.
25536 hardcode_direct=$hardcode_direct_RC
25537
25538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25539 # resulting binary.
25540 hardcode_minus_L=$hardcode_minus_L_RC
25541
25542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25543 # the resulting binary.
25544 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25545
25546 # Set to yes if building a shared library automatically hardcodes DIR into the library
25547 # and all subsequent libraries and executables linked against it.
25548 hardcode_automatic=$hardcode_automatic_RC
25549
25550 # Variables whose values should be saved in libtool wrapper scripts and
25551 # restored at relink time.
25552 variables_saved_for_relink="$variables_saved_for_relink"
25553
25554 # Whether libtool must link a program against all its dependency libraries.
25555 link_all_deplibs=$link_all_deplibs_RC
25556
25557 # Compile-time system search path for libraries
25558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25559
25560 # Run-time system search path for libraries
25561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25562
25563 # Fix the shell variable \$srcfile for the compiler.
25564 fix_srcfile_path="$fix_srcfile_path_RC"
25565
25566 # Set to yes if exported symbols are required.
25567 always_export_symbols=$always_export_symbols_RC
25568
25569 # The commands to list exported symbols.
25570 export_symbols_cmds=$lt_export_symbols_cmds_RC
25571
25572 # The commands to extract the exported symbol list from a shared archive.
25573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25574
25575 # Symbols that should not be listed in the preloaded symbols.
25576 exclude_expsyms=$lt_exclude_expsyms_RC
25577
25578 # Symbols that must always be exported.
25579 include_expsyms=$lt_include_expsyms_RC
25580
25581 # ### END LIBTOOL TAG CONFIG: $tagname
25582
25583 __EOF__
25584
25585
25586 else
25587   # If there is no Makefile yet, we rely on a make rule to execute
25588   # `config.status --recheck' to rerun these tests and create the
25589   # libtool script then.
25590   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25591   if test -f "$ltmain_in"; then
25592     test -f Makefile && make "$ltmain"
25593   fi
25594 fi
25595
25596
25597 ac_ext=c
25598 ac_cpp='$CPP $CPPFLAGS'
25599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25602
25603 CC="$lt_save_CC"
25604
25605         ;;
25606
25607       *)
25608         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25609 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25610    { (exit 1); exit 1; }; }
25611         ;;
25612       esac
25613
25614       # Append the new tag name to the list of available tags.
25615       if test -n "$tagname" ; then
25616       available_tags="$available_tags $tagname"
25617     fi
25618     fi
25619   done
25620   IFS="$lt_save_ifs"
25621
25622   # Now substitute the updated list of available tags.
25623   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25624     mv "${ofile}T" "$ofile"
25625     chmod +x "$ofile"
25626   else
25627     rm -f "${ofile}T"
25628     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25629 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25630    { (exit 1); exit 1; }; }
25631   fi
25632 fi
25633
25634
25635
25636 # This can be used to rebuild libtool when needed
25637 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25638
25639 # Always use our own libtool.
25640 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25641
25642 # Prevent multiple expansion
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664 if test "$lt_cv_dlopen_self" = "yes" ; then
25665
25666 cat >>confdefs.h <<\_ACEOF
25667 #define CAN_DLOPEN_SELF 1
25668 _ACEOF
25669
25670 fi
25671
25672 if test "$WITH_LLVMGCCDIR" = "default" ; then
25673   LLVMGCC="llvm-gcc${EXEEXT}"
25674   LLVMGXX="llvm-g++${EXEEXT}"
25675   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25676 set dummy $LLVMGCC; ac_word=$2
25677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25679 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25680   echo $ECHO_N "(cached) $ECHO_C" >&6
25681 else
25682   case $LLVMGCC in
25683   [\\/]* | ?:[\\/]*)
25684   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25685   ;;
25686   *)
25687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25688 for as_dir in $PATH
25689 do
25690   IFS=$as_save_IFS
25691   test -z "$as_dir" && as_dir=.
25692   for ac_exec_ext in '' $ac_executable_extensions; do
25693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25694     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25696     break 2
25697   fi
25698 done
25699 done
25700 IFS=$as_save_IFS
25701
25702   ;;
25703 esac
25704 fi
25705 LLVMGCC=$ac_cv_path_LLVMGCC
25706 if test -n "$LLVMGCC"; then
25707   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25708 echo "${ECHO_T}$LLVMGCC" >&6; }
25709 else
25710   { echo "$as_me:$LINENO: result: no" >&5
25711 echo "${ECHO_T}no" >&6; }
25712 fi
25713
25714
25715   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25716 set dummy $LLVMGXX; ac_word=$2
25717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25719 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25720   echo $ECHO_N "(cached) $ECHO_C" >&6
25721 else
25722   case $LLVMGXX in
25723   [\\/]* | ?:[\\/]*)
25724   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25725   ;;
25726   *)
25727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25728 for as_dir in $PATH
25729 do
25730   IFS=$as_save_IFS
25731   test -z "$as_dir" && as_dir=.
25732   for ac_exec_ext in '' $ac_executable_extensions; do
25733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25734     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25736     break 2
25737   fi
25738 done
25739 done
25740 IFS=$as_save_IFS
25741
25742   ;;
25743 esac
25744 fi
25745 LLVMGXX=$ac_cv_path_LLVMGXX
25746 if test -n "$LLVMGXX"; then
25747   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25748 echo "${ECHO_T}$LLVMGXX" >&6; }
25749 else
25750   { echo "$as_me:$LINENO: result: no" >&5
25751 echo "${ECHO_T}no" >&6; }
25752 fi
25753
25754
25755 else
25756   if test -z "$LLVMGCC"; then
25757     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25758   fi
25759   if test -z "$LLVMGXX"; then
25760     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25761   fi
25762   LLVMGCC=$LLVMGCC
25763
25764   LLVMGXX=$LLVMGXX
25765
25766 fi
25767
25768 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25769 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25770
25771 ICC=no
25772 IXX=no
25773 case $CC in
25774   icc*|icpc*)
25775     ICC=yes
25776     IXX=yes
25777     ;;
25778    *)
25779     ;;
25780 esac
25781
25782 if test "$GCC" != "yes" && test "$ICC" != "yes"
25783 then
25784   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25785 echo "$as_me: error: gcc|icc required but not found" >&2;}
25786    { (exit 1); exit 1; }; }
25787 fi
25788
25789 if test "$GXX" != "yes" && test "$IXX" != "yes"
25790 then
25791   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25792 echo "$as_me: error: g++|icc required but not found" >&2;}
25793    { (exit 1); exit 1; }; }
25794 fi
25795
25796 if test "$GCC" = "yes"
25797 then
25798   cat >conftest.$ac_ext <<_ACEOF
25799 #if !defined(__GNUC__) || __GNUC__ < 3
25800 #error Unsupported GCC version
25801 #endif
25802
25803 _ACEOF
25804 rm -f conftest.$ac_objext
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808   *) ac_try_echo=$ac_try;;
25809 esac
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811   (eval "$ac_compile") 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } && {
25818          test -z "$ac_c_werror_flag" ||
25819          test ! -s conftest.err
25820        } && test -s conftest.$ac_objext; then
25821   :
25822 else
25823   echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25825
25826         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25827 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25828    { (exit 1); exit 1; }; }
25829 fi
25830
25831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25832 fi
25833
25834 if test -z "$llvm_cv_gnu_make_command"
25835 then
25836   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25837 echo "$as_me: error: GNU Make required but not found" >&2;}
25838    { (exit 1); exit 1; }; }
25839 fi
25840
25841 { echo "$as_me:$LINENO: result: ok" >&5
25842 echo "${ECHO_T}ok" >&6; }
25843
25844
25845
25846 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25847 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25848 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25849   echo $ECHO_N "(cached) $ECHO_C" >&6
25850 else
25851   ac_check_lib_save_LIBS=$LIBS
25852 LIBS="-lelf  $LIBS"
25853 cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h.  */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h.  */
25859
25860 /* Override any GCC internal prototype to avoid an error.
25861    Use char because int might match the return type of a GCC
25862    builtin and then its argument prototype would still apply.  */
25863 #ifdef __cplusplus
25864 extern "C"
25865 #endif
25866 char elf_begin ();
25867 int
25868 main ()
25869 {
25870 return elf_begin ();
25871   ;
25872   return 0;
25873 }
25874 _ACEOF
25875 rm -f conftest.$ac_objext conftest$ac_exeext
25876 if { (ac_try="$ac_link"
25877 case "(($ac_try" in
25878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879   *) ac_try_echo=$ac_try;;
25880 esac
25881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25882   (eval "$ac_link") 2>conftest.er1
25883   ac_status=$?
25884   grep -v '^ *+' conftest.er1 >conftest.err
25885   rm -f conftest.er1
25886   cat conftest.err >&5
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); } && {
25889          test -z "$ac_c_werror_flag" ||
25890          test ! -s conftest.err
25891        } && test -s conftest$ac_exeext &&
25892        $as_test_x conftest$ac_exeext; then
25893   ac_cv_lib_elf_elf_begin=yes
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898         ac_cv_lib_elf_elf_begin=no
25899 fi
25900
25901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25902       conftest$ac_exeext conftest.$ac_ext
25903 LIBS=$ac_check_lib_save_LIBS
25904 fi
25905 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25906 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25907 if test $ac_cv_lib_elf_elf_begin = yes; then
25908   cat >>confdefs.h <<_ACEOF
25909 #define HAVE_LIBELF 1
25910 _ACEOF
25911
25912   LIBS="-lelf $LIBS"
25913
25914 fi
25915
25916
25917 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25918 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25919 if test "${ac_cv_lib_m_sin+set}" = set; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922   ac_check_lib_save_LIBS=$LIBS
25923 LIBS="-lm  $LIBS"
25924 cat >conftest.$ac_ext <<_ACEOF
25925 /* confdefs.h.  */
25926 _ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h.  */
25930
25931 /* Override any GCC internal prototype to avoid an error.
25932    Use char because int might match the return type of a GCC
25933    builtin and then its argument prototype would still apply.  */
25934 #ifdef __cplusplus
25935 extern "C"
25936 #endif
25937 char sin ();
25938 int
25939 main ()
25940 {
25941 return sin ();
25942   ;
25943   return 0;
25944 }
25945 _ACEOF
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950   *) ac_try_echo=$ac_try;;
25951 esac
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953   (eval "$ac_link") 2>conftest.er1
25954   ac_status=$?
25955   grep -v '^ *+' conftest.er1 >conftest.err
25956   rm -f conftest.er1
25957   cat conftest.err >&5
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); } && {
25960          test -z "$ac_c_werror_flag" ||
25961          test ! -s conftest.err
25962        } && test -s conftest$ac_exeext &&
25963        $as_test_x conftest$ac_exeext; then
25964   ac_cv_lib_m_sin=yes
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969         ac_cv_lib_m_sin=no
25970 fi
25971
25972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25973       conftest$ac_exeext conftest.$ac_ext
25974 LIBS=$ac_check_lib_save_LIBS
25975 fi
25976 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25977 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25978 if test $ac_cv_lib_m_sin = yes; then
25979   cat >>confdefs.h <<_ACEOF
25980 #define HAVE_LIBM 1
25981 _ACEOF
25982
25983   LIBS="-lm $LIBS"
25984
25985 fi
25986
25987 if test "$llvm_cv_os_type" = "MingW" ; then
25988
25989 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25990 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25991 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25992   echo $ECHO_N "(cached) $ECHO_C" >&6
25993 else
25994   ac_check_lib_save_LIBS=$LIBS
25995 LIBS="-limagehlp  $LIBS"
25996 cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002
26003
26004 int
26005 main ()
26006 {
26007 return main ();
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 rm -f conftest.$ac_objext conftest$ac_exeext
26013 if { (ac_try="$ac_link"
26014 case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019   (eval "$ac_link") 2>conftest.er1
26020   ac_status=$?
26021   grep -v '^ *+' conftest.er1 >conftest.err
26022   rm -f conftest.er1
26023   cat conftest.err >&5
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); } && {
26026          test -z "$ac_c_werror_flag" ||
26027          test ! -s conftest.err
26028        } && test -s conftest$ac_exeext &&
26029        $as_test_x conftest$ac_exeext; then
26030   ac_cv_lib_imagehlp_main=yes
26031 else
26032   echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26034
26035         ac_cv_lib_imagehlp_main=no
26036 fi
26037
26038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26039       conftest$ac_exeext conftest.$ac_ext
26040 LIBS=$ac_check_lib_save_LIBS
26041 fi
26042 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26043 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26044 if test $ac_cv_lib_imagehlp_main = yes; then
26045   cat >>confdefs.h <<_ACEOF
26046 #define HAVE_LIBIMAGEHLP 1
26047 _ACEOF
26048
26049   LIBS="-limagehlp $LIBS"
26050
26051 fi
26052
26053
26054 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26055 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26056 if test "${ac_cv_lib_psapi_main+set}" = set; then
26057   echo $ECHO_N "(cached) $ECHO_C" >&6
26058 else
26059   ac_check_lib_save_LIBS=$LIBS
26060 LIBS="-lpsapi  $LIBS"
26061 cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h.  */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h.  */
26067
26068
26069 int
26070 main ()
26071 {
26072 return main ();
26073   ;
26074   return 0;
26075 }
26076 _ACEOF
26077 rm -f conftest.$ac_objext conftest$ac_exeext
26078 if { (ac_try="$ac_link"
26079 case "(($ac_try" in
26080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081   *) ac_try_echo=$ac_try;;
26082 esac
26083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084   (eval "$ac_link") 2>conftest.er1
26085   ac_status=$?
26086   grep -v '^ *+' conftest.er1 >conftest.err
26087   rm -f conftest.er1
26088   cat conftest.err >&5
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); } && {
26091          test -z "$ac_c_werror_flag" ||
26092          test ! -s conftest.err
26093        } && test -s conftest$ac_exeext &&
26094        $as_test_x conftest$ac_exeext; then
26095   ac_cv_lib_psapi_main=yes
26096 else
26097   echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100         ac_cv_lib_psapi_main=no
26101 fi
26102
26103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26104       conftest$ac_exeext conftest.$ac_ext
26105 LIBS=$ac_check_lib_save_LIBS
26106 fi
26107 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26108 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26109 if test $ac_cv_lib_psapi_main = yes; then
26110   cat >>confdefs.h <<_ACEOF
26111 #define HAVE_LIBPSAPI 1
26112 _ACEOF
26113
26114   LIBS="-lpsapi $LIBS"
26115
26116 fi
26117
26118 fi
26119
26120 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26121 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26122 if test "${ac_cv_search_dlopen+set}" = set; then
26123   echo $ECHO_N "(cached) $ECHO_C" >&6
26124 else
26125   ac_func_search_save_LIBS=$LIBS
26126 cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132
26133 /* Override any GCC internal prototype to avoid an error.
26134    Use char because int might match the return type of a GCC
26135    builtin and then its argument prototype would still apply.  */
26136 #ifdef __cplusplus
26137 extern "C"
26138 #endif
26139 char dlopen ();
26140 int
26141 main ()
26142 {
26143 return dlopen ();
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 for ac_lib in '' dl; do
26149   if test -z "$ac_lib"; then
26150     ac_res="none required"
26151   else
26152     ac_res=-l$ac_lib
26153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26154   fi
26155   rm -f conftest.$ac_objext conftest$ac_exeext
26156 if { (ac_try="$ac_link"
26157 case "(($ac_try" in
26158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159   *) ac_try_echo=$ac_try;;
26160 esac
26161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162   (eval "$ac_link") 2>conftest.er1
26163   ac_status=$?
26164   grep -v '^ *+' conftest.er1 >conftest.err
26165   rm -f conftest.er1
26166   cat conftest.err >&5
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } && {
26169          test -z "$ac_c_werror_flag" ||
26170          test ! -s conftest.err
26171        } && test -s conftest$ac_exeext &&
26172        $as_test_x conftest$ac_exeext; then
26173   ac_cv_search_dlopen=$ac_res
26174 else
26175   echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178
26179 fi
26180
26181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26182       conftest$ac_exeext
26183   if test "${ac_cv_search_dlopen+set}" = set; then
26184   break
26185 fi
26186 done
26187 if test "${ac_cv_search_dlopen+set}" = set; then
26188   :
26189 else
26190   ac_cv_search_dlopen=no
26191 fi
26192 rm conftest.$ac_ext
26193 LIBS=$ac_func_search_save_LIBS
26194 fi
26195 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26196 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26197 ac_res=$ac_cv_search_dlopen
26198 if test "$ac_res" != no; then
26199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26200
26201 cat >>confdefs.h <<\_ACEOF
26202 #define HAVE_DLOPEN 1
26203 _ACEOF
26204
26205 else
26206   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26207 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26208 fi
26209
26210
26211 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
26212 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
26213 if test "${ac_cv_search_ffi_call+set}" = set; then
26214   echo $ECHO_N "(cached) $ECHO_C" >&6
26215 else
26216   ac_func_search_save_LIBS=$LIBS
26217 cat >conftest.$ac_ext <<_ACEOF
26218 /* confdefs.h.  */
26219 _ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h.  */
26223
26224 /* Override any GCC internal prototype to avoid an error.
26225    Use char because int might match the return type of a GCC
26226    builtin and then its argument prototype would still apply.  */
26227 #ifdef __cplusplus
26228 extern "C"
26229 #endif
26230 char ffi_call ();
26231 int
26232 main ()
26233 {
26234 return ffi_call ();
26235   ;
26236   return 0;
26237 }
26238 _ACEOF
26239 for ac_lib in '' ffi; do
26240   if test -z "$ac_lib"; then
26241     ac_res="none required"
26242   else
26243     ac_res=-l$ac_lib
26244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26245   fi
26246   rm -f conftest.$ac_objext conftest$ac_exeext
26247 if { (ac_try="$ac_link"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253   (eval "$ac_link") 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } && {
26260          test -z "$ac_c_werror_flag" ||
26261          test ! -s conftest.err
26262        } && test -s conftest$ac_exeext &&
26263        $as_test_x conftest$ac_exeext; then
26264   ac_cv_search_ffi_call=$ac_res
26265 else
26266   echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26268
26269
26270 fi
26271
26272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26273       conftest$ac_exeext
26274   if test "${ac_cv_search_ffi_call+set}" = set; then
26275   break
26276 fi
26277 done
26278 if test "${ac_cv_search_ffi_call+set}" = set; then
26279   :
26280 else
26281   ac_cv_search_ffi_call=no
26282 fi
26283 rm conftest.$ac_ext
26284 LIBS=$ac_func_search_save_LIBS
26285 fi
26286 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
26287 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
26288 ac_res=$ac_cv_search_ffi_call
26289 if test "$ac_res" != no; then
26290   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26291
26292 cat >>confdefs.h <<\_ACEOF
26293 #define HAVE_FFI_CALL 1
26294 _ACEOF
26295
26296 else
26297   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
26298 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
26299 fi
26300
26301
26302 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26303 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26304 if test "${ac_cv_search_mallinfo+set}" = set; then
26305   echo $ECHO_N "(cached) $ECHO_C" >&6
26306 else
26307   ac_func_search_save_LIBS=$LIBS
26308 cat >conftest.$ac_ext <<_ACEOF
26309 /* confdefs.h.  */
26310 _ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h.  */
26314
26315 /* Override any GCC internal prototype to avoid an error.
26316    Use char because int might match the return type of a GCC
26317    builtin and then its argument prototype would still apply.  */
26318 #ifdef __cplusplus
26319 extern "C"
26320 #endif
26321 char mallinfo ();
26322 int
26323 main ()
26324 {
26325 return mallinfo ();
26326   ;
26327   return 0;
26328 }
26329 _ACEOF
26330 for ac_lib in '' malloc; do
26331   if test -z "$ac_lib"; then
26332     ac_res="none required"
26333   else
26334     ac_res=-l$ac_lib
26335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26336   fi
26337   rm -f conftest.$ac_objext conftest$ac_exeext
26338 if { (ac_try="$ac_link"
26339 case "(($ac_try" in
26340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341   *) ac_try_echo=$ac_try;;
26342 esac
26343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344   (eval "$ac_link") 2>conftest.er1
26345   ac_status=$?
26346   grep -v '^ *+' conftest.er1 >conftest.err
26347   rm -f conftest.er1
26348   cat conftest.err >&5
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } && {
26351          test -z "$ac_c_werror_flag" ||
26352          test ! -s conftest.err
26353        } && test -s conftest$ac_exeext &&
26354        $as_test_x conftest$ac_exeext; then
26355   ac_cv_search_mallinfo=$ac_res
26356 else
26357   echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360
26361 fi
26362
26363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26364       conftest$ac_exeext
26365   if test "${ac_cv_search_mallinfo+set}" = set; then
26366   break
26367 fi
26368 done
26369 if test "${ac_cv_search_mallinfo+set}" = set; then
26370   :
26371 else
26372   ac_cv_search_mallinfo=no
26373 fi
26374 rm conftest.$ac_ext
26375 LIBS=$ac_func_search_save_LIBS
26376 fi
26377 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26378 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26379 ac_res=$ac_cv_search_mallinfo
26380 if test "$ac_res" != no; then
26381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26382
26383 cat >>confdefs.h <<\_ACEOF
26384 #define HAVE_MALLINFO 1
26385 _ACEOF
26386
26387 fi
26388
26389
26390 if test "$ENABLE_THREADS" -eq 1 ; then
26391
26392 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26393 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26394 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26395   echo $ECHO_N "(cached) $ECHO_C" >&6
26396 else
26397   ac_check_lib_save_LIBS=$LIBS
26398 LIBS="-lpthread  $LIBS"
26399 cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h.  */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h.  */
26405
26406 /* Override any GCC internal prototype to avoid an error.
26407    Use char because int might match the return type of a GCC
26408    builtin and then its argument prototype would still apply.  */
26409 #ifdef __cplusplus
26410 extern "C"
26411 #endif
26412 char pthread_mutex_init ();
26413 int
26414 main ()
26415 {
26416 return pthread_mutex_init ();
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428   (eval "$ac_link") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } && {
26435          test -z "$ac_c_werror_flag" ||
26436          test ! -s conftest.err
26437        } && test -s conftest$ac_exeext &&
26438        $as_test_x conftest$ac_exeext; then
26439   ac_cv_lib_pthread_pthread_mutex_init=yes
26440 else
26441   echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26443
26444         ac_cv_lib_pthread_pthread_mutex_init=no
26445 fi
26446
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448       conftest$ac_exeext conftest.$ac_ext
26449 LIBS=$ac_check_lib_save_LIBS
26450 fi
26451 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26452 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26453 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26454   cat >>confdefs.h <<_ACEOF
26455 #define HAVE_LIBPTHREAD 1
26456 _ACEOF
26457
26458   LIBS="-lpthread $LIBS"
26459
26460 fi
26461
26462   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26463 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26464 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26465   echo $ECHO_N "(cached) $ECHO_C" >&6
26466 else
26467   ac_func_search_save_LIBS=$LIBS
26468 cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474
26475 /* Override any GCC internal prototype to avoid an error.
26476    Use char because int might match the return type of a GCC
26477    builtin and then its argument prototype would still apply.  */
26478 #ifdef __cplusplus
26479 extern "C"
26480 #endif
26481 char pthread_mutex_lock ();
26482 int
26483 main ()
26484 {
26485 return pthread_mutex_lock ();
26486   ;
26487   return 0;
26488 }
26489 _ACEOF
26490 for ac_lib in '' pthread; do
26491   if test -z "$ac_lib"; then
26492     ac_res="none required"
26493   else
26494     ac_res=-l$ac_lib
26495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26496   fi
26497   rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501   *) ac_try_echo=$ac_try;;
26502 esac
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504   (eval "$ac_link") 2>conftest.er1
26505   ac_status=$?
26506   grep -v '^ *+' conftest.er1 >conftest.err
26507   rm -f conftest.er1
26508   cat conftest.err >&5
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } && {
26511          test -z "$ac_c_werror_flag" ||
26512          test ! -s conftest.err
26513        } && test -s conftest$ac_exeext &&
26514        $as_test_x conftest$ac_exeext; then
26515   ac_cv_search_pthread_mutex_lock=$ac_res
26516 else
26517   echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520
26521 fi
26522
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26524       conftest$ac_exeext
26525   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26526   break
26527 fi
26528 done
26529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26530   :
26531 else
26532   ac_cv_search_pthread_mutex_lock=no
26533 fi
26534 rm conftest.$ac_ext
26535 LIBS=$ac_func_search_save_LIBS
26536 fi
26537 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26538 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26539 ac_res=$ac_cv_search_pthread_mutex_lock
26540 if test "$ac_res" != no; then
26541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26542
26543 cat >>confdefs.h <<\_ACEOF
26544 #define HAVE_PTHREAD_MUTEX_LOCK 1
26545 _ACEOF
26546
26547 fi
26548
26549 fi
26550
26551
26552 # Check whether --with-udis86 was given.
26553 if test "${with_udis86+set}" = set; then
26554   withval=$with_udis86;
26555       USE_UDIS86=1
26556
26557       case "$withval" in
26558         /usr/lib|yes) ;;
26559         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26560       esac
26561
26562 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26563 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26564 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26565   echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567   ac_check_lib_save_LIBS=$LIBS
26568 LIBS="-ludis86  $LIBS"
26569 cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h.  */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h.  */
26575
26576 /* Override any GCC internal prototype to avoid an error.
26577    Use char because int might match the return type of a GCC
26578    builtin and then its argument prototype would still apply.  */
26579 #ifdef __cplusplus
26580 extern "C"
26581 #endif
26582 char ud_init ();
26583 int
26584 main ()
26585 {
26586 return ud_init ();
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 rm -f conftest.$ac_objext conftest$ac_exeext
26592 if { (ac_try="$ac_link"
26593 case "(($ac_try" in
26594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595   *) ac_try_echo=$ac_try;;
26596 esac
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598   (eval "$ac_link") 2>conftest.er1
26599   ac_status=$?
26600   grep -v '^ *+' conftest.er1 >conftest.err
26601   rm -f conftest.er1
26602   cat conftest.err >&5
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); } && {
26605          test -z "$ac_c_werror_flag" ||
26606          test ! -s conftest.err
26607        } && test -s conftest$ac_exeext &&
26608        $as_test_x conftest$ac_exeext; then
26609   ac_cv_lib_udis86_ud_init=yes
26610 else
26611   echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26613
26614         ac_cv_lib_udis86_ud_init=no
26615 fi
26616
26617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26618       conftest$ac_exeext conftest.$ac_ext
26619 LIBS=$ac_check_lib_save_LIBS
26620 fi
26621 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26622 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26623 if test $ac_cv_lib_udis86_ud_init = yes; then
26624   cat >>confdefs.h <<_ACEOF
26625 #define HAVE_LIBUDIS86 1
26626 _ACEOF
26627
26628   LIBS="-ludis86 $LIBS"
26629
26630 else
26631
26632         echo "Error! You need to have libudis86 around."
26633         exit -1
26634
26635 fi
26636
26637
26638 else
26639   USE_UDIS86=0
26640
26641 fi
26642
26643
26644 cat >>confdefs.h <<_ACEOF
26645 #define USE_UDIS86 $USE_UDIS86
26646 _ACEOF
26647
26648
26649
26650
26651
26652
26653
26654
26655 ac_header_dirent=no
26656 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26657   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26658 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26659 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26661   echo $ECHO_N "(cached) $ECHO_C" >&6
26662 else
26663   cat >conftest.$ac_ext <<_ACEOF
26664 /* confdefs.h.  */
26665 _ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h.  */
26669 #include <sys/types.h>
26670 #include <$ac_hdr>
26671
26672 int
26673 main ()
26674 {
26675 if ((DIR *) 0)
26676 return 0;
26677   ;
26678   return 0;
26679 }
26680 _ACEOF
26681 rm -f conftest.$ac_objext
26682 if { (ac_try="$ac_compile"
26683 case "(($ac_try" in
26684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685   *) ac_try_echo=$ac_try;;
26686 esac
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688   (eval "$ac_compile") 2>conftest.er1
26689   ac_status=$?
26690   grep -v '^ *+' conftest.er1 >conftest.err
26691   rm -f conftest.er1
26692   cat conftest.err >&5
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); } && {
26695          test -z "$ac_c_werror_flag" ||
26696          test ! -s conftest.err
26697        } && test -s conftest.$ac_objext; then
26698   eval "$as_ac_Header=yes"
26699 else
26700   echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703         eval "$as_ac_Header=no"
26704 fi
26705
26706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26707 fi
26708 ac_res=`eval echo '${'$as_ac_Header'}'`
26709                { echo "$as_me:$LINENO: result: $ac_res" >&5
26710 echo "${ECHO_T}$ac_res" >&6; }
26711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26712   cat >>confdefs.h <<_ACEOF
26713 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26714 _ACEOF
26715
26716 ac_header_dirent=$ac_hdr; break
26717 fi
26718
26719 done
26720 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26721 if test $ac_header_dirent = dirent.h; then
26722   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26723 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26724 if test "${ac_cv_search_opendir+set}" = set; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727   ac_func_search_save_LIBS=$LIBS
26728 cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h.  */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h.  */
26734
26735 /* Override any GCC internal prototype to avoid an error.
26736    Use char because int might match the return type of a GCC
26737    builtin and then its argument prototype would still apply.  */
26738 #ifdef __cplusplus
26739 extern "C"
26740 #endif
26741 char opendir ();
26742 int
26743 main ()
26744 {
26745 return opendir ();
26746   ;
26747   return 0;
26748 }
26749 _ACEOF
26750 for ac_lib in '' dir; do
26751   if test -z "$ac_lib"; then
26752     ac_res="none required"
26753   else
26754     ac_res=-l$ac_lib
26755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26756   fi
26757   rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761   *) ac_try_echo=$ac_try;;
26762 esac
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764   (eval "$ac_link") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } && {
26771          test -z "$ac_c_werror_flag" ||
26772          test ! -s conftest.err
26773        } && test -s conftest$ac_exeext &&
26774        $as_test_x conftest$ac_exeext; then
26775   ac_cv_search_opendir=$ac_res
26776 else
26777   echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26779
26780
26781 fi
26782
26783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26784       conftest$ac_exeext
26785   if test "${ac_cv_search_opendir+set}" = set; then
26786   break
26787 fi
26788 done
26789 if test "${ac_cv_search_opendir+set}" = set; then
26790   :
26791 else
26792   ac_cv_search_opendir=no
26793 fi
26794 rm conftest.$ac_ext
26795 LIBS=$ac_func_search_save_LIBS
26796 fi
26797 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26798 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26799 ac_res=$ac_cv_search_opendir
26800 if test "$ac_res" != no; then
26801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26802
26803 fi
26804
26805 else
26806   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26808 if test "${ac_cv_search_opendir+set}" = set; then
26809   echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811   ac_func_search_save_LIBS=$LIBS
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818
26819 /* Override any GCC internal prototype to avoid an error.
26820    Use char because int might match the return type of a GCC
26821    builtin and then its argument prototype would still apply.  */
26822 #ifdef __cplusplus
26823 extern "C"
26824 #endif
26825 char opendir ();
26826 int
26827 main ()
26828 {
26829 return opendir ();
26830   ;
26831   return 0;
26832 }
26833 _ACEOF
26834 for ac_lib in '' x; do
26835   if test -z "$ac_lib"; then
26836     ac_res="none required"
26837   else
26838     ac_res=-l$ac_lib
26839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26840   fi
26841   rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (ac_try="$ac_link"
26843 case "(($ac_try" in
26844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845   *) ac_try_echo=$ac_try;;
26846 esac
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848   (eval "$ac_link") 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } && {
26855          test -z "$ac_c_werror_flag" ||
26856          test ! -s conftest.err
26857        } && test -s conftest$ac_exeext &&
26858        $as_test_x conftest$ac_exeext; then
26859   ac_cv_search_opendir=$ac_res
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864
26865 fi
26866
26867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26868       conftest$ac_exeext
26869   if test "${ac_cv_search_opendir+set}" = set; then
26870   break
26871 fi
26872 done
26873 if test "${ac_cv_search_opendir+set}" = set; then
26874   :
26875 else
26876   ac_cv_search_opendir=no
26877 fi
26878 rm conftest.$ac_ext
26879 LIBS=$ac_func_search_save_LIBS
26880 fi
26881 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26882 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26883 ac_res=$ac_cv_search_opendir
26884 if test "$ac_res" != no; then
26885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26886
26887 fi
26888
26889 fi
26890
26891 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26892 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26893 if test "${ac_cv_header_mmap_anon+set}" = set; then
26894   echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896    ac_ext=c
26897 ac_cpp='$CPP $CPPFLAGS'
26898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26901
26902   cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908 #include <sys/mman.h>
26909 #include <unistd.h>
26910 #include <fcntl.h>
26911 int
26912 main ()
26913 {
26914 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26915   ;
26916   return 0;
26917 }
26918 _ACEOF
26919 rm -f conftest.$ac_objext
26920 if { (ac_try="$ac_compile"
26921 case "(($ac_try" in
26922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923   *) ac_try_echo=$ac_try;;
26924 esac
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926   (eval "$ac_compile") 2>conftest.er1
26927   ac_status=$?
26928   grep -v '^ *+' conftest.er1 >conftest.err
26929   rm -f conftest.er1
26930   cat conftest.err >&5
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); } && {
26933          test -z "$ac_c_werror_flag" ||
26934          test ! -s conftest.err
26935        } && test -s conftest.$ac_objext; then
26936   ac_cv_header_mmap_anon=yes
26937 else
26938   echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941         ac_cv_header_mmap_anon=no
26942 fi
26943
26944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26945   ac_ext=c
26946 ac_cpp='$CPP $CPPFLAGS'
26947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26950
26951
26952 fi
26953 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26954 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26955 if test "$ac_cv_header_mmap_anon" = yes; then
26956
26957 cat >>confdefs.h <<\_ACEOF
26958 #define HAVE_MMAP_ANONYMOUS 1
26959 _ACEOF
26960
26961 fi
26962
26963 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26964 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26965 if test "${ac_cv_header_stat_broken+set}" = set; then
26966   echo $ECHO_N "(cached) $ECHO_C" >&6
26967 else
26968   cat >conftest.$ac_ext <<_ACEOF
26969 /* confdefs.h.  */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h.  */
26974 #include <sys/types.h>
26975 #include <sys/stat.h>
26976
26977 #if defined S_ISBLK && defined S_IFDIR
26978 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26979 #endif
26980
26981 #if defined S_ISBLK && defined S_IFCHR
26982 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26983 #endif
26984
26985 #if defined S_ISLNK && defined S_IFREG
26986 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26987 #endif
26988
26989 #if defined S_ISSOCK && defined S_IFREG
26990 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26991 #endif
26992
26993 _ACEOF
26994 rm -f conftest.$ac_objext
26995 if { (ac_try="$ac_compile"
26996 case "(($ac_try" in
26997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998   *) ac_try_echo=$ac_try;;
26999 esac
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001   (eval "$ac_compile") 2>conftest.er1
27002   ac_status=$?
27003   grep -v '^ *+' conftest.er1 >conftest.err
27004   rm -f conftest.er1
27005   cat conftest.err >&5
27006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); } && {
27008          test -z "$ac_c_werror_flag" ||
27009          test ! -s conftest.err
27010        } && test -s conftest.$ac_objext; then
27011   ac_cv_header_stat_broken=no
27012 else
27013   echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016         ac_cv_header_stat_broken=yes
27017 fi
27018
27019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27020 fi
27021 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27022 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27023 if test $ac_cv_header_stat_broken = yes; then
27024
27025 cat >>confdefs.h <<\_ACEOF
27026 #define STAT_MACROS_BROKEN 1
27027 _ACEOF
27028
27029 fi
27030
27031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27033 if test "${ac_cv_header_stdc+set}" = set; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036   cat >conftest.$ac_ext <<_ACEOF
27037 /* confdefs.h.  */
27038 _ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h.  */
27042 #include <stdlib.h>
27043 #include <stdarg.h>
27044 #include <string.h>
27045 #include <float.h>
27046
27047 int
27048 main ()
27049 {
27050
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext
27056 if { (ac_try="$ac_compile"
27057 case "(($ac_try" in
27058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059   *) ac_try_echo=$ac_try;;
27060 esac
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062   (eval "$ac_compile") 2>conftest.er1
27063   ac_status=$?
27064   grep -v '^ *+' conftest.er1 >conftest.err
27065   rm -f conftest.er1
27066   cat conftest.err >&5
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } && {
27069          test -z "$ac_c_werror_flag" ||
27070          test ! -s conftest.err
27071        } && test -s conftest.$ac_objext; then
27072   ac_cv_header_stdc=yes
27073 else
27074   echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27076
27077         ac_cv_header_stdc=no
27078 fi
27079
27080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27081
27082 if test $ac_cv_header_stdc = yes; then
27083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27084   cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090 #include <string.h>
27091
27092 _ACEOF
27093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27094   $EGREP "memchr" >/dev/null 2>&1; then
27095   :
27096 else
27097   ac_cv_header_stdc=no
27098 fi
27099 rm -f conftest*
27100
27101 fi
27102
27103 if test $ac_cv_header_stdc = yes; then
27104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27105   cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h.  */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h.  */
27111 #include <stdlib.h>
27112
27113 _ACEOF
27114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27115   $EGREP "free" >/dev/null 2>&1; then
27116   :
27117 else
27118   ac_cv_header_stdc=no
27119 fi
27120 rm -f conftest*
27121
27122 fi
27123
27124 if test $ac_cv_header_stdc = yes; then
27125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27126   if test "$cross_compiling" = yes; then
27127   :
27128 else
27129   cat >conftest.$ac_ext <<_ACEOF
27130 /* confdefs.h.  */
27131 _ACEOF
27132 cat confdefs.h >>conftest.$ac_ext
27133 cat >>conftest.$ac_ext <<_ACEOF
27134 /* end confdefs.h.  */
27135 #include <ctype.h>
27136 #include <stdlib.h>
27137 #if ((' ' & 0x0FF) == 0x020)
27138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27140 #else
27141 # define ISLOWER(c) \
27142                    (('a' <= (c) && (c) <= 'i') \
27143                      || ('j' <= (c) && (c) <= 'r') \
27144                      || ('s' <= (c) && (c) <= 'z'))
27145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27146 #endif
27147
27148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27149 int
27150 main ()
27151 {
27152   int i;
27153   for (i = 0; i < 256; i++)
27154     if (XOR (islower (i), ISLOWER (i))
27155         || toupper (i) != TOUPPER (i))
27156       return 2;
27157   return 0;
27158 }
27159 _ACEOF
27160 rm -f conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164   *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167   (eval "$ac_link") 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27171   { (case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_try") 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; }; then
27180   :
27181 else
27182   echo "$as_me: program exited with status $ac_status" >&5
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27185
27186 ( exit $ac_status )
27187 ac_cv_header_stdc=no
27188 fi
27189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27190 fi
27191
27192
27193 fi
27194 fi
27195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27197 if test $ac_cv_header_stdc = yes; then
27198
27199 cat >>confdefs.h <<\_ACEOF
27200 #define STDC_HEADERS 1
27201 _ACEOF
27202
27203 fi
27204
27205 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27206 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27207 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27208   echo $ECHO_N "(cached) $ECHO_C" >&6
27209 else
27210   cat >conftest.$ac_ext <<_ACEOF
27211 /* confdefs.h.  */
27212 _ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h.  */
27216 #include <sys/types.h>
27217 #include <sys/wait.h>
27218 #ifndef WEXITSTATUS
27219 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27220 #endif
27221 #ifndef WIFEXITED
27222 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27223 #endif
27224
27225 int
27226 main ()
27227 {
27228   int s;
27229   wait (&s);
27230   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27231   ;
27232   return 0;
27233 }
27234 _ACEOF
27235 rm -f conftest.$ac_objext
27236 if { (ac_try="$ac_compile"
27237 case "(($ac_try" in
27238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239   *) ac_try_echo=$ac_try;;
27240 esac
27241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242   (eval "$ac_compile") 2>conftest.er1
27243   ac_status=$?
27244   grep -v '^ *+' conftest.er1 >conftest.err
27245   rm -f conftest.er1
27246   cat conftest.err >&5
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); } && {
27249          test -z "$ac_c_werror_flag" ||
27250          test ! -s conftest.err
27251        } && test -s conftest.$ac_objext; then
27252   ac_cv_header_sys_wait_h=yes
27253 else
27254   echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257         ac_cv_header_sys_wait_h=no
27258 fi
27259
27260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27261 fi
27262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27264 if test $ac_cv_header_sys_wait_h = yes; then
27265
27266 cat >>confdefs.h <<\_ACEOF
27267 #define HAVE_SYS_WAIT_H 1
27268 _ACEOF
27269
27270 fi
27271
27272 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27273 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27274 if test "${ac_cv_header_time+set}" = set; then
27275   echo $ECHO_N "(cached) $ECHO_C" >&6
27276 else
27277   cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h.  */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h.  */
27283 #include <sys/types.h>
27284 #include <sys/time.h>
27285 #include <time.h>
27286
27287 int
27288 main ()
27289 {
27290 if ((struct tm *) 0)
27291 return 0;
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300   *) ac_try_echo=$ac_try;;
27301 esac
27302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303   (eval "$ac_compile") 2>conftest.er1
27304   ac_status=$?
27305   grep -v '^ *+' conftest.er1 >conftest.err
27306   rm -f conftest.er1
27307   cat conftest.err >&5
27308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309   (exit $ac_status); } && {
27310          test -z "$ac_c_werror_flag" ||
27311          test ! -s conftest.err
27312        } && test -s conftest.$ac_objext; then
27313   ac_cv_header_time=yes
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318         ac_cv_header_time=no
27319 fi
27320
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27322 fi
27323 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27324 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27325 if test $ac_cv_header_time = yes; then
27326
27327 cat >>confdefs.h <<\_ACEOF
27328 #define TIME_WITH_SYS_TIME 1
27329 _ACEOF
27330
27331 fi
27332
27333
27334
27335
27336
27337
27338
27339
27340 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27341 do
27342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27347   echo $ECHO_N "(cached) $ECHO_C" >&6
27348 fi
27349 ac_res=`eval echo '${'$as_ac_Header'}'`
27350                { echo "$as_me:$LINENO: result: $ac_res" >&5
27351 echo "${ECHO_T}$ac_res" >&6; }
27352 else
27353   # Is the header compilable?
27354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27356 cat >conftest.$ac_ext <<_ACEOF
27357 /* confdefs.h.  */
27358 _ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h.  */
27362 $ac_includes_default
27363 #include <$ac_header>
27364 _ACEOF
27365 rm -f conftest.$ac_objext
27366 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } && {
27379          test -z "$ac_c_werror_flag" ||
27380          test ! -s conftest.err
27381        } && test -s conftest.$ac_objext; then
27382   ac_header_compiler=yes
27383 else
27384   echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27386
27387         ac_header_compiler=no
27388 fi
27389
27390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27392 echo "${ECHO_T}$ac_header_compiler" >&6; }
27393
27394 # Is the header present?
27395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27397 cat >conftest.$ac_ext <<_ACEOF
27398 /* confdefs.h.  */
27399 _ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h.  */
27403 #include <$ac_header>
27404 _ACEOF
27405 if { (ac_try="$ac_cpp conftest.$ac_ext"
27406 case "(($ac_try" in
27407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408   *) ac_try_echo=$ac_try;;
27409 esac
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } >/dev/null && {
27418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27419          test ! -s conftest.err
27420        }; then
27421   ac_header_preproc=yes
27422 else
27423   echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27425
27426   ac_header_preproc=no
27427 fi
27428
27429 rm -f conftest.err conftest.$ac_ext
27430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27431 echo "${ECHO_T}$ac_header_preproc" >&6; }
27432
27433 # So?  What about this header?
27434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27435   yes:no: )
27436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27440     ac_header_preproc=yes
27441     ;;
27442   no:yes:* )
27443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27455     ( cat <<\_ASBOX
27456 ## ----------------------------------- ##
27457 ## Report this to llvmbugs@cs.uiuc.edu ##
27458 ## ----------------------------------- ##
27459 _ASBOX
27460      ) | sed "s/^/$as_me: WARNING:     /" >&2
27461     ;;
27462 esac
27463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27466   echo $ECHO_N "(cached) $ECHO_C" >&6
27467 else
27468   eval "$as_ac_Header=\$ac_header_preproc"
27469 fi
27470 ac_res=`eval echo '${'$as_ac_Header'}'`
27471                { echo "$as_me:$LINENO: result: $ac_res" >&5
27472 echo "${ECHO_T}$ac_res" >&6; }
27473
27474 fi
27475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27476   cat >>confdefs.h <<_ACEOF
27477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27478 _ACEOF
27479
27480 fi
27481
27482 done
27483
27484
27485
27486
27487
27488
27489
27490 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27491 do
27492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27494   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27497   echo $ECHO_N "(cached) $ECHO_C" >&6
27498 fi
27499 ac_res=`eval echo '${'$as_ac_Header'}'`
27500                { echo "$as_me:$LINENO: result: $ac_res" >&5
27501 echo "${ECHO_T}$ac_res" >&6; }
27502 else
27503   # Is the header compilable?
27504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27506 cat >conftest.$ac_ext <<_ACEOF
27507 /* confdefs.h.  */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h.  */
27512 $ac_includes_default
27513 #include <$ac_header>
27514 _ACEOF
27515 rm -f conftest.$ac_objext
27516 if { (ac_try="$ac_compile"
27517 case "(($ac_try" in
27518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519   *) ac_try_echo=$ac_try;;
27520 esac
27521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27522   (eval "$ac_compile") 2>conftest.er1
27523   ac_status=$?
27524   grep -v '^ *+' conftest.er1 >conftest.err
27525   rm -f conftest.er1
27526   cat conftest.err >&5
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); } && {
27529          test -z "$ac_c_werror_flag" ||
27530          test ! -s conftest.err
27531        } && test -s conftest.$ac_objext; then
27532   ac_header_compiler=yes
27533 else
27534   echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27536
27537         ac_header_compiler=no
27538 fi
27539
27540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27542 echo "${ECHO_T}$ac_header_compiler" >&6; }
27543
27544 # Is the header present?
27545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27547 cat >conftest.$ac_ext <<_ACEOF
27548 /* confdefs.h.  */
27549 _ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h.  */
27553 #include <$ac_header>
27554 _ACEOF
27555 if { (ac_try="$ac_cpp conftest.$ac_ext"
27556 case "(($ac_try" in
27557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558   *) ac_try_echo=$ac_try;;
27559 esac
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27562   ac_status=$?
27563   grep -v '^ *+' conftest.er1 >conftest.err
27564   rm -f conftest.er1
27565   cat conftest.err >&5
27566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567   (exit $ac_status); } >/dev/null && {
27568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27569          test ! -s conftest.err
27570        }; then
27571   ac_header_preproc=yes
27572 else
27573   echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27575
27576   ac_header_preproc=no
27577 fi
27578
27579 rm -f conftest.err conftest.$ac_ext
27580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27581 echo "${ECHO_T}$ac_header_preproc" >&6; }
27582
27583 # So?  What about this header?
27584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27585   yes:no: )
27586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27590     ac_header_preproc=yes
27591     ;;
27592   no:yes:* )
27593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27605     ( cat <<\_ASBOX
27606 ## ----------------------------------- ##
27607 ## Report this to llvmbugs@cs.uiuc.edu ##
27608 ## ----------------------------------- ##
27609 _ASBOX
27610      ) | sed "s/^/$as_me: WARNING:     /" >&2
27611     ;;
27612 esac
27613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27616   echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618   eval "$as_ac_Header=\$ac_header_preproc"
27619 fi
27620 ac_res=`eval echo '${'$as_ac_Header'}'`
27621                { echo "$as_me:$LINENO: result: $ac_res" >&5
27622 echo "${ECHO_T}$ac_res" >&6; }
27623
27624 fi
27625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27626   cat >>confdefs.h <<_ACEOF
27627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27628 _ACEOF
27629
27630 fi
27631
27632 done
27633
27634
27635 for ac_header in windows.h
27636 do
27637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27639   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27642   echo $ECHO_N "(cached) $ECHO_C" >&6
27643 fi
27644 ac_res=`eval echo '${'$as_ac_Header'}'`
27645                { echo "$as_me:$LINENO: result: $ac_res" >&5
27646 echo "${ECHO_T}$ac_res" >&6; }
27647 else
27648   # Is the header compilable?
27649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27651 cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h.  */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h.  */
27657 $ac_includes_default
27658 #include <$ac_header>
27659 _ACEOF
27660 rm -f conftest.$ac_objext
27661 if { (ac_try="$ac_compile"
27662 case "(($ac_try" in
27663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664   *) ac_try_echo=$ac_try;;
27665 esac
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667   (eval "$ac_compile") 2>conftest.er1
27668   ac_status=$?
27669   grep -v '^ *+' conftest.er1 >conftest.err
27670   rm -f conftest.er1
27671   cat conftest.err >&5
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); } && {
27674          test -z "$ac_c_werror_flag" ||
27675          test ! -s conftest.err
27676        } && test -s conftest.$ac_objext; then
27677   ac_header_compiler=yes
27678 else
27679   echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27681
27682         ac_header_compiler=no
27683 fi
27684
27685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27687 echo "${ECHO_T}$ac_header_compiler" >&6; }
27688
27689 # Is the header present?
27690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27692 cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698 #include <$ac_header>
27699 _ACEOF
27700 if { (ac_try="$ac_cpp conftest.$ac_ext"
27701 case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27707   ac_status=$?
27708   grep -v '^ *+' conftest.er1 >conftest.err
27709   rm -f conftest.er1
27710   cat conftest.err >&5
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); } >/dev/null && {
27713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27714          test ! -s conftest.err
27715        }; then
27716   ac_header_preproc=yes
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721   ac_header_preproc=no
27722 fi
27723
27724 rm -f conftest.err conftest.$ac_ext
27725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27726 echo "${ECHO_T}$ac_header_preproc" >&6; }
27727
27728 # So?  What about this header?
27729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27730   yes:no: )
27731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27735     ac_header_preproc=yes
27736     ;;
27737   no:yes:* )
27738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27750     ( cat <<\_ASBOX
27751 ## ----------------------------------- ##
27752 ## Report this to llvmbugs@cs.uiuc.edu ##
27753 ## ----------------------------------- ##
27754 _ASBOX
27755      ) | sed "s/^/$as_me: WARNING:     /" >&2
27756     ;;
27757 esac
27758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27761   echo $ECHO_N "(cached) $ECHO_C" >&6
27762 else
27763   eval "$as_ac_Header=\$ac_header_preproc"
27764 fi
27765 ac_res=`eval echo '${'$as_ac_Header'}'`
27766                { echo "$as_me:$LINENO: result: $ac_res" >&5
27767 echo "${ECHO_T}$ac_res" >&6; }
27768
27769 fi
27770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27771   cat >>confdefs.h <<_ACEOF
27772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27773 _ACEOF
27774
27775 fi
27776
27777 done
27778
27779
27780
27781
27782
27783 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27784 do
27785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27787   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27790   echo $ECHO_N "(cached) $ECHO_C" >&6
27791 fi
27792 ac_res=`eval echo '${'$as_ac_Header'}'`
27793                { echo "$as_me:$LINENO: result: $ac_res" >&5
27794 echo "${ECHO_T}$ac_res" >&6; }
27795 else
27796   # Is the header compilable?
27797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27799 cat >conftest.$ac_ext <<_ACEOF
27800 /* confdefs.h.  */
27801 _ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h.  */
27805 $ac_includes_default
27806 #include <$ac_header>
27807 _ACEOF
27808 rm -f conftest.$ac_objext
27809 if { (ac_try="$ac_compile"
27810 case "(($ac_try" in
27811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812   *) ac_try_echo=$ac_try;;
27813 esac
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815   (eval "$ac_compile") 2>conftest.er1
27816   ac_status=$?
27817   grep -v '^ *+' conftest.er1 >conftest.err
27818   rm -f conftest.er1
27819   cat conftest.err >&5
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); } && {
27822          test -z "$ac_c_werror_flag" ||
27823          test ! -s conftest.err
27824        } && test -s conftest.$ac_objext; then
27825   ac_header_compiler=yes
27826 else
27827   echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27829
27830         ac_header_compiler=no
27831 fi
27832
27833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27835 echo "${ECHO_T}$ac_header_compiler" >&6; }
27836
27837 # Is the header present?
27838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27840 cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846 #include <$ac_header>
27847 _ACEOF
27848 if { (ac_try="$ac_cpp conftest.$ac_ext"
27849 case "(($ac_try" in
27850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851   *) ac_try_echo=$ac_try;;
27852 esac
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27855   ac_status=$?
27856   grep -v '^ *+' conftest.er1 >conftest.err
27857   rm -f conftest.er1
27858   cat conftest.err >&5
27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); } >/dev/null && {
27861          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27862          test ! -s conftest.err
27863        }; then
27864   ac_header_preproc=yes
27865 else
27866   echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869   ac_header_preproc=no
27870 fi
27871
27872 rm -f conftest.err conftest.$ac_ext
27873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27874 echo "${ECHO_T}$ac_header_preproc" >&6; }
27875
27876 # So?  What about this header?
27877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27878   yes:no: )
27879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27883     ac_header_preproc=yes
27884     ;;
27885   no:yes:* )
27886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27898     ( cat <<\_ASBOX
27899 ## ----------------------------------- ##
27900 ## Report this to llvmbugs@cs.uiuc.edu ##
27901 ## ----------------------------------- ##
27902 _ASBOX
27903      ) | sed "s/^/$as_me: WARNING:     /" >&2
27904     ;;
27905 esac
27906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27909   echo $ECHO_N "(cached) $ECHO_C" >&6
27910 else
27911   eval "$as_ac_Header=\$ac_header_preproc"
27912 fi
27913 ac_res=`eval echo '${'$as_ac_Header'}'`
27914                { echo "$as_me:$LINENO: result: $ac_res" >&5
27915 echo "${ECHO_T}$ac_res" >&6; }
27916
27917 fi
27918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27919   cat >>confdefs.h <<_ACEOF
27920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27921 _ACEOF
27922
27923 fi
27924
27925 done
27926
27927
27928
27929
27930 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27931 do
27932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27934   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 fi
27939 ac_res=`eval echo '${'$as_ac_Header'}'`
27940                { echo "$as_me:$LINENO: result: $ac_res" >&5
27941 echo "${ECHO_T}$ac_res" >&6; }
27942 else
27943   # Is the header compilable?
27944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27946 cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h.  */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h.  */
27952 $ac_includes_default
27953 #include <$ac_header>
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959   *) ac_try_echo=$ac_try;;
27960 esac
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962   (eval "$ac_compile") 2>conftest.er1
27963   ac_status=$?
27964   grep -v '^ *+' conftest.er1 >conftest.err
27965   rm -f conftest.er1
27966   cat conftest.err >&5
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); } && {
27969          test -z "$ac_c_werror_flag" ||
27970          test ! -s conftest.err
27971        } && test -s conftest.$ac_objext; then
27972   ac_header_compiler=yes
27973 else
27974   echo "$as_me: failed program was:" >&5
27975 sed 's/^/| /' conftest.$ac_ext >&5
27976
27977         ac_header_compiler=no
27978 fi
27979
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27982 echo "${ECHO_T}$ac_header_compiler" >&6; }
27983
27984 # Is the header present?
27985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27987 cat >conftest.$ac_ext <<_ACEOF
27988 /* confdefs.h.  */
27989 _ACEOF
27990 cat confdefs.h >>conftest.$ac_ext
27991 cat >>conftest.$ac_ext <<_ACEOF
27992 /* end confdefs.h.  */
27993 #include <$ac_header>
27994 _ACEOF
27995 if { (ac_try="$ac_cpp conftest.$ac_ext"
27996 case "(($ac_try" in
27997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998   *) ac_try_echo=$ac_try;;
27999 esac
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28002   ac_status=$?
28003   grep -v '^ *+' conftest.er1 >conftest.err
28004   rm -f conftest.er1
28005   cat conftest.err >&5
28006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007   (exit $ac_status); } >/dev/null && {
28008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28009          test ! -s conftest.err
28010        }; then
28011   ac_header_preproc=yes
28012 else
28013   echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28015
28016   ac_header_preproc=no
28017 fi
28018
28019 rm -f conftest.err conftest.$ac_ext
28020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28021 echo "${ECHO_T}$ac_header_preproc" >&6; }
28022
28023 # So?  What about this header?
28024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28025   yes:no: )
28026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28030     ac_header_preproc=yes
28031     ;;
28032   no:yes:* )
28033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28045     ( cat <<\_ASBOX
28046 ## ----------------------------------- ##
28047 ## Report this to llvmbugs@cs.uiuc.edu ##
28048 ## ----------------------------------- ##
28049 _ASBOX
28050      ) | sed "s/^/$as_me: WARNING:     /" >&2
28051     ;;
28052 esac
28053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28056   echo $ECHO_N "(cached) $ECHO_C" >&6
28057 else
28058   eval "$as_ac_Header=\$ac_header_preproc"
28059 fi
28060 ac_res=`eval echo '${'$as_ac_Header'}'`
28061                { echo "$as_me:$LINENO: result: $ac_res" >&5
28062 echo "${ECHO_T}$ac_res" >&6; }
28063
28064 fi
28065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28066   cat >>confdefs.h <<_ACEOF
28067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28068 _ACEOF
28069
28070 fi
28071
28072 done
28073
28074 if test "$ENABLE_THREADS" -eq 1 ; then
28075
28076 for ac_header in pthread.h
28077 do
28078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28083   echo $ECHO_N "(cached) $ECHO_C" >&6
28084 fi
28085 ac_res=`eval echo '${'$as_ac_Header'}'`
28086                { echo "$as_me:$LINENO: result: $ac_res" >&5
28087 echo "${ECHO_T}$ac_res" >&6; }
28088 else
28089   # Is the header compilable?
28090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28092 cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h.  */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h.  */
28098 $ac_includes_default
28099 #include <$ac_header>
28100 _ACEOF
28101 rm -f conftest.$ac_objext
28102 if { (ac_try="$ac_compile"
28103 case "(($ac_try" in
28104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105   *) ac_try_echo=$ac_try;;
28106 esac
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108   (eval "$ac_compile") 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } && {
28115          test -z "$ac_c_werror_flag" ||
28116          test ! -s conftest.err
28117        } && test -s conftest.$ac_objext; then
28118   ac_header_compiler=yes
28119 else
28120   echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28122
28123         ac_header_compiler=no
28124 fi
28125
28126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28128 echo "${ECHO_T}$ac_header_compiler" >&6; }
28129
28130 # Is the header present?
28131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28133 cat >conftest.$ac_ext <<_ACEOF
28134 /* confdefs.h.  */
28135 _ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h.  */
28139 #include <$ac_header>
28140 _ACEOF
28141 if { (ac_try="$ac_cpp conftest.$ac_ext"
28142 case "(($ac_try" in
28143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144   *) ac_try_echo=$ac_try;;
28145 esac
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28148   ac_status=$?
28149   grep -v '^ *+' conftest.er1 >conftest.err
28150   rm -f conftest.er1
28151   cat conftest.err >&5
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); } >/dev/null && {
28154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28155          test ! -s conftest.err
28156        }; then
28157   ac_header_preproc=yes
28158 else
28159   echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28161
28162   ac_header_preproc=no
28163 fi
28164
28165 rm -f conftest.err conftest.$ac_ext
28166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28167 echo "${ECHO_T}$ac_header_preproc" >&6; }
28168
28169 # So?  What about this header?
28170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28171   yes:no: )
28172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28176     ac_header_preproc=yes
28177     ;;
28178   no:yes:* )
28179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28191     ( cat <<\_ASBOX
28192 ## ----------------------------------- ##
28193 ## Report this to llvmbugs@cs.uiuc.edu ##
28194 ## ----------------------------------- ##
28195 _ASBOX
28196      ) | sed "s/^/$as_me: WARNING:     /" >&2
28197     ;;
28198 esac
28199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28202   echo $ECHO_N "(cached) $ECHO_C" >&6
28203 else
28204   eval "$as_ac_Header=\$ac_header_preproc"
28205 fi
28206 ac_res=`eval echo '${'$as_ac_Header'}'`
28207                { echo "$as_me:$LINENO: result: $ac_res" >&5
28208 echo "${ECHO_T}$ac_res" >&6; }
28209
28210 fi
28211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28212   cat >>confdefs.h <<_ACEOF
28213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28214 _ACEOF
28215  HAVE_PTHREAD=1
28216
28217 else
28218   HAVE_PTHREAD=0
28219
28220 fi
28221
28222 done
28223
28224 else
28225   HAVE_PTHREAD=0
28226
28227 fi
28228
28229
28230
28231 for ac_header in ffi.h ffi/ffi.h
28232 do
28233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28235   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28238   echo $ECHO_N "(cached) $ECHO_C" >&6
28239 fi
28240 ac_res=`eval echo '${'$as_ac_Header'}'`
28241                { echo "$as_me:$LINENO: result: $ac_res" >&5
28242 echo "${ECHO_T}$ac_res" >&6; }
28243 else
28244   # Is the header compilable?
28245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28247 cat >conftest.$ac_ext <<_ACEOF
28248 /* confdefs.h.  */
28249 _ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h.  */
28253 $ac_includes_default
28254 #include <$ac_header>
28255 _ACEOF
28256 rm -f conftest.$ac_objext
28257 if { (ac_try="$ac_compile"
28258 case "(($ac_try" in
28259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260   *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263   (eval "$ac_compile") 2>conftest.er1
28264   ac_status=$?
28265   grep -v '^ *+' conftest.er1 >conftest.err
28266   rm -f conftest.er1
28267   cat conftest.err >&5
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } && {
28270          test -z "$ac_c_werror_flag" ||
28271          test ! -s conftest.err
28272        } && test -s conftest.$ac_objext; then
28273   ac_header_compiler=yes
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278         ac_header_compiler=no
28279 fi
28280
28281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28283 echo "${ECHO_T}$ac_header_compiler" >&6; }
28284
28285 # Is the header present?
28286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28288 cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h.  */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h.  */
28294 #include <$ac_header>
28295 _ACEOF
28296 if { (ac_try="$ac_cpp conftest.$ac_ext"
28297 case "(($ac_try" in
28298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299   *) ac_try_echo=$ac_try;;
28300 esac
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28303   ac_status=$?
28304   grep -v '^ *+' conftest.er1 >conftest.err
28305   rm -f conftest.er1
28306   cat conftest.err >&5
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); } >/dev/null && {
28309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28310          test ! -s conftest.err
28311        }; then
28312   ac_header_preproc=yes
28313 else
28314   echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28316
28317   ac_header_preproc=no
28318 fi
28319
28320 rm -f conftest.err conftest.$ac_ext
28321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28322 echo "${ECHO_T}$ac_header_preproc" >&6; }
28323
28324 # So?  What about this header?
28325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28326   yes:no: )
28327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28331     ac_header_preproc=yes
28332     ;;
28333   no:yes:* )
28334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28346     ( cat <<\_ASBOX
28347 ## ----------------------------------- ##
28348 ## Report this to llvmbugs@cs.uiuc.edu ##
28349 ## ----------------------------------- ##
28350 _ASBOX
28351      ) | sed "s/^/$as_me: WARNING:     /" >&2
28352     ;;
28353 esac
28354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28357   echo $ECHO_N "(cached) $ECHO_C" >&6
28358 else
28359   eval "$as_ac_Header=\$ac_header_preproc"
28360 fi
28361 ac_res=`eval echo '${'$as_ac_Header'}'`
28362                { echo "$as_me:$LINENO: result: $ac_res" >&5
28363 echo "${ECHO_T}$ac_res" >&6; }
28364
28365 fi
28366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28367   cat >>confdefs.h <<_ACEOF
28368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28369 _ACEOF
28370
28371 fi
28372
28373 done
28374
28375
28376
28377
28378   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28379 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28380 if test "${ac_cv_huge_val_sanity+set}" = set; then
28381   echo $ECHO_N "(cached) $ECHO_C" >&6
28382 else
28383
28384     ac_ext=cpp
28385 ac_cpp='$CXXCPP $CPPFLAGS'
28386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28389
28390     CXXFLAGS=-pedantic
28391     if test "$cross_compiling" = yes; then
28392   ac_cv_huge_val_sanity=yes
28393 else
28394   cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400 #include <math.h>
28401 int
28402 main ()
28403 {
28404 double x = HUGE_VAL; return x != x;
28405   ;
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   ac_cv_huge_val_sanity=yes
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_huge_val_sanity=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     ac_ext=c
28443 ac_cpp='$CPP $CPPFLAGS'
28444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28447
28448
28449 fi
28450 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28451 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28452   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28453
28454
28455 { echo "$as_me:$LINENO: checking for pid_t" >&5
28456 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28457 if test "${ac_cv_type_pid_t+set}" = set; then
28458   echo $ECHO_N "(cached) $ECHO_C" >&6
28459 else
28460   cat >conftest.$ac_ext <<_ACEOF
28461 /* confdefs.h.  */
28462 _ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h.  */
28466 $ac_includes_default
28467 typedef pid_t ac__type_new_;
28468 int
28469 main ()
28470 {
28471 if ((ac__type_new_ *) 0)
28472   return 0;
28473 if (sizeof (ac__type_new_))
28474   return 0;
28475   ;
28476   return 0;
28477 }
28478 _ACEOF
28479 rm -f conftest.$ac_objext
28480 if { (ac_try="$ac_compile"
28481 case "(($ac_try" in
28482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483   *) ac_try_echo=$ac_try;;
28484 esac
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486   (eval "$ac_compile") 2>conftest.er1
28487   ac_status=$?
28488   grep -v '^ *+' conftest.er1 >conftest.err
28489   rm -f conftest.er1
28490   cat conftest.err >&5
28491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492   (exit $ac_status); } && {
28493          test -z "$ac_c_werror_flag" ||
28494          test ! -s conftest.err
28495        } && test -s conftest.$ac_objext; then
28496   ac_cv_type_pid_t=yes
28497 else
28498   echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28500
28501         ac_cv_type_pid_t=no
28502 fi
28503
28504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505 fi
28506 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28507 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28508 if test $ac_cv_type_pid_t = yes; then
28509   :
28510 else
28511
28512 cat >>confdefs.h <<_ACEOF
28513 #define pid_t int
28514 _ACEOF
28515
28516 fi
28517
28518 { echo "$as_me:$LINENO: checking for size_t" >&5
28519 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28520 if test "${ac_cv_type_size_t+set}" = set; then
28521   echo $ECHO_N "(cached) $ECHO_C" >&6
28522 else
28523   cat >conftest.$ac_ext <<_ACEOF
28524 /* confdefs.h.  */
28525 _ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h.  */
28529 $ac_includes_default
28530 typedef size_t ac__type_new_;
28531 int
28532 main ()
28533 {
28534 if ((ac__type_new_ *) 0)
28535   return 0;
28536 if (sizeof (ac__type_new_))
28537   return 0;
28538   ;
28539   return 0;
28540 }
28541 _ACEOF
28542 rm -f conftest.$ac_objext
28543 if { (ac_try="$ac_compile"
28544 case "(($ac_try" in
28545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546   *) ac_try_echo=$ac_try;;
28547 esac
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549   (eval "$ac_compile") 2>conftest.er1
28550   ac_status=$?
28551   grep -v '^ *+' conftest.er1 >conftest.err
28552   rm -f conftest.er1
28553   cat conftest.err >&5
28554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555   (exit $ac_status); } && {
28556          test -z "$ac_c_werror_flag" ||
28557          test ! -s conftest.err
28558        } && test -s conftest.$ac_objext; then
28559   ac_cv_type_size_t=yes
28560 else
28561   echo "$as_me: failed program was:" >&5
28562 sed 's/^/| /' conftest.$ac_ext >&5
28563
28564         ac_cv_type_size_t=no
28565 fi
28566
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 fi
28569 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28570 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28571 if test $ac_cv_type_size_t = yes; then
28572   :
28573 else
28574
28575 cat >>confdefs.h <<_ACEOF
28576 #define size_t unsigned int
28577 _ACEOF
28578
28579 fi
28580
28581 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28582 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28583 if test "${ac_cv_type_signal+set}" = set; then
28584   echo $ECHO_N "(cached) $ECHO_C" >&6
28585 else
28586   cat >conftest.$ac_ext <<_ACEOF
28587 /* confdefs.h.  */
28588 _ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h.  */
28592 #include <sys/types.h>
28593 #include <signal.h>
28594
28595 int
28596 main ()
28597 {
28598 return *(signal (0, 0)) (0) == 1;
28599   ;
28600   return 0;
28601 }
28602 _ACEOF
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_compile") 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } && {
28617          test -z "$ac_c_werror_flag" ||
28618          test ! -s conftest.err
28619        } && test -s conftest.$ac_objext; then
28620   ac_cv_type_signal=int
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625         ac_cv_type_signal=void
28626 fi
28627
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629 fi
28630 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28631 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28632
28633 cat >>confdefs.h <<_ACEOF
28634 #define RETSIGTYPE $ac_cv_type_signal
28635 _ACEOF
28636
28637
28638 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28639 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28640 if test "${ac_cv_struct_tm+set}" = set; then
28641   echo $ECHO_N "(cached) $ECHO_C" >&6
28642 else
28643   cat >conftest.$ac_ext <<_ACEOF
28644 /* confdefs.h.  */
28645 _ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h.  */
28649 #include <sys/types.h>
28650 #include <time.h>
28651
28652 int
28653 main ()
28654 {
28655 struct tm tm;
28656                                      int *p = &tm.tm_sec;
28657                                      return !p;
28658   ;
28659   return 0;
28660 }
28661 _ACEOF
28662 rm -f conftest.$ac_objext
28663 if { (ac_try="$ac_compile"
28664 case "(($ac_try" in
28665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666   *) ac_try_echo=$ac_try;;
28667 esac
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669   (eval "$ac_compile") 2>conftest.er1
28670   ac_status=$?
28671   grep -v '^ *+' conftest.er1 >conftest.err
28672   rm -f conftest.er1
28673   cat conftest.err >&5
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); } && {
28676          test -z "$ac_c_werror_flag" ||
28677          test ! -s conftest.err
28678        } && test -s conftest.$ac_objext; then
28679   ac_cv_struct_tm=time.h
28680 else
28681   echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684         ac_cv_struct_tm=sys/time.h
28685 fi
28686
28687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28688 fi
28689 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28690 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28691 if test $ac_cv_struct_tm = sys/time.h; then
28692
28693 cat >>confdefs.h <<\_ACEOF
28694 #define TM_IN_SYS_TIME 1
28695 _ACEOF
28696
28697 fi
28698
28699 { echo "$as_me:$LINENO: checking for int64_t" >&5
28700 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28701 if test "${ac_cv_type_int64_t+set}" = set; then
28702   echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28704   cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h.  */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h.  */
28710 $ac_includes_default
28711 typedef int64_t ac__type_new_;
28712 int
28713 main ()
28714 {
28715 if ((ac__type_new_ *) 0)
28716   return 0;
28717 if (sizeof (ac__type_new_))
28718   return 0;
28719   ;
28720   return 0;
28721 }
28722 _ACEOF
28723 rm -f conftest.$ac_objext
28724 if { (ac_try="$ac_compile"
28725 case "(($ac_try" in
28726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727   *) ac_try_echo=$ac_try;;
28728 esac
28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730   (eval "$ac_compile") 2>conftest.er1
28731   ac_status=$?
28732   grep -v '^ *+' conftest.er1 >conftest.err
28733   rm -f conftest.er1
28734   cat conftest.err >&5
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); } && {
28737          test -z "$ac_c_werror_flag" ||
28738          test ! -s conftest.err
28739        } && test -s conftest.$ac_objext; then
28740   ac_cv_type_int64_t=yes
28741 else
28742   echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28744
28745         ac_cv_type_int64_t=no
28746 fi
28747
28748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28749 fi
28750 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28751 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28752 if test $ac_cv_type_int64_t = yes; then
28753
28754 cat >>confdefs.h <<_ACEOF
28755 #define HAVE_INT64_T 1
28756 _ACEOF
28757
28758
28759 else
28760   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28761 echo "$as_me: error: Type int64_t required but not found" >&2;}
28762    { (exit 1); exit 1; }; }
28763 fi
28764
28765 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28766 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28767 if test "${ac_cv_type_uint64_t+set}" = set; then
28768   echo $ECHO_N "(cached) $ECHO_C" >&6
28769 else
28770   cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 $ac_includes_default
28777 typedef uint64_t ac__type_new_;
28778 int
28779 main ()
28780 {
28781 if ((ac__type_new_ *) 0)
28782   return 0;
28783 if (sizeof (ac__type_new_))
28784   return 0;
28785   ;
28786   return 0;
28787 }
28788 _ACEOF
28789 rm -f conftest.$ac_objext
28790 if { (ac_try="$ac_compile"
28791 case "(($ac_try" in
28792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793   *) ac_try_echo=$ac_try;;
28794 esac
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796   (eval "$ac_compile") 2>conftest.er1
28797   ac_status=$?
28798   grep -v '^ *+' conftest.er1 >conftest.err
28799   rm -f conftest.er1
28800   cat conftest.err >&5
28801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); } && {
28803          test -z "$ac_c_werror_flag" ||
28804          test ! -s conftest.err
28805        } && test -s conftest.$ac_objext; then
28806   ac_cv_type_uint64_t=yes
28807 else
28808   echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28810
28811         ac_cv_type_uint64_t=no
28812 fi
28813
28814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28815 fi
28816 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28817 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28818 if test $ac_cv_type_uint64_t = yes; then
28819
28820 cat >>confdefs.h <<_ACEOF
28821 #define HAVE_UINT64_T 1
28822 _ACEOF
28823
28824
28825 else
28826   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28827 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28828 if test "${ac_cv_type_u_int64_t+set}" = set; then
28829   echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831   cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h.  */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h.  */
28837 $ac_includes_default
28838 typedef u_int64_t ac__type_new_;
28839 int
28840 main ()
28841 {
28842 if ((ac__type_new_ *) 0)
28843   return 0;
28844 if (sizeof (ac__type_new_))
28845   return 0;
28846   ;
28847   return 0;
28848 }
28849 _ACEOF
28850 rm -f conftest.$ac_objext
28851 if { (ac_try="$ac_compile"
28852 case "(($ac_try" in
28853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854   *) ac_try_echo=$ac_try;;
28855 esac
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857   (eval "$ac_compile") 2>conftest.er1
28858   ac_status=$?
28859   grep -v '^ *+' conftest.er1 >conftest.err
28860   rm -f conftest.er1
28861   cat conftest.err >&5
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); } && {
28864          test -z "$ac_c_werror_flag" ||
28865          test ! -s conftest.err
28866        } && test -s conftest.$ac_objext; then
28867   ac_cv_type_u_int64_t=yes
28868 else
28869   echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28871
28872         ac_cv_type_u_int64_t=no
28873 fi
28874
28875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28876 fi
28877 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28878 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28879 if test $ac_cv_type_u_int64_t = yes; then
28880
28881 cat >>confdefs.h <<_ACEOF
28882 #define HAVE_U_INT64_T 1
28883 _ACEOF
28884
28885
28886 else
28887   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28888 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28889    { (exit 1); exit 1; }; }
28890 fi
28891
28892 fi
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28904 do
28905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28909   echo $ECHO_N "(cached) $ECHO_C" >&6
28910 else
28911   cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28919 #define $ac_func innocuous_$ac_func
28920
28921 /* System header to define __stub macros and hopefully few prototypes,
28922     which can conflict with char $ac_func (); below.
28923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28924     <limits.h> exists even on freestanding compilers.  */
28925
28926 #ifdef __STDC__
28927 # include <limits.h>
28928 #else
28929 # include <assert.h>
28930 #endif
28931
28932 #undef $ac_func
28933
28934 /* Override any GCC internal prototype to avoid an error.
28935    Use char because int might match the return type of a GCC
28936    builtin and then its argument prototype would still apply.  */
28937 #ifdef __cplusplus
28938 extern "C"
28939 #endif
28940 char $ac_func ();
28941 /* The GNU C library defines this for functions which it implements
28942     to always fail with ENOSYS.  Some functions are actually named
28943     something starting with __ and the normal name is an alias.  */
28944 #if defined __stub_$ac_func || defined __stub___$ac_func
28945 choke me
28946 #endif
28947
28948 int
28949 main ()
28950 {
28951 return $ac_func ();
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (ac_try="$ac_link"
28958 case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963   (eval "$ac_link") 2>conftest.er1
28964   ac_status=$?
28965   grep -v '^ *+' conftest.er1 >conftest.err
28966   rm -f conftest.er1
28967   cat conftest.err >&5
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); } && {
28970          test -z "$ac_c_werror_flag" ||
28971          test ! -s conftest.err
28972        } && test -s conftest$ac_exeext &&
28973        $as_test_x conftest$ac_exeext; then
28974   eval "$as_ac_var=yes"
28975 else
28976   echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979         eval "$as_ac_var=no"
28980 fi
28981
28982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28983       conftest$ac_exeext conftest.$ac_ext
28984 fi
28985 ac_res=`eval echo '${'$as_ac_var'}'`
28986                { echo "$as_me:$LINENO: result: $ac_res" >&5
28987 echo "${ECHO_T}$ac_res" >&6; }
28988 if test `eval echo '${'$as_ac_var'}'` = yes; then
28989   cat >>confdefs.h <<_ACEOF
28990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28991 _ACEOF
28992
28993 fi
28994 done
28995
28996
28997
28998
28999
29000 for ac_func in powf fmodf strtof round
29001 do
29002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29006   echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008   cat >conftest.$ac_ext <<_ACEOF
29009 /* confdefs.h.  */
29010 _ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h.  */
29014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29016 #define $ac_func innocuous_$ac_func
29017
29018 /* System header to define __stub macros and hopefully few prototypes,
29019     which can conflict with char $ac_func (); below.
29020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29021     <limits.h> exists even on freestanding compilers.  */
29022
29023 #ifdef __STDC__
29024 # include <limits.h>
29025 #else
29026 # include <assert.h>
29027 #endif
29028
29029 #undef $ac_func
29030
29031 /* Override any GCC internal prototype to avoid an error.
29032    Use char because int might match the return type of a GCC
29033    builtin and then its argument prototype would still apply.  */
29034 #ifdef __cplusplus
29035 extern "C"
29036 #endif
29037 char $ac_func ();
29038 /* The GNU C library defines this for functions which it implements
29039     to always fail with ENOSYS.  Some functions are actually named
29040     something starting with __ and the normal name is an alias.  */
29041 #if defined __stub_$ac_func || defined __stub___$ac_func
29042 choke me
29043 #endif
29044
29045 int
29046 main ()
29047 {
29048 return $ac_func ();
29049   ;
29050   return 0;
29051 }
29052 _ACEOF
29053 rm -f conftest.$ac_objext conftest$ac_exeext
29054 if { (ac_try="$ac_link"
29055 case "(($ac_try" in
29056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057   *) ac_try_echo=$ac_try;;
29058 esac
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060   (eval "$ac_link") 2>conftest.er1
29061   ac_status=$?
29062   grep -v '^ *+' conftest.er1 >conftest.err
29063   rm -f conftest.er1
29064   cat conftest.err >&5
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); } && {
29067          test -z "$ac_c_werror_flag" ||
29068          test ! -s conftest.err
29069        } && test -s conftest$ac_exeext &&
29070        $as_test_x conftest$ac_exeext; then
29071   eval "$as_ac_var=yes"
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076         eval "$as_ac_var=no"
29077 fi
29078
29079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29080       conftest$ac_exeext conftest.$ac_ext
29081 fi
29082 ac_res=`eval echo '${'$as_ac_var'}'`
29083                { echo "$as_me:$LINENO: result: $ac_res" >&5
29084 echo "${ECHO_T}$ac_res" >&6; }
29085 if test `eval echo '${'$as_ac_var'}'` = yes; then
29086   cat >>confdefs.h <<_ACEOF
29087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29088 _ACEOF
29089
29090 fi
29091 done
29092
29093
29094
29095
29096
29097
29098 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29099 do
29100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29104   echo $ECHO_N "(cached) $ECHO_C" >&6
29105 else
29106   cat >conftest.$ac_ext <<_ACEOF
29107 /* confdefs.h.  */
29108 _ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h.  */
29112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29114 #define $ac_func innocuous_$ac_func
29115
29116 /* System header to define __stub macros and hopefully few prototypes,
29117     which can conflict with char $ac_func (); below.
29118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29119     <limits.h> exists even on freestanding compilers.  */
29120
29121 #ifdef __STDC__
29122 # include <limits.h>
29123 #else
29124 # include <assert.h>
29125 #endif
29126
29127 #undef $ac_func
29128
29129 /* Override any GCC internal prototype to avoid an error.
29130    Use char because int might match the return type of a GCC
29131    builtin and then its argument prototype would still apply.  */
29132 #ifdef __cplusplus
29133 extern "C"
29134 #endif
29135 char $ac_func ();
29136 /* The GNU C library defines this for functions which it implements
29137     to always fail with ENOSYS.  Some functions are actually named
29138     something starting with __ and the normal name is an alias.  */
29139 #if defined __stub_$ac_func || defined __stub___$ac_func
29140 choke me
29141 #endif
29142
29143 int
29144 main ()
29145 {
29146 return $ac_func ();
29147   ;
29148   return 0;
29149 }
29150 _ACEOF
29151 rm -f conftest.$ac_objext conftest$ac_exeext
29152 if { (ac_try="$ac_link"
29153 case "(($ac_try" in
29154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29155   *) ac_try_echo=$ac_try;;
29156 esac
29157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29158   (eval "$ac_link") 2>conftest.er1
29159   ac_status=$?
29160   grep -v '^ *+' conftest.er1 >conftest.err
29161   rm -f conftest.er1
29162   cat conftest.err >&5
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); } && {
29165          test -z "$ac_c_werror_flag" ||
29166          test ! -s conftest.err
29167        } && test -s conftest$ac_exeext &&
29168        $as_test_x conftest$ac_exeext; then
29169   eval "$as_ac_var=yes"
29170 else
29171   echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174         eval "$as_ac_var=no"
29175 fi
29176
29177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29178       conftest$ac_exeext conftest.$ac_ext
29179 fi
29180 ac_res=`eval echo '${'$as_ac_var'}'`
29181                { echo "$as_me:$LINENO: result: $ac_res" >&5
29182 echo "${ECHO_T}$ac_res" >&6; }
29183 if test `eval echo '${'$as_ac_var'}'` = yes; then
29184   cat >>confdefs.h <<_ACEOF
29185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29186 _ACEOF
29187
29188 fi
29189 done
29190
29191
29192
29193
29194 for ac_func in isatty mkdtemp mkstemp
29195 do
29196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29200   echo $ECHO_N "(cached) $ECHO_C" >&6
29201 else
29202   cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29210 #define $ac_func innocuous_$ac_func
29211
29212 /* System header to define __stub macros and hopefully few prototypes,
29213     which can conflict with char $ac_func (); below.
29214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29215     <limits.h> exists even on freestanding compilers.  */
29216
29217 #ifdef __STDC__
29218 # include <limits.h>
29219 #else
29220 # include <assert.h>
29221 #endif
29222
29223 #undef $ac_func
29224
29225 /* Override any GCC internal prototype to avoid an error.
29226    Use char because int might match the return type of a GCC
29227    builtin and then its argument prototype would still apply.  */
29228 #ifdef __cplusplus
29229 extern "C"
29230 #endif
29231 char $ac_func ();
29232 /* The GNU C library defines this for functions which it implements
29233     to always fail with ENOSYS.  Some functions are actually named
29234     something starting with __ and the normal name is an alias.  */
29235 #if defined __stub_$ac_func || defined __stub___$ac_func
29236 choke me
29237 #endif
29238
29239 int
29240 main ()
29241 {
29242 return $ac_func ();
29243   ;
29244   return 0;
29245 }
29246 _ACEOF
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (ac_try="$ac_link"
29249 case "(($ac_try" in
29250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251   *) ac_try_echo=$ac_try;;
29252 esac
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254   (eval "$ac_link") 2>conftest.er1
29255   ac_status=$?
29256   grep -v '^ *+' conftest.er1 >conftest.err
29257   rm -f conftest.er1
29258   cat conftest.err >&5
29259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); } && {
29261          test -z "$ac_c_werror_flag" ||
29262          test ! -s conftest.err
29263        } && test -s conftest$ac_exeext &&
29264        $as_test_x conftest$ac_exeext; then
29265   eval "$as_ac_var=yes"
29266 else
29267   echo "$as_me: failed program was:" >&5
29268 sed 's/^/| /' conftest.$ac_ext >&5
29269
29270         eval "$as_ac_var=no"
29271 fi
29272
29273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29274       conftest$ac_exeext conftest.$ac_ext
29275 fi
29276 ac_res=`eval echo '${'$as_ac_var'}'`
29277                { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29279 if test `eval echo '${'$as_ac_var'}'` = yes; then
29280   cat >>confdefs.h <<_ACEOF
29281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29282 _ACEOF
29283
29284 fi
29285 done
29286
29287
29288
29289
29290
29291
29292
29293
29294 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29295 do
29296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29301 else
29302   cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h.  */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h.  */
29308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29310 #define $ac_func innocuous_$ac_func
29311
29312 /* System header to define __stub macros and hopefully few prototypes,
29313     which can conflict with char $ac_func (); below.
29314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315     <limits.h> exists even on freestanding compilers.  */
29316
29317 #ifdef __STDC__
29318 # include <limits.h>
29319 #else
29320 # include <assert.h>
29321 #endif
29322
29323 #undef $ac_func
29324
29325 /* Override any GCC internal prototype to avoid an error.
29326    Use char because int might match the return type of a GCC
29327    builtin and then its argument prototype would still apply.  */
29328 #ifdef __cplusplus
29329 extern "C"
29330 #endif
29331 char $ac_func ();
29332 /* The GNU C library defines this for functions which it implements
29333     to always fail with ENOSYS.  Some functions are actually named
29334     something starting with __ and the normal name is an alias.  */
29335 #if defined __stub_$ac_func || defined __stub___$ac_func
29336 choke me
29337 #endif
29338
29339 int
29340 main ()
29341 {
29342 return $ac_func ();
29343   ;
29344   return 0;
29345 }
29346 _ACEOF
29347 rm -f conftest.$ac_objext conftest$ac_exeext
29348 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29355   ac_status=$?
29356   grep -v '^ *+' conftest.er1 >conftest.err
29357   rm -f conftest.er1
29358   cat conftest.err >&5
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); } && {
29361          test -z "$ac_c_werror_flag" ||
29362          test ! -s conftest.err
29363        } && test -s conftest$ac_exeext &&
29364        $as_test_x conftest$ac_exeext; then
29365   eval "$as_ac_var=yes"
29366 else
29367   echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29369
29370         eval "$as_ac_var=no"
29371 fi
29372
29373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29374       conftest$ac_exeext conftest.$ac_ext
29375 fi
29376 ac_res=`eval echo '${'$as_ac_var'}'`
29377                { echo "$as_me:$LINENO: result: $ac_res" >&5
29378 echo "${ECHO_T}$ac_res" >&6; }
29379 if test `eval echo '${'$as_ac_var'}'` = yes; then
29380   cat >>confdefs.h <<_ACEOF
29381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29382 _ACEOF
29383
29384 fi
29385 done
29386
29387
29388
29389
29390
29391 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29392 do
29393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29397   echo $ECHO_N "(cached) $ECHO_C" >&6
29398 else
29399   cat >conftest.$ac_ext <<_ACEOF
29400 /* confdefs.h.  */
29401 _ACEOF
29402 cat confdefs.h >>conftest.$ac_ext
29403 cat >>conftest.$ac_ext <<_ACEOF
29404 /* end confdefs.h.  */
29405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29407 #define $ac_func innocuous_$ac_func
29408
29409 /* System header to define __stub macros and hopefully few prototypes,
29410     which can conflict with char $ac_func (); below.
29411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29412     <limits.h> exists even on freestanding compilers.  */
29413
29414 #ifdef __STDC__
29415 # include <limits.h>
29416 #else
29417 # include <assert.h>
29418 #endif
29419
29420 #undef $ac_func
29421
29422 /* Override any GCC internal prototype to avoid an error.
29423    Use char because int might match the return type of a GCC
29424    builtin and then its argument prototype would still apply.  */
29425 #ifdef __cplusplus
29426 extern "C"
29427 #endif
29428 char $ac_func ();
29429 /* The GNU C library defines this for functions which it implements
29430     to always fail with ENOSYS.  Some functions are actually named
29431     something starting with __ and the normal name is an alias.  */
29432 #if defined __stub_$ac_func || defined __stub___$ac_func
29433 choke me
29434 #endif
29435
29436 int
29437 main ()
29438 {
29439 return $ac_func ();
29440   ;
29441   return 0;
29442 }
29443 _ACEOF
29444 rm -f conftest.$ac_objext conftest$ac_exeext
29445 if { (ac_try="$ac_link"
29446 case "(($ac_try" in
29447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448   *) ac_try_echo=$ac_try;;
29449 esac
29450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451   (eval "$ac_link") 2>conftest.er1
29452   ac_status=$?
29453   grep -v '^ *+' conftest.er1 >conftest.err
29454   rm -f conftest.er1
29455   cat conftest.err >&5
29456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457   (exit $ac_status); } && {
29458          test -z "$ac_c_werror_flag" ||
29459          test ! -s conftest.err
29460        } && test -s conftest$ac_exeext &&
29461        $as_test_x conftest$ac_exeext; then
29462   eval "$as_ac_var=yes"
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467         eval "$as_ac_var=no"
29468 fi
29469
29470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29471       conftest$ac_exeext conftest.$ac_ext
29472 fi
29473 ac_res=`eval echo '${'$as_ac_var'}'`
29474                { echo "$as_me:$LINENO: result: $ac_res" >&5
29475 echo "${ECHO_T}$ac_res" >&6; }
29476 if test `eval echo '${'$as_ac_var'}'` = yes; then
29477   cat >>confdefs.h <<_ACEOF
29478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29479 _ACEOF
29480
29481 fi
29482 done
29483
29484
29485
29486
29487
29488 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29489 do
29490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 else
29496   cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29504 #define $ac_func innocuous_$ac_func
29505
29506 /* System header to define __stub macros and hopefully few prototypes,
29507     which can conflict with char $ac_func (); below.
29508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29509     <limits.h> exists even on freestanding compilers.  */
29510
29511 #ifdef __STDC__
29512 # include <limits.h>
29513 #else
29514 # include <assert.h>
29515 #endif
29516
29517 #undef $ac_func
29518
29519 /* Override any GCC internal prototype to avoid an error.
29520    Use char because int might match the return type of a GCC
29521    builtin and then its argument prototype would still apply.  */
29522 #ifdef __cplusplus
29523 extern "C"
29524 #endif
29525 char $ac_func ();
29526 /* The GNU C library defines this for functions which it implements
29527     to always fail with ENOSYS.  Some functions are actually named
29528     something starting with __ and the normal name is an alias.  */
29529 #if defined __stub_$ac_func || defined __stub___$ac_func
29530 choke me
29531 #endif
29532
29533 int
29534 main ()
29535 {
29536 return $ac_func ();
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 rm -f conftest.$ac_objext conftest$ac_exeext
29542 if { (ac_try="$ac_link"
29543 case "(($ac_try" in
29544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545   *) ac_try_echo=$ac_try;;
29546 esac
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548   (eval "$ac_link") 2>conftest.er1
29549   ac_status=$?
29550   grep -v '^ *+' conftest.er1 >conftest.err
29551   rm -f conftest.er1
29552   cat conftest.err >&5
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } && {
29555          test -z "$ac_c_werror_flag" ||
29556          test ! -s conftest.err
29557        } && test -s conftest$ac_exeext &&
29558        $as_test_x conftest$ac_exeext; then
29559   eval "$as_ac_var=yes"
29560 else
29561   echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29563
29564         eval "$as_ac_var=no"
29565 fi
29566
29567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29568       conftest$ac_exeext conftest.$ac_ext
29569 fi
29570 ac_res=`eval echo '${'$as_ac_var'}'`
29571                { echo "$as_me:$LINENO: result: $ac_res" >&5
29572 echo "${ECHO_T}$ac_res" >&6; }
29573 if test `eval echo '${'$as_ac_var'}'` = yes; then
29574   cat >>confdefs.h <<_ACEOF
29575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29576 _ACEOF
29577
29578 fi
29579 done
29580
29581 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29582 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29583 if test "${llvm_cv_c_printf_a+set}" = set; then
29584   echo $ECHO_N "(cached) $ECHO_C" >&6
29585 else
29586   ac_ext=c
29587 ac_cpp='$CPP $CPPFLAGS'
29588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29591
29592  if test "$cross_compiling" = yes; then
29593   llvmac_cv_c_printf_a=no
29594 else
29595   cat >conftest.$ac_ext <<_ACEOF
29596
29597   /* confdefs.h.  */
29598 _ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h.  */
29602
29603 #include <stdio.h>
29604 #include <stdlib.h>
29605
29606 int
29607 main ()
29608 {
29609
29610 volatile double A, B;
29611 char Buffer[100];
29612 A = 1;
29613 A /= 10.0;
29614 sprintf(Buffer, "%a", A);
29615 B = atof(Buffer);
29616 if (A != B)
29617   return (1);
29618 if (A != 0x1.999999999999ap-4)
29619   return (1);
29620 return (0);
29621   ;
29622   return 0;
29623 }
29624 _ACEOF
29625 rm -f conftest$ac_exeext
29626 if { (ac_try="$ac_link"
29627 case "(($ac_try" in
29628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629   *) ac_try_echo=$ac_try;;
29630 esac
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632   (eval "$ac_link") 2>&5
29633   ac_status=$?
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29636   { (case "(($ac_try" in
29637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638   *) ac_try_echo=$ac_try;;
29639 esac
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641   (eval "$ac_try") 2>&5
29642   ac_status=$?
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); }; }; then
29645   llvm_cv_c_printf_a=yes
29646 else
29647   echo "$as_me: program exited with status $ac_status" >&5
29648 echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29650
29651 ( exit $ac_status )
29652 llvmac_cv_c_printf_a=no
29653 fi
29654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29655 fi
29656
29657
29658  ac_ext=c
29659 ac_cpp='$CPP $CPPFLAGS'
29660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29663
29664 fi
29665 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29666 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29667  if test "$llvm_cv_c_printf_a" = "yes"; then
29668
29669 cat >>confdefs.h <<\_ACEOF
29670 #define HAVE_PRINTF_A 1
29671 _ACEOF
29672
29673  fi
29674
29675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29676 # for constant arguments.  Useless!
29677 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29678 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29679 if test "${ac_cv_working_alloca_h+set}" = set; then
29680   echo $ECHO_N "(cached) $ECHO_C" >&6
29681 else
29682   cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 #include <alloca.h>
29689 int
29690 main ()
29691 {
29692 char *p = (char *) alloca (2 * sizeof (int));
29693                           if (p) return 0;
29694   ;
29695   return 0;
29696 }
29697 _ACEOF
29698 rm -f conftest.$ac_objext conftest$ac_exeext
29699 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29706   ac_status=$?
29707   grep -v '^ *+' conftest.er1 >conftest.err
29708   rm -f conftest.er1
29709   cat conftest.err >&5
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); } && {
29712          test -z "$ac_c_werror_flag" ||
29713          test ! -s conftest.err
29714        } && test -s conftest$ac_exeext &&
29715        $as_test_x conftest$ac_exeext; then
29716   ac_cv_working_alloca_h=yes
29717 else
29718   echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29720
29721         ac_cv_working_alloca_h=no
29722 fi
29723
29724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29725       conftest$ac_exeext conftest.$ac_ext
29726 fi
29727 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29728 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29729 if test $ac_cv_working_alloca_h = yes; then
29730
29731 cat >>confdefs.h <<\_ACEOF
29732 #define HAVE_ALLOCA_H 1
29733 _ACEOF
29734
29735 fi
29736
29737 { echo "$as_me:$LINENO: checking for alloca" >&5
29738 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29739 if test "${ac_cv_func_alloca_works+set}" = set; then
29740   echo $ECHO_N "(cached) $ECHO_C" >&6
29741 else
29742   cat >conftest.$ac_ext <<_ACEOF
29743 /* confdefs.h.  */
29744 _ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h.  */
29748 #ifdef __GNUC__
29749 # define alloca __builtin_alloca
29750 #else
29751 # ifdef _MSC_VER
29752 #  include <malloc.h>
29753 #  define alloca _alloca
29754 # else
29755 #  ifdef HAVE_ALLOCA_H
29756 #   include <alloca.h>
29757 #  else
29758 #   ifdef _AIX
29759  #pragma alloca
29760 #   else
29761 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29762 char *alloca ();
29763 #    endif
29764 #   endif
29765 #  endif
29766 # endif
29767 #endif
29768
29769 int
29770 main ()
29771 {
29772 char *p = (char *) alloca (1);
29773                                     if (p) return 0;
29774   ;
29775   return 0;
29776 }
29777 _ACEOF
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (ac_try="$ac_link"
29780 case "(($ac_try" in
29781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782   *) ac_try_echo=$ac_try;;
29783 esac
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785   (eval "$ac_link") 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } && {
29792          test -z "$ac_c_werror_flag" ||
29793          test ! -s conftest.err
29794        } && test -s conftest$ac_exeext &&
29795        $as_test_x conftest$ac_exeext; then
29796   ac_cv_func_alloca_works=yes
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801         ac_cv_func_alloca_works=no
29802 fi
29803
29804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29805       conftest$ac_exeext conftest.$ac_ext
29806 fi
29807 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29808 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29809
29810 if test $ac_cv_func_alloca_works = yes; then
29811
29812 cat >>confdefs.h <<\_ACEOF
29813 #define HAVE_ALLOCA 1
29814 _ACEOF
29815
29816 else
29817   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29818 # that cause trouble.  Some versions do not even contain alloca or
29819 # contain a buggy version.  If you still want to use their alloca,
29820 # use ar to extract alloca.o from them instead of compiling alloca.c.
29821
29822 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29823
29824 cat >>confdefs.h <<\_ACEOF
29825 #define C_ALLOCA 1
29826 _ACEOF
29827
29828
29829 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29830 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29831 if test "${ac_cv_os_cray+set}" = set; then
29832   echo $ECHO_N "(cached) $ECHO_C" >&6
29833 else
29834   cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h.  */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h.  */
29840 #if defined CRAY && ! defined CRAY2
29841 webecray
29842 #else
29843 wenotbecray
29844 #endif
29845
29846 _ACEOF
29847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29848   $EGREP "webecray" >/dev/null 2>&1; then
29849   ac_cv_os_cray=yes
29850 else
29851   ac_cv_os_cray=no
29852 fi
29853 rm -f conftest*
29854
29855 fi
29856 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29857 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29858 if test $ac_cv_os_cray = yes; then
29859   for ac_func in _getb67 GETB67 getb67; do
29860     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29864   echo $ECHO_N "(cached) $ECHO_C" >&6
29865 else
29866   cat >conftest.$ac_ext <<_ACEOF
29867 /* confdefs.h.  */
29868 _ACEOF
29869 cat confdefs.h >>conftest.$ac_ext
29870 cat >>conftest.$ac_ext <<_ACEOF
29871 /* end confdefs.h.  */
29872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29874 #define $ac_func innocuous_$ac_func
29875
29876 /* System header to define __stub macros and hopefully few prototypes,
29877     which can conflict with char $ac_func (); below.
29878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29879     <limits.h> exists even on freestanding compilers.  */
29880
29881 #ifdef __STDC__
29882 # include <limits.h>
29883 #else
29884 # include <assert.h>
29885 #endif
29886
29887 #undef $ac_func
29888
29889 /* Override any GCC internal prototype to avoid an error.
29890    Use char because int might match the return type of a GCC
29891    builtin and then its argument prototype would still apply.  */
29892 #ifdef __cplusplus
29893 extern "C"
29894 #endif
29895 char $ac_func ();
29896 /* The GNU C library defines this for functions which it implements
29897     to always fail with ENOSYS.  Some functions are actually named
29898     something starting with __ and the normal name is an alias.  */
29899 #if defined __stub_$ac_func || defined __stub___$ac_func
29900 choke me
29901 #endif
29902
29903 int
29904 main ()
29905 {
29906 return $ac_func ();
29907   ;
29908   return 0;
29909 }
29910 _ACEOF
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (ac_try="$ac_link"
29913 case "(($ac_try" in
29914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915   *) ac_try_echo=$ac_try;;
29916 esac
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918   (eval "$ac_link") 2>conftest.er1
29919   ac_status=$?
29920   grep -v '^ *+' conftest.er1 >conftest.err
29921   rm -f conftest.er1
29922   cat conftest.err >&5
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); } && {
29925          test -z "$ac_c_werror_flag" ||
29926          test ! -s conftest.err
29927        } && test -s conftest$ac_exeext &&
29928        $as_test_x conftest$ac_exeext; then
29929   eval "$as_ac_var=yes"
29930 else
29931   echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29933
29934         eval "$as_ac_var=no"
29935 fi
29936
29937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29938       conftest$ac_exeext conftest.$ac_ext
29939 fi
29940 ac_res=`eval echo '${'$as_ac_var'}'`
29941                { echo "$as_me:$LINENO: result: $ac_res" >&5
29942 echo "${ECHO_T}$ac_res" >&6; }
29943 if test `eval echo '${'$as_ac_var'}'` = yes; then
29944
29945 cat >>confdefs.h <<_ACEOF
29946 #define CRAY_STACKSEG_END $ac_func
29947 _ACEOF
29948
29949     break
29950 fi
29951
29952   done
29953 fi
29954
29955 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29956 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29957 if test "${ac_cv_c_stack_direction+set}" = set; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   if test "$cross_compiling" = yes; then
29961   ac_cv_c_stack_direction=0
29962 else
29963   cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h.  */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h.  */
29969 $ac_includes_default
29970 int
29971 find_stack_direction ()
29972 {
29973   static char *addr = 0;
29974   auto char dummy;
29975   if (addr == 0)
29976     {
29977       addr = &dummy;
29978       return find_stack_direction ();
29979     }
29980   else
29981     return (&dummy > addr) ? 1 : -1;
29982 }
29983
29984 int
29985 main ()
29986 {
29987   return find_stack_direction () < 0;
29988 }
29989 _ACEOF
29990 rm -f conftest$ac_exeext
29991 if { (ac_try="$ac_link"
29992 case "(($ac_try" in
29993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994   *) ac_try_echo=$ac_try;;
29995 esac
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997   (eval "$ac_link") 2>&5
29998   ac_status=$?
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30001   { (case "(($ac_try" in
30002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003   *) ac_try_echo=$ac_try;;
30004 esac
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006   (eval "$ac_try") 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); }; }; then
30010   ac_cv_c_stack_direction=1
30011 else
30012   echo "$as_me: program exited with status $ac_status" >&5
30013 echo "$as_me: failed program was:" >&5
30014 sed 's/^/| /' conftest.$ac_ext >&5
30015
30016 ( exit $ac_status )
30017 ac_cv_c_stack_direction=-1
30018 fi
30019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30020 fi
30021
30022
30023 fi
30024 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30025 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30026
30027 cat >>confdefs.h <<_ACEOF
30028 #define STACK_DIRECTION $ac_cv_c_stack_direction
30029 _ACEOF
30030
30031
30032 fi
30033
30034
30035 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30036 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30037 if test "${ac_cv_func_rand48+set}" = set; then
30038   echo $ECHO_N "(cached) $ECHO_C" >&6
30039 else
30040   ac_ext=cpp
30041 ac_cpp='$CXXCPP $CPPFLAGS'
30042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30045
30046    cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052 #include <stdlib.h>
30053 int
30054 main ()
30055 {
30056 srand48(0);lrand48();drand48();
30057   ;
30058   return 0;
30059 }
30060 _ACEOF
30061 rm -f conftest.$ac_objext
30062 if { (ac_try="$ac_compile"
30063 case "(($ac_try" in
30064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065   *) ac_try_echo=$ac_try;;
30066 esac
30067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30068   (eval "$ac_compile") 2>conftest.er1
30069   ac_status=$?
30070   grep -v '^ *+' conftest.er1 >conftest.err
30071   rm -f conftest.er1
30072   cat conftest.err >&5
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); } && {
30075          test -z "$ac_cxx_werror_flag" ||
30076          test ! -s conftest.err
30077        } && test -s conftest.$ac_objext; then
30078   ac_cv_func_rand48=yes
30079 else
30080   echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30082
30083         ac_cv_func_rand48=no
30084 fi
30085
30086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30087   ac_ext=c
30088 ac_cpp='$CPP $CPPFLAGS'
30089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30092
30093 fi
30094 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30095 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30096
30097 if test "$ac_cv_func_rand48" = "yes" ; then
30098
30099 cat >>confdefs.h <<\_ACEOF
30100 #define HAVE_RAND48 1
30101 _ACEOF
30102
30103 fi
30104
30105
30106 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30107 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30108 if test "${ac_cv_cxx_namespaces+set}" = set; then
30109   echo $ECHO_N "(cached) $ECHO_C" >&6
30110 else
30111   ac_ext=cpp
30112 ac_cpp='$CXXCPP $CPPFLAGS'
30113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30116
30117  cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h.  */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h.  */
30123 namespace Outer { namespace Inner { int i = 0; }}
30124 int
30125 main ()
30126 {
30127 using namespace Outer::Inner; return i;
30128   ;
30129   return 0;
30130 }
30131 _ACEOF
30132 rm -f conftest.$ac_objext
30133 if { (ac_try="$ac_compile"
30134 case "(($ac_try" in
30135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136   *) ac_try_echo=$ac_try;;
30137 esac
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139   (eval "$ac_compile") 2>conftest.er1
30140   ac_status=$?
30141   grep -v '^ *+' conftest.er1 >conftest.err
30142   rm -f conftest.er1
30143   cat conftest.err >&5
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); } && {
30146          test -z "$ac_cxx_werror_flag" ||
30147          test ! -s conftest.err
30148        } && test -s conftest.$ac_objext; then
30149   ac_cv_cxx_namespaces=yes
30150 else
30151   echo "$as_me: failed program was:" >&5
30152 sed 's/^/| /' conftest.$ac_ext >&5
30153
30154         ac_cv_cxx_namespaces=no
30155 fi
30156
30157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30158  ac_ext=c
30159 ac_cpp='$CPP $CPPFLAGS'
30160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30163
30164
30165 fi
30166 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30167 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30168 if test "$ac_cv_cxx_namespaces" = yes; then
30169
30170 cat >>confdefs.h <<\_ACEOF
30171 #define HAVE_NAMESPACES
30172 _ACEOF
30173
30174 fi
30175
30176 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30177 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30178 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30179   echo $ECHO_N "(cached) $ECHO_C" >&6
30180 else
30181
30182   ac_ext=cpp
30183 ac_cpp='$CXXCPP $CPPFLAGS'
30184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30187
30188   cat >conftest.$ac_ext <<_ACEOF
30189 /* confdefs.h.  */
30190 _ACEOF
30191 cat confdefs.h >>conftest.$ac_ext
30192 cat >>conftest.$ac_ext <<_ACEOF
30193 /* end confdefs.h.  */
30194 #include <iterator>
30195 #ifdef HAVE_NAMESPACES
30196 using namespace std;
30197 #endif
30198 int
30199 main ()
30200 {
30201 iterator<int,int,int> t; return 0;
30202   ;
30203   return 0;
30204 }
30205 _ACEOF
30206 rm -f conftest.$ac_objext
30207 if { (ac_try="$ac_compile"
30208 case "(($ac_try" in
30209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210   *) ac_try_echo=$ac_try;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213   (eval "$ac_compile") 2>conftest.er1
30214   ac_status=$?
30215   grep -v '^ *+' conftest.er1 >conftest.err
30216   rm -f conftest.er1
30217   cat conftest.err >&5
30218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219   (exit $ac_status); } && {
30220          test -z "$ac_cxx_werror_flag" ||
30221          test ! -s conftest.err
30222        } && test -s conftest.$ac_objext; then
30223   ac_cv_cxx_have_std_iterator=yes
30224 else
30225   echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30227
30228         ac_cv_cxx_have_std_iterator=no
30229 fi
30230
30231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30232   ac_ext=c
30233 ac_cpp='$CPP $CPPFLAGS'
30234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30237
30238
30239 fi
30240 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30241 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30242 if test "$ac_cv_cxx_have_std_iterator" = yes
30243 then
30244
30245 cat >>confdefs.h <<\_ACEOF
30246 #define HAVE_STD_ITERATOR 1
30247 _ACEOF
30248
30249 else
30250
30251 cat >>confdefs.h <<\_ACEOF
30252 #define HAVE_STD_ITERATOR 0
30253 _ACEOF
30254
30255 fi
30256
30257 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30258 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30259 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30260   echo $ECHO_N "(cached) $ECHO_C" >&6
30261 else
30262
30263   ac_ext=cpp
30264 ac_cpp='$CXXCPP $CPPFLAGS'
30265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30268
30269   cat >conftest.$ac_ext <<_ACEOF
30270 /* confdefs.h.  */
30271 _ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h.  */
30275 #include <iterator>
30276 #ifdef HAVE_NAMESPACES
30277 using namespace std;
30278 #endif
30279 int
30280 main ()
30281 {
30282 bidirectional_iterator<int,int> t; return 0;
30283   ;
30284   return 0;
30285 }
30286 _ACEOF
30287 rm -f conftest.$ac_objext
30288 if { (ac_try="$ac_compile"
30289 case "(($ac_try" in
30290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291   *) ac_try_echo=$ac_try;;
30292 esac
30293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294   (eval "$ac_compile") 2>conftest.er1
30295   ac_status=$?
30296   grep -v '^ *+' conftest.er1 >conftest.err
30297   rm -f conftest.er1
30298   cat conftest.err >&5
30299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300   (exit $ac_status); } && {
30301          test -z "$ac_cxx_werror_flag" ||
30302          test ! -s conftest.err
30303        } && test -s conftest.$ac_objext; then
30304   ac_cv_cxx_have_bi_iterator=yes
30305 else
30306   echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30308
30309         ac_cv_cxx_have_bi_iterator=no
30310 fi
30311
30312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30313   ac_ext=c
30314 ac_cpp='$CPP $CPPFLAGS'
30315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30318
30319
30320 fi
30321 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30322 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30323 if test "$ac_cv_cxx_have_bi_iterator" = yes
30324 then
30325
30326 cat >>confdefs.h <<\_ACEOF
30327 #define HAVE_BI_ITERATOR 1
30328 _ACEOF
30329
30330 else
30331
30332 cat >>confdefs.h <<\_ACEOF
30333 #define HAVE_BI_ITERATOR 0
30334 _ACEOF
30335
30336 fi
30337
30338 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30339 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30340 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30341   echo $ECHO_N "(cached) $ECHO_C" >&6
30342 else
30343
30344   ac_ext=cpp
30345 ac_cpp='$CXXCPP $CPPFLAGS'
30346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30349
30350   cat >conftest.$ac_ext <<_ACEOF
30351 /* confdefs.h.  */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h.  */
30356 #include <iterator>
30357 #ifdef HAVE_NAMESPACES
30358 using namespace std;
30359 #endif
30360 int
30361 main ()
30362 {
30363 forward_iterator<int,int> t; return 0;
30364   ;
30365   return 0;
30366 }
30367 _ACEOF
30368 rm -f conftest.$ac_objext
30369 if { (ac_try="$ac_compile"
30370 case "(($ac_try" in
30371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372   *) ac_try_echo=$ac_try;;
30373 esac
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375   (eval "$ac_compile") 2>conftest.er1
30376   ac_status=$?
30377   grep -v '^ *+' conftest.er1 >conftest.err
30378   rm -f conftest.er1
30379   cat conftest.err >&5
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } && {
30382          test -z "$ac_cxx_werror_flag" ||
30383          test ! -s conftest.err
30384        } && test -s conftest.$ac_objext; then
30385   ac_cv_cxx_have_fwd_iterator=yes
30386 else
30387   echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30389
30390         ac_cv_cxx_have_fwd_iterator=no
30391 fi
30392
30393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30394   ac_ext=c
30395 ac_cpp='$CPP $CPPFLAGS'
30396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30399
30400
30401 fi
30402 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30403 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30404 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30405 then
30406
30407 cat >>confdefs.h <<\_ACEOF
30408 #define HAVE_FWD_ITERATOR 1
30409 _ACEOF
30410
30411 else
30412
30413 cat >>confdefs.h <<\_ACEOF
30414 #define HAVE_FWD_ITERATOR 0
30415 _ACEOF
30416
30417 fi
30418
30419
30420 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30421 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30422 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30423   echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30425   ac_ext=cpp
30426 ac_cpp='$CXXCPP $CPPFLAGS'
30427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30430
30431    cat >conftest.$ac_ext <<_ACEOF
30432 /* confdefs.h.  */
30433 _ACEOF
30434 cat confdefs.h >>conftest.$ac_ext
30435 cat >>conftest.$ac_ext <<_ACEOF
30436 /* end confdefs.h.  */
30437 #include <math.h>
30438 int
30439 main ()
30440 {
30441 float f; isnan(f);
30442   ;
30443   return 0;
30444 }
30445 _ACEOF
30446 rm -f conftest.$ac_objext
30447 if { (ac_try="$ac_compile"
30448 case "(($ac_try" in
30449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450   *) ac_try_echo=$ac_try;;
30451 esac
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453   (eval "$ac_compile") 2>conftest.er1
30454   ac_status=$?
30455   grep -v '^ *+' conftest.er1 >conftest.err
30456   rm -f conftest.er1
30457   cat conftest.err >&5
30458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459   (exit $ac_status); } && {
30460          test -z "$ac_cxx_werror_flag" ||
30461          test ! -s conftest.err
30462        } && test -s conftest.$ac_objext; then
30463   ac_cv_func_isnan_in_math_h=yes
30464 else
30465   echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30467
30468         ac_cv_func_isnan_in_math_h=no
30469 fi
30470
30471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30472   ac_ext=c
30473 ac_cpp='$CPP $CPPFLAGS'
30474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30477
30478 fi
30479 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30480 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30481
30482
30483 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30484
30485 cat >>confdefs.h <<\_ACEOF
30486 #define HAVE_ISNAN_IN_MATH_H 1
30487 _ACEOF
30488
30489 fi
30490
30491 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30492 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30493 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30494   echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496   ac_ext=cpp
30497 ac_cpp='$CXXCPP $CPPFLAGS'
30498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30501
30502    cat >conftest.$ac_ext <<_ACEOF
30503 /* confdefs.h.  */
30504 _ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h.  */
30508 #include <cmath>
30509 int
30510 main ()
30511 {
30512 float f; isnan(f);
30513   ;
30514   return 0;
30515 }
30516 _ACEOF
30517 rm -f conftest.$ac_objext
30518 if { (ac_try="$ac_compile"
30519 case "(($ac_try" in
30520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521   *) ac_try_echo=$ac_try;;
30522 esac
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524   (eval "$ac_compile") 2>conftest.er1
30525   ac_status=$?
30526   grep -v '^ *+' conftest.er1 >conftest.err
30527   rm -f conftest.er1
30528   cat conftest.err >&5
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); } && {
30531          test -z "$ac_cxx_werror_flag" ||
30532          test ! -s conftest.err
30533        } && test -s conftest.$ac_objext; then
30534   ac_cv_func_isnan_in_cmath=yes
30535 else
30536   echo "$as_me: failed program was:" >&5
30537 sed 's/^/| /' conftest.$ac_ext >&5
30538
30539         ac_cv_func_isnan_in_cmath=no
30540 fi
30541
30542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30543   ac_ext=c
30544 ac_cpp='$CPP $CPPFLAGS'
30545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30548
30549 fi
30550 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30551 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30552
30553 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30554
30555 cat >>confdefs.h <<\_ACEOF
30556 #define HAVE_ISNAN_IN_CMATH 1
30557 _ACEOF
30558
30559 fi
30560
30561 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30562 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30563 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30564   echo $ECHO_N "(cached) $ECHO_C" >&6
30565 else
30566   ac_ext=cpp
30567 ac_cpp='$CXXCPP $CPPFLAGS'
30568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30571
30572    cat >conftest.$ac_ext <<_ACEOF
30573 /* confdefs.h.  */
30574 _ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h.  */
30578 #include <cmath>
30579 int
30580 main ()
30581 {
30582 float f; std::isnan(f);
30583   ;
30584   return 0;
30585 }
30586 _ACEOF
30587 rm -f conftest.$ac_objext
30588 if { (ac_try="$ac_compile"
30589 case "(($ac_try" in
30590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591   *) ac_try_echo=$ac_try;;
30592 esac
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594   (eval "$ac_compile") 2>conftest.er1
30595   ac_status=$?
30596   grep -v '^ *+' conftest.er1 >conftest.err
30597   rm -f conftest.er1
30598   cat conftest.err >&5
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); } && {
30601          test -z "$ac_cxx_werror_flag" ||
30602          test ! -s conftest.err
30603        } && test -s conftest.$ac_objext; then
30604   ac_cv_func_std_isnan_in_cmath=yes
30605 else
30606   echo "$as_me: failed program was:" >&5
30607 sed 's/^/| /' conftest.$ac_ext >&5
30608
30609         ac_cv_func_std_isnan_in_cmath=no
30610 fi
30611
30612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613   ac_ext=c
30614 ac_cpp='$CPP $CPPFLAGS'
30615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30618
30619 fi
30620 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30621 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30622
30623 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30624
30625 cat >>confdefs.h <<\_ACEOF
30626 #define HAVE_STD_ISNAN_IN_CMATH 1
30627 _ACEOF
30628
30629 fi
30630
30631
30632 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30633 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30634 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30635   echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637   ac_ext=cpp
30638 ac_cpp='$CXXCPP $CPPFLAGS'
30639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30642
30643    cat >conftest.$ac_ext <<_ACEOF
30644 /* confdefs.h.  */
30645 _ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h.  */
30649 #include <math.h>
30650 int
30651 main ()
30652 {
30653 float f; isinf(f);
30654   ;
30655   return 0;
30656 }
30657 _ACEOF
30658 rm -f conftest.$ac_objext
30659 if { (ac_try="$ac_compile"
30660 case "(($ac_try" in
30661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662   *) ac_try_echo=$ac_try;;
30663 esac
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665   (eval "$ac_compile") 2>conftest.er1
30666   ac_status=$?
30667   grep -v '^ *+' conftest.er1 >conftest.err
30668   rm -f conftest.er1
30669   cat conftest.err >&5
30670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671   (exit $ac_status); } && {
30672          test -z "$ac_cxx_werror_flag" ||
30673          test ! -s conftest.err
30674        } && test -s conftest.$ac_objext; then
30675   ac_cv_func_isinf_in_math_h=yes
30676 else
30677   echo "$as_me: failed program was:" >&5
30678 sed 's/^/| /' conftest.$ac_ext >&5
30679
30680         ac_cv_func_isinf_in_math_h=no
30681 fi
30682
30683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30684   ac_ext=c
30685 ac_cpp='$CPP $CPPFLAGS'
30686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30689
30690 fi
30691 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30692 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30693
30694 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30695
30696 cat >>confdefs.h <<\_ACEOF
30697 #define HAVE_ISINF_IN_MATH_H 1
30698 _ACEOF
30699
30700 fi
30701
30702 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30703 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30704 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30705   echo $ECHO_N "(cached) $ECHO_C" >&6
30706 else
30707   ac_ext=cpp
30708 ac_cpp='$CXXCPP $CPPFLAGS'
30709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30712
30713    cat >conftest.$ac_ext <<_ACEOF
30714 /* confdefs.h.  */
30715 _ACEOF
30716 cat confdefs.h >>conftest.$ac_ext
30717 cat >>conftest.$ac_ext <<_ACEOF
30718 /* end confdefs.h.  */
30719 #include <cmath>
30720 int
30721 main ()
30722 {
30723 float f; isinf(f);
30724   ;
30725   return 0;
30726 }
30727 _ACEOF
30728 rm -f conftest.$ac_objext
30729 if { (ac_try="$ac_compile"
30730 case "(($ac_try" in
30731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732   *) ac_try_echo=$ac_try;;
30733 esac
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735   (eval "$ac_compile") 2>conftest.er1
30736   ac_status=$?
30737   grep -v '^ *+' conftest.er1 >conftest.err
30738   rm -f conftest.er1
30739   cat conftest.err >&5
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); } && {
30742          test -z "$ac_cxx_werror_flag" ||
30743          test ! -s conftest.err
30744        } && test -s conftest.$ac_objext; then
30745   ac_cv_func_isinf_in_cmath=yes
30746 else
30747   echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30749
30750         ac_cv_func_isinf_in_cmath=no
30751 fi
30752
30753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30754   ac_ext=c
30755 ac_cpp='$CPP $CPPFLAGS'
30756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30759
30760 fi
30761 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30762 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30763
30764 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30765
30766 cat >>confdefs.h <<\_ACEOF
30767 #define HAVE_ISINF_IN_CMATH 1
30768 _ACEOF
30769
30770 fi
30771
30772 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30773 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30774 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30775   echo $ECHO_N "(cached) $ECHO_C" >&6
30776 else
30777   ac_ext=cpp
30778 ac_cpp='$CXXCPP $CPPFLAGS'
30779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30782
30783    cat >conftest.$ac_ext <<_ACEOF
30784 /* confdefs.h.  */
30785 _ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h.  */
30789 #include <cmath>
30790 int
30791 main ()
30792 {
30793 float f; std::isinf(f)}
30794   ;
30795   return 0;
30796 }
30797 _ACEOF
30798 rm -f conftest.$ac_objext
30799 if { (ac_try="$ac_compile"
30800 case "(($ac_try" in
30801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802   *) ac_try_echo=$ac_try;;
30803 esac
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805   (eval "$ac_compile") 2>conftest.er1
30806   ac_status=$?
30807   grep -v '^ *+' conftest.er1 >conftest.err
30808   rm -f conftest.er1
30809   cat conftest.err >&5
30810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811   (exit $ac_status); } && {
30812          test -z "$ac_cxx_werror_flag" ||
30813          test ! -s conftest.err
30814        } && test -s conftest.$ac_objext; then
30815   ac_cv_func_std_isinf_in_cmath=yes
30816 else
30817   echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30819
30820         ac_cv_func_std_isinf_in_cmath=no
30821 fi
30822
30823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30824   ac_ext=c
30825 ac_cpp='$CPP $CPPFLAGS'
30826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30829
30830 fi
30831 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30832 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
30833
30834 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30835
30836 cat >>confdefs.h <<\_ACEOF
30837 #define HAVE_STD_ISINF_IN_CMATH 1
30838 _ACEOF
30839
30840 fi
30841
30842 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30843 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
30844 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30845   echo $ECHO_N "(cached) $ECHO_C" >&6
30846 else
30847   ac_ext=cpp
30848 ac_cpp='$CXXCPP $CPPFLAGS'
30849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30852
30853    cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h.  */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h.  */
30859 #include <ieeefp.h>
30860 int
30861 main ()
30862 {
30863 float f; finite(f);
30864   ;
30865   return 0;
30866 }
30867 _ACEOF
30868 rm -f conftest.$ac_objext
30869 if { (ac_try="$ac_compile"
30870 case "(($ac_try" in
30871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872   *) ac_try_echo=$ac_try;;
30873 esac
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875   (eval "$ac_compile") 2>conftest.er1
30876   ac_status=$?
30877   grep -v '^ *+' conftest.er1 >conftest.err
30878   rm -f conftest.er1
30879   cat conftest.err >&5
30880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881   (exit $ac_status); } && {
30882          test -z "$ac_cxx_werror_flag" ||
30883          test ! -s conftest.err
30884        } && test -s conftest.$ac_objext; then
30885   ac_cv_func_finite_in_ieeefp_h=yes
30886 else
30887   echo "$as_me: failed program was:" >&5
30888 sed 's/^/| /' conftest.$ac_ext >&5
30889
30890         ac_cv_func_finite_in_ieeefp_h=no
30891 fi
30892
30893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30894   ac_ext=c
30895 ac_cpp='$CPP $CPPFLAGS'
30896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30899
30900 fi
30901 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30902 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
30903
30904 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30905
30906 cat >>confdefs.h <<\_ACEOF
30907 #define HAVE_FINITE_IN_IEEEFP_H 1
30908 _ACEOF
30909
30910 fi
30911
30912
30913
30914 if test "$llvm_cv_platform_type" = "Unix" ; then
30915
30916
30917 for ac_header in stdlib.h unistd.h
30918 do
30919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30921   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30924   echo $ECHO_N "(cached) $ECHO_C" >&6
30925 fi
30926 ac_res=`eval echo '${'$as_ac_Header'}'`
30927                { echo "$as_me:$LINENO: result: $ac_res" >&5
30928 echo "${ECHO_T}$ac_res" >&6; }
30929 else
30930   # Is the header compilable?
30931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30933 cat >conftest.$ac_ext <<_ACEOF
30934 /* confdefs.h.  */
30935 _ACEOF
30936 cat confdefs.h >>conftest.$ac_ext
30937 cat >>conftest.$ac_ext <<_ACEOF
30938 /* end confdefs.h.  */
30939 $ac_includes_default
30940 #include <$ac_header>
30941 _ACEOF
30942 rm -f conftest.$ac_objext
30943 if { (ac_try="$ac_compile"
30944 case "(($ac_try" in
30945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946   *) ac_try_echo=$ac_try;;
30947 esac
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949   (eval "$ac_compile") 2>conftest.er1
30950   ac_status=$?
30951   grep -v '^ *+' conftest.er1 >conftest.err
30952   rm -f conftest.er1
30953   cat conftest.err >&5
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); } && {
30956          test -z "$ac_c_werror_flag" ||
30957          test ! -s conftest.err
30958        } && test -s conftest.$ac_objext; then
30959   ac_header_compiler=yes
30960 else
30961   echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30963
30964         ac_header_compiler=no
30965 fi
30966
30967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30969 echo "${ECHO_T}$ac_header_compiler" >&6; }
30970
30971 # Is the header present?
30972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30974 cat >conftest.$ac_ext <<_ACEOF
30975 /* confdefs.h.  */
30976 _ACEOF
30977 cat confdefs.h >>conftest.$ac_ext
30978 cat >>conftest.$ac_ext <<_ACEOF
30979 /* end confdefs.h.  */
30980 #include <$ac_header>
30981 _ACEOF
30982 if { (ac_try="$ac_cpp conftest.$ac_ext"
30983 case "(($ac_try" in
30984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985   *) ac_try_echo=$ac_try;;
30986 esac
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30989   ac_status=$?
30990   grep -v '^ *+' conftest.er1 >conftest.err
30991   rm -f conftest.er1
30992   cat conftest.err >&5
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); } >/dev/null && {
30995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30996          test ! -s conftest.err
30997        }; then
30998   ac_header_preproc=yes
30999 else
31000   echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31002
31003   ac_header_preproc=no
31004 fi
31005
31006 rm -f conftest.err conftest.$ac_ext
31007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31008 echo "${ECHO_T}$ac_header_preproc" >&6; }
31009
31010 # So?  What about this header?
31011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31012   yes:no: )
31013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31017     ac_header_preproc=yes
31018     ;;
31019   no:yes:* )
31020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31032     ( cat <<\_ASBOX
31033 ## ----------------------------------- ##
31034 ## Report this to llvmbugs@cs.uiuc.edu ##
31035 ## ----------------------------------- ##
31036 _ASBOX
31037      ) | sed "s/^/$as_me: WARNING:     /" >&2
31038     ;;
31039 esac
31040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045   eval "$as_ac_Header=\$ac_header_preproc"
31046 fi
31047 ac_res=`eval echo '${'$as_ac_Header'}'`
31048                { echo "$as_me:$LINENO: result: $ac_res" >&5
31049 echo "${ECHO_T}$ac_res" >&6; }
31050
31051 fi
31052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31053   cat >>confdefs.h <<_ACEOF
31054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31055 _ACEOF
31056
31057 fi
31058
31059 done
31060
31061
31062 for ac_func in getpagesize
31063 do
31064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31068   echo $ECHO_N "(cached) $ECHO_C" >&6
31069 else
31070   cat >conftest.$ac_ext <<_ACEOF
31071 /* confdefs.h.  */
31072 _ACEOF
31073 cat confdefs.h >>conftest.$ac_ext
31074 cat >>conftest.$ac_ext <<_ACEOF
31075 /* end confdefs.h.  */
31076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31078 #define $ac_func innocuous_$ac_func
31079
31080 /* System header to define __stub macros and hopefully few prototypes,
31081     which can conflict with char $ac_func (); below.
31082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31083     <limits.h> exists even on freestanding compilers.  */
31084
31085 #ifdef __STDC__
31086 # include <limits.h>
31087 #else
31088 # include <assert.h>
31089 #endif
31090
31091 #undef $ac_func
31092
31093 /* Override any GCC internal prototype to avoid an error.
31094    Use char because int might match the return type of a GCC
31095    builtin and then its argument prototype would still apply.  */
31096 #ifdef __cplusplus
31097 extern "C"
31098 #endif
31099 char $ac_func ();
31100 /* The GNU C library defines this for functions which it implements
31101     to always fail with ENOSYS.  Some functions are actually named
31102     something starting with __ and the normal name is an alias.  */
31103 #if defined __stub_$ac_func || defined __stub___$ac_func
31104 choke me
31105 #endif
31106
31107 int
31108 main ()
31109 {
31110 return $ac_func ();
31111   ;
31112   return 0;
31113 }
31114 _ACEOF
31115 rm -f conftest.$ac_objext conftest$ac_exeext
31116 if { (ac_try="$ac_link"
31117 case "(($ac_try" in
31118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119   *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122   (eval "$ac_link") 2>conftest.er1
31123   ac_status=$?
31124   grep -v '^ *+' conftest.er1 >conftest.err
31125   rm -f conftest.er1
31126   cat conftest.err >&5
31127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128   (exit $ac_status); } && {
31129          test -z "$ac_c_werror_flag" ||
31130          test ! -s conftest.err
31131        } && test -s conftest$ac_exeext &&
31132        $as_test_x conftest$ac_exeext; then
31133   eval "$as_ac_var=yes"
31134 else
31135   echo "$as_me: failed program was:" >&5
31136 sed 's/^/| /' conftest.$ac_ext >&5
31137
31138         eval "$as_ac_var=no"
31139 fi
31140
31141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31142       conftest$ac_exeext conftest.$ac_ext
31143 fi
31144 ac_res=`eval echo '${'$as_ac_var'}'`
31145                { echo "$as_me:$LINENO: result: $ac_res" >&5
31146 echo "${ECHO_T}$ac_res" >&6; }
31147 if test `eval echo '${'$as_ac_var'}'` = yes; then
31148   cat >>confdefs.h <<_ACEOF
31149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31150 _ACEOF
31151
31152 fi
31153 done
31154
31155 { echo "$as_me:$LINENO: checking for working mmap" >&5
31156 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31158   echo $ECHO_N "(cached) $ECHO_C" >&6
31159 else
31160   if test "$cross_compiling" = yes; then
31161   ac_cv_func_mmap_fixed_mapped=no
31162 else
31163   cat >conftest.$ac_ext <<_ACEOF
31164 /* confdefs.h.  */
31165 _ACEOF
31166 cat confdefs.h >>conftest.$ac_ext
31167 cat >>conftest.$ac_ext <<_ACEOF
31168 /* end confdefs.h.  */
31169 $ac_includes_default
31170 /* malloc might have been renamed as rpl_malloc. */
31171 #undef malloc
31172
31173 /* Thanks to Mike Haertel and Jim Avera for this test.
31174    Here is a matrix of mmap possibilities:
31175         mmap private not fixed
31176         mmap private fixed at somewhere currently unmapped
31177         mmap private fixed at somewhere already mapped
31178         mmap shared not fixed
31179         mmap shared fixed at somewhere currently unmapped
31180         mmap shared fixed at somewhere already mapped
31181    For private mappings, we should verify that changes cannot be read()
31182    back from the file, nor mmap's back from the file at a different
31183    address.  (There have been systems where private was not correctly
31184    implemented like the infamous i386 svr4.0, and systems where the
31185    VM page cache was not coherent with the file system buffer cache
31186    like early versions of FreeBSD and possibly contemporary NetBSD.)
31187    For shared mappings, we should conversely verify that changes get
31188    propagated back to all the places they're supposed to be.
31189
31190    Grep wants private fixed already mapped.
31191    The main things grep needs to know about mmap are:
31192    * does it exist and is it safe to write into the mmap'd area
31193    * how to use it (BSD variants)  */
31194
31195 #include <fcntl.h>
31196 #include <sys/mman.h>
31197
31198 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31199 char *malloc ();
31200 #endif
31201
31202 /* This mess was copied from the GNU getpagesize.h.  */
31203 #ifndef HAVE_GETPAGESIZE
31204 /* Assume that all systems that can run configure have sys/param.h.  */
31205 # ifndef HAVE_SYS_PARAM_H
31206 #  define HAVE_SYS_PARAM_H 1
31207 # endif
31208
31209 # ifdef _SC_PAGESIZE
31210 #  define getpagesize() sysconf(_SC_PAGESIZE)
31211 # else /* no _SC_PAGESIZE */
31212 #  ifdef HAVE_SYS_PARAM_H
31213 #   include <sys/param.h>
31214 #   ifdef EXEC_PAGESIZE
31215 #    define getpagesize() EXEC_PAGESIZE
31216 #   else /* no EXEC_PAGESIZE */
31217 #    ifdef NBPG
31218 #     define getpagesize() NBPG * CLSIZE
31219 #     ifndef CLSIZE
31220 #      define CLSIZE 1
31221 #     endif /* no CLSIZE */
31222 #    else /* no NBPG */
31223 #     ifdef NBPC
31224 #      define getpagesize() NBPC
31225 #     else /* no NBPC */
31226 #      ifdef PAGESIZE
31227 #       define getpagesize() PAGESIZE
31228 #      endif /* PAGESIZE */
31229 #     endif /* no NBPC */
31230 #    endif /* no NBPG */
31231 #   endif /* no EXEC_PAGESIZE */
31232 #  else /* no HAVE_SYS_PARAM_H */
31233 #   define getpagesize() 8192   /* punt totally */
31234 #  endif /* no HAVE_SYS_PARAM_H */
31235 # endif /* no _SC_PAGESIZE */
31236
31237 #endif /* no HAVE_GETPAGESIZE */
31238
31239 int
31240 main ()
31241 {
31242   char *data, *data2, *data3;
31243   int i, pagesize;
31244   int fd;
31245
31246   pagesize = getpagesize ();
31247
31248   /* First, make a file with some known garbage in it. */
31249   data = (char *) malloc (pagesize);
31250   if (!data)
31251     return 1;
31252   for (i = 0; i < pagesize; ++i)
31253     *(data + i) = rand ();
31254   umask (0);
31255   fd = creat ("conftest.mmap", 0600);
31256   if (fd < 0)
31257     return 1;
31258   if (write (fd, data, pagesize) != pagesize)
31259     return 1;
31260   close (fd);
31261
31262   /* Next, try to mmap the file at a fixed address which already has
31263      something else allocated at it.  If we can, also make sure that
31264      we see the same garbage.  */
31265   fd = open ("conftest.mmap", O_RDWR);
31266   if (fd < 0)
31267     return 1;
31268   data2 = (char *) malloc (2 * pagesize);
31269   if (!data2)
31270     return 1;
31271   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31272   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31273                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31274     return 1;
31275   for (i = 0; i < pagesize; ++i)
31276     if (*(data + i) != *(data2 + i))
31277       return 1;
31278
31279   /* Finally, make sure that changes to the mapped area do not
31280      percolate back to the file as seen by read().  (This is a bug on
31281      some variants of i386 svr4.0.)  */
31282   for (i = 0; i < pagesize; ++i)
31283     *(data2 + i) = *(data2 + i) + 1;
31284   data3 = (char *) malloc (pagesize);
31285   if (!data3)
31286     return 1;
31287   if (read (fd, data3, pagesize) != pagesize)
31288     return 1;
31289   for (i = 0; i < pagesize; ++i)
31290     if (*(data + i) != *(data3 + i))
31291       return 1;
31292   close (fd);
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_link") 2>&5
31304   ac_status=$?
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31307   { (case "(($ac_try" in
31308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309   *) ac_try_echo=$ac_try;;
31310 esac
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312   (eval "$ac_try") 2>&5
31313   ac_status=$?
31314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); }; }; then
31316   ac_cv_func_mmap_fixed_mapped=yes
31317 else
31318   echo "$as_me: program exited with status $ac_status" >&5
31319 echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31321
31322 ( exit $ac_status )
31323 ac_cv_func_mmap_fixed_mapped=no
31324 fi
31325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31326 fi
31327
31328
31329 fi
31330 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31331 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31332 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31333
31334 cat >>confdefs.h <<\_ACEOF
31335 #define HAVE_MMAP 1
31336 _ACEOF
31337
31338 fi
31339 rm -f conftest.mmap
31340
31341   { echo "$as_me:$LINENO: checking for mmap of files" >&5
31342 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31343 if test "${ac_cv_func_mmap_file+set}" = set; then
31344   echo $ECHO_N "(cached) $ECHO_C" >&6
31345 else
31346    ac_ext=c
31347 ac_cpp='$CPP $CPPFLAGS'
31348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31351
31352   if test "$cross_compiling" = yes; then
31353   ac_cv_func_mmap_file=no
31354 else
31355   cat >conftest.$ac_ext <<_ACEOF
31356
31357     /* confdefs.h.  */
31358 _ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h.  */
31362
31363 #include <sys/types.h>
31364 #include <sys/mman.h>
31365 #include <fcntl.h>
31366
31367 int
31368 main ()
31369 {
31370
31371   int fd;
31372   fd = creat ("foo",0777);
31373   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31374   unlink ("foo");
31375   return (fd != (int) MAP_FAILED);
31376   ;
31377   return 0;
31378 }
31379 _ACEOF
31380 rm -f conftest$ac_exeext
31381 if { (ac_try="$ac_link"
31382 case "(($ac_try" in
31383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384   *) ac_try_echo=$ac_try;;
31385 esac
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387   (eval "$ac_link") 2>&5
31388   ac_status=$?
31389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31391   { (case "(($ac_try" in
31392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393   *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396   (eval "$ac_try") 2>&5
31397   ac_status=$?
31398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399   (exit $ac_status); }; }; then
31400   ac_cv_func_mmap_file=yes
31401 else
31402   echo "$as_me: program exited with status $ac_status" >&5
31403 echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31405
31406 ( exit $ac_status )
31407 ac_cv_func_mmap_file=no
31408 fi
31409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31410 fi
31411
31412
31413   ac_ext=c
31414 ac_cpp='$CPP $CPPFLAGS'
31415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31418
31419
31420 fi
31421 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31422 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31423 if test "$ac_cv_func_mmap_file" = yes; then
31424
31425 cat >>confdefs.h <<\_ACEOF
31426 #define HAVE_MMAP_FILE
31427 _ACEOF
31428
31429    MMAP_FILE=yes
31430
31431 fi
31432
31433   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31434 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31435 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31436   echo $ECHO_N "(cached) $ECHO_C" >&6
31437 else
31438   if test "$llvm_cv_os_type" = "Interix" ; then
31439    ac_cv_need_dev_zero_for_mmap=yes
31440  else
31441    ac_cv_need_dev_zero_for_mmap=no
31442  fi
31443
31444 fi
31445 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31446 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31447 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31448
31449 cat >>confdefs.h <<\_ACEOF
31450 #define NEED_DEV_ZERO_FOR_MMAP 1
31451 _ACEOF
31452
31453 fi
31454
31455   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31456   then
31457     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31458 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31459   fi
31460   if test "$ac_cv_func_mmap_file" = "no"
31461   then
31462     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31463 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31464   fi
31465 fi
31466
31467
31468
31469 for ac_func in __dso_handle
31470 do
31471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31475   echo $ECHO_N "(cached) $ECHO_C" >&6
31476 else
31477   cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h.  */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h.  */
31483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31485 #define $ac_func innocuous_$ac_func
31486
31487 /* System header to define __stub macros and hopefully few prototypes,
31488     which can conflict with char $ac_func (); below.
31489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31490     <limits.h> exists even on freestanding compilers.  */
31491
31492 #ifdef __STDC__
31493 # include <limits.h>
31494 #else
31495 # include <assert.h>
31496 #endif
31497
31498 #undef $ac_func
31499
31500 /* Override any GCC internal prototype to avoid an error.
31501    Use char because int might match the return type of a GCC
31502    builtin and then its argument prototype would still apply.  */
31503 #ifdef __cplusplus
31504 extern "C"
31505 #endif
31506 char $ac_func ();
31507 /* The GNU C library defines this for functions which it implements
31508     to always fail with ENOSYS.  Some functions are actually named
31509     something starting with __ and the normal name is an alias.  */
31510 #if defined __stub_$ac_func || defined __stub___$ac_func
31511 choke me
31512 #endif
31513
31514 int
31515 main ()
31516 {
31517 return $ac_func ();
31518   ;
31519   return 0;
31520 }
31521 _ACEOF
31522 rm -f conftest.$ac_objext conftest$ac_exeext
31523 if { (ac_try="$ac_link"
31524 case "(($ac_try" in
31525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526   *) ac_try_echo=$ac_try;;
31527 esac
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529   (eval "$ac_link") 2>conftest.er1
31530   ac_status=$?
31531   grep -v '^ *+' conftest.er1 >conftest.err
31532   rm -f conftest.er1
31533   cat conftest.err >&5
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); } && {
31536          test -z "$ac_c_werror_flag" ||
31537          test ! -s conftest.err
31538        } && test -s conftest$ac_exeext &&
31539        $as_test_x conftest$ac_exeext; then
31540   eval "$as_ac_var=yes"
31541 else
31542   echo "$as_me: failed program was:" >&5
31543 sed 's/^/| /' conftest.$ac_ext >&5
31544
31545         eval "$as_ac_var=no"
31546 fi
31547
31548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31549       conftest$ac_exeext conftest.$ac_ext
31550 fi
31551 ac_res=`eval echo '${'$as_ac_var'}'`
31552                { echo "$as_me:$LINENO: result: $ac_res" >&5
31553 echo "${ECHO_T}$ac_res" >&6; }
31554 if test `eval echo '${'$as_ac_var'}'` = yes; then
31555   cat >>confdefs.h <<_ACEOF
31556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31557 _ACEOF
31558
31559 fi
31560 done
31561
31562
31563 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31564 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31565 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31566   echo $ECHO_N "(cached) $ECHO_C" >&6
31567 else
31568   llvm_cv_llvmgcc_sanity="no"
31569 if test -x "$LLVMGCC" ; then
31570   cp /dev/null conftest.c
31571   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31572       grep 'target datalayout =' > /dev/null 2>&1
31573   if test $? -eq 0 ; then
31574     llvm_cv_llvmgcc_sanity="yes"
31575   fi
31576   rm conftest.c
31577 fi
31578 fi
31579 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31580 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31581
31582 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31583   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31584 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31585   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31586   LLVMCC1=$llvmcc1path
31587
31588   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31589   LLVMCC1PLUS=$llvmcc1pluspath
31590
31591   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31592   LLVMGCCDIR=$llvmgccdir
31593
31594   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31595   LLVMGCCLIBEXEC=$llvmgcclibexec
31596
31597   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31598   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31599   LLVMGCC_VERSION=$llvmgccversion
31600
31601   LLVMGCC_MAJVERS=$llvmgccmajvers
31602
31603   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
31604   LLVMGCC_LANGS=$llvmgcclangs
31605
31606   { echo "$as_me:$LINENO: result: ok" >&5
31607 echo "${ECHO_T}ok" >&6; }
31608 fi
31609
31610 SHLIBEXT=$libltdl_cv_shlibext
31611
31612
31613 # Translate the various configuration directories and other basic
31614 # information into substitutions that will end up in Makefile.config.in
31615 # that these configured values can be used by the makefiles
31616 if test "${prefix}" = "NONE" ; then
31617   prefix="/usr/local"
31618 fi
31619 eval LLVM_PREFIX="${prefix}";
31620 eval LLVM_BINDIR="${prefix}/bin";
31621 eval LLVM_LIBDIR="${prefix}/lib";
31622 eval LLVM_DATADIR="${prefix}/share/llvm";
31623 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31624 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31625 eval LLVM_INCLUDEDIR="${prefix}/include";
31626 eval LLVM_INFODIR="${prefix}/info";
31627 eval LLVM_MANDIR="${prefix}/man";
31628 LLVM_CONFIGTIME=`date`
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640 # Place the various directores into the config.h file as #defines so that we
31641 # can know about the installation paths within LLVM.
31642
31643 cat >>confdefs.h <<_ACEOF
31644 #define LLVM_PREFIX "$LLVM_PREFIX"
31645 _ACEOF
31646
31647
31648 cat >>confdefs.h <<_ACEOF
31649 #define LLVM_BINDIR "$LLVM_BINDIR"
31650 _ACEOF
31651
31652
31653 cat >>confdefs.h <<_ACEOF
31654 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31655 _ACEOF
31656
31657
31658 cat >>confdefs.h <<_ACEOF
31659 #define LLVM_DATADIR "$LLVM_DATADIR"
31660 _ACEOF
31661
31662
31663 cat >>confdefs.h <<_ACEOF
31664 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31665 _ACEOF
31666
31667
31668 cat >>confdefs.h <<_ACEOF
31669 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31670 _ACEOF
31671
31672
31673 cat >>confdefs.h <<_ACEOF
31674 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31675 _ACEOF
31676
31677
31678 cat >>confdefs.h <<_ACEOF
31679 #define LLVM_INFODIR "$LLVM_INFODIR"
31680 _ACEOF
31681
31682
31683 cat >>confdefs.h <<_ACEOF
31684 #define LLVM_MANDIR "$LLVM_MANDIR"
31685 _ACEOF
31686
31687
31688 cat >>confdefs.h <<_ACEOF
31689 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31690 _ACEOF
31691
31692
31693 cat >>confdefs.h <<_ACEOF
31694 #define LLVM_HOSTTRIPLE "$host"
31695 _ACEOF
31696
31697
31698 # Determine which bindings to build.
31699 if test "$BINDINGS_TO_BUILD" = auto ; then
31700   BINDINGS_TO_BUILD=""
31701   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31702     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31703   fi
31704 fi
31705 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31706
31707
31708 # This isn't really configurey, but it avoids having to repeat the list in
31709 # other files.
31710 ALL_BINDINGS=ocaml
31711
31712
31713 # Do any work necessary to ensure that bindings have what they need.
31714 binding_prereqs_failed=0
31715 for a_binding in $BINDINGS_TO_BUILD ; do
31716   case "$a_binding" in
31717   ocaml)
31718     if test "x$OCAMLC" = x ; then
31719       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31720 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31721       binding_prereqs_failed=1
31722     fi
31723     if test "x$OCAMLDEP" = x ; then
31724       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31725 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31726       binding_prereqs_failed=1
31727     fi
31728     if test "x$OCAMLOPT" = x ; then
31729       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31730 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31731           fi
31732     if test "x$with_ocaml_libdir" != xauto ; then
31733       OCAML_LIBDIR=$with_ocaml_libdir
31734
31735     else
31736       ocaml_stdlib="`"$OCAMLC" -where`"
31737       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31738       then
31739         # ocaml stdlib is beneath our prefix; use stdlib
31740         OCAML_LIBDIR=$ocaml_stdlib
31741
31742       else
31743         # ocaml stdlib is outside our prefix; use libdir/ocaml
31744         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31745
31746       fi
31747     fi
31748     ;;
31749   esac
31750 done
31751 if test "$binding_prereqs_failed" = 1 ; then
31752   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31753 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31754    { (exit 1); exit 1; }; }
31755 fi
31756
31757 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
31758 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
31759 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
31760   echo $ECHO_N "(cached) $ECHO_C" >&6
31761 else
31762    ac_ext=cpp
31763 ac_cpp='$CXXCPP $CPPFLAGS'
31764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31767
31768   oldcxxflags="$CXXFLAGS"
31769   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
31770   cat >conftest.$ac_ext <<_ACEOF
31771 /* confdefs.h.  */
31772 _ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h.  */
31776
31777 int
31778 main ()
31779 {
31780
31781   ;
31782   return 0;
31783 }
31784 _ACEOF
31785 rm -f conftest.$ac_objext
31786 if { (ac_try="$ac_compile"
31787 case "(($ac_try" in
31788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789   *) ac_try_echo=$ac_try;;
31790 esac
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792   (eval "$ac_compile") 2>conftest.er1
31793   ac_status=$?
31794   grep -v '^ *+' conftest.er1 >conftest.err
31795   rm -f conftest.er1
31796   cat conftest.err >&5
31797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798   (exit $ac_status); } && {
31799          test -z "$ac_cxx_werror_flag" ||
31800          test ! -s conftest.err
31801        } && test -s conftest.$ac_objext; then
31802   llvm_cv_cxx_visibility_inlines_hidden=yes
31803 else
31804   echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31806
31807         llvm_cv_cxx_visibility_inlines_hidden=no
31808 fi
31809
31810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31811   CXXFLAGS="$oldcxxflags"
31812   ac_ext=c
31813 ac_cpp='$CPP $CPPFLAGS'
31814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31817
31818
31819 fi
31820 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
31821 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
31822 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
31823   ENABLE_VISIBILITY_INLINES_HIDDEN=1
31824
31825 else
31826   ENABLE_VISIBILITY_INLINES_HIDDEN=0
31827
31828 fi
31829
31830
31831 if test "$llvm_cv_link_use_r" = "yes" ; then
31832   RPATH="-Wl,-R"
31833 else
31834   RPATH="-Wl,-rpath"
31835 fi
31836
31837
31838 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
31839   RDYNAMIC="-Wl,-export-dynamic"
31840 else
31841   RDYNAMIC=""
31842 fi
31843
31844
31845
31846 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31847
31848 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31849
31850 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
31851
31852
31853 ac_config_files="$ac_config_files Makefile.config"
31854
31855
31856 ac_config_files="$ac_config_files llvm.spec"
31857
31858
31859 ac_config_files="$ac_config_files docs/doxygen.cfg"
31860
31861
31862 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
31863
31864
31865 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31866
31867
31868 ac_config_commands="$ac_config_commands setup"
31869
31870 ac_config_commands="$ac_config_commands Makefile"
31871
31872
31873 ac_config_commands="$ac_config_commands Makefile.common"
31874
31875
31876 ac_config_commands="$ac_config_commands examples/Makefile"
31877
31878
31879 ac_config_commands="$ac_config_commands lib/Makefile"
31880
31881
31882 ac_config_commands="$ac_config_commands runtime/Makefile"
31883
31884
31885 ac_config_commands="$ac_config_commands test/Makefile"
31886
31887
31888 ac_config_commands="$ac_config_commands test/Makefile.tests"
31889
31890
31891 ac_config_commands="$ac_config_commands unittests/Makefile"
31892
31893
31894 ac_config_commands="$ac_config_commands tools/Makefile"
31895
31896
31897 ac_config_commands="$ac_config_commands utils/Makefile"
31898
31899
31900 ac_config_commands="$ac_config_commands projects/Makefile"
31901
31902
31903 ac_config_commands="$ac_config_commands bindings/Makefile"
31904
31905
31906 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
31907
31908
31909
31910 cat >confcache <<\_ACEOF
31911 # This file is a shell script that caches the results of configure
31912 # tests run on this system so they can be shared between configure
31913 # scripts and configure runs, see configure's option --config-cache.
31914 # It is not useful on other systems.  If it contains results you don't
31915 # want to keep, you may remove or edit it.
31916 #
31917 # config.status only pays attention to the cache file if you give it
31918 # the --recheck option to rerun configure.
31919 #
31920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31922 # following values.
31923
31924 _ACEOF
31925
31926 # The following way of writing the cache mishandles newlines in values,
31927 # but we know of no workaround that is simple, portable, and efficient.
31928 # So, we kill variables containing newlines.
31929 # Ultrix sh set writes to stderr and can't be redirected directly,
31930 # and sets the high bit in the cache file unless we assign to the vars.
31931 (
31932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31933     eval ac_val=\$$ac_var
31934     case $ac_val in #(
31935     *${as_nl}*)
31936       case $ac_var in #(
31937       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31938 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31939       esac
31940       case $ac_var in #(
31941       _ | IFS | as_nl) ;; #(
31942       *) $as_unset $ac_var ;;
31943       esac ;;
31944     esac
31945   done
31946
31947   (set) 2>&1 |
31948     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31949     *${as_nl}ac_space=\ *)
31950       # `set' does not quote correctly, so add quotes (double-quote
31951       # substitution turns \\\\ into \\, and sed turns \\ into \).
31952       sed -n \
31953         "s/'/'\\\\''/g;
31954           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31955       ;; #(
31956     *)
31957       # `set' quotes correctly as required by POSIX, so do not add quotes.
31958       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31959       ;;
31960     esac |
31961     sort
31962 ) |
31963   sed '
31964      /^ac_cv_env_/b end
31965      t clear
31966      :clear
31967      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31968      t end
31969      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31970      :end' >>confcache
31971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31972   if test -w "$cache_file"; then
31973     test "x$cache_file" != "x/dev/null" &&
31974       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31975 echo "$as_me: updating cache $cache_file" >&6;}
31976     cat confcache >$cache_file
31977   else
31978     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31979 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31980   fi
31981 fi
31982 rm -f confcache
31983
31984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31985 # Let make expand exec_prefix.
31986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31987
31988 DEFS=-DHAVE_CONFIG_H
31989
31990 ac_libobjs=
31991 ac_ltlibobjs=
31992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31993   # 1. Remove the extension, and $U if already installed.
31994   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31995   ac_i=`echo "$ac_i" | sed "$ac_script"`
31996   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31997   #    will be set to the directory where LIBOBJS objects are built.
31998   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31999   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32000 done
32001 LIBOBJS=$ac_libobjs
32002
32003 LTLIBOBJS=$ac_ltlibobjs
32004
32005
32006 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32007   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32008 Usually this means the macro was only invoked conditionally." >&5
32009 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32010 Usually this means the macro was only invoked conditionally." >&2;}
32011    { (exit 1); exit 1; }; }
32012 fi
32013 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32014   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32015 Usually this means the macro was only invoked conditionally." >&5
32016 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32017 Usually this means the macro was only invoked conditionally." >&2;}
32018    { (exit 1); exit 1; }; }
32019 fi
32020
32021 : ${CONFIG_STATUS=./config.status}
32022 ac_clean_files_save=$ac_clean_files
32023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32026 cat >$CONFIG_STATUS <<_ACEOF
32027 #! $SHELL
32028 # Generated by $as_me.
32029 # Run this file to recreate the current configuration.
32030 # Compiler output produced by configure, useful for debugging
32031 # configure, is in config.log if it exists.
32032
32033 debug=false
32034 ac_cs_recheck=false
32035 ac_cs_silent=false
32036 SHELL=\${CONFIG_SHELL-$SHELL}
32037 _ACEOF
32038
32039 cat >>$CONFIG_STATUS <<\_ACEOF
32040 ## --------------------- ##
32041 ## M4sh Initialization.  ##
32042 ## --------------------- ##
32043
32044 # Be more Bourne compatible
32045 DUALCASE=1; export DUALCASE # for MKS sh
32046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32047   emulate sh
32048   NULLCMD=:
32049   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32050   # is contrary to our usage.  Disable this feature.
32051   alias -g '${1+"$@"}'='"$@"'
32052   setopt NO_GLOB_SUBST
32053 else
32054   case `(set -o) 2>/dev/null` in
32055   *posix*) set -o posix ;;
32056 esac
32057
32058 fi
32059
32060
32061
32062
32063 # PATH needs CR
32064 # Avoid depending upon Character Ranges.
32065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32068 as_cr_digits='0123456789'
32069 as_cr_alnum=$as_cr_Letters$as_cr_digits
32070
32071 # The user is always right.
32072 if test "${PATH_SEPARATOR+set}" != set; then
32073   echo "#! /bin/sh" >conf$$.sh
32074   echo  "exit 0"   >>conf$$.sh
32075   chmod +x conf$$.sh
32076   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32077     PATH_SEPARATOR=';'
32078   else
32079     PATH_SEPARATOR=:
32080   fi
32081   rm -f conf$$.sh
32082 fi
32083
32084 # Support unset when possible.
32085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32086   as_unset=unset
32087 else
32088   as_unset=false
32089 fi
32090
32091
32092 # IFS
32093 # We need space, tab and new line, in precisely that order.  Quoting is
32094 # there to prevent editors from complaining about space-tab.
32095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32096 # splitting by setting IFS to empty value.)
32097 as_nl='
32098 '
32099 IFS=" ""        $as_nl"
32100
32101 # Find who we are.  Look in the path if we contain no directory separator.
32102 case $0 in
32103   *[\\/]* ) as_myself=$0 ;;
32104   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32105 for as_dir in $PATH
32106 do
32107   IFS=$as_save_IFS
32108   test -z "$as_dir" && as_dir=.
32109   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32110 done
32111 IFS=$as_save_IFS
32112
32113      ;;
32114 esac
32115 # We did not find ourselves, most probably we were run as `sh COMMAND'
32116 # in which case we are not to be found in the path.
32117 if test "x$as_myself" = x; then
32118   as_myself=$0
32119 fi
32120 if test ! -f "$as_myself"; then
32121   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32122   { (exit 1); exit 1; }
32123 fi
32124
32125 # Work around bugs in pre-3.0 UWIN ksh.
32126 for as_var in ENV MAIL MAILPATH
32127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32128 done
32129 PS1='$ '
32130 PS2='> '
32131 PS4='+ '
32132
32133 # NLS nuisances.
32134 for as_var in \
32135   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32136   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32137   LC_TELEPHONE LC_TIME
32138 do
32139   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32140     eval $as_var=C; export $as_var
32141   else
32142     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32143   fi
32144 done
32145
32146 # Required to use basename.
32147 if expr a : '\(a\)' >/dev/null 2>&1 &&
32148    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32149   as_expr=expr
32150 else
32151   as_expr=false
32152 fi
32153
32154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32155   as_basename=basename
32156 else
32157   as_basename=false
32158 fi
32159
32160
32161 # Name of the executable.
32162 as_me=`$as_basename -- "$0" ||
32163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32164          X"$0" : 'X\(//\)$' \| \
32165          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32166 echo X/"$0" |
32167     sed '/^.*\/\([^/][^/]*\)\/*$/{
32168             s//\1/
32169             q
32170           }
32171           /^X\/\(\/\/\)$/{
32172             s//\1/
32173             q
32174           }
32175           /^X\/\(\/\).*/{
32176             s//\1/
32177             q
32178           }
32179           s/.*/./; q'`
32180
32181 # CDPATH.
32182 $as_unset CDPATH
32183
32184
32185
32186   as_lineno_1=$LINENO
32187   as_lineno_2=$LINENO
32188   test "x$as_lineno_1" != "x$as_lineno_2" &&
32189   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32190
32191   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32192   # uniformly replaced by the line number.  The first 'sed' inserts a
32193   # line-number line after each line using $LINENO; the second 'sed'
32194   # does the real work.  The second script uses 'N' to pair each
32195   # line-number line with the line containing $LINENO, and appends
32196   # trailing '-' during substitution so that $LINENO is not a special
32197   # case at line end.
32198   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32199   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32200   # E. McMahon (1931-1989) for sed's syntax.  :-)
32201   sed -n '
32202     p
32203     /[$]LINENO/=
32204   ' <$as_myself |
32205     sed '
32206       s/[$]LINENO.*/&-/
32207       t lineno
32208       b
32209       :lineno
32210       N
32211       :loop
32212       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32213       t loop
32214       s/-\n.*//
32215     ' >$as_me.lineno &&
32216   chmod +x "$as_me.lineno" ||
32217     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32218    { (exit 1); exit 1; }; }
32219
32220   # Don't try to exec as it changes $[0], causing all sort of problems
32221   # (the dirname of $[0] is not the place where we might find the
32222   # original and so on.  Autoconf is especially sensitive to this).
32223   . "./$as_me.lineno"
32224   # Exit status is that of the last command.
32225   exit
32226 }
32227
32228
32229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32230   as_dirname=dirname
32231 else
32232   as_dirname=false
32233 fi
32234
32235 ECHO_C= ECHO_N= ECHO_T=
32236 case `echo -n x` in
32237 -n*)
32238   case `echo 'x\c'` in
32239   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32240   *)   ECHO_C='\c';;
32241   esac;;
32242 *)
32243   ECHO_N='-n';;
32244 esac
32245
32246 if expr a : '\(a\)' >/dev/null 2>&1 &&
32247    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32248   as_expr=expr
32249 else
32250   as_expr=false
32251 fi
32252
32253 rm -f conf$$ conf$$.exe conf$$.file
32254 if test -d conf$$.dir; then
32255   rm -f conf$$.dir/conf$$.file
32256 else
32257   rm -f conf$$.dir
32258   mkdir conf$$.dir
32259 fi
32260 echo >conf$$.file
32261 if ln -s conf$$.file conf$$ 2>/dev/null; then
32262   as_ln_s='ln -s'
32263   # ... but there are two gotchas:
32264   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32265   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32266   # In both cases, we have to default to `cp -p'.
32267   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32268     as_ln_s='cp -p'
32269 elif ln conf$$.file conf$$ 2>/dev/null; then
32270   as_ln_s=ln
32271 else
32272   as_ln_s='cp -p'
32273 fi
32274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32275 rmdir conf$$.dir 2>/dev/null
32276
32277 if mkdir -p . 2>/dev/null; then
32278   as_mkdir_p=:
32279 else
32280   test -d ./-p && rmdir ./-p
32281   as_mkdir_p=false
32282 fi
32283
32284 if test -x / >/dev/null 2>&1; then
32285   as_test_x='test -x'
32286 else
32287   if ls -dL / >/dev/null 2>&1; then
32288     as_ls_L_option=L
32289   else
32290     as_ls_L_option=
32291   fi
32292   as_test_x='
32293     eval sh -c '\''
32294       if test -d "$1"; then
32295         test -d "$1/.";
32296       else
32297         case $1 in
32298         -*)set "./$1";;
32299         esac;
32300         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32301         ???[sx]*):;;*)false;;esac;fi
32302     '\'' sh
32303   '
32304 fi
32305 as_executable_p=$as_test_x
32306
32307 # Sed expression to map a string onto a valid CPP name.
32308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32309
32310 # Sed expression to map a string onto a valid variable name.
32311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32312
32313
32314 exec 6>&1
32315
32316 # Save the log message, to keep $[0] and so on meaningful, and to
32317 # report actual input values of CONFIG_FILES etc. instead of their
32318 # values after options handling.
32319 ac_log="
32320 This file was extended by llvm $as_me 2.6svn, which was
32321 generated by GNU Autoconf 2.61.  Invocation command line was
32322
32323   CONFIG_FILES    = $CONFIG_FILES
32324   CONFIG_HEADERS  = $CONFIG_HEADERS
32325   CONFIG_LINKS    = $CONFIG_LINKS
32326   CONFIG_COMMANDS = $CONFIG_COMMANDS
32327   $ $0 $@
32328
32329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32330 "
32331
32332 _ACEOF
32333
32334 cat >>$CONFIG_STATUS <<_ACEOF
32335 # Files that config.status was made for.
32336 config_files="$ac_config_files"
32337 config_headers="$ac_config_headers"
32338 config_commands="$ac_config_commands"
32339
32340 _ACEOF
32341
32342 cat >>$CONFIG_STATUS <<\_ACEOF
32343 ac_cs_usage="\
32344 \`$as_me' instantiates files from templates according to the
32345 current configuration.
32346
32347 Usage: $0 [OPTIONS] [FILE]...
32348
32349   -h, --help       print this help, then exit
32350   -V, --version    print version number and configuration settings, then exit
32351   -q, --quiet      do not print progress messages
32352   -d, --debug      don't remove temporary files
32353       --recheck    update $as_me by reconfiguring in the same conditions
32354   --file=FILE[:TEMPLATE]
32355                    instantiate the configuration file FILE
32356   --header=FILE[:TEMPLATE]
32357                    instantiate the configuration header FILE
32358
32359 Configuration files:
32360 $config_files
32361
32362 Configuration headers:
32363 $config_headers
32364
32365 Configuration commands:
32366 $config_commands
32367
32368 Report bugs to <bug-autoconf@gnu.org>."
32369
32370 _ACEOF
32371 cat >>$CONFIG_STATUS <<_ACEOF
32372 ac_cs_version="\\
32373 llvm config.status 2.6svn
32374 configured by $0, generated by GNU Autoconf 2.61,
32375   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32376
32377 Copyright (C) 2006 Free Software Foundation, Inc.
32378 This config.status script is free software; the Free Software Foundation
32379 gives unlimited permission to copy, distribute and modify it."
32380
32381 ac_pwd='$ac_pwd'
32382 srcdir='$srcdir'
32383 INSTALL='$INSTALL'
32384 _ACEOF
32385
32386 cat >>$CONFIG_STATUS <<\_ACEOF
32387 # If no file are specified by the user, then we need to provide default
32388 # value.  By we need to know if files were specified by the user.
32389 ac_need_defaults=:
32390 while test $# != 0
32391 do
32392   case $1 in
32393   --*=*)
32394     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32395     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32396     ac_shift=:
32397     ;;
32398   *)
32399     ac_option=$1
32400     ac_optarg=$2
32401     ac_shift=shift
32402     ;;
32403   esac
32404
32405   case $ac_option in
32406   # Handling of the options.
32407   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32408     ac_cs_recheck=: ;;
32409   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32410     echo "$ac_cs_version"; exit ;;
32411   --debug | --debu | --deb | --de | --d | -d )
32412     debug=: ;;
32413   --file | --fil | --fi | --f )
32414     $ac_shift
32415     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32416     ac_need_defaults=false;;
32417   --header | --heade | --head | --hea )
32418     $ac_shift
32419     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32420     ac_need_defaults=false;;
32421   --he | --h)
32422     # Conflict between --help and --header
32423     { echo "$as_me: error: ambiguous option: $1
32424 Try \`$0 --help' for more information." >&2
32425    { (exit 1); exit 1; }; };;
32426   --help | --hel | -h )
32427     echo "$ac_cs_usage"; exit ;;
32428   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32429   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32430     ac_cs_silent=: ;;
32431
32432   # This is an error.
32433   -*) { echo "$as_me: error: unrecognized option: $1
32434 Try \`$0 --help' for more information." >&2
32435    { (exit 1); exit 1; }; } ;;
32436
32437   *) ac_config_targets="$ac_config_targets $1"
32438      ac_need_defaults=false ;;
32439
32440   esac
32441   shift
32442 done
32443
32444 ac_configure_extra_args=
32445
32446 if $ac_cs_silent; then
32447   exec 6>/dev/null
32448   ac_configure_extra_args="$ac_configure_extra_args --silent"
32449 fi
32450
32451 _ACEOF
32452 cat >>$CONFIG_STATUS <<_ACEOF
32453 if \$ac_cs_recheck; then
32454   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32455   CONFIG_SHELL=$SHELL
32456   export CONFIG_SHELL
32457   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32458 fi
32459
32460 _ACEOF
32461 cat >>$CONFIG_STATUS <<\_ACEOF
32462 exec 5>>config.log
32463 {
32464   echo
32465   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32466 ## Running $as_me. ##
32467 _ASBOX
32468   echo "$ac_log"
32469 } >&5
32470
32471 _ACEOF
32472 cat >>$CONFIG_STATUS <<_ACEOF
32473 #
32474 # INIT-COMMANDS
32475 #
32476 llvm_src="${srcdir}"
32477
32478 _ACEOF
32479
32480 cat >>$CONFIG_STATUS <<\_ACEOF
32481
32482 # Handling of arguments.
32483 for ac_config_target in $ac_config_targets
32484 do
32485   case $ac_config_target in
32486     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32487     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32488     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
32489     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32490     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32491     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32492     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
32493     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32494     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32495     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32496     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32497     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32498     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32499     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32500     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32501     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32502     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
32503     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32504     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32505     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32506     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32507     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32508
32509   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32510 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32511    { (exit 1); exit 1; }; };;
32512   esac
32513 done
32514
32515
32516 # If the user did not use the arguments to specify the items to instantiate,
32517 # then the envvar interface is used.  Set only those that are not.
32518 # We use the long form for the default assignment because of an extremely
32519 # bizarre bug on SunOS 4.1.3.
32520 if $ac_need_defaults; then
32521   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32522   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32523   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32524 fi
32525
32526 # Have a temporary directory for convenience.  Make it in the build tree
32527 # simply because there is no reason against having it here, and in addition,
32528 # creating and moving files from /tmp can sometimes cause problems.
32529 # Hook for its removal unless debugging.
32530 # Note that there is a small window in which the directory will not be cleaned:
32531 # after its creation but before its name has been assigned to `$tmp'.
32532 $debug ||
32533 {
32534   tmp=
32535   trap 'exit_status=$?
32536   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32537 ' 0
32538   trap '{ (exit 1); exit 1; }' 1 2 13 15
32539 }
32540 # Create a (secure) tmp directory for tmp files.
32541
32542 {
32543   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32544   test -n "$tmp" && test -d "$tmp"
32545 }  ||
32546 {
32547   tmp=./conf$$-$RANDOM
32548   (umask 077 && mkdir "$tmp")
32549 } ||
32550 {
32551    echo "$me: cannot create a temporary directory in ." >&2
32552    { (exit 1); exit 1; }
32553 }
32554
32555 #
32556 # Set up the sed scripts for CONFIG_FILES section.
32557 #
32558
32559 # No need to generate the scripts if there are no CONFIG_FILES.
32560 # This happens for instance when ./config.status config.h
32561 if test -n "$CONFIG_FILES"; then
32562
32563 _ACEOF
32564
32565
32566
32567 ac_delim='%!_!# '
32568 for ac_last_try in false false false false false :; do
32569   cat >conf$$subs.sed <<_ACEOF
32570 SHELL!$SHELL$ac_delim
32571 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32572 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32573 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32574 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32575 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32576 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32577 exec_prefix!$exec_prefix$ac_delim
32578 prefix!$prefix$ac_delim
32579 program_transform_name!$program_transform_name$ac_delim
32580 bindir!$bindir$ac_delim
32581 sbindir!$sbindir$ac_delim
32582 libexecdir!$libexecdir$ac_delim
32583 datarootdir!$datarootdir$ac_delim
32584 datadir!$datadir$ac_delim
32585 sysconfdir!$sysconfdir$ac_delim
32586 sharedstatedir!$sharedstatedir$ac_delim
32587 localstatedir!$localstatedir$ac_delim
32588 includedir!$includedir$ac_delim
32589 oldincludedir!$oldincludedir$ac_delim
32590 docdir!$docdir$ac_delim
32591 infodir!$infodir$ac_delim
32592 htmldir!$htmldir$ac_delim
32593 dvidir!$dvidir$ac_delim
32594 pdfdir!$pdfdir$ac_delim
32595 psdir!$psdir$ac_delim
32596 libdir!$libdir$ac_delim
32597 localedir!$localedir$ac_delim
32598 mandir!$mandir$ac_delim
32599 DEFS!$DEFS$ac_delim
32600 ECHO_C!$ECHO_C$ac_delim
32601 ECHO_N!$ECHO_N$ac_delim
32602 ECHO_T!$ECHO_T$ac_delim
32603 LIBS!$LIBS$ac_delim
32604 build_alias!$build_alias$ac_delim
32605 host_alias!$host_alias$ac_delim
32606 target_alias!$target_alias$ac_delim
32607 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32608 subdirs!$subdirs$ac_delim
32609 build!$build$ac_delim
32610 build_cpu!$build_cpu$ac_delim
32611 build_vendor!$build_vendor$ac_delim
32612 build_os!$build_os$ac_delim
32613 host!$host$ac_delim
32614 host_cpu!$host_cpu$ac_delim
32615 host_vendor!$host_vendor$ac_delim
32616 host_os!$host_os$ac_delim
32617 target!$target$ac_delim
32618 target_cpu!$target_cpu$ac_delim
32619 target_vendor!$target_vendor$ac_delim
32620 target_os!$target_os$ac_delim
32621 OS!$OS$ac_delim
32622 LINKALL!$LINKALL$ac_delim
32623 NOLINKALL!$NOLINKALL$ac_delim
32624 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32625 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32626 ARCH!$ARCH$ac_delim
32627 ENDIAN!$ENDIAN$ac_delim
32628 CC!$CC$ac_delim
32629 CFLAGS!$CFLAGS$ac_delim
32630 LDFLAGS!$LDFLAGS$ac_delim
32631 CPPFLAGS!$CPPFLAGS$ac_delim
32632 ac_ct_CC!$ac_ct_CC$ac_delim
32633 EXEEXT!$EXEEXT$ac_delim
32634 OBJEXT!$OBJEXT$ac_delim
32635 CPP!$CPP$ac_delim
32636 GREP!$GREP$ac_delim
32637 EGREP!$EGREP$ac_delim
32638 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32639 BUILD_CC!$BUILD_CC$ac_delim
32640 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32641 BUILD_CXX!$BUILD_CXX$ac_delim
32642 CVSBUILD!$CVSBUILD$ac_delim
32643 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32644 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
32645 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32646 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32647 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32648 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32649 JIT!$JIT$ac_delim
32650 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32651 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32652 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32653 ENABLE_PIC!$ENABLE_PIC$ac_delim
32654 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32655 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32656 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32657 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
32658 CXX!$CXX$ac_delim
32659 CXXFLAGS!$CXXFLAGS$ac_delim
32660 ac_ct_CXX!$ac_ct_CXX$ac_delim
32661 NM!$NM$ac_delim
32662 ifGNUmake!$ifGNUmake$ac_delim
32663 LN_S!$LN_S$ac_delim
32664 CMP!$CMP$ac_delim
32665 CP!$CP$ac_delim
32666 DATE!$DATE$ac_delim
32667 _ACEOF
32668
32669   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32670     break
32671   elif $ac_last_try; then
32672     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32673 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32674    { (exit 1); exit 1; }; }
32675   else
32676     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32677   fi
32678 done
32679
32680 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32681 if test -n "$ac_eof"; then
32682   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32683   ac_eof=`expr $ac_eof + 1`
32684 fi
32685
32686 cat >>$CONFIG_STATUS <<_ACEOF
32687 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32689 _ACEOF
32690 sed '
32691 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32692 s/^/s,@/; s/!/@,|#_!!_#|/
32693 :n
32694 t n
32695 s/'"$ac_delim"'$/,g/; t
32696 s/$/\\/; p
32697 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32698 ' >>$CONFIG_STATUS <conf$$subs.sed
32699 rm -f conf$$subs.sed
32700 cat >>$CONFIG_STATUS <<_ACEOF
32701 CEOF$ac_eof
32702 _ACEOF
32703
32704
32705 ac_delim='%!_!# '
32706 for ac_last_try in false false false false false :; do
32707   cat >conf$$subs.sed <<_ACEOF
32708 FIND!$FIND$ac_delim
32709 MKDIR!$MKDIR$ac_delim
32710 MV!$MV$ac_delim
32711 RANLIB!$RANLIB$ac_delim
32712 RM!$RM$ac_delim
32713 SED!$SED$ac_delim
32714 TAR!$TAR$ac_delim
32715 BINPWD!$BINPWD$ac_delim
32716 GRAPHVIZ!$GRAPHVIZ$ac_delim
32717 DOT!$DOT$ac_delim
32718 GV!$GV$ac_delim
32719 DOTTY!$DOTTY$ac_delim
32720 PERL!$PERL$ac_delim
32721 HAVE_PERL!$HAVE_PERL$ac_delim
32722 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32723 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32724 INSTALL_DATA!$INSTALL_DATA$ac_delim
32725 BZIP2!$BZIP2$ac_delim
32726 DOXYGEN!$DOXYGEN$ac_delim
32727 GROFF!$GROFF$ac_delim
32728 GZIP!$GZIP$ac_delim
32729 POD2HTML!$POD2HTML$ac_delim
32730 POD2MAN!$POD2MAN$ac_delim
32731 RUNTEST!$RUNTEST$ac_delim
32732 TCLSH!$TCLSH$ac_delim
32733 ZIP!$ZIP$ac_delim
32734 OCAMLC!$OCAMLC$ac_delim
32735 OCAMLOPT!$OCAMLOPT$ac_delim
32736 OCAMLDEP!$OCAMLDEP$ac_delim
32737 OCAMLDOC!$OCAMLDOC$ac_delim
32738 GAS!$GAS$ac_delim
32739 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32740 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32741 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32742 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32743 LIBADD_DL!$LIBADD_DL$ac_delim
32744 ECHO!$ECHO$ac_delim
32745 AR!$AR$ac_delim
32746 STRIP!$STRIP$ac_delim
32747 CXXCPP!$CXXCPP$ac_delim
32748 F77!$F77$ac_delim
32749 FFLAGS!$FFLAGS$ac_delim
32750 ac_ct_F77!$ac_ct_F77$ac_delim
32751 LIBTOOL!$LIBTOOL$ac_delim
32752 LLVMGCC!$LLVMGCC$ac_delim
32753 LLVMGXX!$LLVMGXX$ac_delim
32754 USE_UDIS86!$USE_UDIS86$ac_delim
32755 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32756 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32757 ALLOCA!$ALLOCA$ac_delim
32758 MMAP_FILE!$MMAP_FILE$ac_delim
32759 LLVMCC1!$LLVMCC1$ac_delim
32760 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32761 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32762 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32763 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32764 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32765 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32766 SHLIBEXT!$SHLIBEXT$ac_delim
32767 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32768 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32769 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32770 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32771 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32772 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32773 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32774 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32775 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32776 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32777 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32778 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32779 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32780 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
32781 RPATH!$RPATH$ac_delim
32782 RDYNAMIC!$RDYNAMIC$ac_delim
32783 LIBOBJS!$LIBOBJS$ac_delim
32784 LTLIBOBJS!$LTLIBOBJS$ac_delim
32785 _ACEOF
32786
32787   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
32788     break
32789   elif $ac_last_try; then
32790     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32791 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32792    { (exit 1); exit 1; }; }
32793   else
32794     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32795   fi
32796 done
32797
32798 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32799 if test -n "$ac_eof"; then
32800   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32801   ac_eof=`expr $ac_eof + 1`
32802 fi
32803
32804 cat >>$CONFIG_STATUS <<_ACEOF
32805 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32807 _ACEOF
32808 sed '
32809 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32810 s/^/s,@/; s/!/@,|#_!!_#|/
32811 :n
32812 t n
32813 s/'"$ac_delim"'$/,g/; t
32814 s/$/\\/; p
32815 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32816 ' >>$CONFIG_STATUS <conf$$subs.sed
32817 rm -f conf$$subs.sed
32818 cat >>$CONFIG_STATUS <<_ACEOF
32819 :end
32820 s/|#_!!_#|//g
32821 CEOF$ac_eof
32822 _ACEOF
32823
32824
32825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32827 # trailing colons and then remove the whole line if VPATH becomes empty
32828 # (actually we leave an empty line to preserve line numbers).
32829 if test "x$srcdir" = x.; then
32830   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32831 s/:*\$(srcdir):*/:/
32832 s/:*\${srcdir}:*/:/
32833 s/:*@srcdir@:*/:/
32834 s/^\([^=]*=[     ]*\):*/\1/
32835 s/:*$//
32836 s/^[^=]*=[       ]*$//
32837 }'
32838 fi
32839
32840 cat >>$CONFIG_STATUS <<\_ACEOF
32841 fi # test -n "$CONFIG_FILES"
32842
32843
32844 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
32845 do
32846   case $ac_tag in
32847   :[FHLC]) ac_mode=$ac_tag; continue;;
32848   esac
32849   case $ac_mode$ac_tag in
32850   :[FHL]*:*);;
32851   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32852 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32853    { (exit 1); exit 1; }; };;
32854   :[FH]-) ac_tag=-:-;;
32855   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32856   esac
32857   ac_save_IFS=$IFS
32858   IFS=:
32859   set x $ac_tag
32860   IFS=$ac_save_IFS
32861   shift
32862   ac_file=$1
32863   shift
32864
32865   case $ac_mode in
32866   :L) ac_source=$1;;
32867   :[FH])
32868     ac_file_inputs=
32869     for ac_f
32870     do
32871       case $ac_f in
32872       -) ac_f="$tmp/stdin";;
32873       *) # Look for the file first in the build tree, then in the source tree
32874          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32875          # because $ac_f cannot contain `:'.
32876          test -f "$ac_f" ||
32877            case $ac_f in
32878            [\\/$]*) false;;
32879            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32880            esac ||
32881            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32882 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32883    { (exit 1); exit 1; }; };;
32884       esac
32885       ac_file_inputs="$ac_file_inputs $ac_f"
32886     done
32887
32888     # Let's still pretend it is `configure' which instantiates (i.e., don't
32889     # use $as_me), people would be surprised to read:
32890     #    /* config.h.  Generated by config.status.  */
32891     configure_input="Generated from "`IFS=:
32892           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32893     if test x"$ac_file" != x-; then
32894       configure_input="$ac_file.  $configure_input"
32895       { echo "$as_me:$LINENO: creating $ac_file" >&5
32896 echo "$as_me: creating $ac_file" >&6;}
32897     fi
32898
32899     case $ac_tag in
32900     *:-:* | *:-) cat >"$tmp/stdin";;
32901     esac
32902     ;;
32903   esac
32904
32905   ac_dir=`$as_dirname -- "$ac_file" ||
32906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32907          X"$ac_file" : 'X\(//\)[^/]' \| \
32908          X"$ac_file" : 'X\(//\)$' \| \
32909          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32910 echo X"$ac_file" |
32911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32912             s//\1/
32913             q
32914           }
32915           /^X\(\/\/\)[^/].*/{
32916             s//\1/
32917             q
32918           }
32919           /^X\(\/\/\)$/{
32920             s//\1/
32921             q
32922           }
32923           /^X\(\/\).*/{
32924             s//\1/
32925             q
32926           }
32927           s/.*/./; q'`
32928   { as_dir="$ac_dir"
32929   case $as_dir in #(
32930   -*) as_dir=./$as_dir;;
32931   esac
32932   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32933     as_dirs=
32934     while :; do
32935       case $as_dir in #(
32936       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32937       *) as_qdir=$as_dir;;
32938       esac
32939       as_dirs="'$as_qdir' $as_dirs"
32940       as_dir=`$as_dirname -- "$as_dir" ||
32941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32942          X"$as_dir" : 'X\(//\)[^/]' \| \
32943          X"$as_dir" : 'X\(//\)$' \| \
32944          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32945 echo X"$as_dir" |
32946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32947             s//\1/
32948             q
32949           }
32950           /^X\(\/\/\)[^/].*/{
32951             s//\1/
32952             q
32953           }
32954           /^X\(\/\/\)$/{
32955             s//\1/
32956             q
32957           }
32958           /^X\(\/\).*/{
32959             s//\1/
32960             q
32961           }
32962           s/.*/./; q'`
32963       test -d "$as_dir" && break
32964     done
32965     test -z "$as_dirs" || eval "mkdir $as_dirs"
32966   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32967 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32968    { (exit 1); exit 1; }; }; }
32969   ac_builddir=.
32970
32971 case "$ac_dir" in
32972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32973 *)
32974   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32975   # A ".." for each directory in $ac_dir_suffix.
32976   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32977   case $ac_top_builddir_sub in
32978   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32979   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32980   esac ;;
32981 esac
32982 ac_abs_top_builddir=$ac_pwd
32983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32984 # for backward compatibility:
32985 ac_top_builddir=$ac_top_build_prefix
32986
32987 case $srcdir in
32988   .)  # We are building in place.
32989     ac_srcdir=.
32990     ac_top_srcdir=$ac_top_builddir_sub
32991     ac_abs_top_srcdir=$ac_pwd ;;
32992   [\\/]* | ?:[\\/]* )  # Absolute name.
32993     ac_srcdir=$srcdir$ac_dir_suffix;
32994     ac_top_srcdir=$srcdir
32995     ac_abs_top_srcdir=$srcdir ;;
32996   *) # Relative name.
32997     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32998     ac_top_srcdir=$ac_top_build_prefix$srcdir
32999     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33000 esac
33001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33002
33003
33004   case $ac_mode in
33005   :F)
33006   #
33007   # CONFIG_FILE
33008   #
33009
33010   case $INSTALL in
33011   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33012   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33013   esac
33014 _ACEOF
33015
33016 cat >>$CONFIG_STATUS <<\_ACEOF
33017 # If the template does not know about datarootdir, expand it.
33018 # FIXME: This hack should be removed a few years after 2.60.
33019 ac_datarootdir_hack=; ac_datarootdir_seen=
33020
33021 case `sed -n '/datarootdir/ {
33022   p
33023   q
33024 }
33025 /@datadir@/p
33026 /@docdir@/p
33027 /@infodir@/p
33028 /@localedir@/p
33029 /@mandir@/p
33030 ' $ac_file_inputs` in
33031 *datarootdir*) ac_datarootdir_seen=yes;;
33032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33033   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33034 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33035 _ACEOF
33036 cat >>$CONFIG_STATUS <<_ACEOF
33037   ac_datarootdir_hack='
33038   s&@datadir@&$datadir&g
33039   s&@docdir@&$docdir&g
33040   s&@infodir@&$infodir&g
33041   s&@localedir@&$localedir&g
33042   s&@mandir@&$mandir&g
33043     s&\\\${datarootdir}&$datarootdir&g' ;;
33044 esac
33045 _ACEOF
33046
33047 # Neutralize VPATH when `$srcdir' = `.'.
33048 # Shell code in configure.ac might set extrasub.
33049 # FIXME: do we really want to maintain this feature?
33050 cat >>$CONFIG_STATUS <<_ACEOF
33051   sed "$ac_vpsub
33052 $extrasub
33053 _ACEOF
33054 cat >>$CONFIG_STATUS <<\_ACEOF
33055 :t
33056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33057 s&@configure_input@&$configure_input&;t t
33058 s&@top_builddir@&$ac_top_builddir_sub&;t t
33059 s&@srcdir@&$ac_srcdir&;t t
33060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33061 s&@top_srcdir@&$ac_top_srcdir&;t t
33062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33063 s&@builddir@&$ac_builddir&;t t
33064 s&@abs_builddir@&$ac_abs_builddir&;t t
33065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33066 s&@INSTALL@&$ac_INSTALL&;t t
33067 $ac_datarootdir_hack
33068 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33069
33070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33071   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33072   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33073   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33074 which seems to be undefined.  Please make sure it is defined." >&5
33075 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33076 which seems to be undefined.  Please make sure it is defined." >&2;}
33077
33078   rm -f "$tmp/stdin"
33079   case $ac_file in
33080   -) cat "$tmp/out"; rm -f "$tmp/out";;
33081   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33082   esac
33083  ;;
33084   :H)
33085   #
33086   # CONFIG_HEADER
33087   #
33088 _ACEOF
33089
33090 # Transform confdefs.h into a sed script `conftest.defines', that
33091 # substitutes the proper values into config.h.in to produce config.h.
33092 rm -f conftest.defines conftest.tail
33093 # First, append a space to every undef/define line, to ease matching.
33094 echo 's/$/ /' >conftest.defines
33095 # Then, protect against being on the right side of a sed subst, or in
33096 # an unquoted here document, in config.status.  If some macros were
33097 # called several times there might be several #defines for the same
33098 # symbol, which is useless.  But do not sort them, since the last
33099 # AC_DEFINE must be honored.
33100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33101 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33102 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33103 # PARAMS is the parameter list in the macro definition--in most cases, it's
33104 # just an empty string.
33105 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33106 ac_dB='\\)[      (].*,\\1define\\2'
33107 ac_dC=' '
33108 ac_dD=' ,'
33109
33110 uniq confdefs.h |
33111   sed -n '
33112         t rset
33113         :rset
33114         s/^[     ]*#[    ]*define[       ][      ]*//
33115         t ok
33116         d
33117         :ok
33118         s/[\\&,]/\\&/g
33119         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33120         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33121   ' >>conftest.defines
33122
33123 # Remove the space that was appended to ease matching.
33124 # Then replace #undef with comments.  This is necessary, for
33125 # example, in the case of _POSIX_SOURCE, which is predefined and required
33126 # on some systems where configure will not decide to define it.
33127 # (The regexp can be short, since the line contains either #define or #undef.)
33128 echo 's/ $//
33129 s,^[     #]*u.*,/* & */,' >>conftest.defines
33130
33131 # Break up conftest.defines:
33132 ac_max_sed_lines=50
33133
33134 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33135 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33136 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33137 # et cetera.
33138 ac_in='$ac_file_inputs'
33139 ac_out='"$tmp/out1"'
33140 ac_nxt='"$tmp/out2"'
33141
33142 while :
33143 do
33144   # Write a here document:
33145     cat >>$CONFIG_STATUS <<_ACEOF
33146     # First, check the format of the line:
33147     cat >"\$tmp/defines.sed" <<\\CEOF
33148 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33149 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33150 b
33151 :def
33152 _ACEOF
33153   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33154   echo 'CEOF
33155     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33156   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33157   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33158   grep . conftest.tail >/dev/null || break
33159   rm -f conftest.defines
33160   mv conftest.tail conftest.defines
33161 done
33162 rm -f conftest.defines conftest.tail
33163
33164 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33165 cat >>$CONFIG_STATUS <<\_ACEOF
33166   if test x"$ac_file" != x-; then
33167     echo "/* $configure_input  */" >"$tmp/config.h"
33168     cat "$ac_result" >>"$tmp/config.h"
33169     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33170       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33171 echo "$as_me: $ac_file is unchanged" >&6;}
33172     else
33173       rm -f $ac_file
33174       mv "$tmp/config.h" $ac_file
33175     fi
33176   else
33177     echo "/* $configure_input  */"
33178     cat "$ac_result"
33179   fi
33180   rm -f "$tmp/out12"
33181  ;;
33182
33183   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33184 echo "$as_me: executing $ac_file commands" >&6;}
33185  ;;
33186   esac
33187
33188
33189   case $ac_file$ac_mode in
33190     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33191    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33192     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33193    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33194     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33195    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33196     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33197    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33198     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33199    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33200     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33201    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33202     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33203    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33204     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
33205    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
33206     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33207    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33208     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33209    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33210     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33211    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33212     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33213    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33214     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33215    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33216
33217   esac
33218 done # for ac_tag
33219
33220
33221 { (exit 0); exit 0; }
33222 _ACEOF
33223 chmod +x $CONFIG_STATUS
33224 ac_clean_files=$ac_clean_files_save
33225
33226
33227 # configure is writing to config.log, and then calls config.status.
33228 # config.status does its own redirection, appending to config.log.
33229 # Unfortunately, on DOS this fails, as config.log is still kept open
33230 # by configure, so config.status won't be able to write to it; its
33231 # output is simply discarded.  So we exec the FD to /dev/null,
33232 # effectively closing config.log, so it can be properly (re)opened and
33233 # appended to by config.status.  When coming back to configure, we
33234 # need to make the FD available again.
33235 if test "$no_create" != yes; then
33236   ac_cs_success=:
33237   ac_config_status_args=
33238   test "$silent" = yes &&
33239     ac_config_status_args="$ac_config_status_args --quiet"
33240   exec 5>/dev/null
33241   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33242   exec 5>>config.log
33243   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33244   # would make configure fail if this is the last instruction.
33245   $ac_cs_success || { (exit 1); exit 1; }
33246 fi
33247
33248 #
33249 # CONFIG_SUBDIRS section.
33250 #
33251 if test "$no_recursion" != yes; then
33252
33253   # Remove --cache-file and --srcdir arguments so they do not pile up.
33254   ac_sub_configure_args=
33255   ac_prev=
33256   eval "set x $ac_configure_args"
33257   shift
33258   for ac_arg
33259   do
33260     if test -n "$ac_prev"; then
33261       ac_prev=
33262       continue
33263     fi
33264     case $ac_arg in
33265     -cache-file | --cache-file | --cache-fil | --cache-fi \
33266     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33267       ac_prev=cache_file ;;
33268     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33269     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33270     | --c=*)
33271       ;;
33272     --config-cache | -C)
33273       ;;
33274     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33275       ac_prev=srcdir ;;
33276     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33277       ;;
33278     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33279       ac_prev=prefix ;;
33280     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33281       ;;
33282     *)
33283       case $ac_arg in
33284       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33285       esac
33286       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33287     esac
33288   done
33289
33290   # Always prepend --prefix to ensure using the same prefix
33291   # in subdir configurations.
33292   ac_arg="--prefix=$prefix"
33293   case $ac_arg in
33294   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33295   esac
33296   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33297
33298   # Pass --silent
33299   if test "$silent" = yes; then
33300     ac_sub_configure_args="--silent $ac_sub_configure_args"
33301   fi
33302
33303   ac_popdir=`pwd`
33304   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33305
33306     # Do not complain, so a configure script can configure whichever
33307     # parts of a large source tree are present.
33308     test -d "$srcdir/$ac_dir" || continue
33309
33310     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33311     echo "$as_me:$LINENO: $ac_msg" >&5
33312     echo "$ac_msg" >&6
33313     { as_dir="$ac_dir"
33314   case $as_dir in #(
33315   -*) as_dir=./$as_dir;;
33316   esac
33317   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33318     as_dirs=
33319     while :; do
33320       case $as_dir in #(
33321       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33322       *) as_qdir=$as_dir;;
33323       esac
33324       as_dirs="'$as_qdir' $as_dirs"
33325       as_dir=`$as_dirname -- "$as_dir" ||
33326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33327          X"$as_dir" : 'X\(//\)[^/]' \| \
33328          X"$as_dir" : 'X\(//\)$' \| \
33329          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33330 echo X"$as_dir" |
33331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33332             s//\1/
33333             q
33334           }
33335           /^X\(\/\/\)[^/].*/{
33336             s//\1/
33337             q
33338           }
33339           /^X\(\/\/\)$/{
33340             s//\1/
33341             q
33342           }
33343           /^X\(\/\).*/{
33344             s//\1/
33345             q
33346           }
33347           s/.*/./; q'`
33348       test -d "$as_dir" && break
33349     done
33350     test -z "$as_dirs" || eval "mkdir $as_dirs"
33351   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33352 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33353    { (exit 1); exit 1; }; }; }
33354     ac_builddir=.
33355
33356 case "$ac_dir" in
33357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33358 *)
33359   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33360   # A ".." for each directory in $ac_dir_suffix.
33361   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33362   case $ac_top_builddir_sub in
33363   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33364   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33365   esac ;;
33366 esac
33367 ac_abs_top_builddir=$ac_pwd
33368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33369 # for backward compatibility:
33370 ac_top_builddir=$ac_top_build_prefix
33371
33372 case $srcdir in
33373   .)  # We are building in place.
33374     ac_srcdir=.
33375     ac_top_srcdir=$ac_top_builddir_sub
33376     ac_abs_top_srcdir=$ac_pwd ;;
33377   [\\/]* | ?:[\\/]* )  # Absolute name.
33378     ac_srcdir=$srcdir$ac_dir_suffix;
33379     ac_top_srcdir=$srcdir
33380     ac_abs_top_srcdir=$srcdir ;;
33381   *) # Relative name.
33382     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33383     ac_top_srcdir=$ac_top_build_prefix$srcdir
33384     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33385 esac
33386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33387
33388
33389     cd "$ac_dir"
33390
33391     # Check for guested configure; otherwise get Cygnus style configure.
33392     if test -f "$ac_srcdir/configure.gnu"; then
33393       ac_sub_configure=$ac_srcdir/configure.gnu
33394     elif test -f "$ac_srcdir/configure"; then
33395       ac_sub_configure=$ac_srcdir/configure
33396     elif test -f "$ac_srcdir/configure.in"; then
33397       # This should be Cygnus configure.
33398       ac_sub_configure=$ac_aux_dir/configure
33399     else
33400       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33402       ac_sub_configure=
33403     fi
33404
33405     # The recursion is here.
33406     if test -n "$ac_sub_configure"; then
33407       # Make the cache file name correct relative to the subdirectory.
33408       case $cache_file in
33409       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33410       *) # Relative name.
33411         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33412       esac
33413
33414       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33415 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33416       # The eval makes quoting arguments work.
33417       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33418            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33419         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33420 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33421    { (exit 1); exit 1; }; }
33422     fi
33423
33424     cd "$ac_popdir"
33425   done
33426 fi
33427