Ignoring generated files.
[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.2svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be 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.2svn'
734 PACKAGE_STRING='llvm 2.2svn'
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 CVSBUILD
846 ENABLE_OPTIMIZED
847 DISABLE_ASSERTIONS
848 ENABLE_EXPENSIVE_CHECKS
849 EXPENSIVE_CHECKS
850 DEBUG_RUNTIME
851 JIT
852 TARGET_HAS_JIT
853 ENABLE_DOXYGEN
854 ENABLE_THREADS
855 ENABLE_PIC
856 TARGETS_TO_BUILD
857 ENABLE_CBE_PRINTF_A
858 EXTRA_OPTIONS
859 CXX
860 CXXFLAGS
861 ac_ct_CXX
862 LEX
863 LEX_OUTPUT_ROOT
864 LEXLIB
865 FLEX
866 YACC
867 YFLAGS
868 BISON
869 NM
870 ifGNUmake
871 LN_S
872 CMP
873 CP
874 DATE
875 FIND
876 MKDIR
877 MV
878 RANLIB
879 RM
880 SED
881 TAR
882 BINPWD
883 GRAPHVIZ
884 DOT
885 GV
886 DOTTY
887 PERL
888 HAVE_PERL
889 INSTALL_PROGRAM
890 INSTALL_SCRIPT
891 INSTALL_DATA
892 BZIP2
893 DOXYGEN
894 GROFF
895 GZIP
896 POD2HTML
897 POD2MAN
898 RUNTEST
899 TCLSH
900 ZIP
901 OCAMLC
902 OCAMLOPT
903 OCAMLDEP
904 INSTALL_LTDL_TRUE
905 INSTALL_LTDL_FALSE
906 CONVENIENCE_LTDL_TRUE
907 CONVENIENCE_LTDL_FALSE
908 LIBADD_DL
909 ECHO
910 AR
911 STRIP
912 CXXCPP
913 F77
914 FFLAGS
915 ac_ct_F77
916 LIBTOOL
917 LLVMGCC
918 LLVMGXX
919 USE_UDIS86
920 HAVE_PTHREAD
921 HUGE_VAL_SANITY
922 ALLOCA
923 MMAP_FILE
924 LLVMCC1
925 LLVMCC1PLUS
926 LLVMGCCDIR
927 LLVMGCCLIBEXEC
928 LLVMGCC_VERSION
929 LLVMGCC_MAJVERS
930 LLVMGCC_LANGS
931 SHLIBEXT
932 LLVM_PREFIX
933 LLVM_BINDIR
934 LLVM_LIBDIR
935 LLVM_DATADIR
936 LLVM_DOCSDIR
937 LLVM_ETCDIR
938 LLVM_INCLUDEDIR
939 LLVM_INFODIR
940 LLVM_MANDIR
941 LLVM_CONFIGTIME
942 BINDINGS_TO_BUILD
943 ALL_BINDINGS
944 OCAML_LIBDIR
945 LIBOBJS
946 LTLIBOBJS'
947 ac_subst_files=''
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CPP
957 CXX
958 CXXFLAGS
959 CCC
960 YACC
961 YFLAGS
962 CXXCPP
963 F77
964 FFLAGS'
965 ac_subdirs_all='projects/sample
966 projects/privbracket
967 projects/llvm-stacker
968 projects/llvm-test
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.2svn 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.2svn:";;
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-assertions
1552   --enable-expensive-checks
1553
1554   --enable-debug-runtime
1555   --enable-jit            Enable Just In Time Compiling (default is YES)
1556   --enable-doxygen        Build doxygen documentation (default is NO)
1557   --enable-threads        Use threads if available (default is YES)
1558   --enable-pic            Build LLVM with Position Independent Code (default
1559                           is NO)
1560   --enable-targets        Build specific host targets:
1561                           all,host-only,{target-name} (default=all)
1562   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1563                           %a (default is YES)
1564   --enable-bindings       Build specific language bindings:
1565                           all,auto,none,{binding-name} (default=auto)
1566   --enable-ltdl-install   install libltdl
1567   --enable-shared[=PKGS]  build shared libraries
1568                           [default=yes]
1569   --enable-static[=PKGS]  build static libraries
1570                           [default=yes]
1571   --enable-fast-install[=PKGS]
1572                           optimize for fast installation
1573                           [default=yes]
1574   --disable-libtool-lock  avoid locking (might break parallel builds)
1575
1576 Optional Packages:
1577   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1580                           searches PATH)
1581   --with-llvmgcc          Specify location of llvm-gcc driver (default
1582                           searches PATH)
1583   --with-llvmgxx          Specify location of llvm-g++ driver (default
1584                           searches PATH)
1585   --with-extra-options    Specify addtional options to compile LLVM with
1586   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1587                           is stdlib)
1588   --with-tclinclude       directory where tcl headers are
1589   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1590   --with-pic              try to use only PIC/non-PIC objects [default=use
1591                           both]
1592   --with-tags[=TAGS]      include additional configurations [automatic]
1593   --with-udis86=<path>    Use udis86 external x86 disassembler library
1594
1595 Some influential environment variables:
1596   CC          C compiler command
1597   CFLAGS      C compiler flags
1598   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1599               nonstandard directory <lib dir>
1600   LIBS        libraries to pass to the linker, e.g. -l<library>
1601   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602               you have headers in a nonstandard directory <include dir>
1603   CPP         C preprocessor
1604   CXX         C++ compiler command
1605   CXXFLAGS    C++ compiler flags
1606   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1607               the first program found out of: `bison -y', `byacc', `yacc'.
1608   YFLAGS      The list of arguments that will be passed by default to $YACC.
1609               This script will default YFLAGS to the empty string to avoid a
1610               default value of `-d' given by some make applications.
1611   CXXCPP      C++ preprocessor
1612   F77         Fortran 77 compiler command
1613   FFLAGS      Fortran 77 compiler flags
1614
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1617
1618 Report bugs to <llvmbugs@cs.uiuc.edu>.
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624   # If there are subdirs, report their specific --help.
1625   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626     test -d "$ac_dir" || continue
1627     ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1633   # A ".." for each directory in $ac_dir_suffix.
1634   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635   case $ac_top_builddir_sub in
1636   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638   esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646   .)  # We are building in place.
1647     ac_srcdir=.
1648     ac_top_srcdir=$ac_top_builddir_sub
1649     ac_abs_top_srcdir=$ac_pwd ;;
1650   [\\/]* | ?:[\\/]* )  # Absolute name.
1651     ac_srcdir=$srcdir$ac_dir_suffix;
1652     ac_top_srcdir=$srcdir
1653     ac_abs_top_srcdir=$srcdir ;;
1654   *) # Relative name.
1655     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656     ac_top_srcdir=$ac_top_build_prefix$srcdir
1657     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661     cd "$ac_dir" || { ac_status=$?; continue; }
1662     # Check for guested configure.
1663     if test -f "$ac_srcdir/configure.gnu"; then
1664       echo &&
1665       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666     elif test -f "$ac_srcdir/configure"; then
1667       echo &&
1668       $SHELL "$ac_srcdir/configure" --help=recursive
1669     else
1670       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671     fi || ac_status=$?
1672     cd "$ac_pwd" || { ac_status=$?; break; }
1673   done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678   cat <<\_ACEOF
1679 llvm configure 2.2svn
1680 generated by GNU Autoconf 2.61
1681
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686
1687 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1688 _ACEOF
1689   exit
1690 fi
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1694
1695 It was created by llvm $as_me 2.2svn, which was
1696 generated by GNU Autoconf 2.61.  Invocation command line was
1697
1698   $ $0 $@
1699
1700 _ACEOF
1701 exec 5>>config.log
1702 {
1703 cat <<_ASUNAME
1704 ## --------- ##
1705 ## Platform. ##
1706 ## --------- ##
1707
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1716
1717 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1718 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1721 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1722 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1723 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1724
1725 _ASUNAME
1726
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   echo "PATH: $as_dir"
1733 done
1734 IFS=$as_save_IFS
1735
1736 } >&5
1737
1738 cat >&5 <<_ACEOF
1739
1740
1741 ## ----------- ##
1742 ## Core tests. ##
1743 ## ----------- ##
1744
1745 _ACEOF
1746
1747
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_configure_args=
1754 ac_configure_args0=
1755 ac_configure_args1=
1756 ac_must_keep_next=false
1757 for ac_pass in 1 2
1758 do
1759   for ac_arg
1760   do
1761     case $ac_arg in
1762     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764     | -silent | --silent | --silen | --sile | --sil)
1765       continue ;;
1766     *\'*)
1767       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768     esac
1769     case $ac_pass in
1770     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771     2)
1772       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773       if test $ac_must_keep_next = true; then
1774         ac_must_keep_next=false # Got value, back to normal.
1775       else
1776         case $ac_arg in
1777           *=* | --config-cache | -C | -disable-* | --disable-* \
1778           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780           | -with-* | --with-* | -without-* | --without-* | --x)
1781             case "$ac_configure_args0 " in
1782               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783             esac
1784             ;;
1785           -* ) ac_must_keep_next=true ;;
1786         esac
1787       fi
1788       ac_configure_args="$ac_configure_args '$ac_arg'"
1789       ;;
1790     esac
1791   done
1792 done
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log.  We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802   # Save into config.log some information that might help in debugging.
1803   {
1804     echo
1805
1806     cat <<\_ASBOX
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1810 _ASBOX
1811     echo
1812     # The following way of writing the cache mishandles newlines in values,
1813 (
1814   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815     eval ac_val=\$$ac_var
1816     case $ac_val in #(
1817     *${as_nl}*)
1818       case $ac_var in #(
1819       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821       esac
1822       case $ac_var in #(
1823       _ | IFS | as_nl) ;; #(
1824       *) $as_unset $ac_var ;;
1825       esac ;;
1826     esac
1827   done
1828   (set) 2>&1 |
1829     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830     *${as_nl}ac_space=\ *)
1831       sed -n \
1832         "s/'\''/'\''\\\\'\'''\''/g;
1833           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834       ;; #(
1835     *)
1836       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837       ;;
1838     esac |
1839     sort
1840 )
1841     echo
1842
1843     cat <<\_ASBOX
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1847 _ASBOX
1848     echo
1849     for ac_var in $ac_subst_vars
1850     do
1851       eval ac_val=\$$ac_var
1852       case $ac_val in
1853       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854       esac
1855       echo "$ac_var='\''$ac_val'\''"
1856     done | sort
1857     echo
1858
1859     if test -n "$ac_subst_files"; then
1860       cat <<\_ASBOX
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1864 _ASBOX
1865       echo
1866       for ac_var in $ac_subst_files
1867       do
1868         eval ac_val=\$$ac_var
1869         case $ac_val in
1870         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871         esac
1872         echo "$ac_var='\''$ac_val'\''"
1873       done | sort
1874       echo
1875     fi
1876
1877     if test -s confdefs.h; then
1878       cat <<\_ASBOX
1879 ## ----------- ##
1880 ## confdefs.h. ##
1881 ## ----------- ##
1882 _ASBOX
1883       echo
1884       cat confdefs.h
1885       echo
1886     fi
1887     test "$ac_signal" != 0 &&
1888       echo "$as_me: caught signal $ac_signal"
1889     echo "$as_me: exit $exit_status"
1890   } >&5
1891   rm -f core *.core core.conftest.* &&
1892     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893     exit $exit_status
1894 ' 0
1895 for ac_signal in 1 2 13 15; do
1896   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 done
1898 ac_signal=0
1899
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1902
1903 # Predefined preprocessor variables.
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 _ACEOF
1928
1929
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933   set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936 else
1937   set x "$ac_default_prefix/share/config.site" \
1938         "$ac_default_prefix/etc/config.site"
1939 fi
1940 shift
1941 for ac_site_file
1942 do
1943   if test -r "$ac_site_file"; then
1944     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946     sed 's/^/| /' "$ac_site_file" >&5
1947     . "$ac_site_file"
1948   fi
1949 done
1950
1951 if test -r "$cache_file"; then
1952   # Some versions of bash will fail to source /dev/null (special
1953   # files actually), so we avoid doing that.
1954   if test -f "$cache_file"; then
1955     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1957     case $cache_file in
1958       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959       *)                      . "./$cache_file";;
1960     esac
1961   fi
1962 else
1963   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1965   >$cache_file
1966 fi
1967
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1991 echo "$as_me:   former value:  $ac_old_val" >&2;}
1992         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1993 echo "$as_me:   current value: $ac_new_val" >&2;}
1994         ac_cache_corrupted=:
1995       fi;;
1996   esac
1997   # Pass precious variables to config.status.
1998   if test "$ac_new_set" = set; then
1999     case $ac_new_val in
2000     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001     *) ac_arg=$ac_var=$ac_new_val ;;
2002     esac
2003     case " $ac_configure_args " in
2004       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2005       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006     esac
2007   fi
2008 done
2009 if $ac_cache_corrupted; then
2010   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041 ac_ext=c
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
2047
2048
2049 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2050
2051
2052
2053
2054
2055
2056
2057 ac_aux_dir=
2058 for ac_dir in autoconf "$srcdir"/autoconf; do
2059   if test -f "$ac_dir/install-sh"; then
2060     ac_aux_dir=$ac_dir
2061     ac_install_sh="$ac_aux_dir/install-sh -c"
2062     break
2063   elif test -f "$ac_dir/install.sh"; then
2064     ac_aux_dir=$ac_dir
2065     ac_install_sh="$ac_aux_dir/install.sh -c"
2066     break
2067   elif test -f "$ac_dir/shtool"; then
2068     ac_aux_dir=$ac_dir
2069     ac_install_sh="$ac_aux_dir/shtool install -c"
2070     break
2071   fi
2072 done
2073 if test -z "$ac_aux_dir"; then
2074   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2076    { (exit 1); exit 1; }; }
2077 fi
2078
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2086
2087
2088
2089 if test ${srcdir} != "." ; then
2090   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2091     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2092 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2093    { (exit 1); exit 1; }; }
2094   fi
2095 fi
2096
2097 for i in `ls ${srcdir}/projects`
2098 do
2099   if test -d ${srcdir}/projects/${i} ; then
2100     case ${i} in
2101       CVS) ;;
2102       sample)       subdirs="$subdirs projects/sample"
2103     ;;
2104       privbracket)  subdirs="$subdirs projects/privbracket"
2105  ;;
2106       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2107  ;;
2108       llvm-test)    subdirs="$subdirs projects/llvm-test"
2109  ;;
2110       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2111 ;;
2112       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2113   ;;
2114       llvm-java)    subdirs="$subdirs projects/llvm-java"
2115  ;;
2116       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2117    ;;
2118       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2119  ;;
2120       poolalloc)    subdirs="$subdirs projects/poolalloc"
2121  ;;
2122       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2123  ;;
2124       *)
2125         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2126 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2127         ;;
2128     esac
2129   fi
2130 done
2131
2132
2133 # Make sure we can run config.sub.
2134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 { echo "$as_me:$LINENO: checking build system type" >&5
2140 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_build+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   ac_build_alias=$build_alias
2145 test "x$ac_build_alias" = x &&
2146   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147 test "x$ac_build_alias" = x &&
2148   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150    { (exit 1); exit 1; }; }
2151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2154    { (exit 1); exit 1; }; }
2155
2156 fi
2157 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158 echo "${ECHO_T}$ac_cv_build" >&6; }
2159 case $ac_cv_build in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162 echo "$as_me: error: invalid value of canonical build" >&2;}
2163    { (exit 1); exit 1; }; };;
2164 esac
2165 build=$ac_cv_build
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_build
2168 shift
2169 build_cpu=$1
2170 build_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 build_os=$*
2175 IFS=$ac_save_IFS
2176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2177
2178
2179 { echo "$as_me:$LINENO: checking host system type" >&5
2180 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_host+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test "x$host_alias" = x; then
2185   ac_cv_host=$ac_cv_build
2186 else
2187   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 fi
2194 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195 echo "${ECHO_T}$ac_cv_host" >&6; }
2196 case $ac_cv_host in
2197 *-*-*) ;;
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199 echo "$as_me: error: invalid value of canonical host" >&2;}
2200    { (exit 1); exit 1; }; };;
2201 esac
2202 host=$ac_cv_host
2203 ac_save_IFS=$IFS; IFS='-'
2204 set x $ac_cv_host
2205 shift
2206 host_cpu=$1
2207 host_vendor=$2
2208 shift; shift
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2211 host_os=$*
2212 IFS=$ac_save_IFS
2213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2214
2215
2216 { echo "$as_me:$LINENO: checking target system type" >&5
2217 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2218 if test "${ac_cv_target+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   if test "x$target_alias" = x; then
2222   ac_cv_target=$ac_cv_host
2223 else
2224   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2225     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2226 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2227    { (exit 1); exit 1; }; }
2228 fi
2229
2230 fi
2231 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2232 echo "${ECHO_T}$ac_cv_target" >&6; }
2233 case $ac_cv_target in
2234 *-*-*) ;;
2235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2236 echo "$as_me: error: invalid value of canonical target" >&2;}
2237    { (exit 1); exit 1; }; };;
2238 esac
2239 target=$ac_cv_target
2240 ac_save_IFS=$IFS; IFS='-'
2241 set x $ac_cv_target
2242 shift
2243 target_cpu=$1
2244 target_vendor=$2
2245 shift; shift
2246 # Remember, the first character of IFS is used to create $*,
2247 # except with old shells:
2248 target_os=$*
2249 IFS=$ac_save_IFS
2250 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2251
2252
2253 # The aliases save the names the user supplied, while $host etc.
2254 # will get canonicalized.
2255 test -n "$target_alias" &&
2256   test "$program_prefix$program_suffix$program_transform_name" = \
2257     NONENONEs,x,x, &&
2258   program_prefix=${target_alias}-
2259
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2261 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2262 if test "${llvm_cv_os_type+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   case $host in
2266   *-*-aix*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="AIX"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-irix*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="IRIX"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-cygwin*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="Cygwin"
2280     llvm_cv_platform_type="Unix" ;;
2281   *-*-darwin*)
2282     llvm_cv_link_all_option="-Wl,-all_load"
2283     llvm_cv_link_all_option="-Wl,-noall_load"
2284     llvm_cv_os_type="Darwin"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-freebsd*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="FreeBSD"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-openbsd*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="OpenBSD"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-netbsd*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="NetBSD"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-hpux*)
2302     llvm_cv_link_all_option="-Wl,--whole-archive"
2303     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304     llvm_cv_os_type="HP-UX"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-interix*)
2307     llvm_cv_link_all_option="-Wl,--whole-archive"
2308     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309     llvm_cv_os_type="Interix"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-linux*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="Linux"
2315     llvm_cv_platform_type="Unix" ;;
2316   *-*-solaris*)
2317     llvm_cv_link_all_option="-Wl,-z,allextract"
2318     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2319     llvm_cv_os_type="SunOS"
2320     llvm_cv_platform_type="Unix" ;;
2321   *-*-win32*)
2322     llvm_cv_link_all_option="-Wl,--whole-archive"
2323     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324     llvm_cv_os_type="Win32"
2325     llvm_cv_platform_type="Win32" ;;
2326   *-*-mingw*)
2327     llvm_cv_link_all_option="-Wl,--whole-archive"
2328     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329     llvm_cv_os_type="MingW"
2330     llvm_cv_platform_type="Win32" ;;
2331   *)
2332     llvm_cv_link_all_option=""
2333     llvm_cv_no_link_all_option=""
2334     llvm_cv_os_type="Unknown"
2335     llvm_cv_platform_type="Unknown" ;;
2336 esac
2337 fi
2338 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2340
2341 if test "$llvm_cv_os_type" = "Unknown" ; then
2342   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2344    { (exit 1); exit 1; }; }
2345 fi
2346
2347 OS=$llvm_cv_os_type
2348
2349
2350 LINKALL=$llvm_cv_link_all_option
2351
2352 NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
2355 case $llvm_cv_platform_type in
2356   Unix)
2357
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2360 _ACEOF
2361
2362     LLVM_ON_UNIX=1
2363
2364     LLVM_ON_WIN32=0
2365
2366     ;;
2367   Win32)
2368
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2371 _ACEOF
2372
2373     LLVM_ON_UNIX=0
2374
2375     LLVM_ON_WIN32=1
2376
2377     ;;
2378 esac
2379
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   case $target in
2386   i?86-*)                 llvm_cv_target_arch="x86" ;;
2387   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2388   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2389   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2390   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2391   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2392   arm-*)                  llvm_cv_target_arch="ARM" ;;
2393   mips-*)                 llvm_cv_target_arch="Mips" ;;
2394   *)                      llvm_cv_target_arch="Unknown" ;;
2395 esac
2396 fi
2397 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2398 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2399
2400 if test "$llvm_cv_target_arch" = "Unknown" ; then
2401   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2402 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2403 fi
2404
2405 ARCH=$llvm_cv_target_arch
2406
2407
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 if test -n "$ac_tool_prefix"; then
2414   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   if test -n "$CC"; then
2422   ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429   for ac_exec_ext in '' $ac_executable_extensions; do
2430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433     break 2
2434   fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443   { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2445 else
2446   { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2448 fi
2449
2450
2451 fi
2452 if test -z "$ac_cv_prog_CC"; then
2453   ac_ct_CC=$CC
2454   # Extract the first word of "gcc", so it can be a program name with args.
2455 set dummy gcc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   if test -n "$ac_ct_CC"; then
2462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     ac_cv_prog_ac_ct_CC="gcc"
2472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482 if test -n "$ac_ct_CC"; then
2483   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484 echo "${ECHO_T}$ac_ct_CC" >&6; }
2485 else
2486   { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488 fi
2489
2490   if test "x$ac_ct_CC" = x; then
2491     CC=""
2492   else
2493     case $cross_compiling:$ac_tool_warned in
2494 yes:)
2495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet.  If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&5
2498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet.  If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2501 ac_tool_warned=yes ;;
2502 esac
2503     CC=$ac_ct_CC
2504   fi
2505 else
2506   CC="$ac_cv_prog_CC"
2507 fi
2508
2509 if test -z "$CC"; then
2510           if test -n "$ac_tool_prefix"; then
2511     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}cc; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   if test -n "$CC"; then
2519   ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528     ac_cv_prog_CC="${ac_tool_prefix}cc"
2529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540   { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2542 else
2543   { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2546
2547
2548   fi
2549 fi
2550 if test -z "$CC"; then
2551   # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   if test -n "$CC"; then
2559   ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561   ac_prog_rejected=no
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570        ac_prog_rejected=yes
2571        continue
2572      fi
2573     ac_cv_prog_CC="cc"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 if test $ac_prog_rejected = yes; then
2582   # We found a bogon in the path, so make sure we never use it.
2583   set dummy $ac_cv_prog_CC
2584   shift
2585   if test $# != 0; then
2586     # We chose a different compiler from the bogus one.
2587     # However, it has the same basename, so the bogon will be chosen
2588     # first if we set CC to just the basename; use the full file name.
2589     shift
2590     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591   fi
2592 fi
2593 fi
2594 fi
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597   { echo "$as_me:$LINENO: result: $CC" >&5
2598 echo "${ECHO_T}$CC" >&6; }
2599 else
2600   { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2602 fi
2603
2604
2605 fi
2606 if test -z "$CC"; then
2607   if test -n "$ac_tool_prefix"; then
2608   for ac_prog in cl.exe
2609   do
2610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$CC"; then
2618   ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639   { echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6; }
2641 else
2642   { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2644 fi
2645
2646
2647     test -n "$CC" && break
2648   done
2649 fi
2650 if test -z "$CC"; then
2651   ac_ct_CC=$CC
2652   for ac_prog in cl.exe
2653 do
2654   # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   if test -n "$ac_ct_CC"; then
2662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669   for ac_exec_ext in '' $ac_executable_extensions; do
2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671     ac_cv_prog_ac_ct_CC="$ac_prog"
2672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 echo "${ECHO_T}$ac_ct_CC" >&6; }
2685 else
2686   { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690
2691   test -n "$ac_ct_CC" && break
2692 done
2693
2694   if test "x$ac_ct_CC" = x; then
2695     CC=""
2696   else
2697     case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet.  If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&5
2702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2703 whose name does not start with the host triplet.  If you think this
2704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707     CC=$ac_ct_CC
2708   fi
2709 fi
2710
2711 fi
2712
2713
2714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." >&2;}
2718    { (exit 1); exit 1; }; }
2719
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO: checking for C compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (ac_try="$ac_compiler --version >&5"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_compiler --version >&5") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }
2733 { (ac_try="$ac_compiler -v >&5"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_compiler -v >&5") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }
2743 { (ac_try="$ac_compiler -V >&5"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_compiler -V >&5") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }
2753
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 ac_clean_files_save=$ac_clean_files
2770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2771 # Try to create an executable without -o first, disregard a.out.
2772 # It will help us diagnose broken compilers, and finding out an intuition
2773 # of exeext.
2774 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2775 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2777 #
2778 # List of possible output files, starting from the most likely.
2779 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2780 # only as a last resort.  b.out is created by i960 compilers.
2781 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2782 #
2783 # The IRIX 6 linker writes into existing files which may not be
2784 # executable, retaining their permissions.  Remove them first so a
2785 # subsequent execution test works.
2786 ac_rmfiles=
2787 for ac_file in $ac_files
2788 do
2789   case $ac_file in
2790     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2791     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792   esac
2793 done
2794 rm -f $ac_rmfiles
2795
2796 if { (ac_try="$ac_link_default"
2797 case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802   (eval "$ac_link_default") 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; then
2806   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2809 # so that the user can short-circuit this test for compilers unknown to
2810 # Autoconf.
2811 for ac_file in $ac_files ''
2812 do
2813   test -f "$ac_file" || continue
2814   case $ac_file in
2815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2816         ;;
2817     [ab].out )
2818         # We found the default executable, but exeext='' is most
2819         # certainly right.
2820         break;;
2821     *.* )
2822         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823         then :; else
2824            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825         fi
2826         # We set ac_cv_exeext here because the later test for it is not
2827         # safe: cross compilers may not add the suffix if given an `-o'
2828         # argument, so we may need to know it at that point already.
2829         # Even if this section looks crufty: it has the advantage of
2830         # actually working.
2831         break;;
2832     * )
2833         break;;
2834   esac
2835 done
2836 test "$ac_cv_exeext" = no && ac_cv_exeext=
2837
2838 else
2839   ac_file=''
2840 fi
2841
2842 { echo "$as_me:$LINENO: result: $ac_file" >&5
2843 echo "${ECHO_T}$ac_file" >&6; }
2844 if test -z "$ac_file"; then
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&2;}
2852    { (exit 77); exit 77; }; }
2853 fi
2854
2855 ac_exeext=$ac_cv_exeext
2856
2857 # Check that the compiler produces executables we can run.  If not, either
2858 # the compiler is broken, or we cross compile.
2859 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862 # If not cross compiling, check that we can run a simple program.
2863 if test "$cross_compiling" != yes; then
2864   if { ac_try='./$ac_file'
2865   { (case "(($ac_try" in
2866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867   *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870   (eval "$ac_try") 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874     cross_compiling=no
2875   else
2876     if test "$cross_compiling" = maybe; then
2877         cross_compiling=yes
2878     else
2879         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&2;}
2885    { (exit 1); exit 1; }; }
2886     fi
2887   fi
2888 fi
2889 { echo "$as_me:$LINENO: result: yes" >&5
2890 echo "${ECHO_T}yes" >&6; }
2891
2892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 # Check that the compiler produces executables we can run.  If not, either
2895 # the compiler is broken, or we cross compile.
2896 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2898 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899 echo "${ECHO_T}$cross_compiling" >&6; }
2900
2901 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2903 if { (ac_try="$ac_link"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_link") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; then
2913   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2915 # work properly (i.e., refer to `conftest.exe'), while it won't with
2916 # `rm'.
2917 for ac_file in conftest.exe conftest conftest.*; do
2918   test -f "$ac_file" || continue
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2921     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922           break;;
2923     * ) break;;
2924   esac
2925 done
2926 else
2927   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2930 See \`config.log' for more details." >&2;}
2931    { (exit 1); exit 1; }; }
2932 fi
2933
2934 rm -f conftest$ac_cv_exeext
2935 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2937
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2940 ac_exeext=$EXEEXT
2941 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2943 if test "${ac_cv_objext+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952
2953 int
2954 main ()
2955 {
2956
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.o conftest.obj
2962 if { (ac_try="$ac_compile"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_compile") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; then
2972   for ac_file in conftest.o conftest.obj conftest.*; do
2973   test -f "$ac_file" || continue;
2974   case $ac_file in
2975     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2976     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977        break;;
2978   esac
2979 done
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2987 See \`config.log' for more details." >&2;}
2988    { (exit 1); exit 1; }; }
2989 fi
2990
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2992 fi
2993 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2994 echo "${ECHO_T}$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2996 ac_objext=$OBJEXT
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012 #ifndef __GNUC__
3013        choke me
3014 #endif
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } && {
3034          test -z "$ac_c_werror_flag" ||
3035          test ! -s conftest.err
3036        } && test -s conftest.$ac_objext; then
3037   ac_compiler_gnu=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         ac_compiler_gnu=no
3043 fi
3044
3045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3047
3048 fi
3049 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3051 GCC=`test $ac_compiler_gnu = yes && echo yes`
3052 ac_test_CFLAGS=${CFLAGS+set}
3053 ac_save_CFLAGS=$CFLAGS
3054 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3055 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_cc_g+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   ac_save_c_werror_flag=$ac_c_werror_flag
3060    ac_c_werror_flag=yes
3061    ac_cv_prog_cc_g=no
3062    CFLAGS="-g"
3063    cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compile") 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } && {
3092          test -z "$ac_c_werror_flag" ||
3093          test ! -s conftest.err
3094        } && test -s conftest.$ac_objext; then
3095   ac_cv_prog_cc_g=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100         CFLAGS=""
3101       cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } && {
3130          test -z "$ac_c_werror_flag" ||
3131          test ! -s conftest.err
3132        } && test -s conftest.$ac_objext; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_c_werror_flag=$ac_save_c_werror_flag
3139          CFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } && {
3169          test -z "$ac_c_werror_flag" ||
3170          test ! -s conftest.err
3171        } && test -s conftest.$ac_objext; then
3172   ac_cv_prog_cc_g=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187    ac_c_werror_flag=$ac_save_c_werror_flag
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3191 if test "$ac_test_CFLAGS" = set; then
3192   CFLAGS=$ac_save_CFLAGS
3193 elif test $ac_cv_prog_cc_g = yes; then
3194   if test "$GCC" = yes; then
3195     CFLAGS="-g -O2"
3196   else
3197     CFLAGS="-g"
3198   fi
3199 else
3200   if test "$GCC" = yes; then
3201     CFLAGS="-O2"
3202   else
3203     CFLAGS=
3204   fi
3205 fi
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   ac_cv_prog_cc_c89=no
3212 ac_save_CC=$CC
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #include <stdarg.h>
3220 #include <stdio.h>
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3227      char **p;
3228      int i;
3229 {
3230   return p[i];
3231 }
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3233 {
3234   char *s;
3235   va_list v;
3236   va_start (v,p);
3237   s = g (p, va_arg (v,int));
3238   va_end (v);
3239   return s;
3240 }
3241
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3243    function prototypes and stuff, but not '\xHH' hex character constants.
3244    These don't provoke an error unfortunately, instead are silently treated
3245    as 'x'.  The following induces an error, until -std is added to get
3246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3247    array size at least.  It's necessary to write '\x00'==0 to get something
3248    that's true only with -std.  */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252    inside strings and character constants.  */
3253 #define FOO(x) 'x'
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260 int argc;
3261 char **argv;
3262 int
3263 main ()
3264 {
3265 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 do
3273   CC="$ac_save_CC $ac_arg"
3274   rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_compile") 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } && {
3288          test -z "$ac_c_werror_flag" ||
3289          test ! -s conftest.err
3290        } && test -s conftest.$ac_objext; then
3291   ac_cv_prog_cc_c89=$ac_arg
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296
3297 fi
3298
3299 rm -f core conftest.err conftest.$ac_objext
3300   test "x$ac_cv_prog_cc_c89" != "xno" && break
3301 done
3302 rm -f conftest.$ac_ext
3303 CC=$ac_save_CC
3304
3305 fi
3306 # AC_CACHE_VAL
3307 case "x$ac_cv_prog_cc_c89" in
3308   x)
3309     { echo "$as_me:$LINENO: result: none needed" >&5
3310 echo "${ECHO_T}none needed" >&6; } ;;
3311   xno)
3312     { echo "$as_me:$LINENO: result: unsupported" >&5
3313 echo "${ECHO_T}unsupported" >&6; } ;;
3314   *)
3315     CC="$CC $ac_cv_prog_cc_c89"
3316     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3318 esac
3319
3320
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326
3327
3328 ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3335 # On Suns, sometimes $CPP names a directory.
3336 if test -n "$CPP" && test -d "$CPP"; then
3337   CPP=
3338 fi
3339 if test -z "$CPP"; then
3340   if test "${ac_cv_prog_CPP+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343       # Double quotes because CPP needs to be expanded
3344     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345     do
3346       ac_preproc_ok=false
3347 for ac_c_preproc_warn_flag in '' yes
3348 do
3349   # Use a header file that comes with gcc, so configuring glibc
3350   # with a fresh cross-compiler works.
3351   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352   # <limits.h> exists even on freestanding compilers.
3353   # On the NeXT, cc -E runs the code through the compiler's parser,
3354   # not just through cpp. "Syntax error" is here to catch this case.
3355   cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #ifdef __STDC__
3362 # include <limits.h>
3363 #else
3364 # include <assert.h>
3365 #endif
3366                      Syntax error
3367 _ACEOF
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } >/dev/null && {
3381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382          test ! -s conftest.err
3383        }; then
3384   :
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389   # Broken: fails on valid input.
3390 continue
3391 fi
3392
3393 rm -f conftest.err conftest.$ac_ext
3394
3395   # OK, works on sane cases.  Now check whether nonexistent headers
3396   # can be detected and how.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #include <ac_nonexistent.h>
3404 _ACEOF
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null && {
3418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419          test ! -s conftest.err
3420        }; then
3421   # Broken: success on invalid input.
3422 continue
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427   # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438   break
3439 fi
3440
3441     done
3442     ac_cv_prog_CPP=$CPP
3443
3444 fi
3445   CPP=$ac_cv_prog_CPP
3446 else
3447   ac_cv_prog_CPP=$CPP
3448 fi
3449 { echo "$as_me:$LINENO: result: $CPP" >&5
3450 echo "${ECHO_T}$CPP" >&6; }
3451 ac_preproc_ok=false
3452 for ac_c_preproc_warn_flag in '' yes
3453 do
3454   # Use a header file that comes with gcc, so configuring glibc
3455   # with a fresh cross-compiler works.
3456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457   # <limits.h> exists even on freestanding compilers.
3458   # On the NeXT, cc -E runs the code through the compiler's parser,
3459   # not just through cpp. "Syntax error" is here to catch this case.
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #ifdef __STDC__
3467 # include <limits.h>
3468 #else
3469 # include <assert.h>
3470 #endif
3471                      Syntax error
3472 _ACEOF
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 case "(($ac_try" in
3475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476   *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } >/dev/null && {
3486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487          test ! -s conftest.err
3488        }; then
3489   :
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494   # Broken: fails on valid input.
3495 continue
3496 fi
3497
3498 rm -f conftest.err conftest.$ac_ext
3499
3500   # OK, works on sane cases.  Now check whether nonexistent headers
3501   # can be detected and how.
3502   cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #include <ac_nonexistent.h>
3509 _ACEOF
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3517   ac_status=$?
3518   grep -v '^ *+' conftest.er1 >conftest.err
3519   rm -f conftest.er1
3520   cat conftest.err >&5
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); } >/dev/null && {
3523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524          test ! -s conftest.err
3525        }; then
3526   # Broken: success on invalid input.
3527 continue
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532   # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3535 fi
3536
3537 rm -f conftest.err conftest.$ac_ext
3538
3539 done
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then
3543   :
3544 else
3545   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&5
3547 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548 See \`config.log' for more details." >&2;}
3549    { (exit 1); exit 1; }; }
3550 fi
3551
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
3558
3559 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3560 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3561 if test "${ac_cv_path_GREP+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   # Extract the first word of "grep ggrep" to use in msg output
3565 if test -z "$GREP"; then
3566 set dummy grep ggrep; ac_prog_name=$2
3567 if test "${ac_cv_path_GREP+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577   for ac_prog in grep ggrep; do
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3581     # Check for GNU ac_path_GREP and select it if it is found.
3582   # Check for GNU $ac_path_GREP
3583 case `"$ac_path_GREP" --version 2>&1` in
3584 *GNU*)
3585   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586 *)
3587   ac_count=0
3588   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3589   while :
3590   do
3591     cat "conftest.in" "conftest.in" >"conftest.tmp"
3592     mv "conftest.tmp" "conftest.in"
3593     cp "conftest.in" "conftest.nl"
3594     echo 'GREP' >> "conftest.nl"
3595     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597     ac_count=`expr $ac_count + 1`
3598     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599       # Best one so far, save it but keep looking for a better one
3600       ac_cv_path_GREP="$ac_path_GREP"
3601       ac_path_GREP_max=$ac_count
3602     fi
3603     # 10*(2^10) chars as input seems more than enough
3604     test $ac_count -gt 10 && break
3605   done
3606   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607 esac
3608
3609
3610     $ac_path_GREP_found && break 3
3611   done
3612 done
3613
3614 done
3615 IFS=$as_save_IFS
3616
3617
3618 fi
3619
3620 GREP="$ac_cv_path_GREP"
3621 if test -z "$GREP"; then
3622   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624    { (exit 1); exit 1; }; }
3625 fi
3626
3627 else
3628   ac_cv_path_GREP=$GREP
3629 fi
3630
3631
3632 fi
3633 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3635  GREP="$ac_cv_path_GREP"
3636
3637
3638 { echo "$as_me:$LINENO: checking for egrep" >&5
3639 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3640 if test "${ac_cv_path_EGREP+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644    then ac_cv_path_EGREP="$GREP -E"
3645    else
3646      # Extract the first word of "egrep" to use in msg output
3647 if test -z "$EGREP"; then
3648 set dummy egrep; ac_prog_name=$2
3649 if test "${ac_cv_path_EGREP+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   ac_path_EGREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_prog in egrep; do
3660   for ac_exec_ext in '' $ac_executable_extensions; do
3661     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3662     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3663     # Check for GNU ac_path_EGREP and select it if it is found.
3664   # Check for GNU $ac_path_EGREP
3665 case `"$ac_path_EGREP" --version 2>&1` in
3666 *GNU*)
3667   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3668 *)
3669   ac_count=0
3670   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671   while :
3672   do
3673     cat "conftest.in" "conftest.in" >"conftest.tmp"
3674     mv "conftest.tmp" "conftest.in"
3675     cp "conftest.in" "conftest.nl"
3676     echo 'EGREP' >> "conftest.nl"
3677     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679     ac_count=`expr $ac_count + 1`
3680     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681       # Best one so far, save it but keep looking for a better one
3682       ac_cv_path_EGREP="$ac_path_EGREP"
3683       ac_path_EGREP_max=$ac_count
3684     fi
3685     # 10*(2^10) chars as input seems more than enough
3686     test $ac_count -gt 10 && break
3687   done
3688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689 esac
3690
3691
3692     $ac_path_EGREP_found && break 3
3693   done
3694 done
3695
3696 done
3697 IFS=$as_save_IFS
3698
3699
3700 fi
3701
3702 EGREP="$ac_cv_path_EGREP"
3703 if test -z "$EGREP"; then
3704   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706    { (exit 1); exit 1; }; }
3707 fi
3708
3709 else
3710   ac_cv_path_EGREP=$EGREP
3711 fi
3712
3713
3714    fi
3715 fi
3716 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3717 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3718  EGREP="$ac_cv_path_EGREP"
3719
3720
3721 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_stdc+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732 #include <stdlib.h>
3733 #include <stdarg.h>
3734 #include <string.h>
3735 #include <float.h>
3736
3737 int
3738 main ()
3739 {
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752   (eval "$ac_compile") 2>conftest.er1
3753   ac_status=$?
3754   grep -v '^ *+' conftest.er1 >conftest.err
3755   rm -f conftest.er1
3756   cat conftest.err >&5
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } && {
3759          test -z "$ac_c_werror_flag" ||
3760          test ! -s conftest.err
3761        } && test -s conftest.$ac_objext; then
3762   ac_cv_header_stdc=yes
3763 else
3764   echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767         ac_cv_header_stdc=no
3768 fi
3769
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771
3772 if test $ac_cv_header_stdc = yes; then
3773   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 #include <string.h>
3781
3782 _ACEOF
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784   $EGREP "memchr" >/dev/null 2>&1; then
3785   :
3786 else
3787   ac_cv_header_stdc=no
3788 fi
3789 rm -f conftest*
3790
3791 fi
3792
3793 if test $ac_cv_header_stdc = yes; then
3794   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795   cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801 #include <stdlib.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805   $EGREP "free" >/dev/null 2>&1; then
3806   :
3807 else
3808   ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816   if test "$cross_compiling" = yes; then
3817   :
3818 else
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <ctype.h>
3826 #include <stdlib.h>
3827 #if ((' ' & 0x0FF) == 0x020)
3828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830 #else
3831 # define ISLOWER(c) \
3832                    (('a' <= (c) && (c) <= 'i') \
3833                      || ('j' <= (c) && (c) <= 'r') \
3834                      || ('s' <= (c) && (c) <= 'z'))
3835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836 #endif
3837
3838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839 int
3840 main ()
3841 {
3842   int i;
3843   for (i = 0; i < 256; i++)
3844     if (XOR (islower (i), ISLOWER (i))
3845         || toupper (i) != TOUPPER (i))
3846       return 2;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest$ac_exeext
3851 if { (ac_try="$ac_link"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_link") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870   :
3871 else
3872   echo "$as_me: program exited with status $ac_status" >&5
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 ( exit $ac_status )
3877 ac_cv_header_stdc=no
3878 fi
3879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880 fi
3881
3882
3883 fi
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3887 if test $ac_cv_header_stdc = yes; then
3888
3889 cat >>confdefs.h <<\_ACEOF
3890 #define STDC_HEADERS 1
3891 _ACEOF
3892
3893 fi
3894
3895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3906                   inttypes.h stdint.h unistd.h
3907 do
3908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 $ac_includes_default
3921
3922 #include <$ac_header>
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_compile") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && {
3938          test -z "$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        } && test -s conftest.$ac_objext; then
3941   eval "$as_ac_Header=yes"
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946         eval "$as_ac_Header=no"
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 ac_res=`eval echo '${'$as_ac_Header'}'`
3952                { echo "$as_me:$LINENO: result: $ac_res" >&5
3953 echo "${ECHO_T}$ac_res" >&6; }
3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955   cat >>confdefs.h <<_ACEOF
3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963
3964 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3965 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3966 if test "${ac_cv_c_bigendian+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   # See if sys/param.h defines the BYTE_ORDER macro.
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h.  */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h.  */
3976 #include <sys/types.h>
3977 #include <sys/param.h>
3978
3979 int
3980 main ()
3981 {
3982 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3983         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3984  bogus endian macros
3985 #endif
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998   (eval "$ac_compile") 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } && {
4005          test -z "$ac_c_werror_flag" ||
4006          test ! -s conftest.err
4007        } && test -s conftest.$ac_objext; then
4008   # It does; now see whether it defined to BIG_ENDIAN or not.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 #include <sys/types.h>
4016 #include <sys/param.h>
4017
4018 int
4019 main ()
4020 {
4021 #if BYTE_ORDER != BIG_ENDIAN
4022  not big endian
4023 #endif
4024
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_compile") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } && {
4043          test -z "$ac_c_werror_flag" ||
4044          test ! -s conftest.err
4045        } && test -s conftest.$ac_objext; then
4046   ac_cv_c_bigendian=yes
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051         ac_cv_c_bigendian=no
4052 fi
4053
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059         # It does not; compile a test program.
4060 if test "$cross_compiling" = yes; then
4061   # try to guess the endianness by grepping values into an object file
4062   ac_cv_c_bigendian=unknown
4063   cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4070 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4072 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4073 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4075 int
4076 main ()
4077 {
4078  _ascii (); _ebcdic ();
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_compile") 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && {
4097          test -z "$ac_c_werror_flag" ||
4098          test ! -s conftest.err
4099        } && test -s conftest.$ac_objext; then
4100   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4101   ac_cv_c_bigendian=yes
4102 fi
4103 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4104   if test "$ac_cv_c_bigendian" = unknown; then
4105     ac_cv_c_bigendian=no
4106   else
4107     # finding both strings is unlikely to happen, but who knows?
4108     ac_cv_c_bigendian=unknown
4109   fi
4110 fi
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115
4116 fi
4117
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 else
4120   cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 $ac_includes_default
4127 int
4128 main ()
4129 {
4130
4131   /* Are we little or big endian?  From Harbison&Steele.  */
4132   union
4133   {
4134     long int l;
4135     char c[sizeof (long int)];
4136   } u;
4137   u.l = 1;
4138   return u.c[sizeof (long int) - 1] == 1;
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_link") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   ac_cv_c_bigendian=no
4165 else
4166   echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ( exit $ac_status )
4171 ac_cv_c_bigendian=yes
4172 fi
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 fi
4175
4176
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4182 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4183 case $ac_cv_c_bigendian in
4184   yes)
4185     ENDIAN=big
4186  ;;
4187   no)
4188     ENDIAN=little
4189  ;;
4190   *)
4191     { { echo "$as_me:$LINENO: error: unknown endianness
4192 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4193 echo "$as_me: error: unknown endianness
4194 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4195    { (exit 1); exit 1; }; } ;;
4196 esac
4197
4198
4199 if test "$cross_compiling" = yes; then
4200   LLVM_CROSS_COMPILING=1
4201
4202
4203 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205 if test "${ac_cv_build_exeext+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209   ac_cv_build_exeext=.exe
4210 else
4211   ac_build_prefix=${build_alias}-
4212
4213   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_build_prefix}gcc; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test -n "$BUILD_CC"; then
4221   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228   for ac_exec_ext in '' $ac_executable_extensions; do
4229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232     break 2
4233   fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 BUILD_CC=$ac_cv_prog_BUILD_CC
4241 if test -n "$BUILD_CC"; then
4242   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243 echo "${ECHO_T}$BUILD_CC" >&6; }
4244 else
4245   { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4247 fi
4248
4249
4250   if test -z "$BUILD_CC"; then
4251      # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   if test -n "$BUILD_CC"; then
4259   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_prog_BUILD_CC="gcc"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 BUILD_CC=$ac_cv_prog_BUILD_CC
4279 if test -n "$BUILD_CC"; then
4280   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281 echo "${ECHO_T}$BUILD_CC" >&6; }
4282 else
4283   { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 fi
4286
4287
4288      if test -z "$BUILD_CC"; then
4289        # Extract the first word of "cc", so it can be a program name with args.
4290 set dummy cc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   if test -n "$BUILD_CC"; then
4297   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4298 else
4299   ac_prog_rejected=no
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305   for ac_exec_ext in '' $ac_executable_extensions; do
4306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308        ac_prog_rejected=yes
4309        continue
4310      fi
4311     ac_cv_prog_BUILD_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 if test $ac_prog_rejected = yes; then
4320   # We found a bogon in the path, so make sure we never use it.
4321   set dummy $ac_cv_prog_BUILD_CC
4322   shift
4323   if test $# != 0; then
4324     # We chose a different compiler from the bogus one.
4325     # However, it has the same basename, so the bogon will be chosen
4326     # first if we set BUILD_CC to just the basename; use the full file name.
4327     shift
4328     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4329   fi
4330 fi
4331 fi
4332 fi
4333 BUILD_CC=$ac_cv_prog_BUILD_CC
4334 if test -n "$BUILD_CC"; then
4335   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336 echo "${ECHO_T}$BUILD_CC" >&6; }
4337 else
4338   { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4340 fi
4341
4342
4343      fi
4344   fi
4345   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347    { (exit 1); exit 1; }; }
4348   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4349   rm -f conftest*
4350   echo 'int main () { return 0; }' > conftest.$ac_ext
4351   ac_cv_build_exeext=
4352   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353   (eval $ac_build_link) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; then
4357     for file in conftest.*; do
4358       case $file in
4359       *.c | *.o | *.obj) ;;
4360       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4361       esac
4362     done
4363   else
4364     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366    { (exit 1); exit 1; }; }
4367   fi
4368   rm -f conftest*
4369   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4370 fi
4371 fi
4372
4373 BUILD_EXEEXT=""
4374 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377 ac_build_exeext=$BUILD_EXEEXT
4378
4379 else
4380   LLVM_CROSS_COMPILING=0
4381
4382 fi
4383
4384 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4385   cvsbuild="yes"
4386   optimize="no"
4387   CVSBUILD=CVSBUILD=1
4388
4389 else
4390   cvsbuild="no"
4391   optimize="yes"
4392 fi
4393
4394
4395 # Check whether --enable-optimized was given.
4396 if test "${enable_optimized+set}" = set; then
4397   enableval=$enable_optimized;
4398 else
4399   enableval=$optimize
4400 fi
4401
4402 if test ${enableval} = "no" ; then
4403   ENABLE_OPTIMIZED=
4404
4405 else
4406   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4407
4408 fi
4409
4410 # Check whether --enable-assertions was given.
4411 if test "${enable_assertions+set}" = set; then
4412   enableval=$enable_assertions;
4413 else
4414   enableval="yes"
4415 fi
4416
4417 if test ${enableval} = "yes" ; then
4418   DISABLE_ASSERTIONS=
4419
4420 else
4421   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4422
4423 fi
4424
4425 # Check whether --enable-expensive-checks was given.
4426 if test "${enable_expensive_checks+set}" = set; then
4427   enableval=$enable_expensive_checks;
4428 else
4429   enableval="no"
4430 fi
4431
4432 if test ${enableval} = "yes" ; then
4433   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4434
4435   EXPENSIVE_CHECKS=yes
4436
4437 else
4438   ENABLE_EXPENSIVE_CHECKS=
4439
4440   EXPENSIVE_CHECKS=no
4441
4442 fi
4443
4444 # Check whether --enable-debug-runtime was given.
4445 if test "${enable_debug_runtime+set}" = set; then
4446   enableval=$enable_debug_runtime;
4447 else
4448   enableval=no
4449 fi
4450
4451 if test ${enableval} = "no" ; then
4452   DEBUG_RUNTIME=
4453
4454 else
4455   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4456
4457 fi
4458
4459 # Check whether --enable-jit was given.
4460 if test "${enable_jit+set}" = set; then
4461   enableval=$enable_jit;
4462 else
4463   enableval=default
4464 fi
4465
4466 if test ${enableval} = "no"
4467 then
4468   JIT=
4469
4470 else
4471   case "$llvm_cv_target_arch" in
4472     x86)     TARGET_HAS_JIT=1
4473  ;;
4474     Sparc)   TARGET_HAS_JIT=0
4475  ;;
4476     PowerPC) TARGET_HAS_JIT=1
4477  ;;
4478     x86_64)  TARGET_HAS_JIT=1
4479  ;;
4480     Alpha)   TARGET_HAS_JIT=1
4481  ;;
4482     IA64)    TARGET_HAS_JIT=0
4483  ;;
4484     ARM)     TARGET_HAS_JIT=0
4485  ;;
4486     Mips)    TARGET_HAS_JIT=0
4487  ;;
4488     *)       TARGET_HAS_JIT=0
4489  ;;
4490   esac
4491 fi
4492
4493 # Check whether --enable-doxygen was given.
4494 if test "${enable_doxygen+set}" = set; then
4495   enableval=$enable_doxygen;
4496 else
4497   enableval=default
4498 fi
4499
4500 case "$enableval" in
4501   yes) ENABLE_DOXYGEN=1
4502  ;;
4503   no)  ENABLE_DOXYGEN=0
4504  ;;
4505   default) ENABLE_DOXYGEN=0
4506  ;;
4507   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4508 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4509    { (exit 1); exit 1; }; } ;;
4510 esac
4511
4512 # Check whether --enable-threads was given.
4513 if test "${enable_threads+set}" = set; then
4514   enableval=$enable_threads;
4515 else
4516   enableval=default
4517 fi
4518
4519 case "$enableval" in
4520   yes) ENABLE_THREADS=1
4521  ;;
4522   no)  ENABLE_THREADS=0
4523  ;;
4524   default) ENABLE_THREADS=1
4525  ;;
4526   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4527 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4528    { (exit 1); exit 1; }; } ;;
4529 esac
4530
4531 cat >>confdefs.h <<_ACEOF
4532 #define ENABLE_THREADS $ENABLE_THREADS
4533 _ACEOF
4534
4535
4536 # Check whether --enable-pic was given.
4537 if test "${enable_pic+set}" = set; then
4538   enableval=$enable_pic;
4539 else
4540   enableval=default
4541 fi
4542
4543 case "$enableval" in
4544   yes) ENABLE_PIC=1
4545  ;;
4546   no)  ENABLE_PIC=0
4547  ;;
4548   default) ENABLE_PIC=0
4549  ;;
4550   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4551 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4552    { (exit 1); exit 1; }; } ;;
4553 esac
4554
4555 cat >>confdefs.h <<_ACEOF
4556 #define ENABLE_PIC $ENABLE_PIC
4557 _ACEOF
4558
4559
4560 TARGETS_TO_BUILD=""
4561 # Check whether --enable-targets was given.
4562 if test "${enable_targets+set}" = set; then
4563   enableval=$enable_targets;
4564 else
4565   enableval=all
4566 fi
4567
4568 case "$enableval" in
4569   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
4570   host-only)
4571     case "$llvm_cv_target_arch" in
4572       x86)     TARGETS_TO_BUILD="X86" ;;
4573       x86_64)  TARGETS_TO_BUILD="X86" ;;
4574       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4575       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4576       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4577       IA64)    TARGETS_TO_BUILD="IA64" ;;
4578       ARM)     TARGETS_TO_BUILD="ARM" ;;
4579       Mips)    TARGETS_TO_BUILD="Mips" ;;
4580       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4581       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4582 echo "$as_me: error: Can not set target to build" >&2;}
4583    { (exit 1); exit 1; }; } ;;
4584     esac
4585     ;;
4586   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4587       case "$a_target" in
4588         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4589         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4590         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4591         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4592         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4593         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4594         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4595         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4596         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4597         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4598 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4599    { (exit 1); exit 1; }; } ;;
4600       esac
4601   done
4602   ;;
4603 esac
4604 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4605 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4606
4607
4608 # Check whether --enable-cbe-printf-a was given.
4609 if test "${enable_cbe_printf_a+set}" = set; then
4610   enableval=$enable_cbe_printf_a;
4611 else
4612   enableval=default
4613 fi
4614
4615 case "$enableval" in
4616   yes) ENABLE_CBE_PRINTF_A=1
4617  ;;
4618   no)  ENABLE_CBE_PRINTF_A=0
4619  ;;
4620   default)  ENABLE_CBE_PRINTF_A=1
4621  ;;
4622   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4623 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4624    { (exit 1); exit 1; }; } ;;
4625 esac
4626
4627 cat >>confdefs.h <<_ACEOF
4628 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4629 _ACEOF
4630
4631
4632
4633 # Check whether --with-llvmgccdir was given.
4634 if test "${with_llvmgccdir+set}" = set; then
4635   withval=$with_llvmgccdir;
4636 else
4637   withval=default
4638 fi
4639
4640 case "$withval" in
4641   default) WITH_LLVMGCCDIR=default ;;
4642   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4643   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4644 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4645    { (exit 1); exit 1; }; } ;;
4646 esac
4647
4648
4649 # Check whether --with-llvmgcc was given.
4650 if test "${with_llvmgcc+set}" = set; then
4651   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4652       WITH_LLVMGCCDIR=""
4653 fi
4654
4655
4656
4657 # Check whether --with-llvmgxx was given.
4658 if test "${with_llvmgxx+set}" = set; then
4659   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4660     WITH_LLVMGCCDIR=""
4661 fi
4662
4663
4664 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4665    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4666 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4667    { (exit 1); exit 1; }; };
4668 fi
4669
4670 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4671    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4672 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4673    { (exit 1); exit 1; }; };
4674 fi
4675
4676
4677 # Check whether --with-extra-options was given.
4678 if test "${with_extra_options+set}" = set; then
4679   withval=$with_extra_options;
4680 else
4681   withval=default
4682 fi
4683
4684 case "$withval" in
4685   default) EXTRA_OPTIONS= ;;
4686   *) EXTRA_OPTIONS=$withval ;;
4687 esac
4688 EXTRA_OPTIONS=$EXTRA_OPTIONS
4689
4690
4691 # Check whether --enable-bindings was given.
4692 if test "${enable_bindings+set}" = set; then
4693   enableval=$enable_bindings;
4694 else
4695   enableval=default
4696 fi
4697
4698 BINDINGS_TO_BUILD=""
4699 case "$enableval" in
4700   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4701   all ) BINDINGS_TO_BUILD="ocaml" ;;
4702   none | no) BINDINGS_TO_BUILD="" ;;
4703   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4704       case "$a_binding" in
4705         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4706         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4707 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4708    { (exit 1); exit 1; }; } ;;
4709       esac
4710   done
4711   ;;
4712 esac
4713
4714
4715 # Check whether --with-ocaml-libdir was given.
4716 if test "${with_ocaml_libdir+set}" = set; then
4717   withval=$with_ocaml_libdir;
4718 else
4719   withval=auto
4720 fi
4721
4722 case "$withval" in
4723   auto) with_ocaml_libdir="$withval" ;;
4724   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4725   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4726 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4727    { (exit 1); exit 1; }; } ;;
4728 esac
4729
4730
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4738 # On Suns, sometimes $CPP names a directory.
4739 if test -n "$CPP" && test -d "$CPP"; then
4740   CPP=
4741 fi
4742 if test -z "$CPP"; then
4743   if test "${ac_cv_prog_CPP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746       # Double quotes because CPP needs to be expanded
4747     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4748     do
4749       ac_preproc_ok=false
4750 for ac_c_preproc_warn_flag in '' yes
4751 do
4752   # Use a header file that comes with gcc, so configuring glibc
4753   # with a fresh cross-compiler works.
4754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755   # <limits.h> exists even on freestanding compilers.
4756   # On the NeXT, cc -E runs the code through the compiler's parser,
4757   # not just through cpp. "Syntax error" is here to catch this case.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #ifdef __STDC__
4765 # include <limits.h>
4766 #else
4767 # include <assert.h>
4768 #endif
4769                      Syntax error
4770 _ACEOF
4771 if { (ac_try="$ac_cpp conftest.$ac_ext"
4772 case "(($ac_try" in
4773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774   *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778   ac_status=$?
4779   grep -v '^ *+' conftest.er1 >conftest.err
4780   rm -f conftest.er1
4781   cat conftest.err >&5
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } >/dev/null && {
4784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785          test ! -s conftest.err
4786        }; then
4787   :
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792   # Broken: fails on valid input.
4793 continue
4794 fi
4795
4796 rm -f conftest.err conftest.$ac_ext
4797
4798   # OK, works on sane cases.  Now check whether nonexistent headers
4799   # can be detected and how.
4800   cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 #include <ac_nonexistent.h>
4807 _ACEOF
4808 if { (ac_try="$ac_cpp conftest.$ac_ext"
4809 case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } >/dev/null && {
4821          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4822          test ! -s conftest.err
4823        }; then
4824   # Broken: success on invalid input.
4825 continue
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830   # Passes both tests.
4831 ac_preproc_ok=:
4832 break
4833 fi
4834
4835 rm -f conftest.err conftest.$ac_ext
4836
4837 done
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.err conftest.$ac_ext
4840 if $ac_preproc_ok; then
4841   break
4842 fi
4843
4844     done
4845     ac_cv_prog_CPP=$CPP
4846
4847 fi
4848   CPP=$ac_cv_prog_CPP
4849 else
4850   ac_cv_prog_CPP=$CPP
4851 fi
4852 { echo "$as_me:$LINENO: result: $CPP" >&5
4853 echo "${ECHO_T}$CPP" >&6; }
4854 ac_preproc_ok=false
4855 for ac_c_preproc_warn_flag in '' yes
4856 do
4857   # Use a header file that comes with gcc, so configuring glibc
4858   # with a fresh cross-compiler works.
4859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860   # <limits.h> exists even on freestanding compilers.
4861   # On the NeXT, cc -E runs the code through the compiler's parser,
4862   # not just through cpp. "Syntax error" is here to catch this case.
4863   cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 #ifdef __STDC__
4870 # include <limits.h>
4871 #else
4872 # include <assert.h>
4873 #endif
4874                      Syntax error
4875 _ACEOF
4876 if { (ac_try="$ac_cpp conftest.$ac_ext"
4877 case "(($ac_try" in
4878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879   *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4883   ac_status=$?
4884   grep -v '^ *+' conftest.er1 >conftest.err
4885   rm -f conftest.er1
4886   cat conftest.err >&5
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); } >/dev/null && {
4889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890          test ! -s conftest.err
4891        }; then
4892   :
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897   # Broken: fails on valid input.
4898 continue
4899 fi
4900
4901 rm -f conftest.err conftest.$ac_ext
4902
4903   # OK, works on sane cases.  Now check whether nonexistent headers
4904   # can be detected and how.
4905   cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 #include <ac_nonexistent.h>
4912 _ACEOF
4913 if { (ac_try="$ac_cpp conftest.$ac_ext"
4914 case "(($ac_try" in
4915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916   *) ac_try_echo=$ac_try;;
4917 esac
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920   ac_status=$?
4921   grep -v '^ *+' conftest.er1 >conftest.err
4922   rm -f conftest.er1
4923   cat conftest.err >&5
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); } >/dev/null && {
4926          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4927          test ! -s conftest.err
4928        }; then
4929   # Broken: success on invalid input.
4930 continue
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935   # Passes both tests.
4936 ac_preproc_ok=:
4937 break
4938 fi
4939
4940 rm -f conftest.err conftest.$ac_ext
4941
4942 done
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then
4946   :
4947 else
4948   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4951 See \`config.log' for more details." >&2;}
4952    { (exit 1); exit 1; }; }
4953 fi
4954
4955 ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 if test -n "$ac_tool_prefix"; then
4967   for ac_prog in gcc
4968   do
4969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973 if test "${ac_cv_prog_CC+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   if test -n "$CC"; then
4977   ac_cv_prog_CC="$CC" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984   for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991 done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 CC=$ac_cv_prog_CC
4997 if test -n "$CC"; then
4998   { echo "$as_me:$LINENO: result: $CC" >&5
4999 echo "${ECHO_T}$CC" >&6; }
5000 else
5001   { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5003 fi
5004
5005
5006     test -n "$CC" && break
5007   done
5008 fi
5009 if test -z "$CC"; then
5010   ac_ct_CC=$CC
5011   for ac_prog in gcc
5012 do
5013   # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020   if test -n "$ac_ct_CC"; then
5021   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028   for ac_exec_ext in '' $ac_executable_extensions; do
5029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030     ac_cv_prog_ac_ct_CC="$ac_prog"
5031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041 if test -n "$ac_ct_CC"; then
5042   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043 echo "${ECHO_T}$ac_ct_CC" >&6; }
5044 else
5045   { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5047 fi
5048
5049
5050   test -n "$ac_ct_CC" && break
5051 done
5052
5053   if test "x$ac_ct_CC" = x; then
5054     CC=""
5055   else
5056     case $cross_compiling:$ac_tool_warned in
5057 yes:)
5058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5059 whose name does not start with the host triplet.  If you think this
5060 configuration is useful to you, please write to autoconf@gnu.org." >&5
5061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5062 whose name does not start with the host triplet.  If you think this
5063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5064 ac_tool_warned=yes ;;
5065 esac
5066     CC=$ac_ct_CC
5067   fi
5068 fi
5069
5070
5071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5072 See \`config.log' for more details." >&5
5073 echo "$as_me: error: no acceptable C compiler found in \$PATH
5074 See \`config.log' for more details." >&2;}
5075    { (exit 1); exit 1; }; }
5076
5077 # Provide some information about the compiler.
5078 echo "$as_me:$LINENO: checking for C compiler version" >&5
5079 ac_compiler=`set X $ac_compile; echo $2`
5080 { (ac_try="$ac_compiler --version >&5"
5081 case "(($ac_try" in
5082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083   *) ac_try_echo=$ac_try;;
5084 esac
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086   (eval "$ac_compiler --version >&5") 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); }
5090 { (ac_try="$ac_compiler -v >&5"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_compiler -v >&5") 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }
5100 { (ac_try="$ac_compiler -V >&5"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_compiler -V >&5") 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }
5110
5111 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122
5123 int
5124 main ()
5125 {
5126 #ifndef __GNUC__
5127        choke me
5128 #endif
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext
5135 if { (ac_try="$ac_compile"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_compile") 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && {
5148          test -z "$ac_c_werror_flag" ||
5149          test ! -s conftest.err
5150        } && test -s conftest.$ac_objext; then
5151   ac_compiler_gnu=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156         ac_compiler_gnu=no
5157 fi
5158
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5161
5162 fi
5163 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5164 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5165 GCC=`test $ac_compiler_gnu = yes && echo yes`
5166 ac_test_CFLAGS=${CFLAGS+set}
5167 ac_save_CFLAGS=$CFLAGS
5168 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5170 if test "${ac_cv_prog_cc_g+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   ac_save_c_werror_flag=$ac_c_werror_flag
5174    ac_c_werror_flag=yes
5175    ac_cv_prog_cc_g=no
5176    CFLAGS="-g"
5177    cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h.  */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h.  */
5183
5184 int
5185 main ()
5186 {
5187
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5194 case "(($ac_try" in
5195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196   *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199   (eval "$ac_compile") 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } && {
5206          test -z "$ac_c_werror_flag" ||
5207          test ! -s conftest.err
5208        } && test -s conftest.$ac_objext; then
5209   ac_cv_prog_cc_g=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214         CFLAGS=""
5215       cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221
5222 int
5223 main ()
5224 {
5225
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext
5231 if { (ac_try="$ac_compile"
5232 case "(($ac_try" in
5233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234   *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237   (eval "$ac_compile") 2>conftest.er1
5238   ac_status=$?
5239   grep -v '^ *+' conftest.er1 >conftest.err
5240   rm -f conftest.er1
5241   cat conftest.err >&5
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } && {
5244          test -z "$ac_c_werror_flag" ||
5245          test ! -s conftest.err
5246        } && test -s conftest.$ac_objext; then
5247   :
5248 else
5249   echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252         ac_c_werror_flag=$ac_save_c_werror_flag
5253          CFLAGS="-g"
5254          cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h.  */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h.  */
5260
5261 int
5262 main ()
5263 {
5264
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (ac_try="$ac_compile"
5271 case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_compile") 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } && {
5283          test -z "$ac_c_werror_flag" ||
5284          test ! -s conftest.err
5285        } && test -s conftest.$ac_objext; then
5286   ac_cv_prog_cc_g=yes
5287 else
5288   echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291
5292 fi
5293
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 fi
5296
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 fi
5299
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301    ac_c_werror_flag=$ac_save_c_werror_flag
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5305 if test "$ac_test_CFLAGS" = set; then
5306   CFLAGS=$ac_save_CFLAGS
5307 elif test $ac_cv_prog_cc_g = yes; then
5308   if test "$GCC" = yes; then
5309     CFLAGS="-g -O2"
5310   else
5311     CFLAGS="-g"
5312   fi
5313 else
5314   if test "$GCC" = yes; then
5315     CFLAGS="-O2"
5316   else
5317     CFLAGS=
5318   fi
5319 fi
5320 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5321 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5322 if test "${ac_cv_prog_cc_c89+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   ac_cv_prog_cc_c89=no
5326 ac_save_CC=$CC
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 #include <stdarg.h>
5334 #include <stdio.h>
5335 #include <sys/types.h>
5336 #include <sys/stat.h>
5337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5338 struct buf { int x; };
5339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340 static char *e (p, i)
5341      char **p;
5342      int i;
5343 {
5344   return p[i];
5345 }
5346 static char *f (char * (*g) (char **, int), char **p, ...)
5347 {
5348   char *s;
5349   va_list v;
5350   va_start (v,p);
5351   s = g (p, va_arg (v,int));
5352   va_end (v);
5353   return s;
5354 }
5355
5356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5357    function prototypes and stuff, but not '\xHH' hex character constants.
5358    These don't provoke an error unfortunately, instead are silently treated
5359    as 'x'.  The following induces an error, until -std is added to get
5360    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5361    array size at least.  It's necessary to write '\x00'==0 to get something
5362    that's true only with -std.  */
5363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366    inside strings and character constants.  */
5367 #define FOO(x) 'x'
5368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370 int test (int i, double x);
5371 struct s1 {int (*f) (int a);};
5372 struct s2 {int (*f) (double a);};
5373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374 int argc;
5375 char **argv;
5376 int
5377 main ()
5378 {
5379 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386 do
5387   CC="$ac_save_CC $ac_arg"
5388   rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compile") 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } && {
5402          test -z "$ac_c_werror_flag" ||
5403          test ! -s conftest.err
5404        } && test -s conftest.$ac_objext; then
5405   ac_cv_prog_cc_c89=$ac_arg
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410
5411 fi
5412
5413 rm -f core conftest.err conftest.$ac_objext
5414   test "x$ac_cv_prog_cc_c89" != "xno" && break
5415 done
5416 rm -f conftest.$ac_ext
5417 CC=$ac_save_CC
5418
5419 fi
5420 # AC_CACHE_VAL
5421 case "x$ac_cv_prog_cc_c89" in
5422   x)
5423     { echo "$as_me:$LINENO: result: none needed" >&5
5424 echo "${ECHO_T}none needed" >&6; } ;;
5425   xno)
5426     { echo "$as_me:$LINENO: result: unsupported" >&5
5427 echo "${ECHO_T}unsupported" >&6; } ;;
5428   *)
5429     CC="$CC $ac_cv_prog_cc_c89"
5430     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5431 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5432 esac
5433
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 ac_ext=cpp
5442 ac_cpp='$CXXCPP $CPPFLAGS'
5443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446 if test -z "$CXX"; then
5447   if test -n "$CCC"; then
5448     CXX=$CCC
5449   else
5450     if test -n "$ac_tool_prefix"; then
5451   for ac_prog in g++
5452   do
5453     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5457 if test "${ac_cv_prog_CXX+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   if test -n "$CXX"; then
5461   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468   for ac_exec_ext in '' $ac_executable_extensions; do
5469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 CXX=$ac_cv_prog_CXX
5481 if test -n "$CXX"; then
5482   { echo "$as_me:$LINENO: result: $CXX" >&5
5483 echo "${ECHO_T}$CXX" >&6; }
5484 else
5485   { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5487 fi
5488
5489
5490     test -n "$CXX" && break
5491   done
5492 fi
5493 if test -z "$CXX"; then
5494   ac_ct_CXX=$CXX
5495   for ac_prog in g++
5496 do
5497   # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if test -n "$ac_ct_CXX"; then
5505   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512   for ac_exec_ext in '' $ac_executable_extensions; do
5513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514     ac_cv_prog_ac_ct_CXX="$ac_prog"
5515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5525 if test -n "$ac_ct_CXX"; then
5526   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5527 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5528 else
5529   { echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6; }
5531 fi
5532
5533
5534   test -n "$ac_ct_CXX" && break
5535 done
5536
5537   if test "x$ac_ct_CXX" = x; then
5538     CXX="g++"
5539   else
5540     case $cross_compiling:$ac_tool_warned in
5541 yes:)
5542 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5543 whose name does not start with the host triplet.  If you think this
5544 configuration is useful to you, please write to autoconf@gnu.org." >&5
5545 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5546 whose name does not start with the host triplet.  If you think this
5547 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5548 ac_tool_warned=yes ;;
5549 esac
5550     CXX=$ac_ct_CXX
5551   fi
5552 fi
5553
5554   fi
5555 fi
5556 # Provide some information about the compiler.
5557 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5558 ac_compiler=`set X $ac_compile; echo $2`
5559 { (ac_try="$ac_compiler --version >&5"
5560 case "(($ac_try" in
5561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562   *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565   (eval "$ac_compiler --version >&5") 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); }
5569 { (ac_try="$ac_compiler -v >&5"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compiler -v >&5") 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }
5579 { (ac_try="$ac_compiler -V >&5"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_compiler -V >&5") 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }
5589
5590 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5591 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5592 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601
5602 int
5603 main ()
5604 {
5605 #ifndef __GNUC__
5606        choke me
5607 #endif
5608
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617   *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620   (eval "$ac_compile") 2>conftest.er1
5621   ac_status=$?
5622   grep -v '^ *+' conftest.er1 >conftest.err
5623   rm -f conftest.er1
5624   cat conftest.err >&5
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } && {
5627          test -z "$ac_cxx_werror_flag" ||
5628          test ! -s conftest.err
5629        } && test -s conftest.$ac_objext; then
5630   ac_compiler_gnu=yes
5631 else
5632   echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635         ac_compiler_gnu=no
5636 fi
5637
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5640
5641 fi
5642 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5643 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5644 GXX=`test $ac_compiler_gnu = yes && echo yes`
5645 ac_test_CXXFLAGS=${CXXFLAGS+set}
5646 ac_save_CXXFLAGS=$CXXFLAGS
5647 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5648 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5649 if test "${ac_cv_prog_cxx_g+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5653    ac_cxx_werror_flag=yes
5654    ac_cv_prog_cxx_g=no
5655    CXXFLAGS="-g"
5656    cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662
5663 int
5664 main ()
5665 {
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678   (eval "$ac_compile") 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } && {
5685          test -z "$ac_cxx_werror_flag" ||
5686          test ! -s conftest.err
5687        } && test -s conftest.$ac_objext; then
5688   ac_cv_prog_cxx_g=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693         CXXFLAGS=""
5694       cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700
5701 int
5702 main ()
5703 {
5704
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713   *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716   (eval "$ac_compile") 2>conftest.er1
5717   ac_status=$?
5718   grep -v '^ *+' conftest.er1 >conftest.err
5719   rm -f conftest.er1
5720   cat conftest.err >&5
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } && {
5723          test -z "$ac_cxx_werror_flag" ||
5724          test ! -s conftest.err
5725        } && test -s conftest.$ac_objext; then
5726   :
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732          CXXFLAGS="-g"
5733          cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739
5740 int
5741 main ()
5742 {
5743
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } && {
5762          test -z "$ac_cxx_werror_flag" ||
5763          test ! -s conftest.err
5764        } && test -s conftest.$ac_objext; then
5765   ac_cv_prog_cxx_g=yes
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771 fi
5772
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5781 fi
5782 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5783 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5784 if test "$ac_test_CXXFLAGS" = set; then
5785   CXXFLAGS=$ac_save_CXXFLAGS
5786 elif test $ac_cv_prog_cxx_g = yes; then
5787   if test "$GXX" = yes; then
5788     CXXFLAGS="-g -O2"
5789   else
5790     CXXFLAGS="-g"
5791   fi
5792 else
5793   if test "$GXX" = yes; then
5794     CXXFLAGS="-O2"
5795   else
5796     CXXFLAGS=
5797   fi
5798 fi
5799 ac_ext=c
5800 ac_cpp='$CPP $CPPFLAGS'
5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804
5805 { echo "$as_me:$LINENO: checking " >&5
5806 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5807 if test "${ac_cv_has_flex+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   for ac_prog in flex lex
5811 do
5812   # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816 if test "${ac_cv_prog_LEX+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if test -n "$LEX"; then
5820   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829     ac_cv_prog_LEX="$ac_prog"
5830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 LEX=$ac_cv_prog_LEX
5840 if test -n "$LEX"; then
5841   { echo "$as_me:$LINENO: result: $LEX" >&5
5842 echo "${ECHO_T}$LEX" >&6; }
5843 else
5844   { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5846 fi
5847
5848
5849   test -n "$LEX" && break
5850 done
5851 test -n "$LEX" || LEX=":"
5852
5853 if test "x$LEX" != "x:"; then
5854   cat >conftest.l <<_ACEOF
5855 %%
5856 a { ECHO; }
5857 b { REJECT; }
5858 c { yymore (); }
5859 d { yyless (1); }
5860 e { yyless (input () != 0); }
5861 f { unput (yytext[0]); }
5862 . { BEGIN INITIAL; }
5863 %%
5864 #ifdef YYTEXT_POINTER
5865 extern char *yytext;
5866 #endif
5867 int
5868 main (void)
5869 {
5870   return ! yylex () + ! yywrap ();
5871 }
5872 _ACEOF
5873 { (ac_try="$LEX conftest.l"
5874 case "(($ac_try" in
5875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876   *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879   (eval "$LEX conftest.l") 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }
5883 { echo "$as_me:$LINENO: checking lex output file root" >&5
5884 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_lex_root+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888
5889 if test -f lex.yy.c; then
5890   ac_cv_prog_lex_root=lex.yy
5891 elif test -f lexyy.c; then
5892   ac_cv_prog_lex_root=lexyy
5893 else
5894   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5895 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5896    { (exit 1); exit 1; }; }
5897 fi
5898 fi
5899 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5900 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5901 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5902
5903 if test -z "${LEXLIB+set}"; then
5904   { echo "$as_me:$LINENO: checking lex library" >&5
5905 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5906 if test "${ac_cv_lib_lex+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909
5910     ac_save_LIBS=$LIBS
5911     ac_cv_lib_lex='none needed'
5912     for ac_lib in '' -lfl -ll; do
5913       LIBS="$ac_lib $ac_save_LIBS"
5914       cat >conftest.$ac_ext <<_ACEOF
5915 `cat $LEX_OUTPUT_ROOT.c`
5916 _ACEOF
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (ac_try="$ac_link"
5919 case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924   (eval "$ac_link") 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } && {
5931          test -z "$ac_c_werror_flag" ||
5932          test ! -s conftest.err
5933        } && test -s conftest$ac_exeext &&
5934        $as_test_x conftest$ac_exeext; then
5935   ac_cv_lib_lex=$ac_lib
5936 else
5937   echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940
5941 fi
5942
5943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5944       conftest$ac_exeext conftest.$ac_ext
5945       test "$ac_cv_lib_lex" != 'none needed' && break
5946     done
5947     LIBS=$ac_save_LIBS
5948
5949 fi
5950 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5951 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5952   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5953 fi
5954
5955
5956 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5957 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   # POSIX says lex can declare yytext either as a pointer or an array; the
5962 # default is implementation-dependent.  Figure out which it is, since
5963 # not all implementations provide the %pointer and %array declarations.
5964 ac_cv_prog_lex_yytext_pointer=no
5965 ac_save_LIBS=$LIBS
5966 LIBS="$LEXLIB $ac_save_LIBS"
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #define YYTEXT_POINTER 1
5969 `cat $LEX_OUTPUT_ROOT.c`
5970 _ACEOF
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (ac_try="$ac_link"
5973 case "(($ac_try" in
5974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975   *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978   (eval "$ac_link") 2>conftest.er1
5979   ac_status=$?
5980   grep -v '^ *+' conftest.er1 >conftest.err
5981   rm -f conftest.er1
5982   cat conftest.err >&5
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } && {
5985          test -z "$ac_c_werror_flag" ||
5986          test ! -s conftest.err
5987        } && test -s conftest$ac_exeext &&
5988        $as_test_x conftest$ac_exeext; then
5989   ac_cv_prog_lex_yytext_pointer=yes
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994
5995 fi
5996
5997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5998       conftest$ac_exeext conftest.$ac_ext
5999 LIBS=$ac_save_LIBS
6000
6001 fi
6002 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6003 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6004 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6005
6006 cat >>confdefs.h <<\_ACEOF
6007 #define YYTEXT_POINTER 1
6008 _ACEOF
6009
6010 fi
6011 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6012
6013 fi
6014
6015 fi
6016 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6017 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6018 if test "$LEX" != "flex"; then
6019   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6020 echo "$as_me: error: flex not found but required" >&2;}
6021    { (exit 1); exit 1; }; }
6022 else
6023   FLEX=flex
6024
6025 fi
6026
6027 { echo "$as_me:$LINENO: checking " >&5
6028 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6029 if test "${llvm_cv_has_bison+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   for ac_prog in 'bison -y' byacc
6033 do
6034   # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_YACC+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   if test -n "$YACC"; then
6042   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049   for ac_exec_ext in '' $ac_executable_extensions; do
6050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051     ac_cv_prog_YACC="$ac_prog"
6052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 YACC=$ac_cv_prog_YACC
6062 if test -n "$YACC"; then
6063   { echo "$as_me:$LINENO: result: $YACC" >&5
6064 echo "${ECHO_T}$YACC" >&6; }
6065 else
6066   { echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6; }
6068 fi
6069
6070
6071   test -n "$YACC" && break
6072 done
6073 test -n "$YACC" || YACC="yacc"
6074
6075 fi
6076 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6077 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6078 if test "$YACC" != "bison -y"; then
6079
6080   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6081 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6082 else
6083   BISON=bison
6084
6085 fi
6086
6087 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6088 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6089 if test "${lt_cv_path_NM+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   if test -n "$NM"; then
6093   # Let the user override the test.
6094   lt_cv_path_NM="$NM"
6095 else
6096   lt_nm_to_check="${ac_tool_prefix}nm"
6097   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6098     lt_nm_to_check="$lt_nm_to_check nm"
6099   fi
6100   for lt_tmp_nm in $lt_nm_to_check; do
6101     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6102     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6103       IFS="$lt_save_ifs"
6104       test -z "$ac_dir" && ac_dir=.
6105       tmp_nm="$ac_dir/$lt_tmp_nm"
6106       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6107         # Check to see if the nm accepts a BSD-compat flag.
6108         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6109         #   nm: unknown option "B" ignored
6110         # Tru64's nm complains that /dev/null is an invalid object file
6111         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6112         */dev/null* | *'Invalid file or object type'*)
6113           lt_cv_path_NM="$tmp_nm -B"
6114           break
6115           ;;
6116         *)
6117           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6118           */dev/null*)
6119             lt_cv_path_NM="$tmp_nm -p"
6120             break
6121             ;;
6122           *)
6123             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6124             continue # so that we can try to find one that supports BSD flags
6125             ;;
6126           esac
6127           ;;
6128         esac
6129       fi
6130     done
6131     IFS="$lt_save_ifs"
6132   done
6133   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6134 fi
6135 fi
6136 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6137 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6138 NM="$lt_cv_path_NM"
6139
6140
6141
6142 { echo "$as_me:$LINENO: checking for GNU make" >&5
6143 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6144 if test "${llvm_cv_gnu_make_command+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   llvm_cv_gnu_make_command=''
6148  for a in "$MAKE" make gmake gnumake ; do
6149   if test -z "$a" ; then continue ; fi ;
6150   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6151   then
6152    llvm_cv_gnu_make_command=$a ;
6153    break;
6154   fi
6155  done
6156 fi
6157 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6158 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6159  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6160    ifGNUmake='' ;
6161  else
6162    ifGNUmake='#' ;
6163    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6164 echo "${ECHO_T}\"Not found\"" >&6; };
6165  fi
6166
6167
6168 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6170 LN_S=$as_ln_s
6171 if test "$LN_S" = "ln -s"; then
6172   { echo "$as_me:$LINENO: result: yes" >&5
6173 echo "${ECHO_T}yes" >&6; }
6174 else
6175   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6176 echo "${ECHO_T}no, using $LN_S" >&6; }
6177 fi
6178
6179 # Extract the first word of "cmp", so it can be a program name with args.
6180 set dummy cmp; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_path_CMP+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   case $CMP in
6187   [\\/]* | ?:[\\/]*)
6188   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6189   ;;
6190   *)
6191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196   for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6207   ;;
6208 esac
6209 fi
6210 CMP=$ac_cv_path_CMP
6211 if test -n "$CMP"; then
6212   { echo "$as_me:$LINENO: result: $CMP" >&5
6213 echo "${ECHO_T}$CMP" >&6; }
6214 else
6215   { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6217 fi
6218
6219
6220 # Extract the first word of "cp", so it can be a program name with args.
6221 set dummy cp; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_CP+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   case $CP in
6228   [\\/]* | ?:[\\/]*)
6229   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6230   ;;
6231   *)
6232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6248   ;;
6249 esac
6250 fi
6251 CP=$ac_cv_path_CP
6252 if test -n "$CP"; then
6253   { echo "$as_me:$LINENO: result: $CP" >&5
6254 echo "${ECHO_T}$CP" >&6; }
6255 else
6256   { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6258 fi
6259
6260
6261 # Extract the first word of "date", so it can be a program name with args.
6262 set dummy date; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_DATE+set}" = set; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268   case $DATE in
6269   [\\/]* | ?:[\\/]*)
6270   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6271   ;;
6272   *)
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6289   ;;
6290 esac
6291 fi
6292 DATE=$ac_cv_path_DATE
6293 if test -n "$DATE"; then
6294   { echo "$as_me:$LINENO: result: $DATE" >&5
6295 echo "${ECHO_T}$DATE" >&6; }
6296 else
6297   { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6299 fi
6300
6301
6302 # Extract the first word of "find", so it can be a program name with args.
6303 set dummy find; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_FIND+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   case $FIND in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6330   ;;
6331 esac
6332 fi
6333 FIND=$ac_cv_path_FIND
6334 if test -n "$FIND"; then
6335   { echo "$as_me:$LINENO: result: $FIND" >&5
6336 echo "${ECHO_T}$FIND" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6340 fi
6341
6342
6343 # Extract the first word of "grep", so it can be a program name with args.
6344 set dummy grep; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_path_GREP+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   case $GREP in
6351   [\\/]* | ?:[\\/]*)
6352   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6353   ;;
6354   *)
6355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360   for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6371   ;;
6372 esac
6373 fi
6374 GREP=$ac_cv_path_GREP
6375 if test -n "$GREP"; then
6376   { echo "$as_me:$LINENO: result: $GREP" >&5
6377 echo "${ECHO_T}$GREP" >&6; }
6378 else
6379   { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6381 fi
6382
6383
6384 # Extract the first word of "mkdir", so it can be a program name with args.
6385 set dummy mkdir; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_path_MKDIR+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   case $MKDIR in
6392   [\\/]* | ?:[\\/]*)
6393   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6394   ;;
6395   *)
6396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401   for ac_exec_ext in '' $ac_executable_extensions; do
6402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6412   ;;
6413 esac
6414 fi
6415 MKDIR=$ac_cv_path_MKDIR
6416 if test -n "$MKDIR"; then
6417   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6418 echo "${ECHO_T}$MKDIR" >&6; }
6419 else
6420   { echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6; }
6422 fi
6423
6424
6425 # Extract the first word of "mv", so it can be a program name with args.
6426 set dummy mv; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_path_MV+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   case $MV in
6433   [\\/]* | ?:[\\/]*)
6434   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6435   ;;
6436   *)
6437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442   for ac_exec_ext in '' $ac_executable_extensions; do
6443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449 done
6450 IFS=$as_save_IFS
6451
6452   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6453   ;;
6454 esac
6455 fi
6456 MV=$ac_cv_path_MV
6457 if test -n "$MV"; then
6458   { echo "$as_me:$LINENO: result: $MV" >&5
6459 echo "${ECHO_T}$MV" >&6; }
6460 else
6461   { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6463 fi
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_prog_RANLIB+set}" = set; then
6472   echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474   if test -n "$RANLIB"; then
6475   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482   for ac_exec_ext in '' $ac_executable_extensions; do
6483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6497 echo "${ECHO_T}$RANLIB" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6501 fi
6502
6503
6504 fi
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506   ac_ct_RANLIB=$RANLIB
6507   # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   if test -n "$ac_ct_RANLIB"; then
6515   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522   for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_prog_ac_ct_RANLIB="ranlib"
6525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6537 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6538 else
6539   { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6541 fi
6542
6543   if test "x$ac_ct_RANLIB" = x; then
6544     RANLIB=":"
6545   else
6546     case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6549 whose name does not start with the host triplet.  If you think this
6550 configuration is useful to you, please write to autoconf@gnu.org." >&5
6551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6552 whose name does not start with the host triplet.  If you think this
6553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556     RANLIB=$ac_ct_RANLIB
6557   fi
6558 else
6559   RANLIB="$ac_cv_prog_RANLIB"
6560 fi
6561
6562 # Extract the first word of "rm", so it can be a program name with args.
6563 set dummy rm; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_RM+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   case $RM in
6570   [\\/]* | ?:[\\/]*)
6571   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6572   ;;
6573   *)
6574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6590   ;;
6591 esac
6592 fi
6593 RM=$ac_cv_path_RM
6594 if test -n "$RM"; then
6595   { echo "$as_me:$LINENO: result: $RM" >&5
6596 echo "${ECHO_T}$RM" >&6; }
6597 else
6598   { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6600 fi
6601
6602
6603 # Extract the first word of "sed", so it can be a program name with args.
6604 set dummy sed; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_SED+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   case $SED in
6611   [\\/]* | ?:[\\/]*)
6612   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6613   ;;
6614   *)
6615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620   for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6631   ;;
6632 esac
6633 fi
6634 SED=$ac_cv_path_SED
6635 if test -n "$SED"; then
6636   { echo "$as_me:$LINENO: result: $SED" >&5
6637 echo "${ECHO_T}$SED" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644 # Extract the first word of "tar", so it can be a program name with args.
6645 set dummy tar; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_TAR+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   case $TAR in
6652   [\\/]* | ?:[\\/]*)
6653   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6654   ;;
6655   *)
6656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661   for ac_exec_ext in '' $ac_executable_extensions; do
6662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6672   ;;
6673 esac
6674 fi
6675 TAR=$ac_cv_path_TAR
6676 if test -n "$TAR"; then
6677   { echo "$as_me:$LINENO: result: $TAR" >&5
6678 echo "${ECHO_T}$TAR" >&6; }
6679 else
6680   { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6682 fi
6683
6684
6685 # Extract the first word of "pwd", so it can be a program name with args.
6686 set dummy pwd; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_BINPWD+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   case $BINPWD in
6693   [\\/]* | ?:[\\/]*)
6694   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6695   ;;
6696   *)
6697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702   for ac_exec_ext in '' $ac_executable_extensions; do
6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6713   ;;
6714 esac
6715 fi
6716 BINPWD=$ac_cv_path_BINPWD
6717 if test -n "$BINPWD"; then
6718   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6719 echo "${ECHO_T}$BINPWD" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726
6727 # Extract the first word of "Graphviz", so it can be a program name with args.
6728 set dummy Graphviz; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $GRAPHVIZ in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6755   ;;
6756 esac
6757 fi
6758 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6759 if test -n "$GRAPHVIZ"; then
6760   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6761 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767
6768 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6769
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_GRAPHVIZ 1
6772 _ACEOF
6773
6774     if test "$llvm_cv_os_type" = "MingW" ; then
6775     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776   fi
6777
6778 cat >>confdefs.h <<_ACEOF
6779 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6780 _ACEOF
6781
6782 fi
6783 # Extract the first word of "dot", so it can be a program name with args.
6784 set dummy dot; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_DOT+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   case $DOT in
6791   [\\/]* | ?:[\\/]*)
6792   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6793   ;;
6794   *)
6795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6811   ;;
6812 esac
6813 fi
6814 DOT=$ac_cv_path_DOT
6815 if test -n "$DOT"; then
6816   { echo "$as_me:$LINENO: result: $DOT" >&5
6817 echo "${ECHO_T}$DOT" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823
6824 if test "$DOT" != "echo dot" ; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_DOT 1
6828 _ACEOF
6829
6830     if test "$llvm_cv_os_type" = "MingW" ; then
6831     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832   fi
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6836 _ACEOF
6837
6838 fi
6839 for ac_prog in gv gsview32
6840 do
6841   # Extract the first word of "$ac_prog", so it can be a program name with args.
6842 set dummy $ac_prog; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_GV+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $GV in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868   ;;
6869 esac
6870 fi
6871 GV=$ac_cv_path_GV
6872 if test -n "$GV"; then
6873   { echo "$as_me:$LINENO: result: $GV" >&5
6874 echo "${ECHO_T}$GV" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880
6881   test -n "$GV" && break
6882 done
6883 test -n "$GV" || GV="echo gv"
6884
6885 if test "$GV" != "echo gv" ; then
6886
6887 cat >>confdefs.h <<\_ACEOF
6888 #define HAVE_GV 1
6889 _ACEOF
6890
6891     if test "$llvm_cv_os_type" = "MingW" ; then
6892     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893   fi
6894
6895 cat >>confdefs.h <<_ACEOF
6896 #define LLVM_PATH_GV "$GV${EXEEXT}"
6897 _ACEOF
6898
6899 fi
6900 # Extract the first word of "dotty", so it can be a program name with args.
6901 set dummy dotty; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_DOTTY+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   case $DOTTY in
6908   [\\/]* | ?:[\\/]*)
6909   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6910   ;;
6911   *)
6912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928   ;;
6929 esac
6930 fi
6931 DOTTY=$ac_cv_path_DOTTY
6932 if test -n "$DOTTY"; then
6933   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934 echo "${ECHO_T}$DOTTY" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940
6941 if test "$DOTTY" != "echo dotty" ; then
6942
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_DOTTY 1
6945 _ACEOF
6946
6947     if test "$llvm_cv_os_type" = "MingW" ; then
6948     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949   fi
6950
6951 cat >>confdefs.h <<_ACEOF
6952 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953 _ACEOF
6954
6955 fi
6956
6957
6958 # Extract the first word of "perl", so it can be a program name with args.
6959 set dummy perl; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_PERL+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   case $PERL in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6986   ;;
6987 esac
6988 fi
6989 PERL=$ac_cv_path_PERL
6990 if test -n "$PERL"; then
6991   { echo "$as_me:$LINENO: result: $PERL" >&5
6992 echo "${ECHO_T}$PERL" >&6; }
6993 else
6994   { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6996 fi
6997
6998
6999 if test "$PERL" != "none"; then
7000   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7001 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7002   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7003     { echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6; }
7005   else
7006     PERL=none
7007     { echo "$as_me:$LINENO: result: not found" >&5
7008 echo "${ECHO_T}not found" >&6; }
7009   fi
7010 fi
7011
7012
7013 if test x"$PERL" = xnone; then
7014    HAVE_PERL=0
7015
7016    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7017 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7018    { (exit 1); exit 1; }; }
7019 else
7020    HAVE_PERL=1
7021
7022 fi
7023
7024 # Find a good install program.  We prefer a C program (faster),
7025 # so one script is as good as another.  But avoid the broken or
7026 # incompatible versions:
7027 # SysV /etc/install, /usr/sbin/install
7028 # SunOS /usr/etc/install
7029 # IRIX /sbin/install
7030 # AIX /bin/install
7031 # AmigaOS /C/install, which installs bootblocks on floppy discs
7032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7035 # OS/2's system install, which has a completely different semantic
7036 # ./install, which can be erroneously created by make from ./install.sh.
7037 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7038 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7039 if test -z "$INSTALL"; then
7040 if test "${ac_cv_path_install+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   # Account for people who put trailing slashes in PATH elements.
7049 case $as_dir/ in
7050   ./ | .// | /cC/* | \
7051   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7052   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7053   /usr/ucb/* ) ;;
7054   *)
7055     # OSF1 and SCO ODT 3.0 have their own names for install.
7056     # Don't use installbsd from OSF since it installs stuff as root
7057     # by default.
7058     for ac_prog in ginstall scoinst install; do
7059       for ac_exec_ext in '' $ac_executable_extensions; do
7060         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7061           if test $ac_prog = install &&
7062             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063             # AIX install.  It has an incompatible calling convention.
7064             :
7065           elif test $ac_prog = install &&
7066             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7067             # program-specific install script used by HP pwplus--don't use.
7068             :
7069           else
7070             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7071             break 3
7072           fi
7073         fi
7074       done
7075     done
7076     ;;
7077 esac
7078 done
7079 IFS=$as_save_IFS
7080
7081
7082 fi
7083   if test "${ac_cv_path_install+set}" = set; then
7084     INSTALL=$ac_cv_path_install
7085   else
7086     # As a last resort, use the slow shell script.  Don't cache a
7087     # value for INSTALL within a source directory, because that will
7088     # break other packages using the cache if that directory is
7089     # removed, or if the value is a relative name.
7090     INSTALL=$ac_install_sh
7091   fi
7092 fi
7093 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7094 echo "${ECHO_T}$INSTALL" >&6; }
7095
7096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7097 # It thinks the first close brace ends the variable substitution.
7098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7099
7100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7101
7102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7103
7104
7105 # Extract the first word of "bzip2", so it can be a program name with args.
7106 set dummy bzip2; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_BZIP2+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $BZIP2 in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7133   ;;
7134 esac
7135 fi
7136 BZIP2=$ac_cv_path_BZIP2
7137 if test -n "$BZIP2"; then
7138   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7139 echo "${ECHO_T}$BZIP2" >&6; }
7140 else
7141   { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7143 fi
7144
7145
7146 # Extract the first word of "doxygen", so it can be a program name with args.
7147 set dummy doxygen; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   case $DOXYGEN in
7154   [\\/]* | ?:[\\/]*)
7155   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7156   ;;
7157   *)
7158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163   for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7174   ;;
7175 esac
7176 fi
7177 DOXYGEN=$ac_cv_path_DOXYGEN
7178 if test -n "$DOXYGEN"; then
7179   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7180 echo "${ECHO_T}$DOXYGEN" >&6; }
7181 else
7182   { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7184 fi
7185
7186
7187 # Extract the first word of "groff", so it can be a program name with args.
7188 set dummy groff; ac_word=$2
7189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191 if test "${ac_cv_path_GROFF+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   case $GROFF in
7195   [\\/]* | ?:[\\/]*)
7196   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7197   ;;
7198   *)
7199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204   for ac_exec_ext in '' $ac_executable_extensions; do
7205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7215   ;;
7216 esac
7217 fi
7218 GROFF=$ac_cv_path_GROFF
7219 if test -n "$GROFF"; then
7220   { echo "$as_me:$LINENO: result: $GROFF" >&5
7221 echo "${ECHO_T}$GROFF" >&6; }
7222 else
7223   { echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6; }
7225 fi
7226
7227
7228 # Extract the first word of "gzip", so it can be a program name with args.
7229 set dummy gzip; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_path_GZIP+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   case $GZIP in
7236   [\\/]* | ?:[\\/]*)
7237   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7238   ;;
7239   *)
7240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245   for ac_exec_ext in '' $ac_executable_extensions; do
7246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7256   ;;
7257 esac
7258 fi
7259 GZIP=$ac_cv_path_GZIP
7260 if test -n "$GZIP"; then
7261   { echo "$as_me:$LINENO: result: $GZIP" >&5
7262 echo "${ECHO_T}$GZIP" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268
7269 # Extract the first word of "pod2html", so it can be a program name with args.
7270 set dummy pod2html; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_POD2HTML+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   case $POD2HTML in
7277   [\\/]* | ?:[\\/]*)
7278   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7279   ;;
7280   *)
7281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286   for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7297   ;;
7298 esac
7299 fi
7300 POD2HTML=$ac_cv_path_POD2HTML
7301 if test -n "$POD2HTML"; then
7302   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7303 echo "${ECHO_T}$POD2HTML" >&6; }
7304 else
7305   { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7307 fi
7308
7309
7310 # Extract the first word of "pod2man", so it can be a program name with args.
7311 set dummy pod2man; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_path_POD2MAN+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   case $POD2MAN in
7318   [\\/]* | ?:[\\/]*)
7319   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7320   ;;
7321   *)
7322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327   for ac_exec_ext in '' $ac_executable_extensions; do
7328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7338   ;;
7339 esac
7340 fi
7341 POD2MAN=$ac_cv_path_POD2MAN
7342 if test -n "$POD2MAN"; then
7343   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7344 echo "${ECHO_T}$POD2MAN" >&6; }
7345 else
7346   { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7348 fi
7349
7350
7351 # Extract the first word of "runtest", so it can be a program name with args.
7352 set dummy runtest; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_RUNTEST+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   case $RUNTEST in
7359   [\\/]* | ?:[\\/]*)
7360   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7361   ;;
7362   *)
7363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368   for ac_exec_ext in '' $ac_executable_extensions; do
7369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7377
7378   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7379   ;;
7380 esac
7381 fi
7382 RUNTEST=$ac_cv_path_RUNTEST
7383 if test -n "$RUNTEST"; then
7384   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7385 echo "${ECHO_T}$RUNTEST" >&6; }
7386 else
7387   { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7389 fi
7390
7391
7392
7393 no_itcl=true
7394 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7395 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7396
7397 # Check whether --with-tclinclude was given.
7398 if test "${with_tclinclude+set}" = set; then
7399   withval=$with_tclinclude; with_tclinclude=${withval}
7400 else
7401   with_tclinclude=''
7402 fi
7403
7404 if test "${ac_cv_path_tclsh+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407
7408 if test x"${with_tclinclude}" != x ; then
7409   if test -f ${with_tclinclude}/tclsh ; then
7410     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7411   elif test -f ${with_tclinclude}/src/tclsh ; then
7412     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7413   else
7414     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7415 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7416    { (exit 1); exit 1; }; }
7417   fi
7418 fi
7419
7420 if test x"${ac_cv_path_tclsh}" = x ; then
7421   { echo "$as_me:$LINENO: result: none" >&5
7422 echo "${ECHO_T}none" >&6; }
7423   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
7424 do
7425   # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429 if test "${ac_cv_path_TCLSH+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   case $TCLSH in
7433   [\\/]* | ?:[\\/]*)
7434   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7435   ;;
7436   *)
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   for ac_exec_ext in '' $ac_executable_extensions; do
7443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452   ;;
7453 esac
7454 fi
7455 TCLSH=$ac_cv_path_TCLSH
7456 if test -n "$TCLSH"; then
7457   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7458 echo "${ECHO_T}$TCLSH" >&6; }
7459 else
7460   { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7462 fi
7463
7464
7465   test -n "$TCLSH" && break
7466 done
7467
7468   if test x"${TCLSH}" = x ; then
7469     ac_cv_path_tclsh='';
7470   else
7471     ac_cv_path_tclsh="${TCLSH}";
7472   fi
7473 else
7474   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7475 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7476   TCLSH="${ac_cv_path_tclsh}"
7477
7478 fi
7479
7480 fi
7481
7482 # Extract the first word of "zip", so it can be a program name with args.
7483 set dummy zip; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_ZIP+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   case $ZIP in
7490   [\\/]* | ?:[\\/]*)
7491   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7492   ;;
7493   *)
7494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499   for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7510   ;;
7511 esac
7512 fi
7513 ZIP=$ac_cv_path_ZIP
7514 if test -n "$ZIP"; then
7515   { echo "$as_me:$LINENO: result: $ZIP" >&5
7516 echo "${ECHO_T}$ZIP" >&6; }
7517 else
7518   { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7520 fi
7521
7522
7523 # Extract the first word of "ocamlc", so it can be a program name with args.
7524 set dummy ocamlc; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_OCAMLC+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   case $OCAMLC in
7531   [\\/]* | ?:[\\/]*)
7532   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7533   ;;
7534   *)
7535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540   for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7551   ;;
7552 esac
7553 fi
7554 OCAMLC=$ac_cv_path_OCAMLC
7555 if test -n "$OCAMLC"; then
7556   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7557 echo "${ECHO_T}$OCAMLC" >&6; }
7558 else
7559   { echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6; }
7561 fi
7562
7563
7564 # Extract the first word of "ocamlopt", so it can be a program name with args.
7565 set dummy ocamlopt; 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_OCAMLOPT+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   case $OCAMLOPT in
7572   [\\/]* | ?:[\\/]*)
7573   ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$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   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7592   ;;
7593 esac
7594 fi
7595 OCAMLOPT=$ac_cv_path_OCAMLOPT
7596 if test -n "$OCAMLOPT"; then
7597   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7598 echo "${ECHO_T}$OCAMLOPT" >&6; }
7599 else
7600   { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7602 fi
7603
7604
7605 # Extract the first word of "ocamldep", so it can be a program name with args.
7606 set dummy ocamldep; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   case $OCAMLDEP in
7613   [\\/]* | ?:[\\/]*)
7614   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7615   ;;
7616   *)
7617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620   IFS=$as_save_IFS
7621   test -z "$as_dir" && as_dir=.
7622   for ac_exec_ext in '' $ac_executable_extensions; do
7623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626     break 2
7627   fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632   test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7633   ;;
7634 esac
7635 fi
7636 OCAMLDEP=$ac_cv_path_OCAMLDEP
7637 if test -n "$OCAMLDEP"; then
7638   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7639 echo "${ECHO_T}$OCAMLDEP" >&6; }
7640 else
7641   { echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6; }
7643 fi
7644
7645
7646
7647 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649 if test "${llvm_cv_link_use_r+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652    ac_ext=c
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658   oldcflags="$CFLAGS"
7659   CFLAGS="$CFLAGS -Wl,-R."
7660   cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666
7667 int
7668 main ()
7669 {
7670 int main() { return 0; }
7671   ;
7672   return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7677 case "(($ac_try" in
7678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679   *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682   (eval "$ac_link") 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } && {
7689          test -z "$ac_c_werror_flag" ||
7690          test ! -s conftest.err
7691        } && test -s conftest$ac_exeext &&
7692        $as_test_x conftest$ac_exeext; then
7693   llvm_cv_link_use_r=yes
7694 else
7695   echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698         llvm_cv_link_use_r=no
7699 fi
7700
7701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7702       conftest$ac_exeext conftest.$ac_ext
7703   CFLAGS="$oldcflags"
7704   ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711 fi
7712 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7713 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7714 if test "$llvm_cv_link_use_r" = yes ; then
7715
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_LINK_R 1
7718 _ACEOF
7719
7720   fi
7721
7722
7723
7724
7725 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7727 if test "${ac_cv_c_const+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h.  */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h.  */
7736
7737 int
7738 main ()
7739 {
7740 /* FIXME: Include the comments suggested by Paul. */
7741 #ifndef __cplusplus
7742   /* Ultrix mips cc rejects this.  */
7743   typedef int charset[2];
7744   const charset cs;
7745   /* SunOS 4.1.1 cc rejects this.  */
7746   char const *const *pcpcc;
7747   char **ppc;
7748   /* NEC SVR4.0.2 mips cc rejects this.  */
7749   struct point {int x, y;};
7750   static struct point const zero = {0,0};
7751   /* AIX XL C 1.02.0.0 rejects this.
7752      It does not let you subtract one const X* pointer from another in
7753      an arm of an if-expression whose if-part is not a constant
7754      expression */
7755   const char *g = "string";
7756   pcpcc = &g + (g ? g-g : 0);
7757   /* HPUX 7.0 cc rejects these. */
7758   ++pcpcc;
7759   ppc = (char**) pcpcc;
7760   pcpcc = (char const *const *) ppc;
7761   { /* SCO 3.2v4 cc rejects this.  */
7762     char *t;
7763     char const *s = 0 ? (char *) 0 : (char const *) 0;
7764
7765     *t++ = 0;
7766     if (s) return 0;
7767   }
7768   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7769     int x[] = {25, 17};
7770     const int *foo = &x[0];
7771     ++foo;
7772   }
7773   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7774     typedef const int *iptr;
7775     iptr p = 0;
7776     ++p;
7777   }
7778   { /* AIX XL C 1.02.0.0 rejects this saying
7779        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7780     struct s { int j; const int *ap[3]; };
7781     struct s *b; b->j = 5;
7782   }
7783   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7784     const int foo = 10;
7785     if (!foo) return 0;
7786   }
7787   return !cs[0] && !zero.x;
7788 #endif
7789
7790   ;
7791   return 0;
7792 }
7793 _ACEOF
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7796 case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_compile") 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } && {
7808          test -z "$ac_c_werror_flag" ||
7809          test ! -s conftest.err
7810        } && test -s conftest.$ac_objext; then
7811   ac_cv_c_const=yes
7812 else
7813   echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816         ac_cv_c_const=no
7817 fi
7818
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7822 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7823 if test $ac_cv_c_const = no; then
7824
7825 cat >>confdefs.h <<\_ACEOF
7826 #define const
7827 _ACEOF
7828
7829 fi
7830
7831
7832
7833
7834
7835
7836 ac_header_dirent=no
7837 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7838   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7839 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7840 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850 #include <sys/types.h>
7851 #include <$ac_hdr>
7852
7853 int
7854 main ()
7855 {
7856 if ((DIR *) 0)
7857 return 0;
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7864 case "(($ac_try" in
7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866   *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869   (eval "$ac_compile") 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } && {
7876          test -z "$ac_c_werror_flag" ||
7877          test ! -s conftest.err
7878        } && test -s conftest.$ac_objext; then
7879   eval "$as_ac_Header=yes"
7880 else
7881   echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7883
7884         eval "$as_ac_Header=no"
7885 fi
7886
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 ac_res=`eval echo '${'$as_ac_Header'}'`
7890                { echo "$as_me:$LINENO: result: $ac_res" >&5
7891 echo "${ECHO_T}$ac_res" >&6; }
7892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7893   cat >>confdefs.h <<_ACEOF
7894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7895 _ACEOF
7896
7897 ac_header_dirent=$ac_hdr; break
7898 fi
7899
7900 done
7901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7902 if test $ac_header_dirent = dirent.h; then
7903   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7905 if test "${ac_cv_search_opendir+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   ac_func_search_save_LIBS=$LIBS
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915
7916 /* Override any GCC internal prototype to avoid an error.
7917    Use char because int might match the return type of a GCC
7918    builtin and then its argument prototype would still apply.  */
7919 #ifdef __cplusplus
7920 extern "C"
7921 #endif
7922 char opendir ();
7923 int
7924 main ()
7925 {
7926 return opendir ();
7927   ;
7928   return 0;
7929 }
7930 _ACEOF
7931 for ac_lib in '' dir; do
7932   if test -z "$ac_lib"; then
7933     ac_res="none required"
7934   else
7935     ac_res=-l$ac_lib
7936     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7937   fi
7938   rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7940 case "(($ac_try" in
7941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942   *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945   (eval "$ac_link") 2>conftest.er1
7946   ac_status=$?
7947   grep -v '^ *+' conftest.er1 >conftest.err
7948   rm -f conftest.er1
7949   cat conftest.err >&5
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } && {
7952          test -z "$ac_c_werror_flag" ||
7953          test ! -s conftest.err
7954        } && test -s conftest$ac_exeext &&
7955        $as_test_x conftest$ac_exeext; then
7956   ac_cv_search_opendir=$ac_res
7957 else
7958   echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7965       conftest$ac_exeext
7966   if test "${ac_cv_search_opendir+set}" = set; then
7967   break
7968 fi
7969 done
7970 if test "${ac_cv_search_opendir+set}" = set; then
7971   :
7972 else
7973   ac_cv_search_opendir=no
7974 fi
7975 rm conftest.$ac_ext
7976 LIBS=$ac_func_search_save_LIBS
7977 fi
7978 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7979 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7980 ac_res=$ac_cv_search_opendir
7981 if test "$ac_res" != no; then
7982   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7983
7984 fi
7985
7986 else
7987   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7988 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7989 if test "${ac_cv_search_opendir+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   ac_func_search_save_LIBS=$LIBS
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000 /* Override any GCC internal prototype to avoid an error.
8001    Use char because int might match the return type of a GCC
8002    builtin and then its argument prototype would still apply.  */
8003 #ifdef __cplusplus
8004 extern "C"
8005 #endif
8006 char opendir ();
8007 int
8008 main ()
8009 {
8010 return opendir ();
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 for ac_lib in '' x; do
8016   if test -z "$ac_lib"; then
8017     ac_res="none required"
8018   else
8019     ac_res=-l$ac_lib
8020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8021   fi
8022   rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (ac_try="$ac_link"
8024 case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029   (eval "$ac_link") 2>conftest.er1
8030   ac_status=$?
8031   grep -v '^ *+' conftest.er1 >conftest.err
8032   rm -f conftest.er1
8033   cat conftest.err >&5
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); } && {
8036          test -z "$ac_c_werror_flag" ||
8037          test ! -s conftest.err
8038        } && test -s conftest$ac_exeext &&
8039        $as_test_x conftest$ac_exeext; then
8040   ac_cv_search_opendir=$ac_res
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045
8046 fi
8047
8048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8049       conftest$ac_exeext
8050   if test "${ac_cv_search_opendir+set}" = set; then
8051   break
8052 fi
8053 done
8054 if test "${ac_cv_search_opendir+set}" = set; then
8055   :
8056 else
8057   ac_cv_search_opendir=no
8058 fi
8059 rm conftest.$ac_ext
8060 LIBS=$ac_func_search_save_LIBS
8061 fi
8062 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8063 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8064 ac_res=$ac_cv_search_opendir
8065 if test "$ac_res" != no; then
8066   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8067
8068 fi
8069
8070 fi
8071
8072
8073 for ac_header in dlfcn.h
8074 do
8075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8077   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 fi
8082 ac_res=`eval echo '${'$as_ac_Header'}'`
8083                { echo "$as_me:$LINENO: result: $ac_res" >&5
8084 echo "${ECHO_T}$ac_res" >&6; }
8085 else
8086   # Is the header compilable?
8087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 $ac_includes_default
8096 #include <$ac_header>
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102   *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105   (eval "$ac_compile") 2>conftest.er1
8106   ac_status=$?
8107   grep -v '^ *+' conftest.er1 >conftest.err
8108   rm -f conftest.er1
8109   cat conftest.err >&5
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); } && {
8112          test -z "$ac_c_werror_flag" ||
8113          test ! -s conftest.err
8114        } && test -s conftest.$ac_objext; then
8115   ac_header_compiler=yes
8116 else
8117   echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120         ac_header_compiler=no
8121 fi
8122
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125 echo "${ECHO_T}$ac_header_compiler" >&6; }
8126
8127 # Is the header present?
8128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <$ac_header>
8137 _ACEOF
8138 if { (ac_try="$ac_cpp conftest.$ac_ext"
8139 case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8145   ac_status=$?
8146   grep -v '^ *+' conftest.er1 >conftest.err
8147   rm -f conftest.er1
8148   cat conftest.err >&5
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } >/dev/null && {
8151          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8152          test ! -s conftest.err
8153        }; then
8154   ac_header_preproc=yes
8155 else
8156   echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159   ac_header_preproc=no
8160 fi
8161
8162 rm -f conftest.err conftest.$ac_ext
8163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8164 echo "${ECHO_T}$ac_header_preproc" >&6; }
8165
8166 # So?  What about this header?
8167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8168   yes:no: )
8169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8173     ac_header_preproc=yes
8174     ;;
8175   no:yes:* )
8176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8188     ( cat <<\_ASBOX
8189 ## ----------------------------------- ##
8190 ## Report this to llvmbugs@cs.uiuc.edu ##
8191 ## ----------------------------------- ##
8192 _ASBOX
8193      ) | sed "s/^/$as_me: WARNING:     /" >&2
8194     ;;
8195 esac
8196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8199   echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201   eval "$as_ac_Header=\$ac_header_preproc"
8202 fi
8203 ac_res=`eval echo '${'$as_ac_Header'}'`
8204                { echo "$as_me:$LINENO: result: $ac_res" >&5
8205 echo "${ECHO_T}$ac_res" >&6; }
8206
8207 fi
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209   cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 _ACEOF
8212
8213 fi
8214
8215 done
8216
8217 # Check whether --enable-ltdl-install was given.
8218 if test "${enable_ltdl_install+set}" = set; then
8219   enableval=$enable_ltdl_install;
8220 fi
8221
8222
8223  if test x"${enable_ltdl_install-no}" != xno; then
8224   INSTALL_LTDL_TRUE=
8225   INSTALL_LTDL_FALSE='#'
8226 else
8227   INSTALL_LTDL_TRUE='#'
8228   INSTALL_LTDL_FALSE=
8229 fi
8230
8231  if test x"${enable_ltdl_convenience-no}" != xno; then
8232   CONVENIENCE_LTDL_TRUE=
8233   CONVENIENCE_LTDL_FALSE='#'
8234 else
8235   CONVENIENCE_LTDL_TRUE='#'
8236   CONVENIENCE_LTDL_FALSE=
8237 fi
8238
8239
8240 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8242 library_names_spec=
8243 libname_spec='lib$name'
8244 soname_spec=
8245 shrext_cmds=".so"
8246 postinstall_cmds=
8247 postuninstall_cmds=
8248 finish_cmds=
8249 finish_eval=
8250 shlibpath_var=
8251 shlibpath_overrides_runpath=unknown
8252 version_type=none
8253 dynamic_linker="$host_os ld.so"
8254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8255 if test "$GCC" = yes; then
8256   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8257   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8258     # if the path contains ";" then we assume it to be the separator
8259     # otherwise default to the standard path separator (i.e. ":") - it is
8260     # assumed that no part of a normal pathname contains ";" but that should
8261     # okay in the real world where ";" in dirpaths is itself problematic.
8262     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8263   else
8264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8265   fi
8266 else
8267   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8268 fi
8269 need_lib_prefix=unknown
8270 hardcode_into_libs=no
8271
8272 # when you set need_version to no, make sure it does not cause -set_version
8273 # flags to be left without arguments
8274 need_version=unknown
8275
8276 case $host_os in
8277 aix3*)
8278   version_type=linux
8279   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8280   shlibpath_var=LIBPATH
8281
8282   # AIX 3 has no versioning support, so we append a major version to the name.
8283   soname_spec='${libname}${release}${shared_ext}$major'
8284   ;;
8285
8286 aix4* | aix5*)
8287   version_type=linux
8288   need_lib_prefix=no
8289   need_version=no
8290   hardcode_into_libs=yes
8291   if test "$host_cpu" = ia64; then
8292     # AIX 5 supports IA64
8293     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8294     shlibpath_var=LD_LIBRARY_PATH
8295   else
8296     # With GCC up to 2.95.x, collect2 would create an import file
8297     # for dependence libraries.  The import file would start with
8298     # the line `#! .'.  This would cause the generated library to
8299     # depend on `.', always an invalid library.  This was fixed in
8300     # development snapshots of GCC prior to 3.0.
8301     case $host_os in
8302       aix4 | aix4.[01] | aix4.[01].*)
8303       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8304            echo ' yes '
8305            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8306         :
8307       else
8308         can_build_shared=no
8309       fi
8310       ;;
8311     esac
8312     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8313     # soname into executable. Probably we can add versioning support to
8314     # collect2, so additional links can be useful in future.
8315     if test "$aix_use_runtimelinking" = yes; then
8316       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8317       # instead of lib<name>.a to let people know that these are not
8318       # typical AIX shared libraries.
8319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320     else
8321       # We preserve .a as extension for shared libraries through AIX4.2
8322       # and later when we are not doing run time linking.
8323       library_names_spec='${libname}${release}.a $libname.a'
8324       soname_spec='${libname}${release}${shared_ext}$major'
8325     fi
8326     shlibpath_var=LIBPATH
8327   fi
8328   ;;
8329
8330 amigaos*)
8331   library_names_spec='$libname.ixlibrary $libname.a'
8332   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8333   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'
8334   ;;
8335
8336 beos*)
8337   library_names_spec='${libname}${shared_ext}'
8338   dynamic_linker="$host_os ld.so"
8339   shlibpath_var=LIBRARY_PATH
8340   ;;
8341
8342 bsdi[45]*)
8343   version_type=linux
8344   need_version=no
8345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346   soname_spec='${libname}${release}${shared_ext}$major'
8347   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8348   shlibpath_var=LD_LIBRARY_PATH
8349   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8350   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8351   # the default ld.so.conf also contains /usr/contrib/lib and
8352   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8353   # libtool to hard-code these into programs
8354   ;;
8355
8356 cygwin* | mingw* | pw32*)
8357   version_type=windows
8358   shrext_cmds=".dll"
8359   need_version=no
8360   need_lib_prefix=no
8361
8362   case $GCC,$host_os in
8363   yes,cygwin* | yes,mingw* | yes,pw32*)
8364     library_names_spec='$libname.dll.a'
8365     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8366     postinstall_cmds='base_file=`basename \${file}`~
8367       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8368       dldir=$destdir/`dirname \$dlpath`~
8369       test -d \$dldir || mkdir -p \$dldir~
8370       $install_prog $dir/$dlname \$dldir/$dlname~
8371       chmod a+x \$dldir/$dlname'
8372     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8373       dlpath=$dir/\$dldll~
8374        $rm \$dlpath'
8375     shlibpath_overrides_runpath=yes
8376
8377     case $host_os in
8378     cygwin*)
8379       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8380       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8381       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8382       ;;
8383     mingw*)
8384       # MinGW DLLs use traditional 'lib' prefix
8385       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8386       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8387       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8388         # It is most probably a Windows format PATH printed by
8389         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8390         # path with ; separators, and with drive letters. We can handle the
8391         # drive letters (cygwin fileutils understands them), so leave them,
8392         # especially as we might pass files found there to a mingw objdump,
8393         # which wouldn't understand a cygwinified path. Ahh.
8394         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8395       else
8396         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8397       fi
8398       ;;
8399     pw32*)
8400       # pw32 DLLs use 'pw' prefix rather than 'lib'
8401       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8402       ;;
8403     esac
8404     ;;
8405
8406   *)
8407     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8408     ;;
8409   esac
8410   dynamic_linker='Win32 ld.exe'
8411   # FIXME: first we should search . and the directory the executable is in
8412   shlibpath_var=PATH
8413   ;;
8414
8415 darwin* | rhapsody*)
8416   dynamic_linker="$host_os dyld"
8417   version_type=darwin
8418   need_lib_prefix=no
8419   need_version=no
8420   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8421   soname_spec='${libname}${release}${major}$shared_ext'
8422   shlibpath_overrides_runpath=yes
8423   shlibpath_var=DYLD_LIBRARY_PATH
8424   shrext_cmds='.dylib'
8425   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8426   if test "$GCC" = yes; then
8427     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"`
8428   else
8429     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8430   fi
8431   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8432   ;;
8433
8434 dgux*)
8435   version_type=linux
8436   need_lib_prefix=no
8437   need_version=no
8438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8439   soname_spec='${libname}${release}${shared_ext}$major'
8440   shlibpath_var=LD_LIBRARY_PATH
8441   ;;
8442
8443 freebsd1*)
8444   dynamic_linker=no
8445   ;;
8446
8447 kfreebsd*-gnu)
8448   version_type=linux
8449   need_lib_prefix=no
8450   need_version=no
8451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8452   soname_spec='${libname}${release}${shared_ext}$major'
8453   shlibpath_var=LD_LIBRARY_PATH
8454   shlibpath_overrides_runpath=no
8455   hardcode_into_libs=yes
8456   dynamic_linker='GNU ld.so'
8457   ;;
8458
8459 freebsd* | dragonfly*)
8460   # DragonFly does not have aout.  When/if they implement a new
8461   # versioning mechanism, adjust this.
8462   if test -x /usr/bin/objformat; then
8463     objformat=`/usr/bin/objformat`
8464   else
8465     case $host_os in
8466     freebsd[123]*) objformat=aout ;;
8467     *) objformat=elf ;;
8468     esac
8469   fi
8470   version_type=freebsd-$objformat
8471   case $version_type in
8472     freebsd-elf*)
8473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8474       need_version=no
8475       need_lib_prefix=no
8476       ;;
8477     freebsd-*)
8478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8479       need_version=yes
8480       ;;
8481   esac
8482   shlibpath_var=LD_LIBRARY_PATH
8483   case $host_os in
8484   freebsd2*)
8485     shlibpath_overrides_runpath=yes
8486     ;;
8487   freebsd3.[01]* | freebsdelf3.[01]*)
8488     shlibpath_overrides_runpath=yes
8489     hardcode_into_libs=yes
8490     ;;
8491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8493     shlibpath_overrides_runpath=no
8494     hardcode_into_libs=yes
8495     ;;
8496   freebsd*) # from 4.6 on
8497     shlibpath_overrides_runpath=yes
8498     hardcode_into_libs=yes
8499     ;;
8500   esac
8501   ;;
8502
8503 gnu*)
8504   version_type=linux
8505   need_lib_prefix=no
8506   need_version=no
8507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8508   soname_spec='${libname}${release}${shared_ext}$major'
8509   shlibpath_var=LD_LIBRARY_PATH
8510   hardcode_into_libs=yes
8511   ;;
8512
8513 hpux9* | hpux10* | hpux11*)
8514   # Give a soname corresponding to the major version so that dld.sl refuses to
8515   # link against other versions.
8516   version_type=sunos
8517   need_lib_prefix=no
8518   need_version=no
8519   case $host_cpu in
8520   ia64*)
8521     shrext_cmds='.so'
8522     hardcode_into_libs=yes
8523     dynamic_linker="$host_os dld.so"
8524     shlibpath_var=LD_LIBRARY_PATH
8525     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527     soname_spec='${libname}${release}${shared_ext}$major'
8528     if test "X$HPUX_IA64_MODE" = X32; then
8529       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8530     else
8531       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8532     fi
8533     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8534     ;;
8535    hppa*64*)
8536      shrext_cmds='.sl'
8537      hardcode_into_libs=yes
8538      dynamic_linker="$host_os dld.sl"
8539      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8540      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542      soname_spec='${libname}${release}${shared_ext}$major'
8543      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8544      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8545      ;;
8546    *)
8547     shrext_cmds='.sl'
8548     dynamic_linker="$host_os dld.sl"
8549     shlibpath_var=SHLIB_PATH
8550     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552     soname_spec='${libname}${release}${shared_ext}$major'
8553     ;;
8554   esac
8555   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8556   postinstall_cmds='chmod 555 $lib'
8557   ;;
8558
8559 interix3*)
8560   version_type=linux
8561   need_lib_prefix=no
8562   need_version=no
8563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8564   soname_spec='${libname}${release}${shared_ext}$major'
8565   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8566   shlibpath_var=LD_LIBRARY_PATH
8567   shlibpath_overrides_runpath=no
8568   hardcode_into_libs=yes
8569   ;;
8570
8571 irix5* | irix6* | nonstopux*)
8572   case $host_os in
8573     nonstopux*) version_type=nonstopux ;;
8574     *)
8575         if test "$lt_cv_prog_gnu_ld" = yes; then
8576                 version_type=linux
8577         else
8578                 version_type=irix
8579         fi ;;
8580   esac
8581   need_lib_prefix=no
8582   need_version=no
8583   soname_spec='${libname}${release}${shared_ext}$major'
8584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8585   case $host_os in
8586   irix5* | nonstopux*)
8587     libsuff= shlibsuff=
8588     ;;
8589   *)
8590     case $LD in # libtool.m4 will add one of these switches to LD
8591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8592       libsuff= shlibsuff= libmagic=32-bit;;
8593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8594       libsuff=32 shlibsuff=N32 libmagic=N32;;
8595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8597     *) libsuff= shlibsuff= libmagic=never-match;;
8598     esac
8599     ;;
8600   esac
8601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8602   shlibpath_overrides_runpath=no
8603   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8604   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8605   hardcode_into_libs=yes
8606   ;;
8607
8608 # No shared lib support for Linux oldld, aout, or coff.
8609 linux*oldld* | linux*aout* | linux*coff*)
8610   dynamic_linker=no
8611   ;;
8612
8613 # This must be Linux ELF.
8614 linux*)
8615   version_type=linux
8616   need_lib_prefix=no
8617   need_version=no
8618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619   soname_spec='${libname}${release}${shared_ext}$major'
8620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8621   shlibpath_var=LD_LIBRARY_PATH
8622   shlibpath_overrides_runpath=no
8623   # This implies no fast_install, which is unacceptable.
8624   # Some rework will be needed to allow for fast_install
8625   # before this can be enabled.
8626   hardcode_into_libs=yes
8627
8628   # Append ld.so.conf contents to the search path
8629   if test -f /etc/ld.so.conf; then
8630     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' ' '`
8631     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8632   fi
8633
8634   # We used to test for /lib/ld.so.1 and disable shared libraries on
8635   # powerpc, because MkLinux only supported shared libraries with the
8636   # GNU dynamic linker.  Since this was broken with cross compilers,
8637   # most powerpc-linux boxes support dynamic linking these days and
8638   # people can always --disable-shared, the test was removed, and we
8639   # assume the GNU/Linux dynamic linker is in use.
8640   dynamic_linker='GNU/Linux ld.so'
8641   ;;
8642
8643 knetbsd*-gnu)
8644   version_type=linux
8645   need_lib_prefix=no
8646   need_version=no
8647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8648   soname_spec='${libname}${release}${shared_ext}$major'
8649   shlibpath_var=LD_LIBRARY_PATH
8650   shlibpath_overrides_runpath=no
8651   hardcode_into_libs=yes
8652   dynamic_linker='GNU ld.so'
8653   ;;
8654
8655 netbsd*)
8656   version_type=sunos
8657   need_lib_prefix=no
8658   need_version=no
8659   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8661     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8662     dynamic_linker='NetBSD (a.out) ld.so'
8663   else
8664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8665     soname_spec='${libname}${release}${shared_ext}$major'
8666     dynamic_linker='NetBSD ld.elf_so'
8667   fi
8668   shlibpath_var=LD_LIBRARY_PATH
8669   shlibpath_overrides_runpath=yes
8670   hardcode_into_libs=yes
8671   ;;
8672
8673 newsos6)
8674   version_type=linux
8675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676   shlibpath_var=LD_LIBRARY_PATH
8677   shlibpath_overrides_runpath=yes
8678   ;;
8679
8680 nto-qnx*)
8681   version_type=linux
8682   need_lib_prefix=no
8683   need_version=no
8684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685   soname_spec='${libname}${release}${shared_ext}$major'
8686   shlibpath_var=LD_LIBRARY_PATH
8687   shlibpath_overrides_runpath=yes
8688   ;;
8689
8690 openbsd*)
8691   version_type=sunos
8692   sys_lib_dlsearch_path_spec="/usr/lib"
8693   need_lib_prefix=no
8694   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8695   case $host_os in
8696     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8697     *)                         need_version=no  ;;
8698   esac
8699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8700   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8701   shlibpath_var=LD_LIBRARY_PATH
8702   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8703     case $host_os in
8704       openbsd2.[89] | openbsd2.[89].*)
8705         shlibpath_overrides_runpath=no
8706         ;;
8707       *)
8708         shlibpath_overrides_runpath=yes
8709         ;;
8710       esac
8711   else
8712     shlibpath_overrides_runpath=yes
8713   fi
8714   ;;
8715
8716 os2*)
8717   libname_spec='$name'
8718   shrext_cmds=".dll"
8719   need_lib_prefix=no
8720   library_names_spec='$libname${shared_ext} $libname.a'
8721   dynamic_linker='OS/2 ld.exe'
8722   shlibpath_var=LIBPATH
8723   ;;
8724
8725 osf3* | osf4* | osf5*)
8726   version_type=osf
8727   need_lib_prefix=no
8728   need_version=no
8729   soname_spec='${libname}${release}${shared_ext}$major'
8730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731   shlibpath_var=LD_LIBRARY_PATH
8732   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8733   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8734   ;;
8735
8736 solaris*)
8737   version_type=linux
8738   need_lib_prefix=no
8739   need_version=no
8740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741   soname_spec='${libname}${release}${shared_ext}$major'
8742   shlibpath_var=LD_LIBRARY_PATH
8743   shlibpath_overrides_runpath=yes
8744   hardcode_into_libs=yes
8745   # ldd complains unless libraries are executable
8746   postinstall_cmds='chmod +x $lib'
8747   ;;
8748
8749 sunos4*)
8750   version_type=sunos
8751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8752   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8753   shlibpath_var=LD_LIBRARY_PATH
8754   shlibpath_overrides_runpath=yes
8755   if test "$with_gnu_ld" = yes; then
8756     need_lib_prefix=no
8757   fi
8758   need_version=yes
8759   ;;
8760
8761 sysv4 | sysv4.3*)
8762   version_type=linux
8763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8764   soname_spec='${libname}${release}${shared_ext}$major'
8765   shlibpath_var=LD_LIBRARY_PATH
8766   case $host_vendor in
8767     sni)
8768       shlibpath_overrides_runpath=no
8769       need_lib_prefix=no
8770       export_dynamic_flag_spec='${wl}-Blargedynsym'
8771       runpath_var=LD_RUN_PATH
8772       ;;
8773     siemens)
8774       need_lib_prefix=no
8775       ;;
8776     motorola)
8777       need_lib_prefix=no
8778       need_version=no
8779       shlibpath_overrides_runpath=no
8780       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8781       ;;
8782   esac
8783   ;;
8784
8785 sysv4*MP*)
8786   if test -d /usr/nec ;then
8787     version_type=linux
8788     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8789     soname_spec='$libname${shared_ext}.$major'
8790     shlibpath_var=LD_LIBRARY_PATH
8791   fi
8792   ;;
8793
8794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8795   version_type=freebsd-elf
8796   need_lib_prefix=no
8797   need_version=no
8798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8799   soname_spec='${libname}${release}${shared_ext}$major'
8800   shlibpath_var=LD_LIBRARY_PATH
8801   hardcode_into_libs=yes
8802   if test "$with_gnu_ld" = yes; then
8803     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8804     shlibpath_overrides_runpath=no
8805   else
8806     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8807     shlibpath_overrides_runpath=yes
8808     case $host_os in
8809       sco3.2v5*)
8810         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8811         ;;
8812     esac
8813   fi
8814   sys_lib_dlsearch_path_spec='/usr/lib'
8815   ;;
8816
8817 uts4*)
8818   version_type=linux
8819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820   soname_spec='${libname}${release}${shared_ext}$major'
8821   shlibpath_var=LD_LIBRARY_PATH
8822   ;;
8823
8824 *)
8825   dynamic_linker=no
8826   ;;
8827 esac
8828 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8829 echo "${ECHO_T}$dynamic_linker" >&6; }
8830 test "$dynamic_linker" = no && can_build_shared=no
8831
8832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8833 if test "$GCC" = yes; then
8834   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8835 fi
8836
8837
8838 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8839 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8840 if test "${libltdl_cv_shlibext+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843
8844 module=yes
8845 eval libltdl_cv_shlibext=$shrext_cmds
8846
8847 fi
8848 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8849 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8850 if test -n "$libltdl_cv_shlibext"; then
8851
8852 cat >>confdefs.h <<_ACEOF
8853 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8854 _ACEOF
8855
8856 fi
8857
8858
8859 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8860 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8861 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8862   echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864   libltdl_cv_shlibpath_var="$shlibpath_var"
8865 fi
8866 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8867 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8868 if test -n "$libltdl_cv_shlibpath_var"; then
8869
8870 cat >>confdefs.h <<_ACEOF
8871 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8872 _ACEOF
8873
8874 fi
8875
8876
8877 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8878 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8879 if test "${libltdl_cv_sys_search_path+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8883 fi
8884 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8885 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8886 if test -n "$libltdl_cv_sys_search_path"; then
8887   sys_search_path=
8888   for dir in $libltdl_cv_sys_search_path; do
8889     if test -z "$sys_search_path"; then
8890       sys_search_path="$dir"
8891     else
8892       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8893     fi
8894   done
8895
8896 cat >>confdefs.h <<_ACEOF
8897 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8898 _ACEOF
8899
8900 fi
8901
8902 { echo "$as_me:$LINENO: checking for objdir" >&5
8903 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8904 if test "${libltdl_cv_objdir+set}" = set; then
8905   echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907   libltdl_cv_objdir="$objdir"
8908   if test -n "$objdir"; then
8909     :
8910   else
8911     rm -f .libs 2>/dev/null
8912     mkdir .libs 2>/dev/null
8913     if test -d .libs; then
8914       libltdl_cv_objdir=.libs
8915     else
8916       # MS-DOS does not allow filenames that begin with a dot.
8917       libltdl_cv_objdir=_libs
8918     fi
8919   rmdir .libs 2>/dev/null
8920   fi
8921
8922 fi
8923 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8924 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8925
8926 cat >>confdefs.h <<_ACEOF
8927 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8928 _ACEOF
8929
8930
8931
8932
8933
8934
8935 # Check for command to grab the raw symbol name followed by C symbol from nm.
8936 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8937 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8938 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941
8942 # These are sane defaults that work on at least a few old systems.
8943 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8944
8945 # Character class describing NM global symbol codes.
8946 symcode='[BCDEGRST]'
8947
8948 # Regexp to match symbols that can be accessed directly from C.
8949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8950
8951 # Transform an extracted symbol line into a proper C declaration
8952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8953
8954 # Transform an extracted symbol line into symbol name and symbol address
8955 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'"
8956
8957 # Define system-specific variables.
8958 case $host_os in
8959 aix*)
8960   symcode='[BCDT]'
8961   ;;
8962 cygwin* | mingw* | pw32*)
8963   symcode='[ABCDGISTW]'
8964   ;;
8965 hpux*) # Its linker distinguishes data from code symbols
8966   if test "$host_cpu" = ia64; then
8967     symcode='[ABCDEGRST]'
8968   fi
8969   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8970   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'"
8971   ;;
8972 linux*)
8973   if test "$host_cpu" = ia64; then
8974     symcode='[ABCDGIRSTW]'
8975     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8976     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'"
8977   fi
8978   ;;
8979 irix* | nonstopux*)
8980   symcode='[BCDEGRST]'
8981   ;;
8982 osf*)
8983   symcode='[BCDEGQRST]'
8984   ;;
8985 solaris*)
8986   symcode='[BDRT]'
8987   ;;
8988 sco3.2v5*)
8989   symcode='[DT]'
8990   ;;
8991 sysv4.2uw2*)
8992   symcode='[DT]'
8993   ;;
8994 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8995   symcode='[ABDT]'
8996   ;;
8997 sysv4)
8998   symcode='[DFNSTU]'
8999   ;;
9000 esac
9001
9002 # Handle CRLF in mingw tool chain
9003 opt_cr=
9004 case $build_os in
9005 mingw*)
9006   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9007   ;;
9008 esac
9009
9010 # If we're using GNU nm, then use its standard symbol codes.
9011 case `$NM -V 2>&1` in
9012 *GNU* | *'with BFD'*)
9013   symcode='[ABCDGIRSTW]' ;;
9014 esac
9015
9016 # Try without a prefix undercore, then with it.
9017 for ac_symprfx in "" "_"; do
9018
9019   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9020   symxfrm="\\1 $ac_symprfx\\2 \\2"
9021
9022   # Write the raw and C identifiers.
9023   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9024
9025   # Check to see that the pipe works correctly.
9026   pipe_works=no
9027
9028   rm -f conftest*
9029   cat > conftest.$ac_ext <<EOF
9030 #ifdef __cplusplus
9031 extern "C" {
9032 #endif
9033 char nm_test_var;
9034 void nm_test_func(){}
9035 #ifdef __cplusplus
9036 }
9037 #endif
9038 int main(){nm_test_var='a';nm_test_func();return(0);}
9039 EOF
9040
9041   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042   (eval $ac_compile) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; then
9046     # Now try to grab the symbols.
9047     nlist=conftest.nm
9048     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9049   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } && test -s "$nlist"; then
9053       # Try sorting and uniquifying the output.
9054       if sort "$nlist" | uniq > "$nlist"T; then
9055         mv -f "$nlist"T "$nlist"
9056       else
9057         rm -f "$nlist"T
9058       fi
9059
9060       # Make sure that we snagged all the symbols we need.
9061       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9062         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9063           cat <<EOF > conftest.$ac_ext
9064 #ifdef __cplusplus
9065 extern "C" {
9066 #endif
9067
9068 EOF
9069           # Now generate the symbol file.
9070           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9071
9072           cat <<EOF >> conftest.$ac_ext
9073 #if defined (__STDC__) && __STDC__
9074 # define lt_ptr_t void *
9075 #else
9076 # define lt_ptr_t char *
9077 # define const
9078 #endif
9079
9080 /* The mapping between symbol names and symbols. */
9081 const struct {
9082   const char *name;
9083   lt_ptr_t address;
9084 }
9085 lt_preloaded_symbols[] =
9086 {
9087 EOF
9088           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9089           cat <<\EOF >> conftest.$ac_ext
9090   {0, (lt_ptr_t) 0}
9091 };
9092
9093 #ifdef __cplusplus
9094 }
9095 #endif
9096 EOF
9097           # Now try linking the two files.
9098           mv conftest.$ac_objext conftstm.$ac_objext
9099           lt_save_LIBS="$LIBS"
9100           lt_save_CFLAGS="$CFLAGS"
9101           LIBS="conftstm.$ac_objext"
9102           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9103           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104   (eval $ac_link) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9108             pipe_works=yes
9109           fi
9110           LIBS="$lt_save_LIBS"
9111           CFLAGS="$lt_save_CFLAGS"
9112         else
9113           echo "cannot find nm_test_func in $nlist" >&5
9114         fi
9115       else
9116         echo "cannot find nm_test_var in $nlist" >&5
9117       fi
9118     else
9119       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9120     fi
9121   else
9122     echo "$progname: failed program was:" >&5
9123     cat conftest.$ac_ext >&5
9124   fi
9125   rm -f conftest* conftst*
9126
9127   # Do not use the global_symbol_pipe unless it works.
9128   if test "$pipe_works" = yes; then
9129     break
9130   else
9131     lt_cv_sys_global_symbol_pipe=
9132   fi
9133 done
9134
9135 fi
9136
9137 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9138   lt_cv_sys_global_symbol_to_cdecl=
9139 fi
9140 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9141   { echo "$as_me:$LINENO: result: failed" >&5
9142 echo "${ECHO_T}failed" >&6; }
9143 else
9144   { echo "$as_me:$LINENO: result: ok" >&5
9145 echo "${ECHO_T}ok" >&6; }
9146 fi
9147
9148
9149 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9150 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9151 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9155     libltdl_cv_preloaded_symbols=yes
9156   else
9157     libltdl_cv_preloaded_symbols=no
9158   fi
9159
9160 fi
9161 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9162 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9163 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9164
9165 cat >>confdefs.h <<\_ACEOF
9166 #define HAVE_PRELOADED_SYMBOLS 1
9167 _ACEOF
9168
9169 fi
9170
9171 LIBADD_DL=
9172
9173 ac_ext=c
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9178
9179
9180 { echo "$as_me:$LINENO: checking for shl_load" >&5
9181 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9182 if test "${ac_cv_func_shl_load+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9193 #define shl_load innocuous_shl_load
9194
9195 /* System header to define __stub macros and hopefully few prototypes,
9196     which can conflict with char shl_load (); below.
9197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198     <limits.h> exists even on freestanding compilers.  */
9199
9200 #ifdef __STDC__
9201 # include <limits.h>
9202 #else
9203 # include <assert.h>
9204 #endif
9205
9206 #undef shl_load
9207
9208 /* Override any GCC internal prototype to avoid an error.
9209    Use char because int might match the return type of a GCC
9210    builtin and then its argument prototype would still apply.  */
9211 #ifdef __cplusplus
9212 extern "C"
9213 #endif
9214 char shl_load ();
9215 /* The GNU C library defines this for functions which it implements
9216     to always fail with ENOSYS.  Some functions are actually named
9217     something starting with __ and the normal name is an alias.  */
9218 #if defined __stub_shl_load || defined __stub___shl_load
9219 choke me
9220 #endif
9221
9222 int
9223 main ()
9224 {
9225 return shl_load ();
9226   ;
9227   return 0;
9228 }
9229 _ACEOF
9230 rm -f conftest.$ac_objext conftest$ac_exeext
9231 if { (ac_try="$ac_link"
9232 case "(($ac_try" in
9233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234   *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237   (eval "$ac_link") 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } && {
9244          test -z "$ac_c_werror_flag" ||
9245          test ! -s conftest.err
9246        } && test -s conftest$ac_exeext &&
9247        $as_test_x conftest$ac_exeext; then
9248   ac_cv_func_shl_load=yes
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253         ac_cv_func_shl_load=no
9254 fi
9255
9256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9257       conftest$ac_exeext conftest.$ac_ext
9258 fi
9259 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9260 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9261 if test $ac_cv_func_shl_load = yes; then
9262
9263 cat >>confdefs.h <<\_ACEOF
9264 #define HAVE_SHL_LOAD 1
9265 _ACEOF
9266
9267 else
9268   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   ac_check_lib_save_LIBS=$LIBS
9274 LIBS="-ldld  $LIBS"
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h.  */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h.  */
9281
9282 /* Override any GCC internal prototype to avoid an error.
9283    Use char because int might match the return type of a GCC
9284    builtin and then its argument prototype would still apply.  */
9285 #ifdef __cplusplus
9286 extern "C"
9287 #endif
9288 char shl_load ();
9289 int
9290 main ()
9291 {
9292 return shl_load ();
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (ac_try="$ac_link"
9299 case "(($ac_try" in
9300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301   *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304   (eval "$ac_link") 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } && {
9311          test -z "$ac_c_werror_flag" ||
9312          test ! -s conftest.err
9313        } && test -s conftest$ac_exeext &&
9314        $as_test_x conftest$ac_exeext; then
9315   ac_cv_lib_dld_shl_load=yes
9316 else
9317   echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320         ac_cv_lib_dld_shl_load=no
9321 fi
9322
9323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324       conftest$ac_exeext conftest.$ac_ext
9325 LIBS=$ac_check_lib_save_LIBS
9326 fi
9327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9328 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9329 if test $ac_cv_lib_dld_shl_load = yes; then
9330
9331 cat >>confdefs.h <<\_ACEOF
9332 #define HAVE_SHL_LOAD 1
9333 _ACEOF
9334
9335         LIBADD_DL="$LIBADD_DL -ldld"
9336 else
9337   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   ac_check_lib_save_LIBS=$LIBS
9343 LIBS="-ldl  $LIBS"
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350
9351 /* Override any GCC internal prototype to avoid an error.
9352    Use char because int might match the return type of a GCC
9353    builtin and then its argument prototype would still apply.  */
9354 #ifdef __cplusplus
9355 extern "C"
9356 #endif
9357 char dlopen ();
9358 int
9359 main ()
9360 {
9361 return dlopen ();
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (ac_try="$ac_link"
9368 case "(($ac_try" in
9369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370   *) ac_try_echo=$ac_try;;
9371 esac
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373   (eval "$ac_link") 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } && {
9380          test -z "$ac_c_werror_flag" ||
9381          test ! -s conftest.err
9382        } && test -s conftest$ac_exeext &&
9383        $as_test_x conftest$ac_exeext; then
9384   ac_cv_lib_dl_dlopen=yes
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389         ac_cv_lib_dl_dlopen=no
9390 fi
9391
9392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9393       conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9395 fi
9396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9398 if test $ac_cv_lib_dl_dlopen = yes; then
9399
9400 cat >>confdefs.h <<\_ACEOF
9401 #define HAVE_LIBDL 1
9402 _ACEOF
9403
9404                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9405 else
9406   cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #if HAVE_DLFCN_H
9413 #  include <dlfcn.h>
9414 #endif
9415
9416 int
9417 main ()
9418 {
9419 dlopen(0, 0);
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (ac_try="$ac_link"
9426 case "(($ac_try" in
9427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428   *) ac_try_echo=$ac_try;;
9429 esac
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431   (eval "$ac_link") 2>conftest.er1
9432   ac_status=$?
9433   grep -v '^ *+' conftest.er1 >conftest.err
9434   rm -f conftest.er1
9435   cat conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } && {
9438          test -z "$ac_c_werror_flag" ||
9439          test ! -s conftest.err
9440        } && test -s conftest$ac_exeext &&
9441        $as_test_x conftest$ac_exeext; then
9442
9443 cat >>confdefs.h <<\_ACEOF
9444 #define HAVE_LIBDL 1
9445 _ACEOF
9446  libltdl_cv_func_dlopen="yes"
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9452 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9453 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   ac_check_lib_save_LIBS=$LIBS
9457 LIBS="-lsvld  $LIBS"
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h.  */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h.  */
9464
9465 /* Override any GCC internal prototype to avoid an error.
9466    Use char because int might match the return type of a GCC
9467    builtin and then its argument prototype would still apply.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char dlopen ();
9472 int
9473 main ()
9474 {
9475 return dlopen ();
9476   ;
9477   return 0;
9478 }
9479 _ACEOF
9480 rm -f conftest.$ac_objext conftest$ac_exeext
9481 if { (ac_try="$ac_link"
9482 case "(($ac_try" in
9483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484   *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487   (eval "$ac_link") 2>conftest.er1
9488   ac_status=$?
9489   grep -v '^ *+' conftest.er1 >conftest.err
9490   rm -f conftest.er1
9491   cat conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } && {
9494          test -z "$ac_c_werror_flag" ||
9495          test ! -s conftest.err
9496        } && test -s conftest$ac_exeext &&
9497        $as_test_x conftest$ac_exeext; then
9498   ac_cv_lib_svld_dlopen=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503         ac_cv_lib_svld_dlopen=no
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9507       conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9509 fi
9510 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9511 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9512 if test $ac_cv_lib_svld_dlopen = yes; then
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_LIBDL 1
9516 _ACEOF
9517
9518                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9519 else
9520   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   ac_check_lib_save_LIBS=$LIBS
9526 LIBS="-ldld  $LIBS"
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h.  */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h.  */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535    Use char because int might match the return type of a GCC
9536    builtin and then its argument prototype would still apply.  */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char dld_link ();
9541 int
9542 main ()
9543 {
9544 return dld_link ();
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_link") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } && {
9563          test -z "$ac_c_werror_flag" ||
9564          test ! -s conftest.err
9565        } && test -s conftest$ac_exeext &&
9566        $as_test_x conftest$ac_exeext; then
9567   ac_cv_lib_dld_dld_link=yes
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572         ac_cv_lib_dld_dld_link=no
9573 fi
9574
9575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576       conftest$ac_exeext conftest.$ac_ext
9577 LIBS=$ac_check_lib_save_LIBS
9578 fi
9579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9581 if test $ac_cv_lib_dld_dld_link = yes; then
9582
9583 cat >>confdefs.h <<\_ACEOF
9584 #define HAVE_DLD 1
9585 _ACEOF
9586
9587                 LIBADD_DL="$LIBADD_DL -ldld"
9588 else
9589   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9590 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9591 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9602 #define _dyld_func_lookup innocuous__dyld_func_lookup
9603
9604 /* System header to define __stub macros and hopefully few prototypes,
9605     which can conflict with char _dyld_func_lookup (); below.
9606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607     <limits.h> exists even on freestanding compilers.  */
9608
9609 #ifdef __STDC__
9610 # include <limits.h>
9611 #else
9612 # include <assert.h>
9613 #endif
9614
9615 #undef _dyld_func_lookup
9616
9617 /* Override any GCC internal prototype to avoid an error.
9618    Use char because int might match the return type of a GCC
9619    builtin and then its argument prototype would still apply.  */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 char _dyld_func_lookup ();
9624 /* The GNU C library defines this for functions which it implements
9625     to always fail with ENOSYS.  Some functions are actually named
9626     something starting with __ and the normal name is an alias.  */
9627 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9628 choke me
9629 #endif
9630
9631 int
9632 main ()
9633 {
9634 return _dyld_func_lookup ();
9635   ;
9636   return 0;
9637 }
9638 _ACEOF
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (ac_try="$ac_link"
9641 case "(($ac_try" in
9642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643   *) ac_try_echo=$ac_try;;
9644 esac
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646   (eval "$ac_link") 2>conftest.er1
9647   ac_status=$?
9648   grep -v '^ *+' conftest.er1 >conftest.err
9649   rm -f conftest.er1
9650   cat conftest.err >&5
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } && {
9653          test -z "$ac_c_werror_flag" ||
9654          test ! -s conftest.err
9655        } && test -s conftest$ac_exeext &&
9656        $as_test_x conftest$ac_exeext; then
9657   ac_cv_func__dyld_func_lookup=yes
9658 else
9659   echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662         ac_cv_func__dyld_func_lookup=no
9663 fi
9664
9665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666       conftest$ac_exeext conftest.$ac_ext
9667 fi
9668 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9669 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9670 if test $ac_cv_func__dyld_func_lookup = yes; then
9671
9672 cat >>confdefs.h <<\_ACEOF
9673 #define HAVE_DYLD 1
9674 _ACEOF
9675
9676 fi
9677
9678
9679 fi
9680
9681
9682 fi
9683
9684
9685 fi
9686
9687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9688       conftest$ac_exeext conftest.$ac_ext
9689
9690 fi
9691
9692
9693 fi
9694
9695
9696 fi
9697
9698
9699 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9700 then
9701   lt_save_LIBS="$LIBS"
9702   LIBS="$LIBS $LIBADD_DL"
9703
9704 for ac_func in dlerror
9705 do
9706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9720 #define $ac_func innocuous_$ac_func
9721
9722 /* System header to define __stub macros and hopefully few prototypes,
9723     which can conflict with char $ac_func (); below.
9724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9725     <limits.h> exists even on freestanding compilers.  */
9726
9727 #ifdef __STDC__
9728 # include <limits.h>
9729 #else
9730 # include <assert.h>
9731 #endif
9732
9733 #undef $ac_func
9734
9735 /* Override any GCC internal prototype to avoid an error.
9736    Use char because int might match the return type of a GCC
9737    builtin and then its argument prototype would still apply.  */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char $ac_func ();
9742 /* The GNU C library defines this for functions which it implements
9743     to always fail with ENOSYS.  Some functions are actually named
9744     something starting with __ and the normal name is an alias.  */
9745 #if defined __stub_$ac_func || defined __stub___$ac_func
9746 choke me
9747 #endif
9748
9749 int
9750 main ()
9751 {
9752 return $ac_func ();
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_link") 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } && {
9771          test -z "$ac_c_werror_flag" ||
9772          test ! -s conftest.err
9773        } && test -s conftest$ac_exeext &&
9774        $as_test_x conftest$ac_exeext; then
9775   eval "$as_ac_var=yes"
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780         eval "$as_ac_var=no"
9781 fi
9782
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784       conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 ac_res=`eval echo '${'$as_ac_var'}'`
9787                { echo "$as_me:$LINENO: result: $ac_res" >&5
9788 echo "${ECHO_T}$ac_res" >&6; }
9789 if test `eval echo '${'$as_ac_var'}'` = yes; then
9790   cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9792 _ACEOF
9793
9794 fi
9795 done
9796
9797   LIBS="$lt_save_LIBS"
9798 fi
9799 ac_ext=c
9800 ac_cpp='$CPP $CPPFLAGS'
9801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9804
9805
9806
9807 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9808 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9809 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   ac_cv_sys_symbol_underscore=no
9813   cat > conftest.$ac_ext <<EOF
9814 void nm_test_func(){}
9815 int main(){nm_test_func;return 0;}
9816 EOF
9817   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818   (eval $ac_compile) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; then
9822     # Now try to grab the symbols.
9823     ac_nlist=conftest.nm
9824     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9825   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } && test -s "$ac_nlist"; then
9829       # See whether the symbols have a leading underscore.
9830       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9831         ac_cv_sys_symbol_underscore=yes
9832       else
9833         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9834           :
9835         else
9836           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9837         fi
9838       fi
9839     else
9840       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9841     fi
9842   else
9843     echo "configure: failed program was:" >&5
9844     cat conftest.c >&5
9845   fi
9846   rm -rf conftest*
9847
9848 fi
9849 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9850 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9851
9852
9853 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9854   if test x"$libltdl_cv_func_dlopen" = xyes ||
9855      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9856         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9857 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9858 if test "${libltdl_cv_need_uscore+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   libltdl_cv_need_uscore=unknown
9862           save_LIBS="$LIBS"
9863           LIBS="$LIBS $LIBADD_DL"
9864           if test "$cross_compiling" = yes; then :
9865   libltdl_cv_need_uscore=cross
9866 else
9867   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868   lt_status=$lt_dlunknown
9869   cat > conftest.$ac_ext <<EOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9872
9873 #if HAVE_DLFCN_H
9874 #include <dlfcn.h>
9875 #endif
9876
9877 #include <stdio.h>
9878
9879 #ifdef RTLD_GLOBAL
9880 #  define LT_DLGLOBAL           RTLD_GLOBAL
9881 #else
9882 #  ifdef DL_GLOBAL
9883 #    define LT_DLGLOBAL         DL_GLOBAL
9884 #  else
9885 #    define LT_DLGLOBAL         0
9886 #  endif
9887 #endif
9888
9889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890    find out it does not work in some platform. */
9891 #ifndef LT_DLLAZY_OR_NOW
9892 #  ifdef RTLD_LAZY
9893 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9894 #  else
9895 #    ifdef DL_LAZY
9896 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9897 #    else
9898 #      ifdef RTLD_NOW
9899 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9900 #      else
9901 #        ifdef DL_NOW
9902 #          define LT_DLLAZY_OR_NOW      DL_NOW
9903 #        else
9904 #          define LT_DLLAZY_OR_NOW      0
9905 #        endif
9906 #      endif
9907 #    endif
9908 #  endif
9909 #endif
9910
9911 #ifdef __cplusplus
9912 extern "C" void exit (int);
9913 #endif
9914
9915 void fnord() { int i=42;}
9916 int main ()
9917 {
9918   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919   int status = $lt_dlunknown;
9920
9921   if (self)
9922     {
9923       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9924       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925       /* dlclose (self); */
9926     }
9927   else
9928     puts (dlerror ());
9929
9930     exit (status);
9931 }
9932 EOF
9933   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934   (eval $ac_link) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938     (./conftest; exit; ) >&5 2>/dev/null
9939     lt_status=$?
9940     case x$lt_status in
9941       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9942       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9943       x$lt_dlunknown|x*)  ;;
9944     esac
9945   else :
9946     # compilation failed
9947
9948   fi
9949 fi
9950 rm -fr conftest*
9951
9952           LIBS="$save_LIBS"
9953
9954 fi
9955 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9956 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9957   fi
9958 fi
9959
9960 if test x"$libltdl_cv_need_uscore" = xyes; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define NEED_USCORE 1
9964 _ACEOF
9965
9966 fi
9967
9968
9969 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9970 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9971 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   # PORTME does your system automatically load deplibs for dlopen?
9975   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9976   # For now, we just catch OSes we know something about -- in the
9977   # future, we'll try test this programmatically.
9978   libltdl_cv_sys_dlopen_deplibs=unknown
9979   case "$host_os" in
9980   aix3*|aix4.1.*|aix4.2.*)
9981     # Unknown whether this is true for these versions of AIX, but
9982     # we want this `case' here to explicitly catch those versions.
9983     libltdl_cv_sys_dlopen_deplibs=unknown
9984     ;;
9985   aix[45]*)
9986     libltdl_cv_sys_dlopen_deplibs=yes
9987     ;;
9988   darwin*)
9989     # Assuming the user has installed a libdl from somewhere, this is true
9990     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9991     libltdl_cv_sys_dlopen_deplibs=yes
9992     ;;
9993   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9994     # GNU and its variants, using gnu ld.so (Glibc)
9995     libltdl_cv_sys_dlopen_deplibs=yes
9996     ;;
9997   hpux10*|hpux11*)
9998     libltdl_cv_sys_dlopen_deplibs=yes
9999     ;;
10000   interix*)
10001     libltdl_cv_sys_dlopen_deplibs=yes
10002     ;;
10003   irix[12345]*|irix6.[01]*)
10004     # Catch all versions of IRIX before 6.2, and indicate that we don't
10005     # know how it worked for any of those versions.
10006     libltdl_cv_sys_dlopen_deplibs=unknown
10007     ;;
10008   irix*)
10009     # The case above catches anything before 6.2, and it's known that
10010     # at 6.2 and later dlopen does load deplibs.
10011     libltdl_cv_sys_dlopen_deplibs=yes
10012     ;;
10013   netbsd*)
10014     libltdl_cv_sys_dlopen_deplibs=yes
10015     ;;
10016   openbsd*)
10017     libltdl_cv_sys_dlopen_deplibs=yes
10018     ;;
10019   osf[1234]*)
10020     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10021     # it did *not* use an RPATH in a shared library to find objects the
10022     # library depends on, so we explictly say `no'.
10023     libltdl_cv_sys_dlopen_deplibs=no
10024     ;;
10025   osf5.0|osf5.0a|osf5.1)
10026     # dlopen *does* load deplibs and with the right loader patch applied
10027     # it even uses RPATH in a shared library to search for shared objects
10028     # that the library depends on, but there's no easy way to know if that
10029     # patch is installed.  Since this is the case, all we can really
10030     # say is unknown -- it depends on the patch being installed.  If
10031     # it is, this changes to `yes'.  Without it, it would be `no'.
10032     libltdl_cv_sys_dlopen_deplibs=unknown
10033     ;;
10034   osf*)
10035     # the two cases above should catch all versions of osf <= 5.1.  Read
10036     # the comments above for what we know about them.
10037     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10038     # is used to find them so we can finally say `yes'.
10039     libltdl_cv_sys_dlopen_deplibs=yes
10040     ;;
10041   solaris*)
10042     libltdl_cv_sys_dlopen_deplibs=yes
10043     ;;
10044   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10045     libltdl_cv_sys_dlopen_deplibs=yes
10046     ;;
10047   esac
10048
10049 fi
10050 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10051 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10052 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10053
10054 cat >>confdefs.h <<\_ACEOF
10055 #define LTDL_DLOPEN_DEPLIBS 1
10056 _ACEOF
10057
10058 fi
10059
10060
10061 for ac_header in argz.h
10062 do
10063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10065   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 fi
10070 ac_res=`eval echo '${'$as_ac_Header'}'`
10071                { echo "$as_me:$LINENO: result: $ac_res" >&5
10072 echo "${ECHO_T}$ac_res" >&6; }
10073 else
10074   # Is the header compilable?
10075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 $ac_includes_default
10084 #include <$ac_header>
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (ac_try="$ac_compile"
10088 case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_compile") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } && {
10100          test -z "$ac_c_werror_flag" ||
10101          test ! -s conftest.err
10102        } && test -s conftest.$ac_objext; then
10103   ac_header_compiler=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108         ac_header_compiler=no
10109 fi
10110
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113 echo "${ECHO_T}$ac_header_compiler" >&6; }
10114
10115 # Is the header present?
10116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <$ac_header>
10125 _ACEOF
10126 if { (ac_try="$ac_cpp conftest.$ac_ext"
10127 case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } >/dev/null && {
10139          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10140          test ! -s conftest.err
10141        }; then
10142   ac_header_preproc=yes
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147   ac_header_preproc=no
10148 fi
10149
10150 rm -f conftest.err conftest.$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10152 echo "${ECHO_T}$ac_header_preproc" >&6; }
10153
10154 # So?  What about this header?
10155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10156   yes:no: )
10157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10161     ac_header_preproc=yes
10162     ;;
10163   no:yes:* )
10164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10176     ( cat <<\_ASBOX
10177 ## ----------------------------------- ##
10178 ## Report this to llvmbugs@cs.uiuc.edu ##
10179 ## ----------------------------------- ##
10180 _ASBOX
10181      ) | sed "s/^/$as_me: WARNING:     /" >&2
10182     ;;
10183 esac
10184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   eval "$as_ac_Header=\$ac_header_preproc"
10190 fi
10191 ac_res=`eval echo '${'$as_ac_Header'}'`
10192                { echo "$as_me:$LINENO: result: $ac_res" >&5
10193 echo "${ECHO_T}$ac_res" >&6; }
10194
10195 fi
10196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197   cat >>confdefs.h <<_ACEOF
10198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199 _ACEOF
10200
10201 fi
10202
10203 done
10204
10205
10206 { echo "$as_me:$LINENO: checking for error_t" >&5
10207 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10208 if test "${ac_cv_type_error_t+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217 #if HAVE_ARGZ_H
10218 #  include <argz.h>
10219 #endif
10220
10221 typedef error_t ac__type_new_;
10222 int
10223 main ()
10224 {
10225 if ((ac__type_new_ *) 0)
10226   return 0;
10227 if (sizeof (ac__type_new_))
10228   return 0;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (ac_try="$ac_compile"
10235 case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_compile") 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } && {
10247          test -z "$ac_c_werror_flag" ||
10248          test ! -s conftest.err
10249        } && test -s conftest.$ac_objext; then
10250   ac_cv_type_error_t=yes
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255         ac_cv_type_error_t=no
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 fi
10260 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10261 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10262 if test $ac_cv_type_error_t = yes; then
10263
10264 cat >>confdefs.h <<_ACEOF
10265 #define HAVE_ERROR_T 1
10266 _ACEOF
10267
10268
10269 else
10270
10271 cat >>confdefs.h <<\_ACEOF
10272 #define error_t int
10273 _ACEOF
10274
10275 fi
10276
10277
10278
10279
10280
10281
10282
10283 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10284 do
10285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10299 #define $ac_func innocuous_$ac_func
10300
10301 /* System header to define __stub macros and hopefully few prototypes,
10302     which can conflict with char $ac_func (); below.
10303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304     <limits.h> exists even on freestanding compilers.  */
10305
10306 #ifdef __STDC__
10307 # include <limits.h>
10308 #else
10309 # include <assert.h>
10310 #endif
10311
10312 #undef $ac_func
10313
10314 /* Override any GCC internal prototype to avoid an error.
10315    Use char because int might match the return type of a GCC
10316    builtin and then its argument prototype would still apply.  */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 char $ac_func ();
10321 /* The GNU C library defines this for functions which it implements
10322     to always fail with ENOSYS.  Some functions are actually named
10323     something starting with __ and the normal name is an alias.  */
10324 #if defined __stub_$ac_func || defined __stub___$ac_func
10325 choke me
10326 #endif
10327
10328 int
10329 main ()
10330 {
10331 return $ac_func ();
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_link") 2>conftest.er1
10344   ac_status=$?
10345   grep -v '^ *+' conftest.er1 >conftest.err
10346   rm -f conftest.er1
10347   cat conftest.err >&5
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } && {
10350          test -z "$ac_c_werror_flag" ||
10351          test ! -s conftest.err
10352        } && test -s conftest$ac_exeext &&
10353        $as_test_x conftest$ac_exeext; then
10354   eval "$as_ac_var=yes"
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359         eval "$as_ac_var=no"
10360 fi
10361
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363       conftest$ac_exeext conftest.$ac_ext
10364 fi
10365 ac_res=`eval echo '${'$as_ac_var'}'`
10366                { echo "$as_me:$LINENO: result: $ac_res" >&5
10367 echo "${ECHO_T}$ac_res" >&6; }
10368 if test `eval echo '${'$as_ac_var'}'` = yes; then
10369   cat >>confdefs.h <<_ACEOF
10370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10371 _ACEOF
10372
10373 fi
10374 done
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10404                   stdio.h unistd.h
10405 do
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 fi
10413 ac_res=`eval echo '${'$as_ac_Header'}'`
10414                { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10416 else
10417   # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 $ac_includes_default
10427 #include <$ac_header>
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433   *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436   (eval "$ac_compile") 2>conftest.er1
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
10440   cat conftest.err >&5
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } && {
10443          test -z "$ac_c_werror_flag" ||
10444          test ! -s conftest.err
10445        } && test -s conftest.$ac_objext; then
10446   ac_header_compiler=yes
10447 else
10448   echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10450
10451         ac_header_compiler=no
10452 fi
10453
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456 echo "${ECHO_T}$ac_header_compiler" >&6; }
10457
10458 # Is the header present?
10459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h.  */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h.  */
10467 #include <$ac_header>
10468 _ACEOF
10469 if { (ac_try="$ac_cpp conftest.$ac_ext"
10470 case "(($ac_try" in
10471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472   *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10476   ac_status=$?
10477   grep -v '^ *+' conftest.er1 >conftest.err
10478   rm -f conftest.er1
10479   cat conftest.err >&5
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } >/dev/null && {
10482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10483          test ! -s conftest.err
10484        }; then
10485   ac_header_preproc=yes
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490   ac_header_preproc=no
10491 fi
10492
10493 rm -f conftest.err conftest.$ac_ext
10494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495 echo "${ECHO_T}$ac_header_preproc" >&6; }
10496
10497 # So?  What about this header?
10498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10499   yes:no: )
10500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10504     ac_header_preproc=yes
10505     ;;
10506   no:yes:* )
10507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10519     ( cat <<\_ASBOX
10520 ## ----------------------------------- ##
10521 ## Report this to llvmbugs@cs.uiuc.edu ##
10522 ## ----------------------------------- ##
10523 _ASBOX
10524      ) | sed "s/^/$as_me: WARNING:     /" >&2
10525     ;;
10526 esac
10527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   eval "$as_ac_Header=\$ac_header_preproc"
10533 fi
10534 ac_res=`eval echo '${'$as_ac_Header'}'`
10535                { echo "$as_me:$LINENO: result: $ac_res" >&5
10536 echo "${ECHO_T}$ac_res" >&6; }
10537
10538 fi
10539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10540   cat >>confdefs.h <<_ACEOF
10541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10542 _ACEOF
10543
10544 fi
10545
10546 done
10547
10548
10549
10550
10551
10552 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10553 do
10554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559   echo $ECHO_N "(cached) $ECHO_C" >&6
10560 fi
10561 ac_res=`eval echo '${'$as_ac_Header'}'`
10562                { echo "$as_me:$LINENO: result: $ac_res" >&5
10563 echo "${ECHO_T}$ac_res" >&6; }
10564 else
10565   # Is the header compilable?
10566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 $ac_includes_default
10575 #include <$ac_header>
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581   *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584   (eval "$ac_compile") 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } && {
10591          test -z "$ac_c_werror_flag" ||
10592          test ! -s conftest.err
10593        } && test -s conftest.$ac_objext; then
10594   ac_header_compiler=yes
10595 else
10596   echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599         ac_header_compiler=no
10600 fi
10601
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10604 echo "${ECHO_T}$ac_header_compiler" >&6; }
10605
10606 # Is the header present?
10607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615 #include <$ac_header>
10616 _ACEOF
10617 if { (ac_try="$ac_cpp conftest.$ac_ext"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } >/dev/null && {
10630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631          test ! -s conftest.err
10632        }; then
10633   ac_header_preproc=yes
10634 else
10635   echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638   ac_header_preproc=no
10639 fi
10640
10641 rm -f conftest.err conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643 echo "${ECHO_T}$ac_header_preproc" >&6; }
10644
10645 # So?  What about this header?
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10647   yes:no: )
10648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10652     ac_header_preproc=yes
10653     ;;
10654   no:yes:* )
10655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10667     ( cat <<\_ASBOX
10668 ## ----------------------------------- ##
10669 ## Report this to llvmbugs@cs.uiuc.edu ##
10670 ## ----------------------------------- ##
10671 _ASBOX
10672      ) | sed "s/^/$as_me: WARNING:     /" >&2
10673     ;;
10674 esac
10675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10678   echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680   eval "$as_ac_Header=\$ac_header_preproc"
10681 fi
10682 ac_res=`eval echo '${'$as_ac_Header'}'`
10683                { echo "$as_me:$LINENO: result: $ac_res" >&5
10684 echo "${ECHO_T}$ac_res" >&6; }
10685
10686 fi
10687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688   cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690 _ACEOF
10691
10692 fi
10693
10694 done
10695
10696
10697
10698 for ac_header in string.h strings.h
10699 do
10700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705   echo $ECHO_N "(cached) $ECHO_C" >&6
10706 fi
10707 ac_res=`eval echo '${'$as_ac_Header'}'`
10708                { echo "$as_me:$LINENO: result: $ac_res" >&5
10709 echo "${ECHO_T}$ac_res" >&6; }
10710 else
10711   # Is the header compilable?
10712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h.  */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h.  */
10720 $ac_includes_default
10721 #include <$ac_header>
10722 _ACEOF
10723 rm -f conftest.$ac_objext
10724 if { (ac_try="$ac_compile"
10725 case "(($ac_try" in
10726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727   *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730   (eval "$ac_compile") 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } && {
10737          test -z "$ac_c_werror_flag" ||
10738          test ! -s conftest.err
10739        } && test -s conftest.$ac_objext; then
10740   ac_header_compiler=yes
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745         ac_header_compiler=no
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10751
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h.  */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h.  */
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766   *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } >/dev/null && {
10776          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777          test ! -s conftest.err
10778        }; then
10779   ac_header_preproc=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784   ac_header_preproc=no
10785 fi
10786
10787 rm -f conftest.err conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6; }
10790
10791 # So?  What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793   yes:no: )
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798     ac_header_preproc=yes
10799     ;;
10800   no:yes:* )
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813     ( cat <<\_ASBOX
10814 ## ----------------------------------- ##
10815 ## Report this to llvmbugs@cs.uiuc.edu ##
10816 ## ----------------------------------- ##
10817 _ASBOX
10818      ) | sed "s/^/$as_me: WARNING:     /" >&2
10819     ;;
10820 esac
10821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   eval "$as_ac_Header=\$ac_header_preproc"
10827 fi
10828 ac_res=`eval echo '${'$as_ac_Header'}'`
10829                { echo "$as_me:$LINENO: result: $ac_res" >&5
10830 echo "${ECHO_T}$ac_res" >&6; }
10831
10832 fi
10833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10834   cat >>confdefs.h <<_ACEOF
10835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10836 _ACEOF
10837  break
10838 fi
10839
10840 done
10841
10842
10843
10844
10845 for ac_func in strchr index
10846 do
10847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10861 #define $ac_func innocuous_$ac_func
10862
10863 /* System header to define __stub macros and hopefully few prototypes,
10864     which can conflict with char $ac_func (); below.
10865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866     <limits.h> exists even on freestanding compilers.  */
10867
10868 #ifdef __STDC__
10869 # include <limits.h>
10870 #else
10871 # include <assert.h>
10872 #endif
10873
10874 #undef $ac_func
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877    Use char because int might match the return type of a GCC
10878    builtin and then its argument prototype would still apply.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char $ac_func ();
10883 /* The GNU C library defines this for functions which it implements
10884     to always fail with ENOSYS.  Some functions are actually named
10885     something starting with __ and the normal name is an alias.  */
10886 #if defined __stub_$ac_func || defined __stub___$ac_func
10887 choke me
10888 #endif
10889
10890 int
10891 main ()
10892 {
10893 return $ac_func ();
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_link") 2>conftest.er1
10906   ac_status=$?
10907   grep -v '^ *+' conftest.er1 >conftest.err
10908   rm -f conftest.er1
10909   cat conftest.err >&5
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } && {
10912          test -z "$ac_c_werror_flag" ||
10913          test ! -s conftest.err
10914        } && test -s conftest$ac_exeext &&
10915        $as_test_x conftest$ac_exeext; then
10916   eval "$as_ac_var=yes"
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921         eval "$as_ac_var=no"
10922 fi
10923
10924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10925       conftest$ac_exeext conftest.$ac_ext
10926 fi
10927 ac_res=`eval echo '${'$as_ac_var'}'`
10928                { echo "$as_me:$LINENO: result: $ac_res" >&5
10929 echo "${ECHO_T}$ac_res" >&6; }
10930 if test `eval echo '${'$as_ac_var'}'` = yes; then
10931   cat >>confdefs.h <<_ACEOF
10932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933 _ACEOF
10934  break
10935 fi
10936 done
10937
10938
10939
10940 for ac_func in strrchr rindex
10941 do
10942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10956 #define $ac_func innocuous_$ac_func
10957
10958 /* System header to define __stub macros and hopefully few prototypes,
10959     which can conflict with char $ac_func (); below.
10960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961     <limits.h> exists even on freestanding compilers.  */
10962
10963 #ifdef __STDC__
10964 # include <limits.h>
10965 #else
10966 # include <assert.h>
10967 #endif
10968
10969 #undef $ac_func
10970
10971 /* Override any GCC internal prototype to avoid an error.
10972    Use char because int might match the return type of a GCC
10973    builtin and then its argument prototype would still apply.  */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char $ac_func ();
10978 /* The GNU C library defines this for functions which it implements
10979     to always fail with ENOSYS.  Some functions are actually named
10980     something starting with __ and the normal name is an alias.  */
10981 #if defined __stub_$ac_func || defined __stub___$ac_func
10982 choke me
10983 #endif
10984
10985 int
10986 main ()
10987 {
10988 return $ac_func ();
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_link") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } && {
11007          test -z "$ac_c_werror_flag" ||
11008          test ! -s conftest.err
11009        } && test -s conftest$ac_exeext &&
11010        $as_test_x conftest$ac_exeext; then
11011   eval "$as_ac_var=yes"
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016         eval "$as_ac_var=no"
11017 fi
11018
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020       conftest$ac_exeext conftest.$ac_ext
11021 fi
11022 ac_res=`eval echo '${'$as_ac_var'}'`
11023                { echo "$as_me:$LINENO: result: $ac_res" >&5
11024 echo "${ECHO_T}$ac_res" >&6; }
11025 if test `eval echo '${'$as_ac_var'}'` = yes; then
11026   cat >>confdefs.h <<_ACEOF
11027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11028 _ACEOF
11029  break
11030 fi
11031 done
11032
11033
11034
11035 for ac_func in memcpy bcopy
11036 do
11037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11041   echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043   cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11051 #define $ac_func innocuous_$ac_func
11052
11053 /* System header to define __stub macros and hopefully few prototypes,
11054     which can conflict with char $ac_func (); below.
11055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056     <limits.h> exists even on freestanding compilers.  */
11057
11058 #ifdef __STDC__
11059 # include <limits.h>
11060 #else
11061 # include <assert.h>
11062 #endif
11063
11064 #undef $ac_func
11065
11066 /* Override any GCC internal prototype to avoid an error.
11067    Use char because int might match the return type of a GCC
11068    builtin and then its argument prototype would still apply.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 char $ac_func ();
11073 /* The GNU C library defines this for functions which it implements
11074     to always fail with ENOSYS.  Some functions are actually named
11075     something starting with __ and the normal name is an alias.  */
11076 #if defined __stub_$ac_func || defined __stub___$ac_func
11077 choke me
11078 #endif
11079
11080 int
11081 main ()
11082 {
11083 return $ac_func ();
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092   *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095   (eval "$ac_link") 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } && {
11102          test -z "$ac_c_werror_flag" ||
11103          test ! -s conftest.err
11104        } && test -s conftest$ac_exeext &&
11105        $as_test_x conftest$ac_exeext; then
11106   eval "$as_ac_var=yes"
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111         eval "$as_ac_var=no"
11112 fi
11113
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115       conftest$ac_exeext conftest.$ac_ext
11116 fi
11117 ac_res=`eval echo '${'$as_ac_var'}'`
11118                { echo "$as_me:$LINENO: result: $ac_res" >&5
11119 echo "${ECHO_T}$ac_res" >&6; }
11120 if test `eval echo '${'$as_ac_var'}'` = yes; then
11121   cat >>confdefs.h <<_ACEOF
11122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11123 _ACEOF
11124  break
11125 fi
11126 done
11127
11128
11129
11130 for ac_func in memmove strcmp
11131 do
11132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11146 #define $ac_func innocuous_$ac_func
11147
11148 /* System header to define __stub macros and hopefully few prototypes,
11149     which can conflict with char $ac_func (); below.
11150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11151     <limits.h> exists even on freestanding compilers.  */
11152
11153 #ifdef __STDC__
11154 # include <limits.h>
11155 #else
11156 # include <assert.h>
11157 #endif
11158
11159 #undef $ac_func
11160
11161 /* Override any GCC internal prototype to avoid an error.
11162    Use char because int might match the return type of a GCC
11163    builtin and then its argument prototype would still apply.  */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char $ac_func ();
11168 /* The GNU C library defines this for functions which it implements
11169     to always fail with ENOSYS.  Some functions are actually named
11170     something starting with __ and the normal name is an alias.  */
11171 #if defined __stub_$ac_func || defined __stub___$ac_func
11172 choke me
11173 #endif
11174
11175 int
11176 main ()
11177 {
11178 return $ac_func ();
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (ac_try="$ac_link"
11185 case "(($ac_try" in
11186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187   *) ac_try_echo=$ac_try;;
11188 esac
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190   (eval "$ac_link") 2>conftest.er1
11191   ac_status=$?
11192   grep -v '^ *+' conftest.er1 >conftest.err
11193   rm -f conftest.er1
11194   cat conftest.err >&5
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); } && {
11197          test -z "$ac_c_werror_flag" ||
11198          test ! -s conftest.err
11199        } && test -s conftest$ac_exeext &&
11200        $as_test_x conftest$ac_exeext; then
11201   eval "$as_ac_var=yes"
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206         eval "$as_ac_var=no"
11207 fi
11208
11209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210       conftest$ac_exeext conftest.$ac_ext
11211 fi
11212 ac_res=`eval echo '${'$as_ac_var'}'`
11213                { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11215 if test `eval echo '${'$as_ac_var'}'` = yes; then
11216   cat >>confdefs.h <<_ACEOF
11217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11218 _ACEOF
11219
11220 fi
11221 done
11222
11223
11224
11225
11226 for ac_func in closedir opendir readdir
11227 do
11228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11242 #define $ac_func innocuous_$ac_func
11243
11244 /* System header to define __stub macros and hopefully few prototypes,
11245     which can conflict with char $ac_func (); below.
11246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247     <limits.h> exists even on freestanding compilers.  */
11248
11249 #ifdef __STDC__
11250 # include <limits.h>
11251 #else
11252 # include <assert.h>
11253 #endif
11254
11255 #undef $ac_func
11256
11257 /* Override any GCC internal prototype to avoid an error.
11258    Use char because int might match the return type of a GCC
11259    builtin and then its argument prototype would still apply.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 char $ac_func ();
11264 /* The GNU C library defines this for functions which it implements
11265     to always fail with ENOSYS.  Some functions are actually named
11266     something starting with __ and the normal name is an alias.  */
11267 #if defined __stub_$ac_func || defined __stub___$ac_func
11268 choke me
11269 #endif
11270
11271 int
11272 main ()
11273 {
11274 return $ac_func ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286   (eval "$ac_link") 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && {
11293          test -z "$ac_c_werror_flag" ||
11294          test ! -s conftest.err
11295        } && test -s conftest$ac_exeext &&
11296        $as_test_x conftest$ac_exeext; then
11297   eval "$as_ac_var=yes"
11298 else
11299   echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302         eval "$as_ac_var=no"
11303 fi
11304
11305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11306       conftest$ac_exeext conftest.$ac_ext
11307 fi
11308 ac_res=`eval echo '${'$as_ac_var'}'`
11309                { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11311 if test `eval echo '${'$as_ac_var'}'` = yes; then
11312   cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11314 _ACEOF
11315
11316 fi
11317 done
11318
11319
11320 # Check whether --enable-shared was given.
11321 if test "${enable_shared+set}" = set; then
11322   enableval=$enable_shared; p=${PACKAGE-default}
11323     case $enableval in
11324     yes) enable_shared=yes ;;
11325     no) enable_shared=no ;;
11326     *)
11327       enable_shared=no
11328       # Look at the argument we got.  We use all the common list separators.
11329       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11330       for pkg in $enableval; do
11331         IFS="$lt_save_ifs"
11332         if test "X$pkg" = "X$p"; then
11333           enable_shared=yes
11334         fi
11335       done
11336       IFS="$lt_save_ifs"
11337       ;;
11338     esac
11339 else
11340   enable_shared=yes
11341 fi
11342
11343
11344 # Check whether --enable-static was given.
11345 if test "${enable_static+set}" = set; then
11346   enableval=$enable_static; p=${PACKAGE-default}
11347     case $enableval in
11348     yes) enable_static=yes ;;
11349     no) enable_static=no ;;
11350     *)
11351      enable_static=no
11352       # Look at the argument we got.  We use all the common list separators.
11353       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11354       for pkg in $enableval; do
11355         IFS="$lt_save_ifs"
11356         if test "X$pkg" = "X$p"; then
11357           enable_static=yes
11358         fi
11359       done
11360       IFS="$lt_save_ifs"
11361       ;;
11362     esac
11363 else
11364   enable_static=yes
11365 fi
11366
11367
11368 # Check whether --enable-fast-install was given.
11369 if test "${enable_fast_install+set}" = set; then
11370   enableval=$enable_fast_install; p=${PACKAGE-default}
11371     case $enableval in
11372     yes) enable_fast_install=yes ;;
11373     no) enable_fast_install=no ;;
11374     *)
11375       enable_fast_install=no
11376       # Look at the argument we got.  We use all the common list separators.
11377       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11378       for pkg in $enableval; do
11379         IFS="$lt_save_ifs"
11380         if test "X$pkg" = "X$p"; then
11381           enable_fast_install=yes
11382         fi
11383       done
11384       IFS="$lt_save_ifs"
11385       ;;
11386     esac
11387 else
11388   enable_fast_install=yes
11389 fi
11390
11391
11392 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11393 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11394 if test "${lt_cv_path_SED+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   # Loop through the user's path and test for sed and gsed.
11398 # Then use that list of sed's as ones to test for truncation.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11401 do
11402   IFS=$as_save_IFS
11403   test -z "$as_dir" && as_dir=.
11404   for lt_ac_prog in sed gsed; do
11405     for ac_exec_ext in '' $ac_executable_extensions; do
11406       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11407         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11408       fi
11409     done
11410   done
11411 done
11412 lt_ac_max=0
11413 lt_ac_count=0
11414 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11415 # along with /bin/sed that truncates output.
11416 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11417   test ! -f $lt_ac_sed && continue
11418   cat /dev/null > conftest.in
11419   lt_ac_count=0
11420   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11421   # Check for GNU sed and select it if it is found.
11422   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11423     lt_cv_path_SED=$lt_ac_sed
11424     break
11425   fi
11426   while true; do
11427     cat conftest.in conftest.in >conftest.tmp
11428     mv conftest.tmp conftest.in
11429     cp conftest.in conftest.nl
11430     echo >>conftest.nl
11431     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11432     cmp -s conftest.out conftest.nl || break
11433     # 10000 chars as input seems more than enough
11434     test $lt_ac_count -gt 10 && break
11435     lt_ac_count=`expr $lt_ac_count + 1`
11436     if test $lt_ac_count -gt $lt_ac_max; then
11437       lt_ac_max=$lt_ac_count
11438       lt_cv_path_SED=$lt_ac_sed
11439     fi
11440   done
11441 done
11442
11443 fi
11444
11445 SED=$lt_cv_path_SED
11446 { echo "$as_me:$LINENO: result: $SED" >&5
11447 echo "${ECHO_T}$SED" >&6; }
11448
11449
11450 # Check whether --with-gnu-ld was given.
11451 if test "${with_gnu_ld+set}" = set; then
11452   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11453 else
11454   with_gnu_ld=no
11455 fi
11456
11457 ac_prog=ld
11458 if test "$GCC" = yes; then
11459   # Check if gcc -print-prog-name=ld gives a path.
11460   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11461 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11462   case $host in
11463   *-*-mingw*)
11464     # gcc leaves a trailing carriage return which upsets mingw
11465     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11466   *)
11467     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11468   esac
11469   case $ac_prog in
11470     # Accept absolute paths.
11471     [\\/]* | ?:[\\/]*)
11472       re_direlt='/[^/][^/]*/\.\./'
11473       # Canonicalize the pathname of ld
11474       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11475       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11476         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11477       done
11478       test -z "$LD" && LD="$ac_prog"
11479       ;;
11480   "")
11481     # If it fails, then pretend we aren't using GCC.
11482     ac_prog=ld
11483     ;;
11484   *)
11485     # If it is relative, then search for the first ld in PATH.
11486     with_gnu_ld=unknown
11487     ;;
11488   esac
11489 elif test "$with_gnu_ld" = yes; then
11490   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11491 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11492 else
11493   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11494 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11495 fi
11496 if test "${lt_cv_path_LD+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   if test -z "$LD"; then
11500   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11501   for ac_dir in $PATH; do
11502     IFS="$lt_save_ifs"
11503     test -z "$ac_dir" && ac_dir=.
11504     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11505       lt_cv_path_LD="$ac_dir/$ac_prog"
11506       # Check to see if the program is GNU ld.  I'd rather use --version,
11507       # but apparently some variants of GNU ld only accept -v.
11508       # Break only if it was the GNU/non-GNU ld that we prefer.
11509       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11510       *GNU* | *'with BFD'*)
11511         test "$with_gnu_ld" != no && break
11512         ;;
11513       *)
11514         test "$with_gnu_ld" != yes && break
11515         ;;
11516       esac
11517     fi
11518   done
11519   IFS="$lt_save_ifs"
11520 else
11521   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11522 fi
11523 fi
11524
11525 LD="$lt_cv_path_LD"
11526 if test -n "$LD"; then
11527   { echo "$as_me:$LINENO: result: $LD" >&5
11528 echo "${ECHO_T}$LD" >&6; }
11529 else
11530   { echo "$as_me:$LINENO: result: no" >&5
11531 echo "${ECHO_T}no" >&6; }
11532 fi
11533 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11534 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11535    { (exit 1); exit 1; }; }
11536 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11537 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11538 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11542 case `$LD -v 2>&1 </dev/null` in
11543 *GNU* | *'with BFD'*)
11544   lt_cv_prog_gnu_ld=yes
11545   ;;
11546 *)
11547   lt_cv_prog_gnu_ld=no
11548   ;;
11549 esac
11550 fi
11551 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11552 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11553 with_gnu_ld=$lt_cv_prog_gnu_ld
11554
11555
11556 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11557 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11558 if test "${lt_cv_ld_reload_flag+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   lt_cv_ld_reload_flag='-r'
11562 fi
11563 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11564 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11565 reload_flag=$lt_cv_ld_reload_flag
11566 case $reload_flag in
11567 "" | " "*) ;;
11568 *) reload_flag=" $reload_flag" ;;
11569 esac
11570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11571 case $host_os in
11572   darwin*)
11573     if test "$GCC" = yes; then
11574       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11575     else
11576       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11577     fi
11578     ;;
11579 esac
11580
11581 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11582 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11583 if test "${lt_cv_deplibs_check_method+set}" = set; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   lt_cv_file_magic_cmd='$MAGIC_CMD'
11587 lt_cv_file_magic_test_file=
11588 lt_cv_deplibs_check_method='unknown'
11589 # Need to set the preceding variable on all platforms that support
11590 # interlibrary dependencies.
11591 # 'none' -- dependencies not supported.
11592 # `unknown' -- same as none, but documents that we really don't know.
11593 # 'pass_all' -- all dependencies passed with no checks.
11594 # 'test_compile' -- check by making test program.
11595 # 'file_magic [[regex]]' -- check by looking for files in library path
11596 # which responds to the $file_magic_cmd with a given extended regex.
11597 # If you have `file' or equivalent on your system and you're not sure
11598 # whether `pass_all' will *always* work, you probably want this one.
11599
11600 case $host_os in
11601 aix4* | aix5*)
11602   lt_cv_deplibs_check_method=pass_all
11603   ;;
11604
11605 beos*)
11606   lt_cv_deplibs_check_method=pass_all
11607   ;;
11608
11609 bsdi[45]*)
11610   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11611   lt_cv_file_magic_cmd='/usr/bin/file -L'
11612   lt_cv_file_magic_test_file=/shlib/libc.so
11613   ;;
11614
11615 cygwin*)
11616   # func_win32_libid is a shell function defined in ltmain.sh
11617   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11618   lt_cv_file_magic_cmd='func_win32_libid'
11619   ;;
11620
11621 mingw* | pw32*)
11622   # Base MSYS/MinGW do not provide the 'file' command needed by
11623   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11624   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11625   lt_cv_file_magic_cmd='$OBJDUMP -f'
11626   ;;
11627
11628 darwin* | rhapsody*)
11629   lt_cv_deplibs_check_method=pass_all
11630   ;;
11631
11632 freebsd* | kfreebsd*-gnu | dragonfly*)
11633   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11634     case $host_cpu in
11635     i*86 )
11636       # Not sure whether the presence of OpenBSD here was a mistake.
11637       # Let's accept both of them until this is cleared up.
11638       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11639       lt_cv_file_magic_cmd=/usr/bin/file
11640       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11641       ;;
11642     esac
11643   else
11644     lt_cv_deplibs_check_method=pass_all
11645   fi
11646   ;;
11647
11648 gnu*)
11649   lt_cv_deplibs_check_method=pass_all
11650   ;;
11651
11652 hpux10.20* | hpux11*)
11653   lt_cv_file_magic_cmd=/usr/bin/file
11654   case $host_cpu in
11655   ia64*)
11656     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11657     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11658     ;;
11659   hppa*64*)
11660     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]'
11661     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11662     ;;
11663   *)
11664     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11665     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11666     ;;
11667   esac
11668   ;;
11669
11670 interix3*)
11671   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11672   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11673   ;;
11674
11675 irix5* | irix6* | nonstopux*)
11676   case $LD in
11677   *-32|*"-32 ") libmagic=32-bit;;
11678   *-n32|*"-n32 ") libmagic=N32;;
11679   *-64|*"-64 ") libmagic=64-bit;;
11680   *) libmagic=never-match;;
11681   esac
11682   lt_cv_deplibs_check_method=pass_all
11683   ;;
11684
11685 # This must be Linux ELF.
11686 linux*)
11687   lt_cv_deplibs_check_method=pass_all
11688   ;;
11689
11690 netbsd*)
11691   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11692     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11693   else
11694     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11695   fi
11696   ;;
11697
11698 newos6*)
11699   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11700   lt_cv_file_magic_cmd=/usr/bin/file
11701   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11702   ;;
11703
11704 nto-qnx*)
11705   lt_cv_deplibs_check_method=unknown
11706   ;;
11707
11708 openbsd*)
11709   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11710     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11711   else
11712     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11713   fi
11714   ;;
11715
11716 osf3* | osf4* | osf5*)
11717   lt_cv_deplibs_check_method=pass_all
11718   ;;
11719
11720 solaris*)
11721   lt_cv_deplibs_check_method=pass_all
11722   ;;
11723
11724 sysv4 | sysv4.3*)
11725   case $host_vendor in
11726   motorola)
11727     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]'
11728     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11729     ;;
11730   ncr)
11731     lt_cv_deplibs_check_method=pass_all
11732     ;;
11733   sequent)
11734     lt_cv_file_magic_cmd='/bin/file'
11735     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11736     ;;
11737   sni)
11738     lt_cv_file_magic_cmd='/bin/file'
11739     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11740     lt_cv_file_magic_test_file=/lib/libc.so
11741     ;;
11742   siemens)
11743     lt_cv_deplibs_check_method=pass_all
11744     ;;
11745   pc)
11746     lt_cv_deplibs_check_method=pass_all
11747     ;;
11748   esac
11749   ;;
11750
11751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11752   lt_cv_deplibs_check_method=pass_all
11753   ;;
11754 esac
11755
11756 fi
11757 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11758 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11759 file_magic_cmd=$lt_cv_file_magic_cmd
11760 deplibs_check_method=$lt_cv_deplibs_check_method
11761 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11762
11763
11764
11765 # If no C compiler was specified, use CC.
11766 LTCC=${LTCC-"$CC"}
11767
11768 # If no C compiler flags were specified, use CFLAGS.
11769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11770
11771 # Allow CC to be a program name with arguments.
11772 compiler=$CC
11773
11774 # Check whether --enable-libtool-lock was given.
11775 if test "${enable_libtool_lock+set}" = set; then
11776   enableval=$enable_libtool_lock;
11777 fi
11778
11779 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11780
11781 # Some flags need to be propagated to the compiler or linker for good
11782 # libtool support.
11783 case $host in
11784 ia64-*-hpux*)
11785   # Find out which ABI we are using.
11786   echo 'int i;' > conftest.$ac_ext
11787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788   (eval $ac_compile) 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; then
11792     case `/usr/bin/file conftest.$ac_objext` in
11793     *ELF-32*)
11794       HPUX_IA64_MODE="32"
11795       ;;
11796     *ELF-64*)
11797       HPUX_IA64_MODE="64"
11798       ;;
11799     esac
11800   fi
11801   rm -rf conftest*
11802   ;;
11803 *-*-irix6*)
11804   # Find out which ABI we are using.
11805   echo '#line 11805 "configure"' > conftest.$ac_ext
11806   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807   (eval $ac_compile) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; then
11811    if test "$lt_cv_prog_gnu_ld" = yes; then
11812     case `/usr/bin/file conftest.$ac_objext` in
11813     *32-bit*)
11814       LD="${LD-ld} -melf32bsmip"
11815       ;;
11816     *N32*)
11817       LD="${LD-ld} -melf32bmipn32"
11818       ;;
11819     *64-bit*)
11820       LD="${LD-ld} -melf64bmip"
11821       ;;
11822     esac
11823    else
11824     case `/usr/bin/file conftest.$ac_objext` in
11825     *32-bit*)
11826       LD="${LD-ld} -32"
11827       ;;
11828     *N32*)
11829       LD="${LD-ld} -n32"
11830       ;;
11831     *64-bit*)
11832       LD="${LD-ld} -64"
11833       ;;
11834     esac
11835    fi
11836   fi
11837   rm -rf conftest*
11838   ;;
11839
11840 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11841   # Find out which ABI we are using.
11842   echo 'int i;' > conftest.$ac_ext
11843   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844   (eval $ac_compile) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; then
11848     case `/usr/bin/file conftest.o` in
11849     *32-bit*)
11850       case $host in
11851         x86_64-*linux*)
11852           LD="${LD-ld} -m elf_i386"
11853           ;;
11854         ppc64-*linux*|powerpc64-*linux*)
11855           LD="${LD-ld} -m elf32ppclinux"
11856           ;;
11857         s390x-*linux*)
11858           LD="${LD-ld} -m elf_s390"
11859           ;;
11860         sparc64-*linux*)
11861           LD="${LD-ld} -m elf32_sparc"
11862           ;;
11863       esac
11864       ;;
11865     *64-bit*)
11866       case $host in
11867         x86_64-*linux*)
11868           LD="${LD-ld} -m elf_x86_64"
11869           ;;
11870         ppc*-*linux*|powerpc*-*linux*)
11871           LD="${LD-ld} -m elf64ppc"
11872           ;;
11873         s390*-*linux*)
11874           LD="${LD-ld} -m elf64_s390"
11875           ;;
11876         sparc*-*linux*)
11877           LD="${LD-ld} -m elf64_sparc"
11878           ;;
11879       esac
11880       ;;
11881     esac
11882   fi
11883   rm -rf conftest*
11884   ;;
11885
11886 *-*-sco3.2v5*)
11887   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11888   SAVE_CFLAGS="$CFLAGS"
11889   CFLAGS="$CFLAGS -belf"
11890   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11891 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11892 if test "${lt_cv_cc_needs_belf+set}" = set; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895   ac_ext=c
11896 ac_cpp='$CPP $CPPFLAGS'
11897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901      cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907
11908 int
11909 main ()
11910 {
11911
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_link") 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } && {
11930          test -z "$ac_c_werror_flag" ||
11931          test ! -s conftest.err
11932        } && test -s conftest$ac_exeext &&
11933        $as_test_x conftest$ac_exeext; then
11934   lt_cv_cc_needs_belf=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939         lt_cv_cc_needs_belf=no
11940 fi
11941
11942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11943       conftest$ac_exeext conftest.$ac_ext
11944      ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 fi
11951 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11952 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11953   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11954     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11955     CFLAGS="$SAVE_CFLAGS"
11956   fi
11957   ;;
11958 sparc*-*solaris*)
11959   # Find out which ABI we are using.
11960   echo 'int i;' > conftest.$ac_ext
11961   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962   (eval $ac_compile) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; then
11966     case `/usr/bin/file conftest.o` in
11967     *64-bit*)
11968       case $lt_cv_prog_gnu_ld in
11969       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11970       *)    LD="${LD-ld} -64" ;;
11971       esac
11972       ;;
11973     esac
11974   fi
11975   rm -rf conftest*
11976   ;;
11977
11978
11979 esac
11980
11981 need_locks="$enable_libtool_lock"
11982
11983
11984
11985
11986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11987     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11988     (test "X$CXX" != "Xg++"))) ; then
11989   ac_ext=cpp
11990 ac_cpp='$CXXCPP $CPPFLAGS'
11991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11994 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11995 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11996 if test -z "$CXXCPP"; then
11997   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000       # Double quotes because CXXCPP needs to be expanded
12001     for CXXCPP in "$CXX -E" "/lib/cpp"
12002     do
12003       ac_preproc_ok=false
12004 for ac_cxx_preproc_warn_flag in '' yes
12005 do
12006   # Use a header file that comes with gcc, so configuring glibc
12007   # with a fresh cross-compiler works.
12008   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12009   # <limits.h> exists even on freestanding compilers.
12010   # On the NeXT, cc -E runs the code through the compiler's parser,
12011   # not just through cpp. "Syntax error" is here to catch this case.
12012   cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h.  */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h.  */
12018 #ifdef __STDC__
12019 # include <limits.h>
12020 #else
12021 # include <assert.h>
12022 #endif
12023                      Syntax error
12024 _ACEOF
12025 if { (ac_try="$ac_cpp conftest.$ac_ext"
12026 case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } >/dev/null && {
12038          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12039          test ! -s conftest.err
12040        }; then
12041   :
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046   # Broken: fails on valid input.
12047 continue
12048 fi
12049
12050 rm -f conftest.err conftest.$ac_ext
12051
12052   # OK, works on sane cases.  Now check whether nonexistent headers
12053   # can be detected and how.
12054   cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 #include <ac_nonexistent.h>
12061 _ACEOF
12062 if { (ac_try="$ac_cpp conftest.$ac_ext"
12063 case "(($ac_try" in
12064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065   *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12069   ac_status=$?
12070   grep -v '^ *+' conftest.er1 >conftest.err
12071   rm -f conftest.er1
12072   cat conftest.err >&5
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } >/dev/null && {
12075          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12076          test ! -s conftest.err
12077        }; then
12078   # Broken: success on invalid input.
12079 continue
12080 else
12081   echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12083
12084   # Passes both tests.
12085 ac_preproc_ok=:
12086 break
12087 fi
12088
12089 rm -f conftest.err conftest.$ac_ext
12090
12091 done
12092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12093 rm -f conftest.err conftest.$ac_ext
12094 if $ac_preproc_ok; then
12095   break
12096 fi
12097
12098     done
12099     ac_cv_prog_CXXCPP=$CXXCPP
12100
12101 fi
12102   CXXCPP=$ac_cv_prog_CXXCPP
12103 else
12104   ac_cv_prog_CXXCPP=$CXXCPP
12105 fi
12106 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12107 echo "${ECHO_T}$CXXCPP" >&6; }
12108 ac_preproc_ok=false
12109 for ac_cxx_preproc_warn_flag in '' yes
12110 do
12111   # Use a header file that comes with gcc, so configuring glibc
12112   # with a fresh cross-compiler works.
12113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12114   # <limits.h> exists even on freestanding compilers.
12115   # On the NeXT, cc -E runs the code through the compiler's parser,
12116   # not just through cpp. "Syntax error" is here to catch this case.
12117   cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123 #ifdef __STDC__
12124 # include <limits.h>
12125 #else
12126 # include <assert.h>
12127 #endif
12128                      Syntax error
12129 _ACEOF
12130 if { (ac_try="$ac_cpp conftest.$ac_ext"
12131 case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } >/dev/null && {
12143          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12144          test ! -s conftest.err
12145        }; then
12146   :
12147 else
12148   echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151   # Broken: fails on valid input.
12152 continue
12153 fi
12154
12155 rm -f conftest.err conftest.$ac_ext
12156
12157   # OK, works on sane cases.  Now check whether nonexistent headers
12158   # can be detected and how.
12159   cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 #include <ac_nonexistent.h>
12166 _ACEOF
12167 if { (ac_try="$ac_cpp conftest.$ac_ext"
12168 case "(($ac_try" in
12169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170   *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } >/dev/null && {
12180          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12181          test ! -s conftest.err
12182        }; then
12183   # Broken: success on invalid input.
12184 continue
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189   # Passes both tests.
12190 ac_preproc_ok=:
12191 break
12192 fi
12193
12194 rm -f conftest.err conftest.$ac_ext
12195
12196 done
12197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198 rm -f conftest.err conftest.$ac_ext
12199 if $ac_preproc_ok; then
12200   :
12201 else
12202   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12203 See \`config.log' for more details." >&5
12204 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12205 See \`config.log' for more details." >&2;}
12206    { (exit 1); exit 1; }; }
12207 fi
12208
12209 ac_ext=cpp
12210 ac_cpp='$CXXCPP $CPPFLAGS'
12211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12214
12215 fi
12216
12217
12218 ac_ext=f
12219 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12220 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12222 if test -n "$ac_tool_prefix"; then
12223   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
12224   do
12225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12229 if test "${ac_cv_prog_F77+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   if test -n "$F77"; then
12233   ac_cv_prog_F77="$F77" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240   for ac_exec_ext in '' $ac_executable_extensions; do
12241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12242     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247 done
12248 IFS=$as_save_IFS
12249
12250 fi
12251 fi
12252 F77=$ac_cv_prog_F77
12253 if test -n "$F77"; then
12254   { echo "$as_me:$LINENO: result: $F77" >&5
12255 echo "${ECHO_T}$F77" >&6; }
12256 else
12257   { echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6; }
12259 fi
12260
12261
12262     test -n "$F77" && break
12263   done
12264 fi
12265 if test -z "$F77"; then
12266   ac_ct_F77=$F77
12267   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
12268 do
12269   # Extract the first word of "$ac_prog", so it can be a program name with args.
12270 set dummy $ac_prog; ac_word=$2
12271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12273 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276   if test -n "$ac_ct_F77"; then
12277   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284   for ac_exec_ext in '' $ac_executable_extensions; do
12285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286     ac_cv_prog_ac_ct_F77="$ac_prog"
12287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12288     break 2
12289   fi
12290 done
12291 done
12292 IFS=$as_save_IFS
12293
12294 fi
12295 fi
12296 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12297 if test -n "$ac_ct_F77"; then
12298   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12299 echo "${ECHO_T}$ac_ct_F77" >&6; }
12300 else
12301   { echo "$as_me:$LINENO: result: no" >&5
12302 echo "${ECHO_T}no" >&6; }
12303 fi
12304
12305
12306   test -n "$ac_ct_F77" && break
12307 done
12308
12309   if test "x$ac_ct_F77" = x; then
12310     F77=""
12311   else
12312     case $cross_compiling:$ac_tool_warned in
12313 yes:)
12314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12315 whose name does not start with the host triplet.  If you think this
12316 configuration is useful to you, please write to autoconf@gnu.org." >&5
12317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12318 whose name does not start with the host triplet.  If you think this
12319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12320 ac_tool_warned=yes ;;
12321 esac
12322     F77=$ac_ct_F77
12323   fi
12324 fi
12325
12326
12327 # Provide some information about the compiler.
12328 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12329 ac_compiler=`set X $ac_compile; echo $2`
12330 { (ac_try="$ac_compiler --version >&5"
12331 case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336   (eval "$ac_compiler --version >&5") 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); }
12340 { (ac_try="$ac_compiler -v >&5"
12341 case "(($ac_try" in
12342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343   *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346   (eval "$ac_compiler -v >&5") 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }
12350 { (ac_try="$ac_compiler -V >&5"
12351 case "(($ac_try" in
12352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353   *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356   (eval "$ac_compiler -V >&5") 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }
12360 rm -f a.out
12361
12362 # If we don't use `.F' as extension, the preprocessor is not run on the
12363 # input file.  (Note that this only needs to work for GNU compilers.)
12364 ac_save_ext=$ac_ext
12365 ac_ext=F
12366 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12367 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12368 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12369   echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371   cat >conftest.$ac_ext <<_ACEOF
12372       program main
12373 #ifndef __GNUC__
12374        choke me
12375 #endif
12376
12377       end
12378 _ACEOF
12379 rm -f conftest.$ac_objext
12380 if { (ac_try="$ac_compile"
12381 case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386   (eval "$ac_compile") 2>conftest.er1
12387   ac_status=$?
12388   grep -v '^ *+' conftest.er1 >conftest.err
12389   rm -f conftest.er1
12390   cat conftest.err >&5
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); } && {
12393          test -z "$ac_f77_werror_flag" ||
12394          test ! -s conftest.err
12395        } && test -s conftest.$ac_objext; then
12396   ac_compiler_gnu=yes
12397 else
12398   echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401         ac_compiler_gnu=no
12402 fi
12403
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12406
12407 fi
12408 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12409 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12410 ac_ext=$ac_save_ext
12411 ac_test_FFLAGS=${FFLAGS+set}
12412 ac_save_FFLAGS=$FFLAGS
12413 FFLAGS=
12414 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12415 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12416 if test "${ac_cv_prog_f77_g+set}" = set; then
12417   echo $ECHO_N "(cached) $ECHO_C" >&6
12418 else
12419   FFLAGS=-g
12420 cat >conftest.$ac_ext <<_ACEOF
12421       program main
12422
12423       end
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (ac_try="$ac_compile"
12427 case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_compile") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && {
12439          test -z "$ac_f77_werror_flag" ||
12440          test ! -s conftest.err
12441        } && test -s conftest.$ac_objext; then
12442   ac_cv_prog_f77_g=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447         ac_cv_prog_f77_g=no
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451
12452 fi
12453 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12454 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12455 if test "$ac_test_FFLAGS" = set; then
12456   FFLAGS=$ac_save_FFLAGS
12457 elif test $ac_cv_prog_f77_g = yes; then
12458   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12459     FFLAGS="-g -O2"
12460   else
12461     FFLAGS="-g"
12462   fi
12463 else
12464   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12465     FFLAGS="-O2"
12466   else
12467     FFLAGS=
12468   fi
12469 fi
12470
12471 G77=`test $ac_compiler_gnu = yes && echo yes`
12472 ac_ext=c
12473 ac_cpp='$CPP $CPPFLAGS'
12474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477
12478
12479
12480 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12481
12482 # find the maximum length of command line arguments
12483 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12484 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12485 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488     i=0
12489   teststring="ABCD"
12490
12491   case $build_os in
12492   msdosdjgpp*)
12493     # On DJGPP, this test can blow up pretty badly due to problems in libc
12494     # (any single argument exceeding 2000 bytes causes a buffer overrun
12495     # during glob expansion).  Even if it were fixed, the result of this
12496     # check would be larger than it should be.
12497     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12498     ;;
12499
12500   gnu*)
12501     # Under GNU Hurd, this test is not required because there is
12502     # no limit to the length of command line arguments.
12503     # Libtool will interpret -1 as no limit whatsoever
12504     lt_cv_sys_max_cmd_len=-1;
12505     ;;
12506
12507   cygwin* | mingw*)
12508     # On Win9x/ME, this test blows up -- it succeeds, but takes
12509     # about 5 minutes as the teststring grows exponentially.
12510     # Worse, since 9x/ME are not pre-emptively multitasking,
12511     # you end up with a "frozen" computer, even though with patience
12512     # the test eventually succeeds (with a max line length of 256k).
12513     # Instead, let's just punt: use the minimum linelength reported by
12514     # all of the supported platforms: 8192 (on NT/2K/XP).
12515     lt_cv_sys_max_cmd_len=8192;
12516     ;;
12517
12518   amigaos*)
12519     # On AmigaOS with pdksh, this test takes hours, literally.
12520     # So we just punt and use a minimum line length of 8192.
12521     lt_cv_sys_max_cmd_len=8192;
12522     ;;
12523
12524   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12525     # This has been around since 386BSD, at least.  Likely further.
12526     if test -x /sbin/sysctl; then
12527       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12528     elif test -x /usr/sbin/sysctl; then
12529       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12530     else
12531       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12532     fi
12533     # And add a safety zone
12534     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12535     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12536     ;;
12537
12538   interix*)
12539     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12540     lt_cv_sys_max_cmd_len=196608
12541     ;;
12542
12543   osf*)
12544     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12545     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12546     # nice to cause kernel panics so lets avoid the loop below.
12547     # First set a reasonable default.
12548     lt_cv_sys_max_cmd_len=16384
12549     #
12550     if test -x /sbin/sysconfig; then
12551       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12552         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12553       esac
12554     fi
12555     ;;
12556   sco3.2v5*)
12557     lt_cv_sys_max_cmd_len=102400
12558     ;;
12559   sysv5* | sco5v6* | sysv4.2uw2*)
12560     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12561     if test -n "$kargmax"; then
12562       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12563     else
12564       lt_cv_sys_max_cmd_len=32768
12565     fi
12566     ;;
12567   *)
12568     # If test is not a shell built-in, we'll probably end up computing a
12569     # maximum length that is only half of the actual maximum length, but
12570     # we can't tell.
12571     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12572     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12573                = "XX$teststring") >/dev/null 2>&1 &&
12574             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12575             lt_cv_sys_max_cmd_len=$new_result &&
12576             test $i != 17 # 1/2 MB should be enough
12577     do
12578       i=`expr $i + 1`
12579       teststring=$teststring$teststring
12580     done
12581     teststring=
12582     # Add a significant safety factor because C++ compilers can tack on massive
12583     # amounts of additional arguments before passing them to the linker.
12584     # It appears as though 1/2 is a usable value.
12585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12586     ;;
12587   esac
12588
12589 fi
12590
12591 if test -n $lt_cv_sys_max_cmd_len ; then
12592   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12593 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12594 else
12595   { echo "$as_me:$LINENO: result: none" >&5
12596 echo "${ECHO_T}none" >&6; }
12597 fi
12598
12599
12600
12601
12602 # Check for command to grab the raw symbol name followed by C symbol from nm.
12603 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12604 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12605 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12606   echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608
12609 # These are sane defaults that work on at least a few old systems.
12610 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12611
12612 # Character class describing NM global symbol codes.
12613 symcode='[BCDEGRST]'
12614
12615 # Regexp to match symbols that can be accessed directly from C.
12616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12617
12618 # Transform an extracted symbol line into a proper C declaration
12619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12620
12621 # Transform an extracted symbol line into symbol name and symbol address
12622 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'"
12623
12624 # Define system-specific variables.
12625 case $host_os in
12626 aix*)
12627   symcode='[BCDT]'
12628   ;;
12629 cygwin* | mingw* | pw32*)
12630   symcode='[ABCDGISTW]'
12631   ;;
12632 hpux*) # Its linker distinguishes data from code symbols
12633   if test "$host_cpu" = ia64; then
12634     symcode='[ABCDEGRST]'
12635   fi
12636   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12637   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'"
12638   ;;
12639 linux*)
12640   if test "$host_cpu" = ia64; then
12641     symcode='[ABCDGIRSTW]'
12642     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12643     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'"
12644   fi
12645   ;;
12646 irix* | nonstopux*)
12647   symcode='[BCDEGRST]'
12648   ;;
12649 osf*)
12650   symcode='[BCDEGQRST]'
12651   ;;
12652 solaris*)
12653   symcode='[BDRT]'
12654   ;;
12655 sco3.2v5*)
12656   symcode='[DT]'
12657   ;;
12658 sysv4.2uw2*)
12659   symcode='[DT]'
12660   ;;
12661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12662   symcode='[ABDT]'
12663   ;;
12664 sysv4)
12665   symcode='[DFNSTU]'
12666   ;;
12667 esac
12668
12669 # Handle CRLF in mingw tool chain
12670 opt_cr=
12671 case $build_os in
12672 mingw*)
12673   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12674   ;;
12675 esac
12676
12677 # If we're using GNU nm, then use its standard symbol codes.
12678 case `$NM -V 2>&1` in
12679 *GNU* | *'with BFD'*)
12680   symcode='[ABCDGIRSTW]' ;;
12681 esac
12682
12683 # Try without a prefix undercore, then with it.
12684 for ac_symprfx in "" "_"; do
12685
12686   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12687   symxfrm="\\1 $ac_symprfx\\2 \\2"
12688
12689   # Write the raw and C identifiers.
12690   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12691
12692   # Check to see that the pipe works correctly.
12693   pipe_works=no
12694
12695   rm -f conftest*
12696   cat > conftest.$ac_ext <<EOF
12697 #ifdef __cplusplus
12698 extern "C" {
12699 #endif
12700 char nm_test_var;
12701 void nm_test_func(){}
12702 #ifdef __cplusplus
12703 }
12704 #endif
12705 int main(){nm_test_var='a';nm_test_func();return(0);}
12706 EOF
12707
12708   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; then
12713     # Now try to grab the symbols.
12714     nlist=conftest.nm
12715     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12716   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } && test -s "$nlist"; then
12720       # Try sorting and uniquifying the output.
12721       if sort "$nlist" | uniq > "$nlist"T; then
12722         mv -f "$nlist"T "$nlist"
12723       else
12724         rm -f "$nlist"T
12725       fi
12726
12727       # Make sure that we snagged all the symbols we need.
12728       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12729         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12730           cat <<EOF > conftest.$ac_ext
12731 #ifdef __cplusplus
12732 extern "C" {
12733 #endif
12734
12735 EOF
12736           # Now generate the symbol file.
12737           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12738
12739           cat <<EOF >> conftest.$ac_ext
12740 #if defined (__STDC__) && __STDC__
12741 # define lt_ptr_t void *
12742 #else
12743 # define lt_ptr_t char *
12744 # define const
12745 #endif
12746
12747 /* The mapping between symbol names and symbols. */
12748 const struct {
12749   const char *name;
12750   lt_ptr_t address;
12751 }
12752 lt_preloaded_symbols[] =
12753 {
12754 EOF
12755           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12756           cat <<\EOF >> conftest.$ac_ext
12757   {0, (lt_ptr_t) 0}
12758 };
12759
12760 #ifdef __cplusplus
12761 }
12762 #endif
12763 EOF
12764           # Now try linking the two files.
12765           mv conftest.$ac_objext conftstm.$ac_objext
12766           lt_save_LIBS="$LIBS"
12767           lt_save_CFLAGS="$CFLAGS"
12768           LIBS="conftstm.$ac_objext"
12769           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12770           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771   (eval $ac_link) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12775             pipe_works=yes
12776           fi
12777           LIBS="$lt_save_LIBS"
12778           CFLAGS="$lt_save_CFLAGS"
12779         else
12780           echo "cannot find nm_test_func in $nlist" >&5
12781         fi
12782       else
12783         echo "cannot find nm_test_var in $nlist" >&5
12784       fi
12785     else
12786       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12787     fi
12788   else
12789     echo "$progname: failed program was:" >&5
12790     cat conftest.$ac_ext >&5
12791   fi
12792   rm -f conftest* conftst*
12793
12794   # Do not use the global_symbol_pipe unless it works.
12795   if test "$pipe_works" = yes; then
12796     break
12797   else
12798     lt_cv_sys_global_symbol_pipe=
12799   fi
12800 done
12801
12802 fi
12803
12804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12805   lt_cv_sys_global_symbol_to_cdecl=
12806 fi
12807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12808   { echo "$as_me:$LINENO: result: failed" >&5
12809 echo "${ECHO_T}failed" >&6; }
12810 else
12811   { echo "$as_me:$LINENO: result: ok" >&5
12812 echo "${ECHO_T}ok" >&6; }
12813 fi
12814
12815 { echo "$as_me:$LINENO: checking for objdir" >&5
12816 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12817 if test "${lt_cv_objdir+set}" = set; then
12818   echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820   rm -f .libs 2>/dev/null
12821 mkdir .libs 2>/dev/null
12822 if test -d .libs; then
12823   lt_cv_objdir=.libs
12824 else
12825   # MS-DOS does not allow filenames that begin with a dot.
12826   lt_cv_objdir=_libs
12827 fi
12828 rmdir .libs 2>/dev/null
12829 fi
12830 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12831 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12832 objdir=$lt_cv_objdir
12833
12834
12835
12836
12837
12838 case $host_os in
12839 aix3*)
12840   # AIX sometimes has problems with the GCC collect2 program.  For some
12841   # reason, if we set the COLLECT_NAMES environment variable, the problems
12842   # vanish in a puff of smoke.
12843   if test "X${COLLECT_NAMES+set}" != Xset; then
12844     COLLECT_NAMES=
12845     export COLLECT_NAMES
12846   fi
12847   ;;
12848 esac
12849
12850 # Sed substitution that helps us do robust quoting.  It backslashifies
12851 # metacharacters that are still active within double-quoted strings.
12852 Xsed='sed -e 1s/^X//'
12853 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12854
12855 # Same as above, but do not quote variable references.
12856 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12857
12858 # Sed substitution to delay expansion of an escaped shell variable in a
12859 # double_quote_subst'ed string.
12860 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12861
12862 # Sed substitution to avoid accidental globbing in evaled expressions
12863 no_glob_subst='s/\*/\\\*/g'
12864
12865 # Constants:
12866 rm="rm -f"
12867
12868 # Global variables:
12869 default_ofile=mklib
12870 can_build_shared=yes
12871
12872 # All known linkers require a `.a' archive for static linking (except MSVC,
12873 # which needs '.lib').
12874 libext=a
12875 ltmain="$ac_aux_dir/ltmain.sh"
12876 ofile="$default_ofile"
12877 with_gnu_ld="$lt_cv_prog_gnu_ld"
12878
12879 if test -n "$ac_tool_prefix"; then
12880   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12881 set dummy ${ac_tool_prefix}ar; ac_word=$2
12882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12884 if test "${ac_cv_prog_AR+set}" = set; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887   if test -n "$AR"; then
12888   ac_cv_prog_AR="$AR" # Let the user override the test.
12889 else
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12892 do
12893   IFS=$as_save_IFS
12894   test -z "$as_dir" && as_dir=.
12895   for ac_exec_ext in '' $ac_executable_extensions; do
12896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897     ac_cv_prog_AR="${ac_tool_prefix}ar"
12898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12899     break 2
12900   fi
12901 done
12902 done
12903 IFS=$as_save_IFS
12904
12905 fi
12906 fi
12907 AR=$ac_cv_prog_AR
12908 if test -n "$AR"; then
12909   { echo "$as_me:$LINENO: result: $AR" >&5
12910 echo "${ECHO_T}$AR" >&6; }
12911 else
12912   { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12914 fi
12915
12916
12917 fi
12918 if test -z "$ac_cv_prog_AR"; then
12919   ac_ct_AR=$AR
12920   # Extract the first word of "ar", so it can be a program name with args.
12921 set dummy ar; ac_word=$2
12922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12925   echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927   if test -n "$ac_ct_AR"; then
12928   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12929 else
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12932 do
12933   IFS=$as_save_IFS
12934   test -z "$as_dir" && as_dir=.
12935   for ac_exec_ext in '' $ac_executable_extensions; do
12936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937     ac_cv_prog_ac_ct_AR="ar"
12938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12939     break 2
12940   fi
12941 done
12942 done
12943 IFS=$as_save_IFS
12944
12945 fi
12946 fi
12947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12948 if test -n "$ac_ct_AR"; then
12949   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12950 echo "${ECHO_T}$ac_ct_AR" >&6; }
12951 else
12952   { echo "$as_me:$LINENO: result: no" >&5
12953 echo "${ECHO_T}no" >&6; }
12954 fi
12955
12956   if test "x$ac_ct_AR" = x; then
12957     AR="false"
12958   else
12959     case $cross_compiling:$ac_tool_warned in
12960 yes:)
12961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12962 whose name does not start with the host triplet.  If you think this
12963 configuration is useful to you, please write to autoconf@gnu.org." >&5
12964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12965 whose name does not start with the host triplet.  If you think this
12966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12967 ac_tool_warned=yes ;;
12968 esac
12969     AR=$ac_ct_AR
12970   fi
12971 else
12972   AR="$ac_cv_prog_AR"
12973 fi
12974
12975 if test -n "$ac_tool_prefix"; then
12976   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12980 if test "${ac_cv_prog_RANLIB+set}" = set; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983   if test -n "$RANLIB"; then
12984   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12985 else
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989   IFS=$as_save_IFS
12990   test -z "$as_dir" && as_dir=.
12991   for ac_exec_ext in '' $ac_executable_extensions; do
12992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995     break 2
12996   fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 fi
13002 fi
13003 RANLIB=$ac_cv_prog_RANLIB
13004 if test -n "$RANLIB"; then
13005   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13006 echo "${ECHO_T}$RANLIB" >&6; }
13007 else
13008   { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13010 fi
13011
13012
13013 fi
13014 if test -z "$ac_cv_prog_RANLIB"; then
13015   ac_ct_RANLIB=$RANLIB
13016   # Extract the first word of "ranlib", so it can be a program name with args.
13017 set dummy ranlib; ac_word=$2
13018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13020 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   if test -n "$ac_ct_RANLIB"; then
13024   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13025 else
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13028 do
13029   IFS=$as_save_IFS
13030   test -z "$as_dir" && as_dir=.
13031   for ac_exec_ext in '' $ac_executable_extensions; do
13032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033     ac_cv_prog_ac_ct_RANLIB="ranlib"
13034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13035     break 2
13036   fi
13037 done
13038 done
13039 IFS=$as_save_IFS
13040
13041 fi
13042 fi
13043 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13044 if test -n "$ac_ct_RANLIB"; then
13045   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13046 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13047 else
13048   { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13050 fi
13051
13052   if test "x$ac_ct_RANLIB" = x; then
13053     RANLIB=":"
13054   else
13055     case $cross_compiling:$ac_tool_warned in
13056 yes:)
13057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13058 whose name does not start with the host triplet.  If you think this
13059 configuration is useful to you, please write to autoconf@gnu.org." >&5
13060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13061 whose name does not start with the host triplet.  If you think this
13062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13063 ac_tool_warned=yes ;;
13064 esac
13065     RANLIB=$ac_ct_RANLIB
13066   fi
13067 else
13068   RANLIB="$ac_cv_prog_RANLIB"
13069 fi
13070
13071 if test -n "$ac_tool_prefix"; then
13072   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13073 set dummy ${ac_tool_prefix}strip; ac_word=$2
13074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13076 if test "${ac_cv_prog_STRIP+set}" = set; then
13077   echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079   if test -n "$STRIP"; then
13080   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087   for ac_exec_ext in '' $ac_executable_extensions; do
13088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097 fi
13098 fi
13099 STRIP=$ac_cv_prog_STRIP
13100 if test -n "$STRIP"; then
13101   { echo "$as_me:$LINENO: result: $STRIP" >&5
13102 echo "${ECHO_T}$STRIP" >&6; }
13103 else
13104   { echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6; }
13106 fi
13107
13108
13109 fi
13110 if test -z "$ac_cv_prog_STRIP"; then
13111   ac_ct_STRIP=$STRIP
13112   # Extract the first word of "strip", so it can be a program name with args.
13113 set dummy strip; ac_word=$2
13114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13117   echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119   if test -n "$ac_ct_STRIP"; then
13120   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13124 do
13125   IFS=$as_save_IFS
13126   test -z "$as_dir" && as_dir=.
13127   for ac_exec_ext in '' $ac_executable_extensions; do
13128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129     ac_cv_prog_ac_ct_STRIP="strip"
13130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131     break 2
13132   fi
13133 done
13134 done
13135 IFS=$as_save_IFS
13136
13137 fi
13138 fi
13139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13140 if test -n "$ac_ct_STRIP"; then
13141   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13142 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13143 else
13144   { echo "$as_me:$LINENO: result: no" >&5
13145 echo "${ECHO_T}no" >&6; }
13146 fi
13147
13148   if test "x$ac_ct_STRIP" = x; then
13149     STRIP=":"
13150   else
13151     case $cross_compiling:$ac_tool_warned in
13152 yes:)
13153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13154 whose name does not start with the host triplet.  If you think this
13155 configuration is useful to you, please write to autoconf@gnu.org." >&5
13156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13157 whose name does not start with the host triplet.  If you think this
13158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13159 ac_tool_warned=yes ;;
13160 esac
13161     STRIP=$ac_ct_STRIP
13162   fi
13163 else
13164   STRIP="$ac_cv_prog_STRIP"
13165 fi
13166
13167
13168 old_CC="$CC"
13169 old_CFLAGS="$CFLAGS"
13170
13171 # Set sane defaults for various variables
13172 test -z "$AR" && AR=ar
13173 test -z "$AR_FLAGS" && AR_FLAGS=cru
13174 test -z "$AS" && AS=as
13175 test -z "$CC" && CC=cc
13176 test -z "$LTCC" && LTCC=$CC
13177 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13178 test -z "$DLLTOOL" && DLLTOOL=dlltool
13179 test -z "$LD" && LD=ld
13180 test -z "$LN_S" && LN_S="ln -s"
13181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13182 test -z "$NM" && NM=nm
13183 test -z "$SED" && SED=sed
13184 test -z "$OBJDUMP" && OBJDUMP=objdump
13185 test -z "$RANLIB" && RANLIB=:
13186 test -z "$STRIP" && STRIP=:
13187 test -z "$ac_objext" && ac_objext=o
13188
13189 # Determine commands to create old-style static archives.
13190 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13191 old_postinstall_cmds='chmod 644 $oldlib'
13192 old_postuninstall_cmds=
13193
13194 if test -n "$RANLIB"; then
13195   case $host_os in
13196   openbsd*)
13197     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13198     ;;
13199   *)
13200     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13201     ;;
13202   esac
13203   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13204 fi
13205
13206 for cc_temp in $compiler""; do
13207   case $cc_temp in
13208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13210     \-*) ;;
13211     *) break;;
13212   esac
13213 done
13214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13215
13216
13217 # Only perform the check for file, if the check method requires it
13218 case $deplibs_check_method in
13219 file_magic*)
13220   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13221     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13222 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   case $MAGIC_CMD in
13227 [\\/*] |  ?:[\\/]*)
13228   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13229   ;;
13230 *)
13231   lt_save_MAGIC_CMD="$MAGIC_CMD"
13232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13233   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13234   for ac_dir in $ac_dummy; do
13235     IFS="$lt_save_ifs"
13236     test -z "$ac_dir" && ac_dir=.
13237     if test -f $ac_dir/${ac_tool_prefix}file; then
13238       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13239       if test -n "$file_magic_test_file"; then
13240         case $deplibs_check_method in
13241         "file_magic "*)
13242           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13243           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13244           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13245             $EGREP "$file_magic_regex" > /dev/null; then
13246             :
13247           else
13248             cat <<EOF 1>&2
13249
13250 *** Warning: the command libtool uses to detect shared libraries,
13251 *** $file_magic_cmd, produces output that libtool cannot recognize.
13252 *** The result is that libtool may fail to recognize shared libraries
13253 *** as such.  This will affect the creation of libtool libraries that
13254 *** depend on shared libraries, but programs linked with such libtool
13255 *** libraries will work regardless of this problem.  Nevertheless, you
13256 *** may want to report the problem to your system manager and/or to
13257 *** bug-libtool@gnu.org
13258
13259 EOF
13260           fi ;;
13261         esac
13262       fi
13263       break
13264     fi
13265   done
13266   IFS="$lt_save_ifs"
13267   MAGIC_CMD="$lt_save_MAGIC_CMD"
13268   ;;
13269 esac
13270 fi
13271
13272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13273 if test -n "$MAGIC_CMD"; then
13274   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13276 else
13277   { echo "$as_me:$LINENO: result: no" >&5
13278 echo "${ECHO_T}no" >&6; }
13279 fi
13280
13281 if test -z "$lt_cv_path_MAGIC_CMD"; then
13282   if test -n "$ac_tool_prefix"; then
13283     { echo "$as_me:$LINENO: checking for file" >&5
13284 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13285 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13286   echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288   case $MAGIC_CMD in
13289 [\\/*] |  ?:[\\/]*)
13290   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13291   ;;
13292 *)
13293   lt_save_MAGIC_CMD="$MAGIC_CMD"
13294   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13295   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13296   for ac_dir in $ac_dummy; do
13297     IFS="$lt_save_ifs"
13298     test -z "$ac_dir" && ac_dir=.
13299     if test -f $ac_dir/file; then
13300       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13301       if test -n "$file_magic_test_file"; then
13302         case $deplibs_check_method in
13303         "file_magic "*)
13304           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13305           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13306           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13307             $EGREP "$file_magic_regex" > /dev/null; then
13308             :
13309           else
13310             cat <<EOF 1>&2
13311
13312 *** Warning: the command libtool uses to detect shared libraries,
13313 *** $file_magic_cmd, produces output that libtool cannot recognize.
13314 *** The result is that libtool may fail to recognize shared libraries
13315 *** as such.  This will affect the creation of libtool libraries that
13316 *** depend on shared libraries, but programs linked with such libtool
13317 *** libraries will work regardless of this problem.  Nevertheless, you
13318 *** may want to report the problem to your system manager and/or to
13319 *** bug-libtool@gnu.org
13320
13321 EOF
13322           fi ;;
13323         esac
13324       fi
13325       break
13326     fi
13327   done
13328   IFS="$lt_save_ifs"
13329   MAGIC_CMD="$lt_save_MAGIC_CMD"
13330   ;;
13331 esac
13332 fi
13333
13334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13335 if test -n "$MAGIC_CMD"; then
13336   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13337 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13338 else
13339   { echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6; }
13341 fi
13342
13343   else
13344     MAGIC_CMD=:
13345   fi
13346 fi
13347
13348   fi
13349   ;;
13350 esac
13351
13352 enable_dlopen=yes
13353 enable_win32_dll=no
13354
13355 # Check whether --enable-libtool-lock was given.
13356 if test "${enable_libtool_lock+set}" = set; then
13357   enableval=$enable_libtool_lock;
13358 fi
13359
13360 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13361
13362
13363 # Check whether --with-pic was given.
13364 if test "${with_pic+set}" = set; then
13365   withval=$with_pic; pic_mode="$withval"
13366 else
13367   pic_mode=default
13368 fi
13369
13370 test -z "$pic_mode" && pic_mode=default
13371
13372 # Use C for the default configuration in the libtool script
13373 tagname=
13374 lt_save_CC="$CC"
13375 ac_ext=c
13376 ac_cpp='$CPP $CPPFLAGS'
13377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13380
13381
13382 # Source file extension for C test sources.
13383 ac_ext=c
13384
13385 # Object file extension for compiled C test sources.
13386 objext=o
13387 objext=$objext
13388
13389 # Code to be used in simple compile tests
13390 lt_simple_compile_test_code="int some_variable = 0;\n"
13391
13392 # Code to be used in simple link tests
13393 lt_simple_link_test_code='int main(){return(0);}\n'
13394
13395
13396 # If no C compiler was specified, use CC.
13397 LTCC=${LTCC-"$CC"}
13398
13399 # If no C compiler flags were specified, use CFLAGS.
13400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13401
13402 # Allow CC to be a program name with arguments.
13403 compiler=$CC
13404
13405
13406 # save warnings/boilerplate of simple test code
13407 ac_outfile=conftest.$ac_objext
13408 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410 _lt_compiler_boilerplate=`cat conftest.err`
13411 $rm conftest*
13412
13413 ac_outfile=conftest.$ac_objext
13414 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416 _lt_linker_boilerplate=`cat conftest.err`
13417 $rm conftest*
13418
13419
13420
13421 lt_prog_compiler_no_builtin_flag=
13422
13423 if test "$GCC" = yes; then
13424   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13425
13426
13427 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13428 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432   lt_cv_prog_compiler_rtti_exceptions=no
13433   ac_outfile=conftest.$ac_objext
13434    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13435    lt_compiler_flag="-fno-rtti -fno-exceptions"
13436    # Insert the option either (1) after the last *FLAGS variable, or
13437    # (2) before a word containing "conftest.", or (3) at the end.
13438    # Note that $ac_compile itself does not contain backslashes and begins
13439    # with a dollar sign (not a hyphen), so the echo should work correctly.
13440    # The option is referenced via a variable to avoid confusing sed.
13441    lt_compile=`echo "$ac_compile" | $SED \
13442    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444    -e 's:$: $lt_compiler_flag:'`
13445    (eval echo "\"\$as_me:13445: $lt_compile\"" >&5)
13446    (eval "$lt_compile" 2>conftest.err)
13447    ac_status=$?
13448    cat conftest.err >&5
13449    echo "$as_me:13449: \$? = $ac_status" >&5
13450    if (exit $ac_status) && test -s "$ac_outfile"; then
13451      # The compiler can only warn and ignore the option if not recognized
13452      # So say no if there are warnings other than the usual output.
13453      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13454      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13455      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13456        lt_cv_prog_compiler_rtti_exceptions=yes
13457      fi
13458    fi
13459    $rm conftest*
13460
13461 fi
13462 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13463 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13464
13465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13466     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13467 else
13468     :
13469 fi
13470
13471 fi
13472
13473 lt_prog_compiler_wl=
13474 lt_prog_compiler_pic=
13475 lt_prog_compiler_static=
13476
13477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13479
13480   if test "$GCC" = yes; then
13481     lt_prog_compiler_wl='-Wl,'
13482     lt_prog_compiler_static='-static'
13483
13484     case $host_os in
13485       aix*)
13486       # All AIX code is PIC.
13487       if test "$host_cpu" = ia64; then
13488         # AIX 5 now supports IA64 processor
13489         lt_prog_compiler_static='-Bstatic'
13490       fi
13491       ;;
13492
13493     amigaos*)
13494       # FIXME: we need at least 68020 code to build shared libraries, but
13495       # adding the `-m68020' flag to GCC prevents building anything better,
13496       # like `-m68040'.
13497       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13498       ;;
13499
13500     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13501       # PIC is the default for these OSes.
13502       ;;
13503
13504     mingw* | pw32* | os2*)
13505       # This hack is so that the source file can tell whether it is being
13506       # built for inclusion in a dll (and should export symbols for example).
13507       lt_prog_compiler_pic='-DDLL_EXPORT'
13508       ;;
13509
13510     darwin* | rhapsody*)
13511       # PIC is the default on this platform
13512       # Common symbols not allowed in MH_DYLIB files
13513       lt_prog_compiler_pic='-fno-common'
13514       ;;
13515
13516     interix3*)
13517       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13518       # Instead, we relocate shared libraries at runtime.
13519       ;;
13520
13521     msdosdjgpp*)
13522       # Just because we use GCC doesn't mean we suddenly get shared libraries
13523       # on systems that don't support them.
13524       lt_prog_compiler_can_build_shared=no
13525       enable_shared=no
13526       ;;
13527
13528     sysv4*MP*)
13529       if test -d /usr/nec; then
13530         lt_prog_compiler_pic=-Kconform_pic
13531       fi
13532       ;;
13533
13534     hpux*)
13535       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13536       # not for PA HP-UX.
13537       case $host_cpu in
13538       hppa*64*|ia64*)
13539         # +Z the default
13540         ;;
13541       *)
13542         lt_prog_compiler_pic='-fPIC'
13543         ;;
13544       esac
13545       ;;
13546
13547     *)
13548       lt_prog_compiler_pic='-fPIC'
13549       ;;
13550     esac
13551   else
13552     # PORTME Check for flag to pass linker flags through the system compiler.
13553     case $host_os in
13554     aix*)
13555       lt_prog_compiler_wl='-Wl,'
13556       if test "$host_cpu" = ia64; then
13557         # AIX 5 now supports IA64 processor
13558         lt_prog_compiler_static='-Bstatic'
13559       else
13560         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13561       fi
13562       ;;
13563       darwin*)
13564         # PIC is the default on this platform
13565         # Common symbols not allowed in MH_DYLIB files
13566        case $cc_basename in
13567          xlc*)
13568          lt_prog_compiler_pic='-qnocommon'
13569          lt_prog_compiler_wl='-Wl,'
13570          ;;
13571        esac
13572        ;;
13573
13574     mingw* | pw32* | os2*)
13575       # This hack is so that the source file can tell whether it is being
13576       # built for inclusion in a dll (and should export symbols for example).
13577       lt_prog_compiler_pic='-DDLL_EXPORT'
13578       ;;
13579
13580     hpux9* | hpux10* | hpux11*)
13581       lt_prog_compiler_wl='-Wl,'
13582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13583       # not for PA HP-UX.
13584       case $host_cpu in
13585       hppa*64*|ia64*)
13586         # +Z the default
13587         ;;
13588       *)
13589         lt_prog_compiler_pic='+Z'
13590         ;;
13591       esac
13592       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13593       lt_prog_compiler_static='${wl}-a ${wl}archive'
13594       ;;
13595
13596     irix5* | irix6* | nonstopux*)
13597       lt_prog_compiler_wl='-Wl,'
13598       # PIC (with -KPIC) is the default.
13599       lt_prog_compiler_static='-non_shared'
13600       ;;
13601
13602     newsos6)
13603       lt_prog_compiler_pic='-KPIC'
13604       lt_prog_compiler_static='-Bstatic'
13605       ;;
13606
13607     linux*)
13608       case $cc_basename in
13609       icc* | ecc*)
13610         lt_prog_compiler_wl='-Wl,'
13611         lt_prog_compiler_pic='-KPIC'
13612         lt_prog_compiler_static='-static'
13613         ;;
13614       pgcc* | pgf77* | pgf90* | pgf95*)
13615         # Portland Group compilers (*not* the Pentium gcc compiler,
13616         # which looks to be a dead project)
13617         lt_prog_compiler_wl='-Wl,'
13618         lt_prog_compiler_pic='-fpic'
13619         lt_prog_compiler_static='-Bstatic'
13620         ;;
13621       ccc*)
13622         lt_prog_compiler_wl='-Wl,'
13623         # All Alpha code is PIC.
13624         lt_prog_compiler_static='-non_shared'
13625         ;;
13626       esac
13627       ;;
13628
13629     osf3* | osf4* | osf5*)
13630       lt_prog_compiler_wl='-Wl,'
13631       # All OSF/1 code is PIC.
13632       lt_prog_compiler_static='-non_shared'
13633       ;;
13634
13635     solaris*)
13636       lt_prog_compiler_pic='-KPIC'
13637       lt_prog_compiler_static='-Bstatic'
13638       case $cc_basename in
13639       f77* | f90* | f95*)
13640         lt_prog_compiler_wl='-Qoption ld ';;
13641       *)
13642         lt_prog_compiler_wl='-Wl,';;
13643       esac
13644       ;;
13645
13646     sunos4*)
13647       lt_prog_compiler_wl='-Qoption ld '
13648       lt_prog_compiler_pic='-PIC'
13649       lt_prog_compiler_static='-Bstatic'
13650       ;;
13651
13652     sysv4 | sysv4.2uw2* | sysv4.3*)
13653       lt_prog_compiler_wl='-Wl,'
13654       lt_prog_compiler_pic='-KPIC'
13655       lt_prog_compiler_static='-Bstatic'
13656       ;;
13657
13658     sysv4*MP*)
13659       if test -d /usr/nec ;then
13660         lt_prog_compiler_pic='-Kconform_pic'
13661         lt_prog_compiler_static='-Bstatic'
13662       fi
13663       ;;
13664
13665     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13666       lt_prog_compiler_wl='-Wl,'
13667       lt_prog_compiler_pic='-KPIC'
13668       lt_prog_compiler_static='-Bstatic'
13669       ;;
13670
13671     unicos*)
13672       lt_prog_compiler_wl='-Wl,'
13673       lt_prog_compiler_can_build_shared=no
13674       ;;
13675
13676     uts4*)
13677       lt_prog_compiler_pic='-pic'
13678       lt_prog_compiler_static='-Bstatic'
13679       ;;
13680
13681     *)
13682       lt_prog_compiler_can_build_shared=no
13683       ;;
13684     esac
13685   fi
13686
13687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13689
13690 #
13691 # Check to make sure the PIC flag actually works.
13692 #
13693 if test -n "$lt_prog_compiler_pic"; then
13694
13695 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13696 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13697 if test "${lt_prog_compiler_pic_works+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   lt_prog_compiler_pic_works=no
13701   ac_outfile=conftest.$ac_objext
13702    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13703    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13704    # Insert the option either (1) after the last *FLAGS variable, or
13705    # (2) before a word containing "conftest.", or (3) at the end.
13706    # Note that $ac_compile itself does not contain backslashes and begins
13707    # with a dollar sign (not a hyphen), so the echo should work correctly.
13708    # The option is referenced via a variable to avoid confusing sed.
13709    lt_compile=`echo "$ac_compile" | $SED \
13710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13712    -e 's:$: $lt_compiler_flag:'`
13713    (eval echo "\"\$as_me:13713: $lt_compile\"" >&5)
13714    (eval "$lt_compile" 2>conftest.err)
13715    ac_status=$?
13716    cat conftest.err >&5
13717    echo "$as_me:13717: \$? = $ac_status" >&5
13718    if (exit $ac_status) && test -s "$ac_outfile"; then
13719      # The compiler can only warn and ignore the option if not recognized
13720      # So say no if there are warnings other than the usual output.
13721      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13722      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13723      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13724        lt_prog_compiler_pic_works=yes
13725      fi
13726    fi
13727    $rm conftest*
13728
13729 fi
13730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13731 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13732
13733 if test x"$lt_prog_compiler_pic_works" = xyes; then
13734     case $lt_prog_compiler_pic in
13735      "" | " "*) ;;
13736      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13737      esac
13738 else
13739     lt_prog_compiler_pic=
13740      lt_prog_compiler_can_build_shared=no
13741 fi
13742
13743 fi
13744 case $host_os in
13745   # For platforms which do not support PIC, -DPIC is meaningless:
13746   *djgpp*)
13747     lt_prog_compiler_pic=
13748     ;;
13749   *)
13750     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13751     ;;
13752 esac
13753
13754 #
13755 # Check to make sure the static flag actually works.
13756 #
13757 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13760 if test "${lt_prog_compiler_static_works+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   lt_prog_compiler_static_works=no
13764    save_LDFLAGS="$LDFLAGS"
13765    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13766    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13767    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13768      # The linker can only warn and ignore the option if not recognized
13769      # So say no if there are warnings
13770      if test -s conftest.err; then
13771        # Append any errors to the config.log.
13772        cat conftest.err 1>&5
13773        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13774        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13775        if diff conftest.exp conftest.er2 >/dev/null; then
13776          lt_prog_compiler_static_works=yes
13777        fi
13778      else
13779        lt_prog_compiler_static_works=yes
13780      fi
13781    fi
13782    $rm conftest*
13783    LDFLAGS="$save_LDFLAGS"
13784
13785 fi
13786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13787 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13788
13789 if test x"$lt_prog_compiler_static_works" = xyes; then
13790     :
13791 else
13792     lt_prog_compiler_static=
13793 fi
13794
13795
13796 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13797 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13798 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   lt_cv_prog_compiler_c_o=no
13802    $rm -r conftest 2>/dev/null
13803    mkdir conftest
13804    cd conftest
13805    mkdir out
13806    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13807
13808    lt_compiler_flag="-o out/conftest2.$ac_objext"
13809    # Insert the option either (1) after the last *FLAGS variable, or
13810    # (2) before a word containing "conftest.", or (3) at the end.
13811    # Note that $ac_compile itself does not contain backslashes and begins
13812    # with a dollar sign (not a hyphen), so the echo should work correctly.
13813    lt_compile=`echo "$ac_compile" | $SED \
13814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13816    -e 's:$: $lt_compiler_flag:'`
13817    (eval echo "\"\$as_me:13817: $lt_compile\"" >&5)
13818    (eval "$lt_compile" 2>out/conftest.err)
13819    ac_status=$?
13820    cat out/conftest.err >&5
13821    echo "$as_me:13821: \$? = $ac_status" >&5
13822    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13823    then
13824      # The compiler can only warn and ignore the option if not recognized
13825      # So say no if there are warnings
13826      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13827      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13828      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13829        lt_cv_prog_compiler_c_o=yes
13830      fi
13831    fi
13832    chmod u+w . 2>&5
13833    $rm conftest*
13834    # SGI C++ compiler will create directory out/ii_files/ for
13835    # template instantiation
13836    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13837    $rm out/* && rmdir out
13838    cd ..
13839    rmdir conftest
13840    $rm conftest*
13841
13842 fi
13843 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13844 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13845
13846
13847 hard_links="nottested"
13848 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13849   # do not overwrite the value of need_locks provided by the user
13850   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13852   hard_links=yes
13853   $rm conftest*
13854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13855   touch conftest.a
13856   ln conftest.a conftest.b 2>&5 || hard_links=no
13857   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13858   { echo "$as_me:$LINENO: result: $hard_links" >&5
13859 echo "${ECHO_T}$hard_links" >&6; }
13860   if test "$hard_links" = no; then
13861     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13863     need_locks=warn
13864   fi
13865 else
13866   need_locks=no
13867 fi
13868
13869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13871
13872   runpath_var=
13873   allow_undefined_flag=
13874   enable_shared_with_static_runtimes=no
13875   archive_cmds=
13876   archive_expsym_cmds=
13877   old_archive_From_new_cmds=
13878   old_archive_from_expsyms_cmds=
13879   export_dynamic_flag_spec=
13880   whole_archive_flag_spec=
13881   thread_safe_flag_spec=
13882   hardcode_libdir_flag_spec=
13883   hardcode_libdir_flag_spec_ld=
13884   hardcode_libdir_separator=
13885   hardcode_direct=no
13886   hardcode_minus_L=no
13887   hardcode_shlibpath_var=unsupported
13888   link_all_deplibs=unknown
13889   hardcode_automatic=no
13890   module_cmds=
13891   module_expsym_cmds=
13892   always_export_symbols=no
13893   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13894   # include_expsyms should be a list of space-separated symbols to be *always*
13895   # included in the symbol list
13896   include_expsyms=
13897   # exclude_expsyms can be an extended regexp of symbols to exclude
13898   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13899   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13900   # as well as any symbol that contains `d'.
13901   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13902   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13903   # platforms (ab)use it in PIC code, but their linkers get confused if
13904   # the symbol is explicitly referenced.  Since portable code cannot
13905   # rely on this symbol name, it's probably fine to never include it in
13906   # preloaded symbol tables.
13907   extract_expsyms_cmds=
13908   # Just being paranoid about ensuring that cc_basename is set.
13909   for cc_temp in $compiler""; do
13910   case $cc_temp in
13911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13913     \-*) ;;
13914     *) break;;
13915   esac
13916 done
13917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13918
13919   case $host_os in
13920   cygwin* | mingw* | pw32*)
13921     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13922     # When not using gcc, we currently assume that we are using
13923     # Microsoft Visual C++.
13924     if test "$GCC" != yes; then
13925       with_gnu_ld=no
13926     fi
13927     ;;
13928   interix*)
13929     # we just hope/assume this is gcc and not c89 (= MSVC++)
13930     with_gnu_ld=yes
13931     ;;
13932   openbsd*)
13933     with_gnu_ld=no
13934     ;;
13935   esac
13936
13937   ld_shlibs=yes
13938   if test "$with_gnu_ld" = yes; then
13939     # If archive_cmds runs LD, not CC, wlarc should be empty
13940     wlarc='${wl}'
13941
13942     # Set some defaults for GNU ld with shared library support. These
13943     # are reset later if shared libraries are not supported. Putting them
13944     # here allows them to be overridden if necessary.
13945     runpath_var=LD_RUN_PATH
13946     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13947     export_dynamic_flag_spec='${wl}--export-dynamic'
13948     # ancient GNU ld didn't support --whole-archive et. al.
13949     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13950         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13951       else
13952         whole_archive_flag_spec=
13953     fi
13954     supports_anon_versioning=no
13955     case `$LD -v 2>/dev/null` in
13956       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13957       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13958       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13959       *\ 2.11.*) ;; # other 2.11 versions
13960       *) supports_anon_versioning=yes ;;
13961     esac
13962
13963     # See if GNU ld supports shared libraries.
13964     case $host_os in
13965     aix3* | aix4* | aix5*)
13966       # On AIX/PPC, the GNU linker is very broken
13967       if test "$host_cpu" != ia64; then
13968         ld_shlibs=no
13969         cat <<EOF 1>&2
13970
13971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13972 *** to be unable to reliably create shared libraries on AIX.
13973 *** Therefore, libtool is disabling shared libraries support.  If you
13974 *** really care for shared libraries, you may want to modify your PATH
13975 *** so that a non-GNU linker is found, and then restart.
13976
13977 EOF
13978       fi
13979       ;;
13980
13981     amigaos*)
13982       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)'
13983       hardcode_libdir_flag_spec='-L$libdir'
13984       hardcode_minus_L=yes
13985
13986       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13987       # that the semantics of dynamic libraries on AmigaOS, at least up
13988       # to version 4, is to share data among multiple programs linked
13989       # with the same dynamic library.  Since this doesn't match the
13990       # behavior of shared libraries on other platforms, we can't use
13991       # them.
13992       ld_shlibs=no
13993       ;;
13994
13995     beos*)
13996       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13997         allow_undefined_flag=unsupported
13998         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13999         # support --undefined.  This deserves some investigation.  FIXME
14000         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14001       else
14002         ld_shlibs=no
14003       fi
14004       ;;
14005
14006     cygwin* | mingw* | pw32*)
14007       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14008       # as there is no search path for DLLs.
14009       hardcode_libdir_flag_spec='-L$libdir'
14010       allow_undefined_flag=unsupported
14011       always_export_symbols=no
14012       enable_shared_with_static_runtimes=yes
14013       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14014
14015       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14016         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14017         # If the export-symbols file already is a .def file (1st line
14018         # is EXPORTS), use it as is; otherwise, prepend...
14019         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14020           cp $export_symbols $output_objdir/$soname.def;
14021         else
14022           echo EXPORTS > $output_objdir/$soname.def;
14023           cat $export_symbols >> $output_objdir/$soname.def;
14024         fi~
14025         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14026       else
14027         ld_shlibs=no
14028       fi
14029       ;;
14030
14031     interix3*)
14032       hardcode_direct=no
14033       hardcode_shlibpath_var=no
14034       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14035       export_dynamic_flag_spec='${wl}-E'
14036       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14037       # Instead, shared libraries are loaded at an image base (0x10000000 by
14038       # default) and relocated if they conflict, which is a slow very memory
14039       # consuming and fragmenting process.  To avoid this, we pick a random,
14040       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14041       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14042       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14043       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'
14044       ;;
14045
14046     linux*)
14047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14048         tmp_addflag=
14049         case $cc_basename,$host_cpu in
14050         pgcc*)                          # Portland Group C compiler
14051           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'
14052           tmp_addflag=' $pic_flag'
14053           ;;
14054         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14055           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'
14056           tmp_addflag=' $pic_flag -Mnomain' ;;
14057         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14058           tmp_addflag=' -i_dynamic' ;;
14059         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14060           tmp_addflag=' -i_dynamic -nofor_main' ;;
14061         ifc* | ifort*)                  # Intel Fortran compiler
14062           tmp_addflag=' -nofor_main' ;;
14063         esac
14064         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065
14066         if test $supports_anon_versioning = yes; then
14067           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14068   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14069   $echo "local: *; };" >> $output_objdir/$libname.ver~
14070           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14071         fi
14072       else
14073         ld_shlibs=no
14074       fi
14075       ;;
14076
14077     netbsd*)
14078       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14079         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14080         wlarc=
14081       else
14082         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14084       fi
14085       ;;
14086
14087     solaris*)
14088       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14089         ld_shlibs=no
14090         cat <<EOF 1>&2
14091
14092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14093 *** create shared libraries on Solaris systems.  Therefore, libtool
14094 *** is disabling shared libraries support.  We urge you to upgrade GNU
14095 *** binutils to release 2.9.1 or newer.  Another option is to modify
14096 *** your PATH or compiler configuration so that the native linker is
14097 *** used, and then restart.
14098
14099 EOF
14100       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14101         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14103       else
14104         ld_shlibs=no
14105       fi
14106       ;;
14107
14108     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14109       case `$LD -v 2>&1` in
14110         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14111         ld_shlibs=no
14112         cat <<_LT_EOF 1>&2
14113
14114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14115 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14116 *** is disabling shared libraries support.  We urge you to upgrade GNU
14117 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14118 *** your PATH or compiler configuration so that the native linker is
14119 *** used, and then restart.
14120
14121 _LT_EOF
14122         ;;
14123         *)
14124           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14125             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14126             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14127             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14128           else
14129             ld_shlibs=no
14130           fi
14131         ;;
14132       esac
14133       ;;
14134
14135     sunos4*)
14136       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14137       wlarc=
14138       hardcode_direct=yes
14139       hardcode_shlibpath_var=no
14140       ;;
14141
14142     *)
14143       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14144         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14146       else
14147         ld_shlibs=no
14148       fi
14149       ;;
14150     esac
14151
14152     if test "$ld_shlibs" = no; then
14153       runpath_var=
14154       hardcode_libdir_flag_spec=
14155       export_dynamic_flag_spec=
14156       whole_archive_flag_spec=
14157     fi
14158   else
14159     # PORTME fill in a description of your system's linker (not GNU ld)
14160     case $host_os in
14161     aix3*)
14162       allow_undefined_flag=unsupported
14163       always_export_symbols=yes
14164       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'
14165       # Note: this linker hardcodes the directories in LIBPATH if there
14166       # are no directories specified by -L.
14167       hardcode_minus_L=yes
14168       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14169         # Neither direct hardcoding nor static linking is supported with a
14170         # broken collect2.
14171         hardcode_direct=unsupported
14172       fi
14173       ;;
14174
14175     aix4* | aix5*)
14176       if test "$host_cpu" = ia64; then
14177         # On IA64, the linker does run time linking by default, so we don't
14178         # have to do anything special.
14179         aix_use_runtimelinking=no
14180         exp_sym_flag='-Bexport'
14181         no_entry_flag=""
14182       else
14183         # If we're using GNU nm, then we don't want the "-C" option.
14184         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14185         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14186           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'
14187         else
14188           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'
14189         fi
14190         aix_use_runtimelinking=no
14191
14192         # Test if we are trying to use run time linking or normal
14193         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14194         # need to do runtime linking.
14195         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14196           for ld_flag in $LDFLAGS; do
14197           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14198             aix_use_runtimelinking=yes
14199             break
14200           fi
14201           done
14202           ;;
14203         esac
14204
14205         exp_sym_flag='-bexport'
14206         no_entry_flag='-bnoentry'
14207       fi
14208
14209       # When large executables or shared objects are built, AIX ld can
14210       # have problems creating the table of contents.  If linking a library
14211       # or program results in "error TOC overflow" add -mminimal-toc to
14212       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14213       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14214
14215       archive_cmds=''
14216       hardcode_direct=yes
14217       hardcode_libdir_separator=':'
14218       link_all_deplibs=yes
14219
14220       if test "$GCC" = yes; then
14221         case $host_os in aix4.[012]|aix4.[012].*)
14222         # We only want to do this on AIX 4.2 and lower, the check
14223         # below for broken collect2 doesn't work under 4.3+
14224           collect2name=`${CC} -print-prog-name=collect2`
14225           if test -f "$collect2name" && \
14226            strings "$collect2name" | grep resolve_lib_name >/dev/null
14227           then
14228           # We have reworked collect2
14229           hardcode_direct=yes
14230           else
14231           # We have old collect2
14232           hardcode_direct=unsupported
14233           # It fails to find uninstalled libraries when the uninstalled
14234           # path is not listed in the libpath.  Setting hardcode_minus_L
14235           # to unsupported forces relinking
14236           hardcode_minus_L=yes
14237           hardcode_libdir_flag_spec='-L$libdir'
14238           hardcode_libdir_separator=
14239           fi
14240           ;;
14241         esac
14242         shared_flag='-shared'
14243         if test "$aix_use_runtimelinking" = yes; then
14244           shared_flag="$shared_flag "'${wl}-G'
14245         fi
14246       else
14247         # not using gcc
14248         if test "$host_cpu" = ia64; then
14249         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14250         # chokes on -Wl,-G. The following line is correct:
14251           shared_flag='-G'
14252         else
14253           if test "$aix_use_runtimelinking" = yes; then
14254             shared_flag='${wl}-G'
14255           else
14256             shared_flag='${wl}-bM:SRE'
14257           fi
14258         fi
14259       fi
14260
14261       # It seems that -bexpall does not export symbols beginning with
14262       # underscore (_), so it is better to generate a list of symbols to export.
14263       always_export_symbols=yes
14264       if test "$aix_use_runtimelinking" = yes; then
14265         # Warning - without using the other runtime loading flags (-brtl),
14266         # -berok will link without error, but may produce a broken library.
14267         allow_undefined_flag='-berok'
14268        # Determine the default libpath from the value encoded in an empty executable.
14269        cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275
14276 int
14277 main ()
14278 {
14279
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (ac_try="$ac_link"
14286 case "(($ac_try" in
14287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288   *) ac_try_echo=$ac_try;;
14289 esac
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291   (eval "$ac_link") 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } && {
14298          test -z "$ac_c_werror_flag" ||
14299          test ! -s conftest.err
14300        } && test -s conftest$ac_exeext &&
14301        $as_test_x conftest$ac_exeext; then
14302
14303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14304 }'`
14305 # Check for a 64-bit object if we didn't find anything.
14306 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; }
14307 }'`; fi
14308 else
14309   echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312
14313 fi
14314
14315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14316       conftest$ac_exeext conftest.$ac_ext
14317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14318
14319        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14320         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"
14321        else
14322         if test "$host_cpu" = ia64; then
14323           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14324           allow_undefined_flag="-z nodefs"
14325           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"
14326         else
14327          # Determine the default libpath from the value encoded in an empty executable.
14328          cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334
14335 int
14336 main ()
14337 {
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext conftest$ac_exeext
14344 if { (ac_try="$ac_link"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_link") 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } && {
14357          test -z "$ac_c_werror_flag" ||
14358          test ! -s conftest.err
14359        } && test -s conftest$ac_exeext &&
14360        $as_test_x conftest$ac_exeext; then
14361
14362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14363 }'`
14364 # Check for a 64-bit object if we didn't find anything.
14365 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; }
14366 }'`; fi
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371
14372 fi
14373
14374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14375       conftest$ac_exeext conftest.$ac_ext
14376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14377
14378          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14379           # Warning - without using the other run time loading flags,
14380           # -berok will link without error, but may produce a broken library.
14381           no_undefined_flag=' ${wl}-bernotok'
14382           allow_undefined_flag=' ${wl}-berok'
14383           # Exported symbols can be pulled into shared objects from archives
14384           whole_archive_flag_spec='$convenience'
14385           archive_cmds_need_lc=yes
14386           # This is similar to how AIX traditionally builds its shared libraries.
14387           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'
14388         fi
14389       fi
14390       ;;
14391
14392     amigaos*)
14393       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)'
14394       hardcode_libdir_flag_spec='-L$libdir'
14395       hardcode_minus_L=yes
14396       # see comment about different semantics on the GNU ld section
14397       ld_shlibs=no
14398       ;;
14399
14400     bsdi[45]*)
14401       export_dynamic_flag_spec=-rdynamic
14402       ;;
14403
14404     cygwin* | mingw* | pw32*)
14405       # When not using gcc, we currently assume that we are using
14406       # Microsoft Visual C++.
14407       # hardcode_libdir_flag_spec is actually meaningless, as there is
14408       # no search path for DLLs.
14409       hardcode_libdir_flag_spec=' '
14410       allow_undefined_flag=unsupported
14411       # Tell ltmain to make .lib files, not .a files.
14412       libext=lib
14413       # Tell ltmain to make .dll files, not .so files.
14414       shrext_cmds=".dll"
14415       # FIXME: Setting linknames here is a bad hack.
14416       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14417       # The linker will automatically build a .lib file if we build a DLL.
14418       old_archive_From_new_cmds='true'
14419       # FIXME: Should let the user specify the lib program.
14420       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14421       fix_srcfile_path='`cygpath -w "$srcfile"`'
14422       enable_shared_with_static_runtimes=yes
14423       ;;
14424
14425     darwin* | rhapsody*)
14426       case $host_os in
14427         rhapsody* | darwin1.[012])
14428          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14429          ;;
14430        *) # Darwin 1.3 on
14431          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14432            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14433          else
14434            case ${MACOSX_DEPLOYMENT_TARGET} in
14435              10.[012])
14436                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14437                ;;
14438              10.*)
14439                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14440                ;;
14441            esac
14442          fi
14443          ;;
14444       esac
14445       archive_cmds_need_lc=no
14446       hardcode_direct=no
14447       hardcode_automatic=yes
14448       hardcode_shlibpath_var=unsupported
14449       whole_archive_flag_spec=''
14450       link_all_deplibs=yes
14451     if test "$GCC" = yes ; then
14452         output_verbose_link_cmd='echo'
14453         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14454       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14455       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14456       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}'
14457       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}'
14458     else
14459       case $cc_basename in
14460         xlc*)
14461          output_verbose_link_cmd='echo'
14462          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14463          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14464           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14465          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}'
14466           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}'
14467           ;;
14468        *)
14469          ld_shlibs=no
14470           ;;
14471       esac
14472     fi
14473       ;;
14474
14475     dgux*)
14476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14477       hardcode_libdir_flag_spec='-L$libdir'
14478       hardcode_shlibpath_var=no
14479       ;;
14480
14481     freebsd1*)
14482       ld_shlibs=no
14483       ;;
14484
14485     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14486     # support.  Future versions do this automatically, but an explicit c++rt0.o
14487     # does not break anything, and helps significantly (at the cost of a little
14488     # extra space).
14489     freebsd2.2*)
14490       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14491       hardcode_libdir_flag_spec='-R$libdir'
14492       hardcode_direct=yes
14493       hardcode_shlibpath_var=no
14494       ;;
14495
14496     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14497     freebsd2*)
14498       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14499       hardcode_direct=yes
14500       hardcode_minus_L=yes
14501       hardcode_shlibpath_var=no
14502       ;;
14503
14504     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14505     freebsd* | kfreebsd*-gnu | dragonfly*)
14506       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14507       hardcode_libdir_flag_spec='-R$libdir'
14508       hardcode_direct=yes
14509       hardcode_shlibpath_var=no
14510       ;;
14511
14512     hpux9*)
14513       if test "$GCC" = yes; then
14514         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'
14515       else
14516         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'
14517       fi
14518       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14519       hardcode_libdir_separator=:
14520       hardcode_direct=yes
14521
14522       # hardcode_minus_L: Not really in the search PATH,
14523       # but as the default location of the library.
14524       hardcode_minus_L=yes
14525       export_dynamic_flag_spec='${wl}-E'
14526       ;;
14527
14528     hpux10*)
14529       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14530         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14531       else
14532         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14533       fi
14534       if test "$with_gnu_ld" = no; then
14535         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14536         hardcode_libdir_separator=:
14537
14538         hardcode_direct=yes
14539         export_dynamic_flag_spec='${wl}-E'
14540
14541         # hardcode_minus_L: Not really in the search PATH,
14542         # but as the default location of the library.
14543         hardcode_minus_L=yes
14544       fi
14545       ;;
14546
14547     hpux11*)
14548       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14549         case $host_cpu in
14550         hppa*64*)
14551           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14552           ;;
14553         ia64*)
14554           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14555           ;;
14556         *)
14557           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14558           ;;
14559         esac
14560       else
14561         case $host_cpu in
14562         hppa*64*)
14563           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14564           ;;
14565         ia64*)
14566           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14567           ;;
14568         *)
14569           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14570           ;;
14571         esac
14572       fi
14573       if test "$with_gnu_ld" = no; then
14574         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14575         hardcode_libdir_separator=:
14576
14577         case $host_cpu in
14578         hppa*64*|ia64*)
14579           hardcode_libdir_flag_spec_ld='+b $libdir'
14580           hardcode_direct=no
14581           hardcode_shlibpath_var=no
14582           ;;
14583         *)
14584           hardcode_direct=yes
14585           export_dynamic_flag_spec='${wl}-E'
14586
14587           # hardcode_minus_L: Not really in the search PATH,
14588           # but as the default location of the library.
14589           hardcode_minus_L=yes
14590           ;;
14591         esac
14592       fi
14593       ;;
14594
14595     irix5* | irix6* | nonstopux*)
14596       if test "$GCC" = yes; then
14597         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'
14598       else
14599         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'
14600         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14601       fi
14602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14603       hardcode_libdir_separator=:
14604       link_all_deplibs=yes
14605       ;;
14606
14607     netbsd*)
14608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14609         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14610       else
14611         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14612       fi
14613       hardcode_libdir_flag_spec='-R$libdir'
14614       hardcode_direct=yes
14615       hardcode_shlibpath_var=no
14616       ;;
14617
14618     newsos6)
14619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620       hardcode_direct=yes
14621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622       hardcode_libdir_separator=:
14623       hardcode_shlibpath_var=no
14624       ;;
14625
14626     openbsd*)
14627       hardcode_direct=yes
14628       hardcode_shlibpath_var=no
14629       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14630         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14631         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14632         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14633         export_dynamic_flag_spec='${wl}-E'
14634       else
14635        case $host_os in
14636          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14637            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14638            hardcode_libdir_flag_spec='-R$libdir'
14639            ;;
14640          *)
14641            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14642            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14643            ;;
14644        esac
14645       fi
14646       ;;
14647
14648     os2*)
14649       hardcode_libdir_flag_spec='-L$libdir'
14650       hardcode_minus_L=yes
14651       allow_undefined_flag=unsupported
14652       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'
14653       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14654       ;;
14655
14656     osf3*)
14657       if test "$GCC" = yes; then
14658         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14659         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'
14660       else
14661         allow_undefined_flag=' -expect_unresolved \*'
14662         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'
14663       fi
14664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14665       hardcode_libdir_separator=:
14666       ;;
14667
14668     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14669       if test "$GCC" = yes; then
14670         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14671         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'
14672         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14673       else
14674         allow_undefined_flag=' -expect_unresolved \*'
14675         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'
14676         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14677         $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'
14678
14679         # Both c and cxx compiler support -rpath directly
14680         hardcode_libdir_flag_spec='-rpath $libdir'
14681       fi
14682       hardcode_libdir_separator=:
14683       ;;
14684
14685     solaris*)
14686       no_undefined_flag=' -z text'
14687       if test "$GCC" = yes; then
14688         wlarc='${wl}'
14689         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14690         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14691           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14692       else
14693         wlarc=''
14694         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14696         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14697       fi
14698       hardcode_libdir_flag_spec='-R$libdir'
14699       hardcode_shlibpath_var=no
14700       case $host_os in
14701       solaris2.[0-5] | solaris2.[0-5].*) ;;
14702       *)
14703         # The compiler driver will combine linker options so we
14704         # cannot just pass the convience library names through
14705         # without $wl, iff we do not link with $LD.
14706         # Luckily, gcc supports the same syntax we need for Sun Studio.
14707         # Supported since Solaris 2.6 (maybe 2.5.1?)
14708         case $wlarc in
14709         '')
14710           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14711         *)
14712           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' ;;
14713         esac ;;
14714       esac
14715       link_all_deplibs=yes
14716       ;;
14717
14718     sunos4*)
14719       if test "x$host_vendor" = xsequent; then
14720         # Use $CC to link under sequent, because it throws in some extra .o
14721         # files that make .init and .fini sections work.
14722         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14723       else
14724         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14725       fi
14726       hardcode_libdir_flag_spec='-L$libdir'
14727       hardcode_direct=yes
14728       hardcode_minus_L=yes
14729       hardcode_shlibpath_var=no
14730       ;;
14731
14732     sysv4)
14733       case $host_vendor in
14734         sni)
14735           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14736           hardcode_direct=yes # is this really true???
14737         ;;
14738         siemens)
14739           ## LD is ld it makes a PLAMLIB
14740           ## CC just makes a GrossModule.
14741           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14742           reload_cmds='$CC -r -o $output$reload_objs'
14743           hardcode_direct=no
14744         ;;
14745         motorola)
14746           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14748         ;;
14749       esac
14750       runpath_var='LD_RUN_PATH'
14751       hardcode_shlibpath_var=no
14752       ;;
14753
14754     sysv4.3*)
14755       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756       hardcode_shlibpath_var=no
14757       export_dynamic_flag_spec='-Bexport'
14758       ;;
14759
14760     sysv4*MP*)
14761       if test -d /usr/nec; then
14762         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14763         hardcode_shlibpath_var=no
14764         runpath_var=LD_RUN_PATH
14765         hardcode_runpath_var=yes
14766         ld_shlibs=yes
14767       fi
14768       ;;
14769
14770     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14771       no_undefined_flag='${wl}-z,text'
14772       archive_cmds_need_lc=no
14773       hardcode_shlibpath_var=no
14774       runpath_var='LD_RUN_PATH'
14775
14776       if test "$GCC" = yes; then
14777         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14779       else
14780         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782       fi
14783       ;;
14784
14785     sysv5* | sco3.2v5* | sco5v6*)
14786       # Note: We can NOT use -z defs as we might desire, because we do not
14787       # link with -lc, and that would cause any symbols used from libc to
14788       # always be unresolved, which means just about no library would
14789       # ever link correctly.  If we're not using GNU ld we use -z text
14790       # though, which does catch some bad symbols but isn't as heavy-handed
14791       # as -z defs.
14792       no_undefined_flag='${wl}-z,text'
14793       allow_undefined_flag='${wl}-z,nodefs'
14794       archive_cmds_need_lc=no
14795       hardcode_shlibpath_var=no
14796       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14797       hardcode_libdir_separator=':'
14798       link_all_deplibs=yes
14799       export_dynamic_flag_spec='${wl}-Bexport'
14800       runpath_var='LD_RUN_PATH'
14801
14802       if test "$GCC" = yes; then
14803         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14805       else
14806         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14807         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14808       fi
14809       ;;
14810
14811     uts4*)
14812       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813       hardcode_libdir_flag_spec='-L$libdir'
14814       hardcode_shlibpath_var=no
14815       ;;
14816
14817     *)
14818       ld_shlibs=no
14819       ;;
14820     esac
14821   fi
14822
14823 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14824 echo "${ECHO_T}$ld_shlibs" >&6; }
14825 test "$ld_shlibs" = no && can_build_shared=no
14826
14827 #
14828 # Do we need to explicitly link libc?
14829 #
14830 case "x$archive_cmds_need_lc" in
14831 x|xyes)
14832   # Assume -lc should be added
14833   archive_cmds_need_lc=yes
14834
14835   if test "$enable_shared" = yes && test "$GCC" = yes; then
14836     case $archive_cmds in
14837     *'~'*)
14838       # FIXME: we may have to deal with multi-command sequences.
14839       ;;
14840     '$CC '*)
14841       # Test whether the compiler implicitly links with -lc since on some
14842       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14843       # to ld, don't add -lc before -lgcc.
14844       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14846       $rm conftest*
14847       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14848
14849       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850   (eval $ac_compile) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } 2>conftest.err; then
14854         soname=conftest
14855         lib=conftest
14856         libobjs=conftest.$ac_objext
14857         deplibs=
14858         wl=$lt_prog_compiler_wl
14859         pic_flag=$lt_prog_compiler_pic
14860         compiler_flags=-v
14861         linker_flags=-v
14862         verstring=
14863         output_objdir=.
14864         libname=conftest
14865         lt_save_allow_undefined_flag=$allow_undefined_flag
14866         allow_undefined_flag=
14867         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14868   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }
14872         then
14873           archive_cmds_need_lc=no
14874         else
14875           archive_cmds_need_lc=yes
14876         fi
14877         allow_undefined_flag=$lt_save_allow_undefined_flag
14878       else
14879         cat conftest.err 1>&5
14880       fi
14881       $rm conftest*
14882       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14883 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14884       ;;
14885     esac
14886   fi
14887   ;;
14888 esac
14889
14890 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14892 library_names_spec=
14893 libname_spec='lib$name'
14894 soname_spec=
14895 shrext_cmds=".so"
14896 postinstall_cmds=
14897 postuninstall_cmds=
14898 finish_cmds=
14899 finish_eval=
14900 shlibpath_var=
14901 shlibpath_overrides_runpath=unknown
14902 version_type=none
14903 dynamic_linker="$host_os ld.so"
14904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14905 if test "$GCC" = yes; then
14906   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14907   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14908     # if the path contains ";" then we assume it to be the separator
14909     # otherwise default to the standard path separator (i.e. ":") - it is
14910     # assumed that no part of a normal pathname contains ";" but that should
14911     # okay in the real world where ";" in dirpaths is itself problematic.
14912     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14913   else
14914     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14915   fi
14916 else
14917   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14918 fi
14919 need_lib_prefix=unknown
14920 hardcode_into_libs=no
14921
14922 # when you set need_version to no, make sure it does not cause -set_version
14923 # flags to be left without arguments
14924 need_version=unknown
14925
14926 case $host_os in
14927 aix3*)
14928   version_type=linux
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14930   shlibpath_var=LIBPATH
14931
14932   # AIX 3 has no versioning support, so we append a major version to the name.
14933   soname_spec='${libname}${release}${shared_ext}$major'
14934   ;;
14935
14936 aix4* | aix5*)
14937   version_type=linux
14938   need_lib_prefix=no
14939   need_version=no
14940   hardcode_into_libs=yes
14941   if test "$host_cpu" = ia64; then
14942     # AIX 5 supports IA64
14943     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14944     shlibpath_var=LD_LIBRARY_PATH
14945   else
14946     # With GCC up to 2.95.x, collect2 would create an import file
14947     # for dependence libraries.  The import file would start with
14948     # the line `#! .'.  This would cause the generated library to
14949     # depend on `.', always an invalid library.  This was fixed in
14950     # development snapshots of GCC prior to 3.0.
14951     case $host_os in
14952       aix4 | aix4.[01] | aix4.[01].*)
14953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14954            echo ' yes '
14955            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14956         :
14957       else
14958         can_build_shared=no
14959       fi
14960       ;;
14961     esac
14962     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14963     # soname into executable. Probably we can add versioning support to
14964     # collect2, so additional links can be useful in future.
14965     if test "$aix_use_runtimelinking" = yes; then
14966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14967       # instead of lib<name>.a to let people know that these are not
14968       # typical AIX shared libraries.
14969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970     else
14971       # We preserve .a as extension for shared libraries through AIX4.2
14972       # and later when we are not doing run time linking.
14973       library_names_spec='${libname}${release}.a $libname.a'
14974       soname_spec='${libname}${release}${shared_ext}$major'
14975     fi
14976     shlibpath_var=LIBPATH
14977   fi
14978   ;;
14979
14980 amigaos*)
14981   library_names_spec='$libname.ixlibrary $libname.a'
14982   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14983   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'
14984   ;;
14985
14986 beos*)
14987   library_names_spec='${libname}${shared_ext}'
14988   dynamic_linker="$host_os ld.so"
14989   shlibpath_var=LIBRARY_PATH
14990   ;;
14991
14992 bsdi[45]*)
14993   version_type=linux
14994   need_version=no
14995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996   soname_spec='${libname}${release}${shared_ext}$major'
14997   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14998   shlibpath_var=LD_LIBRARY_PATH
14999   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15000   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15001   # the default ld.so.conf also contains /usr/contrib/lib and
15002   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15003   # libtool to hard-code these into programs
15004   ;;
15005
15006 cygwin* | mingw* | pw32*)
15007   version_type=windows
15008   shrext_cmds=".dll"
15009   need_version=no
15010   need_lib_prefix=no
15011
15012   case $GCC,$host_os in
15013   yes,cygwin* | yes,mingw* | yes,pw32*)
15014     library_names_spec='$libname.dll.a'
15015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15016     postinstall_cmds='base_file=`basename \${file}`~
15017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15018       dldir=$destdir/`dirname \$dlpath`~
15019       test -d \$dldir || mkdir -p \$dldir~
15020       $install_prog $dir/$dlname \$dldir/$dlname~
15021       chmod a+x \$dldir/$dlname'
15022     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15023       dlpath=$dir/\$dldll~
15024        $rm \$dlpath'
15025     shlibpath_overrides_runpath=yes
15026
15027     case $host_os in
15028     cygwin*)
15029       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15030       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15031       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15032       ;;
15033     mingw*)
15034       # MinGW DLLs use traditional 'lib' prefix
15035       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15036       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15037       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15038         # It is most probably a Windows format PATH printed by
15039         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15040         # path with ; separators, and with drive letters. We can handle the
15041         # drive letters (cygwin fileutils understands them), so leave them,
15042         # especially as we might pass files found there to a mingw objdump,
15043         # which wouldn't understand a cygwinified path. Ahh.
15044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15045       else
15046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15047       fi
15048       ;;
15049     pw32*)
15050       # pw32 DLLs use 'pw' prefix rather than 'lib'
15051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15052       ;;
15053     esac
15054     ;;
15055
15056   *)
15057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15058     ;;
15059   esac
15060   dynamic_linker='Win32 ld.exe'
15061   # FIXME: first we should search . and the directory the executable is in
15062   shlibpath_var=PATH
15063   ;;
15064
15065 darwin* | rhapsody*)
15066   dynamic_linker="$host_os dyld"
15067   version_type=darwin
15068   need_lib_prefix=no
15069   need_version=no
15070   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071   soname_spec='${libname}${release}${major}$shared_ext'
15072   shlibpath_overrides_runpath=yes
15073   shlibpath_var=DYLD_LIBRARY_PATH
15074   shrext_cmds='.dylib'
15075   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15076   if test "$GCC" = yes; then
15077     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"`
15078   else
15079     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15080   fi
15081   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15082   ;;
15083
15084 dgux*)
15085   version_type=linux
15086   need_lib_prefix=no
15087   need_version=no
15088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15089   soname_spec='${libname}${release}${shared_ext}$major'
15090   shlibpath_var=LD_LIBRARY_PATH
15091   ;;
15092
15093 freebsd1*)
15094   dynamic_linker=no
15095   ;;
15096
15097 kfreebsd*-gnu)
15098   version_type=linux
15099   need_lib_prefix=no
15100   need_version=no
15101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15102   soname_spec='${libname}${release}${shared_ext}$major'
15103   shlibpath_var=LD_LIBRARY_PATH
15104   shlibpath_overrides_runpath=no
15105   hardcode_into_libs=yes
15106   dynamic_linker='GNU ld.so'
15107   ;;
15108
15109 freebsd* | dragonfly*)
15110   # DragonFly does not have aout.  When/if they implement a new
15111   # versioning mechanism, adjust this.
15112   if test -x /usr/bin/objformat; then
15113     objformat=`/usr/bin/objformat`
15114   else
15115     case $host_os in
15116     freebsd[123]*) objformat=aout ;;
15117     *) objformat=elf ;;
15118     esac
15119   fi
15120   version_type=freebsd-$objformat
15121   case $version_type in
15122     freebsd-elf*)
15123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15124       need_version=no
15125       need_lib_prefix=no
15126       ;;
15127     freebsd-*)
15128       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15129       need_version=yes
15130       ;;
15131   esac
15132   shlibpath_var=LD_LIBRARY_PATH
15133   case $host_os in
15134   freebsd2*)
15135     shlibpath_overrides_runpath=yes
15136     ;;
15137   freebsd3.[01]* | freebsdelf3.[01]*)
15138     shlibpath_overrides_runpath=yes
15139     hardcode_into_libs=yes
15140     ;;
15141   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15142   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15143     shlibpath_overrides_runpath=no
15144     hardcode_into_libs=yes
15145     ;;
15146   freebsd*) # from 4.6 on
15147     shlibpath_overrides_runpath=yes
15148     hardcode_into_libs=yes
15149     ;;
15150   esac
15151   ;;
15152
15153 gnu*)
15154   version_type=linux
15155   need_lib_prefix=no
15156   need_version=no
15157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15158   soname_spec='${libname}${release}${shared_ext}$major'
15159   shlibpath_var=LD_LIBRARY_PATH
15160   hardcode_into_libs=yes
15161   ;;
15162
15163 hpux9* | hpux10* | hpux11*)
15164   # Give a soname corresponding to the major version so that dld.sl refuses to
15165   # link against other versions.
15166   version_type=sunos
15167   need_lib_prefix=no
15168   need_version=no
15169   case $host_cpu in
15170   ia64*)
15171     shrext_cmds='.so'
15172     hardcode_into_libs=yes
15173     dynamic_linker="$host_os dld.so"
15174     shlibpath_var=LD_LIBRARY_PATH
15175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177     soname_spec='${libname}${release}${shared_ext}$major'
15178     if test "X$HPUX_IA64_MODE" = X32; then
15179       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15180     else
15181       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15182     fi
15183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15184     ;;
15185    hppa*64*)
15186      shrext_cmds='.sl'
15187      hardcode_into_libs=yes
15188      dynamic_linker="$host_os dld.sl"
15189      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15190      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15191      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192      soname_spec='${libname}${release}${shared_ext}$major'
15193      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15194      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15195      ;;
15196    *)
15197     shrext_cmds='.sl'
15198     dynamic_linker="$host_os dld.sl"
15199     shlibpath_var=SHLIB_PATH
15200     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202     soname_spec='${libname}${release}${shared_ext}$major'
15203     ;;
15204   esac
15205   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15206   postinstall_cmds='chmod 555 $lib'
15207   ;;
15208
15209 interix3*)
15210   version_type=linux
15211   need_lib_prefix=no
15212   need_version=no
15213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214   soname_spec='${libname}${release}${shared_ext}$major'
15215   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   shlibpath_overrides_runpath=no
15218   hardcode_into_libs=yes
15219   ;;
15220
15221 irix5* | irix6* | nonstopux*)
15222   case $host_os in
15223     nonstopux*) version_type=nonstopux ;;
15224     *)
15225         if test "$lt_cv_prog_gnu_ld" = yes; then
15226                 version_type=linux
15227         else
15228                 version_type=irix
15229         fi ;;
15230   esac
15231   need_lib_prefix=no
15232   need_version=no
15233   soname_spec='${libname}${release}${shared_ext}$major'
15234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15235   case $host_os in
15236   irix5* | nonstopux*)
15237     libsuff= shlibsuff=
15238     ;;
15239   *)
15240     case $LD in # libtool.m4 will add one of these switches to LD
15241     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15242       libsuff= shlibsuff= libmagic=32-bit;;
15243     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15244       libsuff=32 shlibsuff=N32 libmagic=N32;;
15245     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15246       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15247     *) libsuff= shlibsuff= libmagic=never-match;;
15248     esac
15249     ;;
15250   esac
15251   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15252   shlibpath_overrides_runpath=no
15253   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15254   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15255   hardcode_into_libs=yes
15256   ;;
15257
15258 # No shared lib support for Linux oldld, aout, or coff.
15259 linux*oldld* | linux*aout* | linux*coff*)
15260   dynamic_linker=no
15261   ;;
15262
15263 # This must be Linux ELF.
15264 linux*)
15265   version_type=linux
15266   need_lib_prefix=no
15267   need_version=no
15268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269   soname_spec='${libname}${release}${shared_ext}$major'
15270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   shlibpath_overrides_runpath=no
15273   # This implies no fast_install, which is unacceptable.
15274   # Some rework will be needed to allow for fast_install
15275   # before this can be enabled.
15276   hardcode_into_libs=yes
15277
15278   # Append ld.so.conf contents to the search path
15279   if test -f /etc/ld.so.conf; then
15280     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' ' '`
15281     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15282   fi
15283
15284   # We used to test for /lib/ld.so.1 and disable shared libraries on
15285   # powerpc, because MkLinux only supported shared libraries with the
15286   # GNU dynamic linker.  Since this was broken with cross compilers,
15287   # most powerpc-linux boxes support dynamic linking these days and
15288   # people can always --disable-shared, the test was removed, and we
15289   # assume the GNU/Linux dynamic linker is in use.
15290   dynamic_linker='GNU/Linux ld.so'
15291   ;;
15292
15293 knetbsd*-gnu)
15294   version_type=linux
15295   need_lib_prefix=no
15296   need_version=no
15297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298   soname_spec='${libname}${release}${shared_ext}$major'
15299   shlibpath_var=LD_LIBRARY_PATH
15300   shlibpath_overrides_runpath=no
15301   hardcode_into_libs=yes
15302   dynamic_linker='GNU ld.so'
15303   ;;
15304
15305 netbsd*)
15306   version_type=sunos
15307   need_lib_prefix=no
15308   need_version=no
15309   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15311     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15312     dynamic_linker='NetBSD (a.out) ld.so'
15313   else
15314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15315     soname_spec='${libname}${release}${shared_ext}$major'
15316     dynamic_linker='NetBSD ld.elf_so'
15317   fi
15318   shlibpath_var=LD_LIBRARY_PATH
15319   shlibpath_overrides_runpath=yes
15320   hardcode_into_libs=yes
15321   ;;
15322
15323 newsos6)
15324   version_type=linux
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326   shlibpath_var=LD_LIBRARY_PATH
15327   shlibpath_overrides_runpath=yes
15328   ;;
15329
15330 nto-qnx*)
15331   version_type=linux
15332   need_lib_prefix=no
15333   need_version=no
15334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335   soname_spec='${libname}${release}${shared_ext}$major'
15336   shlibpath_var=LD_LIBRARY_PATH
15337   shlibpath_overrides_runpath=yes
15338   ;;
15339
15340 openbsd*)
15341   version_type=sunos
15342   sys_lib_dlsearch_path_spec="/usr/lib"
15343   need_lib_prefix=no
15344   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15345   case $host_os in
15346     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15347     *)                         need_version=no  ;;
15348   esac
15349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15351   shlibpath_var=LD_LIBRARY_PATH
15352   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15353     case $host_os in
15354       openbsd2.[89] | openbsd2.[89].*)
15355         shlibpath_overrides_runpath=no
15356         ;;
15357       *)
15358         shlibpath_overrides_runpath=yes
15359         ;;
15360       esac
15361   else
15362     shlibpath_overrides_runpath=yes
15363   fi
15364   ;;
15365
15366 os2*)
15367   libname_spec='$name'
15368   shrext_cmds=".dll"
15369   need_lib_prefix=no
15370   library_names_spec='$libname${shared_ext} $libname.a'
15371   dynamic_linker='OS/2 ld.exe'
15372   shlibpath_var=LIBPATH
15373   ;;
15374
15375 osf3* | osf4* | osf5*)
15376   version_type=osf
15377   need_lib_prefix=no
15378   need_version=no
15379   soname_spec='${libname}${release}${shared_ext}$major'
15380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381   shlibpath_var=LD_LIBRARY_PATH
15382   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15383   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15384   ;;
15385
15386 solaris*)
15387   version_type=linux
15388   need_lib_prefix=no
15389   need_version=no
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   shlibpath_overrides_runpath=yes
15394   hardcode_into_libs=yes
15395   # ldd complains unless libraries are executable
15396   postinstall_cmds='chmod +x $lib'
15397   ;;
15398
15399 sunos4*)
15400   version_type=sunos
15401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15403   shlibpath_var=LD_LIBRARY_PATH
15404   shlibpath_overrides_runpath=yes
15405   if test "$with_gnu_ld" = yes; then
15406     need_lib_prefix=no
15407   fi
15408   need_version=yes
15409   ;;
15410
15411 sysv4 | sysv4.3*)
15412   version_type=linux
15413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414   soname_spec='${libname}${release}${shared_ext}$major'
15415   shlibpath_var=LD_LIBRARY_PATH
15416   case $host_vendor in
15417     sni)
15418       shlibpath_overrides_runpath=no
15419       need_lib_prefix=no
15420       export_dynamic_flag_spec='${wl}-Blargedynsym'
15421       runpath_var=LD_RUN_PATH
15422       ;;
15423     siemens)
15424       need_lib_prefix=no
15425       ;;
15426     motorola)
15427       need_lib_prefix=no
15428       need_version=no
15429       shlibpath_overrides_runpath=no
15430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15431       ;;
15432   esac
15433   ;;
15434
15435 sysv4*MP*)
15436   if test -d /usr/nec ;then
15437     version_type=linux
15438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439     soname_spec='$libname${shared_ext}.$major'
15440     shlibpath_var=LD_LIBRARY_PATH
15441   fi
15442   ;;
15443
15444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15445   version_type=freebsd-elf
15446   need_lib_prefix=no
15447   need_version=no
15448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15449   soname_spec='${libname}${release}${shared_ext}$major'
15450   shlibpath_var=LD_LIBRARY_PATH
15451   hardcode_into_libs=yes
15452   if test "$with_gnu_ld" = yes; then
15453     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15454     shlibpath_overrides_runpath=no
15455   else
15456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15457     shlibpath_overrides_runpath=yes
15458     case $host_os in
15459       sco3.2v5*)
15460         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15461         ;;
15462     esac
15463   fi
15464   sys_lib_dlsearch_path_spec='/usr/lib'
15465   ;;
15466
15467 uts4*)
15468   version_type=linux
15469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470   soname_spec='${libname}${release}${shared_ext}$major'
15471   shlibpath_var=LD_LIBRARY_PATH
15472   ;;
15473
15474 *)
15475   dynamic_linker=no
15476   ;;
15477 esac
15478 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15479 echo "${ECHO_T}$dynamic_linker" >&6; }
15480 test "$dynamic_linker" = no && can_build_shared=no
15481
15482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15483 if test "$GCC" = yes; then
15484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15485 fi
15486
15487 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15489 hardcode_action=
15490 if test -n "$hardcode_libdir_flag_spec" || \
15491    test -n "$runpath_var" || \
15492    test "X$hardcode_automatic" = "Xyes" ; then
15493
15494   # We can hardcode non-existant directories.
15495   if test "$hardcode_direct" != no &&
15496      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15497      # have to relink, otherwise we might link with an installed library
15498      # when we should be linking with a yet-to-be-installed one
15499      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15500      test "$hardcode_minus_L" != no; then
15501     # Linking always hardcodes the temporary library directory.
15502     hardcode_action=relink
15503   else
15504     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15505     hardcode_action=immediate
15506   fi
15507 else
15508   # We cannot hardcode anything, or else we can only hardcode existing
15509   # directories.
15510   hardcode_action=unsupported
15511 fi
15512 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15513 echo "${ECHO_T}$hardcode_action" >&6; }
15514
15515 if test "$hardcode_action" = relink; then
15516   # Fast installation is not supported
15517   enable_fast_install=no
15518 elif test "$shlibpath_overrides_runpath" = yes ||
15519      test "$enable_shared" = no; then
15520   # Fast installation is not necessary
15521   enable_fast_install=needless
15522 fi
15523
15524 striplib=
15525 old_striplib=
15526 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15529   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15530   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15531   { echo "$as_me:$LINENO: result: yes" >&5
15532 echo "${ECHO_T}yes" >&6; }
15533 else
15534 # FIXME - insert some real tests, host_os isn't really good enough
15535   case $host_os in
15536    darwin*)
15537        if test -n "$STRIP" ; then
15538          striplib="$STRIP -x"
15539          { echo "$as_me:$LINENO: result: yes" >&5
15540 echo "${ECHO_T}yes" >&6; }
15541        else
15542   { echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6; }
15544 fi
15545        ;;
15546    *)
15547   { echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6; }
15549     ;;
15550   esac
15551 fi
15552
15553 if test "x$enable_dlopen" != xyes; then
15554   enable_dlopen=unknown
15555   enable_dlopen_self=unknown
15556   enable_dlopen_self_static=unknown
15557 else
15558   lt_cv_dlopen=no
15559   lt_cv_dlopen_libs=
15560
15561   case $host_os in
15562   beos*)
15563     lt_cv_dlopen="load_add_on"
15564     lt_cv_dlopen_libs=
15565     lt_cv_dlopen_self=yes
15566     ;;
15567
15568   mingw* | pw32*)
15569     lt_cv_dlopen="LoadLibrary"
15570     lt_cv_dlopen_libs=
15571    ;;
15572
15573   cygwin*)
15574     lt_cv_dlopen="dlopen"
15575     lt_cv_dlopen_libs=
15576    ;;
15577
15578   darwin*)
15579   # if libdl is installed we need to link against it
15580     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585   ac_check_lib_save_LIBS=$LIBS
15586 LIBS="-ldl  $LIBS"
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593
15594 /* Override any GCC internal prototype to avoid an error.
15595    Use char because int might match the return type of a GCC
15596    builtin and then its argument prototype would still apply.  */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 char dlopen ();
15601 int
15602 main ()
15603 {
15604 return dlopen ();
15605   ;
15606   return 0;
15607 }
15608 _ACEOF
15609 rm -f conftest.$ac_objext conftest$ac_exeext
15610 if { (ac_try="$ac_link"
15611 case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616   (eval "$ac_link") 2>conftest.er1
15617   ac_status=$?
15618   grep -v '^ *+' conftest.er1 >conftest.err
15619   rm -f conftest.er1
15620   cat conftest.err >&5
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); } && {
15623          test -z "$ac_c_werror_flag" ||
15624          test ! -s conftest.err
15625        } && test -s conftest$ac_exeext &&
15626        $as_test_x conftest$ac_exeext; then
15627   ac_cv_lib_dl_dlopen=yes
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632         ac_cv_lib_dl_dlopen=no
15633 fi
15634
15635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15636       conftest$ac_exeext conftest.$ac_ext
15637 LIBS=$ac_check_lib_save_LIBS
15638 fi
15639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15640 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15641 if test $ac_cv_lib_dl_dlopen = yes; then
15642   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15643 else
15644
15645     lt_cv_dlopen="dyld"
15646     lt_cv_dlopen_libs=
15647     lt_cv_dlopen_self=yes
15648
15649 fi
15650
15651    ;;
15652
15653   *)
15654     { echo "$as_me:$LINENO: checking for shl_load" >&5
15655 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15656 if test "${ac_cv_func_shl_load+set}" = set; then
15657   echo $ECHO_N "(cached) $ECHO_C" >&6
15658 else
15659   cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15667 #define shl_load innocuous_shl_load
15668
15669 /* System header to define __stub macros and hopefully few prototypes,
15670     which can conflict with char shl_load (); below.
15671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15672     <limits.h> exists even on freestanding compilers.  */
15673
15674 #ifdef __STDC__
15675 # include <limits.h>
15676 #else
15677 # include <assert.h>
15678 #endif
15679
15680 #undef shl_load
15681
15682 /* Override any GCC internal prototype to avoid an error.
15683    Use char because int might match the return type of a GCC
15684    builtin and then its argument prototype would still apply.  */
15685 #ifdef __cplusplus
15686 extern "C"
15687 #endif
15688 char shl_load ();
15689 /* The GNU C library defines this for functions which it implements
15690     to always fail with ENOSYS.  Some functions are actually named
15691     something starting with __ and the normal name is an alias.  */
15692 #if defined __stub_shl_load || defined __stub___shl_load
15693 choke me
15694 #endif
15695
15696 int
15697 main ()
15698 {
15699 return shl_load ();
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (ac_try="$ac_link"
15706 case "(($ac_try" in
15707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708   *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711   (eval "$ac_link") 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } && {
15718          test -z "$ac_c_werror_flag" ||
15719          test ! -s conftest.err
15720        } && test -s conftest$ac_exeext &&
15721        $as_test_x conftest$ac_exeext; then
15722   ac_cv_func_shl_load=yes
15723 else
15724   echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727         ac_cv_func_shl_load=no
15728 fi
15729
15730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15731       conftest$ac_exeext conftest.$ac_ext
15732 fi
15733 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15734 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15735 if test $ac_cv_func_shl_load = yes; then
15736   lt_cv_dlopen="shl_load"
15737 else
15738   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15739 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15740 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743   ac_check_lib_save_LIBS=$LIBS
15744 LIBS="-ldld  $LIBS"
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751
15752 /* Override any GCC internal prototype to avoid an error.
15753    Use char because int might match the return type of a GCC
15754    builtin and then its argument prototype would still apply.  */
15755 #ifdef __cplusplus
15756 extern "C"
15757 #endif
15758 char shl_load ();
15759 int
15760 main ()
15761 {
15762 return shl_load ();
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_link") 2>conftest.er1
15775   ac_status=$?
15776   grep -v '^ *+' conftest.er1 >conftest.err
15777   rm -f conftest.er1
15778   cat conftest.err >&5
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } && {
15781          test -z "$ac_c_werror_flag" ||
15782          test ! -s conftest.err
15783        } && test -s conftest$ac_exeext &&
15784        $as_test_x conftest$ac_exeext; then
15785   ac_cv_lib_dld_shl_load=yes
15786 else
15787   echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790         ac_cv_lib_dld_shl_load=no
15791 fi
15792
15793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15794       conftest$ac_exeext conftest.$ac_ext
15795 LIBS=$ac_check_lib_save_LIBS
15796 fi
15797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15799 if test $ac_cv_lib_dld_shl_load = yes; then
15800   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15801 else
15802   { echo "$as_me:$LINENO: checking for dlopen" >&5
15803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15804 if test "${ac_cv_func_dlopen+set}" = set; then
15805   echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807   cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15815 #define dlopen innocuous_dlopen
15816
15817 /* System header to define __stub macros and hopefully few prototypes,
15818     which can conflict with char dlopen (); below.
15819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15820     <limits.h> exists even on freestanding compilers.  */
15821
15822 #ifdef __STDC__
15823 # include <limits.h>
15824 #else
15825 # include <assert.h>
15826 #endif
15827
15828 #undef dlopen
15829
15830 /* Override any GCC internal prototype to avoid an error.
15831    Use char because int might match the return type of a GCC
15832    builtin and then its argument prototype would still apply.  */
15833 #ifdef __cplusplus
15834 extern "C"
15835 #endif
15836 char dlopen ();
15837 /* The GNU C library defines this for functions which it implements
15838     to always fail with ENOSYS.  Some functions are actually named
15839     something starting with __ and the normal name is an alias.  */
15840 #if defined __stub_dlopen || defined __stub___dlopen
15841 choke me
15842 #endif
15843
15844 int
15845 main ()
15846 {
15847 return dlopen ();
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856   *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859   (eval "$ac_link") 2>conftest.er1
15860   ac_status=$?
15861   grep -v '^ *+' conftest.er1 >conftest.err
15862   rm -f conftest.er1
15863   cat conftest.err >&5
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } && {
15866          test -z "$ac_c_werror_flag" ||
15867          test ! -s conftest.err
15868        } && test -s conftest$ac_exeext &&
15869        $as_test_x conftest$ac_exeext; then
15870   ac_cv_func_dlopen=yes
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875         ac_cv_func_dlopen=no
15876 fi
15877
15878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15879       conftest$ac_exeext conftest.$ac_ext
15880 fi
15881 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15882 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15883 if test $ac_cv_func_dlopen = yes; then
15884   lt_cv_dlopen="dlopen"
15885 else
15886   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   ac_check_lib_save_LIBS=$LIBS
15892 LIBS="-ldl  $LIBS"
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899
15900 /* Override any GCC internal prototype to avoid an error.
15901    Use char because int might match the return type of a GCC
15902    builtin and then its argument prototype would still apply.  */
15903 #ifdef __cplusplus
15904 extern "C"
15905 #endif
15906 char dlopen ();
15907 int
15908 main ()
15909 {
15910 return dlopen ();
15911   ;
15912   return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (ac_try="$ac_link"
15917 case "(($ac_try" in
15918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919   *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922   (eval "$ac_link") 2>conftest.er1
15923   ac_status=$?
15924   grep -v '^ *+' conftest.er1 >conftest.err
15925   rm -f conftest.er1
15926   cat conftest.err >&5
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } && {
15929          test -z "$ac_c_werror_flag" ||
15930          test ! -s conftest.err
15931        } && test -s conftest$ac_exeext &&
15932        $as_test_x conftest$ac_exeext; then
15933   ac_cv_lib_dl_dlopen=yes
15934 else
15935   echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15937
15938         ac_cv_lib_dl_dlopen=no
15939 fi
15940
15941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15942       conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15946 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15947 if test $ac_cv_lib_dl_dlopen = yes; then
15948   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15949 else
15950   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15951 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15952 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lsvld  $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h.  */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h.  */
15963
15964 /* Override any GCC internal prototype to avoid an error.
15965    Use char because int might match the return type of a GCC
15966    builtin and then its argument prototype would still apply.  */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 char dlopen ();
15971 int
15972 main ()
15973 {
15974 return dlopen ();
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983   *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_link") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } && {
15993          test -z "$ac_c_werror_flag" ||
15994          test ! -s conftest.err
15995        } && test -s conftest$ac_exeext &&
15996        $as_test_x conftest$ac_exeext; then
15997   ac_cv_lib_svld_dlopen=yes
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002         ac_cv_lib_svld_dlopen=no
16003 fi
16004
16005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16006       conftest$ac_exeext conftest.$ac_ext
16007 LIBS=$ac_check_lib_save_LIBS
16008 fi
16009 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16010 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16011 if test $ac_cv_lib_svld_dlopen = yes; then
16012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16013 else
16014   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16017   echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019   ac_check_lib_save_LIBS=$LIBS
16020 LIBS="-ldld  $LIBS"
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027
16028 /* Override any GCC internal prototype to avoid an error.
16029    Use char because int might match the return type of a GCC
16030    builtin and then its argument prototype would still apply.  */
16031 #ifdef __cplusplus
16032 extern "C"
16033 #endif
16034 char dld_link ();
16035 int
16036 main ()
16037 {
16038 return dld_link ();
16039   ;
16040   return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (ac_try="$ac_link"
16045 case "(($ac_try" in
16046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047   *) ac_try_echo=$ac_try;;
16048 esac
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050   (eval "$ac_link") 2>conftest.er1
16051   ac_status=$?
16052   grep -v '^ *+' conftest.er1 >conftest.err
16053   rm -f conftest.er1
16054   cat conftest.err >&5
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); } && {
16057          test -z "$ac_c_werror_flag" ||
16058          test ! -s conftest.err
16059        } && test -s conftest$ac_exeext &&
16060        $as_test_x conftest$ac_exeext; then
16061   ac_cv_lib_dld_dld_link=yes
16062 else
16063   echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066         ac_cv_lib_dld_dld_link=no
16067 fi
16068
16069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16070       conftest$ac_exeext conftest.$ac_ext
16071 LIBS=$ac_check_lib_save_LIBS
16072 fi
16073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16075 if test $ac_cv_lib_dld_dld_link = yes; then
16076   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16077 fi
16078
16079
16080 fi
16081
16082
16083 fi
16084
16085
16086 fi
16087
16088
16089 fi
16090
16091
16092 fi
16093
16094     ;;
16095   esac
16096
16097   if test "x$lt_cv_dlopen" != xno; then
16098     enable_dlopen=yes
16099   else
16100     enable_dlopen=no
16101   fi
16102
16103   case $lt_cv_dlopen in
16104   dlopen)
16105     save_CPPFLAGS="$CPPFLAGS"
16106     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16107
16108     save_LDFLAGS="$LDFLAGS"
16109     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16110
16111     save_LIBS="$LIBS"
16112     LIBS="$lt_cv_dlopen_libs $LIBS"
16113
16114     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16115 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16116 if test "${lt_cv_dlopen_self+set}" = set; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119           if test "$cross_compiling" = yes; then :
16120   lt_cv_dlopen_self=cross
16121 else
16122   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16123   lt_status=$lt_dlunknown
16124   cat > conftest.$ac_ext <<EOF
16125 #line 16125 "configure"
16126 #include "confdefs.h"
16127
16128 #if HAVE_DLFCN_H
16129 #include <dlfcn.h>
16130 #endif
16131
16132 #include <stdio.h>
16133
16134 #ifdef RTLD_GLOBAL
16135 #  define LT_DLGLOBAL           RTLD_GLOBAL
16136 #else
16137 #  ifdef DL_GLOBAL
16138 #    define LT_DLGLOBAL         DL_GLOBAL
16139 #  else
16140 #    define LT_DLGLOBAL         0
16141 #  endif
16142 #endif
16143
16144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16145    find out it does not work in some platform. */
16146 #ifndef LT_DLLAZY_OR_NOW
16147 #  ifdef RTLD_LAZY
16148 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16149 #  else
16150 #    ifdef DL_LAZY
16151 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16152 #    else
16153 #      ifdef RTLD_NOW
16154 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16155 #      else
16156 #        ifdef DL_NOW
16157 #          define LT_DLLAZY_OR_NOW      DL_NOW
16158 #        else
16159 #          define LT_DLLAZY_OR_NOW      0
16160 #        endif
16161 #      endif
16162 #    endif
16163 #  endif
16164 #endif
16165
16166 #ifdef __cplusplus
16167 extern "C" void exit (int);
16168 #endif
16169
16170 void fnord() { int i=42;}
16171 int main ()
16172 {
16173   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16174   int status = $lt_dlunknown;
16175
16176   if (self)
16177     {
16178       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16179       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16180       /* dlclose (self); */
16181     }
16182   else
16183     puts (dlerror ());
16184
16185     exit (status);
16186 }
16187 EOF
16188   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16193     (./conftest; exit; ) >&5 2>/dev/null
16194     lt_status=$?
16195     case x$lt_status in
16196       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16197       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16198       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16199     esac
16200   else :
16201     # compilation failed
16202     lt_cv_dlopen_self=no
16203   fi
16204 fi
16205 rm -fr conftest*
16206
16207
16208 fi
16209 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16210 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16211
16212     if test "x$lt_cv_dlopen_self" = xyes; then
16213       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16214       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16215 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16216 if test "${lt_cv_dlopen_self_static+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219           if test "$cross_compiling" = yes; then :
16220   lt_cv_dlopen_self_static=cross
16221 else
16222   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16223   lt_status=$lt_dlunknown
16224   cat > conftest.$ac_ext <<EOF
16225 #line 16225 "configure"
16226 #include "confdefs.h"
16227
16228 #if HAVE_DLFCN_H
16229 #include <dlfcn.h>
16230 #endif
16231
16232 #include <stdio.h>
16233
16234 #ifdef RTLD_GLOBAL
16235 #  define LT_DLGLOBAL           RTLD_GLOBAL
16236 #else
16237 #  ifdef DL_GLOBAL
16238 #    define LT_DLGLOBAL         DL_GLOBAL
16239 #  else
16240 #    define LT_DLGLOBAL         0
16241 #  endif
16242 #endif
16243
16244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16245    find out it does not work in some platform. */
16246 #ifndef LT_DLLAZY_OR_NOW
16247 #  ifdef RTLD_LAZY
16248 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16249 #  else
16250 #    ifdef DL_LAZY
16251 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16252 #    else
16253 #      ifdef RTLD_NOW
16254 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16255 #      else
16256 #        ifdef DL_NOW
16257 #          define LT_DLLAZY_OR_NOW      DL_NOW
16258 #        else
16259 #          define LT_DLLAZY_OR_NOW      0
16260 #        endif
16261 #      endif
16262 #    endif
16263 #  endif
16264 #endif
16265
16266 #ifdef __cplusplus
16267 extern "C" void exit (int);
16268 #endif
16269
16270 void fnord() { int i=42;}
16271 int main ()
16272 {
16273   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16274   int status = $lt_dlunknown;
16275
16276   if (self)
16277     {
16278       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16279       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16280       /* dlclose (self); */
16281     }
16282   else
16283     puts (dlerror ());
16284
16285     exit (status);
16286 }
16287 EOF
16288   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289   (eval $ac_link) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16293     (./conftest; exit; ) >&5 2>/dev/null
16294     lt_status=$?
16295     case x$lt_status in
16296       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16297       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16298       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16299     esac
16300   else :
16301     # compilation failed
16302     lt_cv_dlopen_self_static=no
16303   fi
16304 fi
16305 rm -fr conftest*
16306
16307
16308 fi
16309 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16310 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16311     fi
16312
16313     CPPFLAGS="$save_CPPFLAGS"
16314     LDFLAGS="$save_LDFLAGS"
16315     LIBS="$save_LIBS"
16316     ;;
16317   esac
16318
16319   case $lt_cv_dlopen_self in
16320   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16321   *) enable_dlopen_self=unknown ;;
16322   esac
16323
16324   case $lt_cv_dlopen_self_static in
16325   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16326   *) enable_dlopen_self_static=unknown ;;
16327   esac
16328 fi
16329
16330
16331 # Report which library types will actually be built
16332 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16333 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16334 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16335 echo "${ECHO_T}$can_build_shared" >&6; }
16336
16337 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16338 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16339 test "$can_build_shared" = "no" && enable_shared=no
16340
16341 # On AIX, shared libraries and static libraries use the same namespace, and
16342 # are all built from PIC.
16343 case $host_os in
16344 aix3*)
16345   test "$enable_shared" = yes && enable_static=no
16346   if test -n "$RANLIB"; then
16347     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16348     postinstall_cmds='$RANLIB $lib'
16349   fi
16350   ;;
16351
16352 aix4* | aix5*)
16353   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16354     test "$enable_shared" = yes && enable_static=no
16355   fi
16356     ;;
16357 esac
16358 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16359 echo "${ECHO_T}$enable_shared" >&6; }
16360
16361 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16362 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16363 # Make sure either enable_shared or enable_static is yes.
16364 test "$enable_shared" = yes || enable_static=yes
16365 { echo "$as_me:$LINENO: result: $enable_static" >&5
16366 echo "${ECHO_T}$enable_static" >&6; }
16367
16368 # The else clause should only fire when bootstrapping the
16369 # libtool distribution, otherwise you forgot to ship ltmain.sh
16370 # with your package, and you will get complaints that there are
16371 # no rules to generate ltmain.sh.
16372 if test -f "$ltmain"; then
16373   # See if we are running on zsh, and set the options which allow our commands through
16374   # without removal of \ escapes.
16375   if test -n "${ZSH_VERSION+set}" ; then
16376     setopt NO_GLOB_SUBST
16377   fi
16378   # Now quote all the things that may contain metacharacters while being
16379   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16380   # variables and quote the copies for generation of the libtool script.
16381   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16382     SED SHELL STRIP \
16383     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16384     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16385     deplibs_check_method reload_flag reload_cmds need_locks \
16386     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16387     lt_cv_sys_global_symbol_to_c_name_address \
16388     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16389     old_postinstall_cmds old_postuninstall_cmds \
16390     compiler \
16391     CC \
16392     LD \
16393     lt_prog_compiler_wl \
16394     lt_prog_compiler_pic \
16395     lt_prog_compiler_static \
16396     lt_prog_compiler_no_builtin_flag \
16397     export_dynamic_flag_spec \
16398     thread_safe_flag_spec \
16399     whole_archive_flag_spec \
16400     enable_shared_with_static_runtimes \
16401     old_archive_cmds \
16402     old_archive_from_new_cmds \
16403     predep_objects \
16404     postdep_objects \
16405     predeps \
16406     postdeps \
16407     compiler_lib_search_path \
16408     archive_cmds \
16409     archive_expsym_cmds \
16410     postinstall_cmds \
16411     postuninstall_cmds \
16412     old_archive_from_expsyms_cmds \
16413     allow_undefined_flag \
16414     no_undefined_flag \
16415     export_symbols_cmds \
16416     hardcode_libdir_flag_spec \
16417     hardcode_libdir_flag_spec_ld \
16418     hardcode_libdir_separator \
16419     hardcode_automatic \
16420     module_cmds \
16421     module_expsym_cmds \
16422     lt_cv_prog_compiler_c_o \
16423     exclude_expsyms \
16424     include_expsyms; do
16425
16426     case $var in
16427     old_archive_cmds | \
16428     old_archive_from_new_cmds | \
16429     archive_cmds | \
16430     archive_expsym_cmds | \
16431     module_cmds | \
16432     module_expsym_cmds | \
16433     old_archive_from_expsyms_cmds | \
16434     export_symbols_cmds | \
16435     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16436     postinstall_cmds | postuninstall_cmds | \
16437     old_postinstall_cmds | old_postuninstall_cmds | \
16438     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16439       # Double-quote double-evaled strings.
16440       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16441       ;;
16442     *)
16443       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16444       ;;
16445     esac
16446   done
16447
16448   case $lt_echo in
16449   *'\$0 --fallback-echo"')
16450     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16451     ;;
16452   esac
16453
16454 cfgfile="${ofile}T"
16455   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16456   $rm -f "$cfgfile"
16457   { echo "$as_me:$LINENO: creating $ofile" >&5
16458 echo "$as_me: creating $ofile" >&6;}
16459
16460   cat <<__EOF__ >> "$cfgfile"
16461 #! $SHELL
16462
16463 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16464 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16465 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16466 #
16467 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16468 # Free Software Foundation, Inc.
16469 #
16470 # This file is part of GNU Libtool:
16471 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16472 #
16473 # This program is free software; you can redistribute it and/or modify
16474 # it under the terms of the GNU General Public License as published by
16475 # the Free Software Foundation; either version 2 of the License, or
16476 # (at your option) any later version.
16477 #
16478 # This program is distributed in the hope that it will be useful, but
16479 # WITHOUT ANY WARRANTY; without even the implied warranty of
16480 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16481 # General Public License for more details.
16482 #
16483 # You should have received a copy of the GNU General Public License
16484 # along with this program; if not, write to the Free Software
16485 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16486 #
16487 # As a special exception to the GNU General Public License, if you
16488 # distribute this file as part of a program that contains a
16489 # configuration script generated by Autoconf, you may include it under
16490 # the same distribution terms that you use for the rest of that program.
16491
16492 # A sed program that does not truncate output.
16493 SED=$lt_SED
16494
16495 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16496 Xsed="$SED -e 1s/^X//"
16497
16498 # The HP-UX ksh and POSIX shell print the target directory to stdout
16499 # if CDPATH is set.
16500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16501
16502 # The names of the tagged configurations supported by this script.
16503 available_tags=
16504
16505 # ### BEGIN LIBTOOL CONFIG
16506
16507 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16508
16509 # Shell to use when invoking shell scripts.
16510 SHELL=$lt_SHELL
16511
16512 # Whether or not to build shared libraries.
16513 build_libtool_libs=$enable_shared
16514
16515 # Whether or not to build static libraries.
16516 build_old_libs=$enable_static
16517
16518 # Whether or not to add -lc for building shared libraries.
16519 build_libtool_need_lc=$archive_cmds_need_lc
16520
16521 # Whether or not to disallow shared libs when runtime libs are static
16522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16523
16524 # Whether or not to optimize for fast installation.
16525 fast_install=$enable_fast_install
16526
16527 # The host system.
16528 host_alias=$host_alias
16529 host=$host
16530 host_os=$host_os
16531
16532 # The build system.
16533 build_alias=$build_alias
16534 build=$build
16535 build_os=$build_os
16536
16537 # An echo program that does not interpret backslashes.
16538 echo=$lt_echo
16539
16540 # The archiver.
16541 AR=$lt_AR
16542 AR_FLAGS=$lt_AR_FLAGS
16543
16544 # A C compiler.
16545 LTCC=$lt_LTCC
16546
16547 # LTCC compiler flags.
16548 LTCFLAGS=$lt_LTCFLAGS
16549
16550 # A language-specific compiler.
16551 CC=$lt_compiler
16552
16553 # Is the compiler the GNU C compiler?
16554 with_gcc=$GCC
16555
16556 # An ERE matcher.
16557 EGREP=$lt_EGREP
16558
16559 # The linker used to build libraries.
16560 LD=$lt_LD
16561
16562 # Whether we need hard or soft links.
16563 LN_S=$lt_LN_S
16564
16565 # A BSD-compatible nm program.
16566 NM=$lt_NM
16567
16568 # A symbol stripping program
16569 STRIP=$lt_STRIP
16570
16571 # Used to examine libraries when file_magic_cmd begins "file"
16572 MAGIC_CMD=$MAGIC_CMD
16573
16574 # Used on cygwin: DLL creation program.
16575 DLLTOOL="$DLLTOOL"
16576
16577 # Used on cygwin: object dumper.
16578 OBJDUMP="$OBJDUMP"
16579
16580 # Used on cygwin: assembler.
16581 AS="$AS"
16582
16583 # The name of the directory that contains temporary libtool files.
16584 objdir=$objdir
16585
16586 # How to create reloadable object files.
16587 reload_flag=$lt_reload_flag
16588 reload_cmds=$lt_reload_cmds
16589
16590 # How to pass a linker flag through the compiler.
16591 wl=$lt_lt_prog_compiler_wl
16592
16593 # Object file suffix (normally "o").
16594 objext="$ac_objext"
16595
16596 # Old archive suffix (normally "a").
16597 libext="$libext"
16598
16599 # Shared library suffix (normally ".so").
16600 shrext_cmds='$shrext_cmds'
16601
16602 # Executable file suffix (normally "").
16603 exeext="$exeext"
16604
16605 # Additional compiler flags for building library objects.
16606 pic_flag=$lt_lt_prog_compiler_pic
16607 pic_mode=$pic_mode
16608
16609 # What is the maximum length of a command?
16610 max_cmd_len=$lt_cv_sys_max_cmd_len
16611
16612 # Does compiler simultaneously support -c and -o options?
16613 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16614
16615 # Must we lock files when doing compilation?
16616 need_locks=$lt_need_locks
16617
16618 # Do we need the lib prefix for modules?
16619 need_lib_prefix=$need_lib_prefix
16620
16621 # Do we need a version for libraries?
16622 need_version=$need_version
16623
16624 # Whether dlopen is supported.
16625 dlopen_support=$enable_dlopen
16626
16627 # Whether dlopen of programs is supported.
16628 dlopen_self=$enable_dlopen_self
16629
16630 # Whether dlopen of statically linked programs is supported.
16631 dlopen_self_static=$enable_dlopen_self_static
16632
16633 # Compiler flag to prevent dynamic linking.
16634 link_static_flag=$lt_lt_prog_compiler_static
16635
16636 # Compiler flag to turn off builtin functions.
16637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16638
16639 # Compiler flag to allow reflexive dlopens.
16640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16641
16642 # Compiler flag to generate shared objects directly from archives.
16643 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16644
16645 # Compiler flag to generate thread-safe objects.
16646 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16647
16648 # Library versioning type.
16649 version_type=$version_type
16650
16651 # Format of library name prefix.
16652 libname_spec=$lt_libname_spec
16653
16654 # List of archive names.  First name is the real one, the rest are links.
16655 # The last name is the one that the linker finds with -lNAME.
16656 library_names_spec=$lt_library_names_spec
16657
16658 # The coded name of the library, if different from the real name.
16659 soname_spec=$lt_soname_spec
16660
16661 # Commands used to build and install an old-style archive.
16662 RANLIB=$lt_RANLIB
16663 old_archive_cmds=$lt_old_archive_cmds
16664 old_postinstall_cmds=$lt_old_postinstall_cmds
16665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16666
16667 # Create an old-style archive from a shared archive.
16668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16669
16670 # Create a temporary old-style archive to link instead of a shared archive.
16671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16672
16673 # Commands used to build and install a shared archive.
16674 archive_cmds=$lt_archive_cmds
16675 archive_expsym_cmds=$lt_archive_expsym_cmds
16676 postinstall_cmds=$lt_postinstall_cmds
16677 postuninstall_cmds=$lt_postuninstall_cmds
16678
16679 # Commands used to build a loadable module (assumed same as above if empty)
16680 module_cmds=$lt_module_cmds
16681 module_expsym_cmds=$lt_module_expsym_cmds
16682
16683 # Commands to strip libraries.
16684 old_striplib=$lt_old_striplib
16685 striplib=$lt_striplib
16686
16687 # Dependencies to place before the objects being linked to create a
16688 # shared library.
16689 predep_objects=$lt_predep_objects
16690
16691 # Dependencies to place after the objects being linked to create a
16692 # shared library.
16693 postdep_objects=$lt_postdep_objects
16694
16695 # Dependencies to place before the objects being linked to create a
16696 # shared library.
16697 predeps=$lt_predeps
16698
16699 # Dependencies to place after the objects being linked to create a
16700 # shared library.
16701 postdeps=$lt_postdeps
16702
16703 # The library search path used internally by the compiler when linking
16704 # a shared library.
16705 compiler_lib_search_path=$lt_compiler_lib_search_path
16706
16707 # Method to check whether dependent libraries are shared objects.
16708 deplibs_check_method=$lt_deplibs_check_method
16709
16710 # Command to use when deplibs_check_method == file_magic.
16711 file_magic_cmd=$lt_file_magic_cmd
16712
16713 # Flag that allows shared libraries with undefined symbols to be built.
16714 allow_undefined_flag=$lt_allow_undefined_flag
16715
16716 # Flag that forces no undefined symbols.
16717 no_undefined_flag=$lt_no_undefined_flag
16718
16719 # Commands used to finish a libtool library installation in a directory.
16720 finish_cmds=$lt_finish_cmds
16721
16722 # Same as above, but a single script fragment to be evaled but not shown.
16723 finish_eval=$lt_finish_eval
16724
16725 # Take the output of nm and produce a listing of raw symbols and C names.
16726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16727
16728 # Transform the output of nm in a proper C declaration
16729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16730
16731 # Transform the output of nm in a C name address pair
16732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16733
16734 # This is the shared library runtime path variable.
16735 runpath_var=$runpath_var
16736
16737 # This is the shared library path variable.
16738 shlibpath_var=$shlibpath_var
16739
16740 # Is shlibpath searched before the hard-coded library search path?
16741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16742
16743 # How to hardcode a shared library path into an executable.
16744 hardcode_action=$hardcode_action
16745
16746 # Whether we should hardcode library paths into libraries.
16747 hardcode_into_libs=$hardcode_into_libs
16748
16749 # Flag to hardcode \$libdir into a binary during linking.
16750 # This must work even if \$libdir does not exist.
16751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16752
16753 # If ld is used when linking, flag to hardcode \$libdir into
16754 # a binary during linking. This must work even if \$libdir does
16755 # not exist.
16756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16757
16758 # Whether we need a single -rpath flag with a separated argument.
16759 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16760
16761 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16762 # resulting binary.
16763 hardcode_direct=$hardcode_direct
16764
16765 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766 # resulting binary.
16767 hardcode_minus_L=$hardcode_minus_L
16768
16769 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770 # the resulting binary.
16771 hardcode_shlibpath_var=$hardcode_shlibpath_var
16772
16773 # Set to yes if building a shared library automatically hardcodes DIR into the library
16774 # and all subsequent libraries and executables linked against it.
16775 hardcode_automatic=$hardcode_automatic
16776
16777 # Variables whose values should be saved in libtool wrapper scripts and
16778 # restored at relink time.
16779 variables_saved_for_relink="$variables_saved_for_relink"
16780
16781 # Whether libtool must link a program against all its dependency libraries.
16782 link_all_deplibs=$link_all_deplibs
16783
16784 # Compile-time system search path for libraries
16785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16786
16787 # Run-time system search path for libraries
16788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16789
16790 # Fix the shell variable \$srcfile for the compiler.
16791 fix_srcfile_path="$fix_srcfile_path"
16792
16793 # Set to yes if exported symbols are required.
16794 always_export_symbols=$always_export_symbols
16795
16796 # The commands to list exported symbols.
16797 export_symbols_cmds=$lt_export_symbols_cmds
16798
16799 # The commands to extract the exported symbol list from a shared archive.
16800 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16801
16802 # Symbols that should not be listed in the preloaded symbols.
16803 exclude_expsyms=$lt_exclude_expsyms
16804
16805 # Symbols that must always be exported.
16806 include_expsyms=$lt_include_expsyms
16807
16808 # ### END LIBTOOL CONFIG
16809
16810 __EOF__
16811
16812
16813   case $host_os in
16814   aix3*)
16815     cat <<\EOF >> "$cfgfile"
16816
16817 # AIX sometimes has problems with the GCC collect2 program.  For some
16818 # reason, if we set the COLLECT_NAMES environment variable, the problems
16819 # vanish in a puff of smoke.
16820 if test "X${COLLECT_NAMES+set}" != Xset; then
16821   COLLECT_NAMES=
16822   export COLLECT_NAMES
16823 fi
16824 EOF
16825     ;;
16826   esac
16827
16828   # We use sed instead of cat because bash on DJGPP gets confused if
16829   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16830   # text mode, it properly converts lines to CR/LF.  This bash problem
16831   # is reportedly fixed, but why not run on old versions too?
16832   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16833
16834   mv -f "$cfgfile" "$ofile" || \
16835     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16836   chmod +x "$ofile"
16837
16838 else
16839   # If there is no Makefile yet, we rely on a make rule to execute
16840   # `config.status --recheck' to rerun these tests and create the
16841   # libtool script then.
16842   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16843   if test -f "$ltmain_in"; then
16844     test -f Makefile && make "$ltmain"
16845   fi
16846 fi
16847
16848
16849 ac_ext=c
16850 ac_cpp='$CPP $CPPFLAGS'
16851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16854
16855 CC="$lt_save_CC"
16856
16857
16858 # Check whether --with-tags was given.
16859 if test "${with_tags+set}" = set; then
16860   withval=$with_tags; tagnames="$withval"
16861 fi
16862
16863
16864 if test -f "$ltmain" && test -n "$tagnames"; then
16865   if test ! -f "${ofile}"; then
16866     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16867 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16868   fi
16869
16870   if test -z "$LTCC"; then
16871     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16872     if test -z "$LTCC"; then
16873       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16874 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16875     else
16876       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16877 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16878     fi
16879   fi
16880   if test -z "$LTCFLAGS"; then
16881     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16882   fi
16883
16884   # Extract list of available tagged configurations in $ofile.
16885   # Note that this assumes the entire list is on one line.
16886   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16887
16888   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16889   for tagname in $tagnames; do
16890     IFS="$lt_save_ifs"
16891     # Check whether tagname contains only valid characters
16892     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16893     "") ;;
16894     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16895 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16896    { (exit 1); exit 1; }; }
16897         ;;
16898     esac
16899
16900     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16901     then
16902       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16903 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16904    { (exit 1); exit 1; }; }
16905     fi
16906
16907     # Update the list of available tags.
16908     if test -n "$tagname"; then
16909       echo appending configuration tag \"$tagname\" to $ofile
16910
16911       case $tagname in
16912       CXX)
16913         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16914             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16915             (test "X$CXX" != "Xg++"))) ; then
16916           ac_ext=cpp
16917 ac_cpp='$CXXCPP $CPPFLAGS'
16918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16921
16922
16923
16924
16925 archive_cmds_need_lc_CXX=no
16926 allow_undefined_flag_CXX=
16927 always_export_symbols_CXX=no
16928 archive_expsym_cmds_CXX=
16929 export_dynamic_flag_spec_CXX=
16930 hardcode_direct_CXX=no
16931 hardcode_libdir_flag_spec_CXX=
16932 hardcode_libdir_flag_spec_ld_CXX=
16933 hardcode_libdir_separator_CXX=
16934 hardcode_minus_L_CXX=no
16935 hardcode_shlibpath_var_CXX=unsupported
16936 hardcode_automatic_CXX=no
16937 module_cmds_CXX=
16938 module_expsym_cmds_CXX=
16939 link_all_deplibs_CXX=unknown
16940 old_archive_cmds_CXX=$old_archive_cmds
16941 no_undefined_flag_CXX=
16942 whole_archive_flag_spec_CXX=
16943 enable_shared_with_static_runtimes_CXX=no
16944
16945 # Dependencies to place before and after the object being linked:
16946 predep_objects_CXX=
16947 postdep_objects_CXX=
16948 predeps_CXX=
16949 postdeps_CXX=
16950 compiler_lib_search_path_CXX=
16951
16952 # Source file extension for C++ test sources.
16953 ac_ext=cpp
16954
16955 # Object file extension for compiled C++ test sources.
16956 objext=o
16957 objext_CXX=$objext
16958
16959 # Code to be used in simple compile tests
16960 lt_simple_compile_test_code="int some_variable = 0;\n"
16961
16962 # Code to be used in simple link tests
16963 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16964
16965 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16966
16967 # If no C compiler was specified, use CC.
16968 LTCC=${LTCC-"$CC"}
16969
16970 # If no C compiler flags were specified, use CFLAGS.
16971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16972
16973 # Allow CC to be a program name with arguments.
16974 compiler=$CC
16975
16976
16977 # save warnings/boilerplate of simple test code
16978 ac_outfile=conftest.$ac_objext
16979 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16981 _lt_compiler_boilerplate=`cat conftest.err`
16982 $rm conftest*
16983
16984 ac_outfile=conftest.$ac_objext
16985 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16987 _lt_linker_boilerplate=`cat conftest.err`
16988 $rm conftest*
16989
16990
16991 # Allow CC to be a program name with arguments.
16992 lt_save_CC=$CC
16993 lt_save_LD=$LD
16994 lt_save_GCC=$GCC
16995 GCC=$GXX
16996 lt_save_with_gnu_ld=$with_gnu_ld
16997 lt_save_path_LD=$lt_cv_path_LD
16998 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16999   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17000 else
17001   $as_unset lt_cv_prog_gnu_ld
17002 fi
17003 if test -n "${lt_cv_path_LDCXX+set}"; then
17004   lt_cv_path_LD=$lt_cv_path_LDCXX
17005 else
17006   $as_unset lt_cv_path_LD
17007 fi
17008 test -z "${LDCXX+set}" || LD=$LDCXX
17009 CC=${CXX-"c++"}
17010 compiler=$CC
17011 compiler_CXX=$CC
17012 for cc_temp in $compiler""; do
17013   case $cc_temp in
17014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17016     \-*) ;;
17017     *) break;;
17018   esac
17019 done
17020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17021
17022
17023 # We don't want -fno-exception wen compiling C++ code, so set the
17024 # no_builtin_flag separately
17025 if test "$GXX" = yes; then
17026   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17027 else
17028   lt_prog_compiler_no_builtin_flag_CXX=
17029 fi
17030
17031 if test "$GXX" = yes; then
17032   # Set up default GNU C++ configuration
17033
17034
17035 # Check whether --with-gnu-ld was given.
17036 if test "${with_gnu_ld+set}" = set; then
17037   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17038 else
17039   with_gnu_ld=no
17040 fi
17041
17042 ac_prog=ld
17043 if test "$GCC" = yes; then
17044   # Check if gcc -print-prog-name=ld gives a path.
17045   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17046 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17047   case $host in
17048   *-*-mingw*)
17049     # gcc leaves a trailing carriage return which upsets mingw
17050     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17051   *)
17052     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17053   esac
17054   case $ac_prog in
17055     # Accept absolute paths.
17056     [\\/]* | ?:[\\/]*)
17057       re_direlt='/[^/][^/]*/\.\./'
17058       # Canonicalize the pathname of ld
17059       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17060       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17061         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17062       done
17063       test -z "$LD" && LD="$ac_prog"
17064       ;;
17065   "")
17066     # If it fails, then pretend we aren't using GCC.
17067     ac_prog=ld
17068     ;;
17069   *)
17070     # If it is relative, then search for the first ld in PATH.
17071     with_gnu_ld=unknown
17072     ;;
17073   esac
17074 elif test "$with_gnu_ld" = yes; then
17075   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17077 else
17078   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17080 fi
17081 if test "${lt_cv_path_LD+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084   if test -z "$LD"; then
17085   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17086   for ac_dir in $PATH; do
17087     IFS="$lt_save_ifs"
17088     test -z "$ac_dir" && ac_dir=.
17089     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17090       lt_cv_path_LD="$ac_dir/$ac_prog"
17091       # Check to see if the program is GNU ld.  I'd rather use --version,
17092       # but apparently some variants of GNU ld only accept -v.
17093       # Break only if it was the GNU/non-GNU ld that we prefer.
17094       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17095       *GNU* | *'with BFD'*)
17096         test "$with_gnu_ld" != no && break
17097         ;;
17098       *)
17099         test "$with_gnu_ld" != yes && break
17100         ;;
17101       esac
17102     fi
17103   done
17104   IFS="$lt_save_ifs"
17105 else
17106   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17107 fi
17108 fi
17109
17110 LD="$lt_cv_path_LD"
17111 if test -n "$LD"; then
17112   { echo "$as_me:$LINENO: result: $LD" >&5
17113 echo "${ECHO_T}$LD" >&6; }
17114 else
17115   { echo "$as_me:$LINENO: result: no" >&5
17116 echo "${ECHO_T}no" >&6; }
17117 fi
17118 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17119 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17120    { (exit 1); exit 1; }; }
17121 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17122 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17123 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17127 case `$LD -v 2>&1 </dev/null` in
17128 *GNU* | *'with BFD'*)
17129   lt_cv_prog_gnu_ld=yes
17130   ;;
17131 *)
17132   lt_cv_prog_gnu_ld=no
17133   ;;
17134 esac
17135 fi
17136 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17137 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17138 with_gnu_ld=$lt_cv_prog_gnu_ld
17139
17140
17141
17142   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17143   # archiving commands below assume that GNU ld is being used.
17144   if test "$with_gnu_ld" = yes; then
17145     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17146     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'
17147
17148     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17149     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17150
17151     # If archive_cmds runs LD, not CC, wlarc should be empty
17152     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17153     #     investigate it a little bit more. (MM)
17154     wlarc='${wl}'
17155
17156     # ancient GNU ld didn't support --whole-archive et. al.
17157     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17158         grep 'no-whole-archive' > /dev/null; then
17159       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17160     else
17161       whole_archive_flag_spec_CXX=
17162     fi
17163   else
17164     with_gnu_ld=no
17165     wlarc=
17166
17167     # A generic and very simple default shared library creation
17168     # command for GNU C++ for the case where it uses the native
17169     # linker, instead of GNU ld.  If possible, this setting should
17170     # overridden to take advantage of the native linker features on
17171     # the platform it is being used on.
17172     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17173   fi
17174
17175   # Commands to make compiler produce verbose output that lists
17176   # what "hidden" libraries, object files and flags are used when
17177   # linking a shared library.
17178   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17179
17180 else
17181   GXX=no
17182   with_gnu_ld=no
17183   wlarc=
17184 fi
17185
17186 # PORTME: fill in a description of your system's C++ link characteristics
17187 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17188 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17189 ld_shlibs_CXX=yes
17190 case $host_os in
17191   aix3*)
17192     # FIXME: insert proper C++ library support
17193     ld_shlibs_CXX=no
17194     ;;
17195   aix4* | aix5*)
17196     if test "$host_cpu" = ia64; then
17197       # On IA64, the linker does run time linking by default, so we don't
17198       # have to do anything special.
17199       aix_use_runtimelinking=no
17200       exp_sym_flag='-Bexport'
17201       no_entry_flag=""
17202     else
17203       aix_use_runtimelinking=no
17204
17205       # Test if we are trying to use run time linking or normal
17206       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17207       # need to do runtime linking.
17208       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17209         for ld_flag in $LDFLAGS; do
17210           case $ld_flag in
17211           *-brtl*)
17212             aix_use_runtimelinking=yes
17213             break
17214             ;;
17215           esac
17216         done
17217         ;;
17218       esac
17219
17220       exp_sym_flag='-bexport'
17221       no_entry_flag='-bnoentry'
17222     fi
17223
17224     # When large executables or shared objects are built, AIX ld can
17225     # have problems creating the table of contents.  If linking a library
17226     # or program results in "error TOC overflow" add -mminimal-toc to
17227     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17228     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17229
17230     archive_cmds_CXX=''
17231     hardcode_direct_CXX=yes
17232     hardcode_libdir_separator_CXX=':'
17233     link_all_deplibs_CXX=yes
17234
17235     if test "$GXX" = yes; then
17236       case $host_os in aix4.[012]|aix4.[012].*)
17237       # We only want to do this on AIX 4.2 and lower, the check
17238       # below for broken collect2 doesn't work under 4.3+
17239         collect2name=`${CC} -print-prog-name=collect2`
17240         if test -f "$collect2name" && \
17241            strings "$collect2name" | grep resolve_lib_name >/dev/null
17242         then
17243           # We have reworked collect2
17244           hardcode_direct_CXX=yes
17245         else
17246           # We have old collect2
17247           hardcode_direct_CXX=unsupported
17248           # It fails to find uninstalled libraries when the uninstalled
17249           # path is not listed in the libpath.  Setting hardcode_minus_L
17250           # to unsupported forces relinking
17251           hardcode_minus_L_CXX=yes
17252           hardcode_libdir_flag_spec_CXX='-L$libdir'
17253           hardcode_libdir_separator_CXX=
17254         fi
17255         ;;
17256       esac
17257       shared_flag='-shared'
17258       if test "$aix_use_runtimelinking" = yes; then
17259         shared_flag="$shared_flag "'${wl}-G'
17260       fi
17261     else
17262       # not using gcc
17263       if test "$host_cpu" = ia64; then
17264         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265         # chokes on -Wl,-G. The following line is correct:
17266         shared_flag='-G'
17267       else
17268         if test "$aix_use_runtimelinking" = yes; then
17269           shared_flag='${wl}-G'
17270         else
17271           shared_flag='${wl}-bM:SRE'
17272         fi
17273       fi
17274     fi
17275
17276     # It seems that -bexpall does not export symbols beginning with
17277     # underscore (_), so it is better to generate a list of symbols to export.
17278     always_export_symbols_CXX=yes
17279     if test "$aix_use_runtimelinking" = yes; then
17280       # Warning - without using the other runtime loading flags (-brtl),
17281       # -berok will link without error, but may produce a broken library.
17282       allow_undefined_flag_CXX='-berok'
17283       # Determine the default libpath from the value encoded in an empty executable.
17284       cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290
17291 int
17292 main ()
17293 {
17294
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_link") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_cxx_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest$ac_exeext &&
17316        $as_test_x conftest$ac_exeext; then
17317
17318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17319 }'`
17320 # Check for a 64-bit object if we didn't find anything.
17321 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; }
17322 }'`; fi
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327
17328 fi
17329
17330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17331       conftest$ac_exeext conftest.$ac_ext
17332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17333
17334       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17335
17336       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"
17337      else
17338       if test "$host_cpu" = ia64; then
17339         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17340         allow_undefined_flag_CXX="-z nodefs"
17341         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"
17342       else
17343         # Determine the default libpath from the value encoded in an empty executable.
17344         cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350
17351 int
17352 main ()
17353 {
17354
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_cxx_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377
17378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17379 }'`
17380 # Check for a 64-bit object if we didn't find anything.
17381 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; }
17382 }'`; fi
17383 else
17384   echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387
17388 fi
17389
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391       conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17393
17394         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17395         # Warning - without using the other run time loading flags,
17396         # -berok will link without error, but may produce a broken library.
17397         no_undefined_flag_CXX=' ${wl}-bernotok'
17398         allow_undefined_flag_CXX=' ${wl}-berok'
17399         # Exported symbols can be pulled into shared objects from archives
17400         whole_archive_flag_spec_CXX='$convenience'
17401         archive_cmds_need_lc_CXX=yes
17402         # This is similar to how AIX traditionally builds its shared libraries.
17403         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'
17404       fi
17405     fi
17406     ;;
17407
17408   beos*)
17409     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17410       allow_undefined_flag_CXX=unsupported
17411       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17412       # support --undefined.  This deserves some investigation.  FIXME
17413       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414     else
17415       ld_shlibs_CXX=no
17416     fi
17417     ;;
17418
17419   chorus*)
17420     case $cc_basename in
17421       *)
17422         # FIXME: insert proper C++ library support
17423         ld_shlibs_CXX=no
17424         ;;
17425     esac
17426     ;;
17427
17428   cygwin* | mingw* | pw32*)
17429     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17430     # as there is no search path for DLLs.
17431     hardcode_libdir_flag_spec_CXX='-L$libdir'
17432     allow_undefined_flag_CXX=unsupported
17433     always_export_symbols_CXX=no
17434     enable_shared_with_static_runtimes_CXX=yes
17435
17436     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17437       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'
17438       # If the export-symbols file already is a .def file (1st line
17439       # is EXPORTS), use it as is; otherwise, prepend...
17440       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441         cp $export_symbols $output_objdir/$soname.def;
17442       else
17443         echo EXPORTS > $output_objdir/$soname.def;
17444         cat $export_symbols >> $output_objdir/$soname.def;
17445       fi~
17446       $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'
17447     else
17448       ld_shlibs_CXX=no
17449     fi
17450   ;;
17451       darwin* | rhapsody*)
17452         case $host_os in
17453         rhapsody* | darwin1.[012])
17454          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17455          ;;
17456        *) # Darwin 1.3 on
17457          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17458            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17459          else
17460            case ${MACOSX_DEPLOYMENT_TARGET} in
17461              10.[012])
17462                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463                ;;
17464              10.*)
17465                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17466                ;;
17467            esac
17468          fi
17469          ;;
17470         esac
17471       archive_cmds_need_lc_CXX=no
17472       hardcode_direct_CXX=no
17473       hardcode_automatic_CXX=yes
17474       hardcode_shlibpath_var_CXX=unsupported
17475       whole_archive_flag_spec_CXX=''
17476       link_all_deplibs_CXX=yes
17477
17478     if test "$GXX" = yes ; then
17479       lt_int_apple_cc_single_mod=no
17480       output_verbose_link_cmd='echo'
17481       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17482        lt_int_apple_cc_single_mod=yes
17483       fi
17484       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17485        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17486       else
17487           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'
17488         fi
17489         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17490         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17491           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17492             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}'
17493           else
17494             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}'
17495           fi
17496             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}'
17497       else
17498       case $cc_basename in
17499         xlc*)
17500          output_verbose_link_cmd='echo'
17501           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'
17502           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17503           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17504           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}'
17505           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}'
17506           ;;
17507        *)
17508          ld_shlibs_CXX=no
17509           ;;
17510       esac
17511       fi
17512         ;;
17513
17514   dgux*)
17515     case $cc_basename in
17516       ec++*)
17517         # FIXME: insert proper C++ library support
17518         ld_shlibs_CXX=no
17519         ;;
17520       ghcx*)
17521         # Green Hills C++ Compiler
17522         # FIXME: insert proper C++ library support
17523         ld_shlibs_CXX=no
17524         ;;
17525       *)
17526         # FIXME: insert proper C++ library support
17527         ld_shlibs_CXX=no
17528         ;;
17529     esac
17530     ;;
17531   freebsd[12]*)
17532     # C++ shared libraries reported to be fairly broken before switch to ELF
17533     ld_shlibs_CXX=no
17534     ;;
17535   freebsd-elf*)
17536     archive_cmds_need_lc_CXX=no
17537     ;;
17538   freebsd* | kfreebsd*-gnu | dragonfly*)
17539     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17540     # conventions
17541     ld_shlibs_CXX=yes
17542     ;;
17543   gnu*)
17544     ;;
17545   hpux9*)
17546     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17547     hardcode_libdir_separator_CXX=:
17548     export_dynamic_flag_spec_CXX='${wl}-E'
17549     hardcode_direct_CXX=yes
17550     hardcode_minus_L_CXX=yes # Not in the search PATH,
17551                                 # but as the default
17552                                 # location of the library.
17553
17554     case $cc_basename in
17555     CC*)
17556       # FIXME: insert proper C++ library support
17557       ld_shlibs_CXX=no
17558       ;;
17559     aCC*)
17560       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'
17561       # Commands to make compiler produce verbose output that lists
17562       # what "hidden" libraries, object files and flags are used when
17563       # linking a shared library.
17564       #
17565       # There doesn't appear to be a way to prevent this compiler from
17566       # explicitly linking system object files so we need to strip them
17567       # from the output so that they don't get included in the library
17568       # dependencies.
17569       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'
17570       ;;
17571     *)
17572       if test "$GXX" = yes; then
17573         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'
17574       else
17575         # FIXME: insert proper C++ library support
17576         ld_shlibs_CXX=no
17577       fi
17578       ;;
17579     esac
17580     ;;
17581   hpux10*|hpux11*)
17582     if test $with_gnu_ld = no; then
17583       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17584       hardcode_libdir_separator_CXX=:
17585
17586       case $host_cpu in
17587       hppa*64*|ia64*)
17588         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17589         ;;
17590       *)
17591         export_dynamic_flag_spec_CXX='${wl}-E'
17592         ;;
17593       esac
17594     fi
17595     case $host_cpu in
17596     hppa*64*|ia64*)
17597       hardcode_direct_CXX=no
17598       hardcode_shlibpath_var_CXX=no
17599       ;;
17600     *)
17601       hardcode_direct_CXX=yes
17602       hardcode_minus_L_CXX=yes # Not in the search PATH,
17603                                               # but as the default
17604                                               # location of the library.
17605       ;;
17606     esac
17607
17608     case $cc_basename in
17609       CC*)
17610         # FIXME: insert proper C++ library support
17611         ld_shlibs_CXX=no
17612         ;;
17613       aCC*)
17614         case $host_cpu in
17615         hppa*64*)
17616           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17617           ;;
17618         ia64*)
17619           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17620           ;;
17621         *)
17622           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17623           ;;
17624         esac
17625         # Commands to make compiler produce verbose output that lists
17626         # what "hidden" libraries, object files and flags are used when
17627         # linking a shared library.
17628         #
17629         # There doesn't appear to be a way to prevent this compiler from
17630         # explicitly linking system object files so we need to strip them
17631         # from the output so that they don't get included in the library
17632         # dependencies.
17633         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'
17634         ;;
17635       *)
17636         if test "$GXX" = yes; then
17637           if test $with_gnu_ld = no; then
17638             case $host_cpu in
17639             hppa*64*)
17640               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17641               ;;
17642             ia64*)
17643               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17644               ;;
17645             *)
17646               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'
17647               ;;
17648             esac
17649           fi
17650         else
17651           # FIXME: insert proper C++ library support
17652           ld_shlibs_CXX=no
17653         fi
17654         ;;
17655     esac
17656     ;;
17657   interix3*)
17658     hardcode_direct_CXX=no
17659     hardcode_shlibpath_var_CXX=no
17660     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17661     export_dynamic_flag_spec_CXX='${wl}-E'
17662     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17663     # Instead, shared libraries are loaded at an image base (0x10000000 by
17664     # default) and relocated if they conflict, which is a slow very memory
17665     # consuming and fragmenting process.  To avoid this, we pick a random,
17666     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17667     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17668     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'
17669     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'
17670     ;;
17671   irix5* | irix6*)
17672     case $cc_basename in
17673       CC*)
17674         # SGI C++
17675         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'
17676
17677         # Archives containing C++ object files must be created using
17678         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17679         # necessary to make sure instantiated templates are included
17680         # in the archive.
17681         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17682         ;;
17683       *)
17684         if test "$GXX" = yes; then
17685           if test "$with_gnu_ld" = no; then
17686             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'
17687           else
17688             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'
17689           fi
17690         fi
17691         link_all_deplibs_CXX=yes
17692         ;;
17693     esac
17694     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17695     hardcode_libdir_separator_CXX=:
17696     ;;
17697   linux*)
17698     case $cc_basename in
17699       KCC*)
17700         # Kuck and Associates, Inc. (KAI) C++ Compiler
17701
17702         # KCC will only create a shared library if the output file
17703         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17704         # to its proper name (with version) after linking.
17705         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'
17706         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'
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 $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'
17716
17717         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17718         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17719
17720         # Archives containing C++ object files must be created using
17721         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17722         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17723         ;;
17724       icpc*)
17725         # Intel C++
17726         with_gnu_ld=yes
17727         # version 8.0 and above of icpc choke on multiply defined symbols
17728         # if we add $predep_objects and $postdep_objects, however 7.1 and
17729         # earlier do not add the objects themselves.
17730         case `$CC -V 2>&1` in
17731         *"Version 7."*)
17732           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733           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'
17734           ;;
17735         *)  # Version 8.0 or newer
17736           tmp_idyn=
17737           case $host_cpu in
17738             ia64*) tmp_idyn=' -i_dynamic';;
17739           esac
17740           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17741           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'
17742           ;;
17743         esac
17744         archive_cmds_need_lc_CXX=no
17745         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17746         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17747         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17748         ;;
17749       pgCC*)
17750         # Portland Group C++ compiler
17751         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17752         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'
17753
17754         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17755         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17756         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'
17757         ;;
17758       cxx*)
17759         # Compaq C++
17760         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761         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'
17762
17763         runpath_var=LD_RUN_PATH
17764         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17765         hardcode_libdir_separator_CXX=:
17766
17767         # Commands to make compiler produce verbose output that lists
17768         # what "hidden" libraries, object files and flags are used when
17769         # linking a shared library.
17770         #
17771         # There doesn't appear to be a way to prevent this compiler from
17772         # explicitly linking system object files so we need to strip them
17773         # from the output so that they don't get included in the library
17774         # dependencies.
17775         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'
17776         ;;
17777     esac
17778     ;;
17779   lynxos*)
17780     # FIXME: insert proper C++ library support
17781     ld_shlibs_CXX=no
17782     ;;
17783   m88k*)
17784     # FIXME: insert proper C++ library support
17785     ld_shlibs_CXX=no
17786     ;;
17787   mvs*)
17788     case $cc_basename in
17789       cxx*)
17790         # FIXME: insert proper C++ library support
17791         ld_shlibs_CXX=no
17792         ;;
17793       *)
17794         # FIXME: insert proper C++ library support
17795         ld_shlibs_CXX=no
17796         ;;
17797     esac
17798     ;;
17799   netbsd*)
17800     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17802       wlarc=
17803       hardcode_libdir_flag_spec_CXX='-R$libdir'
17804       hardcode_direct_CXX=yes
17805       hardcode_shlibpath_var_CXX=no
17806     fi
17807     # Workaround some broken pre-1.5 toolchains
17808     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17809     ;;
17810   openbsd2*)
17811     # C++ shared libraries are fairly broken
17812     ld_shlibs_CXX=no
17813     ;;
17814   openbsd*)
17815     hardcode_direct_CXX=yes
17816     hardcode_shlibpath_var_CXX=no
17817     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17818     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17819     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17820       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17821       export_dynamic_flag_spec_CXX='${wl}-E'
17822       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17823     fi
17824     output_verbose_link_cmd='echo'
17825     ;;
17826   osf3*)
17827     case $cc_basename in
17828       KCC*)
17829         # Kuck and Associates, Inc. (KAI) C++ Compiler
17830
17831         # KCC will only create a shared library if the output file
17832         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17833         # to its proper name (with version) after linking.
17834         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'
17835
17836         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17837         hardcode_libdir_separator_CXX=:
17838
17839         # Archives containing C++ object files must be created using
17840         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17841         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17842
17843         ;;
17844       RCC*)
17845         # Rational C++ 2.4.1
17846         # FIXME: insert proper C++ library support
17847         ld_shlibs_CXX=no
17848         ;;
17849       cxx*)
17850         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17851         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'
17852
17853         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17854         hardcode_libdir_separator_CXX=:
17855
17856         # Commands to make compiler produce verbose output that lists
17857         # what "hidden" libraries, object files and flags are used when
17858         # linking a shared library.
17859         #
17860         # There doesn't appear to be a way to prevent this compiler from
17861         # explicitly linking system object files so we need to strip them
17862         # from the output so that they don't get included in the library
17863         # dependencies.
17864         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'
17865         ;;
17866       *)
17867         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17868           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17869           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'
17870
17871           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17872           hardcode_libdir_separator_CXX=:
17873
17874           # Commands to make compiler produce verbose output that lists
17875           # what "hidden" libraries, object files and flags are used when
17876           # linking a shared library.
17877           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17878
17879         else
17880           # FIXME: insert proper C++ library support
17881           ld_shlibs_CXX=no
17882         fi
17883         ;;
17884     esac
17885     ;;
17886   osf4* | osf5*)
17887     case $cc_basename in
17888       KCC*)
17889         # Kuck and Associates, Inc. (KAI) C++ Compiler
17890
17891         # KCC will only create a shared library if the output file
17892         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17893         # to its proper name (with version) after linking.
17894         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'
17895
17896         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17897         hardcode_libdir_separator_CXX=:
17898
17899         # Archives containing C++ object files must be created using
17900         # the KAI C++ compiler.
17901         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17902         ;;
17903       RCC*)
17904         # Rational C++ 2.4.1
17905         # FIXME: insert proper C++ library support
17906         ld_shlibs_CXX=no
17907         ;;
17908       cxx*)
17909         allow_undefined_flag_CXX=' -expect_unresolved \*'
17910         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'
17911         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17912           echo "-hidden">> $lib.exp~
17913           $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~
17914           $rm $lib.exp'
17915
17916         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17917         hardcode_libdir_separator_CXX=:
17918
17919         # Commands to make compiler produce verbose output that lists
17920         # what "hidden" libraries, object files and flags are used when
17921         # linking a shared library.
17922         #
17923         # There doesn't appear to be a way to prevent this compiler from
17924         # explicitly linking system object files so we need to strip them
17925         # from the output so that they don't get included in the library
17926         # dependencies.
17927         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'
17928         ;;
17929       *)
17930         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17931           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17932          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'
17933
17934           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17935           hardcode_libdir_separator_CXX=:
17936
17937           # Commands to make compiler produce verbose output that lists
17938           # what "hidden" libraries, object files and flags are used when
17939           # linking a shared library.
17940           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17941
17942         else
17943           # FIXME: insert proper C++ library support
17944           ld_shlibs_CXX=no
17945         fi
17946         ;;
17947     esac
17948     ;;
17949   psos*)
17950     # FIXME: insert proper C++ library support
17951     ld_shlibs_CXX=no
17952     ;;
17953   sunos4*)
17954     case $cc_basename in
17955       CC*)
17956         # Sun C++ 4.x
17957         # FIXME: insert proper C++ library support
17958         ld_shlibs_CXX=no
17959         ;;
17960       lcc*)
17961         # Lucid
17962         # FIXME: insert proper C++ library support
17963         ld_shlibs_CXX=no
17964         ;;
17965       *)
17966         # FIXME: insert proper C++ library support
17967         ld_shlibs_CXX=no
17968         ;;
17969     esac
17970     ;;
17971   solaris*)
17972     case $cc_basename in
17973       CC*)
17974         # Sun C++ 4.2, 5.x and Centerline C++
17975         archive_cmds_need_lc_CXX=yes
17976         no_undefined_flag_CXX=' -zdefs'
17977         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17978         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17979         $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'
17980
17981         hardcode_libdir_flag_spec_CXX='-R$libdir'
17982         hardcode_shlibpath_var_CXX=no
17983         case $host_os in
17984           solaris2.[0-5] | solaris2.[0-5].*) ;;
17985           *)
17986             # The C++ compiler is used as linker so we must use $wl
17987             # flag to pass the commands to the underlying system
17988             # linker. We must also pass each convience library through
17989             # to the system linker between allextract/defaultextract.
17990             # The C++ compiler will combine linker options so we
17991             # cannot just pass the convience library names through
17992             # without $wl.
17993             # Supported since Solaris 2.6 (maybe 2.5.1?)
17994             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'
17995             ;;
17996         esac
17997         link_all_deplibs_CXX=yes
17998
17999         output_verbose_link_cmd='echo'
18000
18001         # Archives containing C++ object files must be created using
18002         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18003         # necessary to make sure instantiated templates are included
18004         # in the archive.
18005         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18006         ;;
18007       gcx*)
18008         # Green Hills C++ Compiler
18009         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18010
18011         # The C++ compiler must be used to create the archive.
18012         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18013         ;;
18014       *)
18015         # GNU C++ compiler with Solaris linker
18016         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18017           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18018           if $CC --version | grep -v '^2\.7' > /dev/null; then
18019             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18020             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18021                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18022
18023             # Commands to make compiler produce verbose output that lists
18024             # what "hidden" libraries, object files and flags are used when
18025             # linking a shared library.
18026             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18027           else
18028             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18029             # platform.
18030             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18031             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18032                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18033
18034             # Commands to make compiler produce verbose output that lists
18035             # what "hidden" libraries, object files and flags are used when
18036             # linking a shared library.
18037             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18038           fi
18039
18040           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18041         fi
18042         ;;
18043     esac
18044     ;;
18045   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18046     no_undefined_flag_CXX='${wl}-z,text'
18047     archive_cmds_need_lc_CXX=no
18048     hardcode_shlibpath_var_CXX=no
18049     runpath_var='LD_RUN_PATH'
18050
18051     case $cc_basename in
18052       CC*)
18053         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18055         ;;
18056       *)
18057         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059         ;;
18060     esac
18061     ;;
18062   sysv5* | sco3.2v5* | sco5v6*)
18063     # Note: We can NOT use -z defs as we might desire, because we do not
18064     # link with -lc, and that would cause any symbols used from libc to
18065     # always be unresolved, which means just about no library would
18066     # ever link correctly.  If we're not using GNU ld we use -z text
18067     # though, which does catch some bad symbols but isn't as heavy-handed
18068     # as -z defs.
18069     # For security reasons, it is highly recommended that you always
18070     # use absolute paths for naming shared libraries, and exclude the
18071     # DT_RUNPATH tag from executables and libraries.  But doing so
18072     # requires that you compile everything twice, which is a pain.
18073     # So that behaviour is only enabled if SCOABSPATH is set to a
18074     # non-empty value in the environment.  Most likely only useful for
18075     # creating official distributions of packages.
18076     # This is a hack until libtool officially supports absolute path
18077     # names for shared libraries.
18078     no_undefined_flag_CXX='${wl}-z,text'
18079     allow_undefined_flag_CXX='${wl}-z,nodefs'
18080     archive_cmds_need_lc_CXX=no
18081     hardcode_shlibpath_var_CXX=no
18082     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18083     hardcode_libdir_separator_CXX=':'
18084     link_all_deplibs_CXX=yes
18085     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18086     runpath_var='LD_RUN_PATH'
18087
18088     case $cc_basename in
18089       CC*)
18090         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18091         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18092         ;;
18093       *)
18094         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096         ;;
18097     esac
18098     ;;
18099   tandem*)
18100     case $cc_basename in
18101       NCC*)
18102         # NonStop-UX NCC 3.20
18103         # FIXME: insert proper C++ library support
18104         ld_shlibs_CXX=no
18105         ;;
18106       *)
18107         # FIXME: insert proper C++ library support
18108         ld_shlibs_CXX=no
18109         ;;
18110     esac
18111     ;;
18112   vxworks*)
18113     # FIXME: insert proper C++ library support
18114     ld_shlibs_CXX=no
18115     ;;
18116   *)
18117     # FIXME: insert proper C++ library support
18118     ld_shlibs_CXX=no
18119     ;;
18120 esac
18121 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18122 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18123 test "$ld_shlibs_CXX" = no && can_build_shared=no
18124
18125 GCC_CXX="$GXX"
18126 LD_CXX="$LD"
18127
18128
18129 cat > conftest.$ac_ext <<EOF
18130 class Foo
18131 {
18132 public:
18133   Foo (void) { a = 0; }
18134 private:
18135   int a;
18136 };
18137 EOF
18138
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140   (eval $ac_compile) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; then
18144   # Parse the compiler output and extract the necessary
18145   # objects, libraries and library flags.
18146
18147   # Sentinel used to keep track of whether or not we are before
18148   # the conftest object file.
18149   pre_test_object_deps_done=no
18150
18151   # The `*' in the case matches for architectures that use `case' in
18152   # $output_verbose_cmd can trigger glob expansion during the loop
18153   # eval without this substitution.
18154   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18155
18156   for p in `eval $output_verbose_link_cmd`; do
18157     case $p in
18158
18159     -L* | -R* | -l*)
18160        # Some compilers place space between "-{L,R}" and the path.
18161        # Remove the space.
18162        if test $p = "-L" \
18163           || test $p = "-R"; then
18164          prev=$p
18165          continue
18166        else
18167          prev=
18168        fi
18169
18170        if test "$pre_test_object_deps_done" = no; then
18171          case $p in
18172          -L* | -R*)
18173            # Internal compiler library paths should come after those
18174            # provided the user.  The postdeps already come after the
18175            # user supplied libs so there is no need to process them.
18176            if test -z "$compiler_lib_search_path_CXX"; then
18177              compiler_lib_search_path_CXX="${prev}${p}"
18178            else
18179              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18180            fi
18181            ;;
18182          # The "-l" case would never come before the object being
18183          # linked, so don't bother handling this case.
18184          esac
18185        else
18186          if test -z "$postdeps_CXX"; then
18187            postdeps_CXX="${prev}${p}"
18188          else
18189            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18190          fi
18191        fi
18192        ;;
18193
18194     *.$objext)
18195        # This assumes that the test object file only shows up
18196        # once in the compiler output.
18197        if test "$p" = "conftest.$objext"; then
18198          pre_test_object_deps_done=yes
18199          continue
18200        fi
18201
18202        if test "$pre_test_object_deps_done" = no; then
18203          if test -z "$predep_objects_CXX"; then
18204            predep_objects_CXX="$p"
18205          else
18206            predep_objects_CXX="$predep_objects_CXX $p"
18207          fi
18208        else
18209          if test -z "$postdep_objects_CXX"; then
18210            postdep_objects_CXX="$p"
18211          else
18212            postdep_objects_CXX="$postdep_objects_CXX $p"
18213          fi
18214        fi
18215        ;;
18216
18217     *) ;; # Ignore the rest.
18218
18219     esac
18220   done
18221
18222   # Clean up.
18223   rm -f a.out a.exe
18224 else
18225   echo "libtool.m4: error: problem compiling CXX test program"
18226 fi
18227
18228 $rm -f confest.$objext
18229
18230 # PORTME: override above test on systems where it is broken
18231 case $host_os in
18232 interix3*)
18233   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18234   # hack all around it, let's just trust "g++" to DTRT.
18235   predep_objects_CXX=
18236   postdep_objects_CXX=
18237   postdeps_CXX=
18238   ;;
18239
18240 solaris*)
18241   case $cc_basename in
18242   CC*)
18243     # Adding this requires a known-good setup of shared libraries for
18244     # Sun compiler versions before 5.6, else PIC objects from an old
18245     # archive will be linked into the output, leading to subtle bugs.
18246     postdeps_CXX='-lCstd -lCrun'
18247     ;;
18248   esac
18249   ;;
18250 esac
18251
18252
18253 case " $postdeps_CXX " in
18254 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18255 esac
18256
18257 lt_prog_compiler_wl_CXX=
18258 lt_prog_compiler_pic_CXX=
18259 lt_prog_compiler_static_CXX=
18260
18261 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18262 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18263
18264   # C++ specific cases for pic, static, wl, etc.
18265   if test "$GXX" = yes; then
18266     lt_prog_compiler_wl_CXX='-Wl,'
18267     lt_prog_compiler_static_CXX='-static'
18268
18269     case $host_os in
18270     aix*)
18271       # All AIX code is PIC.
18272       if test "$host_cpu" = ia64; then
18273         # AIX 5 now supports IA64 processor
18274         lt_prog_compiler_static_CXX='-Bstatic'
18275       fi
18276       ;;
18277     amigaos*)
18278       # FIXME: we need at least 68020 code to build shared libraries, but
18279       # adding the `-m68020' flag to GCC prevents building anything better,
18280       # like `-m68040'.
18281       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18282       ;;
18283     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18284       # PIC is the default for these OSes.
18285       ;;
18286     mingw* | os2* | pw32*)
18287       # This hack is so that the source file can tell whether it is being
18288       # built for inclusion in a dll (and should export symbols for example).
18289       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18290       ;;
18291     darwin* | rhapsody*)
18292       # PIC is the default on this platform
18293       # Common symbols not allowed in MH_DYLIB files
18294       lt_prog_compiler_pic_CXX='-fno-common'
18295       ;;
18296     *djgpp*)
18297       # DJGPP does not support shared libraries at all
18298       lt_prog_compiler_pic_CXX=
18299       ;;
18300     interix3*)
18301       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18302       # Instead, we relocate shared libraries at runtime.
18303       ;;
18304     sysv4*MP*)
18305       if test -d /usr/nec; then
18306         lt_prog_compiler_pic_CXX=-Kconform_pic
18307       fi
18308       ;;
18309     hpux*)
18310       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18311       # not for PA HP-UX.
18312       case $host_cpu in
18313       hppa*64*|ia64*)
18314         ;;
18315       *)
18316         lt_prog_compiler_pic_CXX='-fPIC'
18317         ;;
18318       esac
18319       ;;
18320     *)
18321       lt_prog_compiler_pic_CXX='-fPIC'
18322       ;;
18323     esac
18324   else
18325     case $host_os in
18326       aix4* | aix5*)
18327         # All AIX code is PIC.
18328         if test "$host_cpu" = ia64; then
18329           # AIX 5 now supports IA64 processor
18330           lt_prog_compiler_static_CXX='-Bstatic'
18331         else
18332           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18333         fi
18334         ;;
18335       chorus*)
18336         case $cc_basename in
18337         cxch68*)
18338           # Green Hills C++ Compiler
18339           # _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"
18340           ;;
18341         esac
18342         ;;
18343        darwin*)
18344          # PIC is the default on this platform
18345          # Common symbols not allowed in MH_DYLIB files
18346          case $cc_basename in
18347            xlc*)
18348            lt_prog_compiler_pic_CXX='-qnocommon'
18349            lt_prog_compiler_wl_CXX='-Wl,'
18350            ;;
18351          esac
18352        ;;
18353       dgux*)
18354         case $cc_basename in
18355           ec++*)
18356             lt_prog_compiler_pic_CXX='-KPIC'
18357             ;;
18358           ghcx*)
18359             # Green Hills C++ Compiler
18360             lt_prog_compiler_pic_CXX='-pic'
18361             ;;
18362           *)
18363             ;;
18364         esac
18365         ;;
18366       freebsd* | kfreebsd*-gnu | dragonfly*)
18367         # FreeBSD uses GNU C++
18368         ;;
18369       hpux9* | hpux10* | hpux11*)
18370         case $cc_basename in
18371           CC*)
18372             lt_prog_compiler_wl_CXX='-Wl,'
18373             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18374             if test "$host_cpu" != ia64; then
18375               lt_prog_compiler_pic_CXX='+Z'
18376             fi
18377             ;;
18378           aCC*)
18379             lt_prog_compiler_wl_CXX='-Wl,'
18380             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18381             case $host_cpu in
18382             hppa*64*|ia64*)
18383               # +Z the default
18384               ;;
18385             *)
18386               lt_prog_compiler_pic_CXX='+Z'
18387               ;;
18388             esac
18389             ;;
18390           *)
18391             ;;
18392         esac
18393         ;;
18394       interix*)
18395         # This is c89, which is MS Visual C++ (no shared libs)
18396         # Anyone wants to do a port?
18397         ;;
18398       irix5* | irix6* | nonstopux*)
18399         case $cc_basename in
18400           CC*)
18401             lt_prog_compiler_wl_CXX='-Wl,'
18402             lt_prog_compiler_static_CXX='-non_shared'
18403             # CC pic flag -KPIC is the default.
18404             ;;
18405           *)
18406             ;;
18407         esac
18408         ;;
18409       linux*)
18410         case $cc_basename in
18411           KCC*)
18412             # KAI C++ Compiler
18413             lt_prog_compiler_wl_CXX='--backend -Wl,'
18414             lt_prog_compiler_pic_CXX='-fPIC'
18415             ;;
18416           icpc* | ecpc*)
18417             # Intel C++
18418             lt_prog_compiler_wl_CXX='-Wl,'
18419             lt_prog_compiler_pic_CXX='-KPIC'
18420             lt_prog_compiler_static_CXX='-static'
18421             ;;
18422           pgCC*)
18423             # Portland Group C++ compiler.
18424             lt_prog_compiler_wl_CXX='-Wl,'
18425             lt_prog_compiler_pic_CXX='-fpic'
18426             lt_prog_compiler_static_CXX='-Bstatic'
18427             ;;
18428           cxx*)
18429             # Compaq C++
18430             # Make sure the PIC flag is empty.  It appears that all Alpha
18431             # Linux and Compaq Tru64 Unix objects are PIC.
18432             lt_prog_compiler_pic_CXX=
18433             lt_prog_compiler_static_CXX='-non_shared'
18434             ;;
18435           *)
18436             ;;
18437         esac
18438         ;;
18439       lynxos*)
18440         ;;
18441       m88k*)
18442         ;;
18443       mvs*)
18444         case $cc_basename in
18445           cxx*)
18446             lt_prog_compiler_pic_CXX='-W c,exportall'
18447             ;;
18448           *)
18449             ;;
18450         esac
18451         ;;
18452       netbsd*)
18453         ;;
18454       osf3* | osf4* | osf5*)
18455         case $cc_basename in
18456           KCC*)
18457             lt_prog_compiler_wl_CXX='--backend -Wl,'
18458             ;;
18459           RCC*)
18460             # Rational C++ 2.4.1
18461             lt_prog_compiler_pic_CXX='-pic'
18462             ;;
18463           cxx*)
18464             # Digital/Compaq C++
18465             lt_prog_compiler_wl_CXX='-Wl,'
18466             # Make sure the PIC flag is empty.  It appears that all Alpha
18467             # Linux and Compaq Tru64 Unix objects are PIC.
18468             lt_prog_compiler_pic_CXX=
18469             lt_prog_compiler_static_CXX='-non_shared'
18470             ;;
18471           *)
18472             ;;
18473         esac
18474         ;;
18475       psos*)
18476         ;;
18477       solaris*)
18478         case $cc_basename in
18479           CC*)
18480             # Sun C++ 4.2, 5.x and Centerline C++
18481             lt_prog_compiler_pic_CXX='-KPIC'
18482             lt_prog_compiler_static_CXX='-Bstatic'
18483             lt_prog_compiler_wl_CXX='-Qoption ld '
18484             ;;
18485           gcx*)
18486             # Green Hills C++ Compiler
18487             lt_prog_compiler_pic_CXX='-PIC'
18488             ;;
18489           *)
18490             ;;
18491         esac
18492         ;;
18493       sunos4*)
18494         case $cc_basename in
18495           CC*)
18496             # Sun C++ 4.x
18497             lt_prog_compiler_pic_CXX='-pic'
18498             lt_prog_compiler_static_CXX='-Bstatic'
18499             ;;
18500           lcc*)
18501             # Lucid
18502             lt_prog_compiler_pic_CXX='-pic'
18503             ;;
18504           *)
18505             ;;
18506         esac
18507         ;;
18508       tandem*)
18509         case $cc_basename in
18510           NCC*)
18511             # NonStop-UX NCC 3.20
18512             lt_prog_compiler_pic_CXX='-KPIC'
18513             ;;
18514           *)
18515             ;;
18516         esac
18517         ;;
18518       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18519         case $cc_basename in
18520           CC*)
18521             lt_prog_compiler_wl_CXX='-Wl,'
18522             lt_prog_compiler_pic_CXX='-KPIC'
18523             lt_prog_compiler_static_CXX='-Bstatic'
18524             ;;
18525         esac
18526         ;;
18527       vxworks*)
18528         ;;
18529       *)
18530         lt_prog_compiler_can_build_shared_CXX=no
18531         ;;
18532     esac
18533   fi
18534
18535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18536 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18537
18538 #
18539 # Check to make sure the PIC flag actually works.
18540 #
18541 if test -n "$lt_prog_compiler_pic_CXX"; then
18542
18543 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18545 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   lt_prog_compiler_pic_works_CXX=no
18549   ac_outfile=conftest.$ac_objext
18550    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18551    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18552    # Insert the option either (1) after the last *FLAGS variable, or
18553    # (2) before a word containing "conftest.", or (3) at the end.
18554    # Note that $ac_compile itself does not contain backslashes and begins
18555    # with a dollar sign (not a hyphen), so the echo should work correctly.
18556    # The option is referenced via a variable to avoid confusing sed.
18557    lt_compile=`echo "$ac_compile" | $SED \
18558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18560    -e 's:$: $lt_compiler_flag:'`
18561    (eval echo "\"\$as_me:18561: $lt_compile\"" >&5)
18562    (eval "$lt_compile" 2>conftest.err)
18563    ac_status=$?
18564    cat conftest.err >&5
18565    echo "$as_me:18565: \$? = $ac_status" >&5
18566    if (exit $ac_status) && test -s "$ac_outfile"; then
18567      # The compiler can only warn and ignore the option if not recognized
18568      # So say no if there are warnings other than the usual output.
18569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18570      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18571      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18572        lt_prog_compiler_pic_works_CXX=yes
18573      fi
18574    fi
18575    $rm conftest*
18576
18577 fi
18578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18579 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18580
18581 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18582     case $lt_prog_compiler_pic_CXX in
18583      "" | " "*) ;;
18584      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18585      esac
18586 else
18587     lt_prog_compiler_pic_CXX=
18588      lt_prog_compiler_can_build_shared_CXX=no
18589 fi
18590
18591 fi
18592 case $host_os in
18593   # For platforms which do not support PIC, -DPIC is meaningless:
18594   *djgpp*)
18595     lt_prog_compiler_pic_CXX=
18596     ;;
18597   *)
18598     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18599     ;;
18600 esac
18601
18602 #
18603 # Check to make sure the static flag actually works.
18604 #
18605 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18606 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18608 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   lt_prog_compiler_static_works_CXX=no
18612    save_LDFLAGS="$LDFLAGS"
18613    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18614    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18615    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18616      # The linker can only warn and ignore the option if not recognized
18617      # So say no if there are warnings
18618      if test -s conftest.err; then
18619        # Append any errors to the config.log.
18620        cat conftest.err 1>&5
18621        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18622        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18623        if diff conftest.exp conftest.er2 >/dev/null; then
18624          lt_prog_compiler_static_works_CXX=yes
18625        fi
18626      else
18627        lt_prog_compiler_static_works_CXX=yes
18628      fi
18629    fi
18630    $rm conftest*
18631    LDFLAGS="$save_LDFLAGS"
18632
18633 fi
18634 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18635 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18636
18637 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18638     :
18639 else
18640     lt_prog_compiler_static_CXX=
18641 fi
18642
18643
18644 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18645 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18646 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   lt_cv_prog_compiler_c_o_CXX=no
18650    $rm -r conftest 2>/dev/null
18651    mkdir conftest
18652    cd conftest
18653    mkdir out
18654    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18655
18656    lt_compiler_flag="-o out/conftest2.$ac_objext"
18657    # Insert the option either (1) after the last *FLAGS variable, or
18658    # (2) before a word containing "conftest.", or (3) at the end.
18659    # Note that $ac_compile itself does not contain backslashes and begins
18660    # with a dollar sign (not a hyphen), so the echo should work correctly.
18661    lt_compile=`echo "$ac_compile" | $SED \
18662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18664    -e 's:$: $lt_compiler_flag:'`
18665    (eval echo "\"\$as_me:18665: $lt_compile\"" >&5)
18666    (eval "$lt_compile" 2>out/conftest.err)
18667    ac_status=$?
18668    cat out/conftest.err >&5
18669    echo "$as_me:18669: \$? = $ac_status" >&5
18670    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18671    then
18672      # The compiler can only warn and ignore the option if not recognized
18673      # So say no if there are warnings
18674      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18675      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18676      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18677        lt_cv_prog_compiler_c_o_CXX=yes
18678      fi
18679    fi
18680    chmod u+w . 2>&5
18681    $rm conftest*
18682    # SGI C++ compiler will create directory out/ii_files/ for
18683    # template instantiation
18684    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18685    $rm out/* && rmdir out
18686    cd ..
18687    rmdir conftest
18688    $rm conftest*
18689
18690 fi
18691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18692 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18693
18694
18695 hard_links="nottested"
18696 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18697   # do not overwrite the value of need_locks provided by the user
18698   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18699 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18700   hard_links=yes
18701   $rm conftest*
18702   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18703   touch conftest.a
18704   ln conftest.a conftest.b 2>&5 || hard_links=no
18705   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18706   { echo "$as_me:$LINENO: result: $hard_links" >&5
18707 echo "${ECHO_T}$hard_links" >&6; }
18708   if test "$hard_links" = no; then
18709     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18710 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18711     need_locks=warn
18712   fi
18713 else
18714   need_locks=no
18715 fi
18716
18717 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18719
18720   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18721   case $host_os in
18722   aix4* | aix5*)
18723     # If we're using GNU nm, then we don't want the "-C" option.
18724     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18725     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18726       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'
18727     else
18728       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'
18729     fi
18730     ;;
18731   pw32*)
18732     export_symbols_cmds_CXX="$ltdll_cmds"
18733   ;;
18734   cygwin* | mingw*)
18735     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'
18736   ;;
18737   *)
18738     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18739   ;;
18740   esac
18741
18742 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18743 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18744 test "$ld_shlibs_CXX" = no && can_build_shared=no
18745
18746 #
18747 # Do we need to explicitly link libc?
18748 #
18749 case "x$archive_cmds_need_lc_CXX" in
18750 x|xyes)
18751   # Assume -lc should be added
18752   archive_cmds_need_lc_CXX=yes
18753
18754   if test "$enable_shared" = yes && test "$GCC" = yes; then
18755     case $archive_cmds_CXX in
18756     *'~'*)
18757       # FIXME: we may have to deal with multi-command sequences.
18758       ;;
18759     '$CC '*)
18760       # Test whether the compiler implicitly links with -lc since on some
18761       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18762       # to ld, don't add -lc before -lgcc.
18763       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18764 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18765       $rm conftest*
18766       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18767
18768       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18769   (eval $ac_compile) 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } 2>conftest.err; then
18773         soname=conftest
18774         lib=conftest
18775         libobjs=conftest.$ac_objext
18776         deplibs=
18777         wl=$lt_prog_compiler_wl_CXX
18778         pic_flag=$lt_prog_compiler_pic_CXX
18779         compiler_flags=-v
18780         linker_flags=-v
18781         verstring=
18782         output_objdir=.
18783         libname=conftest
18784         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18785         allow_undefined_flag_CXX=
18786         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18787   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }
18791         then
18792           archive_cmds_need_lc_CXX=no
18793         else
18794           archive_cmds_need_lc_CXX=yes
18795         fi
18796         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18797       else
18798         cat conftest.err 1>&5
18799       fi
18800       $rm conftest*
18801       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18802 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18803       ;;
18804     esac
18805   fi
18806   ;;
18807 esac
18808
18809 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18810 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18811 library_names_spec=
18812 libname_spec='lib$name'
18813 soname_spec=
18814 shrext_cmds=".so"
18815 postinstall_cmds=
18816 postuninstall_cmds=
18817 finish_cmds=
18818 finish_eval=
18819 shlibpath_var=
18820 shlibpath_overrides_runpath=unknown
18821 version_type=none
18822 dynamic_linker="$host_os ld.so"
18823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18824 if test "$GCC" = yes; then
18825   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18826   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18827     # if the path contains ";" then we assume it to be the separator
18828     # otherwise default to the standard path separator (i.e. ":") - it is
18829     # assumed that no part of a normal pathname contains ";" but that should
18830     # okay in the real world where ";" in dirpaths is itself problematic.
18831     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18832   else
18833     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18834   fi
18835 else
18836   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18837 fi
18838 need_lib_prefix=unknown
18839 hardcode_into_libs=no
18840
18841 # when you set need_version to no, make sure it does not cause -set_version
18842 # flags to be left without arguments
18843 need_version=unknown
18844
18845 case $host_os in
18846 aix3*)
18847   version_type=linux
18848   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18849   shlibpath_var=LIBPATH
18850
18851   # AIX 3 has no versioning support, so we append a major version to the name.
18852   soname_spec='${libname}${release}${shared_ext}$major'
18853   ;;
18854
18855 aix4* | aix5*)
18856   version_type=linux
18857   need_lib_prefix=no
18858   need_version=no
18859   hardcode_into_libs=yes
18860   if test "$host_cpu" = ia64; then
18861     # AIX 5 supports IA64
18862     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18863     shlibpath_var=LD_LIBRARY_PATH
18864   else
18865     # With GCC up to 2.95.x, collect2 would create an import file
18866     # for dependence libraries.  The import file would start with
18867     # the line `#! .'.  This would cause the generated library to
18868     # depend on `.', always an invalid library.  This was fixed in
18869     # development snapshots of GCC prior to 3.0.
18870     case $host_os in
18871       aix4 | aix4.[01] | aix4.[01].*)
18872       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18873            echo ' yes '
18874            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18875         :
18876       else
18877         can_build_shared=no
18878       fi
18879       ;;
18880     esac
18881     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18882     # soname into executable. Probably we can add versioning support to
18883     # collect2, so additional links can be useful in future.
18884     if test "$aix_use_runtimelinking" = yes; then
18885       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18886       # instead of lib<name>.a to let people know that these are not
18887       # typical AIX shared libraries.
18888       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18889     else
18890       # We preserve .a as extension for shared libraries through AIX4.2
18891       # and later when we are not doing run time linking.
18892       library_names_spec='${libname}${release}.a $libname.a'
18893       soname_spec='${libname}${release}${shared_ext}$major'
18894     fi
18895     shlibpath_var=LIBPATH
18896   fi
18897   ;;
18898
18899 amigaos*)
18900   library_names_spec='$libname.ixlibrary $libname.a'
18901   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18902   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'
18903   ;;
18904
18905 beos*)
18906   library_names_spec='${libname}${shared_ext}'
18907   dynamic_linker="$host_os ld.so"
18908   shlibpath_var=LIBRARY_PATH
18909   ;;
18910
18911 bsdi[45]*)
18912   version_type=linux
18913   need_version=no
18914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915   soname_spec='${libname}${release}${shared_ext}$major'
18916   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18917   shlibpath_var=LD_LIBRARY_PATH
18918   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18919   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18920   # the default ld.so.conf also contains /usr/contrib/lib and
18921   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18922   # libtool to hard-code these into programs
18923   ;;
18924
18925 cygwin* | mingw* | pw32*)
18926   version_type=windows
18927   shrext_cmds=".dll"
18928   need_version=no
18929   need_lib_prefix=no
18930
18931   case $GCC,$host_os in
18932   yes,cygwin* | yes,mingw* | yes,pw32*)
18933     library_names_spec='$libname.dll.a'
18934     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18935     postinstall_cmds='base_file=`basename \${file}`~
18936       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18937       dldir=$destdir/`dirname \$dlpath`~
18938       test -d \$dldir || mkdir -p \$dldir~
18939       $install_prog $dir/$dlname \$dldir/$dlname~
18940       chmod a+x \$dldir/$dlname'
18941     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18942       dlpath=$dir/\$dldll~
18943        $rm \$dlpath'
18944     shlibpath_overrides_runpath=yes
18945
18946     case $host_os in
18947     cygwin*)
18948       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18949       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18950       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18951       ;;
18952     mingw*)
18953       # MinGW DLLs use traditional 'lib' prefix
18954       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18955       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18956       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18957         # It is most probably a Windows format PATH printed by
18958         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18959         # path with ; separators, and with drive letters. We can handle the
18960         # drive letters (cygwin fileutils understands them), so leave them,
18961         # especially as we might pass files found there to a mingw objdump,
18962         # which wouldn't understand a cygwinified path. Ahh.
18963         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18964       else
18965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18966       fi
18967       ;;
18968     pw32*)
18969       # pw32 DLLs use 'pw' prefix rather than 'lib'
18970       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18971       ;;
18972     esac
18973     ;;
18974
18975   *)
18976     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18977     ;;
18978   esac
18979   dynamic_linker='Win32 ld.exe'
18980   # FIXME: first we should search . and the directory the executable is in
18981   shlibpath_var=PATH
18982   ;;
18983
18984 darwin* | rhapsody*)
18985   dynamic_linker="$host_os dyld"
18986   version_type=darwin
18987   need_lib_prefix=no
18988   need_version=no
18989   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18990   soname_spec='${libname}${release}${major}$shared_ext'
18991   shlibpath_overrides_runpath=yes
18992   shlibpath_var=DYLD_LIBRARY_PATH
18993   shrext_cmds='.dylib'
18994   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18995   if test "$GCC" = yes; then
18996     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"`
18997   else
18998     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18999   fi
19000   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19001   ;;
19002
19003 dgux*)
19004   version_type=linux
19005   need_lib_prefix=no
19006   need_version=no
19007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19008   soname_spec='${libname}${release}${shared_ext}$major'
19009   shlibpath_var=LD_LIBRARY_PATH
19010   ;;
19011
19012 freebsd1*)
19013   dynamic_linker=no
19014   ;;
19015
19016 kfreebsd*-gnu)
19017   version_type=linux
19018   need_lib_prefix=no
19019   need_version=no
19020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19021   soname_spec='${libname}${release}${shared_ext}$major'
19022   shlibpath_var=LD_LIBRARY_PATH
19023   shlibpath_overrides_runpath=no
19024   hardcode_into_libs=yes
19025   dynamic_linker='GNU ld.so'
19026   ;;
19027
19028 freebsd* | dragonfly*)
19029   # DragonFly does not have aout.  When/if they implement a new
19030   # versioning mechanism, adjust this.
19031   if test -x /usr/bin/objformat; then
19032     objformat=`/usr/bin/objformat`
19033   else
19034     case $host_os in
19035     freebsd[123]*) objformat=aout ;;
19036     *) objformat=elf ;;
19037     esac
19038   fi
19039   version_type=freebsd-$objformat
19040   case $version_type in
19041     freebsd-elf*)
19042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19043       need_version=no
19044       need_lib_prefix=no
19045       ;;
19046     freebsd-*)
19047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19048       need_version=yes
19049       ;;
19050   esac
19051   shlibpath_var=LD_LIBRARY_PATH
19052   case $host_os in
19053   freebsd2*)
19054     shlibpath_overrides_runpath=yes
19055     ;;
19056   freebsd3.[01]* | freebsdelf3.[01]*)
19057     shlibpath_overrides_runpath=yes
19058     hardcode_into_libs=yes
19059     ;;
19060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19062     shlibpath_overrides_runpath=no
19063     hardcode_into_libs=yes
19064     ;;
19065   freebsd*) # from 4.6 on
19066     shlibpath_overrides_runpath=yes
19067     hardcode_into_libs=yes
19068     ;;
19069   esac
19070   ;;
19071
19072 gnu*)
19073   version_type=linux
19074   need_lib_prefix=no
19075   need_version=no
19076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19077   soname_spec='${libname}${release}${shared_ext}$major'
19078   shlibpath_var=LD_LIBRARY_PATH
19079   hardcode_into_libs=yes
19080   ;;
19081
19082 hpux9* | hpux10* | hpux11*)
19083   # Give a soname corresponding to the major version so that dld.sl refuses to
19084   # link against other versions.
19085   version_type=sunos
19086   need_lib_prefix=no
19087   need_version=no
19088   case $host_cpu in
19089   ia64*)
19090     shrext_cmds='.so'
19091     hardcode_into_libs=yes
19092     dynamic_linker="$host_os dld.so"
19093     shlibpath_var=LD_LIBRARY_PATH
19094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096     soname_spec='${libname}${release}${shared_ext}$major'
19097     if test "X$HPUX_IA64_MODE" = X32; then
19098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19099     else
19100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19101     fi
19102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19103     ;;
19104    hppa*64*)
19105      shrext_cmds='.sl'
19106      hardcode_into_libs=yes
19107      dynamic_linker="$host_os dld.sl"
19108      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19109      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111      soname_spec='${libname}${release}${shared_ext}$major'
19112      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19113      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19114      ;;
19115    *)
19116     shrext_cmds='.sl'
19117     dynamic_linker="$host_os dld.sl"
19118     shlibpath_var=SHLIB_PATH
19119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121     soname_spec='${libname}${release}${shared_ext}$major'
19122     ;;
19123   esac
19124   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19125   postinstall_cmds='chmod 555 $lib'
19126   ;;
19127
19128 interix3*)
19129   version_type=linux
19130   need_lib_prefix=no
19131   need_version=no
19132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19133   soname_spec='${libname}${release}${shared_ext}$major'
19134   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19135   shlibpath_var=LD_LIBRARY_PATH
19136   shlibpath_overrides_runpath=no
19137   hardcode_into_libs=yes
19138   ;;
19139
19140 irix5* | irix6* | nonstopux*)
19141   case $host_os in
19142     nonstopux*) version_type=nonstopux ;;
19143     *)
19144         if test "$lt_cv_prog_gnu_ld" = yes; then
19145                 version_type=linux
19146         else
19147                 version_type=irix
19148         fi ;;
19149   esac
19150   need_lib_prefix=no
19151   need_version=no
19152   soname_spec='${libname}${release}${shared_ext}$major'
19153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19154   case $host_os in
19155   irix5* | nonstopux*)
19156     libsuff= shlibsuff=
19157     ;;
19158   *)
19159     case $LD in # libtool.m4 will add one of these switches to LD
19160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19161       libsuff= shlibsuff= libmagic=32-bit;;
19162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19163       libsuff=32 shlibsuff=N32 libmagic=N32;;
19164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19166     *) libsuff= shlibsuff= libmagic=never-match;;
19167     esac
19168     ;;
19169   esac
19170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19171   shlibpath_overrides_runpath=no
19172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19174   hardcode_into_libs=yes
19175   ;;
19176
19177 # No shared lib support for Linux oldld, aout, or coff.
19178 linux*oldld* | linux*aout* | linux*coff*)
19179   dynamic_linker=no
19180   ;;
19181
19182 # This must be Linux ELF.
19183 linux*)
19184   version_type=linux
19185   need_lib_prefix=no
19186   need_version=no
19187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19188   soname_spec='${libname}${release}${shared_ext}$major'
19189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19190   shlibpath_var=LD_LIBRARY_PATH
19191   shlibpath_overrides_runpath=no
19192   # This implies no fast_install, which is unacceptable.
19193   # Some rework will be needed to allow for fast_install
19194   # before this can be enabled.
19195   hardcode_into_libs=yes
19196
19197   # Append ld.so.conf contents to the search path
19198   if test -f /etc/ld.so.conf; then
19199     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' ' '`
19200     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19201   fi
19202
19203   # We used to test for /lib/ld.so.1 and disable shared libraries on
19204   # powerpc, because MkLinux only supported shared libraries with the
19205   # GNU dynamic linker.  Since this was broken with cross compilers,
19206   # most powerpc-linux boxes support dynamic linking these days and
19207   # people can always --disable-shared, the test was removed, and we
19208   # assume the GNU/Linux dynamic linker is in use.
19209   dynamic_linker='GNU/Linux ld.so'
19210   ;;
19211
19212 knetbsd*-gnu)
19213   version_type=linux
19214   need_lib_prefix=no
19215   need_version=no
19216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19217   soname_spec='${libname}${release}${shared_ext}$major'
19218   shlibpath_var=LD_LIBRARY_PATH
19219   shlibpath_overrides_runpath=no
19220   hardcode_into_libs=yes
19221   dynamic_linker='GNU ld.so'
19222   ;;
19223
19224 netbsd*)
19225   version_type=sunos
19226   need_lib_prefix=no
19227   need_version=no
19228   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19231     dynamic_linker='NetBSD (a.out) ld.so'
19232   else
19233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19234     soname_spec='${libname}${release}${shared_ext}$major'
19235     dynamic_linker='NetBSD ld.elf_so'
19236   fi
19237   shlibpath_var=LD_LIBRARY_PATH
19238   shlibpath_overrides_runpath=yes
19239   hardcode_into_libs=yes
19240   ;;
19241
19242 newsos6)
19243   version_type=linux
19244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19245   shlibpath_var=LD_LIBRARY_PATH
19246   shlibpath_overrides_runpath=yes
19247   ;;
19248
19249 nto-qnx*)
19250   version_type=linux
19251   need_lib_prefix=no
19252   need_version=no
19253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254   soname_spec='${libname}${release}${shared_ext}$major'
19255   shlibpath_var=LD_LIBRARY_PATH
19256   shlibpath_overrides_runpath=yes
19257   ;;
19258
19259 openbsd*)
19260   version_type=sunos
19261   sys_lib_dlsearch_path_spec="/usr/lib"
19262   need_lib_prefix=no
19263   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19264   case $host_os in
19265     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19266     *)                         need_version=no  ;;
19267   esac
19268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19270   shlibpath_var=LD_LIBRARY_PATH
19271   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19272     case $host_os in
19273       openbsd2.[89] | openbsd2.[89].*)
19274         shlibpath_overrides_runpath=no
19275         ;;
19276       *)
19277         shlibpath_overrides_runpath=yes
19278         ;;
19279       esac
19280   else
19281     shlibpath_overrides_runpath=yes
19282   fi
19283   ;;
19284
19285 os2*)
19286   libname_spec='$name'
19287   shrext_cmds=".dll"
19288   need_lib_prefix=no
19289   library_names_spec='$libname${shared_ext} $libname.a'
19290   dynamic_linker='OS/2 ld.exe'
19291   shlibpath_var=LIBPATH
19292   ;;
19293
19294 osf3* | osf4* | osf5*)
19295   version_type=osf
19296   need_lib_prefix=no
19297   need_version=no
19298   soname_spec='${libname}${release}${shared_ext}$major'
19299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300   shlibpath_var=LD_LIBRARY_PATH
19301   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19302   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19303   ;;
19304
19305 solaris*)
19306   version_type=linux
19307   need_lib_prefix=no
19308   need_version=no
19309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310   soname_spec='${libname}${release}${shared_ext}$major'
19311   shlibpath_var=LD_LIBRARY_PATH
19312   shlibpath_overrides_runpath=yes
19313   hardcode_into_libs=yes
19314   # ldd complains unless libraries are executable
19315   postinstall_cmds='chmod +x $lib'
19316   ;;
19317
19318 sunos4*)
19319   version_type=sunos
19320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19321   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19322   shlibpath_var=LD_LIBRARY_PATH
19323   shlibpath_overrides_runpath=yes
19324   if test "$with_gnu_ld" = yes; then
19325     need_lib_prefix=no
19326   fi
19327   need_version=yes
19328   ;;
19329
19330 sysv4 | sysv4.3*)
19331   version_type=linux
19332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19333   soname_spec='${libname}${release}${shared_ext}$major'
19334   shlibpath_var=LD_LIBRARY_PATH
19335   case $host_vendor in
19336     sni)
19337       shlibpath_overrides_runpath=no
19338       need_lib_prefix=no
19339       export_dynamic_flag_spec='${wl}-Blargedynsym'
19340       runpath_var=LD_RUN_PATH
19341       ;;
19342     siemens)
19343       need_lib_prefix=no
19344       ;;
19345     motorola)
19346       need_lib_prefix=no
19347       need_version=no
19348       shlibpath_overrides_runpath=no
19349       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19350       ;;
19351   esac
19352   ;;
19353
19354 sysv4*MP*)
19355   if test -d /usr/nec ;then
19356     version_type=linux
19357     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19358     soname_spec='$libname${shared_ext}.$major'
19359     shlibpath_var=LD_LIBRARY_PATH
19360   fi
19361   ;;
19362
19363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19364   version_type=freebsd-elf
19365   need_lib_prefix=no
19366   need_version=no
19367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19368   soname_spec='${libname}${release}${shared_ext}$major'
19369   shlibpath_var=LD_LIBRARY_PATH
19370   hardcode_into_libs=yes
19371   if test "$with_gnu_ld" = yes; then
19372     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19373     shlibpath_overrides_runpath=no
19374   else
19375     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19376     shlibpath_overrides_runpath=yes
19377     case $host_os in
19378       sco3.2v5*)
19379         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19380         ;;
19381     esac
19382   fi
19383   sys_lib_dlsearch_path_spec='/usr/lib'
19384   ;;
19385
19386 uts4*)
19387   version_type=linux
19388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19389   soname_spec='${libname}${release}${shared_ext}$major'
19390   shlibpath_var=LD_LIBRARY_PATH
19391   ;;
19392
19393 *)
19394   dynamic_linker=no
19395   ;;
19396 esac
19397 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19398 echo "${ECHO_T}$dynamic_linker" >&6; }
19399 test "$dynamic_linker" = no && can_build_shared=no
19400
19401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19402 if test "$GCC" = yes; then
19403   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19404 fi
19405
19406 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19407 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19408 hardcode_action_CXX=
19409 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19410    test -n "$runpath_var_CXX" || \
19411    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19412
19413   # We can hardcode non-existant directories.
19414   if test "$hardcode_direct_CXX" != no &&
19415      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19416      # have to relink, otherwise we might link with an installed library
19417      # when we should be linking with a yet-to-be-installed one
19418      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19419      test "$hardcode_minus_L_CXX" != no; then
19420     # Linking always hardcodes the temporary library directory.
19421     hardcode_action_CXX=relink
19422   else
19423     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19424     hardcode_action_CXX=immediate
19425   fi
19426 else
19427   # We cannot hardcode anything, or else we can only hardcode existing
19428   # directories.
19429   hardcode_action_CXX=unsupported
19430 fi
19431 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19432 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19433
19434 if test "$hardcode_action_CXX" = relink; then
19435   # Fast installation is not supported
19436   enable_fast_install=no
19437 elif test "$shlibpath_overrides_runpath" = yes ||
19438      test "$enable_shared" = no; then
19439   # Fast installation is not necessary
19440   enable_fast_install=needless
19441 fi
19442
19443
19444 # The else clause should only fire when bootstrapping the
19445 # libtool distribution, otherwise you forgot to ship ltmain.sh
19446 # with your package, and you will get complaints that there are
19447 # no rules to generate ltmain.sh.
19448 if test -f "$ltmain"; then
19449   # See if we are running on zsh, and set the options which allow our commands through
19450   # without removal of \ escapes.
19451   if test -n "${ZSH_VERSION+set}" ; then
19452     setopt NO_GLOB_SUBST
19453   fi
19454   # Now quote all the things that may contain metacharacters while being
19455   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19456   # variables and quote the copies for generation of the libtool script.
19457   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19458     SED SHELL STRIP \
19459     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19460     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19461     deplibs_check_method reload_flag reload_cmds need_locks \
19462     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19463     lt_cv_sys_global_symbol_to_c_name_address \
19464     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19465     old_postinstall_cmds old_postuninstall_cmds \
19466     compiler_CXX \
19467     CC_CXX \
19468     LD_CXX \
19469     lt_prog_compiler_wl_CXX \
19470     lt_prog_compiler_pic_CXX \
19471     lt_prog_compiler_static_CXX \
19472     lt_prog_compiler_no_builtin_flag_CXX \
19473     export_dynamic_flag_spec_CXX \
19474     thread_safe_flag_spec_CXX \
19475     whole_archive_flag_spec_CXX \
19476     enable_shared_with_static_runtimes_CXX \
19477     old_archive_cmds_CXX \
19478     old_archive_from_new_cmds_CXX \
19479     predep_objects_CXX \
19480     postdep_objects_CXX \
19481     predeps_CXX \
19482     postdeps_CXX \
19483     compiler_lib_search_path_CXX \
19484     archive_cmds_CXX \
19485     archive_expsym_cmds_CXX \
19486     postinstall_cmds_CXX \
19487     postuninstall_cmds_CXX \
19488     old_archive_from_expsyms_cmds_CXX \
19489     allow_undefined_flag_CXX \
19490     no_undefined_flag_CXX \
19491     export_symbols_cmds_CXX \
19492     hardcode_libdir_flag_spec_CXX \
19493     hardcode_libdir_flag_spec_ld_CXX \
19494     hardcode_libdir_separator_CXX \
19495     hardcode_automatic_CXX \
19496     module_cmds_CXX \
19497     module_expsym_cmds_CXX \
19498     lt_cv_prog_compiler_c_o_CXX \
19499     exclude_expsyms_CXX \
19500     include_expsyms_CXX; do
19501
19502     case $var in
19503     old_archive_cmds_CXX | \
19504     old_archive_from_new_cmds_CXX | \
19505     archive_cmds_CXX | \
19506     archive_expsym_cmds_CXX | \
19507     module_cmds_CXX | \
19508     module_expsym_cmds_CXX | \
19509     old_archive_from_expsyms_cmds_CXX | \
19510     export_symbols_cmds_CXX | \
19511     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19512     postinstall_cmds | postuninstall_cmds | \
19513     old_postinstall_cmds | old_postuninstall_cmds | \
19514     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19515       # Double-quote double-evaled strings.
19516       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19517       ;;
19518     *)
19519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19520       ;;
19521     esac
19522   done
19523
19524   case $lt_echo in
19525   *'\$0 --fallback-echo"')
19526     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19527     ;;
19528   esac
19529
19530 cfgfile="$ofile"
19531
19532   cat <<__EOF__ >> "$cfgfile"
19533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19534
19535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19536
19537 # Shell to use when invoking shell scripts.
19538 SHELL=$lt_SHELL
19539
19540 # Whether or not to build shared libraries.
19541 build_libtool_libs=$enable_shared
19542
19543 # Whether or not to build static libraries.
19544 build_old_libs=$enable_static
19545
19546 # Whether or not to add -lc for building shared libraries.
19547 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19548
19549 # Whether or not to disallow shared libs when runtime libs are static
19550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19551
19552 # Whether or not to optimize for fast installation.
19553 fast_install=$enable_fast_install
19554
19555 # The host system.
19556 host_alias=$host_alias
19557 host=$host
19558 host_os=$host_os
19559
19560 # The build system.
19561 build_alias=$build_alias
19562 build=$build
19563 build_os=$build_os
19564
19565 # An echo program that does not interpret backslashes.
19566 echo=$lt_echo
19567
19568 # The archiver.
19569 AR=$lt_AR
19570 AR_FLAGS=$lt_AR_FLAGS
19571
19572 # A C compiler.
19573 LTCC=$lt_LTCC
19574
19575 # LTCC compiler flags.
19576 LTCFLAGS=$lt_LTCFLAGS
19577
19578 # A language-specific compiler.
19579 CC=$lt_compiler_CXX
19580
19581 # Is the compiler the GNU C compiler?
19582 with_gcc=$GCC_CXX
19583
19584 # An ERE matcher.
19585 EGREP=$lt_EGREP
19586
19587 # The linker used to build libraries.
19588 LD=$lt_LD_CXX
19589
19590 # Whether we need hard or soft links.
19591 LN_S=$lt_LN_S
19592
19593 # A BSD-compatible nm program.
19594 NM=$lt_NM
19595
19596 # A symbol stripping program
19597 STRIP=$lt_STRIP
19598
19599 # Used to examine libraries when file_magic_cmd begins "file"
19600 MAGIC_CMD=$MAGIC_CMD
19601
19602 # Used on cygwin: DLL creation program.
19603 DLLTOOL="$DLLTOOL"
19604
19605 # Used on cygwin: object dumper.
19606 OBJDUMP="$OBJDUMP"
19607
19608 # Used on cygwin: assembler.
19609 AS="$AS"
19610
19611 # The name of the directory that contains temporary libtool files.
19612 objdir=$objdir
19613
19614 # How to create reloadable object files.
19615 reload_flag=$lt_reload_flag
19616 reload_cmds=$lt_reload_cmds
19617
19618 # How to pass a linker flag through the compiler.
19619 wl=$lt_lt_prog_compiler_wl_CXX
19620
19621 # Object file suffix (normally "o").
19622 objext="$ac_objext"
19623
19624 # Old archive suffix (normally "a").
19625 libext="$libext"
19626
19627 # Shared library suffix (normally ".so").
19628 shrext_cmds='$shrext_cmds'
19629
19630 # Executable file suffix (normally "").
19631 exeext="$exeext"
19632
19633 # Additional compiler flags for building library objects.
19634 pic_flag=$lt_lt_prog_compiler_pic_CXX
19635 pic_mode=$pic_mode
19636
19637 # What is the maximum length of a command?
19638 max_cmd_len=$lt_cv_sys_max_cmd_len
19639
19640 # Does compiler simultaneously support -c and -o options?
19641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19642
19643 # Must we lock files when doing compilation?
19644 need_locks=$lt_need_locks
19645
19646 # Do we need the lib prefix for modules?
19647 need_lib_prefix=$need_lib_prefix
19648
19649 # Do we need a version for libraries?
19650 need_version=$need_version
19651
19652 # Whether dlopen is supported.
19653 dlopen_support=$enable_dlopen
19654
19655 # Whether dlopen of programs is supported.
19656 dlopen_self=$enable_dlopen_self
19657
19658 # Whether dlopen of statically linked programs is supported.
19659 dlopen_self_static=$enable_dlopen_self_static
19660
19661 # Compiler flag to prevent dynamic linking.
19662 link_static_flag=$lt_lt_prog_compiler_static_CXX
19663
19664 # Compiler flag to turn off builtin functions.
19665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19666
19667 # Compiler flag to allow reflexive dlopens.
19668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19669
19670 # Compiler flag to generate shared objects directly from archives.
19671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19672
19673 # Compiler flag to generate thread-safe objects.
19674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19675
19676 # Library versioning type.
19677 version_type=$version_type
19678
19679 # Format of library name prefix.
19680 libname_spec=$lt_libname_spec
19681
19682 # List of archive names.  First name is the real one, the rest are links.
19683 # The last name is the one that the linker finds with -lNAME.
19684 library_names_spec=$lt_library_names_spec
19685
19686 # The coded name of the library, if different from the real name.
19687 soname_spec=$lt_soname_spec
19688
19689 # Commands used to build and install an old-style archive.
19690 RANLIB=$lt_RANLIB
19691 old_archive_cmds=$lt_old_archive_cmds_CXX
19692 old_postinstall_cmds=$lt_old_postinstall_cmds
19693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694
19695 # Create an old-style archive from a shared archive.
19696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19697
19698 # Create a temporary old-style archive to link instead of a shared archive.
19699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19700
19701 # Commands used to build and install a shared archive.
19702 archive_cmds=$lt_archive_cmds_CXX
19703 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19704 postinstall_cmds=$lt_postinstall_cmds
19705 postuninstall_cmds=$lt_postuninstall_cmds
19706
19707 # Commands used to build a loadable module (assumed same as above if empty)
19708 module_cmds=$lt_module_cmds_CXX
19709 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19710
19711 # Commands to strip libraries.
19712 old_striplib=$lt_old_striplib
19713 striplib=$lt_striplib
19714
19715 # Dependencies to place before the objects being linked to create a
19716 # shared library.
19717 predep_objects=$lt_predep_objects_CXX
19718
19719 # Dependencies to place after the objects being linked to create a
19720 # shared library.
19721 postdep_objects=$lt_postdep_objects_CXX
19722
19723 # Dependencies to place before the objects being linked to create a
19724 # shared library.
19725 predeps=$lt_predeps_CXX
19726
19727 # Dependencies to place after the objects being linked to create a
19728 # shared library.
19729 postdeps=$lt_postdeps_CXX
19730
19731 # The library search path used internally by the compiler when linking
19732 # a shared library.
19733 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19734
19735 # Method to check whether dependent libraries are shared objects.
19736 deplibs_check_method=$lt_deplibs_check_method
19737
19738 # Command to use when deplibs_check_method == file_magic.
19739 file_magic_cmd=$lt_file_magic_cmd
19740
19741 # Flag that allows shared libraries with undefined symbols to be built.
19742 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19743
19744 # Flag that forces no undefined symbols.
19745 no_undefined_flag=$lt_no_undefined_flag_CXX
19746
19747 # Commands used to finish a libtool library installation in a directory.
19748 finish_cmds=$lt_finish_cmds
19749
19750 # Same as above, but a single script fragment to be evaled but not shown.
19751 finish_eval=$lt_finish_eval
19752
19753 # Take the output of nm and produce a listing of raw symbols and C names.
19754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19755
19756 # Transform the output of nm in a proper C declaration
19757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19758
19759 # Transform the output of nm in a C name address pair
19760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19761
19762 # This is the shared library runtime path variable.
19763 runpath_var=$runpath_var
19764
19765 # This is the shared library path variable.
19766 shlibpath_var=$shlibpath_var
19767
19768 # Is shlibpath searched before the hard-coded library search path?
19769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19770
19771 # How to hardcode a shared library path into an executable.
19772 hardcode_action=$hardcode_action_CXX
19773
19774 # Whether we should hardcode library paths into libraries.
19775 hardcode_into_libs=$hardcode_into_libs
19776
19777 # Flag to hardcode \$libdir into a binary during linking.
19778 # This must work even if \$libdir does not exist.
19779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19780
19781 # If ld is used when linking, flag to hardcode \$libdir into
19782 # a binary during linking. This must work even if \$libdir does
19783 # not exist.
19784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19785
19786 # Whether we need a single -rpath flag with a separated argument.
19787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19788
19789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19790 # resulting binary.
19791 hardcode_direct=$hardcode_direct_CXX
19792
19793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19794 # resulting binary.
19795 hardcode_minus_L=$hardcode_minus_L_CXX
19796
19797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19798 # the resulting binary.
19799 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19800
19801 # Set to yes if building a shared library automatically hardcodes DIR into the library
19802 # and all subsequent libraries and executables linked against it.
19803 hardcode_automatic=$hardcode_automatic_CXX
19804
19805 # Variables whose values should be saved in libtool wrapper scripts and
19806 # restored at relink time.
19807 variables_saved_for_relink="$variables_saved_for_relink"
19808
19809 # Whether libtool must link a program against all its dependency libraries.
19810 link_all_deplibs=$link_all_deplibs_CXX
19811
19812 # Compile-time system search path for libraries
19813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19814
19815 # Run-time system search path for libraries
19816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19817
19818 # Fix the shell variable \$srcfile for the compiler.
19819 fix_srcfile_path="$fix_srcfile_path_CXX"
19820
19821 # Set to yes if exported symbols are required.
19822 always_export_symbols=$always_export_symbols_CXX
19823
19824 # The commands to list exported symbols.
19825 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19826
19827 # The commands to extract the exported symbol list from a shared archive.
19828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19829
19830 # Symbols that should not be listed in the preloaded symbols.
19831 exclude_expsyms=$lt_exclude_expsyms_CXX
19832
19833 # Symbols that must always be exported.
19834 include_expsyms=$lt_include_expsyms_CXX
19835
19836 # ### END LIBTOOL TAG CONFIG: $tagname
19837
19838 __EOF__
19839
19840
19841 else
19842   # If there is no Makefile yet, we rely on a make rule to execute
19843   # `config.status --recheck' to rerun these tests and create the
19844   # libtool script then.
19845   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19846   if test -f "$ltmain_in"; then
19847     test -f Makefile && make "$ltmain"
19848   fi
19849 fi
19850
19851
19852 ac_ext=c
19853 ac_cpp='$CPP $CPPFLAGS'
19854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
19858 CC=$lt_save_CC
19859 LDCXX=$LD
19860 LD=$lt_save_LD
19861 GCC=$lt_save_GCC
19862 with_gnu_ldcxx=$with_gnu_ld
19863 with_gnu_ld=$lt_save_with_gnu_ld
19864 lt_cv_path_LDCXX=$lt_cv_path_LD
19865 lt_cv_path_LD=$lt_save_path_LD
19866 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19867 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19868
19869         else
19870           tagname=""
19871         fi
19872         ;;
19873
19874       F77)
19875         if test -n "$F77" && test "X$F77" != "Xno"; then
19876
19877 ac_ext=f
19878 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19879 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19881
19882
19883 archive_cmds_need_lc_F77=no
19884 allow_undefined_flag_F77=
19885 always_export_symbols_F77=no
19886 archive_expsym_cmds_F77=
19887 export_dynamic_flag_spec_F77=
19888 hardcode_direct_F77=no
19889 hardcode_libdir_flag_spec_F77=
19890 hardcode_libdir_flag_spec_ld_F77=
19891 hardcode_libdir_separator_F77=
19892 hardcode_minus_L_F77=no
19893 hardcode_automatic_F77=no
19894 module_cmds_F77=
19895 module_expsym_cmds_F77=
19896 link_all_deplibs_F77=unknown
19897 old_archive_cmds_F77=$old_archive_cmds
19898 no_undefined_flag_F77=
19899 whole_archive_flag_spec_F77=
19900 enable_shared_with_static_runtimes_F77=no
19901
19902 # Source file extension for f77 test sources.
19903 ac_ext=f
19904
19905 # Object file extension for compiled f77 test sources.
19906 objext=o
19907 objext_F77=$objext
19908
19909 # Code to be used in simple compile tests
19910 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19911
19912 # Code to be used in simple link tests
19913 lt_simple_link_test_code="      program t\n      end\n"
19914
19915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19916
19917 # If no C compiler was specified, use CC.
19918 LTCC=${LTCC-"$CC"}
19919
19920 # If no C compiler flags were specified, use CFLAGS.
19921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19922
19923 # Allow CC to be a program name with arguments.
19924 compiler=$CC
19925
19926
19927 # save warnings/boilerplate of simple test code
19928 ac_outfile=conftest.$ac_objext
19929 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19931 _lt_compiler_boilerplate=`cat conftest.err`
19932 $rm conftest*
19933
19934 ac_outfile=conftest.$ac_objext
19935 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19937 _lt_linker_boilerplate=`cat conftest.err`
19938 $rm conftest*
19939
19940
19941 # Allow CC to be a program name with arguments.
19942 lt_save_CC="$CC"
19943 CC=${F77-"f77"}
19944 compiler=$CC
19945 compiler_F77=$CC
19946 for cc_temp in $compiler""; do
19947   case $cc_temp in
19948     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19949     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19950     \-*) ;;
19951     *) break;;
19952   esac
19953 done
19954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19955
19956
19957 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19958 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19959 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19960 echo "${ECHO_T}$can_build_shared" >&6; }
19961
19962 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19963 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19964 test "$can_build_shared" = "no" && enable_shared=no
19965
19966 # On AIX, shared libraries and static libraries use the same namespace, and
19967 # are all built from PIC.
19968 case $host_os in
19969 aix3*)
19970   test "$enable_shared" = yes && enable_static=no
19971   if test -n "$RANLIB"; then
19972     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19973     postinstall_cmds='$RANLIB $lib'
19974   fi
19975   ;;
19976 aix4* | aix5*)
19977   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19978     test "$enable_shared" = yes && enable_static=no
19979   fi
19980   ;;
19981 esac
19982 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19983 echo "${ECHO_T}$enable_shared" >&6; }
19984
19985 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19986 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
19987 # Make sure either enable_shared or enable_static is yes.
19988 test "$enable_shared" = yes || enable_static=yes
19989 { echo "$as_me:$LINENO: result: $enable_static" >&5
19990 echo "${ECHO_T}$enable_static" >&6; }
19991
19992 GCC_F77="$G77"
19993 LD_F77="$LD"
19994
19995 lt_prog_compiler_wl_F77=
19996 lt_prog_compiler_pic_F77=
19997 lt_prog_compiler_static_F77=
19998
19999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20001
20002   if test "$GCC" = yes; then
20003     lt_prog_compiler_wl_F77='-Wl,'
20004     lt_prog_compiler_static_F77='-static'
20005
20006     case $host_os in
20007       aix*)
20008       # All AIX code is PIC.
20009       if test "$host_cpu" = ia64; then
20010         # AIX 5 now supports IA64 processor
20011         lt_prog_compiler_static_F77='-Bstatic'
20012       fi
20013       ;;
20014
20015     amigaos*)
20016       # FIXME: we need at least 68020 code to build shared libraries, but
20017       # adding the `-m68020' flag to GCC prevents building anything better,
20018       # like `-m68040'.
20019       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20020       ;;
20021
20022     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20023       # PIC is the default for these OSes.
20024       ;;
20025
20026     mingw* | pw32* | os2*)
20027       # This hack is so that the source file can tell whether it is being
20028       # built for inclusion in a dll (and should export symbols for example).
20029       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20030       ;;
20031
20032     darwin* | rhapsody*)
20033       # PIC is the default on this platform
20034       # Common symbols not allowed in MH_DYLIB files
20035       lt_prog_compiler_pic_F77='-fno-common'
20036       ;;
20037
20038     interix3*)
20039       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20040       # Instead, we relocate shared libraries at runtime.
20041       ;;
20042
20043     msdosdjgpp*)
20044       # Just because we use GCC doesn't mean we suddenly get shared libraries
20045       # on systems that don't support them.
20046       lt_prog_compiler_can_build_shared_F77=no
20047       enable_shared=no
20048       ;;
20049
20050     sysv4*MP*)
20051       if test -d /usr/nec; then
20052         lt_prog_compiler_pic_F77=-Kconform_pic
20053       fi
20054       ;;
20055
20056     hpux*)
20057       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20058       # not for PA HP-UX.
20059       case $host_cpu in
20060       hppa*64*|ia64*)
20061         # +Z the default
20062         ;;
20063       *)
20064         lt_prog_compiler_pic_F77='-fPIC'
20065         ;;
20066       esac
20067       ;;
20068
20069     *)
20070       lt_prog_compiler_pic_F77='-fPIC'
20071       ;;
20072     esac
20073   else
20074     # PORTME Check for flag to pass linker flags through the system compiler.
20075     case $host_os in
20076     aix*)
20077       lt_prog_compiler_wl_F77='-Wl,'
20078       if test "$host_cpu" = ia64; then
20079         # AIX 5 now supports IA64 processor
20080         lt_prog_compiler_static_F77='-Bstatic'
20081       else
20082         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20083       fi
20084       ;;
20085       darwin*)
20086         # PIC is the default on this platform
20087         # Common symbols not allowed in MH_DYLIB files
20088        case $cc_basename in
20089          xlc*)
20090          lt_prog_compiler_pic_F77='-qnocommon'
20091          lt_prog_compiler_wl_F77='-Wl,'
20092          ;;
20093        esac
20094        ;;
20095
20096     mingw* | pw32* | os2*)
20097       # This hack is so that the source file can tell whether it is being
20098       # built for inclusion in a dll (and should export symbols for example).
20099       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20100       ;;
20101
20102     hpux9* | hpux10* | hpux11*)
20103       lt_prog_compiler_wl_F77='-Wl,'
20104       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20105       # not for PA HP-UX.
20106       case $host_cpu in
20107       hppa*64*|ia64*)
20108         # +Z the default
20109         ;;
20110       *)
20111         lt_prog_compiler_pic_F77='+Z'
20112         ;;
20113       esac
20114       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20115       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20116       ;;
20117
20118     irix5* | irix6* | nonstopux*)
20119       lt_prog_compiler_wl_F77='-Wl,'
20120       # PIC (with -KPIC) is the default.
20121       lt_prog_compiler_static_F77='-non_shared'
20122       ;;
20123
20124     newsos6)
20125       lt_prog_compiler_pic_F77='-KPIC'
20126       lt_prog_compiler_static_F77='-Bstatic'
20127       ;;
20128
20129     linux*)
20130       case $cc_basename in
20131       icc* | ecc*)
20132         lt_prog_compiler_wl_F77='-Wl,'
20133         lt_prog_compiler_pic_F77='-KPIC'
20134         lt_prog_compiler_static_F77='-static'
20135         ;;
20136       pgcc* | pgf77* | pgf90* | pgf95*)
20137         # Portland Group compilers (*not* the Pentium gcc compiler,
20138         # which looks to be a dead project)
20139         lt_prog_compiler_wl_F77='-Wl,'
20140         lt_prog_compiler_pic_F77='-fpic'
20141         lt_prog_compiler_static_F77='-Bstatic'
20142         ;;
20143       ccc*)
20144         lt_prog_compiler_wl_F77='-Wl,'
20145         # All Alpha code is PIC.
20146         lt_prog_compiler_static_F77='-non_shared'
20147         ;;
20148       esac
20149       ;;
20150
20151     osf3* | osf4* | osf5*)
20152       lt_prog_compiler_wl_F77='-Wl,'
20153       # All OSF/1 code is PIC.
20154       lt_prog_compiler_static_F77='-non_shared'
20155       ;;
20156
20157     solaris*)
20158       lt_prog_compiler_pic_F77='-KPIC'
20159       lt_prog_compiler_static_F77='-Bstatic'
20160       case $cc_basename in
20161       f77* | f90* | f95*)
20162         lt_prog_compiler_wl_F77='-Qoption ld ';;
20163       *)
20164         lt_prog_compiler_wl_F77='-Wl,';;
20165       esac
20166       ;;
20167
20168     sunos4*)
20169       lt_prog_compiler_wl_F77='-Qoption ld '
20170       lt_prog_compiler_pic_F77='-PIC'
20171       lt_prog_compiler_static_F77='-Bstatic'
20172       ;;
20173
20174     sysv4 | sysv4.2uw2* | sysv4.3*)
20175       lt_prog_compiler_wl_F77='-Wl,'
20176       lt_prog_compiler_pic_F77='-KPIC'
20177       lt_prog_compiler_static_F77='-Bstatic'
20178       ;;
20179
20180     sysv4*MP*)
20181       if test -d /usr/nec ;then
20182         lt_prog_compiler_pic_F77='-Kconform_pic'
20183         lt_prog_compiler_static_F77='-Bstatic'
20184       fi
20185       ;;
20186
20187     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20188       lt_prog_compiler_wl_F77='-Wl,'
20189       lt_prog_compiler_pic_F77='-KPIC'
20190       lt_prog_compiler_static_F77='-Bstatic'
20191       ;;
20192
20193     unicos*)
20194       lt_prog_compiler_wl_F77='-Wl,'
20195       lt_prog_compiler_can_build_shared_F77=no
20196       ;;
20197
20198     uts4*)
20199       lt_prog_compiler_pic_F77='-pic'
20200       lt_prog_compiler_static_F77='-Bstatic'
20201       ;;
20202
20203     *)
20204       lt_prog_compiler_can_build_shared_F77=no
20205       ;;
20206     esac
20207   fi
20208
20209 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20210 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20211
20212 #
20213 # Check to make sure the PIC flag actually works.
20214 #
20215 if test -n "$lt_prog_compiler_pic_F77"; then
20216
20217 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20218 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20219 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20220   echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222   lt_prog_compiler_pic_works_F77=no
20223   ac_outfile=conftest.$ac_objext
20224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20225    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20226    # Insert the option either (1) after the last *FLAGS variable, or
20227    # (2) before a word containing "conftest.", or (3) at the end.
20228    # Note that $ac_compile itself does not contain backslashes and begins
20229    # with a dollar sign (not a hyphen), so the echo should work correctly.
20230    # The option is referenced via a variable to avoid confusing sed.
20231    lt_compile=`echo "$ac_compile" | $SED \
20232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20234    -e 's:$: $lt_compiler_flag:'`
20235    (eval echo "\"\$as_me:20235: $lt_compile\"" >&5)
20236    (eval "$lt_compile" 2>conftest.err)
20237    ac_status=$?
20238    cat conftest.err >&5
20239    echo "$as_me:20239: \$? = $ac_status" >&5
20240    if (exit $ac_status) && test -s "$ac_outfile"; then
20241      # The compiler can only warn and ignore the option if not recognized
20242      # So say no if there are warnings other than the usual output.
20243      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20244      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20245      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20246        lt_prog_compiler_pic_works_F77=yes
20247      fi
20248    fi
20249    $rm conftest*
20250
20251 fi
20252 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20253 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20254
20255 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20256     case $lt_prog_compiler_pic_F77 in
20257      "" | " "*) ;;
20258      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20259      esac
20260 else
20261     lt_prog_compiler_pic_F77=
20262      lt_prog_compiler_can_build_shared_F77=no
20263 fi
20264
20265 fi
20266 case $host_os in
20267   # For platforms which do not support PIC, -DPIC is meaningless:
20268   *djgpp*)
20269     lt_prog_compiler_pic_F77=
20270     ;;
20271   *)
20272     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20273     ;;
20274 esac
20275
20276 #
20277 # Check to make sure the static flag actually works.
20278 #
20279 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20280 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20281 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20282 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   lt_prog_compiler_static_works_F77=no
20286    save_LDFLAGS="$LDFLAGS"
20287    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20288    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20289    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20290      # The linker can only warn and ignore the option if not recognized
20291      # So say no if there are warnings
20292      if test -s conftest.err; then
20293        # Append any errors to the config.log.
20294        cat conftest.err 1>&5
20295        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20296        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20297        if diff conftest.exp conftest.er2 >/dev/null; then
20298          lt_prog_compiler_static_works_F77=yes
20299        fi
20300      else
20301        lt_prog_compiler_static_works_F77=yes
20302      fi
20303    fi
20304    $rm conftest*
20305    LDFLAGS="$save_LDFLAGS"
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20309 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20310
20311 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20312     :
20313 else
20314     lt_prog_compiler_static_F77=
20315 fi
20316
20317
20318 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20319 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20320 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323   lt_cv_prog_compiler_c_o_F77=no
20324    $rm -r conftest 2>/dev/null
20325    mkdir conftest
20326    cd conftest
20327    mkdir out
20328    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20329
20330    lt_compiler_flag="-o out/conftest2.$ac_objext"
20331    # Insert the option either (1) after the last *FLAGS variable, or
20332    # (2) before a word containing "conftest.", or (3) at the end.
20333    # Note that $ac_compile itself does not contain backslashes and begins
20334    # with a dollar sign (not a hyphen), so the echo should work correctly.
20335    lt_compile=`echo "$ac_compile" | $SED \
20336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20338    -e 's:$: $lt_compiler_flag:'`
20339    (eval echo "\"\$as_me:20339: $lt_compile\"" >&5)
20340    (eval "$lt_compile" 2>out/conftest.err)
20341    ac_status=$?
20342    cat out/conftest.err >&5
20343    echo "$as_me:20343: \$? = $ac_status" >&5
20344    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20345    then
20346      # The compiler can only warn and ignore the option if not recognized
20347      # So say no if there are warnings
20348      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20349      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20350      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20351        lt_cv_prog_compiler_c_o_F77=yes
20352      fi
20353    fi
20354    chmod u+w . 2>&5
20355    $rm conftest*
20356    # SGI C++ compiler will create directory out/ii_files/ for
20357    # template instantiation
20358    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20359    $rm out/* && rmdir out
20360    cd ..
20361    rmdir conftest
20362    $rm conftest*
20363
20364 fi
20365 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20366 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20367
20368
20369 hard_links="nottested"
20370 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20371   # do not overwrite the value of need_locks provided by the user
20372   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20373 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20374   hard_links=yes
20375   $rm conftest*
20376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20377   touch conftest.a
20378   ln conftest.a conftest.b 2>&5 || hard_links=no
20379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20380   { echo "$as_me:$LINENO: result: $hard_links" >&5
20381 echo "${ECHO_T}$hard_links" >&6; }
20382   if test "$hard_links" = no; then
20383     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20384 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20385     need_locks=warn
20386   fi
20387 else
20388   need_locks=no
20389 fi
20390
20391 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20392 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20393
20394   runpath_var=
20395   allow_undefined_flag_F77=
20396   enable_shared_with_static_runtimes_F77=no
20397   archive_cmds_F77=
20398   archive_expsym_cmds_F77=
20399   old_archive_From_new_cmds_F77=
20400   old_archive_from_expsyms_cmds_F77=
20401   export_dynamic_flag_spec_F77=
20402   whole_archive_flag_spec_F77=
20403   thread_safe_flag_spec_F77=
20404   hardcode_libdir_flag_spec_F77=
20405   hardcode_libdir_flag_spec_ld_F77=
20406   hardcode_libdir_separator_F77=
20407   hardcode_direct_F77=no
20408   hardcode_minus_L_F77=no
20409   hardcode_shlibpath_var_F77=unsupported
20410   link_all_deplibs_F77=unknown
20411   hardcode_automatic_F77=no
20412   module_cmds_F77=
20413   module_expsym_cmds_F77=
20414   always_export_symbols_F77=no
20415   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20416   # include_expsyms should be a list of space-separated symbols to be *always*
20417   # included in the symbol list
20418   include_expsyms_F77=
20419   # exclude_expsyms can be an extended regexp of symbols to exclude
20420   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20421   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20422   # as well as any symbol that contains `d'.
20423   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20424   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20425   # platforms (ab)use it in PIC code, but their linkers get confused if
20426   # the symbol is explicitly referenced.  Since portable code cannot
20427   # rely on this symbol name, it's probably fine to never include it in
20428   # preloaded symbol tables.
20429   extract_expsyms_cmds=
20430   # Just being paranoid about ensuring that cc_basename is set.
20431   for cc_temp in $compiler""; do
20432   case $cc_temp in
20433     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20434     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20435     \-*) ;;
20436     *) break;;
20437   esac
20438 done
20439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20440
20441   case $host_os in
20442   cygwin* | mingw* | pw32*)
20443     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20444     # When not using gcc, we currently assume that we are using
20445     # Microsoft Visual C++.
20446     if test "$GCC" != yes; then
20447       with_gnu_ld=no
20448     fi
20449     ;;
20450   interix*)
20451     # we just hope/assume this is gcc and not c89 (= MSVC++)
20452     with_gnu_ld=yes
20453     ;;
20454   openbsd*)
20455     with_gnu_ld=no
20456     ;;
20457   esac
20458
20459   ld_shlibs_F77=yes
20460   if test "$with_gnu_ld" = yes; then
20461     # If archive_cmds runs LD, not CC, wlarc should be empty
20462     wlarc='${wl}'
20463
20464     # Set some defaults for GNU ld with shared library support. These
20465     # are reset later if shared libraries are not supported. Putting them
20466     # here allows them to be overridden if necessary.
20467     runpath_var=LD_RUN_PATH
20468     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20469     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20470     # ancient GNU ld didn't support --whole-archive et. al.
20471     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20472         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20473       else
20474         whole_archive_flag_spec_F77=
20475     fi
20476     supports_anon_versioning=no
20477     case `$LD -v 2>/dev/null` in
20478       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20479       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20480       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20481       *\ 2.11.*) ;; # other 2.11 versions
20482       *) supports_anon_versioning=yes ;;
20483     esac
20484
20485     # See if GNU ld supports shared libraries.
20486     case $host_os in
20487     aix3* | aix4* | aix5*)
20488       # On AIX/PPC, the GNU linker is very broken
20489       if test "$host_cpu" != ia64; then
20490         ld_shlibs_F77=no
20491         cat <<EOF 1>&2
20492
20493 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20494 *** to be unable to reliably create shared libraries on AIX.
20495 *** Therefore, libtool is disabling shared libraries support.  If you
20496 *** really care for shared libraries, you may want to modify your PATH
20497 *** so that a non-GNU linker is found, and then restart.
20498
20499 EOF
20500       fi
20501       ;;
20502
20503     amigaos*)
20504       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)'
20505       hardcode_libdir_flag_spec_F77='-L$libdir'
20506       hardcode_minus_L_F77=yes
20507
20508       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20509       # that the semantics of dynamic libraries on AmigaOS, at least up
20510       # to version 4, is to share data among multiple programs linked
20511       # with the same dynamic library.  Since this doesn't match the
20512       # behavior of shared libraries on other platforms, we can't use
20513       # them.
20514       ld_shlibs_F77=no
20515       ;;
20516
20517     beos*)
20518       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20519         allow_undefined_flag_F77=unsupported
20520         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20521         # support --undefined.  This deserves some investigation.  FIXME
20522         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20523       else
20524         ld_shlibs_F77=no
20525       fi
20526       ;;
20527
20528     cygwin* | mingw* | pw32*)
20529       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20530       # as there is no search path for DLLs.
20531       hardcode_libdir_flag_spec_F77='-L$libdir'
20532       allow_undefined_flag_F77=unsupported
20533       always_export_symbols_F77=no
20534       enable_shared_with_static_runtimes_F77=yes
20535       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20536
20537       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20538         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20539         # If the export-symbols file already is a .def file (1st line
20540         # is EXPORTS), use it as is; otherwise, prepend...
20541         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20542           cp $export_symbols $output_objdir/$soname.def;
20543         else
20544           echo EXPORTS > $output_objdir/$soname.def;
20545           cat $export_symbols >> $output_objdir/$soname.def;
20546         fi~
20547         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20548       else
20549         ld_shlibs_F77=no
20550       fi
20551       ;;
20552
20553     interix3*)
20554       hardcode_direct_F77=no
20555       hardcode_shlibpath_var_F77=no
20556       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20557       export_dynamic_flag_spec_F77='${wl}-E'
20558       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20559       # Instead, shared libraries are loaded at an image base (0x10000000 by
20560       # default) and relocated if they conflict, which is a slow very memory
20561       # consuming and fragmenting process.  To avoid this, we pick a random,
20562       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20563       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20564       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'
20565       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'
20566       ;;
20567
20568     linux*)
20569       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20570         tmp_addflag=
20571         case $cc_basename,$host_cpu in
20572         pgcc*)                          # Portland Group C compiler
20573           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'
20574           tmp_addflag=' $pic_flag'
20575           ;;
20576         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20577           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'
20578           tmp_addflag=' $pic_flag -Mnomain' ;;
20579         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20580           tmp_addflag=' -i_dynamic' ;;
20581         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20582           tmp_addflag=' -i_dynamic -nofor_main' ;;
20583         ifc* | ifort*)                  # Intel Fortran compiler
20584           tmp_addflag=' -nofor_main' ;;
20585         esac
20586         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20587
20588         if test $supports_anon_versioning = yes; then
20589           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20590   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20591   $echo "local: *; };" >> $output_objdir/$libname.ver~
20592           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20593         fi
20594       else
20595         ld_shlibs_F77=no
20596       fi
20597       ;;
20598
20599     netbsd*)
20600       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20601         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20602         wlarc=
20603       else
20604         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20605         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20606       fi
20607       ;;
20608
20609     solaris*)
20610       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20611         ld_shlibs_F77=no
20612         cat <<EOF 1>&2
20613
20614 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20615 *** create shared libraries on Solaris systems.  Therefore, libtool
20616 *** is disabling shared libraries support.  We urge you to upgrade GNU
20617 *** binutils to release 2.9.1 or newer.  Another option is to modify
20618 *** your PATH or compiler configuration so that the native linker is
20619 *** used, and then restart.
20620
20621 EOF
20622       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20623         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20624         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20625       else
20626         ld_shlibs_F77=no
20627       fi
20628       ;;
20629
20630     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20631       case `$LD -v 2>&1` in
20632         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20633         ld_shlibs_F77=no
20634         cat <<_LT_EOF 1>&2
20635
20636 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20637 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20638 *** is disabling shared libraries support.  We urge you to upgrade GNU
20639 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20640 *** your PATH or compiler configuration so that the native linker is
20641 *** used, and then restart.
20642
20643 _LT_EOF
20644         ;;
20645         *)
20646           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20647             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20648             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20649             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20650           else
20651             ld_shlibs_F77=no
20652           fi
20653         ;;
20654       esac
20655       ;;
20656
20657     sunos4*)
20658       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20659       wlarc=
20660       hardcode_direct_F77=yes
20661       hardcode_shlibpath_var_F77=no
20662       ;;
20663
20664     *)
20665       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20666         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20667         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20668       else
20669         ld_shlibs_F77=no
20670       fi
20671       ;;
20672     esac
20673
20674     if test "$ld_shlibs_F77" = no; then
20675       runpath_var=
20676       hardcode_libdir_flag_spec_F77=
20677       export_dynamic_flag_spec_F77=
20678       whole_archive_flag_spec_F77=
20679     fi
20680   else
20681     # PORTME fill in a description of your system's linker (not GNU ld)
20682     case $host_os in
20683     aix3*)
20684       allow_undefined_flag_F77=unsupported
20685       always_export_symbols_F77=yes
20686       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'
20687       # Note: this linker hardcodes the directories in LIBPATH if there
20688       # are no directories specified by -L.
20689       hardcode_minus_L_F77=yes
20690       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20691         # Neither direct hardcoding nor static linking is supported with a
20692         # broken collect2.
20693         hardcode_direct_F77=unsupported
20694       fi
20695       ;;
20696
20697     aix4* | aix5*)
20698       if test "$host_cpu" = ia64; then
20699         # On IA64, the linker does run time linking by default, so we don't
20700         # have to do anything special.
20701         aix_use_runtimelinking=no
20702         exp_sym_flag='-Bexport'
20703         no_entry_flag=""
20704       else
20705         # If we're using GNU nm, then we don't want the "-C" option.
20706         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20707         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20708           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'
20709         else
20710           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'
20711         fi
20712         aix_use_runtimelinking=no
20713
20714         # Test if we are trying to use run time linking or normal
20715         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20716         # need to do runtime linking.
20717         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20718           for ld_flag in $LDFLAGS; do
20719           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20720             aix_use_runtimelinking=yes
20721             break
20722           fi
20723           done
20724           ;;
20725         esac
20726
20727         exp_sym_flag='-bexport'
20728         no_entry_flag='-bnoentry'
20729       fi
20730
20731       # When large executables or shared objects are built, AIX ld can
20732       # have problems creating the table of contents.  If linking a library
20733       # or program results in "error TOC overflow" add -mminimal-toc to
20734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20736
20737       archive_cmds_F77=''
20738       hardcode_direct_F77=yes
20739       hardcode_libdir_separator_F77=':'
20740       link_all_deplibs_F77=yes
20741
20742       if test "$GCC" = yes; then
20743         case $host_os in aix4.[012]|aix4.[012].*)
20744         # We only want to do this on AIX 4.2 and lower, the check
20745         # below for broken collect2 doesn't work under 4.3+
20746           collect2name=`${CC} -print-prog-name=collect2`
20747           if test -f "$collect2name" && \
20748            strings "$collect2name" | grep resolve_lib_name >/dev/null
20749           then
20750           # We have reworked collect2
20751           hardcode_direct_F77=yes
20752           else
20753           # We have old collect2
20754           hardcode_direct_F77=unsupported
20755           # It fails to find uninstalled libraries when the uninstalled
20756           # path is not listed in the libpath.  Setting hardcode_minus_L
20757           # to unsupported forces relinking
20758           hardcode_minus_L_F77=yes
20759           hardcode_libdir_flag_spec_F77='-L$libdir'
20760           hardcode_libdir_separator_F77=
20761           fi
20762           ;;
20763         esac
20764         shared_flag='-shared'
20765         if test "$aix_use_runtimelinking" = yes; then
20766           shared_flag="$shared_flag "'${wl}-G'
20767         fi
20768       else
20769         # not using gcc
20770         if test "$host_cpu" = ia64; then
20771         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20772         # chokes on -Wl,-G. The following line is correct:
20773           shared_flag='-G'
20774         else
20775           if test "$aix_use_runtimelinking" = yes; then
20776             shared_flag='${wl}-G'
20777           else
20778             shared_flag='${wl}-bM:SRE'
20779           fi
20780         fi
20781       fi
20782
20783       # It seems that -bexpall does not export symbols beginning with
20784       # underscore (_), so it is better to generate a list of symbols to export.
20785       always_export_symbols_F77=yes
20786       if test "$aix_use_runtimelinking" = yes; then
20787         # Warning - without using the other runtime loading flags (-brtl),
20788         # -berok will link without error, but may produce a broken library.
20789         allow_undefined_flag_F77='-berok'
20790        # Determine the default libpath from the value encoded in an empty executable.
20791        cat >conftest.$ac_ext <<_ACEOF
20792       program main
20793
20794       end
20795 _ACEOF
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800   *) ac_try_echo=$ac_try;;
20801 esac
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803   (eval "$ac_link") 2>conftest.er1
20804   ac_status=$?
20805   grep -v '^ *+' conftest.er1 >conftest.err
20806   rm -f conftest.er1
20807   cat conftest.err >&5
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); } && {
20810          test -z "$ac_f77_werror_flag" ||
20811          test ! -s conftest.err
20812        } && test -s conftest$ac_exeext &&
20813        $as_test_x conftest$ac_exeext; then
20814
20815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20816 }'`
20817 # Check for a 64-bit object if we didn't find anything.
20818 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; }
20819 }'`; fi
20820 else
20821   echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824
20825 fi
20826
20827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20828       conftest$ac_exeext conftest.$ac_ext
20829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20830
20831        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20832         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"
20833        else
20834         if test "$host_cpu" = ia64; then
20835           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20836           allow_undefined_flag_F77="-z nodefs"
20837           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"
20838         else
20839          # Determine the default libpath from the value encoded in an empty executable.
20840          cat >conftest.$ac_ext <<_ACEOF
20841       program main
20842
20843       end
20844 _ACEOF
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849   *) ac_try_echo=$ac_try;;
20850 esac
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852   (eval "$ac_link") 2>conftest.er1
20853   ac_status=$?
20854   grep -v '^ *+' conftest.er1 >conftest.err
20855   rm -f conftest.er1
20856   cat conftest.err >&5
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); } && {
20859          test -z "$ac_f77_werror_flag" ||
20860          test ! -s conftest.err
20861        } && test -s conftest$ac_exeext &&
20862        $as_test_x conftest$ac_exeext; then
20863
20864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20865 }'`
20866 # Check for a 64-bit object if we didn't find anything.
20867 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; }
20868 }'`; fi
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873
20874 fi
20875
20876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20877       conftest$ac_exeext conftest.$ac_ext
20878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20879
20880          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20881           # Warning - without using the other run time loading flags,
20882           # -berok will link without error, but may produce a broken library.
20883           no_undefined_flag_F77=' ${wl}-bernotok'
20884           allow_undefined_flag_F77=' ${wl}-berok'
20885           # Exported symbols can be pulled into shared objects from archives
20886           whole_archive_flag_spec_F77='$convenience'
20887           archive_cmds_need_lc_F77=yes
20888           # This is similar to how AIX traditionally builds its shared libraries.
20889           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'
20890         fi
20891       fi
20892       ;;
20893
20894     amigaos*)
20895       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)'
20896       hardcode_libdir_flag_spec_F77='-L$libdir'
20897       hardcode_minus_L_F77=yes
20898       # see comment about different semantics on the GNU ld section
20899       ld_shlibs_F77=no
20900       ;;
20901
20902     bsdi[45]*)
20903       export_dynamic_flag_spec_F77=-rdynamic
20904       ;;
20905
20906     cygwin* | mingw* | pw32*)
20907       # When not using gcc, we currently assume that we are using
20908       # Microsoft Visual C++.
20909       # hardcode_libdir_flag_spec is actually meaningless, as there is
20910       # no search path for DLLs.
20911       hardcode_libdir_flag_spec_F77=' '
20912       allow_undefined_flag_F77=unsupported
20913       # Tell ltmain to make .lib files, not .a files.
20914       libext=lib
20915       # Tell ltmain to make .dll files, not .so files.
20916       shrext_cmds=".dll"
20917       # FIXME: Setting linknames here is a bad hack.
20918       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20919       # The linker will automatically build a .lib file if we build a DLL.
20920       old_archive_From_new_cmds_F77='true'
20921       # FIXME: Should let the user specify the lib program.
20922       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20923       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20924       enable_shared_with_static_runtimes_F77=yes
20925       ;;
20926
20927     darwin* | rhapsody*)
20928       case $host_os in
20929         rhapsody* | darwin1.[012])
20930          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20931          ;;
20932        *) # Darwin 1.3 on
20933          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20934            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20935          else
20936            case ${MACOSX_DEPLOYMENT_TARGET} in
20937              10.[012])
20938                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20939                ;;
20940              10.*)
20941                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20942                ;;
20943            esac
20944          fi
20945          ;;
20946       esac
20947       archive_cmds_need_lc_F77=no
20948       hardcode_direct_F77=no
20949       hardcode_automatic_F77=yes
20950       hardcode_shlibpath_var_F77=unsupported
20951       whole_archive_flag_spec_F77=''
20952       link_all_deplibs_F77=yes
20953     if test "$GCC" = yes ; then
20954         output_verbose_link_cmd='echo'
20955         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20956       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20957       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20958       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}'
20959       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}'
20960     else
20961       case $cc_basename in
20962         xlc*)
20963          output_verbose_link_cmd='echo'
20964          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20965          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20966           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20967          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}'
20968           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}'
20969           ;;
20970        *)
20971          ld_shlibs_F77=no
20972           ;;
20973       esac
20974     fi
20975       ;;
20976
20977     dgux*)
20978       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20979       hardcode_libdir_flag_spec_F77='-L$libdir'
20980       hardcode_shlibpath_var_F77=no
20981       ;;
20982
20983     freebsd1*)
20984       ld_shlibs_F77=no
20985       ;;
20986
20987     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20988     # support.  Future versions do this automatically, but an explicit c++rt0.o
20989     # does not break anything, and helps significantly (at the cost of a little
20990     # extra space).
20991     freebsd2.2*)
20992       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20993       hardcode_libdir_flag_spec_F77='-R$libdir'
20994       hardcode_direct_F77=yes
20995       hardcode_shlibpath_var_F77=no
20996       ;;
20997
20998     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20999     freebsd2*)
21000       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21001       hardcode_direct_F77=yes
21002       hardcode_minus_L_F77=yes
21003       hardcode_shlibpath_var_F77=no
21004       ;;
21005
21006     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21007     freebsd* | kfreebsd*-gnu | dragonfly*)
21008       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21009       hardcode_libdir_flag_spec_F77='-R$libdir'
21010       hardcode_direct_F77=yes
21011       hardcode_shlibpath_var_F77=no
21012       ;;
21013
21014     hpux9*)
21015       if test "$GCC" = yes; then
21016         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'
21017       else
21018         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'
21019       fi
21020       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21021       hardcode_libdir_separator_F77=:
21022       hardcode_direct_F77=yes
21023
21024       # hardcode_minus_L: Not really in the search PATH,
21025       # but as the default location of the library.
21026       hardcode_minus_L_F77=yes
21027       export_dynamic_flag_spec_F77='${wl}-E'
21028       ;;
21029
21030     hpux10*)
21031       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21032         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21033       else
21034         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21035       fi
21036       if test "$with_gnu_ld" = no; then
21037         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21038         hardcode_libdir_separator_F77=:
21039
21040         hardcode_direct_F77=yes
21041         export_dynamic_flag_spec_F77='${wl}-E'
21042
21043         # hardcode_minus_L: Not really in the search PATH,
21044         # but as the default location of the library.
21045         hardcode_minus_L_F77=yes
21046       fi
21047       ;;
21048
21049     hpux11*)
21050       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21051         case $host_cpu in
21052         hppa*64*)
21053           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21054           ;;
21055         ia64*)
21056           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21057           ;;
21058         *)
21059           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21060           ;;
21061         esac
21062       else
21063         case $host_cpu in
21064         hppa*64*)
21065           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21066           ;;
21067         ia64*)
21068           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21069           ;;
21070         *)
21071           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21072           ;;
21073         esac
21074       fi
21075       if test "$with_gnu_ld" = no; then
21076         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21077         hardcode_libdir_separator_F77=:
21078
21079         case $host_cpu in
21080         hppa*64*|ia64*)
21081           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21082           hardcode_direct_F77=no
21083           hardcode_shlibpath_var_F77=no
21084           ;;
21085         *)
21086           hardcode_direct_F77=yes
21087           export_dynamic_flag_spec_F77='${wl}-E'
21088
21089           # hardcode_minus_L: Not really in the search PATH,
21090           # but as the default location of the library.
21091           hardcode_minus_L_F77=yes
21092           ;;
21093         esac
21094       fi
21095       ;;
21096
21097     irix5* | irix6* | nonstopux*)
21098       if test "$GCC" = yes; then
21099         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'
21100       else
21101         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'
21102         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21103       fi
21104       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21105       hardcode_libdir_separator_F77=:
21106       link_all_deplibs_F77=yes
21107       ;;
21108
21109     netbsd*)
21110       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21111         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21112       else
21113         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21114       fi
21115       hardcode_libdir_flag_spec_F77='-R$libdir'
21116       hardcode_direct_F77=yes
21117       hardcode_shlibpath_var_F77=no
21118       ;;
21119
21120     newsos6)
21121       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21122       hardcode_direct_F77=yes
21123       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21124       hardcode_libdir_separator_F77=:
21125       hardcode_shlibpath_var_F77=no
21126       ;;
21127
21128     openbsd*)
21129       hardcode_direct_F77=yes
21130       hardcode_shlibpath_var_F77=no
21131       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21132         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21133         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21134         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21135         export_dynamic_flag_spec_F77='${wl}-E'
21136       else
21137        case $host_os in
21138          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21139            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21140            hardcode_libdir_flag_spec_F77='-R$libdir'
21141            ;;
21142          *)
21143            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21144            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21145            ;;
21146        esac
21147       fi
21148       ;;
21149
21150     os2*)
21151       hardcode_libdir_flag_spec_F77='-L$libdir'
21152       hardcode_minus_L_F77=yes
21153       allow_undefined_flag_F77=unsupported
21154       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'
21155       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21156       ;;
21157
21158     osf3*)
21159       if test "$GCC" = yes; then
21160         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21161         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'
21162       else
21163         allow_undefined_flag_F77=' -expect_unresolved \*'
21164         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'
21165       fi
21166       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21167       hardcode_libdir_separator_F77=:
21168       ;;
21169
21170     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21171       if test "$GCC" = yes; then
21172         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21173         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'
21174         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21175       else
21176         allow_undefined_flag_F77=' -expect_unresolved \*'
21177         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'
21178         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~
21179         $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'
21180
21181         # Both c and cxx compiler support -rpath directly
21182         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21183       fi
21184       hardcode_libdir_separator_F77=:
21185       ;;
21186
21187     solaris*)
21188       no_undefined_flag_F77=' -z text'
21189       if test "$GCC" = yes; then
21190         wlarc='${wl}'
21191         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21192         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21193           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21194       else
21195         wlarc=''
21196         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21197         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21198         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21199       fi
21200       hardcode_libdir_flag_spec_F77='-R$libdir'
21201       hardcode_shlibpath_var_F77=no
21202       case $host_os in
21203       solaris2.[0-5] | solaris2.[0-5].*) ;;
21204       *)
21205         # The compiler driver will combine linker options so we
21206         # cannot just pass the convience library names through
21207         # without $wl, iff we do not link with $LD.
21208         # Luckily, gcc supports the same syntax we need for Sun Studio.
21209         # Supported since Solaris 2.6 (maybe 2.5.1?)
21210         case $wlarc in
21211         '')
21212           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21213         *)
21214           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' ;;
21215         esac ;;
21216       esac
21217       link_all_deplibs_F77=yes
21218       ;;
21219
21220     sunos4*)
21221       if test "x$host_vendor" = xsequent; then
21222         # Use $CC to link under sequent, because it throws in some extra .o
21223         # files that make .init and .fini sections work.
21224         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21225       else
21226         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21227       fi
21228       hardcode_libdir_flag_spec_F77='-L$libdir'
21229       hardcode_direct_F77=yes
21230       hardcode_minus_L_F77=yes
21231       hardcode_shlibpath_var_F77=no
21232       ;;
21233
21234     sysv4)
21235       case $host_vendor in
21236         sni)
21237           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21238           hardcode_direct_F77=yes # is this really true???
21239         ;;
21240         siemens)
21241           ## LD is ld it makes a PLAMLIB
21242           ## CC just makes a GrossModule.
21243           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21244           reload_cmds_F77='$CC -r -o $output$reload_objs'
21245           hardcode_direct_F77=no
21246         ;;
21247         motorola)
21248           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21249           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21250         ;;
21251       esac
21252       runpath_var='LD_RUN_PATH'
21253       hardcode_shlibpath_var_F77=no
21254       ;;
21255
21256     sysv4.3*)
21257       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21258       hardcode_shlibpath_var_F77=no
21259       export_dynamic_flag_spec_F77='-Bexport'
21260       ;;
21261
21262     sysv4*MP*)
21263       if test -d /usr/nec; then
21264         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21265         hardcode_shlibpath_var_F77=no
21266         runpath_var=LD_RUN_PATH
21267         hardcode_runpath_var=yes
21268         ld_shlibs_F77=yes
21269       fi
21270       ;;
21271
21272     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21273       no_undefined_flag_F77='${wl}-z,text'
21274       archive_cmds_need_lc_F77=no
21275       hardcode_shlibpath_var_F77=no
21276       runpath_var='LD_RUN_PATH'
21277
21278       if test "$GCC" = yes; then
21279         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21280         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21281       else
21282         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21283         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21284       fi
21285       ;;
21286
21287     sysv5* | sco3.2v5* | sco5v6*)
21288       # Note: We can NOT use -z defs as we might desire, because we do not
21289       # link with -lc, and that would cause any symbols used from libc to
21290       # always be unresolved, which means just about no library would
21291       # ever link correctly.  If we're not using GNU ld we use -z text
21292       # though, which does catch some bad symbols but isn't as heavy-handed
21293       # as -z defs.
21294       no_undefined_flag_F77='${wl}-z,text'
21295       allow_undefined_flag_F77='${wl}-z,nodefs'
21296       archive_cmds_need_lc_F77=no
21297       hardcode_shlibpath_var_F77=no
21298       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21299       hardcode_libdir_separator_F77=':'
21300       link_all_deplibs_F77=yes
21301       export_dynamic_flag_spec_F77='${wl}-Bexport'
21302       runpath_var='LD_RUN_PATH'
21303
21304       if test "$GCC" = yes; then
21305         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21306         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21307       else
21308         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21309         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310       fi
21311       ;;
21312
21313     uts4*)
21314       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21315       hardcode_libdir_flag_spec_F77='-L$libdir'
21316       hardcode_shlibpath_var_F77=no
21317       ;;
21318
21319     *)
21320       ld_shlibs_F77=no
21321       ;;
21322     esac
21323   fi
21324
21325 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21326 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21327 test "$ld_shlibs_F77" = no && can_build_shared=no
21328
21329 #
21330 # Do we need to explicitly link libc?
21331 #
21332 case "x$archive_cmds_need_lc_F77" in
21333 x|xyes)
21334   # Assume -lc should be added
21335   archive_cmds_need_lc_F77=yes
21336
21337   if test "$enable_shared" = yes && test "$GCC" = yes; then
21338     case $archive_cmds_F77 in
21339     *'~'*)
21340       # FIXME: we may have to deal with multi-command sequences.
21341       ;;
21342     '$CC '*)
21343       # Test whether the compiler implicitly links with -lc since on some
21344       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21345       # to ld, don't add -lc before -lgcc.
21346       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21347 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21348       $rm conftest*
21349       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21350
21351       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352   (eval $ac_compile) 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } 2>conftest.err; then
21356         soname=conftest
21357         lib=conftest
21358         libobjs=conftest.$ac_objext
21359         deplibs=
21360         wl=$lt_prog_compiler_wl_F77
21361         pic_flag=$lt_prog_compiler_pic_F77
21362         compiler_flags=-v
21363         linker_flags=-v
21364         verstring=
21365         output_objdir=.
21366         libname=conftest
21367         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21368         allow_undefined_flag_F77=
21369         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21370   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }
21374         then
21375           archive_cmds_need_lc_F77=no
21376         else
21377           archive_cmds_need_lc_F77=yes
21378         fi
21379         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21380       else
21381         cat conftest.err 1>&5
21382       fi
21383       $rm conftest*
21384       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21385 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21386       ;;
21387     esac
21388   fi
21389   ;;
21390 esac
21391
21392 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21393 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21394 library_names_spec=
21395 libname_spec='lib$name'
21396 soname_spec=
21397 shrext_cmds=".so"
21398 postinstall_cmds=
21399 postuninstall_cmds=
21400 finish_cmds=
21401 finish_eval=
21402 shlibpath_var=
21403 shlibpath_overrides_runpath=unknown
21404 version_type=none
21405 dynamic_linker="$host_os ld.so"
21406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21407 if test "$GCC" = yes; then
21408   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21409   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21410     # if the path contains ";" then we assume it to be the separator
21411     # otherwise default to the standard path separator (i.e. ":") - it is
21412     # assumed that no part of a normal pathname contains ";" but that should
21413     # okay in the real world where ";" in dirpaths is itself problematic.
21414     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21415   else
21416     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21417   fi
21418 else
21419   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21420 fi
21421 need_lib_prefix=unknown
21422 hardcode_into_libs=no
21423
21424 # when you set need_version to no, make sure it does not cause -set_version
21425 # flags to be left without arguments
21426 need_version=unknown
21427
21428 case $host_os in
21429 aix3*)
21430   version_type=linux
21431   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21432   shlibpath_var=LIBPATH
21433
21434   # AIX 3 has no versioning support, so we append a major version to the name.
21435   soname_spec='${libname}${release}${shared_ext}$major'
21436   ;;
21437
21438 aix4* | aix5*)
21439   version_type=linux
21440   need_lib_prefix=no
21441   need_version=no
21442   hardcode_into_libs=yes
21443   if test "$host_cpu" = ia64; then
21444     # AIX 5 supports IA64
21445     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21446     shlibpath_var=LD_LIBRARY_PATH
21447   else
21448     # With GCC up to 2.95.x, collect2 would create an import file
21449     # for dependence libraries.  The import file would start with
21450     # the line `#! .'.  This would cause the generated library to
21451     # depend on `.', always an invalid library.  This was fixed in
21452     # development snapshots of GCC prior to 3.0.
21453     case $host_os in
21454       aix4 | aix4.[01] | aix4.[01].*)
21455       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21456            echo ' yes '
21457            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21458         :
21459       else
21460         can_build_shared=no
21461       fi
21462       ;;
21463     esac
21464     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21465     # soname into executable. Probably we can add versioning support to
21466     # collect2, so additional links can be useful in future.
21467     if test "$aix_use_runtimelinking" = yes; then
21468       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21469       # instead of lib<name>.a to let people know that these are not
21470       # typical AIX shared libraries.
21471       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21472     else
21473       # We preserve .a as extension for shared libraries through AIX4.2
21474       # and later when we are not doing run time linking.
21475       library_names_spec='${libname}${release}.a $libname.a'
21476       soname_spec='${libname}${release}${shared_ext}$major'
21477     fi
21478     shlibpath_var=LIBPATH
21479   fi
21480   ;;
21481
21482 amigaos*)
21483   library_names_spec='$libname.ixlibrary $libname.a'
21484   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21485   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'
21486   ;;
21487
21488 beos*)
21489   library_names_spec='${libname}${shared_ext}'
21490   dynamic_linker="$host_os ld.so"
21491   shlibpath_var=LIBRARY_PATH
21492   ;;
21493
21494 bsdi[45]*)
21495   version_type=linux
21496   need_version=no
21497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21498   soname_spec='${libname}${release}${shared_ext}$major'
21499   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21500   shlibpath_var=LD_LIBRARY_PATH
21501   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21502   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21503   # the default ld.so.conf also contains /usr/contrib/lib and
21504   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21505   # libtool to hard-code these into programs
21506   ;;
21507
21508 cygwin* | mingw* | pw32*)
21509   version_type=windows
21510   shrext_cmds=".dll"
21511   need_version=no
21512   need_lib_prefix=no
21513
21514   case $GCC,$host_os in
21515   yes,cygwin* | yes,mingw* | yes,pw32*)
21516     library_names_spec='$libname.dll.a'
21517     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21518     postinstall_cmds='base_file=`basename \${file}`~
21519       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21520       dldir=$destdir/`dirname \$dlpath`~
21521       test -d \$dldir || mkdir -p \$dldir~
21522       $install_prog $dir/$dlname \$dldir/$dlname~
21523       chmod a+x \$dldir/$dlname'
21524     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21525       dlpath=$dir/\$dldll~
21526        $rm \$dlpath'
21527     shlibpath_overrides_runpath=yes
21528
21529     case $host_os in
21530     cygwin*)
21531       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21532       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21533       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21534       ;;
21535     mingw*)
21536       # MinGW DLLs use traditional 'lib' prefix
21537       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21538       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21539       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21540         # It is most probably a Windows format PATH printed by
21541         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21542         # path with ; separators, and with drive letters. We can handle the
21543         # drive letters (cygwin fileutils understands them), so leave them,
21544         # especially as we might pass files found there to a mingw objdump,
21545         # which wouldn't understand a cygwinified path. Ahh.
21546         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21547       else
21548         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21549       fi
21550       ;;
21551     pw32*)
21552       # pw32 DLLs use 'pw' prefix rather than 'lib'
21553       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21554       ;;
21555     esac
21556     ;;
21557
21558   *)
21559     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21560     ;;
21561   esac
21562   dynamic_linker='Win32 ld.exe'
21563   # FIXME: first we should search . and the directory the executable is in
21564   shlibpath_var=PATH
21565   ;;
21566
21567 darwin* | rhapsody*)
21568   dynamic_linker="$host_os dyld"
21569   version_type=darwin
21570   need_lib_prefix=no
21571   need_version=no
21572   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21573   soname_spec='${libname}${release}${major}$shared_ext'
21574   shlibpath_overrides_runpath=yes
21575   shlibpath_var=DYLD_LIBRARY_PATH
21576   shrext_cmds='.dylib'
21577   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21578   if test "$GCC" = yes; then
21579     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"`
21580   else
21581     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21582   fi
21583   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21584   ;;
21585
21586 dgux*)
21587   version_type=linux
21588   need_lib_prefix=no
21589   need_version=no
21590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21591   soname_spec='${libname}${release}${shared_ext}$major'
21592   shlibpath_var=LD_LIBRARY_PATH
21593   ;;
21594
21595 freebsd1*)
21596   dynamic_linker=no
21597   ;;
21598
21599 kfreebsd*-gnu)
21600   version_type=linux
21601   need_lib_prefix=no
21602   need_version=no
21603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21604   soname_spec='${libname}${release}${shared_ext}$major'
21605   shlibpath_var=LD_LIBRARY_PATH
21606   shlibpath_overrides_runpath=no
21607   hardcode_into_libs=yes
21608   dynamic_linker='GNU ld.so'
21609   ;;
21610
21611 freebsd* | dragonfly*)
21612   # DragonFly does not have aout.  When/if they implement a new
21613   # versioning mechanism, adjust this.
21614   if test -x /usr/bin/objformat; then
21615     objformat=`/usr/bin/objformat`
21616   else
21617     case $host_os in
21618     freebsd[123]*) objformat=aout ;;
21619     *) objformat=elf ;;
21620     esac
21621   fi
21622   version_type=freebsd-$objformat
21623   case $version_type in
21624     freebsd-elf*)
21625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21626       need_version=no
21627       need_lib_prefix=no
21628       ;;
21629     freebsd-*)
21630       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21631       need_version=yes
21632       ;;
21633   esac
21634   shlibpath_var=LD_LIBRARY_PATH
21635   case $host_os in
21636   freebsd2*)
21637     shlibpath_overrides_runpath=yes
21638     ;;
21639   freebsd3.[01]* | freebsdelf3.[01]*)
21640     shlibpath_overrides_runpath=yes
21641     hardcode_into_libs=yes
21642     ;;
21643   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21644   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21645     shlibpath_overrides_runpath=no
21646     hardcode_into_libs=yes
21647     ;;
21648   freebsd*) # from 4.6 on
21649     shlibpath_overrides_runpath=yes
21650     hardcode_into_libs=yes
21651     ;;
21652   esac
21653   ;;
21654
21655 gnu*)
21656   version_type=linux
21657   need_lib_prefix=no
21658   need_version=no
21659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21660   soname_spec='${libname}${release}${shared_ext}$major'
21661   shlibpath_var=LD_LIBRARY_PATH
21662   hardcode_into_libs=yes
21663   ;;
21664
21665 hpux9* | hpux10* | hpux11*)
21666   # Give a soname corresponding to the major version so that dld.sl refuses to
21667   # link against other versions.
21668   version_type=sunos
21669   need_lib_prefix=no
21670   need_version=no
21671   case $host_cpu in
21672   ia64*)
21673     shrext_cmds='.so'
21674     hardcode_into_libs=yes
21675     dynamic_linker="$host_os dld.so"
21676     shlibpath_var=LD_LIBRARY_PATH
21677     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21679     soname_spec='${libname}${release}${shared_ext}$major'
21680     if test "X$HPUX_IA64_MODE" = X32; then
21681       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21682     else
21683       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21684     fi
21685     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21686     ;;
21687    hppa*64*)
21688      shrext_cmds='.sl'
21689      hardcode_into_libs=yes
21690      dynamic_linker="$host_os dld.sl"
21691      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21692      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21693      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21694      soname_spec='${libname}${release}${shared_ext}$major'
21695      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21696      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21697      ;;
21698    *)
21699     shrext_cmds='.sl'
21700     dynamic_linker="$host_os dld.sl"
21701     shlibpath_var=SHLIB_PATH
21702     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21704     soname_spec='${libname}${release}${shared_ext}$major'
21705     ;;
21706   esac
21707   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21708   postinstall_cmds='chmod 555 $lib'
21709   ;;
21710
21711 interix3*)
21712   version_type=linux
21713   need_lib_prefix=no
21714   need_version=no
21715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21716   soname_spec='${libname}${release}${shared_ext}$major'
21717   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21718   shlibpath_var=LD_LIBRARY_PATH
21719   shlibpath_overrides_runpath=no
21720   hardcode_into_libs=yes
21721   ;;
21722
21723 irix5* | irix6* | nonstopux*)
21724   case $host_os in
21725     nonstopux*) version_type=nonstopux ;;
21726     *)
21727         if test "$lt_cv_prog_gnu_ld" = yes; then
21728                 version_type=linux
21729         else
21730                 version_type=irix
21731         fi ;;
21732   esac
21733   need_lib_prefix=no
21734   need_version=no
21735   soname_spec='${libname}${release}${shared_ext}$major'
21736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21737   case $host_os in
21738   irix5* | nonstopux*)
21739     libsuff= shlibsuff=
21740     ;;
21741   *)
21742     case $LD in # libtool.m4 will add one of these switches to LD
21743     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21744       libsuff= shlibsuff= libmagic=32-bit;;
21745     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21746       libsuff=32 shlibsuff=N32 libmagic=N32;;
21747     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21748       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21749     *) libsuff= shlibsuff= libmagic=never-match;;
21750     esac
21751     ;;
21752   esac
21753   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21754   shlibpath_overrides_runpath=no
21755   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21756   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21757   hardcode_into_libs=yes
21758   ;;
21759
21760 # No shared lib support for Linux oldld, aout, or coff.
21761 linux*oldld* | linux*aout* | linux*coff*)
21762   dynamic_linker=no
21763   ;;
21764
21765 # This must be Linux ELF.
21766 linux*)
21767   version_type=linux
21768   need_lib_prefix=no
21769   need_version=no
21770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771   soname_spec='${libname}${release}${shared_ext}$major'
21772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21773   shlibpath_var=LD_LIBRARY_PATH
21774   shlibpath_overrides_runpath=no
21775   # This implies no fast_install, which is unacceptable.
21776   # Some rework will be needed to allow for fast_install
21777   # before this can be enabled.
21778   hardcode_into_libs=yes
21779
21780   # Append ld.so.conf contents to the search path
21781   if test -f /etc/ld.so.conf; then
21782     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' ' '`
21783     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21784   fi
21785
21786   # We used to test for /lib/ld.so.1 and disable shared libraries on
21787   # powerpc, because MkLinux only supported shared libraries with the
21788   # GNU dynamic linker.  Since this was broken with cross compilers,
21789   # most powerpc-linux boxes support dynamic linking these days and
21790   # people can always --disable-shared, the test was removed, and we
21791   # assume the GNU/Linux dynamic linker is in use.
21792   dynamic_linker='GNU/Linux ld.so'
21793   ;;
21794
21795 knetbsd*-gnu)
21796   version_type=linux
21797   need_lib_prefix=no
21798   need_version=no
21799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21800   soname_spec='${libname}${release}${shared_ext}$major'
21801   shlibpath_var=LD_LIBRARY_PATH
21802   shlibpath_overrides_runpath=no
21803   hardcode_into_libs=yes
21804   dynamic_linker='GNU ld.so'
21805   ;;
21806
21807 netbsd*)
21808   version_type=sunos
21809   need_lib_prefix=no
21810   need_version=no
21811   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21813     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21814     dynamic_linker='NetBSD (a.out) ld.so'
21815   else
21816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21817     soname_spec='${libname}${release}${shared_ext}$major'
21818     dynamic_linker='NetBSD ld.elf_so'
21819   fi
21820   shlibpath_var=LD_LIBRARY_PATH
21821   shlibpath_overrides_runpath=yes
21822   hardcode_into_libs=yes
21823   ;;
21824
21825 newsos6)
21826   version_type=linux
21827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21828   shlibpath_var=LD_LIBRARY_PATH
21829   shlibpath_overrides_runpath=yes
21830   ;;
21831
21832 nto-qnx*)
21833   version_type=linux
21834   need_lib_prefix=no
21835   need_version=no
21836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21837   soname_spec='${libname}${release}${shared_ext}$major'
21838   shlibpath_var=LD_LIBRARY_PATH
21839   shlibpath_overrides_runpath=yes
21840   ;;
21841
21842 openbsd*)
21843   version_type=sunos
21844   sys_lib_dlsearch_path_spec="/usr/lib"
21845   need_lib_prefix=no
21846   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21847   case $host_os in
21848     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21849     *)                         need_version=no  ;;
21850   esac
21851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21853   shlibpath_var=LD_LIBRARY_PATH
21854   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21855     case $host_os in
21856       openbsd2.[89] | openbsd2.[89].*)
21857         shlibpath_overrides_runpath=no
21858         ;;
21859       *)
21860         shlibpath_overrides_runpath=yes
21861         ;;
21862       esac
21863   else
21864     shlibpath_overrides_runpath=yes
21865   fi
21866   ;;
21867
21868 os2*)
21869   libname_spec='$name'
21870   shrext_cmds=".dll"
21871   need_lib_prefix=no
21872   library_names_spec='$libname${shared_ext} $libname.a'
21873   dynamic_linker='OS/2 ld.exe'
21874   shlibpath_var=LIBPATH
21875   ;;
21876
21877 osf3* | osf4* | osf5*)
21878   version_type=osf
21879   need_lib_prefix=no
21880   need_version=no
21881   soname_spec='${libname}${release}${shared_ext}$major'
21882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21883   shlibpath_var=LD_LIBRARY_PATH
21884   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21885   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21886   ;;
21887
21888 solaris*)
21889   version_type=linux
21890   need_lib_prefix=no
21891   need_version=no
21892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21893   soname_spec='${libname}${release}${shared_ext}$major'
21894   shlibpath_var=LD_LIBRARY_PATH
21895   shlibpath_overrides_runpath=yes
21896   hardcode_into_libs=yes
21897   # ldd complains unless libraries are executable
21898   postinstall_cmds='chmod +x $lib'
21899   ;;
21900
21901 sunos4*)
21902   version_type=sunos
21903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21904   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21905   shlibpath_var=LD_LIBRARY_PATH
21906   shlibpath_overrides_runpath=yes
21907   if test "$with_gnu_ld" = yes; then
21908     need_lib_prefix=no
21909   fi
21910   need_version=yes
21911   ;;
21912
21913 sysv4 | sysv4.3*)
21914   version_type=linux
21915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21916   soname_spec='${libname}${release}${shared_ext}$major'
21917   shlibpath_var=LD_LIBRARY_PATH
21918   case $host_vendor in
21919     sni)
21920       shlibpath_overrides_runpath=no
21921       need_lib_prefix=no
21922       export_dynamic_flag_spec='${wl}-Blargedynsym'
21923       runpath_var=LD_RUN_PATH
21924       ;;
21925     siemens)
21926       need_lib_prefix=no
21927       ;;
21928     motorola)
21929       need_lib_prefix=no
21930       need_version=no
21931       shlibpath_overrides_runpath=no
21932       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21933       ;;
21934   esac
21935   ;;
21936
21937 sysv4*MP*)
21938   if test -d /usr/nec ;then
21939     version_type=linux
21940     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21941     soname_spec='$libname${shared_ext}.$major'
21942     shlibpath_var=LD_LIBRARY_PATH
21943   fi
21944   ;;
21945
21946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21947   version_type=freebsd-elf
21948   need_lib_prefix=no
21949   need_version=no
21950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21951   soname_spec='${libname}${release}${shared_ext}$major'
21952   shlibpath_var=LD_LIBRARY_PATH
21953   hardcode_into_libs=yes
21954   if test "$with_gnu_ld" = yes; then
21955     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21956     shlibpath_overrides_runpath=no
21957   else
21958     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21959     shlibpath_overrides_runpath=yes
21960     case $host_os in
21961       sco3.2v5*)
21962         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21963         ;;
21964     esac
21965   fi
21966   sys_lib_dlsearch_path_spec='/usr/lib'
21967   ;;
21968
21969 uts4*)
21970   version_type=linux
21971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21972   soname_spec='${libname}${release}${shared_ext}$major'
21973   shlibpath_var=LD_LIBRARY_PATH
21974   ;;
21975
21976 *)
21977   dynamic_linker=no
21978   ;;
21979 esac
21980 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21981 echo "${ECHO_T}$dynamic_linker" >&6; }
21982 test "$dynamic_linker" = no && can_build_shared=no
21983
21984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21985 if test "$GCC" = yes; then
21986   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21987 fi
21988
21989 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21990 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21991 hardcode_action_F77=
21992 if test -n "$hardcode_libdir_flag_spec_F77" || \
21993    test -n "$runpath_var_F77" || \
21994    test "X$hardcode_automatic_F77" = "Xyes" ; then
21995
21996   # We can hardcode non-existant directories.
21997   if test "$hardcode_direct_F77" != no &&
21998      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21999      # have to relink, otherwise we might link with an installed library
22000      # when we should be linking with a yet-to-be-installed one
22001      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22002      test "$hardcode_minus_L_F77" != no; then
22003     # Linking always hardcodes the temporary library directory.
22004     hardcode_action_F77=relink
22005   else
22006     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22007     hardcode_action_F77=immediate
22008   fi
22009 else
22010   # We cannot hardcode anything, or else we can only hardcode existing
22011   # directories.
22012   hardcode_action_F77=unsupported
22013 fi
22014 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22015 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22016
22017 if test "$hardcode_action_F77" = relink; then
22018   # Fast installation is not supported
22019   enable_fast_install=no
22020 elif test "$shlibpath_overrides_runpath" = yes ||
22021      test "$enable_shared" = no; then
22022   # Fast installation is not necessary
22023   enable_fast_install=needless
22024 fi
22025
22026
22027 # The else clause should only fire when bootstrapping the
22028 # libtool distribution, otherwise you forgot to ship ltmain.sh
22029 # with your package, and you will get complaints that there are
22030 # no rules to generate ltmain.sh.
22031 if test -f "$ltmain"; then
22032   # See if we are running on zsh, and set the options which allow our commands through
22033   # without removal of \ escapes.
22034   if test -n "${ZSH_VERSION+set}" ; then
22035     setopt NO_GLOB_SUBST
22036   fi
22037   # Now quote all the things that may contain metacharacters while being
22038   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22039   # variables and quote the copies for generation of the libtool script.
22040   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22041     SED SHELL STRIP \
22042     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22043     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22044     deplibs_check_method reload_flag reload_cmds need_locks \
22045     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22046     lt_cv_sys_global_symbol_to_c_name_address \
22047     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22048     old_postinstall_cmds old_postuninstall_cmds \
22049     compiler_F77 \
22050     CC_F77 \
22051     LD_F77 \
22052     lt_prog_compiler_wl_F77 \
22053     lt_prog_compiler_pic_F77 \
22054     lt_prog_compiler_static_F77 \
22055     lt_prog_compiler_no_builtin_flag_F77 \
22056     export_dynamic_flag_spec_F77 \
22057     thread_safe_flag_spec_F77 \
22058     whole_archive_flag_spec_F77 \
22059     enable_shared_with_static_runtimes_F77 \
22060     old_archive_cmds_F77 \
22061     old_archive_from_new_cmds_F77 \
22062     predep_objects_F77 \
22063     postdep_objects_F77 \
22064     predeps_F77 \
22065     postdeps_F77 \
22066     compiler_lib_search_path_F77 \
22067     archive_cmds_F77 \
22068     archive_expsym_cmds_F77 \
22069     postinstall_cmds_F77 \
22070     postuninstall_cmds_F77 \
22071     old_archive_from_expsyms_cmds_F77 \
22072     allow_undefined_flag_F77 \
22073     no_undefined_flag_F77 \
22074     export_symbols_cmds_F77 \
22075     hardcode_libdir_flag_spec_F77 \
22076     hardcode_libdir_flag_spec_ld_F77 \
22077     hardcode_libdir_separator_F77 \
22078     hardcode_automatic_F77 \
22079     module_cmds_F77 \
22080     module_expsym_cmds_F77 \
22081     lt_cv_prog_compiler_c_o_F77 \
22082     exclude_expsyms_F77 \
22083     include_expsyms_F77; do
22084
22085     case $var in
22086     old_archive_cmds_F77 | \
22087     old_archive_from_new_cmds_F77 | \
22088     archive_cmds_F77 | \
22089     archive_expsym_cmds_F77 | \
22090     module_cmds_F77 | \
22091     module_expsym_cmds_F77 | \
22092     old_archive_from_expsyms_cmds_F77 | \
22093     export_symbols_cmds_F77 | \
22094     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22095     postinstall_cmds | postuninstall_cmds | \
22096     old_postinstall_cmds | old_postuninstall_cmds | \
22097     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22098       # Double-quote double-evaled strings.
22099       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22100       ;;
22101     *)
22102       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22103       ;;
22104     esac
22105   done
22106
22107   case $lt_echo in
22108   *'\$0 --fallback-echo"')
22109     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22110     ;;
22111   esac
22112
22113 cfgfile="$ofile"
22114
22115   cat <<__EOF__ >> "$cfgfile"
22116 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22117
22118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22119
22120 # Shell to use when invoking shell scripts.
22121 SHELL=$lt_SHELL
22122
22123 # Whether or not to build shared libraries.
22124 build_libtool_libs=$enable_shared
22125
22126 # Whether or not to build static libraries.
22127 build_old_libs=$enable_static
22128
22129 # Whether or not to add -lc for building shared libraries.
22130 build_libtool_need_lc=$archive_cmds_need_lc_F77
22131
22132 # Whether or not to disallow shared libs when runtime libs are static
22133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22134
22135 # Whether or not to optimize for fast installation.
22136 fast_install=$enable_fast_install
22137
22138 # The host system.
22139 host_alias=$host_alias
22140 host=$host
22141 host_os=$host_os
22142
22143 # The build system.
22144 build_alias=$build_alias
22145 build=$build
22146 build_os=$build_os
22147
22148 # An echo program that does not interpret backslashes.
22149 echo=$lt_echo
22150
22151 # The archiver.
22152 AR=$lt_AR
22153 AR_FLAGS=$lt_AR_FLAGS
22154
22155 # A C compiler.
22156 LTCC=$lt_LTCC
22157
22158 # LTCC compiler flags.
22159 LTCFLAGS=$lt_LTCFLAGS
22160
22161 # A language-specific compiler.
22162 CC=$lt_compiler_F77
22163
22164 # Is the compiler the GNU C compiler?
22165 with_gcc=$GCC_F77
22166
22167 # An ERE matcher.
22168 EGREP=$lt_EGREP
22169
22170 # The linker used to build libraries.
22171 LD=$lt_LD_F77
22172
22173 # Whether we need hard or soft links.
22174 LN_S=$lt_LN_S
22175
22176 # A BSD-compatible nm program.
22177 NM=$lt_NM
22178
22179 # A symbol stripping program
22180 STRIP=$lt_STRIP
22181
22182 # Used to examine libraries when file_magic_cmd begins "file"
22183 MAGIC_CMD=$MAGIC_CMD
22184
22185 # Used on cygwin: DLL creation program.
22186 DLLTOOL="$DLLTOOL"
22187
22188 # Used on cygwin: object dumper.
22189 OBJDUMP="$OBJDUMP"
22190
22191 # Used on cygwin: assembler.
22192 AS="$AS"
22193
22194 # The name of the directory that contains temporary libtool files.
22195 objdir=$objdir
22196
22197 # How to create reloadable object files.
22198 reload_flag=$lt_reload_flag
22199 reload_cmds=$lt_reload_cmds
22200
22201 # How to pass a linker flag through the compiler.
22202 wl=$lt_lt_prog_compiler_wl_F77
22203
22204 # Object file suffix (normally "o").
22205 objext="$ac_objext"
22206
22207 # Old archive suffix (normally "a").
22208 libext="$libext"
22209
22210 # Shared library suffix (normally ".so").
22211 shrext_cmds='$shrext_cmds'
22212
22213 # Executable file suffix (normally "").
22214 exeext="$exeext"
22215
22216 # Additional compiler flags for building library objects.
22217 pic_flag=$lt_lt_prog_compiler_pic_F77
22218 pic_mode=$pic_mode
22219
22220 # What is the maximum length of a command?
22221 max_cmd_len=$lt_cv_sys_max_cmd_len
22222
22223 # Does compiler simultaneously support -c and -o options?
22224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22225
22226 # Must we lock files when doing compilation?
22227 need_locks=$lt_need_locks
22228
22229 # Do we need the lib prefix for modules?
22230 need_lib_prefix=$need_lib_prefix
22231
22232 # Do we need a version for libraries?
22233 need_version=$need_version
22234
22235 # Whether dlopen is supported.
22236 dlopen_support=$enable_dlopen
22237
22238 # Whether dlopen of programs is supported.
22239 dlopen_self=$enable_dlopen_self
22240
22241 # Whether dlopen of statically linked programs is supported.
22242 dlopen_self_static=$enable_dlopen_self_static
22243
22244 # Compiler flag to prevent dynamic linking.
22245 link_static_flag=$lt_lt_prog_compiler_static_F77
22246
22247 # Compiler flag to turn off builtin functions.
22248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22249
22250 # Compiler flag to allow reflexive dlopens.
22251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22252
22253 # Compiler flag to generate shared objects directly from archives.
22254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22255
22256 # Compiler flag to generate thread-safe objects.
22257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22258
22259 # Library versioning type.
22260 version_type=$version_type
22261
22262 # Format of library name prefix.
22263 libname_spec=$lt_libname_spec
22264
22265 # List of archive names.  First name is the real one, the rest are links.
22266 # The last name is the one that the linker finds with -lNAME.
22267 library_names_spec=$lt_library_names_spec
22268
22269 # The coded name of the library, if different from the real name.
22270 soname_spec=$lt_soname_spec
22271
22272 # Commands used to build and install an old-style archive.
22273 RANLIB=$lt_RANLIB
22274 old_archive_cmds=$lt_old_archive_cmds_F77
22275 old_postinstall_cmds=$lt_old_postinstall_cmds
22276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22277
22278 # Create an old-style archive from a shared archive.
22279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22280
22281 # Create a temporary old-style archive to link instead of a shared archive.
22282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22283
22284 # Commands used to build and install a shared archive.
22285 archive_cmds=$lt_archive_cmds_F77
22286 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22287 postinstall_cmds=$lt_postinstall_cmds
22288 postuninstall_cmds=$lt_postuninstall_cmds
22289
22290 # Commands used to build a loadable module (assumed same as above if empty)
22291 module_cmds=$lt_module_cmds_F77
22292 module_expsym_cmds=$lt_module_expsym_cmds_F77
22293
22294 # Commands to strip libraries.
22295 old_striplib=$lt_old_striplib
22296 striplib=$lt_striplib
22297
22298 # Dependencies to place before the objects being linked to create a
22299 # shared library.
22300 predep_objects=$lt_predep_objects_F77
22301
22302 # Dependencies to place after the objects being linked to create a
22303 # shared library.
22304 postdep_objects=$lt_postdep_objects_F77
22305
22306 # Dependencies to place before the objects being linked to create a
22307 # shared library.
22308 predeps=$lt_predeps_F77
22309
22310 # Dependencies to place after the objects being linked to create a
22311 # shared library.
22312 postdeps=$lt_postdeps_F77
22313
22314 # The library search path used internally by the compiler when linking
22315 # a shared library.
22316 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22317
22318 # Method to check whether dependent libraries are shared objects.
22319 deplibs_check_method=$lt_deplibs_check_method
22320
22321 # Command to use when deplibs_check_method == file_magic.
22322 file_magic_cmd=$lt_file_magic_cmd
22323
22324 # Flag that allows shared libraries with undefined symbols to be built.
22325 allow_undefined_flag=$lt_allow_undefined_flag_F77
22326
22327 # Flag that forces no undefined symbols.
22328 no_undefined_flag=$lt_no_undefined_flag_F77
22329
22330 # Commands used to finish a libtool library installation in a directory.
22331 finish_cmds=$lt_finish_cmds
22332
22333 # Same as above, but a single script fragment to be evaled but not shown.
22334 finish_eval=$lt_finish_eval
22335
22336 # Take the output of nm and produce a listing of raw symbols and C names.
22337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22338
22339 # Transform the output of nm in a proper C declaration
22340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22341
22342 # Transform the output of nm in a C name address pair
22343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22344
22345 # This is the shared library runtime path variable.
22346 runpath_var=$runpath_var
22347
22348 # This is the shared library path variable.
22349 shlibpath_var=$shlibpath_var
22350
22351 # Is shlibpath searched before the hard-coded library search path?
22352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22353
22354 # How to hardcode a shared library path into an executable.
22355 hardcode_action=$hardcode_action_F77
22356
22357 # Whether we should hardcode library paths into libraries.
22358 hardcode_into_libs=$hardcode_into_libs
22359
22360 # Flag to hardcode \$libdir into a binary during linking.
22361 # This must work even if \$libdir does not exist.
22362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22363
22364 # If ld is used when linking, flag to hardcode \$libdir into
22365 # a binary during linking. This must work even if \$libdir does
22366 # not exist.
22367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22368
22369 # Whether we need a single -rpath flag with a separated argument.
22370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22371
22372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22373 # resulting binary.
22374 hardcode_direct=$hardcode_direct_F77
22375
22376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22377 # resulting binary.
22378 hardcode_minus_L=$hardcode_minus_L_F77
22379
22380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22381 # the resulting binary.
22382 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22383
22384 # Set to yes if building a shared library automatically hardcodes DIR into the library
22385 # and all subsequent libraries and executables linked against it.
22386 hardcode_automatic=$hardcode_automatic_F77
22387
22388 # Variables whose values should be saved in libtool wrapper scripts and
22389 # restored at relink time.
22390 variables_saved_for_relink="$variables_saved_for_relink"
22391
22392 # Whether libtool must link a program against all its dependency libraries.
22393 link_all_deplibs=$link_all_deplibs_F77
22394
22395 # Compile-time system search path for libraries
22396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22397
22398 # Run-time system search path for libraries
22399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22400
22401 # Fix the shell variable \$srcfile for the compiler.
22402 fix_srcfile_path="$fix_srcfile_path_F77"
22403
22404 # Set to yes if exported symbols are required.
22405 always_export_symbols=$always_export_symbols_F77
22406
22407 # The commands to list exported symbols.
22408 export_symbols_cmds=$lt_export_symbols_cmds_F77
22409
22410 # The commands to extract the exported symbol list from a shared archive.
22411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22412
22413 # Symbols that should not be listed in the preloaded symbols.
22414 exclude_expsyms=$lt_exclude_expsyms_F77
22415
22416 # Symbols that must always be exported.
22417 include_expsyms=$lt_include_expsyms_F77
22418
22419 # ### END LIBTOOL TAG CONFIG: $tagname
22420
22421 __EOF__
22422
22423
22424 else
22425   # If there is no Makefile yet, we rely on a make rule to execute
22426   # `config.status --recheck' to rerun these tests and create the
22427   # libtool script then.
22428   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22429   if test -f "$ltmain_in"; then
22430     test -f Makefile && make "$ltmain"
22431   fi
22432 fi
22433
22434
22435 ac_ext=c
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22440
22441 CC="$lt_save_CC"
22442
22443         else
22444           tagname=""
22445         fi
22446         ;;
22447
22448       GCJ)
22449         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22450           ac_ext=c
22451 ac_cpp='$CPP $CPPFLAGS'
22452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22455
22456
22457 # Source file extension for Java test sources.
22458 ac_ext=java
22459
22460 # Object file extension for compiled Java test sources.
22461 objext=o
22462 objext_GCJ=$objext
22463
22464 # Code to be used in simple compile tests
22465 lt_simple_compile_test_code="class foo {}\n"
22466
22467 # Code to be used in simple link tests
22468 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22469
22470 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22471
22472 # If no C compiler was specified, use CC.
22473 LTCC=${LTCC-"$CC"}
22474
22475 # If no C compiler flags were specified, use CFLAGS.
22476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22477
22478 # Allow CC to be a program name with arguments.
22479 compiler=$CC
22480
22481
22482 # save warnings/boilerplate of simple test code
22483 ac_outfile=conftest.$ac_objext
22484 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22486 _lt_compiler_boilerplate=`cat conftest.err`
22487 $rm conftest*
22488
22489 ac_outfile=conftest.$ac_objext
22490 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22492 _lt_linker_boilerplate=`cat conftest.err`
22493 $rm conftest*
22494
22495
22496 # Allow CC to be a program name with arguments.
22497 lt_save_CC="$CC"
22498 CC=${GCJ-"gcj"}
22499 compiler=$CC
22500 compiler_GCJ=$CC
22501 for cc_temp in $compiler""; do
22502   case $cc_temp in
22503     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22504     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22505     \-*) ;;
22506     *) break;;
22507   esac
22508 done
22509 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22510
22511
22512 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22513 archive_cmds_need_lc_GCJ=no
22514
22515 old_archive_cmds_GCJ=$old_archive_cmds
22516
22517
22518 lt_prog_compiler_no_builtin_flag_GCJ=
22519
22520 if test "$GCC" = yes; then
22521   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22522
22523
22524 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22525 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   lt_cv_prog_compiler_rtti_exceptions=no
22530   ac_outfile=conftest.$ac_objext
22531    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22532    lt_compiler_flag="-fno-rtti -fno-exceptions"
22533    # Insert the option either (1) after the last *FLAGS variable, or
22534    # (2) before a word containing "conftest.", or (3) at the end.
22535    # Note that $ac_compile itself does not contain backslashes and begins
22536    # with a dollar sign (not a hyphen), so the echo should work correctly.
22537    # The option is referenced via a variable to avoid confusing sed.
22538    lt_compile=`echo "$ac_compile" | $SED \
22539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22541    -e 's:$: $lt_compiler_flag:'`
22542    (eval echo "\"\$as_me:22542: $lt_compile\"" >&5)
22543    (eval "$lt_compile" 2>conftest.err)
22544    ac_status=$?
22545    cat conftest.err >&5
22546    echo "$as_me:22546: \$? = $ac_status" >&5
22547    if (exit $ac_status) && test -s "$ac_outfile"; then
22548      # The compiler can only warn and ignore the option if not recognized
22549      # So say no if there are warnings other than the usual output.
22550      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22551      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22552      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22553        lt_cv_prog_compiler_rtti_exceptions=yes
22554      fi
22555    fi
22556    $rm conftest*
22557
22558 fi
22559 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22561
22562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22563     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22564 else
22565     :
22566 fi
22567
22568 fi
22569
22570 lt_prog_compiler_wl_GCJ=
22571 lt_prog_compiler_pic_GCJ=
22572 lt_prog_compiler_static_GCJ=
22573
22574 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22576
22577   if test "$GCC" = yes; then
22578     lt_prog_compiler_wl_GCJ='-Wl,'
22579     lt_prog_compiler_static_GCJ='-static'
22580
22581     case $host_os in
22582       aix*)
22583       # All AIX code is PIC.
22584       if test "$host_cpu" = ia64; then
22585         # AIX 5 now supports IA64 processor
22586         lt_prog_compiler_static_GCJ='-Bstatic'
22587       fi
22588       ;;
22589
22590     amigaos*)
22591       # FIXME: we need at least 68020 code to build shared libraries, but
22592       # adding the `-m68020' flag to GCC prevents building anything better,
22593       # like `-m68040'.
22594       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22595       ;;
22596
22597     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22598       # PIC is the default for these OSes.
22599       ;;
22600
22601     mingw* | pw32* | os2*)
22602       # This hack is so that the source file can tell whether it is being
22603       # built for inclusion in a dll (and should export symbols for example).
22604       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22605       ;;
22606
22607     darwin* | rhapsody*)
22608       # PIC is the default on this platform
22609       # Common symbols not allowed in MH_DYLIB files
22610       lt_prog_compiler_pic_GCJ='-fno-common'
22611       ;;
22612
22613     interix3*)
22614       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22615       # Instead, we relocate shared libraries at runtime.
22616       ;;
22617
22618     msdosdjgpp*)
22619       # Just because we use GCC doesn't mean we suddenly get shared libraries
22620       # on systems that don't support them.
22621       lt_prog_compiler_can_build_shared_GCJ=no
22622       enable_shared=no
22623       ;;
22624
22625     sysv4*MP*)
22626       if test -d /usr/nec; then
22627         lt_prog_compiler_pic_GCJ=-Kconform_pic
22628       fi
22629       ;;
22630
22631     hpux*)
22632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22633       # not for PA HP-UX.
22634       case $host_cpu in
22635       hppa*64*|ia64*)
22636         # +Z the default
22637         ;;
22638       *)
22639         lt_prog_compiler_pic_GCJ='-fPIC'
22640         ;;
22641       esac
22642       ;;
22643
22644     *)
22645       lt_prog_compiler_pic_GCJ='-fPIC'
22646       ;;
22647     esac
22648   else
22649     # PORTME Check for flag to pass linker flags through the system compiler.
22650     case $host_os in
22651     aix*)
22652       lt_prog_compiler_wl_GCJ='-Wl,'
22653       if test "$host_cpu" = ia64; then
22654         # AIX 5 now supports IA64 processor
22655         lt_prog_compiler_static_GCJ='-Bstatic'
22656       else
22657         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22658       fi
22659       ;;
22660       darwin*)
22661         # PIC is the default on this platform
22662         # Common symbols not allowed in MH_DYLIB files
22663        case $cc_basename in
22664          xlc*)
22665          lt_prog_compiler_pic_GCJ='-qnocommon'
22666          lt_prog_compiler_wl_GCJ='-Wl,'
22667          ;;
22668        esac
22669        ;;
22670
22671     mingw* | pw32* | os2*)
22672       # This hack is so that the source file can tell whether it is being
22673       # built for inclusion in a dll (and should export symbols for example).
22674       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22675       ;;
22676
22677     hpux9* | hpux10* | hpux11*)
22678       lt_prog_compiler_wl_GCJ='-Wl,'
22679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22680       # not for PA HP-UX.
22681       case $host_cpu in
22682       hppa*64*|ia64*)
22683         # +Z the default
22684         ;;
22685       *)
22686         lt_prog_compiler_pic_GCJ='+Z'
22687         ;;
22688       esac
22689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22690       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22691       ;;
22692
22693     irix5* | irix6* | nonstopux*)
22694       lt_prog_compiler_wl_GCJ='-Wl,'
22695       # PIC (with -KPIC) is the default.
22696       lt_prog_compiler_static_GCJ='-non_shared'
22697       ;;
22698
22699     newsos6)
22700       lt_prog_compiler_pic_GCJ='-KPIC'
22701       lt_prog_compiler_static_GCJ='-Bstatic'
22702       ;;
22703
22704     linux*)
22705       case $cc_basename in
22706       icc* | ecc*)
22707         lt_prog_compiler_wl_GCJ='-Wl,'
22708         lt_prog_compiler_pic_GCJ='-KPIC'
22709         lt_prog_compiler_static_GCJ='-static'
22710         ;;
22711       pgcc* | pgf77* | pgf90* | pgf95*)
22712         # Portland Group compilers (*not* the Pentium gcc compiler,
22713         # which looks to be a dead project)
22714         lt_prog_compiler_wl_GCJ='-Wl,'
22715         lt_prog_compiler_pic_GCJ='-fpic'
22716         lt_prog_compiler_static_GCJ='-Bstatic'
22717         ;;
22718       ccc*)
22719         lt_prog_compiler_wl_GCJ='-Wl,'
22720         # All Alpha code is PIC.
22721         lt_prog_compiler_static_GCJ='-non_shared'
22722         ;;
22723       esac
22724       ;;
22725
22726     osf3* | osf4* | osf5*)
22727       lt_prog_compiler_wl_GCJ='-Wl,'
22728       # All OSF/1 code is PIC.
22729       lt_prog_compiler_static_GCJ='-non_shared'
22730       ;;
22731
22732     solaris*)
22733       lt_prog_compiler_pic_GCJ='-KPIC'
22734       lt_prog_compiler_static_GCJ='-Bstatic'
22735       case $cc_basename in
22736       f77* | f90* | f95*)
22737         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22738       *)
22739         lt_prog_compiler_wl_GCJ='-Wl,';;
22740       esac
22741       ;;
22742
22743     sunos4*)
22744       lt_prog_compiler_wl_GCJ='-Qoption ld '
22745       lt_prog_compiler_pic_GCJ='-PIC'
22746       lt_prog_compiler_static_GCJ='-Bstatic'
22747       ;;
22748
22749     sysv4 | sysv4.2uw2* | sysv4.3*)
22750       lt_prog_compiler_wl_GCJ='-Wl,'
22751       lt_prog_compiler_pic_GCJ='-KPIC'
22752       lt_prog_compiler_static_GCJ='-Bstatic'
22753       ;;
22754
22755     sysv4*MP*)
22756       if test -d /usr/nec ;then
22757         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22758         lt_prog_compiler_static_GCJ='-Bstatic'
22759       fi
22760       ;;
22761
22762     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22763       lt_prog_compiler_wl_GCJ='-Wl,'
22764       lt_prog_compiler_pic_GCJ='-KPIC'
22765       lt_prog_compiler_static_GCJ='-Bstatic'
22766       ;;
22767
22768     unicos*)
22769       lt_prog_compiler_wl_GCJ='-Wl,'
22770       lt_prog_compiler_can_build_shared_GCJ=no
22771       ;;
22772
22773     uts4*)
22774       lt_prog_compiler_pic_GCJ='-pic'
22775       lt_prog_compiler_static_GCJ='-Bstatic'
22776       ;;
22777
22778     *)
22779       lt_prog_compiler_can_build_shared_GCJ=no
22780       ;;
22781     esac
22782   fi
22783
22784 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22785 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22786
22787 #
22788 # Check to make sure the PIC flag actually works.
22789 #
22790 if test -n "$lt_prog_compiler_pic_GCJ"; then
22791
22792 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22793 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22794 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22795   echo $ECHO_N "(cached) $ECHO_C" >&6
22796 else
22797   lt_prog_compiler_pic_works_GCJ=no
22798   ac_outfile=conftest.$ac_objext
22799    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22800    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22801    # Insert the option either (1) after the last *FLAGS variable, or
22802    # (2) before a word containing "conftest.", or (3) at the end.
22803    # Note that $ac_compile itself does not contain backslashes and begins
22804    # with a dollar sign (not a hyphen), so the echo should work correctly.
22805    # The option is referenced via a variable to avoid confusing sed.
22806    lt_compile=`echo "$ac_compile" | $SED \
22807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22809    -e 's:$: $lt_compiler_flag:'`
22810    (eval echo "\"\$as_me:22810: $lt_compile\"" >&5)
22811    (eval "$lt_compile" 2>conftest.err)
22812    ac_status=$?
22813    cat conftest.err >&5
22814    echo "$as_me:22814: \$? = $ac_status" >&5
22815    if (exit $ac_status) && test -s "$ac_outfile"; then
22816      # The compiler can only warn and ignore the option if not recognized
22817      # So say no if there are warnings other than the usual output.
22818      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22819      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22820      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22821        lt_prog_compiler_pic_works_GCJ=yes
22822      fi
22823    fi
22824    $rm conftest*
22825
22826 fi
22827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22828 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22829
22830 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22831     case $lt_prog_compiler_pic_GCJ in
22832      "" | " "*) ;;
22833      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22834      esac
22835 else
22836     lt_prog_compiler_pic_GCJ=
22837      lt_prog_compiler_can_build_shared_GCJ=no
22838 fi
22839
22840 fi
22841 case $host_os in
22842   # For platforms which do not support PIC, -DPIC is meaningless:
22843   *djgpp*)
22844     lt_prog_compiler_pic_GCJ=
22845     ;;
22846   *)
22847     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22848     ;;
22849 esac
22850
22851 #
22852 # Check to make sure the static flag actually works.
22853 #
22854 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22855 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22856 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22857 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22858   echo $ECHO_N "(cached) $ECHO_C" >&6
22859 else
22860   lt_prog_compiler_static_works_GCJ=no
22861    save_LDFLAGS="$LDFLAGS"
22862    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22863    printf "$lt_simple_link_test_code" > conftest.$ac_ext
22864    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22865      # The linker can only warn and ignore the option if not recognized
22866      # So say no if there are warnings
22867      if test -s conftest.err; then
22868        # Append any errors to the config.log.
22869        cat conftest.err 1>&5
22870        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22871        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22872        if diff conftest.exp conftest.er2 >/dev/null; then
22873          lt_prog_compiler_static_works_GCJ=yes
22874        fi
22875      else
22876        lt_prog_compiler_static_works_GCJ=yes
22877      fi
22878    fi
22879    $rm conftest*
22880    LDFLAGS="$save_LDFLAGS"
22881
22882 fi
22883 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22884 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22885
22886 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22887     :
22888 else
22889     lt_prog_compiler_static_GCJ=
22890 fi
22891
22892
22893 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22894 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22895 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   lt_cv_prog_compiler_c_o_GCJ=no
22899    $rm -r conftest 2>/dev/null
22900    mkdir conftest
22901    cd conftest
22902    mkdir out
22903    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22904
22905    lt_compiler_flag="-o out/conftest2.$ac_objext"
22906    # Insert the option either (1) after the last *FLAGS variable, or
22907    # (2) before a word containing "conftest.", or (3) at the end.
22908    # Note that $ac_compile itself does not contain backslashes and begins
22909    # with a dollar sign (not a hyphen), so the echo should work correctly.
22910    lt_compile=`echo "$ac_compile" | $SED \
22911    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22912    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22913    -e 's:$: $lt_compiler_flag:'`
22914    (eval echo "\"\$as_me:22914: $lt_compile\"" >&5)
22915    (eval "$lt_compile" 2>out/conftest.err)
22916    ac_status=$?
22917    cat out/conftest.err >&5
22918    echo "$as_me:22918: \$? = $ac_status" >&5
22919    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22920    then
22921      # The compiler can only warn and ignore the option if not recognized
22922      # So say no if there are warnings
22923      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22924      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22925      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22926        lt_cv_prog_compiler_c_o_GCJ=yes
22927      fi
22928    fi
22929    chmod u+w . 2>&5
22930    $rm conftest*
22931    # SGI C++ compiler will create directory out/ii_files/ for
22932    # template instantiation
22933    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22934    $rm out/* && rmdir out
22935    cd ..
22936    rmdir conftest
22937    $rm conftest*
22938
22939 fi
22940 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22941 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22942
22943
22944 hard_links="nottested"
22945 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22946   # do not overwrite the value of need_locks provided by the user
22947   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22948 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22949   hard_links=yes
22950   $rm conftest*
22951   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22952   touch conftest.a
22953   ln conftest.a conftest.b 2>&5 || hard_links=no
22954   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22955   { echo "$as_me:$LINENO: result: $hard_links" >&5
22956 echo "${ECHO_T}$hard_links" >&6; }
22957   if test "$hard_links" = no; then
22958     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22959 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22960     need_locks=warn
22961   fi
22962 else
22963   need_locks=no
22964 fi
22965
22966 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22967 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22968
22969   runpath_var=
22970   allow_undefined_flag_GCJ=
22971   enable_shared_with_static_runtimes_GCJ=no
22972   archive_cmds_GCJ=
22973   archive_expsym_cmds_GCJ=
22974   old_archive_From_new_cmds_GCJ=
22975   old_archive_from_expsyms_cmds_GCJ=
22976   export_dynamic_flag_spec_GCJ=
22977   whole_archive_flag_spec_GCJ=
22978   thread_safe_flag_spec_GCJ=
22979   hardcode_libdir_flag_spec_GCJ=
22980   hardcode_libdir_flag_spec_ld_GCJ=
22981   hardcode_libdir_separator_GCJ=
22982   hardcode_direct_GCJ=no
22983   hardcode_minus_L_GCJ=no
22984   hardcode_shlibpath_var_GCJ=unsupported
22985   link_all_deplibs_GCJ=unknown
22986   hardcode_automatic_GCJ=no
22987   module_cmds_GCJ=
22988   module_expsym_cmds_GCJ=
22989   always_export_symbols_GCJ=no
22990   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22991   # include_expsyms should be a list of space-separated symbols to be *always*
22992   # included in the symbol list
22993   include_expsyms_GCJ=
22994   # exclude_expsyms can be an extended regexp of symbols to exclude
22995   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22996   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22997   # as well as any symbol that contains `d'.
22998   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22999   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23000   # platforms (ab)use it in PIC code, but their linkers get confused if
23001   # the symbol is explicitly referenced.  Since portable code cannot
23002   # rely on this symbol name, it's probably fine to never include it in
23003   # preloaded symbol tables.
23004   extract_expsyms_cmds=
23005   # Just being paranoid about ensuring that cc_basename is set.
23006   for cc_temp in $compiler""; do
23007   case $cc_temp in
23008     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23009     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23010     \-*) ;;
23011     *) break;;
23012   esac
23013 done
23014 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23015
23016   case $host_os in
23017   cygwin* | mingw* | pw32*)
23018     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23019     # When not using gcc, we currently assume that we are using
23020     # Microsoft Visual C++.
23021     if test "$GCC" != yes; then
23022       with_gnu_ld=no
23023     fi
23024     ;;
23025   interix*)
23026     # we just hope/assume this is gcc and not c89 (= MSVC++)
23027     with_gnu_ld=yes
23028     ;;
23029   openbsd*)
23030     with_gnu_ld=no
23031     ;;
23032   esac
23033
23034   ld_shlibs_GCJ=yes
23035   if test "$with_gnu_ld" = yes; then
23036     # If archive_cmds runs LD, not CC, wlarc should be empty
23037     wlarc='${wl}'
23038
23039     # Set some defaults for GNU ld with shared library support. These
23040     # are reset later if shared libraries are not supported. Putting them
23041     # here allows them to be overridden if necessary.
23042     runpath_var=LD_RUN_PATH
23043     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23044     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23045     # ancient GNU ld didn't support --whole-archive et. al.
23046     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23047         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23048       else
23049         whole_archive_flag_spec_GCJ=
23050     fi
23051     supports_anon_versioning=no
23052     case `$LD -v 2>/dev/null` in
23053       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23054       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23055       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23056       *\ 2.11.*) ;; # other 2.11 versions
23057       *) supports_anon_versioning=yes ;;
23058     esac
23059
23060     # See if GNU ld supports shared libraries.
23061     case $host_os in
23062     aix3* | aix4* | aix5*)
23063       # On AIX/PPC, the GNU linker is very broken
23064       if test "$host_cpu" != ia64; then
23065         ld_shlibs_GCJ=no
23066         cat <<EOF 1>&2
23067
23068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23069 *** to be unable to reliably create shared libraries on AIX.
23070 *** Therefore, libtool is disabling shared libraries support.  If you
23071 *** really care for shared libraries, you may want to modify your PATH
23072 *** so that a non-GNU linker is found, and then restart.
23073
23074 EOF
23075       fi
23076       ;;
23077
23078     amigaos*)
23079       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)'
23080       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23081       hardcode_minus_L_GCJ=yes
23082
23083       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23084       # that the semantics of dynamic libraries on AmigaOS, at least up
23085       # to version 4, is to share data among multiple programs linked
23086       # with the same dynamic library.  Since this doesn't match the
23087       # behavior of shared libraries on other platforms, we can't use
23088       # them.
23089       ld_shlibs_GCJ=no
23090       ;;
23091
23092     beos*)
23093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23094         allow_undefined_flag_GCJ=unsupported
23095         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23096         # support --undefined.  This deserves some investigation.  FIXME
23097         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23098       else
23099         ld_shlibs_GCJ=no
23100       fi
23101       ;;
23102
23103     cygwin* | mingw* | pw32*)
23104       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23105       # as there is no search path for DLLs.
23106       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23107       allow_undefined_flag_GCJ=unsupported
23108       always_export_symbols_GCJ=no
23109       enable_shared_with_static_runtimes_GCJ=yes
23110       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23111
23112       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23113         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23114         # If the export-symbols file already is a .def file (1st line
23115         # is EXPORTS), use it as is; otherwise, prepend...
23116         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23117           cp $export_symbols $output_objdir/$soname.def;
23118         else
23119           echo EXPORTS > $output_objdir/$soname.def;
23120           cat $export_symbols >> $output_objdir/$soname.def;
23121         fi~
23122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23123       else
23124         ld_shlibs_GCJ=no
23125       fi
23126       ;;
23127
23128     interix3*)
23129       hardcode_direct_GCJ=no
23130       hardcode_shlibpath_var_GCJ=no
23131       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23132       export_dynamic_flag_spec_GCJ='${wl}-E'
23133       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23134       # Instead, shared libraries are loaded at an image base (0x10000000 by
23135       # default) and relocated if they conflict, which is a slow very memory
23136       # consuming and fragmenting process.  To avoid this, we pick a random,
23137       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23138       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23139       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'
23140       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'
23141       ;;
23142
23143     linux*)
23144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23145         tmp_addflag=
23146         case $cc_basename,$host_cpu in
23147         pgcc*)                          # Portland Group C compiler
23148           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'
23149           tmp_addflag=' $pic_flag'
23150           ;;
23151         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23152           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'
23153           tmp_addflag=' $pic_flag -Mnomain' ;;
23154         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23155           tmp_addflag=' -i_dynamic' ;;
23156         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23157           tmp_addflag=' -i_dynamic -nofor_main' ;;
23158         ifc* | ifort*)                  # Intel Fortran compiler
23159           tmp_addflag=' -nofor_main' ;;
23160         esac
23161         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23162
23163         if test $supports_anon_versioning = yes; then
23164           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23165   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23166   $echo "local: *; };" >> $output_objdir/$libname.ver~
23167           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23168         fi
23169       else
23170         ld_shlibs_GCJ=no
23171       fi
23172       ;;
23173
23174     netbsd*)
23175       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23176         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23177         wlarc=
23178       else
23179         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23180         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23181       fi
23182       ;;
23183
23184     solaris*)
23185       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23186         ld_shlibs_GCJ=no
23187         cat <<EOF 1>&2
23188
23189 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23190 *** create shared libraries on Solaris systems.  Therefore, libtool
23191 *** is disabling shared libraries support.  We urge you to upgrade GNU
23192 *** binutils to release 2.9.1 or newer.  Another option is to modify
23193 *** your PATH or compiler configuration so that the native linker is
23194 *** used, and then restart.
23195
23196 EOF
23197       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23198         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23199         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23200       else
23201         ld_shlibs_GCJ=no
23202       fi
23203       ;;
23204
23205     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23206       case `$LD -v 2>&1` in
23207         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23208         ld_shlibs_GCJ=no
23209         cat <<_LT_EOF 1>&2
23210
23211 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23212 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23213 *** is disabling shared libraries support.  We urge you to upgrade GNU
23214 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23215 *** your PATH or compiler configuration so that the native linker is
23216 *** used, and then restart.
23217
23218 _LT_EOF
23219         ;;
23220         *)
23221           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23222             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23223             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23224             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23225           else
23226             ld_shlibs_GCJ=no
23227           fi
23228         ;;
23229       esac
23230       ;;
23231
23232     sunos4*)
23233       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23234       wlarc=
23235       hardcode_direct_GCJ=yes
23236       hardcode_shlibpath_var_GCJ=no
23237       ;;
23238
23239     *)
23240       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23241         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23242         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23243       else
23244         ld_shlibs_GCJ=no
23245       fi
23246       ;;
23247     esac
23248
23249     if test "$ld_shlibs_GCJ" = no; then
23250       runpath_var=
23251       hardcode_libdir_flag_spec_GCJ=
23252       export_dynamic_flag_spec_GCJ=
23253       whole_archive_flag_spec_GCJ=
23254     fi
23255   else
23256     # PORTME fill in a description of your system's linker (not GNU ld)
23257     case $host_os in
23258     aix3*)
23259       allow_undefined_flag_GCJ=unsupported
23260       always_export_symbols_GCJ=yes
23261       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'
23262       # Note: this linker hardcodes the directories in LIBPATH if there
23263       # are no directories specified by -L.
23264       hardcode_minus_L_GCJ=yes
23265       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23266         # Neither direct hardcoding nor static linking is supported with a
23267         # broken collect2.
23268         hardcode_direct_GCJ=unsupported
23269       fi
23270       ;;
23271
23272     aix4* | aix5*)
23273       if test "$host_cpu" = ia64; then
23274         # On IA64, the linker does run time linking by default, so we don't
23275         # have to do anything special.
23276         aix_use_runtimelinking=no
23277         exp_sym_flag='-Bexport'
23278         no_entry_flag=""
23279       else
23280         # If we're using GNU nm, then we don't want the "-C" option.
23281         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23282         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23283           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'
23284         else
23285           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'
23286         fi
23287         aix_use_runtimelinking=no
23288
23289         # Test if we are trying to use run time linking or normal
23290         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23291         # need to do runtime linking.
23292         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23293           for ld_flag in $LDFLAGS; do
23294           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23295             aix_use_runtimelinking=yes
23296             break
23297           fi
23298           done
23299           ;;
23300         esac
23301
23302         exp_sym_flag='-bexport'
23303         no_entry_flag='-bnoentry'
23304       fi
23305
23306       # When large executables or shared objects are built, AIX ld can
23307       # have problems creating the table of contents.  If linking a library
23308       # or program results in "error TOC overflow" add -mminimal-toc to
23309       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23310       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23311
23312       archive_cmds_GCJ=''
23313       hardcode_direct_GCJ=yes
23314       hardcode_libdir_separator_GCJ=':'
23315       link_all_deplibs_GCJ=yes
23316
23317       if test "$GCC" = yes; then
23318         case $host_os in aix4.[012]|aix4.[012].*)
23319         # We only want to do this on AIX 4.2 and lower, the check
23320         # below for broken collect2 doesn't work under 4.3+
23321           collect2name=`${CC} -print-prog-name=collect2`
23322           if test -f "$collect2name" && \
23323            strings "$collect2name" | grep resolve_lib_name >/dev/null
23324           then
23325           # We have reworked collect2
23326           hardcode_direct_GCJ=yes
23327           else
23328           # We have old collect2
23329           hardcode_direct_GCJ=unsupported
23330           # It fails to find uninstalled libraries when the uninstalled
23331           # path is not listed in the libpath.  Setting hardcode_minus_L
23332           # to unsupported forces relinking
23333           hardcode_minus_L_GCJ=yes
23334           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23335           hardcode_libdir_separator_GCJ=
23336           fi
23337           ;;
23338         esac
23339         shared_flag='-shared'
23340         if test "$aix_use_runtimelinking" = yes; then
23341           shared_flag="$shared_flag "'${wl}-G'
23342         fi
23343       else
23344         # not using gcc
23345         if test "$host_cpu" = ia64; then
23346         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23347         # chokes on -Wl,-G. The following line is correct:
23348           shared_flag='-G'
23349         else
23350           if test "$aix_use_runtimelinking" = yes; then
23351             shared_flag='${wl}-G'
23352           else
23353             shared_flag='${wl}-bM:SRE'
23354           fi
23355         fi
23356       fi
23357
23358       # It seems that -bexpall does not export symbols beginning with
23359       # underscore (_), so it is better to generate a list of symbols to export.
23360       always_export_symbols_GCJ=yes
23361       if test "$aix_use_runtimelinking" = yes; then
23362         # Warning - without using the other runtime loading flags (-brtl),
23363         # -berok will link without error, but may produce a broken library.
23364         allow_undefined_flag_GCJ='-berok'
23365        # Determine the default libpath from the value encoded in an empty executable.
23366        cat >conftest.$ac_ext <<_ACEOF
23367 /* confdefs.h.  */
23368 _ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h.  */
23372
23373 int
23374 main ()
23375 {
23376
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext conftest$ac_exeext
23382 if { (ac_try="$ac_link"
23383 case "(($ac_try" in
23384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385   *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388   (eval "$ac_link") 2>conftest.er1
23389   ac_status=$?
23390   grep -v '^ *+' conftest.er1 >conftest.err
23391   rm -f conftest.er1
23392   cat conftest.err >&5
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); } && {
23395          test -z "$ac_c_werror_flag" ||
23396          test ! -s conftest.err
23397        } && test -s conftest$ac_exeext &&
23398        $as_test_x conftest$ac_exeext; then
23399
23400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23401 }'`
23402 # Check for a 64-bit object if we didn't find anything.
23403 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; }
23404 }'`; fi
23405 else
23406   echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409
23410 fi
23411
23412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23413       conftest$ac_exeext conftest.$ac_ext
23414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23415
23416        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23417         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"
23418        else
23419         if test "$host_cpu" = ia64; then
23420           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23421           allow_undefined_flag_GCJ="-z nodefs"
23422           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"
23423         else
23424          # Determine the default libpath from the value encoded in an empty executable.
23425          cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h.  */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h.  */
23431
23432 int
23433 main ()
23434 {
23435
23436   ;
23437   return 0;
23438 }
23439 _ACEOF
23440 rm -f conftest.$ac_objext conftest$ac_exeext
23441 if { (ac_try="$ac_link"
23442 case "(($ac_try" in
23443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444   *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447   (eval "$ac_link") 2>conftest.er1
23448   ac_status=$?
23449   grep -v '^ *+' conftest.er1 >conftest.err
23450   rm -f conftest.er1
23451   cat conftest.err >&5
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); } && {
23454          test -z "$ac_c_werror_flag" ||
23455          test ! -s conftest.err
23456        } && test -s conftest$ac_exeext &&
23457        $as_test_x conftest$ac_exeext; then
23458
23459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23460 }'`
23461 # Check for a 64-bit object if we didn't find anything.
23462 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; }
23463 }'`; fi
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468
23469 fi
23470
23471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23472       conftest$ac_exeext conftest.$ac_ext
23473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23474
23475          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23476           # Warning - without using the other run time loading flags,
23477           # -berok will link without error, but may produce a broken library.
23478           no_undefined_flag_GCJ=' ${wl}-bernotok'
23479           allow_undefined_flag_GCJ=' ${wl}-berok'
23480           # Exported symbols can be pulled into shared objects from archives
23481           whole_archive_flag_spec_GCJ='$convenience'
23482           archive_cmds_need_lc_GCJ=yes
23483           # This is similar to how AIX traditionally builds its shared libraries.
23484           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'
23485         fi
23486       fi
23487       ;;
23488
23489     amigaos*)
23490       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)'
23491       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23492       hardcode_minus_L_GCJ=yes
23493       # see comment about different semantics on the GNU ld section
23494       ld_shlibs_GCJ=no
23495       ;;
23496
23497     bsdi[45]*)
23498       export_dynamic_flag_spec_GCJ=-rdynamic
23499       ;;
23500
23501     cygwin* | mingw* | pw32*)
23502       # When not using gcc, we currently assume that we are using
23503       # Microsoft Visual C++.
23504       # hardcode_libdir_flag_spec is actually meaningless, as there is
23505       # no search path for DLLs.
23506       hardcode_libdir_flag_spec_GCJ=' '
23507       allow_undefined_flag_GCJ=unsupported
23508       # Tell ltmain to make .lib files, not .a files.
23509       libext=lib
23510       # Tell ltmain to make .dll files, not .so files.
23511       shrext_cmds=".dll"
23512       # FIXME: Setting linknames here is a bad hack.
23513       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23514       # The linker will automatically build a .lib file if we build a DLL.
23515       old_archive_From_new_cmds_GCJ='true'
23516       # FIXME: Should let the user specify the lib program.
23517       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23518       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23519       enable_shared_with_static_runtimes_GCJ=yes
23520       ;;
23521
23522     darwin* | rhapsody*)
23523       case $host_os in
23524         rhapsody* | darwin1.[012])
23525          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23526          ;;
23527        *) # Darwin 1.3 on
23528          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23529            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23530          else
23531            case ${MACOSX_DEPLOYMENT_TARGET} in
23532              10.[012])
23533                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23534                ;;
23535              10.*)
23536                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23537                ;;
23538            esac
23539          fi
23540          ;;
23541       esac
23542       archive_cmds_need_lc_GCJ=no
23543       hardcode_direct_GCJ=no
23544       hardcode_automatic_GCJ=yes
23545       hardcode_shlibpath_var_GCJ=unsupported
23546       whole_archive_flag_spec_GCJ=''
23547       link_all_deplibs_GCJ=yes
23548     if test "$GCC" = yes ; then
23549         output_verbose_link_cmd='echo'
23550         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23551       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23552       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23553       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}'
23554       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}'
23555     else
23556       case $cc_basename in
23557         xlc*)
23558          output_verbose_link_cmd='echo'
23559          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23560          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23561           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23562          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}'
23563           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}'
23564           ;;
23565        *)
23566          ld_shlibs_GCJ=no
23567           ;;
23568       esac
23569     fi
23570       ;;
23571
23572     dgux*)
23573       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23574       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23575       hardcode_shlibpath_var_GCJ=no
23576       ;;
23577
23578     freebsd1*)
23579       ld_shlibs_GCJ=no
23580       ;;
23581
23582     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23583     # support.  Future versions do this automatically, but an explicit c++rt0.o
23584     # does not break anything, and helps significantly (at the cost of a little
23585     # extra space).
23586     freebsd2.2*)
23587       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23588       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23589       hardcode_direct_GCJ=yes
23590       hardcode_shlibpath_var_GCJ=no
23591       ;;
23592
23593     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23594     freebsd2*)
23595       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23596       hardcode_direct_GCJ=yes
23597       hardcode_minus_L_GCJ=yes
23598       hardcode_shlibpath_var_GCJ=no
23599       ;;
23600
23601     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23602     freebsd* | kfreebsd*-gnu | dragonfly*)
23603       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23604       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23605       hardcode_direct_GCJ=yes
23606       hardcode_shlibpath_var_GCJ=no
23607       ;;
23608
23609     hpux9*)
23610       if test "$GCC" = yes; then
23611         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'
23612       else
23613         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'
23614       fi
23615       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23616       hardcode_libdir_separator_GCJ=:
23617       hardcode_direct_GCJ=yes
23618
23619       # hardcode_minus_L: Not really in the search PATH,
23620       # but as the default location of the library.
23621       hardcode_minus_L_GCJ=yes
23622       export_dynamic_flag_spec_GCJ='${wl}-E'
23623       ;;
23624
23625     hpux10*)
23626       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23627         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23628       else
23629         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23630       fi
23631       if test "$with_gnu_ld" = no; then
23632         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23633         hardcode_libdir_separator_GCJ=:
23634
23635         hardcode_direct_GCJ=yes
23636         export_dynamic_flag_spec_GCJ='${wl}-E'
23637
23638         # hardcode_minus_L: Not really in the search PATH,
23639         # but as the default location of the library.
23640         hardcode_minus_L_GCJ=yes
23641       fi
23642       ;;
23643
23644     hpux11*)
23645       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23646         case $host_cpu in
23647         hppa*64*)
23648           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23649           ;;
23650         ia64*)
23651           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23652           ;;
23653         *)
23654           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23655           ;;
23656         esac
23657       else
23658         case $host_cpu in
23659         hppa*64*)
23660           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23661           ;;
23662         ia64*)
23663           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23664           ;;
23665         *)
23666           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23667           ;;
23668         esac
23669       fi
23670       if test "$with_gnu_ld" = no; then
23671         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23672         hardcode_libdir_separator_GCJ=:
23673
23674         case $host_cpu in
23675         hppa*64*|ia64*)
23676           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23677           hardcode_direct_GCJ=no
23678           hardcode_shlibpath_var_GCJ=no
23679           ;;
23680         *)
23681           hardcode_direct_GCJ=yes
23682           export_dynamic_flag_spec_GCJ='${wl}-E'
23683
23684           # hardcode_minus_L: Not really in the search PATH,
23685           # but as the default location of the library.
23686           hardcode_minus_L_GCJ=yes
23687           ;;
23688         esac
23689       fi
23690       ;;
23691
23692     irix5* | irix6* | nonstopux*)
23693       if test "$GCC" = yes; then
23694         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'
23695       else
23696         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'
23697         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23698       fi
23699       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23700       hardcode_libdir_separator_GCJ=:
23701       link_all_deplibs_GCJ=yes
23702       ;;
23703
23704     netbsd*)
23705       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23706         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23707       else
23708         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23709       fi
23710       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23711       hardcode_direct_GCJ=yes
23712       hardcode_shlibpath_var_GCJ=no
23713       ;;
23714
23715     newsos6)
23716       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23717       hardcode_direct_GCJ=yes
23718       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23719       hardcode_libdir_separator_GCJ=:
23720       hardcode_shlibpath_var_GCJ=no
23721       ;;
23722
23723     openbsd*)
23724       hardcode_direct_GCJ=yes
23725       hardcode_shlibpath_var_GCJ=no
23726       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23727         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23728         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23729         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23730         export_dynamic_flag_spec_GCJ='${wl}-E'
23731       else
23732        case $host_os in
23733          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23734            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23735            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23736            ;;
23737          *)
23738            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23739            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23740            ;;
23741        esac
23742       fi
23743       ;;
23744
23745     os2*)
23746       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23747       hardcode_minus_L_GCJ=yes
23748       allow_undefined_flag_GCJ=unsupported
23749       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'
23750       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23751       ;;
23752
23753     osf3*)
23754       if test "$GCC" = yes; then
23755         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23756         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'
23757       else
23758         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23759         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'
23760       fi
23761       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23762       hardcode_libdir_separator_GCJ=:
23763       ;;
23764
23765     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23766       if test "$GCC" = yes; then
23767         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23768         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'
23769         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23770       else
23771         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23772         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'
23773         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~
23774         $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'
23775
23776         # Both c and cxx compiler support -rpath directly
23777         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23778       fi
23779       hardcode_libdir_separator_GCJ=:
23780       ;;
23781
23782     solaris*)
23783       no_undefined_flag_GCJ=' -z text'
23784       if test "$GCC" = yes; then
23785         wlarc='${wl}'
23786         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23787         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23788           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23789       else
23790         wlarc=''
23791         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23792         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23793         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23794       fi
23795       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23796       hardcode_shlibpath_var_GCJ=no
23797       case $host_os in
23798       solaris2.[0-5] | solaris2.[0-5].*) ;;
23799       *)
23800         # The compiler driver will combine linker options so we
23801         # cannot just pass the convience library names through
23802         # without $wl, iff we do not link with $LD.
23803         # Luckily, gcc supports the same syntax we need for Sun Studio.
23804         # Supported since Solaris 2.6 (maybe 2.5.1?)
23805         case $wlarc in
23806         '')
23807           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23808         *)
23809           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' ;;
23810         esac ;;
23811       esac
23812       link_all_deplibs_GCJ=yes
23813       ;;
23814
23815     sunos4*)
23816       if test "x$host_vendor" = xsequent; then
23817         # Use $CC to link under sequent, because it throws in some extra .o
23818         # files that make .init and .fini sections work.
23819         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23820       else
23821         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23822       fi
23823       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23824       hardcode_direct_GCJ=yes
23825       hardcode_minus_L_GCJ=yes
23826       hardcode_shlibpath_var_GCJ=no
23827       ;;
23828
23829     sysv4)
23830       case $host_vendor in
23831         sni)
23832           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23833           hardcode_direct_GCJ=yes # is this really true???
23834         ;;
23835         siemens)
23836           ## LD is ld it makes a PLAMLIB
23837           ## CC just makes a GrossModule.
23838           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23839           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23840           hardcode_direct_GCJ=no
23841         ;;
23842         motorola)
23843           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23844           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23845         ;;
23846       esac
23847       runpath_var='LD_RUN_PATH'
23848       hardcode_shlibpath_var_GCJ=no
23849       ;;
23850
23851     sysv4.3*)
23852       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23853       hardcode_shlibpath_var_GCJ=no
23854       export_dynamic_flag_spec_GCJ='-Bexport'
23855       ;;
23856
23857     sysv4*MP*)
23858       if test -d /usr/nec; then
23859         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23860         hardcode_shlibpath_var_GCJ=no
23861         runpath_var=LD_RUN_PATH
23862         hardcode_runpath_var=yes
23863         ld_shlibs_GCJ=yes
23864       fi
23865       ;;
23866
23867     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23868       no_undefined_flag_GCJ='${wl}-z,text'
23869       archive_cmds_need_lc_GCJ=no
23870       hardcode_shlibpath_var_GCJ=no
23871       runpath_var='LD_RUN_PATH'
23872
23873       if test "$GCC" = yes; then
23874         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23875         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23876       else
23877         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23878         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23879       fi
23880       ;;
23881
23882     sysv5* | sco3.2v5* | sco5v6*)
23883       # Note: We can NOT use -z defs as we might desire, because we do not
23884       # link with -lc, and that would cause any symbols used from libc to
23885       # always be unresolved, which means just about no library would
23886       # ever link correctly.  If we're not using GNU ld we use -z text
23887       # though, which does catch some bad symbols but isn't as heavy-handed
23888       # as -z defs.
23889       no_undefined_flag_GCJ='${wl}-z,text'
23890       allow_undefined_flag_GCJ='${wl}-z,nodefs'
23891       archive_cmds_need_lc_GCJ=no
23892       hardcode_shlibpath_var_GCJ=no
23893       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23894       hardcode_libdir_separator_GCJ=':'
23895       link_all_deplibs_GCJ=yes
23896       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23897       runpath_var='LD_RUN_PATH'
23898
23899       if test "$GCC" = yes; then
23900         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23901         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23902       else
23903         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23904         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23905       fi
23906       ;;
23907
23908     uts4*)
23909       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23910       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23911       hardcode_shlibpath_var_GCJ=no
23912       ;;
23913
23914     *)
23915       ld_shlibs_GCJ=no
23916       ;;
23917     esac
23918   fi
23919
23920 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23921 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23922 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23923
23924 #
23925 # Do we need to explicitly link libc?
23926 #
23927 case "x$archive_cmds_need_lc_GCJ" in
23928 x|xyes)
23929   # Assume -lc should be added
23930   archive_cmds_need_lc_GCJ=yes
23931
23932   if test "$enable_shared" = yes && test "$GCC" = yes; then
23933     case $archive_cmds_GCJ in
23934     *'~'*)
23935       # FIXME: we may have to deal with multi-command sequences.
23936       ;;
23937     '$CC '*)
23938       # Test whether the compiler implicitly links with -lc since on some
23939       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23940       # to ld, don't add -lc before -lgcc.
23941       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23943       $rm conftest*
23944       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23945
23946       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23947   (eval $ac_compile) 2>&5
23948   ac_status=$?
23949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950   (exit $ac_status); } 2>conftest.err; then
23951         soname=conftest
23952         lib=conftest
23953         libobjs=conftest.$ac_objext
23954         deplibs=
23955         wl=$lt_prog_compiler_wl_GCJ
23956         pic_flag=$lt_prog_compiler_pic_GCJ
23957         compiler_flags=-v
23958         linker_flags=-v
23959         verstring=
23960         output_objdir=.
23961         libname=conftest
23962         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23963         allow_undefined_flag_GCJ=
23964         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23965   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23966   ac_status=$?
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); }
23969         then
23970           archive_cmds_need_lc_GCJ=no
23971         else
23972           archive_cmds_need_lc_GCJ=yes
23973         fi
23974         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23975       else
23976         cat conftest.err 1>&5
23977       fi
23978       $rm conftest*
23979       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23980 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
23981       ;;
23982     esac
23983   fi
23984   ;;
23985 esac
23986
23987 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23989 library_names_spec=
23990 libname_spec='lib$name'
23991 soname_spec=
23992 shrext_cmds=".so"
23993 postinstall_cmds=
23994 postuninstall_cmds=
23995 finish_cmds=
23996 finish_eval=
23997 shlibpath_var=
23998 shlibpath_overrides_runpath=unknown
23999 version_type=none
24000 dynamic_linker="$host_os ld.so"
24001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24002 if test "$GCC" = yes; then
24003   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24004   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24005     # if the path contains ";" then we assume it to be the separator
24006     # otherwise default to the standard path separator (i.e. ":") - it is
24007     # assumed that no part of a normal pathname contains ";" but that should
24008     # okay in the real world where ";" in dirpaths is itself problematic.
24009     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24010   else
24011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24012   fi
24013 else
24014   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24015 fi
24016 need_lib_prefix=unknown
24017 hardcode_into_libs=no
24018
24019 # when you set need_version to no, make sure it does not cause -set_version
24020 # flags to be left without arguments
24021 need_version=unknown
24022
24023 case $host_os in
24024 aix3*)
24025   version_type=linux
24026   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24027   shlibpath_var=LIBPATH
24028
24029   # AIX 3 has no versioning support, so we append a major version to the name.
24030   soname_spec='${libname}${release}${shared_ext}$major'
24031   ;;
24032
24033 aix4* | aix5*)
24034   version_type=linux
24035   need_lib_prefix=no
24036   need_version=no
24037   hardcode_into_libs=yes
24038   if test "$host_cpu" = ia64; then
24039     # AIX 5 supports IA64
24040     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24041     shlibpath_var=LD_LIBRARY_PATH
24042   else
24043     # With GCC up to 2.95.x, collect2 would create an import file
24044     # for dependence libraries.  The import file would start with
24045     # the line `#! .'.  This would cause the generated library to
24046     # depend on `.', always an invalid library.  This was fixed in
24047     # development snapshots of GCC prior to 3.0.
24048     case $host_os in
24049       aix4 | aix4.[01] | aix4.[01].*)
24050       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24051            echo ' yes '
24052            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24053         :
24054       else
24055         can_build_shared=no
24056       fi
24057       ;;
24058     esac
24059     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24060     # soname into executable. Probably we can add versioning support to
24061     # collect2, so additional links can be useful in future.
24062     if test "$aix_use_runtimelinking" = yes; then
24063       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24064       # instead of lib<name>.a to let people know that these are not
24065       # typical AIX shared libraries.
24066       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24067     else
24068       # We preserve .a as extension for shared libraries through AIX4.2
24069       # and later when we are not doing run time linking.
24070       library_names_spec='${libname}${release}.a $libname.a'
24071       soname_spec='${libname}${release}${shared_ext}$major'
24072     fi
24073     shlibpath_var=LIBPATH
24074   fi
24075   ;;
24076
24077 amigaos*)
24078   library_names_spec='$libname.ixlibrary $libname.a'
24079   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24080   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'
24081   ;;
24082
24083 beos*)
24084   library_names_spec='${libname}${shared_ext}'
24085   dynamic_linker="$host_os ld.so"
24086   shlibpath_var=LIBRARY_PATH
24087   ;;
24088
24089 bsdi[45]*)
24090   version_type=linux
24091   need_version=no
24092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24093   soname_spec='${libname}${release}${shared_ext}$major'
24094   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24095   shlibpath_var=LD_LIBRARY_PATH
24096   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24097   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24098   # the default ld.so.conf also contains /usr/contrib/lib and
24099   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24100   # libtool to hard-code these into programs
24101   ;;
24102
24103 cygwin* | mingw* | pw32*)
24104   version_type=windows
24105   shrext_cmds=".dll"
24106   need_version=no
24107   need_lib_prefix=no
24108
24109   case $GCC,$host_os in
24110   yes,cygwin* | yes,mingw* | yes,pw32*)
24111     library_names_spec='$libname.dll.a'
24112     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24113     postinstall_cmds='base_file=`basename \${file}`~
24114       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24115       dldir=$destdir/`dirname \$dlpath`~
24116       test -d \$dldir || mkdir -p \$dldir~
24117       $install_prog $dir/$dlname \$dldir/$dlname~
24118       chmod a+x \$dldir/$dlname'
24119     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24120       dlpath=$dir/\$dldll~
24121        $rm \$dlpath'
24122     shlibpath_overrides_runpath=yes
24123
24124     case $host_os in
24125     cygwin*)
24126       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24127       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24128       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24129       ;;
24130     mingw*)
24131       # MinGW DLLs use traditional 'lib' prefix
24132       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24133       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24134       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24135         # It is most probably a Windows format PATH printed by
24136         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24137         # path with ; separators, and with drive letters. We can handle the
24138         # drive letters (cygwin fileutils understands them), so leave them,
24139         # especially as we might pass files found there to a mingw objdump,
24140         # which wouldn't understand a cygwinified path. Ahh.
24141         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24142       else
24143         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24144       fi
24145       ;;
24146     pw32*)
24147       # pw32 DLLs use 'pw' prefix rather than 'lib'
24148       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24149       ;;
24150     esac
24151     ;;
24152
24153   *)
24154     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24155     ;;
24156   esac
24157   dynamic_linker='Win32 ld.exe'
24158   # FIXME: first we should search . and the directory the executable is in
24159   shlibpath_var=PATH
24160   ;;
24161
24162 darwin* | rhapsody*)
24163   dynamic_linker="$host_os dyld"
24164   version_type=darwin
24165   need_lib_prefix=no
24166   need_version=no
24167   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24168   soname_spec='${libname}${release}${major}$shared_ext'
24169   shlibpath_overrides_runpath=yes
24170   shlibpath_var=DYLD_LIBRARY_PATH
24171   shrext_cmds='.dylib'
24172   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24173   if test "$GCC" = yes; then
24174     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"`
24175   else
24176     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24177   fi
24178   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24179   ;;
24180
24181 dgux*)
24182   version_type=linux
24183   need_lib_prefix=no
24184   need_version=no
24185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24186   soname_spec='${libname}${release}${shared_ext}$major'
24187   shlibpath_var=LD_LIBRARY_PATH
24188   ;;
24189
24190 freebsd1*)
24191   dynamic_linker=no
24192   ;;
24193
24194 kfreebsd*-gnu)
24195   version_type=linux
24196   need_lib_prefix=no
24197   need_version=no
24198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24199   soname_spec='${libname}${release}${shared_ext}$major'
24200   shlibpath_var=LD_LIBRARY_PATH
24201   shlibpath_overrides_runpath=no
24202   hardcode_into_libs=yes
24203   dynamic_linker='GNU ld.so'
24204   ;;
24205
24206 freebsd* | dragonfly*)
24207   # DragonFly does not have aout.  When/if they implement a new
24208   # versioning mechanism, adjust this.
24209   if test -x /usr/bin/objformat; then
24210     objformat=`/usr/bin/objformat`
24211   else
24212     case $host_os in
24213     freebsd[123]*) objformat=aout ;;
24214     *) objformat=elf ;;
24215     esac
24216   fi
24217   version_type=freebsd-$objformat
24218   case $version_type in
24219     freebsd-elf*)
24220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24221       need_version=no
24222       need_lib_prefix=no
24223       ;;
24224     freebsd-*)
24225       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24226       need_version=yes
24227       ;;
24228   esac
24229   shlibpath_var=LD_LIBRARY_PATH
24230   case $host_os in
24231   freebsd2*)
24232     shlibpath_overrides_runpath=yes
24233     ;;
24234   freebsd3.[01]* | freebsdelf3.[01]*)
24235     shlibpath_overrides_runpath=yes
24236     hardcode_into_libs=yes
24237     ;;
24238   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24239   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24240     shlibpath_overrides_runpath=no
24241     hardcode_into_libs=yes
24242     ;;
24243   freebsd*) # from 4.6 on
24244     shlibpath_overrides_runpath=yes
24245     hardcode_into_libs=yes
24246     ;;
24247   esac
24248   ;;
24249
24250 gnu*)
24251   version_type=linux
24252   need_lib_prefix=no
24253   need_version=no
24254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24255   soname_spec='${libname}${release}${shared_ext}$major'
24256   shlibpath_var=LD_LIBRARY_PATH
24257   hardcode_into_libs=yes
24258   ;;
24259
24260 hpux9* | hpux10* | hpux11*)
24261   # Give a soname corresponding to the major version so that dld.sl refuses to
24262   # link against other versions.
24263   version_type=sunos
24264   need_lib_prefix=no
24265   need_version=no
24266   case $host_cpu in
24267   ia64*)
24268     shrext_cmds='.so'
24269     hardcode_into_libs=yes
24270     dynamic_linker="$host_os dld.so"
24271     shlibpath_var=LD_LIBRARY_PATH
24272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24274     soname_spec='${libname}${release}${shared_ext}$major'
24275     if test "X$HPUX_IA64_MODE" = X32; then
24276       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24277     else
24278       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24279     fi
24280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24281     ;;
24282    hppa*64*)
24283      shrext_cmds='.sl'
24284      hardcode_into_libs=yes
24285      dynamic_linker="$host_os dld.sl"
24286      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24287      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24288      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24289      soname_spec='${libname}${release}${shared_ext}$major'
24290      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24291      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24292      ;;
24293    *)
24294     shrext_cmds='.sl'
24295     dynamic_linker="$host_os dld.sl"
24296     shlibpath_var=SHLIB_PATH
24297     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24299     soname_spec='${libname}${release}${shared_ext}$major'
24300     ;;
24301   esac
24302   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24303   postinstall_cmds='chmod 555 $lib'
24304   ;;
24305
24306 interix3*)
24307   version_type=linux
24308   need_lib_prefix=no
24309   need_version=no
24310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24311   soname_spec='${libname}${release}${shared_ext}$major'
24312   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24313   shlibpath_var=LD_LIBRARY_PATH
24314   shlibpath_overrides_runpath=no
24315   hardcode_into_libs=yes
24316   ;;
24317
24318 irix5* | irix6* | nonstopux*)
24319   case $host_os in
24320     nonstopux*) version_type=nonstopux ;;
24321     *)
24322         if test "$lt_cv_prog_gnu_ld" = yes; then
24323                 version_type=linux
24324         else
24325                 version_type=irix
24326         fi ;;
24327   esac
24328   need_lib_prefix=no
24329   need_version=no
24330   soname_spec='${libname}${release}${shared_ext}$major'
24331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24332   case $host_os in
24333   irix5* | nonstopux*)
24334     libsuff= shlibsuff=
24335     ;;
24336   *)
24337     case $LD in # libtool.m4 will add one of these switches to LD
24338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24339       libsuff= shlibsuff= libmagic=32-bit;;
24340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24341       libsuff=32 shlibsuff=N32 libmagic=N32;;
24342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24344     *) libsuff= shlibsuff= libmagic=never-match;;
24345     esac
24346     ;;
24347   esac
24348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24349   shlibpath_overrides_runpath=no
24350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24352   hardcode_into_libs=yes
24353   ;;
24354
24355 # No shared lib support for Linux oldld, aout, or coff.
24356 linux*oldld* | linux*aout* | linux*coff*)
24357   dynamic_linker=no
24358   ;;
24359
24360 # This must be Linux ELF.
24361 linux*)
24362   version_type=linux
24363   need_lib_prefix=no
24364   need_version=no
24365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24366   soname_spec='${libname}${release}${shared_ext}$major'
24367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24368   shlibpath_var=LD_LIBRARY_PATH
24369   shlibpath_overrides_runpath=no
24370   # This implies no fast_install, which is unacceptable.
24371   # Some rework will be needed to allow for fast_install
24372   # before this can be enabled.
24373   hardcode_into_libs=yes
24374
24375   # Append ld.so.conf contents to the search path
24376   if test -f /etc/ld.so.conf; then
24377     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' ' '`
24378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24379   fi
24380
24381   # We used to test for /lib/ld.so.1 and disable shared libraries on
24382   # powerpc, because MkLinux only supported shared libraries with the
24383   # GNU dynamic linker.  Since this was broken with cross compilers,
24384   # most powerpc-linux boxes support dynamic linking these days and
24385   # people can always --disable-shared, the test was removed, and we
24386   # assume the GNU/Linux dynamic linker is in use.
24387   dynamic_linker='GNU/Linux ld.so'
24388   ;;
24389
24390 knetbsd*-gnu)
24391   version_type=linux
24392   need_lib_prefix=no
24393   need_version=no
24394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24395   soname_spec='${libname}${release}${shared_ext}$major'
24396   shlibpath_var=LD_LIBRARY_PATH
24397   shlibpath_overrides_runpath=no
24398   hardcode_into_libs=yes
24399   dynamic_linker='GNU ld.so'
24400   ;;
24401
24402 netbsd*)
24403   version_type=sunos
24404   need_lib_prefix=no
24405   need_version=no
24406   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24408     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24409     dynamic_linker='NetBSD (a.out) ld.so'
24410   else
24411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24412     soname_spec='${libname}${release}${shared_ext}$major'
24413     dynamic_linker='NetBSD ld.elf_so'
24414   fi
24415   shlibpath_var=LD_LIBRARY_PATH
24416   shlibpath_overrides_runpath=yes
24417   hardcode_into_libs=yes
24418   ;;
24419
24420 newsos6)
24421   version_type=linux
24422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24423   shlibpath_var=LD_LIBRARY_PATH
24424   shlibpath_overrides_runpath=yes
24425   ;;
24426
24427 nto-qnx*)
24428   version_type=linux
24429   need_lib_prefix=no
24430   need_version=no
24431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24432   soname_spec='${libname}${release}${shared_ext}$major'
24433   shlibpath_var=LD_LIBRARY_PATH
24434   shlibpath_overrides_runpath=yes
24435   ;;
24436
24437 openbsd*)
24438   version_type=sunos
24439   sys_lib_dlsearch_path_spec="/usr/lib"
24440   need_lib_prefix=no
24441   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24442   case $host_os in
24443     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24444     *)                         need_version=no  ;;
24445   esac
24446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24447   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24448   shlibpath_var=LD_LIBRARY_PATH
24449   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24450     case $host_os in
24451       openbsd2.[89] | openbsd2.[89].*)
24452         shlibpath_overrides_runpath=no
24453         ;;
24454       *)
24455         shlibpath_overrides_runpath=yes
24456         ;;
24457       esac
24458   else
24459     shlibpath_overrides_runpath=yes
24460   fi
24461   ;;
24462
24463 os2*)
24464   libname_spec='$name'
24465   shrext_cmds=".dll"
24466   need_lib_prefix=no
24467   library_names_spec='$libname${shared_ext} $libname.a'
24468   dynamic_linker='OS/2 ld.exe'
24469   shlibpath_var=LIBPATH
24470   ;;
24471
24472 osf3* | osf4* | osf5*)
24473   version_type=osf
24474   need_lib_prefix=no
24475   need_version=no
24476   soname_spec='${libname}${release}${shared_ext}$major'
24477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24478   shlibpath_var=LD_LIBRARY_PATH
24479   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24480   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24481   ;;
24482
24483 solaris*)
24484   version_type=linux
24485   need_lib_prefix=no
24486   need_version=no
24487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24488   soname_spec='${libname}${release}${shared_ext}$major'
24489   shlibpath_var=LD_LIBRARY_PATH
24490   shlibpath_overrides_runpath=yes
24491   hardcode_into_libs=yes
24492   # ldd complains unless libraries are executable
24493   postinstall_cmds='chmod +x $lib'
24494   ;;
24495
24496 sunos4*)
24497   version_type=sunos
24498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24499   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24500   shlibpath_var=LD_LIBRARY_PATH
24501   shlibpath_overrides_runpath=yes
24502   if test "$with_gnu_ld" = yes; then
24503     need_lib_prefix=no
24504   fi
24505   need_version=yes
24506   ;;
24507
24508 sysv4 | sysv4.3*)
24509   version_type=linux
24510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24511   soname_spec='${libname}${release}${shared_ext}$major'
24512   shlibpath_var=LD_LIBRARY_PATH
24513   case $host_vendor in
24514     sni)
24515       shlibpath_overrides_runpath=no
24516       need_lib_prefix=no
24517       export_dynamic_flag_spec='${wl}-Blargedynsym'
24518       runpath_var=LD_RUN_PATH
24519       ;;
24520     siemens)
24521       need_lib_prefix=no
24522       ;;
24523     motorola)
24524       need_lib_prefix=no
24525       need_version=no
24526       shlibpath_overrides_runpath=no
24527       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24528       ;;
24529   esac
24530   ;;
24531
24532 sysv4*MP*)
24533   if test -d /usr/nec ;then
24534     version_type=linux
24535     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24536     soname_spec='$libname${shared_ext}.$major'
24537     shlibpath_var=LD_LIBRARY_PATH
24538   fi
24539   ;;
24540
24541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24542   version_type=freebsd-elf
24543   need_lib_prefix=no
24544   need_version=no
24545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24546   soname_spec='${libname}${release}${shared_ext}$major'
24547   shlibpath_var=LD_LIBRARY_PATH
24548   hardcode_into_libs=yes
24549   if test "$with_gnu_ld" = yes; then
24550     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24551     shlibpath_overrides_runpath=no
24552   else
24553     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24554     shlibpath_overrides_runpath=yes
24555     case $host_os in
24556       sco3.2v5*)
24557         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24558         ;;
24559     esac
24560   fi
24561   sys_lib_dlsearch_path_spec='/usr/lib'
24562   ;;
24563
24564 uts4*)
24565   version_type=linux
24566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24567   soname_spec='${libname}${release}${shared_ext}$major'
24568   shlibpath_var=LD_LIBRARY_PATH
24569   ;;
24570
24571 *)
24572   dynamic_linker=no
24573   ;;
24574 esac
24575 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24576 echo "${ECHO_T}$dynamic_linker" >&6; }
24577 test "$dynamic_linker" = no && can_build_shared=no
24578
24579 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24580 if test "$GCC" = yes; then
24581   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24582 fi
24583
24584 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24586 hardcode_action_GCJ=
24587 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24588    test -n "$runpath_var_GCJ" || \
24589    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24590
24591   # We can hardcode non-existant directories.
24592   if test "$hardcode_direct_GCJ" != no &&
24593      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24594      # have to relink, otherwise we might link with an installed library
24595      # when we should be linking with a yet-to-be-installed one
24596      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24597      test "$hardcode_minus_L_GCJ" != no; then
24598     # Linking always hardcodes the temporary library directory.
24599     hardcode_action_GCJ=relink
24600   else
24601     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24602     hardcode_action_GCJ=immediate
24603   fi
24604 else
24605   # We cannot hardcode anything, or else we can only hardcode existing
24606   # directories.
24607   hardcode_action_GCJ=unsupported
24608 fi
24609 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24610 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24611
24612 if test "$hardcode_action_GCJ" = relink; then
24613   # Fast installation is not supported
24614   enable_fast_install=no
24615 elif test "$shlibpath_overrides_runpath" = yes ||
24616      test "$enable_shared" = no; then
24617   # Fast installation is not necessary
24618   enable_fast_install=needless
24619 fi
24620
24621
24622 # The else clause should only fire when bootstrapping the
24623 # libtool distribution, otherwise you forgot to ship ltmain.sh
24624 # with your package, and you will get complaints that there are
24625 # no rules to generate ltmain.sh.
24626 if test -f "$ltmain"; then
24627   # See if we are running on zsh, and set the options which allow our commands through
24628   # without removal of \ escapes.
24629   if test -n "${ZSH_VERSION+set}" ; then
24630     setopt NO_GLOB_SUBST
24631   fi
24632   # Now quote all the things that may contain metacharacters while being
24633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24634   # variables and quote the copies for generation of the libtool script.
24635   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24636     SED SHELL STRIP \
24637     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24638     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24639     deplibs_check_method reload_flag reload_cmds need_locks \
24640     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24641     lt_cv_sys_global_symbol_to_c_name_address \
24642     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24643     old_postinstall_cmds old_postuninstall_cmds \
24644     compiler_GCJ \
24645     CC_GCJ \
24646     LD_GCJ \
24647     lt_prog_compiler_wl_GCJ \
24648     lt_prog_compiler_pic_GCJ \
24649     lt_prog_compiler_static_GCJ \
24650     lt_prog_compiler_no_builtin_flag_GCJ \
24651     export_dynamic_flag_spec_GCJ \
24652     thread_safe_flag_spec_GCJ \
24653     whole_archive_flag_spec_GCJ \
24654     enable_shared_with_static_runtimes_GCJ \
24655     old_archive_cmds_GCJ \
24656     old_archive_from_new_cmds_GCJ \
24657     predep_objects_GCJ \
24658     postdep_objects_GCJ \
24659     predeps_GCJ \
24660     postdeps_GCJ \
24661     compiler_lib_search_path_GCJ \
24662     archive_cmds_GCJ \
24663     archive_expsym_cmds_GCJ \
24664     postinstall_cmds_GCJ \
24665     postuninstall_cmds_GCJ \
24666     old_archive_from_expsyms_cmds_GCJ \
24667     allow_undefined_flag_GCJ \
24668     no_undefined_flag_GCJ \
24669     export_symbols_cmds_GCJ \
24670     hardcode_libdir_flag_spec_GCJ \
24671     hardcode_libdir_flag_spec_ld_GCJ \
24672     hardcode_libdir_separator_GCJ \
24673     hardcode_automatic_GCJ \
24674     module_cmds_GCJ \
24675     module_expsym_cmds_GCJ \
24676     lt_cv_prog_compiler_c_o_GCJ \
24677     exclude_expsyms_GCJ \
24678     include_expsyms_GCJ; do
24679
24680     case $var in
24681     old_archive_cmds_GCJ | \
24682     old_archive_from_new_cmds_GCJ | \
24683     archive_cmds_GCJ | \
24684     archive_expsym_cmds_GCJ | \
24685     module_cmds_GCJ | \
24686     module_expsym_cmds_GCJ | \
24687     old_archive_from_expsyms_cmds_GCJ | \
24688     export_symbols_cmds_GCJ | \
24689     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24690     postinstall_cmds | postuninstall_cmds | \
24691     old_postinstall_cmds | old_postuninstall_cmds | \
24692     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24693       # Double-quote double-evaled strings.
24694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24695       ;;
24696     *)
24697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24698       ;;
24699     esac
24700   done
24701
24702   case $lt_echo in
24703   *'\$0 --fallback-echo"')
24704     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24705     ;;
24706   esac
24707
24708 cfgfile="$ofile"
24709
24710   cat <<__EOF__ >> "$cfgfile"
24711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24712
24713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24714
24715 # Shell to use when invoking shell scripts.
24716 SHELL=$lt_SHELL
24717
24718 # Whether or not to build shared libraries.
24719 build_libtool_libs=$enable_shared
24720
24721 # Whether or not to build static libraries.
24722 build_old_libs=$enable_static
24723
24724 # Whether or not to add -lc for building shared libraries.
24725 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24726
24727 # Whether or not to disallow shared libs when runtime libs are static
24728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24729
24730 # Whether or not to optimize for fast installation.
24731 fast_install=$enable_fast_install
24732
24733 # The host system.
24734 host_alias=$host_alias
24735 host=$host
24736 host_os=$host_os
24737
24738 # The build system.
24739 build_alias=$build_alias
24740 build=$build
24741 build_os=$build_os
24742
24743 # An echo program that does not interpret backslashes.
24744 echo=$lt_echo
24745
24746 # The archiver.
24747 AR=$lt_AR
24748 AR_FLAGS=$lt_AR_FLAGS
24749
24750 # A C compiler.
24751 LTCC=$lt_LTCC
24752
24753 # LTCC compiler flags.
24754 LTCFLAGS=$lt_LTCFLAGS
24755
24756 # A language-specific compiler.
24757 CC=$lt_compiler_GCJ
24758
24759 # Is the compiler the GNU C compiler?
24760 with_gcc=$GCC_GCJ
24761
24762 # An ERE matcher.
24763 EGREP=$lt_EGREP
24764
24765 # The linker used to build libraries.
24766 LD=$lt_LD_GCJ
24767
24768 # Whether we need hard or soft links.
24769 LN_S=$lt_LN_S
24770
24771 # A BSD-compatible nm program.
24772 NM=$lt_NM
24773
24774 # A symbol stripping program
24775 STRIP=$lt_STRIP
24776
24777 # Used to examine libraries when file_magic_cmd begins "file"
24778 MAGIC_CMD=$MAGIC_CMD
24779
24780 # Used on cygwin: DLL creation program.
24781 DLLTOOL="$DLLTOOL"
24782
24783 # Used on cygwin: object dumper.
24784 OBJDUMP="$OBJDUMP"
24785
24786 # Used on cygwin: assembler.
24787 AS="$AS"
24788
24789 # The name of the directory that contains temporary libtool files.
24790 objdir=$objdir
24791
24792 # How to create reloadable object files.
24793 reload_flag=$lt_reload_flag
24794 reload_cmds=$lt_reload_cmds
24795
24796 # How to pass a linker flag through the compiler.
24797 wl=$lt_lt_prog_compiler_wl_GCJ
24798
24799 # Object file suffix (normally "o").
24800 objext="$ac_objext"
24801
24802 # Old archive suffix (normally "a").
24803 libext="$libext"
24804
24805 # Shared library suffix (normally ".so").
24806 shrext_cmds='$shrext_cmds'
24807
24808 # Executable file suffix (normally "").
24809 exeext="$exeext"
24810
24811 # Additional compiler flags for building library objects.
24812 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24813 pic_mode=$pic_mode
24814
24815 # What is the maximum length of a command?
24816 max_cmd_len=$lt_cv_sys_max_cmd_len
24817
24818 # Does compiler simultaneously support -c and -o options?
24819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24820
24821 # Must we lock files when doing compilation?
24822 need_locks=$lt_need_locks
24823
24824 # Do we need the lib prefix for modules?
24825 need_lib_prefix=$need_lib_prefix
24826
24827 # Do we need a version for libraries?
24828 need_version=$need_version
24829
24830 # Whether dlopen is supported.
24831 dlopen_support=$enable_dlopen
24832
24833 # Whether dlopen of programs is supported.
24834 dlopen_self=$enable_dlopen_self
24835
24836 # Whether dlopen of statically linked programs is supported.
24837 dlopen_self_static=$enable_dlopen_self_static
24838
24839 # Compiler flag to prevent dynamic linking.
24840 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24841
24842 # Compiler flag to turn off builtin functions.
24843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24844
24845 # Compiler flag to allow reflexive dlopens.
24846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24847
24848 # Compiler flag to generate shared objects directly from archives.
24849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24850
24851 # Compiler flag to generate thread-safe objects.
24852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24853
24854 # Library versioning type.
24855 version_type=$version_type
24856
24857 # Format of library name prefix.
24858 libname_spec=$lt_libname_spec
24859
24860 # List of archive names.  First name is the real one, the rest are links.
24861 # The last name is the one that the linker finds with -lNAME.
24862 library_names_spec=$lt_library_names_spec
24863
24864 # The coded name of the library, if different from the real name.
24865 soname_spec=$lt_soname_spec
24866
24867 # Commands used to build and install an old-style archive.
24868 RANLIB=$lt_RANLIB
24869 old_archive_cmds=$lt_old_archive_cmds_GCJ
24870 old_postinstall_cmds=$lt_old_postinstall_cmds
24871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24872
24873 # Create an old-style archive from a shared archive.
24874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24875
24876 # Create a temporary old-style archive to link instead of a shared archive.
24877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24878
24879 # Commands used to build and install a shared archive.
24880 archive_cmds=$lt_archive_cmds_GCJ
24881 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24882 postinstall_cmds=$lt_postinstall_cmds
24883 postuninstall_cmds=$lt_postuninstall_cmds
24884
24885 # Commands used to build a loadable module (assumed same as above if empty)
24886 module_cmds=$lt_module_cmds_GCJ
24887 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24888
24889 # Commands to strip libraries.
24890 old_striplib=$lt_old_striplib
24891 striplib=$lt_striplib
24892
24893 # Dependencies to place before the objects being linked to create a
24894 # shared library.
24895 predep_objects=$lt_predep_objects_GCJ
24896
24897 # Dependencies to place after the objects being linked to create a
24898 # shared library.
24899 postdep_objects=$lt_postdep_objects_GCJ
24900
24901 # Dependencies to place before the objects being linked to create a
24902 # shared library.
24903 predeps=$lt_predeps_GCJ
24904
24905 # Dependencies to place after the objects being linked to create a
24906 # shared library.
24907 postdeps=$lt_postdeps_GCJ
24908
24909 # The library search path used internally by the compiler when linking
24910 # a shared library.
24911 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24912
24913 # Method to check whether dependent libraries are shared objects.
24914 deplibs_check_method=$lt_deplibs_check_method
24915
24916 # Command to use when deplibs_check_method == file_magic.
24917 file_magic_cmd=$lt_file_magic_cmd
24918
24919 # Flag that allows shared libraries with undefined symbols to be built.
24920 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24921
24922 # Flag that forces no undefined symbols.
24923 no_undefined_flag=$lt_no_undefined_flag_GCJ
24924
24925 # Commands used to finish a libtool library installation in a directory.
24926 finish_cmds=$lt_finish_cmds
24927
24928 # Same as above, but a single script fragment to be evaled but not shown.
24929 finish_eval=$lt_finish_eval
24930
24931 # Take the output of nm and produce a listing of raw symbols and C names.
24932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24933
24934 # Transform the output of nm in a proper C declaration
24935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24936
24937 # Transform the output of nm in a C name address pair
24938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24939
24940 # This is the shared library runtime path variable.
24941 runpath_var=$runpath_var
24942
24943 # This is the shared library path variable.
24944 shlibpath_var=$shlibpath_var
24945
24946 # Is shlibpath searched before the hard-coded library search path?
24947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24948
24949 # How to hardcode a shared library path into an executable.
24950 hardcode_action=$hardcode_action_GCJ
24951
24952 # Whether we should hardcode library paths into libraries.
24953 hardcode_into_libs=$hardcode_into_libs
24954
24955 # Flag to hardcode \$libdir into a binary during linking.
24956 # This must work even if \$libdir does not exist.
24957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24958
24959 # If ld is used when linking, flag to hardcode \$libdir into
24960 # a binary during linking. This must work even if \$libdir does
24961 # not exist.
24962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24963
24964 # Whether we need a single -rpath flag with a separated argument.
24965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24966
24967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24968 # resulting binary.
24969 hardcode_direct=$hardcode_direct_GCJ
24970
24971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24972 # resulting binary.
24973 hardcode_minus_L=$hardcode_minus_L_GCJ
24974
24975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24976 # the resulting binary.
24977 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24978
24979 # Set to yes if building a shared library automatically hardcodes DIR into the library
24980 # and all subsequent libraries and executables linked against it.
24981 hardcode_automatic=$hardcode_automatic_GCJ
24982
24983 # Variables whose values should be saved in libtool wrapper scripts and
24984 # restored at relink time.
24985 variables_saved_for_relink="$variables_saved_for_relink"
24986
24987 # Whether libtool must link a program against all its dependency libraries.
24988 link_all_deplibs=$link_all_deplibs_GCJ
24989
24990 # Compile-time system search path for libraries
24991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24992
24993 # Run-time system search path for libraries
24994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24995
24996 # Fix the shell variable \$srcfile for the compiler.
24997 fix_srcfile_path="$fix_srcfile_path_GCJ"
24998
24999 # Set to yes if exported symbols are required.
25000 always_export_symbols=$always_export_symbols_GCJ
25001
25002 # The commands to list exported symbols.
25003 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25004
25005 # The commands to extract the exported symbol list from a shared archive.
25006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25007
25008 # Symbols that should not be listed in the preloaded symbols.
25009 exclude_expsyms=$lt_exclude_expsyms_GCJ
25010
25011 # Symbols that must always be exported.
25012 include_expsyms=$lt_include_expsyms_GCJ
25013
25014 # ### END LIBTOOL TAG CONFIG: $tagname
25015
25016 __EOF__
25017
25018
25019 else
25020   # If there is no Makefile yet, we rely on a make rule to execute
25021   # `config.status --recheck' to rerun these tests and create the
25022   # libtool script then.
25023   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25024   if test -f "$ltmain_in"; then
25025     test -f Makefile && make "$ltmain"
25026   fi
25027 fi
25028
25029
25030 ac_ext=c
25031 ac_cpp='$CPP $CPPFLAGS'
25032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25035
25036 CC="$lt_save_CC"
25037
25038         else
25039           tagname=""
25040         fi
25041         ;;
25042
25043       RC)
25044         ac_ext=c
25045 ac_cpp='$CPP $CPPFLAGS'
25046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25049
25050
25051 # Source file extension for RC test sources.
25052 ac_ext=rc
25053
25054 # Object file extension for compiled RC test sources.
25055 objext=o
25056 objext_RC=$objext
25057
25058 # Code to be used in simple compile tests
25059 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25060
25061 # Code to be used in simple link tests
25062 lt_simple_link_test_code="$lt_simple_compile_test_code"
25063
25064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25065
25066 # If no C compiler was specified, use CC.
25067 LTCC=${LTCC-"$CC"}
25068
25069 # If no C compiler flags were specified, use CFLAGS.
25070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25071
25072 # Allow CC to be a program name with arguments.
25073 compiler=$CC
25074
25075
25076 # save warnings/boilerplate of simple test code
25077 ac_outfile=conftest.$ac_objext
25078 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25080 _lt_compiler_boilerplate=`cat conftest.err`
25081 $rm conftest*
25082
25083 ac_outfile=conftest.$ac_objext
25084 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25086 _lt_linker_boilerplate=`cat conftest.err`
25087 $rm conftest*
25088
25089
25090 # Allow CC to be a program name with arguments.
25091 lt_save_CC="$CC"
25092 CC=${RC-"windres"}
25093 compiler=$CC
25094 compiler_RC=$CC
25095 for cc_temp in $compiler""; do
25096   case $cc_temp in
25097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25099     \-*) ;;
25100     *) break;;
25101   esac
25102 done
25103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25104
25105 lt_cv_prog_compiler_c_o_RC=yes
25106
25107 # The else clause should only fire when bootstrapping the
25108 # libtool distribution, otherwise you forgot to ship ltmain.sh
25109 # with your package, and you will get complaints that there are
25110 # no rules to generate ltmain.sh.
25111 if test -f "$ltmain"; then
25112   # See if we are running on zsh, and set the options which allow our commands through
25113   # without removal of \ escapes.
25114   if test -n "${ZSH_VERSION+set}" ; then
25115     setopt NO_GLOB_SUBST
25116   fi
25117   # Now quote all the things that may contain metacharacters while being
25118   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25119   # variables and quote the copies for generation of the libtool script.
25120   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25121     SED SHELL STRIP \
25122     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25123     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25124     deplibs_check_method reload_flag reload_cmds need_locks \
25125     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25126     lt_cv_sys_global_symbol_to_c_name_address \
25127     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25128     old_postinstall_cmds old_postuninstall_cmds \
25129     compiler_RC \
25130     CC_RC \
25131     LD_RC \
25132     lt_prog_compiler_wl_RC \
25133     lt_prog_compiler_pic_RC \
25134     lt_prog_compiler_static_RC \
25135     lt_prog_compiler_no_builtin_flag_RC \
25136     export_dynamic_flag_spec_RC \
25137     thread_safe_flag_spec_RC \
25138     whole_archive_flag_spec_RC \
25139     enable_shared_with_static_runtimes_RC \
25140     old_archive_cmds_RC \
25141     old_archive_from_new_cmds_RC \
25142     predep_objects_RC \
25143     postdep_objects_RC \
25144     predeps_RC \
25145     postdeps_RC \
25146     compiler_lib_search_path_RC \
25147     archive_cmds_RC \
25148     archive_expsym_cmds_RC \
25149     postinstall_cmds_RC \
25150     postuninstall_cmds_RC \
25151     old_archive_from_expsyms_cmds_RC \
25152     allow_undefined_flag_RC \
25153     no_undefined_flag_RC \
25154     export_symbols_cmds_RC \
25155     hardcode_libdir_flag_spec_RC \
25156     hardcode_libdir_flag_spec_ld_RC \
25157     hardcode_libdir_separator_RC \
25158     hardcode_automatic_RC \
25159     module_cmds_RC \
25160     module_expsym_cmds_RC \
25161     lt_cv_prog_compiler_c_o_RC \
25162     exclude_expsyms_RC \
25163     include_expsyms_RC; do
25164
25165     case $var in
25166     old_archive_cmds_RC | \
25167     old_archive_from_new_cmds_RC | \
25168     archive_cmds_RC | \
25169     archive_expsym_cmds_RC | \
25170     module_cmds_RC | \
25171     module_expsym_cmds_RC | \
25172     old_archive_from_expsyms_cmds_RC | \
25173     export_symbols_cmds_RC | \
25174     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25175     postinstall_cmds | postuninstall_cmds | \
25176     old_postinstall_cmds | old_postuninstall_cmds | \
25177     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25178       # Double-quote double-evaled strings.
25179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25180       ;;
25181     *)
25182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25183       ;;
25184     esac
25185   done
25186
25187   case $lt_echo in
25188   *'\$0 --fallback-echo"')
25189     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25190     ;;
25191   esac
25192
25193 cfgfile="$ofile"
25194
25195   cat <<__EOF__ >> "$cfgfile"
25196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25197
25198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25199
25200 # Shell to use when invoking shell scripts.
25201 SHELL=$lt_SHELL
25202
25203 # Whether or not to build shared libraries.
25204 build_libtool_libs=$enable_shared
25205
25206 # Whether or not to build static libraries.
25207 build_old_libs=$enable_static
25208
25209 # Whether or not to add -lc for building shared libraries.
25210 build_libtool_need_lc=$archive_cmds_need_lc_RC
25211
25212 # Whether or not to disallow shared libs when runtime libs are static
25213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25214
25215 # Whether or not to optimize for fast installation.
25216 fast_install=$enable_fast_install
25217
25218 # The host system.
25219 host_alias=$host_alias
25220 host=$host
25221 host_os=$host_os
25222
25223 # The build system.
25224 build_alias=$build_alias
25225 build=$build
25226 build_os=$build_os
25227
25228 # An echo program that does not interpret backslashes.
25229 echo=$lt_echo
25230
25231 # The archiver.
25232 AR=$lt_AR
25233 AR_FLAGS=$lt_AR_FLAGS
25234
25235 # A C compiler.
25236 LTCC=$lt_LTCC
25237
25238 # LTCC compiler flags.
25239 LTCFLAGS=$lt_LTCFLAGS
25240
25241 # A language-specific compiler.
25242 CC=$lt_compiler_RC
25243
25244 # Is the compiler the GNU C compiler?
25245 with_gcc=$GCC_RC
25246
25247 # An ERE matcher.
25248 EGREP=$lt_EGREP
25249
25250 # The linker used to build libraries.
25251 LD=$lt_LD_RC
25252
25253 # Whether we need hard or soft links.
25254 LN_S=$lt_LN_S
25255
25256 # A BSD-compatible nm program.
25257 NM=$lt_NM
25258
25259 # A symbol stripping program
25260 STRIP=$lt_STRIP
25261
25262 # Used to examine libraries when file_magic_cmd begins "file"
25263 MAGIC_CMD=$MAGIC_CMD
25264
25265 # Used on cygwin: DLL creation program.
25266 DLLTOOL="$DLLTOOL"
25267
25268 # Used on cygwin: object dumper.
25269 OBJDUMP="$OBJDUMP"
25270
25271 # Used on cygwin: assembler.
25272 AS="$AS"
25273
25274 # The name of the directory that contains temporary libtool files.
25275 objdir=$objdir
25276
25277 # How to create reloadable object files.
25278 reload_flag=$lt_reload_flag
25279 reload_cmds=$lt_reload_cmds
25280
25281 # How to pass a linker flag through the compiler.
25282 wl=$lt_lt_prog_compiler_wl_RC
25283
25284 # Object file suffix (normally "o").
25285 objext="$ac_objext"
25286
25287 # Old archive suffix (normally "a").
25288 libext="$libext"
25289
25290 # Shared library suffix (normally ".so").
25291 shrext_cmds='$shrext_cmds'
25292
25293 # Executable file suffix (normally "").
25294 exeext="$exeext"
25295
25296 # Additional compiler flags for building library objects.
25297 pic_flag=$lt_lt_prog_compiler_pic_RC
25298 pic_mode=$pic_mode
25299
25300 # What is the maximum length of a command?
25301 max_cmd_len=$lt_cv_sys_max_cmd_len
25302
25303 # Does compiler simultaneously support -c and -o options?
25304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25305
25306 # Must we lock files when doing compilation?
25307 need_locks=$lt_need_locks
25308
25309 # Do we need the lib prefix for modules?
25310 need_lib_prefix=$need_lib_prefix
25311
25312 # Do we need a version for libraries?
25313 need_version=$need_version
25314
25315 # Whether dlopen is supported.
25316 dlopen_support=$enable_dlopen
25317
25318 # Whether dlopen of programs is supported.
25319 dlopen_self=$enable_dlopen_self
25320
25321 # Whether dlopen of statically linked programs is supported.
25322 dlopen_self_static=$enable_dlopen_self_static
25323
25324 # Compiler flag to prevent dynamic linking.
25325 link_static_flag=$lt_lt_prog_compiler_static_RC
25326
25327 # Compiler flag to turn off builtin functions.
25328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25329
25330 # Compiler flag to allow reflexive dlopens.
25331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25332
25333 # Compiler flag to generate shared objects directly from archives.
25334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25335
25336 # Compiler flag to generate thread-safe objects.
25337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25338
25339 # Library versioning type.
25340 version_type=$version_type
25341
25342 # Format of library name prefix.
25343 libname_spec=$lt_libname_spec
25344
25345 # List of archive names.  First name is the real one, the rest are links.
25346 # The last name is the one that the linker finds with -lNAME.
25347 library_names_spec=$lt_library_names_spec
25348
25349 # The coded name of the library, if different from the real name.
25350 soname_spec=$lt_soname_spec
25351
25352 # Commands used to build and install an old-style archive.
25353 RANLIB=$lt_RANLIB
25354 old_archive_cmds=$lt_old_archive_cmds_RC
25355 old_postinstall_cmds=$lt_old_postinstall_cmds
25356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25357
25358 # Create an old-style archive from a shared archive.
25359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25360
25361 # Create a temporary old-style archive to link instead of a shared archive.
25362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25363
25364 # Commands used to build and install a shared archive.
25365 archive_cmds=$lt_archive_cmds_RC
25366 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25367 postinstall_cmds=$lt_postinstall_cmds
25368 postuninstall_cmds=$lt_postuninstall_cmds
25369
25370 # Commands used to build a loadable module (assumed same as above if empty)
25371 module_cmds=$lt_module_cmds_RC
25372 module_expsym_cmds=$lt_module_expsym_cmds_RC
25373
25374 # Commands to strip libraries.
25375 old_striplib=$lt_old_striplib
25376 striplib=$lt_striplib
25377
25378 # Dependencies to place before the objects being linked to create a
25379 # shared library.
25380 predep_objects=$lt_predep_objects_RC
25381
25382 # Dependencies to place after the objects being linked to create a
25383 # shared library.
25384 postdep_objects=$lt_postdep_objects_RC
25385
25386 # Dependencies to place before the objects being linked to create a
25387 # shared library.
25388 predeps=$lt_predeps_RC
25389
25390 # Dependencies to place after the objects being linked to create a
25391 # shared library.
25392 postdeps=$lt_postdeps_RC
25393
25394 # The library search path used internally by the compiler when linking
25395 # a shared library.
25396 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25397
25398 # Method to check whether dependent libraries are shared objects.
25399 deplibs_check_method=$lt_deplibs_check_method
25400
25401 # Command to use when deplibs_check_method == file_magic.
25402 file_magic_cmd=$lt_file_magic_cmd
25403
25404 # Flag that allows shared libraries with undefined symbols to be built.
25405 allow_undefined_flag=$lt_allow_undefined_flag_RC
25406
25407 # Flag that forces no undefined symbols.
25408 no_undefined_flag=$lt_no_undefined_flag_RC
25409
25410 # Commands used to finish a libtool library installation in a directory.
25411 finish_cmds=$lt_finish_cmds
25412
25413 # Same as above, but a single script fragment to be evaled but not shown.
25414 finish_eval=$lt_finish_eval
25415
25416 # Take the output of nm and produce a listing of raw symbols and C names.
25417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25418
25419 # Transform the output of nm in a proper C declaration
25420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25421
25422 # Transform the output of nm in a C name address pair
25423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25424
25425 # This is the shared library runtime path variable.
25426 runpath_var=$runpath_var
25427
25428 # This is the shared library path variable.
25429 shlibpath_var=$shlibpath_var
25430
25431 # Is shlibpath searched before the hard-coded library search path?
25432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25433
25434 # How to hardcode a shared library path into an executable.
25435 hardcode_action=$hardcode_action_RC
25436
25437 # Whether we should hardcode library paths into libraries.
25438 hardcode_into_libs=$hardcode_into_libs
25439
25440 # Flag to hardcode \$libdir into a binary during linking.
25441 # This must work even if \$libdir does not exist.
25442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25443
25444 # If ld is used when linking, flag to hardcode \$libdir into
25445 # a binary during linking. This must work even if \$libdir does
25446 # not exist.
25447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25448
25449 # Whether we need a single -rpath flag with a separated argument.
25450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25451
25452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25453 # resulting binary.
25454 hardcode_direct=$hardcode_direct_RC
25455
25456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25457 # resulting binary.
25458 hardcode_minus_L=$hardcode_minus_L_RC
25459
25460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25461 # the resulting binary.
25462 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25463
25464 # Set to yes if building a shared library automatically hardcodes DIR into the library
25465 # and all subsequent libraries and executables linked against it.
25466 hardcode_automatic=$hardcode_automatic_RC
25467
25468 # Variables whose values should be saved in libtool wrapper scripts and
25469 # restored at relink time.
25470 variables_saved_for_relink="$variables_saved_for_relink"
25471
25472 # Whether libtool must link a program against all its dependency libraries.
25473 link_all_deplibs=$link_all_deplibs_RC
25474
25475 # Compile-time system search path for libraries
25476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25477
25478 # Run-time system search path for libraries
25479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25480
25481 # Fix the shell variable \$srcfile for the compiler.
25482 fix_srcfile_path="$fix_srcfile_path_RC"
25483
25484 # Set to yes if exported symbols are required.
25485 always_export_symbols=$always_export_symbols_RC
25486
25487 # The commands to list exported symbols.
25488 export_symbols_cmds=$lt_export_symbols_cmds_RC
25489
25490 # The commands to extract the exported symbol list from a shared archive.
25491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25492
25493 # Symbols that should not be listed in the preloaded symbols.
25494 exclude_expsyms=$lt_exclude_expsyms_RC
25495
25496 # Symbols that must always be exported.
25497 include_expsyms=$lt_include_expsyms_RC
25498
25499 # ### END LIBTOOL TAG CONFIG: $tagname
25500
25501 __EOF__
25502
25503
25504 else
25505   # If there is no Makefile yet, we rely on a make rule to execute
25506   # `config.status --recheck' to rerun these tests and create the
25507   # libtool script then.
25508   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25509   if test -f "$ltmain_in"; then
25510     test -f Makefile && make "$ltmain"
25511   fi
25512 fi
25513
25514
25515 ac_ext=c
25516 ac_cpp='$CPP $CPPFLAGS'
25517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25520
25521 CC="$lt_save_CC"
25522
25523         ;;
25524
25525       *)
25526         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25527 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25528    { (exit 1); exit 1; }; }
25529         ;;
25530       esac
25531
25532       # Append the new tag name to the list of available tags.
25533       if test -n "$tagname" ; then
25534       available_tags="$available_tags $tagname"
25535     fi
25536     fi
25537   done
25538   IFS="$lt_save_ifs"
25539
25540   # Now substitute the updated list of available tags.
25541   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25542     mv "${ofile}T" "$ofile"
25543     chmod +x "$ofile"
25544   else
25545     rm -f "${ofile}T"
25546     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25547 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25548    { (exit 1); exit 1; }; }
25549   fi
25550 fi
25551
25552
25553
25554 # This can be used to rebuild libtool when needed
25555 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25556
25557 # Always use our own libtool.
25558 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25559
25560 # Prevent multiple expansion
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582 if test "$lt_cv_dlopen_self" = "yes" ; then
25583
25584 cat >>confdefs.h <<\_ACEOF
25585 #define CAN_DLOPEN_SELF 1
25586 _ACEOF
25587
25588 fi
25589
25590 if test "$WITH_LLVMGCCDIR" = "default" ; then
25591   LLVMGCC="llvm-gcc${EXEEXT}"
25592   LLVMGXX="llvm-g++${EXEEXT}"
25593   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25594 set dummy $LLVMGCC; ac_word=$2
25595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25597 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25598   echo $ECHO_N "(cached) $ECHO_C" >&6
25599 else
25600   case $LLVMGCC in
25601   [\\/]* | ?:[\\/]*)
25602   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25603   ;;
25604   *)
25605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25606 for as_dir in $PATH
25607 do
25608   IFS=$as_save_IFS
25609   test -z "$as_dir" && as_dir=.
25610   for ac_exec_ext in '' $ac_executable_extensions; do
25611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25612     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25614     break 2
25615   fi
25616 done
25617 done
25618 IFS=$as_save_IFS
25619
25620   ;;
25621 esac
25622 fi
25623 LLVMGCC=$ac_cv_path_LLVMGCC
25624 if test -n "$LLVMGCC"; then
25625   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25626 echo "${ECHO_T}$LLVMGCC" >&6; }
25627 else
25628   { echo "$as_me:$LINENO: result: no" >&5
25629 echo "${ECHO_T}no" >&6; }
25630 fi
25631
25632
25633   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25634 set dummy $LLVMGXX; ac_word=$2
25635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25637 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640   case $LLVMGXX in
25641   [\\/]* | ?:[\\/]*)
25642   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25643   ;;
25644   *)
25645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25646 for as_dir in $PATH
25647 do
25648   IFS=$as_save_IFS
25649   test -z "$as_dir" && as_dir=.
25650   for ac_exec_ext in '' $ac_executable_extensions; do
25651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25652     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25654     break 2
25655   fi
25656 done
25657 done
25658 IFS=$as_save_IFS
25659
25660   ;;
25661 esac
25662 fi
25663 LLVMGXX=$ac_cv_path_LLVMGXX
25664 if test -n "$LLVMGXX"; then
25665   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25666 echo "${ECHO_T}$LLVMGXX" >&6; }
25667 else
25668   { echo "$as_me:$LINENO: result: no" >&5
25669 echo "${ECHO_T}no" >&6; }
25670 fi
25671
25672
25673 else
25674   if test -z "$LLVMGCC"; then
25675     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25676   fi
25677   if test -z "$LLVMGXX"; then
25678     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25679   fi
25680   LLVMGCC=$LLVMGCC
25681
25682   LLVMGXX=$LLVMGXX
25683
25684 fi
25685
25686 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25687 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25688
25689 ICC=no
25690 IXX=no
25691 case $CC in
25692   icc*|icpc*)
25693     ICC=yes
25694     IXX=yes
25695     ;;
25696    *)
25697     ;;
25698 esac
25699
25700 if test "$GCC" != "yes" && test "$ICC" != "yes"
25701 then
25702   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25703 echo "$as_me: error: gcc|icc required but not found" >&2;}
25704    { (exit 1); exit 1; }; }
25705 fi
25706
25707 if test "$GXX" != "yes" && test "$IXX" != "yes"
25708 then
25709   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25710 echo "$as_me: error: g++|icc required but not found" >&2;}
25711    { (exit 1); exit 1; }; }
25712 fi
25713
25714 if test "$GCC" = "yes"
25715 then
25716   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25717   if test "$gccmajor" -lt "3"
25718   then
25719     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25720 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25721    { (exit 1); exit 1; }; }
25722   fi
25723 fi
25724
25725 if test -z "$llvm_cv_gnu_make_command"
25726 then
25727   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25728 echo "$as_me: error: GNU Make required but not found" >&2;}
25729    { (exit 1); exit 1; }; }
25730 fi
25731
25732 { echo "$as_me:$LINENO: result: ok" >&5
25733 echo "${ECHO_T}ok" >&6; }
25734
25735
25736
25737 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25738 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25739 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25740   echo $ECHO_N "(cached) $ECHO_C" >&6
25741 else
25742   ac_check_lib_save_LIBS=$LIBS
25743 LIBS="-lelf  $LIBS"
25744 cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750
25751 /* Override any GCC internal prototype to avoid an error.
25752    Use char because int might match the return type of a GCC
25753    builtin and then its argument prototype would still apply.  */
25754 #ifdef __cplusplus
25755 extern "C"
25756 #endif
25757 char elf_begin ();
25758 int
25759 main ()
25760 {
25761 return elf_begin ();
25762   ;
25763   return 0;
25764 }
25765 _ACEOF
25766 rm -f conftest.$ac_objext conftest$ac_exeext
25767 if { (ac_try="$ac_link"
25768 case "(($ac_try" in
25769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770   *) ac_try_echo=$ac_try;;
25771 esac
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773   (eval "$ac_link") 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } && {
25780          test -z "$ac_c_werror_flag" ||
25781          test ! -s conftest.err
25782        } && test -s conftest$ac_exeext &&
25783        $as_test_x conftest$ac_exeext; then
25784   ac_cv_lib_elf_elf_begin=yes
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789         ac_cv_lib_elf_elf_begin=no
25790 fi
25791
25792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25793       conftest$ac_exeext conftest.$ac_ext
25794 LIBS=$ac_check_lib_save_LIBS
25795 fi
25796 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25797 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25798 if test $ac_cv_lib_elf_elf_begin = yes; then
25799   cat >>confdefs.h <<_ACEOF
25800 #define HAVE_LIBELF 1
25801 _ACEOF
25802
25803   LIBS="-lelf $LIBS"
25804
25805 fi
25806
25807
25808 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25809 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25810 if test "${ac_cv_lib_m_sin+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813   ac_check_lib_save_LIBS=$LIBS
25814 LIBS="-lm  $LIBS"
25815 cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h.  */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h.  */
25821
25822 /* Override any GCC internal prototype to avoid an error.
25823    Use char because int might match the return type of a GCC
25824    builtin and then its argument prototype would still apply.  */
25825 #ifdef __cplusplus
25826 extern "C"
25827 #endif
25828 char sin ();
25829 int
25830 main ()
25831 {
25832 return sin ();
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (ac_try="$ac_link"
25839 case "(($ac_try" in
25840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25841   *) ac_try_echo=$ac_try;;
25842 esac
25843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844   (eval "$ac_link") 2>conftest.er1
25845   ac_status=$?
25846   grep -v '^ *+' conftest.er1 >conftest.err
25847   rm -f conftest.er1
25848   cat conftest.err >&5
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); } && {
25851          test -z "$ac_c_werror_flag" ||
25852          test ! -s conftest.err
25853        } && test -s conftest$ac_exeext &&
25854        $as_test_x conftest$ac_exeext; then
25855   ac_cv_lib_m_sin=yes
25856 else
25857   echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25859
25860         ac_cv_lib_m_sin=no
25861 fi
25862
25863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25864       conftest$ac_exeext conftest.$ac_ext
25865 LIBS=$ac_check_lib_save_LIBS
25866 fi
25867 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25868 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25869 if test $ac_cv_lib_m_sin = yes; then
25870   cat >>confdefs.h <<_ACEOF
25871 #define HAVE_LIBM 1
25872 _ACEOF
25873
25874   LIBS="-lm $LIBS"
25875
25876 fi
25877
25878 if test "$llvm_cv_os_type" = "MingW" ; then
25879
25880 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25881 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25882 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25883   echo $ECHO_N "(cached) $ECHO_C" >&6
25884 else
25885   ac_check_lib_save_LIBS=$LIBS
25886 LIBS="-limagehlp  $LIBS"
25887 cat >conftest.$ac_ext <<_ACEOF
25888 /* confdefs.h.  */
25889 _ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h.  */
25893
25894
25895 int
25896 main ()
25897 {
25898 return main ();
25899   ;
25900   return 0;
25901 }
25902 _ACEOF
25903 rm -f conftest.$ac_objext conftest$ac_exeext
25904 if { (ac_try="$ac_link"
25905 case "(($ac_try" in
25906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907   *) ac_try_echo=$ac_try;;
25908 esac
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910   (eval "$ac_link") 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } && {
25917          test -z "$ac_c_werror_flag" ||
25918          test ! -s conftest.err
25919        } && test -s conftest$ac_exeext &&
25920        $as_test_x conftest$ac_exeext; then
25921   ac_cv_lib_imagehlp_main=yes
25922 else
25923   echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25925
25926         ac_cv_lib_imagehlp_main=no
25927 fi
25928
25929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25930       conftest$ac_exeext conftest.$ac_ext
25931 LIBS=$ac_check_lib_save_LIBS
25932 fi
25933 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25934 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25935 if test $ac_cv_lib_imagehlp_main = yes; then
25936   cat >>confdefs.h <<_ACEOF
25937 #define HAVE_LIBIMAGEHLP 1
25938 _ACEOF
25939
25940   LIBS="-limagehlp $LIBS"
25941
25942 fi
25943
25944
25945 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25946 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25947 if test "${ac_cv_lib_psapi_main+set}" = set; then
25948   echo $ECHO_N "(cached) $ECHO_C" >&6
25949 else
25950   ac_check_lib_save_LIBS=$LIBS
25951 LIBS="-lpsapi  $LIBS"
25952 cat >conftest.$ac_ext <<_ACEOF
25953 /* confdefs.h.  */
25954 _ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h.  */
25958
25959
25960 int
25961 main ()
25962 {
25963 return main ();
25964   ;
25965   return 0;
25966 }
25967 _ACEOF
25968 rm -f conftest.$ac_objext conftest$ac_exeext
25969 if { (ac_try="$ac_link"
25970 case "(($ac_try" in
25971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972   *) ac_try_echo=$ac_try;;
25973 esac
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975   (eval "$ac_link") 2>conftest.er1
25976   ac_status=$?
25977   grep -v '^ *+' conftest.er1 >conftest.err
25978   rm -f conftest.er1
25979   cat conftest.err >&5
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); } && {
25982          test -z "$ac_c_werror_flag" ||
25983          test ! -s conftest.err
25984        } && test -s conftest$ac_exeext &&
25985        $as_test_x conftest$ac_exeext; then
25986   ac_cv_lib_psapi_main=yes
25987 else
25988   echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991         ac_cv_lib_psapi_main=no
25992 fi
25993
25994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25995       conftest$ac_exeext conftest.$ac_ext
25996 LIBS=$ac_check_lib_save_LIBS
25997 fi
25998 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25999 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26000 if test $ac_cv_lib_psapi_main = yes; then
26001   cat >>confdefs.h <<_ACEOF
26002 #define HAVE_LIBPSAPI 1
26003 _ACEOF
26004
26005   LIBS="-lpsapi $LIBS"
26006
26007 fi
26008
26009 fi
26010
26011 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26012 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26013 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26014   echo $ECHO_N "(cached) $ECHO_C" >&6
26015 else
26016   ac_func_search_save_LIBS=$LIBS
26017 cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023
26024 /* Override any GCC internal prototype to avoid an error.
26025    Use char because int might match the return type of a GCC
26026    builtin and then its argument prototype would still apply.  */
26027 #ifdef __cplusplus
26028 extern "C"
26029 #endif
26030 char lt_dlopen ();
26031 int
26032 main ()
26033 {
26034 return lt_dlopen ();
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 for ac_lib in '' ltdl; do
26040   if test -z "$ac_lib"; then
26041     ac_res="none required"
26042   else
26043     ac_res=-l$ac_lib
26044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26045   fi
26046   rm -f conftest.$ac_objext conftest$ac_exeext
26047 if { (ac_try="$ac_link"
26048 case "(($ac_try" in
26049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050   *) ac_try_echo=$ac_try;;
26051 esac
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053   (eval "$ac_link") 2>conftest.er1
26054   ac_status=$?
26055   grep -v '^ *+' conftest.er1 >conftest.err
26056   rm -f conftest.er1
26057   cat conftest.err >&5
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } && {
26060          test -z "$ac_c_werror_flag" ||
26061          test ! -s conftest.err
26062        } && test -s conftest$ac_exeext &&
26063        $as_test_x conftest$ac_exeext; then
26064   ac_cv_search_lt_dlopen=$ac_res
26065 else
26066   echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069
26070 fi
26071
26072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26073       conftest$ac_exeext
26074   if test "${ac_cv_search_lt_dlopen+set}" = set; then
26075   break
26076 fi
26077 done
26078 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26079   :
26080 else
26081   ac_cv_search_lt_dlopen=no
26082 fi
26083 rm conftest.$ac_ext
26084 LIBS=$ac_func_search_save_LIBS
26085 fi
26086 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26087 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26088 ac_res=$ac_cv_search_lt_dlopen
26089 if test "$ac_res" != no; then
26090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26091
26092 cat >>confdefs.h <<\_ACEOF
26093 #define HAVE_LT_DLOPEN 1
26094 _ACEOF
26095
26096 else
26097   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26098                            not be available" >&5
26099 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26100                            not be available" >&2;}
26101 fi
26102
26103
26104 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26105 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26106 if test "${ac_cv_search_dlopen+set}" = set; then
26107   echo $ECHO_N "(cached) $ECHO_C" >&6
26108 else
26109   ac_func_search_save_LIBS=$LIBS
26110 cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h.  */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h.  */
26116
26117 /* Override any GCC internal prototype to avoid an error.
26118    Use char because int might match the return type of a GCC
26119    builtin and then its argument prototype would still apply.  */
26120 #ifdef __cplusplus
26121 extern "C"
26122 #endif
26123 char dlopen ();
26124 int
26125 main ()
26126 {
26127 return dlopen ();
26128   ;
26129   return 0;
26130 }
26131 _ACEOF
26132 for ac_lib in '' dl; do
26133   if test -z "$ac_lib"; then
26134     ac_res="none required"
26135   else
26136     ac_res=-l$ac_lib
26137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26138   fi
26139   rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146   (eval "$ac_link") 2>conftest.er1
26147   ac_status=$?
26148   grep -v '^ *+' conftest.er1 >conftest.err
26149   rm -f conftest.er1
26150   cat conftest.err >&5
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); } && {
26153          test -z "$ac_c_werror_flag" ||
26154          test ! -s conftest.err
26155        } && test -s conftest$ac_exeext &&
26156        $as_test_x conftest$ac_exeext; then
26157   ac_cv_search_dlopen=$ac_res
26158 else
26159   echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26161
26162
26163 fi
26164
26165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26166       conftest$ac_exeext
26167   if test "${ac_cv_search_dlopen+set}" = set; then
26168   break
26169 fi
26170 done
26171 if test "${ac_cv_search_dlopen+set}" = set; then
26172   :
26173 else
26174   ac_cv_search_dlopen=no
26175 fi
26176 rm conftest.$ac_ext
26177 LIBS=$ac_func_search_save_LIBS
26178 fi
26179 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26180 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26181 ac_res=$ac_cv_search_dlopen
26182 if test "$ac_res" != no; then
26183   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26184
26185 cat >>confdefs.h <<\_ACEOF
26186 #define HAVE_DLOPEN 1
26187 _ACEOF
26188
26189 else
26190   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26191 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26192 fi
26193
26194
26195 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26196 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26197 if test "${ac_cv_search_mallinfo+set}" = set; then
26198   echo $ECHO_N "(cached) $ECHO_C" >&6
26199 else
26200   ac_func_search_save_LIBS=$LIBS
26201 cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207
26208 /* Override any GCC internal prototype to avoid an error.
26209    Use char because int might match the return type of a GCC
26210    builtin and then its argument prototype would still apply.  */
26211 #ifdef __cplusplus
26212 extern "C"
26213 #endif
26214 char mallinfo ();
26215 int
26216 main ()
26217 {
26218 return mallinfo ();
26219   ;
26220   return 0;
26221 }
26222 _ACEOF
26223 for ac_lib in '' malloc; do
26224   if test -z "$ac_lib"; then
26225     ac_res="none required"
26226   else
26227     ac_res=-l$ac_lib
26228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26229   fi
26230   rm -f conftest.$ac_objext conftest$ac_exeext
26231 if { (ac_try="$ac_link"
26232 case "(($ac_try" in
26233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26234   *) ac_try_echo=$ac_try;;
26235 esac
26236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26237   (eval "$ac_link") 2>conftest.er1
26238   ac_status=$?
26239   grep -v '^ *+' conftest.er1 >conftest.err
26240   rm -f conftest.er1
26241   cat conftest.err >&5
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } && {
26244          test -z "$ac_c_werror_flag" ||
26245          test ! -s conftest.err
26246        } && test -s conftest$ac_exeext &&
26247        $as_test_x conftest$ac_exeext; then
26248   ac_cv_search_mallinfo=$ac_res
26249 else
26250   echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26252
26253
26254 fi
26255
26256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26257       conftest$ac_exeext
26258   if test "${ac_cv_search_mallinfo+set}" = set; then
26259   break
26260 fi
26261 done
26262 if test "${ac_cv_search_mallinfo+set}" = set; then
26263   :
26264 else
26265   ac_cv_search_mallinfo=no
26266 fi
26267 rm conftest.$ac_ext
26268 LIBS=$ac_func_search_save_LIBS
26269 fi
26270 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26271 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26272 ac_res=$ac_cv_search_mallinfo
26273 if test "$ac_res" != no; then
26274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26275
26276 cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_MALLINFO 1
26278 _ACEOF
26279
26280 fi
26281
26282
26283 if test "$ENABLE_THREADS" -eq 1 ; then
26284
26285 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26286 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26287 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26288   echo $ECHO_N "(cached) $ECHO_C" >&6
26289 else
26290   ac_check_lib_save_LIBS=$LIBS
26291 LIBS="-lpthread  $LIBS"
26292 cat >conftest.$ac_ext <<_ACEOF
26293 /* confdefs.h.  */
26294 _ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h.  */
26298
26299 /* Override any GCC internal prototype to avoid an error.
26300    Use char because int might match the return type of a GCC
26301    builtin and then its argument prototype would still apply.  */
26302 #ifdef __cplusplus
26303 extern "C"
26304 #endif
26305 char pthread_mutex_init ();
26306 int
26307 main ()
26308 {
26309 return pthread_mutex_init ();
26310   ;
26311   return 0;
26312 }
26313 _ACEOF
26314 rm -f conftest.$ac_objext conftest$ac_exeext
26315 if { (ac_try="$ac_link"
26316 case "(($ac_try" in
26317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318   *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321   (eval "$ac_link") 2>conftest.er1
26322   ac_status=$?
26323   grep -v '^ *+' conftest.er1 >conftest.err
26324   rm -f conftest.er1
26325   cat conftest.err >&5
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } && {
26328          test -z "$ac_c_werror_flag" ||
26329          test ! -s conftest.err
26330        } && test -s conftest$ac_exeext &&
26331        $as_test_x conftest$ac_exeext; then
26332   ac_cv_lib_pthread_pthread_mutex_init=yes
26333 else
26334   echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26336
26337         ac_cv_lib_pthread_pthread_mutex_init=no
26338 fi
26339
26340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26341       conftest$ac_exeext conftest.$ac_ext
26342 LIBS=$ac_check_lib_save_LIBS
26343 fi
26344 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26345 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26346 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26347   cat >>confdefs.h <<_ACEOF
26348 #define HAVE_LIBPTHREAD 1
26349 _ACEOF
26350
26351   LIBS="-lpthread $LIBS"
26352
26353 fi
26354
26355   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26356 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26357 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 else
26360   ac_func_search_save_LIBS=$LIBS
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367
26368 /* Override any GCC internal prototype to avoid an error.
26369    Use char because int might match the return type of a GCC
26370    builtin and then its argument prototype would still apply.  */
26371 #ifdef __cplusplus
26372 extern "C"
26373 #endif
26374 char pthread_mutex_lock ();
26375 int
26376 main ()
26377 {
26378 return pthread_mutex_lock ();
26379   ;
26380   return 0;
26381 }
26382 _ACEOF
26383 for ac_lib in '' pthread; do
26384   if test -z "$ac_lib"; then
26385     ac_res="none required"
26386   else
26387     ac_res=-l$ac_lib
26388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26389   fi
26390   rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (ac_try="$ac_link"
26392 case "(($ac_try" in
26393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394   *) ac_try_echo=$ac_try;;
26395 esac
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397   (eval "$ac_link") 2>conftest.er1
26398   ac_status=$?
26399   grep -v '^ *+' conftest.er1 >conftest.err
26400   rm -f conftest.er1
26401   cat conftest.err >&5
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); } && {
26404          test -z "$ac_c_werror_flag" ||
26405          test ! -s conftest.err
26406        } && test -s conftest$ac_exeext &&
26407        $as_test_x conftest$ac_exeext; then
26408   ac_cv_search_pthread_mutex_lock=$ac_res
26409 else
26410   echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26412
26413
26414 fi
26415
26416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26417       conftest$ac_exeext
26418   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26419   break
26420 fi
26421 done
26422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26423   :
26424 else
26425   ac_cv_search_pthread_mutex_lock=no
26426 fi
26427 rm conftest.$ac_ext
26428 LIBS=$ac_func_search_save_LIBS
26429 fi
26430 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26431 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26432 ac_res=$ac_cv_search_pthread_mutex_lock
26433 if test "$ac_res" != no; then
26434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26435
26436 cat >>confdefs.h <<\_ACEOF
26437 #define HAVE_PTHREAD_MUTEX_LOCK 1
26438 _ACEOF
26439
26440 fi
26441
26442 fi
26443
26444
26445 # Check whether --with-udis86 was given.
26446 if test "${with_udis86+set}" = set; then
26447   withval=$with_udis86;
26448       USE_UDIS86=1
26449
26450       case "$withval" in
26451         /usr/lib|yes) ;;
26452         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26453       esac
26454
26455 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26456 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26457 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26458   echo $ECHO_N "(cached) $ECHO_C" >&6
26459 else
26460   ac_check_lib_save_LIBS=$LIBS
26461 LIBS="-ludis86  $LIBS"
26462 cat >conftest.$ac_ext <<_ACEOF
26463 /* confdefs.h.  */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h.  */
26468
26469 /* Override any GCC internal prototype to avoid an error.
26470    Use char because int might match the return type of a GCC
26471    builtin and then its argument prototype would still apply.  */
26472 #ifdef __cplusplus
26473 extern "C"
26474 #endif
26475 char ud_init ();
26476 int
26477 main ()
26478 {
26479 return ud_init ();
26480   ;
26481   return 0;
26482 }
26483 _ACEOF
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488   *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491   (eval "$ac_link") 2>conftest.er1
26492   ac_status=$?
26493   grep -v '^ *+' conftest.er1 >conftest.err
26494   rm -f conftest.er1
26495   cat conftest.err >&5
26496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); } && {
26498          test -z "$ac_c_werror_flag" ||
26499          test ! -s conftest.err
26500        } && test -s conftest$ac_exeext &&
26501        $as_test_x conftest$ac_exeext; then
26502   ac_cv_lib_udis86_ud_init=yes
26503 else
26504   echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507         ac_cv_lib_udis86_ud_init=no
26508 fi
26509
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511       conftest$ac_exeext conftest.$ac_ext
26512 LIBS=$ac_check_lib_save_LIBS
26513 fi
26514 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26515 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26516 if test $ac_cv_lib_udis86_ud_init = yes; then
26517   cat >>confdefs.h <<_ACEOF
26518 #define HAVE_LIBUDIS86 1
26519 _ACEOF
26520
26521   LIBS="-ludis86 $LIBS"
26522
26523 else
26524
26525         echo "Error! You need to have libudis86 around."
26526         exit -1
26527
26528 fi
26529
26530
26531 else
26532   USE_UDIS86=0
26533
26534 fi
26535
26536
26537 cat >>confdefs.h <<_ACEOF
26538 #define USE_UDIS86 $USE_UDIS86
26539 _ACEOF
26540
26541
26542
26543
26544
26545
26546
26547
26548 ac_header_dirent=no
26549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26550   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26551 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26552 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26554   echo $ECHO_N "(cached) $ECHO_C" >&6
26555 else
26556   cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h.  */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h.  */
26562 #include <sys/types.h>
26563 #include <$ac_hdr>
26564
26565 int
26566 main ()
26567 {
26568 if ((DIR *) 0)
26569 return 0;
26570   ;
26571   return 0;
26572 }
26573 _ACEOF
26574 rm -f conftest.$ac_objext
26575 if { (ac_try="$ac_compile"
26576 case "(($ac_try" in
26577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578   *) ac_try_echo=$ac_try;;
26579 esac
26580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581   (eval "$ac_compile") 2>conftest.er1
26582   ac_status=$?
26583   grep -v '^ *+' conftest.er1 >conftest.err
26584   rm -f conftest.er1
26585   cat conftest.err >&5
26586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587   (exit $ac_status); } && {
26588          test -z "$ac_c_werror_flag" ||
26589          test ! -s conftest.err
26590        } && test -s conftest.$ac_objext; then
26591   eval "$as_ac_Header=yes"
26592 else
26593   echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26595
26596         eval "$as_ac_Header=no"
26597 fi
26598
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26600 fi
26601 ac_res=`eval echo '${'$as_ac_Header'}'`
26602                { echo "$as_me:$LINENO: result: $ac_res" >&5
26603 echo "${ECHO_T}$ac_res" >&6; }
26604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26605   cat >>confdefs.h <<_ACEOF
26606 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26607 _ACEOF
26608
26609 ac_header_dirent=$ac_hdr; break
26610 fi
26611
26612 done
26613 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26614 if test $ac_header_dirent = dirent.h; then
26615   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26616 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26617 if test "${ac_cv_search_opendir+set}" = set; then
26618   echo $ECHO_N "(cached) $ECHO_C" >&6
26619 else
26620   ac_func_search_save_LIBS=$LIBS
26621 cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627
26628 /* Override any GCC internal prototype to avoid an error.
26629    Use char because int might match the return type of a GCC
26630    builtin and then its argument prototype would still apply.  */
26631 #ifdef __cplusplus
26632 extern "C"
26633 #endif
26634 char opendir ();
26635 int
26636 main ()
26637 {
26638 return opendir ();
26639   ;
26640   return 0;
26641 }
26642 _ACEOF
26643 for ac_lib in '' dir; do
26644   if test -z "$ac_lib"; then
26645     ac_res="none required"
26646   else
26647     ac_res=-l$ac_lib
26648     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26649   fi
26650   rm -f conftest.$ac_objext conftest$ac_exeext
26651 if { (ac_try="$ac_link"
26652 case "(($ac_try" in
26653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654   *) ac_try_echo=$ac_try;;
26655 esac
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657   (eval "$ac_link") 2>conftest.er1
26658   ac_status=$?
26659   grep -v '^ *+' conftest.er1 >conftest.err
26660   rm -f conftest.er1
26661   cat conftest.err >&5
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); } && {
26664          test -z "$ac_c_werror_flag" ||
26665          test ! -s conftest.err
26666        } && test -s conftest$ac_exeext &&
26667        $as_test_x conftest$ac_exeext; then
26668   ac_cv_search_opendir=$ac_res
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673
26674 fi
26675
26676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26677       conftest$ac_exeext
26678   if test "${ac_cv_search_opendir+set}" = set; then
26679   break
26680 fi
26681 done
26682 if test "${ac_cv_search_opendir+set}" = set; then
26683   :
26684 else
26685   ac_cv_search_opendir=no
26686 fi
26687 rm conftest.$ac_ext
26688 LIBS=$ac_func_search_save_LIBS
26689 fi
26690 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26691 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26692 ac_res=$ac_cv_search_opendir
26693 if test "$ac_res" != no; then
26694   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26695
26696 fi
26697
26698 else
26699   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26700 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26701 if test "${ac_cv_search_opendir+set}" = set; then
26702   echo $ECHO_N "(cached) $ECHO_C" >&6
26703 else
26704   ac_func_search_save_LIBS=$LIBS
26705 cat >conftest.$ac_ext <<_ACEOF
26706 /* confdefs.h.  */
26707 _ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h.  */
26711
26712 /* Override any GCC internal prototype to avoid an error.
26713    Use char because int might match the return type of a GCC
26714    builtin and then its argument prototype would still apply.  */
26715 #ifdef __cplusplus
26716 extern "C"
26717 #endif
26718 char opendir ();
26719 int
26720 main ()
26721 {
26722 return opendir ();
26723   ;
26724   return 0;
26725 }
26726 _ACEOF
26727 for ac_lib in '' x; do
26728   if test -z "$ac_lib"; then
26729     ac_res="none required"
26730   else
26731     ac_res=-l$ac_lib
26732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26733   fi
26734   rm -f conftest.$ac_objext conftest$ac_exeext
26735 if { (ac_try="$ac_link"
26736 case "(($ac_try" in
26737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738   *) ac_try_echo=$ac_try;;
26739 esac
26740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741   (eval "$ac_link") 2>conftest.er1
26742   ac_status=$?
26743   grep -v '^ *+' conftest.er1 >conftest.err
26744   rm -f conftest.er1
26745   cat conftest.err >&5
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } && {
26748          test -z "$ac_c_werror_flag" ||
26749          test ! -s conftest.err
26750        } && test -s conftest$ac_exeext &&
26751        $as_test_x conftest$ac_exeext; then
26752   ac_cv_search_opendir=$ac_res
26753 else
26754   echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26756
26757
26758 fi
26759
26760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26761       conftest$ac_exeext
26762   if test "${ac_cv_search_opendir+set}" = set; then
26763   break
26764 fi
26765 done
26766 if test "${ac_cv_search_opendir+set}" = set; then
26767   :
26768 else
26769   ac_cv_search_opendir=no
26770 fi
26771 rm conftest.$ac_ext
26772 LIBS=$ac_func_search_save_LIBS
26773 fi
26774 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26775 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26776 ac_res=$ac_cv_search_opendir
26777 if test "$ac_res" != no; then
26778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26779
26780 fi
26781
26782 fi
26783
26784 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26785 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26786 if test "${ac_cv_header_mmap_anon+set}" = set; then
26787   echo $ECHO_N "(cached) $ECHO_C" >&6
26788 else
26789    ac_ext=c
26790 ac_cpp='$CPP $CPPFLAGS'
26791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26794
26795   cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801 #include <sys/mman.h>
26802 #include <unistd.h>
26803 #include <fcntl.h>
26804 int
26805 main ()
26806 {
26807 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 rm -f conftest.$ac_objext
26813 if { (ac_try="$ac_compile"
26814 case "(($ac_try" in
26815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816   *) ac_try_echo=$ac_try;;
26817 esac
26818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819   (eval "$ac_compile") 2>conftest.er1
26820   ac_status=$?
26821   grep -v '^ *+' conftest.er1 >conftest.err
26822   rm -f conftest.er1
26823   cat conftest.err >&5
26824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825   (exit $ac_status); } && {
26826          test -z "$ac_c_werror_flag" ||
26827          test ! -s conftest.err
26828        } && test -s conftest.$ac_objext; then
26829   ac_cv_header_mmap_anon=yes
26830 else
26831   echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26833
26834         ac_cv_header_mmap_anon=no
26835 fi
26836
26837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26838   ac_ext=c
26839 ac_cpp='$CPP $CPPFLAGS'
26840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26843
26844
26845 fi
26846 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26847 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26848 if test "$ac_cv_header_mmap_anon" = yes; then
26849
26850 cat >>confdefs.h <<\_ACEOF
26851 #define HAVE_MMAP_ANONYMOUS 1
26852 _ACEOF
26853
26854 fi
26855
26856 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26857 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26858 if test "${ac_cv_header_stat_broken+set}" = set; then
26859   echo $ECHO_N "(cached) $ECHO_C" >&6
26860 else
26861   cat >conftest.$ac_ext <<_ACEOF
26862 /* confdefs.h.  */
26863 _ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h.  */
26867 #include <sys/types.h>
26868 #include <sys/stat.h>
26869
26870 #if defined S_ISBLK && defined S_IFDIR
26871 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26872 #endif
26873
26874 #if defined S_ISBLK && defined S_IFCHR
26875 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26876 #endif
26877
26878 #if defined S_ISLNK && defined S_IFREG
26879 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26880 #endif
26881
26882 #if defined S_ISSOCK && defined S_IFREG
26883 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26884 #endif
26885
26886 _ACEOF
26887 rm -f conftest.$ac_objext
26888 if { (ac_try="$ac_compile"
26889 case "(($ac_try" in
26890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891   *) ac_try_echo=$ac_try;;
26892 esac
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894   (eval "$ac_compile") 2>conftest.er1
26895   ac_status=$?
26896   grep -v '^ *+' conftest.er1 >conftest.err
26897   rm -f conftest.er1
26898   cat conftest.err >&5
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); } && {
26901          test -z "$ac_c_werror_flag" ||
26902          test ! -s conftest.err
26903        } && test -s conftest.$ac_objext; then
26904   ac_cv_header_stat_broken=no
26905 else
26906   echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26908
26909         ac_cv_header_stat_broken=yes
26910 fi
26911
26912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26913 fi
26914 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26915 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26916 if test $ac_cv_header_stat_broken = yes; then
26917
26918 cat >>confdefs.h <<\_ACEOF
26919 #define STAT_MACROS_BROKEN 1
26920 _ACEOF
26921
26922 fi
26923
26924 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26926 if test "${ac_cv_header_stdc+set}" = set; then
26927   echo $ECHO_N "(cached) $ECHO_C" >&6
26928 else
26929   cat >conftest.$ac_ext <<_ACEOF
26930 /* confdefs.h.  */
26931 _ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h.  */
26935 #include <stdlib.h>
26936 #include <stdarg.h>
26937 #include <string.h>
26938 #include <float.h>
26939
26940 int
26941 main ()
26942 {
26943
26944   ;
26945   return 0;
26946 }
26947 _ACEOF
26948 rm -f conftest.$ac_objext
26949 if { (ac_try="$ac_compile"
26950 case "(($ac_try" in
26951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952   *) ac_try_echo=$ac_try;;
26953 esac
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955   (eval "$ac_compile") 2>conftest.er1
26956   ac_status=$?
26957   grep -v '^ *+' conftest.er1 >conftest.err
26958   rm -f conftest.er1
26959   cat conftest.err >&5
26960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); } && {
26962          test -z "$ac_c_werror_flag" ||
26963          test ! -s conftest.err
26964        } && test -s conftest.$ac_objext; then
26965   ac_cv_header_stdc=yes
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970         ac_cv_header_stdc=no
26971 fi
26972
26973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974
26975 if test $ac_cv_header_stdc = yes; then
26976   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26977   cat >conftest.$ac_ext <<_ACEOF
26978 /* confdefs.h.  */
26979 _ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h.  */
26983 #include <string.h>
26984
26985 _ACEOF
26986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26987   $EGREP "memchr" >/dev/null 2>&1; then
26988   :
26989 else
26990   ac_cv_header_stdc=no
26991 fi
26992 rm -f conftest*
26993
26994 fi
26995
26996 if test $ac_cv_header_stdc = yes; then
26997   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26998   cat >conftest.$ac_ext <<_ACEOF
26999 /* confdefs.h.  */
27000 _ACEOF
27001 cat confdefs.h >>conftest.$ac_ext
27002 cat >>conftest.$ac_ext <<_ACEOF
27003 /* end confdefs.h.  */
27004 #include <stdlib.h>
27005
27006 _ACEOF
27007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27008   $EGREP "free" >/dev/null 2>&1; then
27009   :
27010 else
27011   ac_cv_header_stdc=no
27012 fi
27013 rm -f conftest*
27014
27015 fi
27016
27017 if test $ac_cv_header_stdc = yes; then
27018   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27019   if test "$cross_compiling" = yes; then
27020   :
27021 else
27022   cat >conftest.$ac_ext <<_ACEOF
27023 /* confdefs.h.  */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h.  */
27028 #include <ctype.h>
27029 #include <stdlib.h>
27030 #if ((' ' & 0x0FF) == 0x020)
27031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27033 #else
27034 # define ISLOWER(c) \
27035                    (('a' <= (c) && (c) <= 'i') \
27036                      || ('j' <= (c) && (c) <= 'r') \
27037                      || ('s' <= (c) && (c) <= 'z'))
27038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27039 #endif
27040
27041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27042 int
27043 main ()
27044 {
27045   int i;
27046   for (i = 0; i < 256; i++)
27047     if (XOR (islower (i), ISLOWER (i))
27048         || toupper (i) != TOUPPER (i))
27049       return 2;
27050   return 0;
27051 }
27052 _ACEOF
27053 rm -f conftest$ac_exeext
27054 if { (ac_try="$ac_link"
27055 case "(($ac_try" in
27056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057   *) ac_try_echo=$ac_try;;
27058 esac
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060   (eval "$ac_link") 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27064   { (case "(($ac_try" in
27065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066   *) ac_try_echo=$ac_try;;
27067 esac
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069   (eval "$ac_try") 2>&5
27070   ac_status=$?
27071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072   (exit $ac_status); }; }; then
27073   :
27074 else
27075   echo "$as_me: program exited with status $ac_status" >&5
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079 ( exit $ac_status )
27080 ac_cv_header_stdc=no
27081 fi
27082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27083 fi
27084
27085
27086 fi
27087 fi
27088 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27089 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27090 if test $ac_cv_header_stdc = yes; then
27091
27092 cat >>confdefs.h <<\_ACEOF
27093 #define STDC_HEADERS 1
27094 _ACEOF
27095
27096 fi
27097
27098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27101   echo $ECHO_N "(cached) $ECHO_C" >&6
27102 else
27103   cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109 #include <sys/types.h>
27110 #include <sys/wait.h>
27111 #ifndef WEXITSTATUS
27112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27113 #endif
27114 #ifndef WIFEXITED
27115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27116 #endif
27117
27118 int
27119 main ()
27120 {
27121   int s;
27122   wait (&s);
27123   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27124   ;
27125   return 0;
27126 }
27127 _ACEOF
27128 rm -f conftest.$ac_objext
27129 if { (ac_try="$ac_compile"
27130 case "(($ac_try" in
27131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132   *) ac_try_echo=$ac_try;;
27133 esac
27134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135   (eval "$ac_compile") 2>conftest.er1
27136   ac_status=$?
27137   grep -v '^ *+' conftest.er1 >conftest.err
27138   rm -f conftest.er1
27139   cat conftest.err >&5
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); } && {
27142          test -z "$ac_c_werror_flag" ||
27143          test ! -s conftest.err
27144        } && test -s conftest.$ac_objext; then
27145   ac_cv_header_sys_wait_h=yes
27146 else
27147   echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27149
27150         ac_cv_header_sys_wait_h=no
27151 fi
27152
27153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27154 fi
27155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27156 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27157 if test $ac_cv_header_sys_wait_h = yes; then
27158
27159 cat >>confdefs.h <<\_ACEOF
27160 #define HAVE_SYS_WAIT_H 1
27161 _ACEOF
27162
27163 fi
27164
27165 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27166 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27167 if test "${ac_cv_header_time+set}" = set; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176 #include <sys/types.h>
27177 #include <sys/time.h>
27178 #include <time.h>
27179
27180 int
27181 main ()
27182 {
27183 if ((struct tm *) 0)
27184 return 0;
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_compile") 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } && {
27203          test -z "$ac_c_werror_flag" ||
27204          test ! -s conftest.err
27205        } && test -s conftest.$ac_objext; then
27206   ac_cv_header_time=yes
27207 else
27208   echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27210
27211         ac_cv_header_time=no
27212 fi
27213
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 fi
27216 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27217 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27218 if test $ac_cv_header_time = yes; then
27219
27220 cat >>confdefs.h <<\_ACEOF
27221 #define TIME_WITH_SYS_TIME 1
27222 _ACEOF
27223
27224 fi
27225
27226
27227
27228
27229
27230
27231
27232
27233 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27234 do
27235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27240   echo $ECHO_N "(cached) $ECHO_C" >&6
27241 fi
27242 ac_res=`eval echo '${'$as_ac_Header'}'`
27243                { echo "$as_me:$LINENO: result: $ac_res" >&5
27244 echo "${ECHO_T}$ac_res" >&6; }
27245 else
27246   # Is the header compilable?
27247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27249 cat >conftest.$ac_ext <<_ACEOF
27250 /* confdefs.h.  */
27251 _ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h.  */
27255 $ac_includes_default
27256 #include <$ac_header>
27257 _ACEOF
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265   (eval "$ac_compile") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } && {
27272          test -z "$ac_c_werror_flag" ||
27273          test ! -s conftest.err
27274        } && test -s conftest.$ac_objext; then
27275   ac_header_compiler=yes
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280         ac_header_compiler=no
27281 fi
27282
27283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27285 echo "${ECHO_T}$ac_header_compiler" >&6; }
27286
27287 # Is the header present?
27288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27290 cat >conftest.$ac_ext <<_ACEOF
27291 /* confdefs.h.  */
27292 _ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h.  */
27296 #include <$ac_header>
27297 _ACEOF
27298 if { (ac_try="$ac_cpp conftest.$ac_ext"
27299 case "(($ac_try" in
27300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301   *) ac_try_echo=$ac_try;;
27302 esac
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } >/dev/null && {
27311          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        }; then
27314   ac_header_preproc=yes
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319   ac_header_preproc=no
27320 fi
27321
27322 rm -f conftest.err conftest.$ac_ext
27323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27324 echo "${ECHO_T}$ac_header_preproc" >&6; }
27325
27326 # So?  What about this header?
27327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27328   yes:no: )
27329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27333     ac_header_preproc=yes
27334     ;;
27335   no:yes:* )
27336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27348     ( cat <<\_ASBOX
27349 ## ----------------------------------- ##
27350 ## Report this to llvmbugs@cs.uiuc.edu ##
27351 ## ----------------------------------- ##
27352 _ASBOX
27353      ) | sed "s/^/$as_me: WARNING:     /" >&2
27354     ;;
27355 esac
27356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27359   echo $ECHO_N "(cached) $ECHO_C" >&6
27360 else
27361   eval "$as_ac_Header=\$ac_header_preproc"
27362 fi
27363 ac_res=`eval echo '${'$as_ac_Header'}'`
27364                { echo "$as_me:$LINENO: result: $ac_res" >&5
27365 echo "${ECHO_T}$ac_res" >&6; }
27366
27367 fi
27368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27369   cat >>confdefs.h <<_ACEOF
27370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27371 _ACEOF
27372
27373 fi
27374
27375 done
27376
27377
27378
27379
27380
27381
27382
27383 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27384 do
27385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27390   echo $ECHO_N "(cached) $ECHO_C" >&6
27391 fi
27392 ac_res=`eval echo '${'$as_ac_Header'}'`
27393                { echo "$as_me:$LINENO: result: $ac_res" >&5
27394 echo "${ECHO_T}$ac_res" >&6; }
27395 else
27396   # Is the header compilable?
27397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27399 cat >conftest.$ac_ext <<_ACEOF
27400 /* confdefs.h.  */
27401 _ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h.  */
27405 $ac_includes_default
27406 #include <$ac_header>
27407 _ACEOF
27408 rm -f conftest.$ac_objext
27409 if { (ac_try="$ac_compile"
27410 case "(($ac_try" in
27411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412   *) ac_try_echo=$ac_try;;
27413 esac
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415   (eval "$ac_compile") 2>conftest.er1
27416   ac_status=$?
27417   grep -v '^ *+' conftest.er1 >conftest.err
27418   rm -f conftest.er1
27419   cat conftest.err >&5
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); } && {
27422          test -z "$ac_c_werror_flag" ||
27423          test ! -s conftest.err
27424        } && test -s conftest.$ac_objext; then
27425   ac_header_compiler=yes
27426 else
27427   echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27429
27430         ac_header_compiler=no
27431 fi
27432
27433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27435 echo "${ECHO_T}$ac_header_compiler" >&6; }
27436
27437 # Is the header present?
27438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27440 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446 #include <$ac_header>
27447 _ACEOF
27448 if { (ac_try="$ac_cpp conftest.$ac_ext"
27449 case "(($ac_try" in
27450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451   *) ac_try_echo=$ac_try;;
27452 esac
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } >/dev/null && {
27461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27462          test ! -s conftest.err
27463        }; then
27464   ac_header_preproc=yes
27465 else
27466   echo "$as_me: failed program was:" >&5
27467 sed 's/^/| /' conftest.$ac_ext >&5
27468
27469   ac_header_preproc=no
27470 fi
27471
27472 rm -f conftest.err conftest.$ac_ext
27473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27474 echo "${ECHO_T}$ac_header_preproc" >&6; }
27475
27476 # So?  What about this header?
27477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27478   yes:no: )
27479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27483     ac_header_preproc=yes
27484     ;;
27485   no:yes:* )
27486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27498     ( cat <<\_ASBOX
27499 ## ----------------------------------- ##
27500 ## Report this to llvmbugs@cs.uiuc.edu ##
27501 ## ----------------------------------- ##
27502 _ASBOX
27503      ) | sed "s/^/$as_me: WARNING:     /" >&2
27504     ;;
27505 esac
27506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27509   echo $ECHO_N "(cached) $ECHO_C" >&6
27510 else
27511   eval "$as_ac_Header=\$ac_header_preproc"
27512 fi
27513 ac_res=`eval echo '${'$as_ac_Header'}'`
27514                { echo "$as_me:$LINENO: result: $ac_res" >&5
27515 echo "${ECHO_T}$ac_res" >&6; }
27516
27517 fi
27518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27519   cat >>confdefs.h <<_ACEOF
27520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27521 _ACEOF
27522
27523 fi
27524
27525 done
27526
27527
27528 for ac_header in windows.h
27529 do
27530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27532   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27535   echo $ECHO_N "(cached) $ECHO_C" >&6
27536 fi
27537 ac_res=`eval echo '${'$as_ac_Header'}'`
27538                { echo "$as_me:$LINENO: result: $ac_res" >&5
27539 echo "${ECHO_T}$ac_res" >&6; }
27540 else
27541   # Is the header compilable?
27542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27544 cat >conftest.$ac_ext <<_ACEOF
27545 /* confdefs.h.  */
27546 _ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h.  */
27550 $ac_includes_default
27551 #include <$ac_header>
27552 _ACEOF
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_compile") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } && {
27567          test -z "$ac_c_werror_flag" ||
27568          test ! -s conftest.err
27569        } && test -s conftest.$ac_objext; then
27570   ac_header_compiler=yes
27571 else
27572   echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27574
27575         ac_header_compiler=no
27576 fi
27577
27578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27580 echo "${ECHO_T}$ac_header_compiler" >&6; }
27581
27582 # Is the header present?
27583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27585 cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h.  */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h.  */
27591 #include <$ac_header>
27592 _ACEOF
27593 if { (ac_try="$ac_cpp conftest.$ac_ext"
27594 case "(($ac_try" in
27595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596   *) ac_try_echo=$ac_try;;
27597 esac
27598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27600   ac_status=$?
27601   grep -v '^ *+' conftest.er1 >conftest.err
27602   rm -f conftest.er1
27603   cat conftest.err >&5
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); } >/dev/null && {
27606          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27607          test ! -s conftest.err
27608        }; then
27609   ac_header_preproc=yes
27610 else
27611   echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27613
27614   ac_header_preproc=no
27615 fi
27616
27617 rm -f conftest.err conftest.$ac_ext
27618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27619 echo "${ECHO_T}$ac_header_preproc" >&6; }
27620
27621 # So?  What about this header?
27622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27623   yes:no: )
27624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27628     ac_header_preproc=yes
27629     ;;
27630   no:yes:* )
27631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27643     ( cat <<\_ASBOX
27644 ## ----------------------------------- ##
27645 ## Report this to llvmbugs@cs.uiuc.edu ##
27646 ## ----------------------------------- ##
27647 _ASBOX
27648      ) | sed "s/^/$as_me: WARNING:     /" >&2
27649     ;;
27650 esac
27651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656   eval "$as_ac_Header=\$ac_header_preproc"
27657 fi
27658 ac_res=`eval echo '${'$as_ac_Header'}'`
27659                { echo "$as_me:$LINENO: result: $ac_res" >&5
27660 echo "${ECHO_T}$ac_res" >&6; }
27661
27662 fi
27663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27664   cat >>confdefs.h <<_ACEOF
27665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27666 _ACEOF
27667
27668 fi
27669
27670 done
27671
27672
27673
27674
27675
27676 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27677 do
27678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27683   echo $ECHO_N "(cached) $ECHO_C" >&6
27684 fi
27685 ac_res=`eval echo '${'$as_ac_Header'}'`
27686                { echo "$as_me:$LINENO: result: $ac_res" >&5
27687 echo "${ECHO_T}$ac_res" >&6; }
27688 else
27689   # Is the header compilable?
27690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27691 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
27699 #include <$ac_header>
27700 _ACEOF
27701 rm -f conftest.$ac_objext
27702 if { (ac_try="$ac_compile"
27703 case "(($ac_try" in
27704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705   *) ac_try_echo=$ac_try;;
27706 esac
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708   (eval "$ac_compile") 2>conftest.er1
27709   ac_status=$?
27710   grep -v '^ *+' conftest.er1 >conftest.err
27711   rm -f conftest.er1
27712   cat conftest.err >&5
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); } && {
27715          test -z "$ac_c_werror_flag" ||
27716          test ! -s conftest.err
27717        } && test -s conftest.$ac_objext; then
27718   ac_header_compiler=yes
27719 else
27720   echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27722
27723         ac_header_compiler=no
27724 fi
27725
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27728 echo "${ECHO_T}$ac_header_compiler" >&6; }
27729
27730 # Is the header present?
27731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27733 cat >conftest.$ac_ext <<_ACEOF
27734 /* confdefs.h.  */
27735 _ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h.  */
27739 #include <$ac_header>
27740 _ACEOF
27741 if { (ac_try="$ac_cpp conftest.$ac_ext"
27742 case "(($ac_try" in
27743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744   *) ac_try_echo=$ac_try;;
27745 esac
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27748   ac_status=$?
27749   grep -v '^ *+' conftest.er1 >conftest.err
27750   rm -f conftest.er1
27751   cat conftest.err >&5
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); } >/dev/null && {
27754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27755          test ! -s conftest.err
27756        }; then
27757   ac_header_preproc=yes
27758 else
27759   echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27761
27762   ac_header_preproc=no
27763 fi
27764
27765 rm -f conftest.err conftest.$ac_ext
27766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27767 echo "${ECHO_T}$ac_header_preproc" >&6; }
27768
27769 # So?  What about this header?
27770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27771   yes:no: )
27772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27776     ac_header_preproc=yes
27777     ;;
27778   no:yes:* )
27779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27791     ( cat <<\_ASBOX
27792 ## ----------------------------------- ##
27793 ## Report this to llvmbugs@cs.uiuc.edu ##
27794 ## ----------------------------------- ##
27795 _ASBOX
27796      ) | sed "s/^/$as_me: WARNING:     /" >&2
27797     ;;
27798 esac
27799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   eval "$as_ac_Header=\$ac_header_preproc"
27805 fi
27806 ac_res=`eval echo '${'$as_ac_Header'}'`
27807                { echo "$as_me:$LINENO: result: $ac_res" >&5
27808 echo "${ECHO_T}$ac_res" >&6; }
27809
27810 fi
27811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27812   cat >>confdefs.h <<_ACEOF
27813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27814 _ACEOF
27815
27816 fi
27817
27818 done
27819
27820
27821
27822
27823 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27824 do
27825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27830   echo $ECHO_N "(cached) $ECHO_C" >&6
27831 fi
27832 ac_res=`eval echo '${'$as_ac_Header'}'`
27833                { echo "$as_me:$LINENO: result: $ac_res" >&5
27834 echo "${ECHO_T}$ac_res" >&6; }
27835 else
27836   # Is the header compilable?
27837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27839 cat >conftest.$ac_ext <<_ACEOF
27840 /* confdefs.h.  */
27841 _ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h.  */
27845 $ac_includes_default
27846 #include <$ac_header>
27847 _ACEOF
27848 rm -f conftest.$ac_objext
27849 if { (ac_try="$ac_compile"
27850 case "(($ac_try" in
27851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852   *) ac_try_echo=$ac_try;;
27853 esac
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855   (eval "$ac_compile") 2>conftest.er1
27856   ac_status=$?
27857   grep -v '^ *+' conftest.er1 >conftest.err
27858   rm -f conftest.er1
27859   cat conftest.err >&5
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); } && {
27862          test -z "$ac_c_werror_flag" ||
27863          test ! -s conftest.err
27864        } && test -s conftest.$ac_objext; then
27865   ac_header_compiler=yes
27866 else
27867   echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870         ac_header_compiler=no
27871 fi
27872
27873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27875 echo "${ECHO_T}$ac_header_compiler" >&6; }
27876
27877 # Is the header present?
27878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27880 cat >conftest.$ac_ext <<_ACEOF
27881 /* confdefs.h.  */
27882 _ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h.  */
27886 #include <$ac_header>
27887 _ACEOF
27888 if { (ac_try="$ac_cpp conftest.$ac_ext"
27889 case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } >/dev/null && {
27901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27902          test ! -s conftest.err
27903        }; then
27904   ac_header_preproc=yes
27905 else
27906   echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909   ac_header_preproc=no
27910 fi
27911
27912 rm -f conftest.err conftest.$ac_ext
27913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27914 echo "${ECHO_T}$ac_header_preproc" >&6; }
27915
27916 # So?  What about this header?
27917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27918   yes:no: )
27919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27923     ac_header_preproc=yes
27924     ;;
27925   no:yes:* )
27926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27938     ( cat <<\_ASBOX
27939 ## ----------------------------------- ##
27940 ## Report this to llvmbugs@cs.uiuc.edu ##
27941 ## ----------------------------------- ##
27942 _ASBOX
27943      ) | sed "s/^/$as_me: WARNING:     /" >&2
27944     ;;
27945 esac
27946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27949   echo $ECHO_N "(cached) $ECHO_C" >&6
27950 else
27951   eval "$as_ac_Header=\$ac_header_preproc"
27952 fi
27953 ac_res=`eval echo '${'$as_ac_Header'}'`
27954                { echo "$as_me:$LINENO: result: $ac_res" >&5
27955 echo "${ECHO_T}$ac_res" >&6; }
27956
27957 fi
27958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27959   cat >>confdefs.h <<_ACEOF
27960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27961 _ACEOF
27962
27963 fi
27964
27965 done
27966
27967 if test "$ENABLE_THREADS" -eq 1 ; then
27968
27969 for ac_header in pthread.h
27970 do
27971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27973   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27976   echo $ECHO_N "(cached) $ECHO_C" >&6
27977 fi
27978 ac_res=`eval echo '${'$as_ac_Header'}'`
27979                { echo "$as_me:$LINENO: result: $ac_res" >&5
27980 echo "${ECHO_T}$ac_res" >&6; }
27981 else
27982   # Is the header compilable?
27983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27985 cat >conftest.$ac_ext <<_ACEOF
27986 /* confdefs.h.  */
27987 _ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h.  */
27991 $ac_includes_default
27992 #include <$ac_header>
27993 _ACEOF
27994 rm -f conftest.$ac_objext
27995 if { (ac_try="$ac_compile"
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_compile") 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); } && {
28008          test -z "$ac_c_werror_flag" ||
28009          test ! -s conftest.err
28010        } && test -s conftest.$ac_objext; then
28011   ac_header_compiler=yes
28012 else
28013   echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28015
28016         ac_header_compiler=no
28017 fi
28018
28019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28021 echo "${ECHO_T}$ac_header_compiler" >&6; }
28022
28023 # Is the header present?
28024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28026 cat >conftest.$ac_ext <<_ACEOF
28027 /* confdefs.h.  */
28028 _ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h.  */
28032 #include <$ac_header>
28033 _ACEOF
28034 if { (ac_try="$ac_cpp conftest.$ac_ext"
28035 case "(($ac_try" in
28036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037   *) ac_try_echo=$ac_try;;
28038 esac
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28041   ac_status=$?
28042   grep -v '^ *+' conftest.er1 >conftest.err
28043   rm -f conftest.er1
28044   cat conftest.err >&5
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); } >/dev/null && {
28047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28048          test ! -s conftest.err
28049        }; then
28050   ac_header_preproc=yes
28051 else
28052   echo "$as_me: failed program was:" >&5
28053 sed 's/^/| /' conftest.$ac_ext >&5
28054
28055   ac_header_preproc=no
28056 fi
28057
28058 rm -f conftest.err conftest.$ac_ext
28059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28060 echo "${ECHO_T}$ac_header_preproc" >&6; }
28061
28062 # So?  What about this header?
28063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28064   yes:no: )
28065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28069     ac_header_preproc=yes
28070     ;;
28071   no:yes:* )
28072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28074     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28075 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28078     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28079 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28084     ( cat <<\_ASBOX
28085 ## ----------------------------------- ##
28086 ## Report this to llvmbugs@cs.uiuc.edu ##
28087 ## ----------------------------------- ##
28088 _ASBOX
28089      ) | sed "s/^/$as_me: WARNING:     /" >&2
28090     ;;
28091 esac
28092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097   eval "$as_ac_Header=\$ac_header_preproc"
28098 fi
28099 ac_res=`eval echo '${'$as_ac_Header'}'`
28100                { echo "$as_me:$LINENO: result: $ac_res" >&5
28101 echo "${ECHO_T}$ac_res" >&6; }
28102
28103 fi
28104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28105   cat >>confdefs.h <<_ACEOF
28106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28107 _ACEOF
28108  HAVE_PTHREAD=1
28109
28110 else
28111   HAVE_PTHREAD=0
28112
28113 fi
28114
28115 done
28116
28117 else
28118   HAVE_PTHREAD=0
28119
28120 fi
28121
28122
28123
28124   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28125 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28126 if test "${ac_cv_huge_val_sanity+set}" = set; then
28127   echo $ECHO_N "(cached) $ECHO_C" >&6
28128 else
28129
28130     ac_ext=cpp
28131 ac_cpp='$CXXCPP $CPPFLAGS'
28132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28135
28136     CXXFLAGS=-pedantic
28137     if test "$cross_compiling" = yes; then
28138   ac_cv_huge_val_sanity=yes
28139 else
28140   cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h.  */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h.  */
28146 #include <math.h>
28147 int
28148 main ()
28149 {
28150 double x = HUGE_VAL; return x != x;
28151   ;
28152   return 0;
28153 }
28154 _ACEOF
28155 rm -f conftest$ac_exeext
28156 if { (ac_try="$ac_link"
28157 case "(($ac_try" in
28158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28159   *) ac_try_echo=$ac_try;;
28160 esac
28161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28162   (eval "$ac_link") 2>&5
28163   ac_status=$?
28164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28166   { (case "(($ac_try" in
28167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168   *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171   (eval "$ac_try") 2>&5
28172   ac_status=$?
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); }; }; then
28175   ac_cv_huge_val_sanity=yes
28176 else
28177   echo "$as_me: program exited with status $ac_status" >&5
28178 echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28180
28181 ( exit $ac_status )
28182 ac_cv_huge_val_sanity=no
28183 fi
28184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28185 fi
28186
28187
28188     ac_ext=c
28189 ac_cpp='$CPP $CPPFLAGS'
28190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28193
28194
28195 fi
28196 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28197 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28198   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28199
28200
28201 { echo "$as_me:$LINENO: checking for pid_t" >&5
28202 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28203 if test "${ac_cv_type_pid_t+set}" = set; then
28204   echo $ECHO_N "(cached) $ECHO_C" >&6
28205 else
28206   cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 $ac_includes_default
28213 typedef pid_t ac__type_new_;
28214 int
28215 main ()
28216 {
28217 if ((ac__type_new_ *) 0)
28218   return 0;
28219 if (sizeof (ac__type_new_))
28220   return 0;
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext
28226 if { (ac_try="$ac_compile"
28227 case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_compile") 2>conftest.er1
28233   ac_status=$?
28234   grep -v '^ *+' conftest.er1 >conftest.err
28235   rm -f conftest.er1
28236   cat conftest.err >&5
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); } && {
28239          test -z "$ac_c_werror_flag" ||
28240          test ! -s conftest.err
28241        } && test -s conftest.$ac_objext; then
28242   ac_cv_type_pid_t=yes
28243 else
28244   echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28246
28247         ac_cv_type_pid_t=no
28248 fi
28249
28250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28251 fi
28252 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28253 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28254 if test $ac_cv_type_pid_t = yes; then
28255   :
28256 else
28257
28258 cat >>confdefs.h <<_ACEOF
28259 #define pid_t int
28260 _ACEOF
28261
28262 fi
28263
28264 { echo "$as_me:$LINENO: checking for size_t" >&5
28265 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28266 if test "${ac_cv_type_size_t+set}" = set; then
28267   echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269   cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275 $ac_includes_default
28276 typedef size_t ac__type_new_;
28277 int
28278 main ()
28279 {
28280 if ((ac__type_new_ *) 0)
28281   return 0;
28282 if (sizeof (ac__type_new_))
28283   return 0;
28284   ;
28285   return 0;
28286 }
28287 _ACEOF
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292   *) ac_try_echo=$ac_try;;
28293 esac
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295   (eval "$ac_compile") 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } && {
28302          test -z "$ac_c_werror_flag" ||
28303          test ! -s conftest.err
28304        } && test -s conftest.$ac_objext; then
28305   ac_cv_type_size_t=yes
28306 else
28307   echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28309
28310         ac_cv_type_size_t=no
28311 fi
28312
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 fi
28315 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28316 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28317 if test $ac_cv_type_size_t = yes; then
28318   :
28319 else
28320
28321 cat >>confdefs.h <<_ACEOF
28322 #define size_t unsigned int
28323 _ACEOF
28324
28325 fi
28326
28327 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28328 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28329 if test "${ac_cv_type_signal+set}" = set; then
28330   echo $ECHO_N "(cached) $ECHO_C" >&6
28331 else
28332   cat >conftest.$ac_ext <<_ACEOF
28333 /* confdefs.h.  */
28334 _ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h.  */
28338 #include <sys/types.h>
28339 #include <signal.h>
28340
28341 int
28342 main ()
28343 {
28344 return *(signal (0, 0)) (0) == 1;
28345   ;
28346   return 0;
28347 }
28348 _ACEOF
28349 rm -f conftest.$ac_objext
28350 if { (ac_try="$ac_compile"
28351 case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_compile") 2>conftest.er1
28357   ac_status=$?
28358   grep -v '^ *+' conftest.er1 >conftest.err
28359   rm -f conftest.er1
28360   cat conftest.err >&5
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); } && {
28363          test -z "$ac_c_werror_flag" ||
28364          test ! -s conftest.err
28365        } && test -s conftest.$ac_objext; then
28366   ac_cv_type_signal=int
28367 else
28368   echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28370
28371         ac_cv_type_signal=void
28372 fi
28373
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28375 fi
28376 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28377 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28378
28379 cat >>confdefs.h <<_ACEOF
28380 #define RETSIGTYPE $ac_cv_type_signal
28381 _ACEOF
28382
28383
28384 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28385 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28386 if test "${ac_cv_struct_tm+set}" = set; then
28387   echo $ECHO_N "(cached) $ECHO_C" >&6
28388 else
28389   cat >conftest.$ac_ext <<_ACEOF
28390 /* confdefs.h.  */
28391 _ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h.  */
28395 #include <sys/types.h>
28396 #include <time.h>
28397
28398 int
28399 main ()
28400 {
28401 struct tm tm;
28402                                      int *p = &tm.tm_sec;
28403                                      return !p;
28404   ;
28405   return 0;
28406 }
28407 _ACEOF
28408 rm -f conftest.$ac_objext
28409 if { (ac_try="$ac_compile"
28410 case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_compile") 2>conftest.er1
28416   ac_status=$?
28417   grep -v '^ *+' conftest.er1 >conftest.err
28418   rm -f conftest.er1
28419   cat conftest.err >&5
28420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421   (exit $ac_status); } && {
28422          test -z "$ac_c_werror_flag" ||
28423          test ! -s conftest.err
28424        } && test -s conftest.$ac_objext; then
28425   ac_cv_struct_tm=time.h
28426 else
28427   echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28429
28430         ac_cv_struct_tm=sys/time.h
28431 fi
28432
28433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28434 fi
28435 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28436 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28437 if test $ac_cv_struct_tm = sys/time.h; then
28438
28439 cat >>confdefs.h <<\_ACEOF
28440 #define TM_IN_SYS_TIME 1
28441 _ACEOF
28442
28443 fi
28444
28445 { echo "$as_me:$LINENO: checking for int64_t" >&5
28446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28447 if test "${ac_cv_type_int64_t+set}" = set; then
28448   echo $ECHO_N "(cached) $ECHO_C" >&6
28449 else
28450   cat >conftest.$ac_ext <<_ACEOF
28451 /* confdefs.h.  */
28452 _ACEOF
28453 cat confdefs.h >>conftest.$ac_ext
28454 cat >>conftest.$ac_ext <<_ACEOF
28455 /* end confdefs.h.  */
28456 $ac_includes_default
28457 typedef int64_t ac__type_new_;
28458 int
28459 main ()
28460 {
28461 if ((ac__type_new_ *) 0)
28462   return 0;
28463 if (sizeof (ac__type_new_))
28464   return 0;
28465   ;
28466   return 0;
28467 }
28468 _ACEOF
28469 rm -f conftest.$ac_objext
28470 if { (ac_try="$ac_compile"
28471 case "(($ac_try" in
28472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473   *) ac_try_echo=$ac_try;;
28474 esac
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476   (eval "$ac_compile") 2>conftest.er1
28477   ac_status=$?
28478   grep -v '^ *+' conftest.er1 >conftest.err
28479   rm -f conftest.er1
28480   cat conftest.err >&5
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); } && {
28483          test -z "$ac_c_werror_flag" ||
28484          test ! -s conftest.err
28485        } && test -s conftest.$ac_objext; then
28486   ac_cv_type_int64_t=yes
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491         ac_cv_type_int64_t=no
28492 fi
28493
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 fi
28496 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28497 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28498 if test $ac_cv_type_int64_t = yes; then
28499
28500 cat >>confdefs.h <<_ACEOF
28501 #define HAVE_INT64_T 1
28502 _ACEOF
28503
28504
28505 else
28506   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28507 echo "$as_me: error: Type int64_t required but not found" >&2;}
28508    { (exit 1); exit 1; }; }
28509 fi
28510
28511 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28512 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28513 if test "${ac_cv_type_uint64_t+set}" = set; then
28514   echo $ECHO_N "(cached) $ECHO_C" >&6
28515 else
28516   cat >conftest.$ac_ext <<_ACEOF
28517 /* confdefs.h.  */
28518 _ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h.  */
28522 $ac_includes_default
28523 typedef uint64_t ac__type_new_;
28524 int
28525 main ()
28526 {
28527 if ((ac__type_new_ *) 0)
28528   return 0;
28529 if (sizeof (ac__type_new_))
28530   return 0;
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext
28536 if { (ac_try="$ac_compile"
28537 case "(($ac_try" in
28538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539   *) ac_try_echo=$ac_try;;
28540 esac
28541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28542   (eval "$ac_compile") 2>conftest.er1
28543   ac_status=$?
28544   grep -v '^ *+' conftest.er1 >conftest.err
28545   rm -f conftest.er1
28546   cat conftest.err >&5
28547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548   (exit $ac_status); } && {
28549          test -z "$ac_c_werror_flag" ||
28550          test ! -s conftest.err
28551        } && test -s conftest.$ac_objext; then
28552   ac_cv_type_uint64_t=yes
28553 else
28554   echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28556
28557         ac_cv_type_uint64_t=no
28558 fi
28559
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561 fi
28562 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28563 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28564 if test $ac_cv_type_uint64_t = yes; then
28565
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_UINT64_T 1
28568 _ACEOF
28569
28570
28571 else
28572   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28573 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28574 if test "${ac_cv_type_u_int64_t+set}" = set; then
28575   echo $ECHO_N "(cached) $ECHO_C" >&6
28576 else
28577   cat >conftest.$ac_ext <<_ACEOF
28578 /* confdefs.h.  */
28579 _ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h.  */
28583 $ac_includes_default
28584 typedef u_int64_t ac__type_new_;
28585 int
28586 main ()
28587 {
28588 if ((ac__type_new_ *) 0)
28589   return 0;
28590 if (sizeof (ac__type_new_))
28591   return 0;
28592   ;
28593   return 0;
28594 }
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600   *) ac_try_echo=$ac_try;;
28601 esac
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603   (eval "$ac_compile") 2>conftest.er1
28604   ac_status=$?
28605   grep -v '^ *+' conftest.er1 >conftest.err
28606   rm -f conftest.er1
28607   cat conftest.err >&5
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); } && {
28610          test -z "$ac_c_werror_flag" ||
28611          test ! -s conftest.err
28612        } && test -s conftest.$ac_objext; then
28613   ac_cv_type_u_int64_t=yes
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618         ac_cv_type_u_int64_t=no
28619 fi
28620
28621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28622 fi
28623 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28624 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28625 if test $ac_cv_type_u_int64_t = yes; then
28626
28627 cat >>confdefs.h <<_ACEOF
28628 #define HAVE_U_INT64_T 1
28629 _ACEOF
28630
28631
28632 else
28633   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28634 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28635    { (exit 1); exit 1; }; }
28636 fi
28637
28638 fi
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28650 do
28651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28655   echo $ECHO_N "(cached) $ECHO_C" >&6
28656 else
28657   cat >conftest.$ac_ext <<_ACEOF
28658 /* confdefs.h.  */
28659 _ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h.  */
28663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28665 #define $ac_func innocuous_$ac_func
28666
28667 /* System header to define __stub macros and hopefully few prototypes,
28668     which can conflict with char $ac_func (); below.
28669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28670     <limits.h> exists even on freestanding compilers.  */
28671
28672 #ifdef __STDC__
28673 # include <limits.h>
28674 #else
28675 # include <assert.h>
28676 #endif
28677
28678 #undef $ac_func
28679
28680 /* Override any GCC internal prototype to avoid an error.
28681    Use char because int might match the return type of a GCC
28682    builtin and then its argument prototype would still apply.  */
28683 #ifdef __cplusplus
28684 extern "C"
28685 #endif
28686 char $ac_func ();
28687 /* The GNU C library defines this for functions which it implements
28688     to always fail with ENOSYS.  Some functions are actually named
28689     something starting with __ and the normal name is an alias.  */
28690 #if defined __stub_$ac_func || defined __stub___$ac_func
28691 choke me
28692 #endif
28693
28694 int
28695 main ()
28696 {
28697 return $ac_func ();
28698   ;
28699   return 0;
28700 }
28701 _ACEOF
28702 rm -f conftest.$ac_objext conftest$ac_exeext
28703 if { (ac_try="$ac_link"
28704 case "(($ac_try" in
28705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706   *) ac_try_echo=$ac_try;;
28707 esac
28708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709   (eval "$ac_link") 2>conftest.er1
28710   ac_status=$?
28711   grep -v '^ *+' conftest.er1 >conftest.err
28712   rm -f conftest.er1
28713   cat conftest.err >&5
28714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); } && {
28716          test -z "$ac_c_werror_flag" ||
28717          test ! -s conftest.err
28718        } && test -s conftest$ac_exeext &&
28719        $as_test_x conftest$ac_exeext; then
28720   eval "$as_ac_var=yes"
28721 else
28722   echo "$as_me: failed program was:" >&5
28723 sed 's/^/| /' conftest.$ac_ext >&5
28724
28725         eval "$as_ac_var=no"
28726 fi
28727
28728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28729       conftest$ac_exeext conftest.$ac_ext
28730 fi
28731 ac_res=`eval echo '${'$as_ac_var'}'`
28732                { echo "$as_me:$LINENO: result: $ac_res" >&5
28733 echo "${ECHO_T}$ac_res" >&6; }
28734 if test `eval echo '${'$as_ac_var'}'` = yes; then
28735   cat >>confdefs.h <<_ACEOF
28736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28737 _ACEOF
28738
28739 fi
28740 done
28741
28742
28743
28744
28745
28746 for ac_func in powf fmodf strtof round
28747 do
28748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28752   echo $ECHO_N "(cached) $ECHO_C" >&6
28753 else
28754   cat >conftest.$ac_ext <<_ACEOF
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28762 #define $ac_func innocuous_$ac_func
28763
28764 /* System header to define __stub macros and hopefully few prototypes,
28765     which can conflict with char $ac_func (); below.
28766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28767     <limits.h> exists even on freestanding compilers.  */
28768
28769 #ifdef __STDC__
28770 # include <limits.h>
28771 #else
28772 # include <assert.h>
28773 #endif
28774
28775 #undef $ac_func
28776
28777 /* Override any GCC internal prototype to avoid an error.
28778    Use char because int might match the return type of a GCC
28779    builtin and then its argument prototype would still apply.  */
28780 #ifdef __cplusplus
28781 extern "C"
28782 #endif
28783 char $ac_func ();
28784 /* The GNU C library defines this for functions which it implements
28785     to always fail with ENOSYS.  Some functions are actually named
28786     something starting with __ and the normal name is an alias.  */
28787 #if defined __stub_$ac_func || defined __stub___$ac_func
28788 choke me
28789 #endif
28790
28791 int
28792 main ()
28793 {
28794 return $ac_func ();
28795   ;
28796   return 0;
28797 }
28798 _ACEOF
28799 rm -f conftest.$ac_objext conftest$ac_exeext
28800 if { (ac_try="$ac_link"
28801 case "(($ac_try" in
28802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803   *) ac_try_echo=$ac_try;;
28804 esac
28805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28806   (eval "$ac_link") 2>conftest.er1
28807   ac_status=$?
28808   grep -v '^ *+' conftest.er1 >conftest.err
28809   rm -f conftest.er1
28810   cat conftest.err >&5
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); } && {
28813          test -z "$ac_c_werror_flag" ||
28814          test ! -s conftest.err
28815        } && test -s conftest$ac_exeext &&
28816        $as_test_x conftest$ac_exeext; then
28817   eval "$as_ac_var=yes"
28818 else
28819   echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822         eval "$as_ac_var=no"
28823 fi
28824
28825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28826       conftest$ac_exeext conftest.$ac_ext
28827 fi
28828 ac_res=`eval echo '${'$as_ac_var'}'`
28829                { echo "$as_me:$LINENO: result: $ac_res" >&5
28830 echo "${ECHO_T}$ac_res" >&6; }
28831 if test `eval echo '${'$as_ac_var'}'` = yes; then
28832   cat >>confdefs.h <<_ACEOF
28833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28834 _ACEOF
28835
28836 fi
28837 done
28838
28839
28840
28841
28842
28843
28844 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28845 do
28846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28850   echo $ECHO_N "(cached) $ECHO_C" >&6
28851 else
28852   cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28860 #define $ac_func innocuous_$ac_func
28861
28862 /* System header to define __stub macros and hopefully few prototypes,
28863     which can conflict with char $ac_func (); below.
28864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28865     <limits.h> exists even on freestanding compilers.  */
28866
28867 #ifdef __STDC__
28868 # include <limits.h>
28869 #else
28870 # include <assert.h>
28871 #endif
28872
28873 #undef $ac_func
28874
28875 /* Override any GCC internal prototype to avoid an error.
28876    Use char because int might match the return type of a GCC
28877    builtin and then its argument prototype would still apply.  */
28878 #ifdef __cplusplus
28879 extern "C"
28880 #endif
28881 char $ac_func ();
28882 /* The GNU C library defines this for functions which it implements
28883     to always fail with ENOSYS.  Some functions are actually named
28884     something starting with __ and the normal name is an alias.  */
28885 #if defined __stub_$ac_func || defined __stub___$ac_func
28886 choke me
28887 #endif
28888
28889 int
28890 main ()
28891 {
28892 return $ac_func ();
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_link") 2>conftest.er1
28905   ac_status=$?
28906   grep -v '^ *+' conftest.er1 >conftest.err
28907   rm -f conftest.er1
28908   cat conftest.err >&5
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } && {
28911          test -z "$ac_c_werror_flag" ||
28912          test ! -s conftest.err
28913        } && test -s conftest$ac_exeext &&
28914        $as_test_x conftest$ac_exeext; then
28915   eval "$as_ac_var=yes"
28916 else
28917   echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920         eval "$as_ac_var=no"
28921 fi
28922
28923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28924       conftest$ac_exeext conftest.$ac_ext
28925 fi
28926 ac_res=`eval echo '${'$as_ac_var'}'`
28927                { echo "$as_me:$LINENO: result: $ac_res" >&5
28928 echo "${ECHO_T}$ac_res" >&6; }
28929 if test `eval echo '${'$as_ac_var'}'` = yes; then
28930   cat >>confdefs.h <<_ACEOF
28931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28932 _ACEOF
28933
28934 fi
28935 done
28936
28937
28938
28939
28940 for ac_func in isatty mkdtemp mkstemp
28941 do
28942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28946   echo $ECHO_N "(cached) $ECHO_C" >&6
28947 else
28948   cat >conftest.$ac_ext <<_ACEOF
28949 /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28956 #define $ac_func innocuous_$ac_func
28957
28958 /* System header to define __stub macros and hopefully few prototypes,
28959     which can conflict with char $ac_func (); below.
28960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961     <limits.h> exists even on freestanding compilers.  */
28962
28963 #ifdef __STDC__
28964 # include <limits.h>
28965 #else
28966 # include <assert.h>
28967 #endif
28968
28969 #undef $ac_func
28970
28971 /* Override any GCC internal prototype to avoid an error.
28972    Use char because int might match the return type of a GCC
28973    builtin and then its argument prototype would still apply.  */
28974 #ifdef __cplusplus
28975 extern "C"
28976 #endif
28977 char $ac_func ();
28978 /* The GNU C library defines this for functions which it implements
28979     to always fail with ENOSYS.  Some functions are actually named
28980     something starting with __ and the normal name is an alias.  */
28981 #if defined __stub_$ac_func || defined __stub___$ac_func
28982 choke me
28983 #endif
28984
28985 int
28986 main ()
28987 {
28988 return $ac_func ();
28989   ;
28990   return 0;
28991 }
28992 _ACEOF
28993 rm -f conftest.$ac_objext conftest$ac_exeext
28994 if { (ac_try="$ac_link"
28995 case "(($ac_try" in
28996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997   *) ac_try_echo=$ac_try;;
28998 esac
28999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000   (eval "$ac_link") 2>conftest.er1
29001   ac_status=$?
29002   grep -v '^ *+' conftest.er1 >conftest.err
29003   rm -f conftest.er1
29004   cat conftest.err >&5
29005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); } && {
29007          test -z "$ac_c_werror_flag" ||
29008          test ! -s conftest.err
29009        } && test -s conftest$ac_exeext &&
29010        $as_test_x conftest$ac_exeext; then
29011   eval "$as_ac_var=yes"
29012 else
29013   echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29015
29016         eval "$as_ac_var=no"
29017 fi
29018
29019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29020       conftest$ac_exeext conftest.$ac_ext
29021 fi
29022 ac_res=`eval echo '${'$as_ac_var'}'`
29023                { echo "$as_me:$LINENO: result: $ac_res" >&5
29024 echo "${ECHO_T}$ac_res" >&6; }
29025 if test `eval echo '${'$as_ac_var'}'` = yes; then
29026   cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29028 _ACEOF
29029
29030 fi
29031 done
29032
29033
29034
29035
29036
29037
29038
29039
29040 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29041 do
29042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29046   echo $ECHO_N "(cached) $ECHO_C" >&6
29047 else
29048   cat >conftest.$ac_ext <<_ACEOF
29049 /* confdefs.h.  */
29050 _ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h.  */
29054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29056 #define $ac_func innocuous_$ac_func
29057
29058 /* System header to define __stub macros and hopefully few prototypes,
29059     which can conflict with char $ac_func (); below.
29060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29061     <limits.h> exists even on freestanding compilers.  */
29062
29063 #ifdef __STDC__
29064 # include <limits.h>
29065 #else
29066 # include <assert.h>
29067 #endif
29068
29069 #undef $ac_func
29070
29071 /* Override any GCC internal prototype to avoid an error.
29072    Use char because int might match the return type of a GCC
29073    builtin and then its argument prototype would still apply.  */
29074 #ifdef __cplusplus
29075 extern "C"
29076 #endif
29077 char $ac_func ();
29078 /* The GNU C library defines this for functions which it implements
29079     to always fail with ENOSYS.  Some functions are actually named
29080     something starting with __ and the normal name is an alias.  */
29081 #if defined __stub_$ac_func || defined __stub___$ac_func
29082 choke me
29083 #endif
29084
29085 int
29086 main ()
29087 {
29088 return $ac_func ();
29089   ;
29090   return 0;
29091 }
29092 _ACEOF
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (ac_try="$ac_link"
29095 case "(($ac_try" in
29096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097   *) ac_try_echo=$ac_try;;
29098 esac
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100   (eval "$ac_link") 2>conftest.er1
29101   ac_status=$?
29102   grep -v '^ *+' conftest.er1 >conftest.err
29103   rm -f conftest.er1
29104   cat conftest.err >&5
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); } && {
29107          test -z "$ac_c_werror_flag" ||
29108          test ! -s conftest.err
29109        } && test -s conftest$ac_exeext &&
29110        $as_test_x conftest$ac_exeext; then
29111   eval "$as_ac_var=yes"
29112 else
29113   echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29115
29116         eval "$as_ac_var=no"
29117 fi
29118
29119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29120       conftest$ac_exeext conftest.$ac_ext
29121 fi
29122 ac_res=`eval echo '${'$as_ac_var'}'`
29123                { echo "$as_me:$LINENO: result: $ac_res" >&5
29124 echo "${ECHO_T}$ac_res" >&6; }
29125 if test `eval echo '${'$as_ac_var'}'` = yes; then
29126   cat >>confdefs.h <<_ACEOF
29127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29128 _ACEOF
29129
29130 fi
29131 done
29132
29133
29134
29135
29136
29137 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29138 do
29139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145   cat >conftest.$ac_ext <<_ACEOF
29146 /* confdefs.h.  */
29147 _ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h.  */
29151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29153 #define $ac_func innocuous_$ac_func
29154
29155 /* System header to define __stub macros and hopefully few prototypes,
29156     which can conflict with char $ac_func (); below.
29157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29158     <limits.h> exists even on freestanding compilers.  */
29159
29160 #ifdef __STDC__
29161 # include <limits.h>
29162 #else
29163 # include <assert.h>
29164 #endif
29165
29166 #undef $ac_func
29167
29168 /* Override any GCC internal prototype to avoid an error.
29169    Use char because int might match the return type of a GCC
29170    builtin and then its argument prototype would still apply.  */
29171 #ifdef __cplusplus
29172 extern "C"
29173 #endif
29174 char $ac_func ();
29175 /* The GNU C library defines this for functions which it implements
29176     to always fail with ENOSYS.  Some functions are actually named
29177     something starting with __ and the normal name is an alias.  */
29178 #if defined __stub_$ac_func || defined __stub___$ac_func
29179 choke me
29180 #endif
29181
29182 int
29183 main ()
29184 {
29185 return $ac_func ();
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (ac_try="$ac_link"
29192 case "(($ac_try" in
29193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194   *) ac_try_echo=$ac_try;;
29195 esac
29196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197   (eval "$ac_link") 2>conftest.er1
29198   ac_status=$?
29199   grep -v '^ *+' conftest.er1 >conftest.err
29200   rm -f conftest.er1
29201   cat conftest.err >&5
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); } && {
29204          test -z "$ac_c_werror_flag" ||
29205          test ! -s conftest.err
29206        } && test -s conftest$ac_exeext &&
29207        $as_test_x conftest$ac_exeext; then
29208   eval "$as_ac_var=yes"
29209 else
29210   echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29212
29213         eval "$as_ac_var=no"
29214 fi
29215
29216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29217       conftest$ac_exeext conftest.$ac_ext
29218 fi
29219 ac_res=`eval echo '${'$as_ac_var'}'`
29220                { echo "$as_me:$LINENO: result: $ac_res" >&5
29221 echo "${ECHO_T}$ac_res" >&6; }
29222 if test `eval echo '${'$as_ac_var'}'` = yes; then
29223   cat >>confdefs.h <<_ACEOF
29224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29225 _ACEOF
29226
29227 fi
29228 done
29229
29230
29231
29232
29233
29234 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29235 do
29236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29240   echo $ECHO_N "(cached) $ECHO_C" >&6
29241 else
29242   cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29250 #define $ac_func innocuous_$ac_func
29251
29252 /* System header to define __stub macros and hopefully few prototypes,
29253     which can conflict with char $ac_func (); below.
29254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255     <limits.h> exists even on freestanding compilers.  */
29256
29257 #ifdef __STDC__
29258 # include <limits.h>
29259 #else
29260 # include <assert.h>
29261 #endif
29262
29263 #undef $ac_func
29264
29265 /* Override any GCC internal prototype to avoid an error.
29266    Use char because int might match the return type of a GCC
29267    builtin and then its argument prototype would still apply.  */
29268 #ifdef __cplusplus
29269 extern "C"
29270 #endif
29271 char $ac_func ();
29272 /* The GNU C library defines this for functions which it implements
29273     to always fail with ENOSYS.  Some functions are actually named
29274     something starting with __ and the normal name is an alias.  */
29275 #if defined __stub_$ac_func || defined __stub___$ac_func
29276 choke me
29277 #endif
29278
29279 int
29280 main ()
29281 {
29282 return $ac_func ();
29283   ;
29284   return 0;
29285 }
29286 _ACEOF
29287 rm -f conftest.$ac_objext conftest$ac_exeext
29288 if { (ac_try="$ac_link"
29289 case "(($ac_try" in
29290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291   *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294   (eval "$ac_link") 2>conftest.er1
29295   ac_status=$?
29296   grep -v '^ *+' conftest.er1 >conftest.err
29297   rm -f conftest.er1
29298   cat conftest.err >&5
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); } && {
29301          test -z "$ac_c_werror_flag" ||
29302          test ! -s conftest.err
29303        } && test -s conftest$ac_exeext &&
29304        $as_test_x conftest$ac_exeext; then
29305   eval "$as_ac_var=yes"
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310         eval "$as_ac_var=no"
29311 fi
29312
29313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29314       conftest$ac_exeext conftest.$ac_ext
29315 fi
29316 ac_res=`eval echo '${'$as_ac_var'}'`
29317                { echo "$as_me:$LINENO: result: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29319 if test `eval echo '${'$as_ac_var'}'` = yes; then
29320   cat >>confdefs.h <<_ACEOF
29321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29322 _ACEOF
29323
29324 fi
29325 done
29326
29327 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29328 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29329 if test "${llvm_cv_c_printf_a+set}" = set; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332   ac_ext=c
29333 ac_cpp='$CPP $CPPFLAGS'
29334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29337
29338  if test "$cross_compiling" = yes; then
29339   llvmac_cv_c_printf_a=no
29340 else
29341   cat >conftest.$ac_ext <<_ACEOF
29342
29343   /* confdefs.h.  */
29344 _ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h.  */
29348
29349 #include <stdio.h>
29350 #include <stdlib.h>
29351
29352 int
29353 main ()
29354 {
29355
29356 volatile double A, B;
29357 char Buffer[100];
29358 A = 1;
29359 A /= 10.0;
29360 sprintf(Buffer, "%a", A);
29361 B = atof(Buffer);
29362 if (A != B)
29363   return (1);
29364 if (A != 0x1.999999999999ap-4)
29365   return (1);
29366 return (0);
29367   ;
29368   return 0;
29369 }
29370 _ACEOF
29371 rm -f conftest$ac_exeext
29372 if { (ac_try="$ac_link"
29373 case "(($ac_try" in
29374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375   *) ac_try_echo=$ac_try;;
29376 esac
29377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29378   (eval "$ac_link") 2>&5
29379   ac_status=$?
29380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29382   { (case "(($ac_try" in
29383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384   *) ac_try_echo=$ac_try;;
29385 esac
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387   (eval "$ac_try") 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); }; }; then
29391   llvm_cv_c_printf_a=yes
29392 else
29393   echo "$as_me: program exited with status $ac_status" >&5
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29396
29397 ( exit $ac_status )
29398 llvmac_cv_c_printf_a=no
29399 fi
29400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29401 fi
29402
29403
29404  ac_ext=c
29405 ac_cpp='$CPP $CPPFLAGS'
29406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29409
29410 fi
29411 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29412 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29413  if test "$llvm_cv_c_printf_a" = "yes"; then
29414
29415 cat >>confdefs.h <<\_ACEOF
29416 #define HAVE_PRINTF_A 1
29417 _ACEOF
29418
29419  fi
29420
29421 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29422 # for constant arguments.  Useless!
29423 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29424 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29425 if test "${ac_cv_working_alloca_h+set}" = set; then
29426   echo $ECHO_N "(cached) $ECHO_C" >&6
29427 else
29428   cat >conftest.$ac_ext <<_ACEOF
29429 /* confdefs.h.  */
29430 _ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h.  */
29434 #include <alloca.h>
29435 int
29436 main ()
29437 {
29438 char *p = (char *) alloca (2 * sizeof (int));
29439                           if (p) return 0;
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   ac_cv_working_alloca_h=yes
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467         ac_cv_working_alloca_h=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 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29474 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29475 if test $ac_cv_working_alloca_h = yes; then
29476
29477 cat >>confdefs.h <<\_ACEOF
29478 #define HAVE_ALLOCA_H 1
29479 _ACEOF
29480
29481 fi
29482
29483 { echo "$as_me:$LINENO: checking for alloca" >&5
29484 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29485 if test "${ac_cv_func_alloca_works+set}" = set; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488   cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494 #ifdef __GNUC__
29495 # define alloca __builtin_alloca
29496 #else
29497 # ifdef _MSC_VER
29498 #  include <malloc.h>
29499 #  define alloca _alloca
29500 # else
29501 #  ifdef HAVE_ALLOCA_H
29502 #   include <alloca.h>
29503 #  else
29504 #   ifdef _AIX
29505  #pragma alloca
29506 #   else
29507 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29508 char *alloca ();
29509 #    endif
29510 #   endif
29511 #  endif
29512 # endif
29513 #endif
29514
29515 int
29516 main ()
29517 {
29518 char *p = (char *) alloca (1);
29519                                     if (p) return 0;
29520   ;
29521   return 0;
29522 }
29523 _ACEOF
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531   (eval "$ac_link") 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } && {
29538          test -z "$ac_c_werror_flag" ||
29539          test ! -s conftest.err
29540        } && test -s conftest$ac_exeext &&
29541        $as_test_x conftest$ac_exeext; then
29542   ac_cv_func_alloca_works=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547         ac_cv_func_alloca_works=no
29548 fi
29549
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551       conftest$ac_exeext conftest.$ac_ext
29552 fi
29553 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29554 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29555
29556 if test $ac_cv_func_alloca_works = yes; then
29557
29558 cat >>confdefs.h <<\_ACEOF
29559 #define HAVE_ALLOCA 1
29560 _ACEOF
29561
29562 else
29563   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29564 # that cause trouble.  Some versions do not even contain alloca or
29565 # contain a buggy version.  If you still want to use their alloca,
29566 # use ar to extract alloca.o from them instead of compiling alloca.c.
29567
29568 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29569
29570 cat >>confdefs.h <<\_ACEOF
29571 #define C_ALLOCA 1
29572 _ACEOF
29573
29574
29575 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29576 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29577 if test "${ac_cv_os_cray+set}" = set; then
29578   echo $ECHO_N "(cached) $ECHO_C" >&6
29579 else
29580   cat >conftest.$ac_ext <<_ACEOF
29581 /* confdefs.h.  */
29582 _ACEOF
29583 cat confdefs.h >>conftest.$ac_ext
29584 cat >>conftest.$ac_ext <<_ACEOF
29585 /* end confdefs.h.  */
29586 #if defined CRAY && ! defined CRAY2
29587 webecray
29588 #else
29589 wenotbecray
29590 #endif
29591
29592 _ACEOF
29593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29594   $EGREP "webecray" >/dev/null 2>&1; then
29595   ac_cv_os_cray=yes
29596 else
29597   ac_cv_os_cray=no
29598 fi
29599 rm -f conftest*
29600
29601 fi
29602 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29603 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29604 if test $ac_cv_os_cray = yes; then
29605   for ac_func in _getb67 GETB67 getb67; do
29606     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29610   echo $ECHO_N "(cached) $ECHO_C" >&6
29611 else
29612   cat >conftest.$ac_ext <<_ACEOF
29613 /* confdefs.h.  */
29614 _ACEOF
29615 cat confdefs.h >>conftest.$ac_ext
29616 cat >>conftest.$ac_ext <<_ACEOF
29617 /* end confdefs.h.  */
29618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29620 #define $ac_func innocuous_$ac_func
29621
29622 /* System header to define __stub macros and hopefully few prototypes,
29623     which can conflict with char $ac_func (); below.
29624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29625     <limits.h> exists even on freestanding compilers.  */
29626
29627 #ifdef __STDC__
29628 # include <limits.h>
29629 #else
29630 # include <assert.h>
29631 #endif
29632
29633 #undef $ac_func
29634
29635 /* Override any GCC internal prototype to avoid an error.
29636    Use char because int might match the return type of a GCC
29637    builtin and then its argument prototype would still apply.  */
29638 #ifdef __cplusplus
29639 extern "C"
29640 #endif
29641 char $ac_func ();
29642 /* The GNU C library defines this for functions which it implements
29643     to always fail with ENOSYS.  Some functions are actually named
29644     something starting with __ and the normal name is an alias.  */
29645 #if defined __stub_$ac_func || defined __stub___$ac_func
29646 choke me
29647 #endif
29648
29649 int
29650 main ()
29651 {
29652 return $ac_func ();
29653   ;
29654   return 0;
29655 }
29656 _ACEOF
29657 rm -f conftest.$ac_objext conftest$ac_exeext
29658 if { (ac_try="$ac_link"
29659 case "(($ac_try" in
29660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661   *) ac_try_echo=$ac_try;;
29662 esac
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664   (eval "$ac_link") 2>conftest.er1
29665   ac_status=$?
29666   grep -v '^ *+' conftest.er1 >conftest.err
29667   rm -f conftest.er1
29668   cat conftest.err >&5
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } && {
29671          test -z "$ac_c_werror_flag" ||
29672          test ! -s conftest.err
29673        } && test -s conftest$ac_exeext &&
29674        $as_test_x conftest$ac_exeext; then
29675   eval "$as_ac_var=yes"
29676 else
29677   echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29679
29680         eval "$as_ac_var=no"
29681 fi
29682
29683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29684       conftest$ac_exeext conftest.$ac_ext
29685 fi
29686 ac_res=`eval echo '${'$as_ac_var'}'`
29687                { echo "$as_me:$LINENO: result: $ac_res" >&5
29688 echo "${ECHO_T}$ac_res" >&6; }
29689 if test `eval echo '${'$as_ac_var'}'` = yes; then
29690
29691 cat >>confdefs.h <<_ACEOF
29692 #define CRAY_STACKSEG_END $ac_func
29693 _ACEOF
29694
29695     break
29696 fi
29697
29698   done
29699 fi
29700
29701 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29702 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29703 if test "${ac_cv_c_stack_direction+set}" = set; then
29704   echo $ECHO_N "(cached) $ECHO_C" >&6
29705 else
29706   if test "$cross_compiling" = yes; then
29707   ac_cv_c_stack_direction=0
29708 else
29709   cat >conftest.$ac_ext <<_ACEOF
29710 /* confdefs.h.  */
29711 _ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h.  */
29715 $ac_includes_default
29716 int
29717 find_stack_direction ()
29718 {
29719   static char *addr = 0;
29720   auto char dummy;
29721   if (addr == 0)
29722     {
29723       addr = &dummy;
29724       return find_stack_direction ();
29725     }
29726   else
29727     return (&dummy > addr) ? 1 : -1;
29728 }
29729
29730 int
29731 main ()
29732 {
29733   return find_stack_direction () < 0;
29734 }
29735 _ACEOF
29736 rm -f conftest$ac_exeext
29737 if { (ac_try="$ac_link"
29738 case "(($ac_try" in
29739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740   *) ac_try_echo=$ac_try;;
29741 esac
29742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743   (eval "$ac_link") 2>&5
29744   ac_status=$?
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29747   { (case "(($ac_try" in
29748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749   *) ac_try_echo=$ac_try;;
29750 esac
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752   (eval "$ac_try") 2>&5
29753   ac_status=$?
29754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755   (exit $ac_status); }; }; then
29756   ac_cv_c_stack_direction=1
29757 else
29758   echo "$as_me: program exited with status $ac_status" >&5
29759 echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29761
29762 ( exit $ac_status )
29763 ac_cv_c_stack_direction=-1
29764 fi
29765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29766 fi
29767
29768
29769 fi
29770 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29771 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29772
29773 cat >>confdefs.h <<_ACEOF
29774 #define STACK_DIRECTION $ac_cv_c_stack_direction
29775 _ACEOF
29776
29777
29778 fi
29779
29780
29781 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29782 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29783 if test "${ac_cv_func_rand48+set}" = set; then
29784   echo $ECHO_N "(cached) $ECHO_C" >&6
29785 else
29786   ac_ext=cpp
29787 ac_cpp='$CXXCPP $CPPFLAGS'
29788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29791
29792    cat >conftest.$ac_ext <<_ACEOF
29793 /* confdefs.h.  */
29794 _ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h.  */
29798 #include <stdlib.h>
29799 int
29800 main ()
29801 {
29802 srand48(0);lrand48();drand48();
29803   ;
29804   return 0;
29805 }
29806 _ACEOF
29807 rm -f conftest.$ac_objext
29808 if { (ac_try="$ac_compile"
29809 case "(($ac_try" in
29810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811   *) ac_try_echo=$ac_try;;
29812 esac
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814   (eval "$ac_compile") 2>conftest.er1
29815   ac_status=$?
29816   grep -v '^ *+' conftest.er1 >conftest.err
29817   rm -f conftest.er1
29818   cat conftest.err >&5
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); } && {
29821          test -z "$ac_cxx_werror_flag" ||
29822          test ! -s conftest.err
29823        } && test -s conftest.$ac_objext; then
29824   ac_cv_func_rand48=yes
29825 else
29826   echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29828
29829         ac_cv_func_rand48=no
29830 fi
29831
29832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29833   ac_ext=c
29834 ac_cpp='$CPP $CPPFLAGS'
29835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29838
29839 fi
29840 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29841 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29842
29843 if test "$ac_cv_func_rand48" = "yes" ; then
29844
29845 cat >>confdefs.h <<\_ACEOF
29846 #define HAVE_RAND48 1
29847 _ACEOF
29848
29849 fi
29850
29851
29852 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29853 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29854 if test "${ac_cv_cxx_namespaces+set}" = set; then
29855   echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857   ac_ext=cpp
29858 ac_cpp='$CXXCPP $CPPFLAGS'
29859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29862
29863  cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h.  */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h.  */
29869 namespace Outer { namespace Inner { int i = 0; }}
29870 int
29871 main ()
29872 {
29873 using namespace Outer::Inner; return i;
29874   ;
29875   return 0;
29876 }
29877 _ACEOF
29878 rm -f conftest.$ac_objext
29879 if { (ac_try="$ac_compile"
29880 case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_compile") 2>conftest.er1
29886   ac_status=$?
29887   grep -v '^ *+' conftest.er1 >conftest.err
29888   rm -f conftest.er1
29889   cat conftest.err >&5
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); } && {
29892          test -z "$ac_cxx_werror_flag" ||
29893          test ! -s conftest.err
29894        } && test -s conftest.$ac_objext; then
29895   ac_cv_cxx_namespaces=yes
29896 else
29897   echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29899
29900         ac_cv_cxx_namespaces=no
29901 fi
29902
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29904  ac_ext=c
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909
29910
29911 fi
29912 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29913 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29914 if test "$ac_cv_cxx_namespaces" = yes; then
29915
29916 cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_NAMESPACES
29918 _ACEOF
29919
29920 fi
29921
29922 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29923 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29924 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29925   echo $ECHO_N "(cached) $ECHO_C" >&6
29926 else
29927
29928   ac_ext=cpp
29929 ac_cpp='$CXXCPP $CPPFLAGS'
29930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29933
29934   cat >conftest.$ac_ext <<_ACEOF
29935 /* confdefs.h.  */
29936 _ACEOF
29937 cat confdefs.h >>conftest.$ac_ext
29938 cat >>conftest.$ac_ext <<_ACEOF
29939 /* end confdefs.h.  */
29940 #include <ext/hash_map>
29941 #ifdef HAVE_NAMESPACES
29942 using namespace std;
29943 #endif
29944 int
29945 main ()
29946 {
29947 hash_map<int, int> t;
29948   ;
29949   return 0;
29950 }
29951 _ACEOF
29952 rm -f conftest.$ac_objext
29953 if { (ac_try="$ac_compile"
29954 case "(($ac_try" in
29955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956   *) ac_try_echo=$ac_try;;
29957 esac
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959   (eval "$ac_compile") 2>conftest.er1
29960   ac_status=$?
29961   grep -v '^ *+' conftest.er1 >conftest.err
29962   rm -f conftest.er1
29963   cat conftest.err >&5
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); } && {
29966          test -z "$ac_cxx_werror_flag" ||
29967          test ! -s conftest.err
29968        } && test -s conftest.$ac_objext; then
29969   ac_cv_cxx_have_std_ext_hash_map=yes
29970 else
29971   echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29973
29974         ac_cv_cxx_have_std_ext_hash_map=no
29975 fi
29976
29977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29978   ac_ext=c
29979 ac_cpp='$CPP $CPPFLAGS'
29980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29983
29984 fi
29985 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29986 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
29987  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29988  then
29989
29990 cat >>confdefs.h <<\_ACEOF
29991 #define HAVE_STD_EXT_HASH_MAP 1
29992 _ACEOF
29993
29994  else
29995
29996 cat >>confdefs.h <<\_ACEOF
29997 #define HAVE_STD_EXT_HASH_MAP 0
29998 _ACEOF
29999
30000  fi
30001
30002  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30003 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30004 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30005   echo $ECHO_N "(cached) $ECHO_C" >&6
30006 else
30007
30008   ac_ext=cpp
30009 ac_cpp='$CXXCPP $CPPFLAGS'
30010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30013
30014   cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h.  */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h.  */
30020 #include <ext/hash_map>
30021 #ifdef HAVE_NAMESPACES
30022 using namespace __gnu_cxx;
30023 #endif
30024 int
30025 main ()
30026 {
30027 hash_map<int,int> t;
30028   ;
30029   return 0;
30030 }
30031 _ACEOF
30032 rm -f conftest.$ac_objext
30033 if { (ac_try="$ac_compile"
30034 case "(($ac_try" in
30035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036   *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039   (eval "$ac_compile") 2>conftest.er1
30040   ac_status=$?
30041   grep -v '^ *+' conftest.er1 >conftest.err
30042   rm -f conftest.er1
30043   cat conftest.err >&5
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); } && {
30046          test -z "$ac_cxx_werror_flag" ||
30047          test ! -s conftest.err
30048        } && test -s conftest.$ac_objext; then
30049   ac_cv_cxx_have_gnu_ext_hash_map=yes
30050 else
30051   echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30053
30054         ac_cv_cxx_have_gnu_ext_hash_map=no
30055 fi
30056
30057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30058   ac_ext=c
30059 ac_cpp='$CPP $CPPFLAGS'
30060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30063
30064 fi
30065 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30066 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30067  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30068  then
30069
30070 cat >>confdefs.h <<\_ACEOF
30071 #define HAVE_GNU_EXT_HASH_MAP 1
30072 _ACEOF
30073
30074  else
30075
30076 cat >>confdefs.h <<\_ACEOF
30077 #define HAVE_GNU_EXT_HASH_MAP 0
30078 _ACEOF
30079
30080  fi
30081
30082  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30083 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30084 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30085   echo $ECHO_N "(cached) $ECHO_C" >&6
30086 else
30087
30088   ac_ext=cpp
30089 ac_cpp='$CXXCPP $CPPFLAGS'
30090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30093
30094   cat >conftest.$ac_ext <<_ACEOF
30095 /* confdefs.h.  */
30096 _ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h.  */
30100 #include <hash_map>
30101 int
30102 main ()
30103 {
30104 hash_map<int,int> t;
30105   ;
30106   return 0;
30107 }
30108 _ACEOF
30109 rm -f conftest.$ac_objext
30110 if { (ac_try="$ac_compile"
30111 case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_compile") 2>conftest.er1
30117   ac_status=$?
30118   grep -v '^ *+' conftest.er1 >conftest.err
30119   rm -f conftest.er1
30120   cat conftest.err >&5
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } && {
30123          test -z "$ac_cxx_werror_flag" ||
30124          test ! -s conftest.err
30125        } && test -s conftest.$ac_objext; then
30126   ac_cv_cxx_have_global_hash_map=yes
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131         ac_cv_cxx_have_global_hash_map=no
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135   ac_ext=c
30136 ac_cpp='$CPP $CPPFLAGS'
30137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30140
30141 fi
30142 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30143 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30144  if test "$ac_cv_cxx_have_global_hash_map" = yes
30145  then
30146
30147 cat >>confdefs.h <<\_ACEOF
30148 #define HAVE_GLOBAL_HASH_MAP 1
30149 _ACEOF
30150
30151  else
30152
30153 cat >>confdefs.h <<\_ACEOF
30154 #define HAVE_GLOBAL_HASH_MAP 0
30155 _ACEOF
30156
30157  fi
30158
30159 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30160 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30161 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30162   echo $ECHO_N "(cached) $ECHO_C" >&6
30163 else
30164
30165   ac_ext=cpp
30166 ac_cpp='$CXXCPP $CPPFLAGS'
30167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30170
30171   cat >conftest.$ac_ext <<_ACEOF
30172 /* confdefs.h.  */
30173 _ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h.  */
30177 #include <ext/hash_set>
30178 #ifdef HAVE_NAMESPACES
30179 using namespace std;
30180 #endif
30181 int
30182 main ()
30183 {
30184 hash_set<int> t;
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext
30190 if { (ac_try="$ac_compile"
30191 case "(($ac_try" in
30192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193   *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196   (eval "$ac_compile") 2>conftest.er1
30197   ac_status=$?
30198   grep -v '^ *+' conftest.er1 >conftest.err
30199   rm -f conftest.er1
30200   cat conftest.err >&5
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); } && {
30203          test -z "$ac_cxx_werror_flag" ||
30204          test ! -s conftest.err
30205        } && test -s conftest.$ac_objext; then
30206   ac_cv_cxx_have_std_ext_hash_set=yes
30207 else
30208   echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30210
30211         ac_cv_cxx_have_std_ext_hash_set=no
30212 fi
30213
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30215   ac_ext=c
30216 ac_cpp='$CPP $CPPFLAGS'
30217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30220
30221 fi
30222 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30223 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30224  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30225  then
30226
30227 cat >>confdefs.h <<\_ACEOF
30228 #define HAVE_STD_EXT_HASH_SET 1
30229 _ACEOF
30230
30231  else
30232
30233 cat >>confdefs.h <<\_ACEOF
30234 #define HAVE_STD_EXT_HASH_SET 0
30235 _ACEOF
30236
30237  fi
30238
30239  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30240 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30241 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30242   echo $ECHO_N "(cached) $ECHO_C" >&6
30243 else
30244
30245   ac_ext=cpp
30246 ac_cpp='$CXXCPP $CPPFLAGS'
30247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30250
30251   cat >conftest.$ac_ext <<_ACEOF
30252 /* confdefs.h.  */
30253 _ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h.  */
30257 #include <ext/hash_set>
30258 #ifdef HAVE_NAMESPACES
30259 using namespace __gnu_cxx;
30260 #endif
30261 int
30262 main ()
30263 {
30264 hash_set<int> t;
30265   ;
30266   return 0;
30267 }
30268 _ACEOF
30269 rm -f conftest.$ac_objext
30270 if { (ac_try="$ac_compile"
30271 case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_compile") 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } && {
30283          test -z "$ac_cxx_werror_flag" ||
30284          test ! -s conftest.err
30285        } && test -s conftest.$ac_objext; then
30286   ac_cv_cxx_have_gnu_ext_hash_set=yes
30287 else
30288   echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30290
30291         ac_cv_cxx_have_gnu_ext_hash_set=no
30292 fi
30293
30294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30295   ac_ext=c
30296 ac_cpp='$CPP $CPPFLAGS'
30297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30300
30301 fi
30302 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30303 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30304  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30305  then
30306
30307 cat >>confdefs.h <<\_ACEOF
30308 #define HAVE_GNU_EXT_HASH_SET 1
30309 _ACEOF
30310
30311  else
30312
30313 cat >>confdefs.h <<\_ACEOF
30314 #define HAVE_GNU_EXT_HASH_SET 0
30315 _ACEOF
30316
30317  fi
30318
30319  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30320 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30321 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30322   echo $ECHO_N "(cached) $ECHO_C" >&6
30323 else
30324
30325   ac_ext=cpp
30326 ac_cpp='$CXXCPP $CPPFLAGS'
30327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30330
30331   cat >conftest.$ac_ext <<_ACEOF
30332 /* confdefs.h.  */
30333 _ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h.  */
30337 #include <hash_set>
30338 int
30339 main ()
30340 {
30341 hash_set<int> t; return 0;
30342   ;
30343   return 0;
30344 }
30345 _ACEOF
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350   *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353   (eval "$ac_compile") 2>conftest.er1
30354   ac_status=$?
30355   grep -v '^ *+' conftest.er1 >conftest.err
30356   rm -f conftest.er1
30357   cat conftest.err >&5
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); } && {
30360          test -z "$ac_cxx_werror_flag" ||
30361          test ! -s conftest.err
30362        } && test -s conftest.$ac_objext; then
30363   ac_cv_cxx_have_global_hash_set=yes
30364 else
30365   echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30367
30368         ac_cv_cxx_have_global_hash_set=no
30369 fi
30370
30371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30372   ac_ext=c
30373 ac_cpp='$CPP $CPPFLAGS'
30374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30377
30378 fi
30379 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30380 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30381  if test "$ac_cv_cxx_have_global_hash_set" = yes
30382  then
30383
30384 cat >>confdefs.h <<\_ACEOF
30385 #define HAVE_GLOBAL_HASH_SET 1
30386 _ACEOF
30387
30388  else
30389
30390 cat >>confdefs.h <<\_ACEOF
30391 #define HAVE_GLOBAL_HASH_SET 0
30392 _ACEOF
30393
30394  fi
30395
30396 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30397 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30398 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30399   echo $ECHO_N "(cached) $ECHO_C" >&6
30400 else
30401
30402   ac_ext=cpp
30403 ac_cpp='$CXXCPP $CPPFLAGS'
30404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30407
30408   cat >conftest.$ac_ext <<_ACEOF
30409 /* confdefs.h.  */
30410 _ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h.  */
30414 #include <iterator>
30415 #ifdef HAVE_NAMESPACES
30416 using namespace std;
30417 #endif
30418 int
30419 main ()
30420 {
30421 iterator<int,int,int> t; return 0;
30422   ;
30423   return 0;
30424 }
30425 _ACEOF
30426 rm -f conftest.$ac_objext
30427 if { (ac_try="$ac_compile"
30428 case "(($ac_try" in
30429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30430   *) ac_try_echo=$ac_try;;
30431 esac
30432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30433   (eval "$ac_compile") 2>conftest.er1
30434   ac_status=$?
30435   grep -v '^ *+' conftest.er1 >conftest.err
30436   rm -f conftest.er1
30437   cat conftest.err >&5
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); } && {
30440          test -z "$ac_cxx_werror_flag" ||
30441          test ! -s conftest.err
30442        } && test -s conftest.$ac_objext; then
30443   ac_cv_cxx_have_std_iterator=yes
30444 else
30445   echo "$as_me: failed program was:" >&5
30446 sed 's/^/| /' conftest.$ac_ext >&5
30447
30448         ac_cv_cxx_have_std_iterator=no
30449 fi
30450
30451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30452   ac_ext=c
30453 ac_cpp='$CPP $CPPFLAGS'
30454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30457
30458
30459 fi
30460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30461 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30462 if test "$ac_cv_cxx_have_std_iterator" = yes
30463 then
30464
30465 cat >>confdefs.h <<\_ACEOF
30466 #define HAVE_STD_ITERATOR 1
30467 _ACEOF
30468
30469 else
30470
30471 cat >>confdefs.h <<\_ACEOF
30472 #define HAVE_STD_ITERATOR 0
30473 _ACEOF
30474
30475 fi
30476
30477 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30478 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30479 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30480   echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482
30483   ac_ext=cpp
30484 ac_cpp='$CXXCPP $CPPFLAGS'
30485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30488
30489   cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h.  */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h.  */
30495 #include <iterator>
30496 #ifdef HAVE_NAMESPACES
30497 using namespace std;
30498 #endif
30499 int
30500 main ()
30501 {
30502 bidirectional_iterator<int,int> t; return 0;
30503   ;
30504   return 0;
30505 }
30506 _ACEOF
30507 rm -f conftest.$ac_objext
30508 if { (ac_try="$ac_compile"
30509 case "(($ac_try" in
30510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511   *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514   (eval "$ac_compile") 2>conftest.er1
30515   ac_status=$?
30516   grep -v '^ *+' conftest.er1 >conftest.err
30517   rm -f conftest.er1
30518   cat conftest.err >&5
30519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520   (exit $ac_status); } && {
30521          test -z "$ac_cxx_werror_flag" ||
30522          test ! -s conftest.err
30523        } && test -s conftest.$ac_objext; then
30524   ac_cv_cxx_have_bi_iterator=yes
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529         ac_cv_cxx_have_bi_iterator=no
30530 fi
30531
30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533   ac_ext=c
30534 ac_cpp='$CPP $CPPFLAGS'
30535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30538
30539
30540 fi
30541 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30542 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30543 if test "$ac_cv_cxx_have_bi_iterator" = yes
30544 then
30545
30546 cat >>confdefs.h <<\_ACEOF
30547 #define HAVE_BI_ITERATOR 1
30548 _ACEOF
30549
30550 else
30551
30552 cat >>confdefs.h <<\_ACEOF
30553 #define HAVE_BI_ITERATOR 0
30554 _ACEOF
30555
30556 fi
30557
30558 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30559 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30560 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30561   echo $ECHO_N "(cached) $ECHO_C" >&6
30562 else
30563
30564   ac_ext=cpp
30565 ac_cpp='$CXXCPP $CPPFLAGS'
30566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30569
30570   cat >conftest.$ac_ext <<_ACEOF
30571 /* confdefs.h.  */
30572 _ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h.  */
30576 #include <iterator>
30577 #ifdef HAVE_NAMESPACES
30578 using namespace std;
30579 #endif
30580 int
30581 main ()
30582 {
30583 forward_iterator<int,int> t; return 0;
30584   ;
30585   return 0;
30586 }
30587 _ACEOF
30588 rm -f conftest.$ac_objext
30589 if { (ac_try="$ac_compile"
30590 case "(($ac_try" in
30591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592   *) ac_try_echo=$ac_try;;
30593 esac
30594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595   (eval "$ac_compile") 2>conftest.er1
30596   ac_status=$?
30597   grep -v '^ *+' conftest.er1 >conftest.err
30598   rm -f conftest.er1
30599   cat conftest.err >&5
30600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601   (exit $ac_status); } && {
30602          test -z "$ac_cxx_werror_flag" ||
30603          test ! -s conftest.err
30604        } && test -s conftest.$ac_objext; then
30605   ac_cv_cxx_have_fwd_iterator=yes
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30609
30610         ac_cv_cxx_have_fwd_iterator=no
30611 fi
30612
30613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30614   ac_ext=c
30615 ac_cpp='$CPP $CPPFLAGS'
30616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30619
30620
30621 fi
30622 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30623 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30624 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30625 then
30626
30627 cat >>confdefs.h <<\_ACEOF
30628 #define HAVE_FWD_ITERATOR 1
30629 _ACEOF
30630
30631 else
30632
30633 cat >>confdefs.h <<\_ACEOF
30634 #define HAVE_FWD_ITERATOR 0
30635 _ACEOF
30636
30637 fi
30638
30639
30640 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30641 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30642 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645   ac_ext=cpp
30646 ac_cpp='$CXXCPP $CPPFLAGS'
30647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30650
30651    cat >conftest.$ac_ext <<_ACEOF
30652 /* confdefs.h.  */
30653 _ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h.  */
30657 #include <math.h>
30658 int
30659 main ()
30660 {
30661 float f; isnan(f);
30662   ;
30663   return 0;
30664 }
30665 _ACEOF
30666 rm -f conftest.$ac_objext
30667 if { (ac_try="$ac_compile"
30668 case "(($ac_try" in
30669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670   *) ac_try_echo=$ac_try;;
30671 esac
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673   (eval "$ac_compile") 2>conftest.er1
30674   ac_status=$?
30675   grep -v '^ *+' conftest.er1 >conftest.err
30676   rm -f conftest.er1
30677   cat conftest.err >&5
30678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679   (exit $ac_status); } && {
30680          test -z "$ac_cxx_werror_flag" ||
30681          test ! -s conftest.err
30682        } && test -s conftest.$ac_objext; then
30683   ac_cv_func_isnan_in_math_h=yes
30684 else
30685   echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30687
30688         ac_cv_func_isnan_in_math_h=no
30689 fi
30690
30691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30692   ac_ext=c
30693 ac_cpp='$CPP $CPPFLAGS'
30694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30697
30698 fi
30699 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30700 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30701
30702
30703 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30704
30705 cat >>confdefs.h <<\_ACEOF
30706 #define HAVE_ISNAN_IN_MATH_H 1
30707 _ACEOF
30708
30709 fi
30710
30711 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30712 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30713 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30714   echo $ECHO_N "(cached) $ECHO_C" >&6
30715 else
30716   ac_ext=cpp
30717 ac_cpp='$CXXCPP $CPPFLAGS'
30718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30721
30722    cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728 #include <cmath>
30729 int
30730 main ()
30731 {
30732 float f; isnan(f);
30733   ;
30734   return 0;
30735 }
30736 _ACEOF
30737 rm -f conftest.$ac_objext
30738 if { (ac_try="$ac_compile"
30739 case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_compile") 2>conftest.er1
30745   ac_status=$?
30746   grep -v '^ *+' conftest.er1 >conftest.err
30747   rm -f conftest.er1
30748   cat conftest.err >&5
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); } && {
30751          test -z "$ac_cxx_werror_flag" ||
30752          test ! -s conftest.err
30753        } && test -s conftest.$ac_objext; then
30754   ac_cv_func_isnan_in_cmath=yes
30755 else
30756   echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30758
30759         ac_cv_func_isnan_in_cmath=no
30760 fi
30761
30762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30763   ac_ext=c
30764 ac_cpp='$CPP $CPPFLAGS'
30765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30768
30769 fi
30770 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30771 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30772
30773 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30774
30775 cat >>confdefs.h <<\_ACEOF
30776 #define HAVE_ISNAN_IN_CMATH 1
30777 _ACEOF
30778
30779 fi
30780
30781 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30782 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30783 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30784   echo $ECHO_N "(cached) $ECHO_C" >&6
30785 else
30786   ac_ext=cpp
30787 ac_cpp='$CXXCPP $CPPFLAGS'
30788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30791
30792    cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798 #include <cmath>
30799 int
30800 main ()
30801 {
30802 float f; std::isnan(f);
30803   ;
30804   return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest.$ac_objext
30808 if { (ac_try="$ac_compile"
30809 case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_compile") 2>conftest.er1
30815   ac_status=$?
30816   grep -v '^ *+' conftest.er1 >conftest.err
30817   rm -f conftest.er1
30818   cat conftest.err >&5
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); } && {
30821          test -z "$ac_cxx_werror_flag" ||
30822          test ! -s conftest.err
30823        } && test -s conftest.$ac_objext; then
30824   ac_cv_func_std_isnan_in_cmath=yes
30825 else
30826   echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30828
30829         ac_cv_func_std_isnan_in_cmath=no
30830 fi
30831
30832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30833   ac_ext=c
30834 ac_cpp='$CPP $CPPFLAGS'
30835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30838
30839 fi
30840 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30841 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30842
30843 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30844
30845 cat >>confdefs.h <<\_ACEOF
30846 #define HAVE_STD_ISNAN_IN_CMATH 1
30847 _ACEOF
30848
30849 fi
30850
30851
30852 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30853 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30854 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30855   echo $ECHO_N "(cached) $ECHO_C" >&6
30856 else
30857   ac_ext=cpp
30858 ac_cpp='$CXXCPP $CPPFLAGS'
30859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30862
30863    cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h.  */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h.  */
30869 #include <math.h>
30870 int
30871 main ()
30872 {
30873 float f; isinf(f);
30874   ;
30875   return 0;
30876 }
30877 _ACEOF
30878 rm -f conftest.$ac_objext
30879 if { (ac_try="$ac_compile"
30880 case "(($ac_try" in
30881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882   *) ac_try_echo=$ac_try;;
30883 esac
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885   (eval "$ac_compile") 2>conftest.er1
30886   ac_status=$?
30887   grep -v '^ *+' conftest.er1 >conftest.err
30888   rm -f conftest.er1
30889   cat conftest.err >&5
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); } && {
30892          test -z "$ac_cxx_werror_flag" ||
30893          test ! -s conftest.err
30894        } && test -s conftest.$ac_objext; then
30895   ac_cv_func_isinf_in_math_h=yes
30896 else
30897   echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30899
30900         ac_cv_func_isinf_in_math_h=no
30901 fi
30902
30903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30904   ac_ext=c
30905 ac_cpp='$CPP $CPPFLAGS'
30906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30909
30910 fi
30911 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30912 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30913
30914 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30915
30916 cat >>confdefs.h <<\_ACEOF
30917 #define HAVE_ISINF_IN_MATH_H 1
30918 _ACEOF
30919
30920 fi
30921
30922 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30923 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30924 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30925   echo $ECHO_N "(cached) $ECHO_C" >&6
30926 else
30927   ac_ext=cpp
30928 ac_cpp='$CXXCPP $CPPFLAGS'
30929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30932
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 #include <cmath>
30940 int
30941 main ()
30942 {
30943 float f; isinf(f);
30944   ;
30945   return 0;
30946 }
30947 _ACEOF
30948 rm -f conftest.$ac_objext
30949 if { (ac_try="$ac_compile"
30950 case "(($ac_try" in
30951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30952   *) ac_try_echo=$ac_try;;
30953 esac
30954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30955   (eval "$ac_compile") 2>conftest.er1
30956   ac_status=$?
30957   grep -v '^ *+' conftest.er1 >conftest.err
30958   rm -f conftest.er1
30959   cat conftest.err >&5
30960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961   (exit $ac_status); } && {
30962          test -z "$ac_cxx_werror_flag" ||
30963          test ! -s conftest.err
30964        } && test -s conftest.$ac_objext; then
30965   ac_cv_func_isinf_in_cmath=yes
30966 else
30967   echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30969
30970         ac_cv_func_isinf_in_cmath=no
30971 fi
30972
30973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30974   ac_ext=c
30975 ac_cpp='$CPP $CPPFLAGS'
30976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30979
30980 fi
30981 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30982 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30983
30984 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30985
30986 cat >>confdefs.h <<\_ACEOF
30987 #define HAVE_ISINF_IN_CMATH 1
30988 _ACEOF
30989
30990 fi
30991
30992 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30993 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30994 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30995   echo $ECHO_N "(cached) $ECHO_C" >&6
30996 else
30997   ac_ext=cpp
30998 ac_cpp='$CXXCPP $CPPFLAGS'
30999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31002
31003    cat >conftest.$ac_ext <<_ACEOF
31004 /* confdefs.h.  */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h.  */
31009 #include <cmath>
31010 int
31011 main ()
31012 {
31013 float f; std::isinf(f)}
31014   ;
31015   return 0;
31016 }
31017 _ACEOF
31018 rm -f conftest.$ac_objext
31019 if { (ac_try="$ac_compile"
31020 case "(($ac_try" in
31021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022   *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025   (eval "$ac_compile") 2>conftest.er1
31026   ac_status=$?
31027   grep -v '^ *+' conftest.er1 >conftest.err
31028   rm -f conftest.er1
31029   cat conftest.err >&5
31030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031   (exit $ac_status); } && {
31032          test -z "$ac_cxx_werror_flag" ||
31033          test ! -s conftest.err
31034        } && test -s conftest.$ac_objext; then
31035   ac_cv_func_std_isinf_in_cmath=yes
31036 else
31037   echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31039
31040         ac_cv_func_std_isinf_in_cmath=no
31041 fi
31042
31043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31044   ac_ext=c
31045 ac_cpp='$CPP $CPPFLAGS'
31046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31049
31050 fi
31051 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31052 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31053
31054 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31055
31056 cat >>confdefs.h <<\_ACEOF
31057 #define HAVE_STD_ISINF_IN_CMATH 1
31058 _ACEOF
31059
31060 fi
31061
31062 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31065   echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067   ac_ext=cpp
31068 ac_cpp='$CXXCPP $CPPFLAGS'
31069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31072
31073    cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079 #include <ieeefp.h>
31080 int
31081 main ()
31082 {
31083 float f; finite(f);
31084   ;
31085   return 0;
31086 }
31087 _ACEOF
31088 rm -f conftest.$ac_objext
31089 if { (ac_try="$ac_compile"
31090 case "(($ac_try" in
31091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092   *) ac_try_echo=$ac_try;;
31093 esac
31094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31095   (eval "$ac_compile") 2>conftest.er1
31096   ac_status=$?
31097   grep -v '^ *+' conftest.er1 >conftest.err
31098   rm -f conftest.er1
31099   cat conftest.err >&5
31100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101   (exit $ac_status); } && {
31102          test -z "$ac_cxx_werror_flag" ||
31103          test ! -s conftest.err
31104        } && test -s conftest.$ac_objext; then
31105   ac_cv_func_finite_in_ieeefp_h=yes
31106 else
31107   echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31109
31110         ac_cv_func_finite_in_ieeefp_h=no
31111 fi
31112
31113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31114   ac_ext=c
31115 ac_cpp='$CPP $CPPFLAGS'
31116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31119
31120 fi
31121 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31122 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31123
31124 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31125
31126 cat >>confdefs.h <<\_ACEOF
31127 #define HAVE_FINITE_IN_IEEEFP_H 1
31128 _ACEOF
31129
31130 fi
31131
31132
31133
31134 if test "$llvm_cv_platform_type" = "Unix" ; then
31135
31136
31137 for ac_header in stdlib.h unistd.h
31138 do
31139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31141   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31144   echo $ECHO_N "(cached) $ECHO_C" >&6
31145 fi
31146 ac_res=`eval echo '${'$as_ac_Header'}'`
31147                { echo "$as_me:$LINENO: result: $ac_res" >&5
31148 echo "${ECHO_T}$ac_res" >&6; }
31149 else
31150   # Is the header compilable?
31151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31153 cat >conftest.$ac_ext <<_ACEOF
31154 /* confdefs.h.  */
31155 _ACEOF
31156 cat confdefs.h >>conftest.$ac_ext
31157 cat >>conftest.$ac_ext <<_ACEOF
31158 /* end confdefs.h.  */
31159 $ac_includes_default
31160 #include <$ac_header>
31161 _ACEOF
31162 rm -f conftest.$ac_objext
31163 if { (ac_try="$ac_compile"
31164 case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_compile") 2>conftest.er1
31170   ac_status=$?
31171   grep -v '^ *+' conftest.er1 >conftest.err
31172   rm -f conftest.er1
31173   cat conftest.err >&5
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); } && {
31176          test -z "$ac_c_werror_flag" ||
31177          test ! -s conftest.err
31178        } && test -s conftest.$ac_objext; then
31179   ac_header_compiler=yes
31180 else
31181   echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31183
31184         ac_header_compiler=no
31185 fi
31186
31187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31189 echo "${ECHO_T}$ac_header_compiler" >&6; }
31190
31191 # Is the header present?
31192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31194 cat >conftest.$ac_ext <<_ACEOF
31195 /* confdefs.h.  */
31196 _ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h.  */
31200 #include <$ac_header>
31201 _ACEOF
31202 if { (ac_try="$ac_cpp conftest.$ac_ext"
31203 case "(($ac_try" in
31204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205   *) ac_try_echo=$ac_try;;
31206 esac
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31209   ac_status=$?
31210   grep -v '^ *+' conftest.er1 >conftest.err
31211   rm -f conftest.er1
31212   cat conftest.err >&5
31213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214   (exit $ac_status); } >/dev/null && {
31215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31216          test ! -s conftest.err
31217        }; then
31218   ac_header_preproc=yes
31219 else
31220   echo "$as_me: failed program was:" >&5
31221 sed 's/^/| /' conftest.$ac_ext >&5
31222
31223   ac_header_preproc=no
31224 fi
31225
31226 rm -f conftest.err conftest.$ac_ext
31227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31228 echo "${ECHO_T}$ac_header_preproc" >&6; }
31229
31230 # So?  What about this header?
31231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31232   yes:no: )
31233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31237     ac_header_preproc=yes
31238     ;;
31239   no:yes:* )
31240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31252     ( cat <<\_ASBOX
31253 ## ----------------------------------- ##
31254 ## Report this to llvmbugs@cs.uiuc.edu ##
31255 ## ----------------------------------- ##
31256 _ASBOX
31257      ) | sed "s/^/$as_me: WARNING:     /" >&2
31258     ;;
31259 esac
31260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31263   echo $ECHO_N "(cached) $ECHO_C" >&6
31264 else
31265   eval "$as_ac_Header=\$ac_header_preproc"
31266 fi
31267 ac_res=`eval echo '${'$as_ac_Header'}'`
31268                { echo "$as_me:$LINENO: result: $ac_res" >&5
31269 echo "${ECHO_T}$ac_res" >&6; }
31270
31271 fi
31272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31273   cat >>confdefs.h <<_ACEOF
31274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31275 _ACEOF
31276
31277 fi
31278
31279 done
31280
31281
31282 for ac_func in getpagesize
31283 do
31284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31288   echo $ECHO_N "(cached) $ECHO_C" >&6
31289 else
31290   cat >conftest.$ac_ext <<_ACEOF
31291 /* confdefs.h.  */
31292 _ACEOF
31293 cat confdefs.h >>conftest.$ac_ext
31294 cat >>conftest.$ac_ext <<_ACEOF
31295 /* end confdefs.h.  */
31296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31298 #define $ac_func innocuous_$ac_func
31299
31300 /* System header to define __stub macros and hopefully few prototypes,
31301     which can conflict with char $ac_func (); below.
31302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31303     <limits.h> exists even on freestanding compilers.  */
31304
31305 #ifdef __STDC__
31306 # include <limits.h>
31307 #else
31308 # include <assert.h>
31309 #endif
31310
31311 #undef $ac_func
31312
31313 /* Override any GCC internal prototype to avoid an error.
31314    Use char because int might match the return type of a GCC
31315    builtin and then its argument prototype would still apply.  */
31316 #ifdef __cplusplus
31317 extern "C"
31318 #endif
31319 char $ac_func ();
31320 /* The GNU C library defines this for functions which it implements
31321     to always fail with ENOSYS.  Some functions are actually named
31322     something starting with __ and the normal name is an alias.  */
31323 #if defined __stub_$ac_func || defined __stub___$ac_func
31324 choke me
31325 #endif
31326
31327 int
31328 main ()
31329 {
31330 return $ac_func ();
31331   ;
31332   return 0;
31333 }
31334 _ACEOF
31335 rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339   *) ac_try_echo=$ac_try;;
31340 esac
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342   (eval "$ac_link") 2>conftest.er1
31343   ac_status=$?
31344   grep -v '^ *+' conftest.er1 >conftest.err
31345   rm -f conftest.er1
31346   cat conftest.err >&5
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); } && {
31349          test -z "$ac_c_werror_flag" ||
31350          test ! -s conftest.err
31351        } && test -s conftest$ac_exeext &&
31352        $as_test_x conftest$ac_exeext; then
31353   eval "$as_ac_var=yes"
31354 else
31355   echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31357
31358         eval "$as_ac_var=no"
31359 fi
31360
31361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31362       conftest$ac_exeext conftest.$ac_ext
31363 fi
31364 ac_res=`eval echo '${'$as_ac_var'}'`
31365                { echo "$as_me:$LINENO: result: $ac_res" >&5
31366 echo "${ECHO_T}$ac_res" >&6; }
31367 if test `eval echo '${'$as_ac_var'}'` = yes; then
31368   cat >>confdefs.h <<_ACEOF
31369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31370 _ACEOF
31371
31372 fi
31373 done
31374
31375 { echo "$as_me:$LINENO: checking for working mmap" >&5
31376 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31377 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31378   echo $ECHO_N "(cached) $ECHO_C" >&6
31379 else
31380   if test "$cross_compiling" = yes; then
31381   ac_cv_func_mmap_fixed_mapped=no
31382 else
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 $ac_includes_default
31390 /* malloc might have been renamed as rpl_malloc. */
31391 #undef malloc
31392
31393 /* Thanks to Mike Haertel and Jim Avera for this test.
31394    Here is a matrix of mmap possibilities:
31395         mmap private not fixed
31396         mmap private fixed at somewhere currently unmapped
31397         mmap private fixed at somewhere already mapped
31398         mmap shared not fixed
31399         mmap shared fixed at somewhere currently unmapped
31400         mmap shared fixed at somewhere already mapped
31401    For private mappings, we should verify that changes cannot be read()
31402    back from the file, nor mmap's back from the file at a different
31403    address.  (There have been systems where private was not correctly
31404    implemented like the infamous i386 svr4.0, and systems where the
31405    VM page cache was not coherent with the file system buffer cache
31406    like early versions of FreeBSD and possibly contemporary NetBSD.)
31407    For shared mappings, we should conversely verify that changes get
31408    propagated back to all the places they're supposed to be.
31409
31410    Grep wants private fixed already mapped.
31411    The main things grep needs to know about mmap are:
31412    * does it exist and is it safe to write into the mmap'd area
31413    * how to use it (BSD variants)  */
31414
31415 #include <fcntl.h>
31416 #include <sys/mman.h>
31417
31418 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31419 char *malloc ();
31420 #endif
31421
31422 /* This mess was copied from the GNU getpagesize.h.  */
31423 #ifndef HAVE_GETPAGESIZE
31424 /* Assume that all systems that can run configure have sys/param.h.  */
31425 # ifndef HAVE_SYS_PARAM_H
31426 #  define HAVE_SYS_PARAM_H 1
31427 # endif
31428
31429 # ifdef _SC_PAGESIZE
31430 #  define getpagesize() sysconf(_SC_PAGESIZE)
31431 # else /* no _SC_PAGESIZE */
31432 #  ifdef HAVE_SYS_PARAM_H
31433 #   include <sys/param.h>
31434 #   ifdef EXEC_PAGESIZE
31435 #    define getpagesize() EXEC_PAGESIZE
31436 #   else /* no EXEC_PAGESIZE */
31437 #    ifdef NBPG
31438 #     define getpagesize() NBPG * CLSIZE
31439 #     ifndef CLSIZE
31440 #      define CLSIZE 1
31441 #     endif /* no CLSIZE */
31442 #    else /* no NBPG */
31443 #     ifdef NBPC
31444 #      define getpagesize() NBPC
31445 #     else /* no NBPC */
31446 #      ifdef PAGESIZE
31447 #       define getpagesize() PAGESIZE
31448 #      endif /* PAGESIZE */
31449 #     endif /* no NBPC */
31450 #    endif /* no NBPG */
31451 #   endif /* no EXEC_PAGESIZE */
31452 #  else /* no HAVE_SYS_PARAM_H */
31453 #   define getpagesize() 8192   /* punt totally */
31454 #  endif /* no HAVE_SYS_PARAM_H */
31455 # endif /* no _SC_PAGESIZE */
31456
31457 #endif /* no HAVE_GETPAGESIZE */
31458
31459 int
31460 main ()
31461 {
31462   char *data, *data2, *data3;
31463   int i, pagesize;
31464   int fd;
31465
31466   pagesize = getpagesize ();
31467
31468   /* First, make a file with some known garbage in it. */
31469   data = (char *) malloc (pagesize);
31470   if (!data)
31471     return 1;
31472   for (i = 0; i < pagesize; ++i)
31473     *(data + i) = rand ();
31474   umask (0);
31475   fd = creat ("conftest.mmap", 0600);
31476   if (fd < 0)
31477     return 1;
31478   if (write (fd, data, pagesize) != pagesize)
31479     return 1;
31480   close (fd);
31481
31482   /* Next, try to mmap the file at a fixed address which already has
31483      something else allocated at it.  If we can, also make sure that
31484      we see the same garbage.  */
31485   fd = open ("conftest.mmap", O_RDWR);
31486   if (fd < 0)
31487     return 1;
31488   data2 = (char *) malloc (2 * pagesize);
31489   if (!data2)
31490     return 1;
31491   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31492   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31493                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31494     return 1;
31495   for (i = 0; i < pagesize; ++i)
31496     if (*(data + i) != *(data2 + i))
31497       return 1;
31498
31499   /* Finally, make sure that changes to the mapped area do not
31500      percolate back to the file as seen by read().  (This is a bug on
31501      some variants of i386 svr4.0.)  */
31502   for (i = 0; i < pagesize; ++i)
31503     *(data2 + i) = *(data2 + i) + 1;
31504   data3 = (char *) malloc (pagesize);
31505   if (!data3)
31506     return 1;
31507   if (read (fd, data3, pagesize) != pagesize)
31508     return 1;
31509   for (i = 0; i < pagesize; ++i)
31510     if (*(data + i) != *(data3 + i))
31511       return 1;
31512   close (fd);
31513   return 0;
31514 }
31515 _ACEOF
31516 rm -f conftest$ac_exeext
31517 if { (ac_try="$ac_link"
31518 case "(($ac_try" in
31519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520   *) ac_try_echo=$ac_try;;
31521 esac
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523   (eval "$ac_link") 2>&5
31524   ac_status=$?
31525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31527   { (case "(($ac_try" in
31528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529   *) ac_try_echo=$ac_try;;
31530 esac
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532   (eval "$ac_try") 2>&5
31533   ac_status=$?
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); }; }; then
31536   ac_cv_func_mmap_fixed_mapped=yes
31537 else
31538   echo "$as_me: program exited with status $ac_status" >&5
31539 echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31541
31542 ( exit $ac_status )
31543 ac_cv_func_mmap_fixed_mapped=no
31544 fi
31545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31546 fi
31547
31548
31549 fi
31550 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31551 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31552 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31553
31554 cat >>confdefs.h <<\_ACEOF
31555 #define HAVE_MMAP 1
31556 _ACEOF
31557
31558 fi
31559 rm -f conftest.mmap
31560
31561   { echo "$as_me:$LINENO: checking for mmap of files" >&5
31562 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31563 if test "${ac_cv_func_mmap_file+set}" = set; then
31564   echo $ECHO_N "(cached) $ECHO_C" >&6
31565 else
31566    ac_ext=c
31567 ac_cpp='$CPP $CPPFLAGS'
31568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31571
31572   if test "$cross_compiling" = yes; then
31573   ac_cv_func_mmap_file=no
31574 else
31575   cat >conftest.$ac_ext <<_ACEOF
31576
31577     /* confdefs.h.  */
31578 _ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h.  */
31582
31583 #include <sys/types.h>
31584 #include <sys/mman.h>
31585 #include <fcntl.h>
31586
31587 int
31588 main ()
31589 {
31590
31591   int fd;
31592   fd = creat ("foo",0777);
31593   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31594   unlink ("foo");
31595   return (fd != (int) MAP_FAILED);
31596   ;
31597   return 0;
31598 }
31599 _ACEOF
31600 rm -f conftest$ac_exeext
31601 if { (ac_try="$ac_link"
31602 case "(($ac_try" in
31603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604   *) ac_try_echo=$ac_try;;
31605 esac
31606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607   (eval "$ac_link") 2>&5
31608   ac_status=$?
31609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31611   { (case "(($ac_try" in
31612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613   *) ac_try_echo=$ac_try;;
31614 esac
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616   (eval "$ac_try") 2>&5
31617   ac_status=$?
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); }; }; then
31620   ac_cv_func_mmap_file=yes
31621 else
31622   echo "$as_me: program exited with status $ac_status" >&5
31623 echo "$as_me: failed program was:" >&5
31624 sed 's/^/| /' conftest.$ac_ext >&5
31625
31626 ( exit $ac_status )
31627 ac_cv_func_mmap_file=no
31628 fi
31629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31630 fi
31631
31632
31633   ac_ext=c
31634 ac_cpp='$CPP $CPPFLAGS'
31635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31638
31639
31640 fi
31641 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31642 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31643 if test "$ac_cv_func_mmap_file" = yes; then
31644
31645 cat >>confdefs.h <<\_ACEOF
31646 #define HAVE_MMAP_FILE
31647 _ACEOF
31648
31649    MMAP_FILE=yes
31650
31651 fi
31652
31653   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31654 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31655 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31656   echo $ECHO_N "(cached) $ECHO_C" >&6
31657 else
31658   if test "$llvm_cv_os_type" = "Interix" ; then
31659    ac_cv_need_dev_zero_for_mmap=yes
31660  else
31661    ac_cv_need_dev_zero_for_mmap=no
31662  fi
31663
31664 fi
31665 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31666 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31667 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31668
31669 cat >>confdefs.h <<\_ACEOF
31670 #define NEED_DEV_ZERO_FOR_MMAP 1
31671 _ACEOF
31672
31673 fi
31674
31675   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31676   then
31677     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31678 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31679   fi
31680   if test "$ac_cv_func_mmap_file" = "no"
31681   then
31682     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31683 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31684   fi
31685 fi
31686
31687
31688
31689 for ac_func in __dso_handle
31690 do
31691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31695   echo $ECHO_N "(cached) $ECHO_C" >&6
31696 else
31697   cat >conftest.$ac_ext <<_ACEOF
31698 /* confdefs.h.  */
31699 _ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h.  */
31703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31705 #define $ac_func innocuous_$ac_func
31706
31707 /* System header to define __stub macros and hopefully few prototypes,
31708     which can conflict with char $ac_func (); below.
31709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31710     <limits.h> exists even on freestanding compilers.  */
31711
31712 #ifdef __STDC__
31713 # include <limits.h>
31714 #else
31715 # include <assert.h>
31716 #endif
31717
31718 #undef $ac_func
31719
31720 /* Override any GCC internal prototype to avoid an error.
31721    Use char because int might match the return type of a GCC
31722    builtin and then its argument prototype would still apply.  */
31723 #ifdef __cplusplus
31724 extern "C"
31725 #endif
31726 char $ac_func ();
31727 /* The GNU C library defines this for functions which it implements
31728     to always fail with ENOSYS.  Some functions are actually named
31729     something starting with __ and the normal name is an alias.  */
31730 #if defined __stub_$ac_func || defined __stub___$ac_func
31731 choke me
31732 #endif
31733
31734 int
31735 main ()
31736 {
31737 return $ac_func ();
31738   ;
31739   return 0;
31740 }
31741 _ACEOF
31742 rm -f conftest.$ac_objext conftest$ac_exeext
31743 if { (ac_try="$ac_link"
31744 case "(($ac_try" in
31745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746   *) ac_try_echo=$ac_try;;
31747 esac
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749   (eval "$ac_link") 2>conftest.er1
31750   ac_status=$?
31751   grep -v '^ *+' conftest.er1 >conftest.err
31752   rm -f conftest.er1
31753   cat conftest.err >&5
31754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755   (exit $ac_status); } && {
31756          test -z "$ac_c_werror_flag" ||
31757          test ! -s conftest.err
31758        } && test -s conftest$ac_exeext &&
31759        $as_test_x conftest$ac_exeext; then
31760   eval "$as_ac_var=yes"
31761 else
31762   echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31764
31765         eval "$as_ac_var=no"
31766 fi
31767
31768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31769       conftest$ac_exeext conftest.$ac_ext
31770 fi
31771 ac_res=`eval echo '${'$as_ac_var'}'`
31772                { echo "$as_me:$LINENO: result: $ac_res" >&5
31773 echo "${ECHO_T}$ac_res" >&6; }
31774 if test `eval echo '${'$as_ac_var'}'` = yes; then
31775   cat >>confdefs.h <<_ACEOF
31776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31777 _ACEOF
31778
31779 fi
31780 done
31781
31782
31783 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31784 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31785 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31786   echo $ECHO_N "(cached) $ECHO_C" >&6
31787 else
31788   llvm_cv_llvmgcc_sanity="no"
31789 if test -x "$LLVMGCC" ; then
31790   cp /dev/null conftest.c
31791   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31792       grep 'target datalayout =' > /dev/null 2>&1
31793   if test $? -eq 0 ; then
31794     llvm_cv_llvmgcc_sanity="yes"
31795   fi
31796   rm conftest.c
31797 fi
31798 fi
31799 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31800 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31801
31802 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31803   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31804 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31805   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31806   LLVMCC1=$llvmcc1path
31807
31808   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31809   LLVMCC1PLUS=$llvmcc1pluspath
31810
31811   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31812   LLVMGCCDIR=$llvmgccdir
31813
31814   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31815   LLVMGCCLIBEXEC=$llvmgcclibexec
31816
31817   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31818   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31819   LLVMGCC_VERSION=$llvmgccversion
31820
31821   LLVMGCC_MAJVERS=$llvmgccmajvers
31822
31823   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31824   LLVMGCC_LANGS=$llvmgcclangs
31825
31826   { echo "$as_me:$LINENO: result: ok" >&5
31827 echo "${ECHO_T}ok" >&6; }
31828 fi
31829
31830 SHLIBEXT=$libltdl_cv_shlibext
31831
31832
31833 # Translate the various configuration directories and other basic
31834 # information into substitutions that will end up in Makefile.config.in
31835 # that these configured values can be used by the makefiles
31836 if test "${prefix}" = "NONE" ; then
31837   prefix="/usr/local"
31838 fi
31839 eval LLVM_PREFIX="${prefix}";
31840 eval LLVM_BINDIR="${prefix}/bin";
31841 eval LLVM_LIBDIR="${prefix}/lib";
31842 eval LLVM_DATADIR="${prefix}/share/llvm";
31843 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31844 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31845 eval LLVM_INCLUDEDIR="${prefix}/include";
31846 eval LLVM_INFODIR="${prefix}/info";
31847 eval LLVM_MANDIR="${prefix}/man";
31848 LLVM_CONFIGTIME=`date`
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860 # Place the various directores into the config.h file as #defines so that we
31861 # can know about the installation paths within LLVM.
31862
31863 cat >>confdefs.h <<_ACEOF
31864 #define LLVM_PREFIX "$LLVM_PREFIX"
31865 _ACEOF
31866
31867
31868 cat >>confdefs.h <<_ACEOF
31869 #define LLVM_BINDIR "$LLVM_BINDIR"
31870 _ACEOF
31871
31872
31873 cat >>confdefs.h <<_ACEOF
31874 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31875 _ACEOF
31876
31877
31878 cat >>confdefs.h <<_ACEOF
31879 #define LLVM_DATADIR "$LLVM_DATADIR"
31880 _ACEOF
31881
31882
31883 cat >>confdefs.h <<_ACEOF
31884 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31885 _ACEOF
31886
31887
31888 cat >>confdefs.h <<_ACEOF
31889 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31890 _ACEOF
31891
31892
31893 cat >>confdefs.h <<_ACEOF
31894 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31895 _ACEOF
31896
31897
31898 cat >>confdefs.h <<_ACEOF
31899 #define LLVM_INFODIR "$LLVM_INFODIR"
31900 _ACEOF
31901
31902
31903 cat >>confdefs.h <<_ACEOF
31904 #define LLVM_MANDIR "$LLVM_MANDIR"
31905 _ACEOF
31906
31907
31908 cat >>confdefs.h <<_ACEOF
31909 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31910 _ACEOF
31911
31912
31913 cat >>confdefs.h <<_ACEOF
31914 #define LLVM_HOSTTRIPLE "$host"
31915 _ACEOF
31916
31917
31918 # Determine which bindings to build.
31919 if test "$BINDINGS_TO_BUILD" = auto ; then
31920   BINDINGS_TO_BUILD=""
31921   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31922     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31923   fi
31924 fi
31925 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31926
31927
31928 # This isn't really configurey, but it avoids having to repeat the list in
31929 # other files.
31930 ALL_BINDINGS=ocaml
31931
31932
31933 # Do any work necessary to ensure that bindings have what they need.
31934 binding_prereqs_failed=0
31935 for a_binding in $BINDINGS_TO_BUILD ; do
31936   case "$a_binding" in
31937   ocaml)
31938     if test "x$OCAMLC" = x ; then
31939       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31941       binding_prereqs_failed=1
31942     fi
31943     if test "x$OCAMLDEP" = x ; then
31944       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31946       binding_prereqs_failed=1
31947     fi
31948     if test "x$OCAMLOPT" = x ; then
31949       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31951           fi
31952     if test "x$with_ocaml_libdir" != xauto ; then
31953       OCAML_LIBDIR=$with_ocaml_libdir
31954
31955     else
31956       ocaml_stdlib="`"$OCAMLC" -where`"
31957       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31958       then
31959         # ocaml stdlib is beneath our prefix; use stdlib
31960         OCAML_LIBDIR=$ocaml_stdlib
31961
31962       else
31963         # ocaml stdlib is outside our prefix; use libdir/ocaml
31964         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31965
31966       fi
31967     fi
31968     ;;
31969   esac
31970 done
31971 if test "$binding_prereqs_failed" = 1 ; then
31972   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31973 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31974    { (exit 1); exit 1; }; }
31975 fi
31976
31977
31978
31979 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31980
31981 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31982
31983 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31984
31985 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31986
31987 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31988
31989
31990 ac_config_files="$ac_config_files Makefile.config"
31991
31992
31993 ac_config_files="$ac_config_files llvm.spec"
31994
31995
31996 ac_config_files="$ac_config_files docs/doxygen.cfg"
31997
31998
31999 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32000
32001
32002 ac_config_commands="$ac_config_commands setup"
32003
32004 ac_config_commands="$ac_config_commands Makefile"
32005
32006
32007 ac_config_commands="$ac_config_commands Makefile.common"
32008
32009
32010 ac_config_commands="$ac_config_commands examples/Makefile"
32011
32012
32013 ac_config_commands="$ac_config_commands lib/Makefile"
32014
32015
32016 ac_config_commands="$ac_config_commands runtime/Makefile"
32017
32018
32019 ac_config_commands="$ac_config_commands test/Makefile"
32020
32021
32022 ac_config_commands="$ac_config_commands test/Makefile.tests"
32023
32024
32025 ac_config_commands="$ac_config_commands tools/Makefile"
32026
32027
32028 ac_config_commands="$ac_config_commands utils/Makefile"
32029
32030
32031 ac_config_commands="$ac_config_commands projects/Makefile"
32032
32033
32034 ac_config_commands="$ac_config_commands bindings/Makefile"
32035
32036
32037 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32038
32039
32040
32041 cat >confcache <<\_ACEOF
32042 # This file is a shell script that caches the results of configure
32043 # tests run on this system so they can be shared between configure
32044 # scripts and configure runs, see configure's option --config-cache.
32045 # It is not useful on other systems.  If it contains results you don't
32046 # want to keep, you may remove or edit it.
32047 #
32048 # config.status only pays attention to the cache file if you give it
32049 # the --recheck option to rerun configure.
32050 #
32051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32053 # following values.
32054
32055 _ACEOF
32056
32057 # The following way of writing the cache mishandles newlines in values,
32058 # but we know of no workaround that is simple, portable, and efficient.
32059 # So, we kill variables containing newlines.
32060 # Ultrix sh set writes to stderr and can't be redirected directly,
32061 # and sets the high bit in the cache file unless we assign to the vars.
32062 (
32063   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32064     eval ac_val=\$$ac_var
32065     case $ac_val in #(
32066     *${as_nl}*)
32067       case $ac_var in #(
32068       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32069 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32070       esac
32071       case $ac_var in #(
32072       _ | IFS | as_nl) ;; #(
32073       *) $as_unset $ac_var ;;
32074       esac ;;
32075     esac
32076   done
32077
32078   (set) 2>&1 |
32079     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32080     *${as_nl}ac_space=\ *)
32081       # `set' does not quote correctly, so add quotes (double-quote
32082       # substitution turns \\\\ into \\, and sed turns \\ into \).
32083       sed -n \
32084         "s/'/'\\\\''/g;
32085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32086       ;; #(
32087     *)
32088       # `set' quotes correctly as required by POSIX, so do not add quotes.
32089       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32090       ;;
32091     esac |
32092     sort
32093 ) |
32094   sed '
32095      /^ac_cv_env_/b end
32096      t clear
32097      :clear
32098      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32099      t end
32100      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32101      :end' >>confcache
32102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32103   if test -w "$cache_file"; then
32104     test "x$cache_file" != "x/dev/null" &&
32105       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32106 echo "$as_me: updating cache $cache_file" >&6;}
32107     cat confcache >$cache_file
32108   else
32109     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32110 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32111   fi
32112 fi
32113 rm -f confcache
32114
32115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32116 # Let make expand exec_prefix.
32117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32118
32119 DEFS=-DHAVE_CONFIG_H
32120
32121 ac_libobjs=
32122 ac_ltlibobjs=
32123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32124   # 1. Remove the extension, and $U if already installed.
32125   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32126   ac_i=`echo "$ac_i" | sed "$ac_script"`
32127   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32128   #    will be set to the directory where LIBOBJS objects are built.
32129   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32130   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32131 done
32132 LIBOBJS=$ac_libobjs
32133
32134 LTLIBOBJS=$ac_ltlibobjs
32135
32136
32137 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32138   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32139 Usually this means the macro was only invoked conditionally." >&5
32140 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32141 Usually this means the macro was only invoked conditionally." >&2;}
32142    { (exit 1); exit 1; }; }
32143 fi
32144 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32145   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32146 Usually this means the macro was only invoked conditionally." >&5
32147 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32148 Usually this means the macro was only invoked conditionally." >&2;}
32149    { (exit 1); exit 1; }; }
32150 fi
32151
32152 : ${CONFIG_STATUS=./config.status}
32153 ac_clean_files_save=$ac_clean_files
32154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32157 cat >$CONFIG_STATUS <<_ACEOF
32158 #! $SHELL
32159 # Generated by $as_me.
32160 # Run this file to recreate the current configuration.
32161 # Compiler output produced by configure, useful for debugging
32162 # configure, is in config.log if it exists.
32163
32164 debug=false
32165 ac_cs_recheck=false
32166 ac_cs_silent=false
32167 SHELL=\${CONFIG_SHELL-$SHELL}
32168 _ACEOF
32169
32170 cat >>$CONFIG_STATUS <<\_ACEOF
32171 ## --------------------- ##
32172 ## M4sh Initialization.  ##
32173 ## --------------------- ##
32174
32175 # Be more Bourne compatible
32176 DUALCASE=1; export DUALCASE # for MKS sh
32177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32178   emulate sh
32179   NULLCMD=:
32180   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32181   # is contrary to our usage.  Disable this feature.
32182   alias -g '${1+"$@"}'='"$@"'
32183   setopt NO_GLOB_SUBST
32184 else
32185   case `(set -o) 2>/dev/null` in
32186   *posix*) set -o posix ;;
32187 esac
32188
32189 fi
32190
32191
32192
32193
32194 # PATH needs CR
32195 # Avoid depending upon Character Ranges.
32196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32199 as_cr_digits='0123456789'
32200 as_cr_alnum=$as_cr_Letters$as_cr_digits
32201
32202 # The user is always right.
32203 if test "${PATH_SEPARATOR+set}" != set; then
32204   echo "#! /bin/sh" >conf$$.sh
32205   echo  "exit 0"   >>conf$$.sh
32206   chmod +x conf$$.sh
32207   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32208     PATH_SEPARATOR=';'
32209   else
32210     PATH_SEPARATOR=:
32211   fi
32212   rm -f conf$$.sh
32213 fi
32214
32215 # Support unset when possible.
32216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32217   as_unset=unset
32218 else
32219   as_unset=false
32220 fi
32221
32222
32223 # IFS
32224 # We need space, tab and new line, in precisely that order.  Quoting is
32225 # there to prevent editors from complaining about space-tab.
32226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32227 # splitting by setting IFS to empty value.)
32228 as_nl='
32229 '
32230 IFS=" ""        $as_nl"
32231
32232 # Find who we are.  Look in the path if we contain no directory separator.
32233 case $0 in
32234   *[\\/]* ) as_myself=$0 ;;
32235   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32236 for as_dir in $PATH
32237 do
32238   IFS=$as_save_IFS
32239   test -z "$as_dir" && as_dir=.
32240   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32241 done
32242 IFS=$as_save_IFS
32243
32244      ;;
32245 esac
32246 # We did not find ourselves, most probably we were run as `sh COMMAND'
32247 # in which case we are not to be found in the path.
32248 if test "x$as_myself" = x; then
32249   as_myself=$0
32250 fi
32251 if test ! -f "$as_myself"; then
32252   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32253   { (exit 1); exit 1; }
32254 fi
32255
32256 # Work around bugs in pre-3.0 UWIN ksh.
32257 for as_var in ENV MAIL MAILPATH
32258 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32259 done
32260 PS1='$ '
32261 PS2='> '
32262 PS4='+ '
32263
32264 # NLS nuisances.
32265 for as_var in \
32266   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32267   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32268   LC_TELEPHONE LC_TIME
32269 do
32270   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32271     eval $as_var=C; export $as_var
32272   else
32273     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32274   fi
32275 done
32276
32277 # Required to use basename.
32278 if expr a : '\(a\)' >/dev/null 2>&1 &&
32279    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32280   as_expr=expr
32281 else
32282   as_expr=false
32283 fi
32284
32285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32286   as_basename=basename
32287 else
32288   as_basename=false
32289 fi
32290
32291
32292 # Name of the executable.
32293 as_me=`$as_basename -- "$0" ||
32294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32295          X"$0" : 'X\(//\)$' \| \
32296          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32297 echo X/"$0" |
32298     sed '/^.*\/\([^/][^/]*\)\/*$/{
32299             s//\1/
32300             q
32301           }
32302           /^X\/\(\/\/\)$/{
32303             s//\1/
32304             q
32305           }
32306           /^X\/\(\/\).*/{
32307             s//\1/
32308             q
32309           }
32310           s/.*/./; q'`
32311
32312 # CDPATH.
32313 $as_unset CDPATH
32314
32315
32316
32317   as_lineno_1=$LINENO
32318   as_lineno_2=$LINENO
32319   test "x$as_lineno_1" != "x$as_lineno_2" &&
32320   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32321
32322   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32323   # uniformly replaced by the line number.  The first 'sed' inserts a
32324   # line-number line after each line using $LINENO; the second 'sed'
32325   # does the real work.  The second script uses 'N' to pair each
32326   # line-number line with the line containing $LINENO, and appends
32327   # trailing '-' during substitution so that $LINENO is not a special
32328   # case at line end.
32329   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32330   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32331   # E. McMahon (1931-1989) for sed's syntax.  :-)
32332   sed -n '
32333     p
32334     /[$]LINENO/=
32335   ' <$as_myself |
32336     sed '
32337       s/[$]LINENO.*/&-/
32338       t lineno
32339       b
32340       :lineno
32341       N
32342       :loop
32343       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32344       t loop
32345       s/-\n.*//
32346     ' >$as_me.lineno &&
32347   chmod +x "$as_me.lineno" ||
32348     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32349    { (exit 1); exit 1; }; }
32350
32351   # Don't try to exec as it changes $[0], causing all sort of problems
32352   # (the dirname of $[0] is not the place where we might find the
32353   # original and so on.  Autoconf is especially sensitive to this).
32354   . "./$as_me.lineno"
32355   # Exit status is that of the last command.
32356   exit
32357 }
32358
32359
32360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32361   as_dirname=dirname
32362 else
32363   as_dirname=false
32364 fi
32365
32366 ECHO_C= ECHO_N= ECHO_T=
32367 case `echo -n x` in
32368 -n*)
32369   case `echo 'x\c'` in
32370   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32371   *)   ECHO_C='\c';;
32372   esac;;
32373 *)
32374   ECHO_N='-n';;
32375 esac
32376
32377 if expr a : '\(a\)' >/dev/null 2>&1 &&
32378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32379   as_expr=expr
32380 else
32381   as_expr=false
32382 fi
32383
32384 rm -f conf$$ conf$$.exe conf$$.file
32385 if test -d conf$$.dir; then
32386   rm -f conf$$.dir/conf$$.file
32387 else
32388   rm -f conf$$.dir
32389   mkdir conf$$.dir
32390 fi
32391 echo >conf$$.file
32392 if ln -s conf$$.file conf$$ 2>/dev/null; then
32393   as_ln_s='ln -s'
32394   # ... but there are two gotchas:
32395   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32396   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32397   # In both cases, we have to default to `cp -p'.
32398   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32399     as_ln_s='cp -p'
32400 elif ln conf$$.file conf$$ 2>/dev/null; then
32401   as_ln_s=ln
32402 else
32403   as_ln_s='cp -p'
32404 fi
32405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32406 rmdir conf$$.dir 2>/dev/null
32407
32408 if mkdir -p . 2>/dev/null; then
32409   as_mkdir_p=:
32410 else
32411   test -d ./-p && rmdir ./-p
32412   as_mkdir_p=false
32413 fi
32414
32415 if test -x / >/dev/null 2>&1; then
32416   as_test_x='test -x'
32417 else
32418   if ls -dL / >/dev/null 2>&1; then
32419     as_ls_L_option=L
32420   else
32421     as_ls_L_option=
32422   fi
32423   as_test_x='
32424     eval sh -c '\''
32425       if test -d "$1"; then
32426         test -d "$1/.";
32427       else
32428         case $1 in
32429         -*)set "./$1";;
32430         esac;
32431         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32432         ???[sx]*):;;*)false;;esac;fi
32433     '\'' sh
32434   '
32435 fi
32436 as_executable_p=$as_test_x
32437
32438 # Sed expression to map a string onto a valid CPP name.
32439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32440
32441 # Sed expression to map a string onto a valid variable name.
32442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32443
32444
32445 exec 6>&1
32446
32447 # Save the log message, to keep $[0] and so on meaningful, and to
32448 # report actual input values of CONFIG_FILES etc. instead of their
32449 # values after options handling.
32450 ac_log="
32451 This file was extended by llvm $as_me 2.2svn, which was
32452 generated by GNU Autoconf 2.61.  Invocation command line was
32453
32454   CONFIG_FILES    = $CONFIG_FILES
32455   CONFIG_HEADERS  = $CONFIG_HEADERS
32456   CONFIG_LINKS    = $CONFIG_LINKS
32457   CONFIG_COMMANDS = $CONFIG_COMMANDS
32458   $ $0 $@
32459
32460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32461 "
32462
32463 _ACEOF
32464
32465 cat >>$CONFIG_STATUS <<_ACEOF
32466 # Files that config.status was made for.
32467 config_files="$ac_config_files"
32468 config_headers="$ac_config_headers"
32469 config_commands="$ac_config_commands"
32470
32471 _ACEOF
32472
32473 cat >>$CONFIG_STATUS <<\_ACEOF
32474 ac_cs_usage="\
32475 \`$as_me' instantiates files from templates according to the
32476 current configuration.
32477
32478 Usage: $0 [OPTIONS] [FILE]...
32479
32480   -h, --help       print this help, then exit
32481   -V, --version    print version number and configuration settings, then exit
32482   -q, --quiet      do not print progress messages
32483   -d, --debug      don't remove temporary files
32484       --recheck    update $as_me by reconfiguring in the same conditions
32485   --file=FILE[:TEMPLATE]
32486                    instantiate the configuration file FILE
32487   --header=FILE[:TEMPLATE]
32488                    instantiate the configuration header FILE
32489
32490 Configuration files:
32491 $config_files
32492
32493 Configuration headers:
32494 $config_headers
32495
32496 Configuration commands:
32497 $config_commands
32498
32499 Report bugs to <bug-autoconf@gnu.org>."
32500
32501 _ACEOF
32502 cat >>$CONFIG_STATUS <<_ACEOF
32503 ac_cs_version="\\
32504 llvm config.status 2.2svn
32505 configured by $0, generated by GNU Autoconf 2.61,
32506   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32507
32508 Copyright (C) 2006 Free Software Foundation, Inc.
32509 This config.status script is free software; the Free Software Foundation
32510 gives unlimited permission to copy, distribute and modify it."
32511
32512 ac_pwd='$ac_pwd'
32513 srcdir='$srcdir'
32514 INSTALL='$INSTALL'
32515 _ACEOF
32516
32517 cat >>$CONFIG_STATUS <<\_ACEOF
32518 # If no file are specified by the user, then we need to provide default
32519 # value.  By we need to know if files were specified by the user.
32520 ac_need_defaults=:
32521 while test $# != 0
32522 do
32523   case $1 in
32524   --*=*)
32525     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32526     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32527     ac_shift=:
32528     ;;
32529   *)
32530     ac_option=$1
32531     ac_optarg=$2
32532     ac_shift=shift
32533     ;;
32534   esac
32535
32536   case $ac_option in
32537   # Handling of the options.
32538   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32539     ac_cs_recheck=: ;;
32540   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32541     echo "$ac_cs_version"; exit ;;
32542   --debug | --debu | --deb | --de | --d | -d )
32543     debug=: ;;
32544   --file | --fil | --fi | --f )
32545     $ac_shift
32546     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32547     ac_need_defaults=false;;
32548   --header | --heade | --head | --hea )
32549     $ac_shift
32550     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32551     ac_need_defaults=false;;
32552   --he | --h)
32553     # Conflict between --help and --header
32554     { echo "$as_me: error: ambiguous option: $1
32555 Try \`$0 --help' for more information." >&2
32556    { (exit 1); exit 1; }; };;
32557   --help | --hel | -h )
32558     echo "$ac_cs_usage"; exit ;;
32559   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32560   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32561     ac_cs_silent=: ;;
32562
32563   # This is an error.
32564   -*) { echo "$as_me: error: unrecognized option: $1
32565 Try \`$0 --help' for more information." >&2
32566    { (exit 1); exit 1; }; } ;;
32567
32568   *) ac_config_targets="$ac_config_targets $1"
32569      ac_need_defaults=false ;;
32570
32571   esac
32572   shift
32573 done
32574
32575 ac_configure_extra_args=
32576
32577 if $ac_cs_silent; then
32578   exec 6>/dev/null
32579   ac_configure_extra_args="$ac_configure_extra_args --silent"
32580 fi
32581
32582 _ACEOF
32583 cat >>$CONFIG_STATUS <<_ACEOF
32584 if \$ac_cs_recheck; then
32585   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32586   CONFIG_SHELL=$SHELL
32587   export CONFIG_SHELL
32588   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32589 fi
32590
32591 _ACEOF
32592 cat >>$CONFIG_STATUS <<\_ACEOF
32593 exec 5>>config.log
32594 {
32595   echo
32596   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32597 ## Running $as_me. ##
32598 _ASBOX
32599   echo "$ac_log"
32600 } >&5
32601
32602 _ACEOF
32603 cat >>$CONFIG_STATUS <<_ACEOF
32604 #
32605 # INIT-COMMANDS
32606 #
32607 llvm_src="${srcdir}"
32608
32609 _ACEOF
32610
32611 cat >>$CONFIG_STATUS <<\_ACEOF
32612
32613 # Handling of arguments.
32614 for ac_config_target in $ac_config_targets
32615 do
32616   case $ac_config_target in
32617     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32618     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32619     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32620     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32621     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32622     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32623     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32624     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32625     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32626     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32627     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32628     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32629     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32630     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32631     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32632     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32633     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32634     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32635     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32636     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32637     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32638     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32639
32640   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32641 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32642    { (exit 1); exit 1; }; };;
32643   esac
32644 done
32645
32646
32647 # If the user did not use the arguments to specify the items to instantiate,
32648 # then the envvar interface is used.  Set only those that are not.
32649 # We use the long form for the default assignment because of an extremely
32650 # bizarre bug on SunOS 4.1.3.
32651 if $ac_need_defaults; then
32652   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32653   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32654   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32655 fi
32656
32657 # Have a temporary directory for convenience.  Make it in the build tree
32658 # simply because there is no reason against having it here, and in addition,
32659 # creating and moving files from /tmp can sometimes cause problems.
32660 # Hook for its removal unless debugging.
32661 # Note that there is a small window in which the directory will not be cleaned:
32662 # after its creation but before its name has been assigned to `$tmp'.
32663 $debug ||
32664 {
32665   tmp=
32666   trap 'exit_status=$?
32667   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32668 ' 0
32669   trap '{ (exit 1); exit 1; }' 1 2 13 15
32670 }
32671 # Create a (secure) tmp directory for tmp files.
32672
32673 {
32674   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32675   test -n "$tmp" && test -d "$tmp"
32676 }  ||
32677 {
32678   tmp=./conf$$-$RANDOM
32679   (umask 077 && mkdir "$tmp")
32680 } ||
32681 {
32682    echo "$me: cannot create a temporary directory in ." >&2
32683    { (exit 1); exit 1; }
32684 }
32685
32686 #
32687 # Set up the sed scripts for CONFIG_FILES section.
32688 #
32689
32690 # No need to generate the scripts if there are no CONFIG_FILES.
32691 # This happens for instance when ./config.status config.h
32692 if test -n "$CONFIG_FILES"; then
32693
32694 _ACEOF
32695
32696
32697
32698 ac_delim='%!_!# '
32699 for ac_last_try in false false false false false :; do
32700   cat >conf$$subs.sed <<_ACEOF
32701 SHELL!$SHELL$ac_delim
32702 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32703 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32704 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32705 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32706 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32707 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32708 exec_prefix!$exec_prefix$ac_delim
32709 prefix!$prefix$ac_delim
32710 program_transform_name!$program_transform_name$ac_delim
32711 bindir!$bindir$ac_delim
32712 sbindir!$sbindir$ac_delim
32713 libexecdir!$libexecdir$ac_delim
32714 datarootdir!$datarootdir$ac_delim
32715 datadir!$datadir$ac_delim
32716 sysconfdir!$sysconfdir$ac_delim
32717 sharedstatedir!$sharedstatedir$ac_delim
32718 localstatedir!$localstatedir$ac_delim
32719 includedir!$includedir$ac_delim
32720 oldincludedir!$oldincludedir$ac_delim
32721 docdir!$docdir$ac_delim
32722 infodir!$infodir$ac_delim
32723 htmldir!$htmldir$ac_delim
32724 dvidir!$dvidir$ac_delim
32725 pdfdir!$pdfdir$ac_delim
32726 psdir!$psdir$ac_delim
32727 libdir!$libdir$ac_delim
32728 localedir!$localedir$ac_delim
32729 mandir!$mandir$ac_delim
32730 DEFS!$DEFS$ac_delim
32731 ECHO_C!$ECHO_C$ac_delim
32732 ECHO_N!$ECHO_N$ac_delim
32733 ECHO_T!$ECHO_T$ac_delim
32734 LIBS!$LIBS$ac_delim
32735 build_alias!$build_alias$ac_delim
32736 host_alias!$host_alias$ac_delim
32737 target_alias!$target_alias$ac_delim
32738 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32739 subdirs!$subdirs$ac_delim
32740 build!$build$ac_delim
32741 build_cpu!$build_cpu$ac_delim
32742 build_vendor!$build_vendor$ac_delim
32743 build_os!$build_os$ac_delim
32744 host!$host$ac_delim
32745 host_cpu!$host_cpu$ac_delim
32746 host_vendor!$host_vendor$ac_delim
32747 host_os!$host_os$ac_delim
32748 target!$target$ac_delim
32749 target_cpu!$target_cpu$ac_delim
32750 target_vendor!$target_vendor$ac_delim
32751 target_os!$target_os$ac_delim
32752 OS!$OS$ac_delim
32753 LINKALL!$LINKALL$ac_delim
32754 NOLINKALL!$NOLINKALL$ac_delim
32755 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32756 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32757 ARCH!$ARCH$ac_delim
32758 ENDIAN!$ENDIAN$ac_delim
32759 CC!$CC$ac_delim
32760 CFLAGS!$CFLAGS$ac_delim
32761 LDFLAGS!$LDFLAGS$ac_delim
32762 CPPFLAGS!$CPPFLAGS$ac_delim
32763 ac_ct_CC!$ac_ct_CC$ac_delim
32764 EXEEXT!$EXEEXT$ac_delim
32765 OBJEXT!$OBJEXT$ac_delim
32766 CPP!$CPP$ac_delim
32767 GREP!$GREP$ac_delim
32768 EGREP!$EGREP$ac_delim
32769 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32770 BUILD_CC!$BUILD_CC$ac_delim
32771 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32772 CVSBUILD!$CVSBUILD$ac_delim
32773 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32774 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32775 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32776 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32777 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32778 JIT!$JIT$ac_delim
32779 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32780 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32781 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32782 ENABLE_PIC!$ENABLE_PIC$ac_delim
32783 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32784 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32785 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32786 CXX!$CXX$ac_delim
32787 CXXFLAGS!$CXXFLAGS$ac_delim
32788 ac_ct_CXX!$ac_ct_CXX$ac_delim
32789 LEX!$LEX$ac_delim
32790 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32791 LEXLIB!$LEXLIB$ac_delim
32792 FLEX!$FLEX$ac_delim
32793 YACC!$YACC$ac_delim
32794 YFLAGS!$YFLAGS$ac_delim
32795 BISON!$BISON$ac_delim
32796 NM!$NM$ac_delim
32797 ifGNUmake!$ifGNUmake$ac_delim
32798 _ACEOF
32799
32800   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32801     break
32802   elif $ac_last_try; then
32803     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32804 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32805    { (exit 1); exit 1; }; }
32806   else
32807     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32808   fi
32809 done
32810
32811 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32812 if test -n "$ac_eof"; then
32813   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32814   ac_eof=`expr $ac_eof + 1`
32815 fi
32816
32817 cat >>$CONFIG_STATUS <<_ACEOF
32818 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32820 _ACEOF
32821 sed '
32822 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32823 s/^/s,@/; s/!/@,|#_!!_#|/
32824 :n
32825 t n
32826 s/'"$ac_delim"'$/,g/; t
32827 s/$/\\/; p
32828 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32829 ' >>$CONFIG_STATUS <conf$$subs.sed
32830 rm -f conf$$subs.sed
32831 cat >>$CONFIG_STATUS <<_ACEOF
32832 CEOF$ac_eof
32833 _ACEOF
32834
32835
32836 ac_delim='%!_!# '
32837 for ac_last_try in false false false false false :; do
32838   cat >conf$$subs.sed <<_ACEOF
32839 LN_S!$LN_S$ac_delim
32840 CMP!$CMP$ac_delim
32841 CP!$CP$ac_delim
32842 DATE!$DATE$ac_delim
32843 FIND!$FIND$ac_delim
32844 MKDIR!$MKDIR$ac_delim
32845 MV!$MV$ac_delim
32846 RANLIB!$RANLIB$ac_delim
32847 RM!$RM$ac_delim
32848 SED!$SED$ac_delim
32849 TAR!$TAR$ac_delim
32850 BINPWD!$BINPWD$ac_delim
32851 GRAPHVIZ!$GRAPHVIZ$ac_delim
32852 DOT!$DOT$ac_delim
32853 GV!$GV$ac_delim
32854 DOTTY!$DOTTY$ac_delim
32855 PERL!$PERL$ac_delim
32856 HAVE_PERL!$HAVE_PERL$ac_delim
32857 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32858 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32859 INSTALL_DATA!$INSTALL_DATA$ac_delim
32860 BZIP2!$BZIP2$ac_delim
32861 DOXYGEN!$DOXYGEN$ac_delim
32862 GROFF!$GROFF$ac_delim
32863 GZIP!$GZIP$ac_delim
32864 POD2HTML!$POD2HTML$ac_delim
32865 POD2MAN!$POD2MAN$ac_delim
32866 RUNTEST!$RUNTEST$ac_delim
32867 TCLSH!$TCLSH$ac_delim
32868 ZIP!$ZIP$ac_delim
32869 OCAMLC!$OCAMLC$ac_delim
32870 OCAMLOPT!$OCAMLOPT$ac_delim
32871 OCAMLDEP!$OCAMLDEP$ac_delim
32872 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32873 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32874 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32875 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32876 LIBADD_DL!$LIBADD_DL$ac_delim
32877 ECHO!$ECHO$ac_delim
32878 AR!$AR$ac_delim
32879 STRIP!$STRIP$ac_delim
32880 CXXCPP!$CXXCPP$ac_delim
32881 F77!$F77$ac_delim
32882 FFLAGS!$FFLAGS$ac_delim
32883 ac_ct_F77!$ac_ct_F77$ac_delim
32884 LIBTOOL!$LIBTOOL$ac_delim
32885 LLVMGCC!$LLVMGCC$ac_delim
32886 LLVMGXX!$LLVMGXX$ac_delim
32887 USE_UDIS86!$USE_UDIS86$ac_delim
32888 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32889 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32890 ALLOCA!$ALLOCA$ac_delim
32891 MMAP_FILE!$MMAP_FILE$ac_delim
32892 LLVMCC1!$LLVMCC1$ac_delim
32893 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32894 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32895 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32896 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32897 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32898 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32899 SHLIBEXT!$SHLIBEXT$ac_delim
32900 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32901 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32902 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32903 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32904 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32905 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32906 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32907 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32908 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32909 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32910 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32911 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32912 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32913 LIBOBJS!$LIBOBJS$ac_delim
32914 LTLIBOBJS!$LTLIBOBJS$ac_delim
32915 _ACEOF
32916
32917   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32918     break
32919   elif $ac_last_try; then
32920     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32922    { (exit 1); exit 1; }; }
32923   else
32924     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32925   fi
32926 done
32927
32928 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32929 if test -n "$ac_eof"; then
32930   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32931   ac_eof=`expr $ac_eof + 1`
32932 fi
32933
32934 cat >>$CONFIG_STATUS <<_ACEOF
32935 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32937 _ACEOF
32938 sed '
32939 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32940 s/^/s,@/; s/!/@,|#_!!_#|/
32941 :n
32942 t n
32943 s/'"$ac_delim"'$/,g/; t
32944 s/$/\\/; p
32945 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32946 ' >>$CONFIG_STATUS <conf$$subs.sed
32947 rm -f conf$$subs.sed
32948 cat >>$CONFIG_STATUS <<_ACEOF
32949 :end
32950 s/|#_!!_#|//g
32951 CEOF$ac_eof
32952 _ACEOF
32953
32954
32955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32957 # trailing colons and then remove the whole line if VPATH becomes empty
32958 # (actually we leave an empty line to preserve line numbers).
32959 if test "x$srcdir" = x.; then
32960   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32961 s/:*\$(srcdir):*/:/
32962 s/:*\${srcdir}:*/:/
32963 s/:*@srcdir@:*/:/
32964 s/^\([^=]*=[     ]*\):*/\1/
32965 s/:*$//
32966 s/^[^=]*=[       ]*$//
32967 }'
32968 fi
32969
32970 cat >>$CONFIG_STATUS <<\_ACEOF
32971 fi # test -n "$CONFIG_FILES"
32972
32973
32974 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
32975 do
32976   case $ac_tag in
32977   :[FHLC]) ac_mode=$ac_tag; continue;;
32978   esac
32979   case $ac_mode$ac_tag in
32980   :[FHL]*:*);;
32981   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32982 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32983    { (exit 1); exit 1; }; };;
32984   :[FH]-) ac_tag=-:-;;
32985   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32986   esac
32987   ac_save_IFS=$IFS
32988   IFS=:
32989   set x $ac_tag
32990   IFS=$ac_save_IFS
32991   shift
32992   ac_file=$1
32993   shift
32994
32995   case $ac_mode in
32996   :L) ac_source=$1;;
32997   :[FH])
32998     ac_file_inputs=
32999     for ac_f
33000     do
33001       case $ac_f in
33002       -) ac_f="$tmp/stdin";;
33003       *) # Look for the file first in the build tree, then in the source tree
33004          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33005          # because $ac_f cannot contain `:'.
33006          test -f "$ac_f" ||
33007            case $ac_f in
33008            [\\/$]*) false;;
33009            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33010            esac ||
33011            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33012 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33013    { (exit 1); exit 1; }; };;
33014       esac
33015       ac_file_inputs="$ac_file_inputs $ac_f"
33016     done
33017
33018     # Let's still pretend it is `configure' which instantiates (i.e., don't
33019     # use $as_me), people would be surprised to read:
33020     #    /* config.h.  Generated by config.status.  */
33021     configure_input="Generated from "`IFS=:
33022           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33023     if test x"$ac_file" != x-; then
33024       configure_input="$ac_file.  $configure_input"
33025       { echo "$as_me:$LINENO: creating $ac_file" >&5
33026 echo "$as_me: creating $ac_file" >&6;}
33027     fi
33028
33029     case $ac_tag in
33030     *:-:* | *:-) cat >"$tmp/stdin";;
33031     esac
33032     ;;
33033   esac
33034
33035   ac_dir=`$as_dirname -- "$ac_file" ||
33036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33037          X"$ac_file" : 'X\(//\)[^/]' \| \
33038          X"$ac_file" : 'X\(//\)$' \| \
33039          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33040 echo X"$ac_file" |
33041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33042             s//\1/
33043             q
33044           }
33045           /^X\(\/\/\)[^/].*/{
33046             s//\1/
33047             q
33048           }
33049           /^X\(\/\/\)$/{
33050             s//\1/
33051             q
33052           }
33053           /^X\(\/\).*/{
33054             s//\1/
33055             q
33056           }
33057           s/.*/./; q'`
33058   { as_dir="$ac_dir"
33059   case $as_dir in #(
33060   -*) as_dir=./$as_dir;;
33061   esac
33062   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33063     as_dirs=
33064     while :; do
33065       case $as_dir in #(
33066       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33067       *) as_qdir=$as_dir;;
33068       esac
33069       as_dirs="'$as_qdir' $as_dirs"
33070       as_dir=`$as_dirname -- "$as_dir" ||
33071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33072          X"$as_dir" : 'X\(//\)[^/]' \| \
33073          X"$as_dir" : 'X\(//\)$' \| \
33074          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33075 echo X"$as_dir" |
33076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33077             s//\1/
33078             q
33079           }
33080           /^X\(\/\/\)[^/].*/{
33081             s//\1/
33082             q
33083           }
33084           /^X\(\/\/\)$/{
33085             s//\1/
33086             q
33087           }
33088           /^X\(\/\).*/{
33089             s//\1/
33090             q
33091           }
33092           s/.*/./; q'`
33093       test -d "$as_dir" && break
33094     done
33095     test -z "$as_dirs" || eval "mkdir $as_dirs"
33096   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33097 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33098    { (exit 1); exit 1; }; }; }
33099   ac_builddir=.
33100
33101 case "$ac_dir" in
33102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33103 *)
33104   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33105   # A ".." for each directory in $ac_dir_suffix.
33106   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33107   case $ac_top_builddir_sub in
33108   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33109   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33110   esac ;;
33111 esac
33112 ac_abs_top_builddir=$ac_pwd
33113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33114 # for backward compatibility:
33115 ac_top_builddir=$ac_top_build_prefix
33116
33117 case $srcdir in
33118   .)  # We are building in place.
33119     ac_srcdir=.
33120     ac_top_srcdir=$ac_top_builddir_sub
33121     ac_abs_top_srcdir=$ac_pwd ;;
33122   [\\/]* | ?:[\\/]* )  # Absolute name.
33123     ac_srcdir=$srcdir$ac_dir_suffix;
33124     ac_top_srcdir=$srcdir
33125     ac_abs_top_srcdir=$srcdir ;;
33126   *) # Relative name.
33127     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33128     ac_top_srcdir=$ac_top_build_prefix$srcdir
33129     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33130 esac
33131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33132
33133
33134   case $ac_mode in
33135   :F)
33136   #
33137   # CONFIG_FILE
33138   #
33139
33140   case $INSTALL in
33141   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33142   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33143   esac
33144 _ACEOF
33145
33146 cat >>$CONFIG_STATUS <<\_ACEOF
33147 # If the template does not know about datarootdir, expand it.
33148 # FIXME: This hack should be removed a few years after 2.60.
33149 ac_datarootdir_hack=; ac_datarootdir_seen=
33150
33151 case `sed -n '/datarootdir/ {
33152   p
33153   q
33154 }
33155 /@datadir@/p
33156 /@docdir@/p
33157 /@infodir@/p
33158 /@localedir@/p
33159 /@mandir@/p
33160 ' $ac_file_inputs` in
33161 *datarootdir*) ac_datarootdir_seen=yes;;
33162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33163   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33164 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33165 _ACEOF
33166 cat >>$CONFIG_STATUS <<_ACEOF
33167   ac_datarootdir_hack='
33168   s&@datadir@&$datadir&g
33169   s&@docdir@&$docdir&g
33170   s&@infodir@&$infodir&g
33171   s&@localedir@&$localedir&g
33172   s&@mandir@&$mandir&g
33173     s&\\\${datarootdir}&$datarootdir&g' ;;
33174 esac
33175 _ACEOF
33176
33177 # Neutralize VPATH when `$srcdir' = `.'.
33178 # Shell code in configure.ac might set extrasub.
33179 # FIXME: do we really want to maintain this feature?
33180 cat >>$CONFIG_STATUS <<_ACEOF
33181   sed "$ac_vpsub
33182 $extrasub
33183 _ACEOF
33184 cat >>$CONFIG_STATUS <<\_ACEOF
33185 :t
33186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33187 s&@configure_input@&$configure_input&;t t
33188 s&@top_builddir@&$ac_top_builddir_sub&;t t
33189 s&@srcdir@&$ac_srcdir&;t t
33190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33191 s&@top_srcdir@&$ac_top_srcdir&;t t
33192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33193 s&@builddir@&$ac_builddir&;t t
33194 s&@abs_builddir@&$ac_abs_builddir&;t t
33195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33196 s&@INSTALL@&$ac_INSTALL&;t t
33197 $ac_datarootdir_hack
33198 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33199
33200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33201   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33202   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33203   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33204 which seems to be undefined.  Please make sure it is defined." >&5
33205 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33206 which seems to be undefined.  Please make sure it is defined." >&2;}
33207
33208   rm -f "$tmp/stdin"
33209   case $ac_file in
33210   -) cat "$tmp/out"; rm -f "$tmp/out";;
33211   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33212   esac
33213  ;;
33214   :H)
33215   #
33216   # CONFIG_HEADER
33217   #
33218 _ACEOF
33219
33220 # Transform confdefs.h into a sed script `conftest.defines', that
33221 # substitutes the proper values into config.h.in to produce config.h.
33222 rm -f conftest.defines conftest.tail
33223 # First, append a space to every undef/define line, to ease matching.
33224 echo 's/$/ /' >conftest.defines
33225 # Then, protect against being on the right side of a sed subst, or in
33226 # an unquoted here document, in config.status.  If some macros were
33227 # called several times there might be several #defines for the same
33228 # symbol, which is useless.  But do not sort them, since the last
33229 # AC_DEFINE must be honored.
33230 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33231 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33232 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33233 # PARAMS is the parameter list in the macro definition--in most cases, it's
33234 # just an empty string.
33235 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33236 ac_dB='\\)[      (].*,\\1define\\2'
33237 ac_dC=' '
33238 ac_dD=' ,'
33239
33240 uniq confdefs.h |
33241   sed -n '
33242         t rset
33243         :rset
33244         s/^[     ]*#[    ]*define[       ][      ]*//
33245         t ok
33246         d
33247         :ok
33248         s/[\\&,]/\\&/g
33249         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33250         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33251   ' >>conftest.defines
33252
33253 # Remove the space that was appended to ease matching.
33254 # Then replace #undef with comments.  This is necessary, for
33255 # example, in the case of _POSIX_SOURCE, which is predefined and required
33256 # on some systems where configure will not decide to define it.
33257 # (The regexp can be short, since the line contains either #define or #undef.)
33258 echo 's/ $//
33259 s,^[     #]*u.*,/* & */,' >>conftest.defines
33260
33261 # Break up conftest.defines:
33262 ac_max_sed_lines=50
33263
33264 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33265 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33266 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33267 # et cetera.
33268 ac_in='$ac_file_inputs'
33269 ac_out='"$tmp/out1"'
33270 ac_nxt='"$tmp/out2"'
33271
33272 while :
33273 do
33274   # Write a here document:
33275     cat >>$CONFIG_STATUS <<_ACEOF
33276     # First, check the format of the line:
33277     cat >"\$tmp/defines.sed" <<\\CEOF
33278 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33279 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33280 b
33281 :def
33282 _ACEOF
33283   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33284   echo 'CEOF
33285     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33286   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33287   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33288   grep . conftest.tail >/dev/null || break
33289   rm -f conftest.defines
33290   mv conftest.tail conftest.defines
33291 done
33292 rm -f conftest.defines conftest.tail
33293
33294 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33295 cat >>$CONFIG_STATUS <<\_ACEOF
33296   if test x"$ac_file" != x-; then
33297     echo "/* $configure_input  */" >"$tmp/config.h"
33298     cat "$ac_result" >>"$tmp/config.h"
33299     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33300       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33301 echo "$as_me: $ac_file is unchanged" >&6;}
33302     else
33303       rm -f $ac_file
33304       mv "$tmp/config.h" $ac_file
33305     fi
33306   else
33307     echo "/* $configure_input  */"
33308     cat "$ac_result"
33309   fi
33310   rm -f "$tmp/out12"
33311  ;;
33312
33313   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33314 echo "$as_me: executing $ac_file commands" >&6;}
33315  ;;
33316   esac
33317
33318
33319   case $ac_file$ac_mode in
33320     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33321    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33322     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33323    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33324     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33325    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33326     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33327    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33328     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33329    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33330     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33331    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33332     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33333    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33334     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33335    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33336     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33337    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33338     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33339    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33340     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33341    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33342     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33343    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33344
33345   esac
33346 done # for ac_tag
33347
33348
33349 { (exit 0); exit 0; }
33350 _ACEOF
33351 chmod +x $CONFIG_STATUS
33352 ac_clean_files=$ac_clean_files_save
33353
33354
33355 # configure is writing to config.log, and then calls config.status.
33356 # config.status does its own redirection, appending to config.log.
33357 # Unfortunately, on DOS this fails, as config.log is still kept open
33358 # by configure, so config.status won't be able to write to it; its
33359 # output is simply discarded.  So we exec the FD to /dev/null,
33360 # effectively closing config.log, so it can be properly (re)opened and
33361 # appended to by config.status.  When coming back to configure, we
33362 # need to make the FD available again.
33363 if test "$no_create" != yes; then
33364   ac_cs_success=:
33365   ac_config_status_args=
33366   test "$silent" = yes &&
33367     ac_config_status_args="$ac_config_status_args --quiet"
33368   exec 5>/dev/null
33369   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33370   exec 5>>config.log
33371   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33372   # would make configure fail if this is the last instruction.
33373   $ac_cs_success || { (exit 1); exit 1; }
33374 fi
33375
33376 #
33377 # CONFIG_SUBDIRS section.
33378 #
33379 if test "$no_recursion" != yes; then
33380
33381   # Remove --cache-file and --srcdir arguments so they do not pile up.
33382   ac_sub_configure_args=
33383   ac_prev=
33384   eval "set x $ac_configure_args"
33385   shift
33386   for ac_arg
33387   do
33388     if test -n "$ac_prev"; then
33389       ac_prev=
33390       continue
33391     fi
33392     case $ac_arg in
33393     -cache-file | --cache-file | --cache-fil | --cache-fi \
33394     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33395       ac_prev=cache_file ;;
33396     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33397     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33398     | --c=*)
33399       ;;
33400     --config-cache | -C)
33401       ;;
33402     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33403       ac_prev=srcdir ;;
33404     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33405       ;;
33406     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33407       ac_prev=prefix ;;
33408     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33409       ;;
33410     *)
33411       case $ac_arg in
33412       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33413       esac
33414       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33415     esac
33416   done
33417
33418   # Always prepend --prefix to ensure using the same prefix
33419   # in subdir configurations.
33420   ac_arg="--prefix=$prefix"
33421   case $ac_arg in
33422   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33423   esac
33424   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33425
33426   # Pass --silent
33427   if test "$silent" = yes; then
33428     ac_sub_configure_args="--silent $ac_sub_configure_args"
33429   fi
33430
33431   ac_popdir=`pwd`
33432   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33433
33434     # Do not complain, so a configure script can configure whichever
33435     # parts of a large source tree are present.
33436     test -d "$srcdir/$ac_dir" || continue
33437
33438     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33439     echo "$as_me:$LINENO: $ac_msg" >&5
33440     echo "$ac_msg" >&6
33441     { as_dir="$ac_dir"
33442   case $as_dir in #(
33443   -*) as_dir=./$as_dir;;
33444   esac
33445   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33446     as_dirs=
33447     while :; do
33448       case $as_dir in #(
33449       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33450       *) as_qdir=$as_dir;;
33451       esac
33452       as_dirs="'$as_qdir' $as_dirs"
33453       as_dir=`$as_dirname -- "$as_dir" ||
33454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33455          X"$as_dir" : 'X\(//\)[^/]' \| \
33456          X"$as_dir" : 'X\(//\)$' \| \
33457          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33458 echo X"$as_dir" |
33459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33460             s//\1/
33461             q
33462           }
33463           /^X\(\/\/\)[^/].*/{
33464             s//\1/
33465             q
33466           }
33467           /^X\(\/\/\)$/{
33468             s//\1/
33469             q
33470           }
33471           /^X\(\/\).*/{
33472             s//\1/
33473             q
33474           }
33475           s/.*/./; q'`
33476       test -d "$as_dir" && break
33477     done
33478     test -z "$as_dirs" || eval "mkdir $as_dirs"
33479   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33481    { (exit 1); exit 1; }; }; }
33482     ac_builddir=.
33483
33484 case "$ac_dir" in
33485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33486 *)
33487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33488   # A ".." for each directory in $ac_dir_suffix.
33489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33490   case $ac_top_builddir_sub in
33491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33493   esac ;;
33494 esac
33495 ac_abs_top_builddir=$ac_pwd
33496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33497 # for backward compatibility:
33498 ac_top_builddir=$ac_top_build_prefix
33499
33500 case $srcdir in
33501   .)  # We are building in place.
33502     ac_srcdir=.
33503     ac_top_srcdir=$ac_top_builddir_sub
33504     ac_abs_top_srcdir=$ac_pwd ;;
33505   [\\/]* | ?:[\\/]* )  # Absolute name.
33506     ac_srcdir=$srcdir$ac_dir_suffix;
33507     ac_top_srcdir=$srcdir
33508     ac_abs_top_srcdir=$srcdir ;;
33509   *) # Relative name.
33510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33511     ac_top_srcdir=$ac_top_build_prefix$srcdir
33512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33513 esac
33514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33515
33516
33517     cd "$ac_dir"
33518
33519     # Check for guested configure; otherwise get Cygnus style configure.
33520     if test -f "$ac_srcdir/configure.gnu"; then
33521       ac_sub_configure=$ac_srcdir/configure.gnu
33522     elif test -f "$ac_srcdir/configure"; then
33523       ac_sub_configure=$ac_srcdir/configure
33524     elif test -f "$ac_srcdir/configure.in"; then
33525       # This should be Cygnus configure.
33526       ac_sub_configure=$ac_aux_dir/configure
33527     else
33528       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33530       ac_sub_configure=
33531     fi
33532
33533     # The recursion is here.
33534     if test -n "$ac_sub_configure"; then
33535       # Make the cache file name correct relative to the subdirectory.
33536       case $cache_file in
33537       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33538       *) # Relative name.
33539         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33540       esac
33541
33542       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33543 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33544       # The eval makes quoting arguments work.
33545       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33546            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33547         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33548 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33549    { (exit 1); exit 1; }; }
33550     fi
33551
33552     cd "$ac_popdir"
33553   done
33554 fi
33555