Remove host endianness info from TargetData and
[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
8224
8225 if test x"${enable_ltdl_install-no}" != xno; then
8226   INSTALL_LTDL_TRUE=
8227   INSTALL_LTDL_FALSE='#'
8228 else
8229   INSTALL_LTDL_TRUE='#'
8230   INSTALL_LTDL_FALSE=
8231 fi
8232
8233
8234
8235 if test x"${enable_ltdl_convenience-no}" != xno; then
8236   CONVENIENCE_LTDL_TRUE=
8237   CONVENIENCE_LTDL_FALSE='#'
8238 else
8239   CONVENIENCE_LTDL_TRUE='#'
8240   CONVENIENCE_LTDL_FALSE=
8241 fi
8242
8243
8244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8246 library_names_spec=
8247 libname_spec='lib$name'
8248 soname_spec=
8249 shrext_cmds=".so"
8250 postinstall_cmds=
8251 postuninstall_cmds=
8252 finish_cmds=
8253 finish_eval=
8254 shlibpath_var=
8255 shlibpath_overrides_runpath=unknown
8256 version_type=none
8257 dynamic_linker="$host_os ld.so"
8258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8259 if test "$GCC" = yes; then
8260   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8261   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8262     # if the path contains ";" then we assume it to be the separator
8263     # otherwise default to the standard path separator (i.e. ":") - it is
8264     # assumed that no part of a normal pathname contains ";" but that should
8265     # okay in the real world where ";" in dirpaths is itself problematic.
8266     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8267   else
8268     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8269   fi
8270 else
8271   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8272 fi
8273 need_lib_prefix=unknown
8274 hardcode_into_libs=no
8275
8276 # when you set need_version to no, make sure it does not cause -set_version
8277 # flags to be left without arguments
8278 need_version=unknown
8279
8280 case $host_os in
8281 aix3*)
8282   version_type=linux
8283   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8284   shlibpath_var=LIBPATH
8285
8286   # AIX 3 has no versioning support, so we append a major version to the name.
8287   soname_spec='${libname}${release}${shared_ext}$major'
8288   ;;
8289
8290 aix4* | aix5*)
8291   version_type=linux
8292   need_lib_prefix=no
8293   need_version=no
8294   hardcode_into_libs=yes
8295   if test "$host_cpu" = ia64; then
8296     # AIX 5 supports IA64
8297     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8298     shlibpath_var=LD_LIBRARY_PATH
8299   else
8300     # With GCC up to 2.95.x, collect2 would create an import file
8301     # for dependence libraries.  The import file would start with
8302     # the line `#! .'.  This would cause the generated library to
8303     # depend on `.', always an invalid library.  This was fixed in
8304     # development snapshots of GCC prior to 3.0.
8305     case $host_os in
8306       aix4 | aix4.[01] | aix4.[01].*)
8307       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8308            echo ' yes '
8309            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8310         :
8311       else
8312         can_build_shared=no
8313       fi
8314       ;;
8315     esac
8316     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8317     # soname into executable. Probably we can add versioning support to
8318     # collect2, so additional links can be useful in future.
8319     if test "$aix_use_runtimelinking" = yes; then
8320       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8321       # instead of lib<name>.a to let people know that these are not
8322       # typical AIX shared libraries.
8323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324     else
8325       # We preserve .a as extension for shared libraries through AIX4.2
8326       # and later when we are not doing run time linking.
8327       library_names_spec='${libname}${release}.a $libname.a'
8328       soname_spec='${libname}${release}${shared_ext}$major'
8329     fi
8330     shlibpath_var=LIBPATH
8331   fi
8332   ;;
8333
8334 amigaos*)
8335   library_names_spec='$libname.ixlibrary $libname.a'
8336   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8337   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'
8338   ;;
8339
8340 beos*)
8341   library_names_spec='${libname}${shared_ext}'
8342   dynamic_linker="$host_os ld.so"
8343   shlibpath_var=LIBRARY_PATH
8344   ;;
8345
8346 bsdi[45]*)
8347   version_type=linux
8348   need_version=no
8349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350   soname_spec='${libname}${release}${shared_ext}$major'
8351   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8352   shlibpath_var=LD_LIBRARY_PATH
8353   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8354   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8355   # the default ld.so.conf also contains /usr/contrib/lib and
8356   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8357   # libtool to hard-code these into programs
8358   ;;
8359
8360 cygwin* | mingw* | pw32*)
8361   version_type=windows
8362   shrext_cmds=".dll"
8363   need_version=no
8364   need_lib_prefix=no
8365
8366   case $GCC,$host_os in
8367   yes,cygwin* | yes,mingw* | yes,pw32*)
8368     library_names_spec='$libname.dll.a'
8369     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8370     postinstall_cmds='base_file=`basename \${file}`~
8371       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8372       dldir=$destdir/`dirname \$dlpath`~
8373       test -d \$dldir || mkdir -p \$dldir~
8374       $install_prog $dir/$dlname \$dldir/$dlname~
8375       chmod a+x \$dldir/$dlname'
8376     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8377       dlpath=$dir/\$dldll~
8378        $rm \$dlpath'
8379     shlibpath_overrides_runpath=yes
8380
8381     case $host_os in
8382     cygwin*)
8383       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8384       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8385       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8386       ;;
8387     mingw*)
8388       # MinGW DLLs use traditional 'lib' prefix
8389       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8390       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8391       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8392         # It is most probably a Windows format PATH printed by
8393         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8394         # path with ; separators, and with drive letters. We can handle the
8395         # drive letters (cygwin fileutils understands them), so leave them,
8396         # especially as we might pass files found there to a mingw objdump,
8397         # which wouldn't understand a cygwinified path. Ahh.
8398         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8399       else
8400         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8401       fi
8402       ;;
8403     pw32*)
8404       # pw32 DLLs use 'pw' prefix rather than 'lib'
8405       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8406       ;;
8407     esac
8408     ;;
8409
8410   *)
8411     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8412     ;;
8413   esac
8414   dynamic_linker='Win32 ld.exe'
8415   # FIXME: first we should search . and the directory the executable is in
8416   shlibpath_var=PATH
8417   ;;
8418
8419 darwin* | rhapsody*)
8420   dynamic_linker="$host_os dyld"
8421   version_type=darwin
8422   need_lib_prefix=no
8423   need_version=no
8424   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8425   soname_spec='${libname}${release}${major}$shared_ext'
8426   shlibpath_overrides_runpath=yes
8427   shlibpath_var=DYLD_LIBRARY_PATH
8428   shrext_cmds='.dylib'
8429   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8430   if test "$GCC" = yes; then
8431     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"`
8432   else
8433     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8434   fi
8435   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8436   ;;
8437
8438 dgux*)
8439   version_type=linux
8440   need_lib_prefix=no
8441   need_version=no
8442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8443   soname_spec='${libname}${release}${shared_ext}$major'
8444   shlibpath_var=LD_LIBRARY_PATH
8445   ;;
8446
8447 freebsd1*)
8448   dynamic_linker=no
8449   ;;
8450
8451 kfreebsd*-gnu)
8452   version_type=linux
8453   need_lib_prefix=no
8454   need_version=no
8455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8456   soname_spec='${libname}${release}${shared_ext}$major'
8457   shlibpath_var=LD_LIBRARY_PATH
8458   shlibpath_overrides_runpath=no
8459   hardcode_into_libs=yes
8460   dynamic_linker='GNU ld.so'
8461   ;;
8462
8463 freebsd* | dragonfly*)
8464   # DragonFly does not have aout.  When/if they implement a new
8465   # versioning mechanism, adjust this.
8466   if test -x /usr/bin/objformat; then
8467     objformat=`/usr/bin/objformat`
8468   else
8469     case $host_os in
8470     freebsd[123]*) objformat=aout ;;
8471     *) objformat=elf ;;
8472     esac
8473   fi
8474   version_type=freebsd-$objformat
8475   case $version_type in
8476     freebsd-elf*)
8477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8478       need_version=no
8479       need_lib_prefix=no
8480       ;;
8481     freebsd-*)
8482       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8483       need_version=yes
8484       ;;
8485   esac
8486   shlibpath_var=LD_LIBRARY_PATH
8487   case $host_os in
8488   freebsd2*)
8489     shlibpath_overrides_runpath=yes
8490     ;;
8491   freebsd3.[01]* | freebsdelf3.[01]*)
8492     shlibpath_overrides_runpath=yes
8493     hardcode_into_libs=yes
8494     ;;
8495   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8496   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8497     shlibpath_overrides_runpath=no
8498     hardcode_into_libs=yes
8499     ;;
8500   freebsd*) # from 4.6 on
8501     shlibpath_overrides_runpath=yes
8502     hardcode_into_libs=yes
8503     ;;
8504   esac
8505   ;;
8506
8507 gnu*)
8508   version_type=linux
8509   need_lib_prefix=no
8510   need_version=no
8511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8512   soname_spec='${libname}${release}${shared_ext}$major'
8513   shlibpath_var=LD_LIBRARY_PATH
8514   hardcode_into_libs=yes
8515   ;;
8516
8517 hpux9* | hpux10* | hpux11*)
8518   # Give a soname corresponding to the major version so that dld.sl refuses to
8519   # link against other versions.
8520   version_type=sunos
8521   need_lib_prefix=no
8522   need_version=no
8523   case $host_cpu in
8524   ia64*)
8525     shrext_cmds='.so'
8526     hardcode_into_libs=yes
8527     dynamic_linker="$host_os dld.so"
8528     shlibpath_var=LD_LIBRARY_PATH
8529     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531     soname_spec='${libname}${release}${shared_ext}$major'
8532     if test "X$HPUX_IA64_MODE" = X32; then
8533       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8534     else
8535       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8536     fi
8537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8538     ;;
8539    hppa*64*)
8540      shrext_cmds='.sl'
8541      hardcode_into_libs=yes
8542      dynamic_linker="$host_os dld.sl"
8543      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8544      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8545      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8546      soname_spec='${libname}${release}${shared_ext}$major'
8547      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8548      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8549      ;;
8550    *)
8551     shrext_cmds='.sl'
8552     dynamic_linker="$host_os dld.sl"
8553     shlibpath_var=SHLIB_PATH
8554     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556     soname_spec='${libname}${release}${shared_ext}$major'
8557     ;;
8558   esac
8559   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8560   postinstall_cmds='chmod 555 $lib'
8561   ;;
8562
8563 interix3*)
8564   version_type=linux
8565   need_lib_prefix=no
8566   need_version=no
8567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8568   soname_spec='${libname}${release}${shared_ext}$major'
8569   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8570   shlibpath_var=LD_LIBRARY_PATH
8571   shlibpath_overrides_runpath=no
8572   hardcode_into_libs=yes
8573   ;;
8574
8575 irix5* | irix6* | nonstopux*)
8576   case $host_os in
8577     nonstopux*) version_type=nonstopux ;;
8578     *)
8579         if test "$lt_cv_prog_gnu_ld" = yes; then
8580                 version_type=linux
8581         else
8582                 version_type=irix
8583         fi ;;
8584   esac
8585   need_lib_prefix=no
8586   need_version=no
8587   soname_spec='${libname}${release}${shared_ext}$major'
8588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8589   case $host_os in
8590   irix5* | nonstopux*)
8591     libsuff= shlibsuff=
8592     ;;
8593   *)
8594     case $LD in # libtool.m4 will add one of these switches to LD
8595     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8596       libsuff= shlibsuff= libmagic=32-bit;;
8597     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8598       libsuff=32 shlibsuff=N32 libmagic=N32;;
8599     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8600       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8601     *) libsuff= shlibsuff= libmagic=never-match;;
8602     esac
8603     ;;
8604   esac
8605   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8606   shlibpath_overrides_runpath=no
8607   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8608   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8609   hardcode_into_libs=yes
8610   ;;
8611
8612 # No shared lib support for Linux oldld, aout, or coff.
8613 linux*oldld* | linux*aout* | linux*coff*)
8614   dynamic_linker=no
8615   ;;
8616
8617 # This must be Linux ELF.
8618 linux*)
8619   version_type=linux
8620   need_lib_prefix=no
8621   need_version=no
8622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623   soname_spec='${libname}${release}${shared_ext}$major'
8624   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8625   shlibpath_var=LD_LIBRARY_PATH
8626   shlibpath_overrides_runpath=no
8627   # This implies no fast_install, which is unacceptable.
8628   # Some rework will be needed to allow for fast_install
8629   # before this can be enabled.
8630   hardcode_into_libs=yes
8631
8632   # Append ld.so.conf contents to the search path
8633   if test -f /etc/ld.so.conf; then
8634     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' ' '`
8635     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8636   fi
8637
8638   # We used to test for /lib/ld.so.1 and disable shared libraries on
8639   # powerpc, because MkLinux only supported shared libraries with the
8640   # GNU dynamic linker.  Since this was broken with cross compilers,
8641   # most powerpc-linux boxes support dynamic linking these days and
8642   # people can always --disable-shared, the test was removed, and we
8643   # assume the GNU/Linux dynamic linker is in use.
8644   dynamic_linker='GNU/Linux ld.so'
8645   ;;
8646
8647 knetbsd*-gnu)
8648   version_type=linux
8649   need_lib_prefix=no
8650   need_version=no
8651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8652   soname_spec='${libname}${release}${shared_ext}$major'
8653   shlibpath_var=LD_LIBRARY_PATH
8654   shlibpath_overrides_runpath=no
8655   hardcode_into_libs=yes
8656   dynamic_linker='GNU ld.so'
8657   ;;
8658
8659 netbsd*)
8660   version_type=sunos
8661   need_lib_prefix=no
8662   need_version=no
8663   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8665     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8666     dynamic_linker='NetBSD (a.out) ld.so'
8667   else
8668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8669     soname_spec='${libname}${release}${shared_ext}$major'
8670     dynamic_linker='NetBSD ld.elf_so'
8671   fi
8672   shlibpath_var=LD_LIBRARY_PATH
8673   shlibpath_overrides_runpath=yes
8674   hardcode_into_libs=yes
8675   ;;
8676
8677 newsos6)
8678   version_type=linux
8679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680   shlibpath_var=LD_LIBRARY_PATH
8681   shlibpath_overrides_runpath=yes
8682   ;;
8683
8684 nto-qnx*)
8685   version_type=linux
8686   need_lib_prefix=no
8687   need_version=no
8688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689   soname_spec='${libname}${release}${shared_ext}$major'
8690   shlibpath_var=LD_LIBRARY_PATH
8691   shlibpath_overrides_runpath=yes
8692   ;;
8693
8694 openbsd*)
8695   version_type=sunos
8696   sys_lib_dlsearch_path_spec="/usr/lib"
8697   need_lib_prefix=no
8698   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8699   case $host_os in
8700     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8701     *)                         need_version=no  ;;
8702   esac
8703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8704   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8705   shlibpath_var=LD_LIBRARY_PATH
8706   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8707     case $host_os in
8708       openbsd2.[89] | openbsd2.[89].*)
8709         shlibpath_overrides_runpath=no
8710         ;;
8711       *)
8712         shlibpath_overrides_runpath=yes
8713         ;;
8714       esac
8715   else
8716     shlibpath_overrides_runpath=yes
8717   fi
8718   ;;
8719
8720 os2*)
8721   libname_spec='$name'
8722   shrext_cmds=".dll"
8723   need_lib_prefix=no
8724   library_names_spec='$libname${shared_ext} $libname.a'
8725   dynamic_linker='OS/2 ld.exe'
8726   shlibpath_var=LIBPATH
8727   ;;
8728
8729 osf3* | osf4* | osf5*)
8730   version_type=osf
8731   need_lib_prefix=no
8732   need_version=no
8733   soname_spec='${libname}${release}${shared_ext}$major'
8734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735   shlibpath_var=LD_LIBRARY_PATH
8736   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8737   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8738   ;;
8739
8740 solaris*)
8741   version_type=linux
8742   need_lib_prefix=no
8743   need_version=no
8744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745   soname_spec='${libname}${release}${shared_ext}$major'
8746   shlibpath_var=LD_LIBRARY_PATH
8747   shlibpath_overrides_runpath=yes
8748   hardcode_into_libs=yes
8749   # ldd complains unless libraries are executable
8750   postinstall_cmds='chmod +x $lib'
8751   ;;
8752
8753 sunos4*)
8754   version_type=sunos
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8756   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   shlibpath_overrides_runpath=yes
8759   if test "$with_gnu_ld" = yes; then
8760     need_lib_prefix=no
8761   fi
8762   need_version=yes
8763   ;;
8764
8765 sysv4 | sysv4.3*)
8766   version_type=linux
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   shlibpath_var=LD_LIBRARY_PATH
8770   case $host_vendor in
8771     sni)
8772       shlibpath_overrides_runpath=no
8773       need_lib_prefix=no
8774       export_dynamic_flag_spec='${wl}-Blargedynsym'
8775       runpath_var=LD_RUN_PATH
8776       ;;
8777     siemens)
8778       need_lib_prefix=no
8779       ;;
8780     motorola)
8781       need_lib_prefix=no
8782       need_version=no
8783       shlibpath_overrides_runpath=no
8784       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8785       ;;
8786   esac
8787   ;;
8788
8789 sysv4*MP*)
8790   if test -d /usr/nec ;then
8791     version_type=linux
8792     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8793     soname_spec='$libname${shared_ext}.$major'
8794     shlibpath_var=LD_LIBRARY_PATH
8795   fi
8796   ;;
8797
8798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8799   version_type=freebsd-elf
8800   need_lib_prefix=no
8801   need_version=no
8802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803   soname_spec='${libname}${release}${shared_ext}$major'
8804   shlibpath_var=LD_LIBRARY_PATH
8805   hardcode_into_libs=yes
8806   if test "$with_gnu_ld" = yes; then
8807     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8808     shlibpath_overrides_runpath=no
8809   else
8810     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8811     shlibpath_overrides_runpath=yes
8812     case $host_os in
8813       sco3.2v5*)
8814         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8815         ;;
8816     esac
8817   fi
8818   sys_lib_dlsearch_path_spec='/usr/lib'
8819   ;;
8820
8821 uts4*)
8822   version_type=linux
8823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824   soname_spec='${libname}${release}${shared_ext}$major'
8825   shlibpath_var=LD_LIBRARY_PATH
8826   ;;
8827
8828 *)
8829   dynamic_linker=no
8830   ;;
8831 esac
8832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8833 echo "${ECHO_T}$dynamic_linker" >&6; }
8834 test "$dynamic_linker" = no && can_build_shared=no
8835
8836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8837 if test "$GCC" = yes; then
8838   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8839 fi
8840
8841
8842 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8843 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8844 if test "${libltdl_cv_shlibext+set}" = set; then
8845   echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847
8848 module=yes
8849 eval libltdl_cv_shlibext=$shrext_cmds
8850
8851 fi
8852 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8853 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8854 if test -n "$libltdl_cv_shlibext"; then
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8858 _ACEOF
8859
8860 fi
8861
8862
8863 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8864 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8865 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868   libltdl_cv_shlibpath_var="$shlibpath_var"
8869 fi
8870 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8871 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8872 if test -n "$libltdl_cv_shlibpath_var"; then
8873
8874 cat >>confdefs.h <<_ACEOF
8875 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8876 _ACEOF
8877
8878 fi
8879
8880
8881 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8882 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8883 if test "${libltdl_cv_sys_search_path+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8887 fi
8888 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8889 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8890 if test -n "$libltdl_cv_sys_search_path"; then
8891   sys_search_path=
8892   for dir in $libltdl_cv_sys_search_path; do
8893     if test -z "$sys_search_path"; then
8894       sys_search_path="$dir"
8895     else
8896       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8897     fi
8898   done
8899
8900 cat >>confdefs.h <<_ACEOF
8901 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8902 _ACEOF
8903
8904 fi
8905
8906 { echo "$as_me:$LINENO: checking for objdir" >&5
8907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8908 if test "${libltdl_cv_objdir+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   libltdl_cv_objdir="$objdir"
8912   if test -n "$objdir"; then
8913     :
8914   else
8915     rm -f .libs 2>/dev/null
8916     mkdir .libs 2>/dev/null
8917     if test -d .libs; then
8918       libltdl_cv_objdir=.libs
8919     else
8920       # MS-DOS does not allow filenames that begin with a dot.
8921       libltdl_cv_objdir=_libs
8922     fi
8923   rmdir .libs 2>/dev/null
8924   fi
8925
8926 fi
8927 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8928 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8929
8930 cat >>confdefs.h <<_ACEOF
8931 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8932 _ACEOF
8933
8934
8935
8936
8937
8938
8939 # Check for command to grab the raw symbol name followed by C symbol from nm.
8940 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945
8946 # These are sane defaults that work on at least a few old systems.
8947 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8948
8949 # Character class describing NM global symbol codes.
8950 symcode='[BCDEGRST]'
8951
8952 # Regexp to match symbols that can be accessed directly from C.
8953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8954
8955 # Transform an extracted symbol line into a proper C declaration
8956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8957
8958 # Transform an extracted symbol line into symbol name and symbol address
8959 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'"
8960
8961 # Define system-specific variables.
8962 case $host_os in
8963 aix*)
8964   symcode='[BCDT]'
8965   ;;
8966 cygwin* | mingw* | pw32*)
8967   symcode='[ABCDGISTW]'
8968   ;;
8969 hpux*) # Its linker distinguishes data from code symbols
8970   if test "$host_cpu" = ia64; then
8971     symcode='[ABCDEGRST]'
8972   fi
8973   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8974   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'"
8975   ;;
8976 linux*)
8977   if test "$host_cpu" = ia64; then
8978     symcode='[ABCDGIRSTW]'
8979     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8980     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'"
8981   fi
8982   ;;
8983 irix* | nonstopux*)
8984   symcode='[BCDEGRST]'
8985   ;;
8986 osf*)
8987   symcode='[BCDEGQRST]'
8988   ;;
8989 solaris*)
8990   symcode='[BDRT]'
8991   ;;
8992 sco3.2v5*)
8993   symcode='[DT]'
8994   ;;
8995 sysv4.2uw2*)
8996   symcode='[DT]'
8997   ;;
8998 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8999   symcode='[ABDT]'
9000   ;;
9001 sysv4)
9002   symcode='[DFNSTU]'
9003   ;;
9004 esac
9005
9006 # Handle CRLF in mingw tool chain
9007 opt_cr=
9008 case $build_os in
9009 mingw*)
9010   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9011   ;;
9012 esac
9013
9014 # If we're using GNU nm, then use its standard symbol codes.
9015 case `$NM -V 2>&1` in
9016 *GNU* | *'with BFD'*)
9017   symcode='[ABCDGIRSTW]' ;;
9018 esac
9019
9020 # Try without a prefix undercore, then with it.
9021 for ac_symprfx in "" "_"; do
9022
9023   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9024   symxfrm="\\1 $ac_symprfx\\2 \\2"
9025
9026   # Write the raw and C identifiers.
9027   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9028
9029   # Check to see that the pipe works correctly.
9030   pipe_works=no
9031
9032   rm -f conftest*
9033   cat > conftest.$ac_ext <<EOF
9034 #ifdef __cplusplus
9035 extern "C" {
9036 #endif
9037 char nm_test_var;
9038 void nm_test_func(){}
9039 #ifdef __cplusplus
9040 }
9041 #endif
9042 int main(){nm_test_var='a';nm_test_func();return(0);}
9043 EOF
9044
9045   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046   (eval $ac_compile) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; then
9050     # Now try to grab the symbols.
9051     nlist=conftest.nm
9052     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9053   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } && test -s "$nlist"; then
9057       # Try sorting and uniquifying the output.
9058       if sort "$nlist" | uniq > "$nlist"T; then
9059         mv -f "$nlist"T "$nlist"
9060       else
9061         rm -f "$nlist"T
9062       fi
9063
9064       # Make sure that we snagged all the symbols we need.
9065       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9066         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9067           cat <<EOF > conftest.$ac_ext
9068 #ifdef __cplusplus
9069 extern "C" {
9070 #endif
9071
9072 EOF
9073           # Now generate the symbol file.
9074           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9075
9076           cat <<EOF >> conftest.$ac_ext
9077 #if defined (__STDC__) && __STDC__
9078 # define lt_ptr_t void *
9079 #else
9080 # define lt_ptr_t char *
9081 # define const
9082 #endif
9083
9084 /* The mapping between symbol names and symbols. */
9085 const struct {
9086   const char *name;
9087   lt_ptr_t address;
9088 }
9089 lt_preloaded_symbols[] =
9090 {
9091 EOF
9092           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9093           cat <<\EOF >> conftest.$ac_ext
9094   {0, (lt_ptr_t) 0}
9095 };
9096
9097 #ifdef __cplusplus
9098 }
9099 #endif
9100 EOF
9101           # Now try linking the two files.
9102           mv conftest.$ac_objext conftstm.$ac_objext
9103           lt_save_LIBS="$LIBS"
9104           lt_save_CFLAGS="$CFLAGS"
9105           LIBS="conftstm.$ac_objext"
9106           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9107           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108   (eval $ac_link) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9112             pipe_works=yes
9113           fi
9114           LIBS="$lt_save_LIBS"
9115           CFLAGS="$lt_save_CFLAGS"
9116         else
9117           echo "cannot find nm_test_func in $nlist" >&5
9118         fi
9119       else
9120         echo "cannot find nm_test_var in $nlist" >&5
9121       fi
9122     else
9123       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9124     fi
9125   else
9126     echo "$progname: failed program was:" >&5
9127     cat conftest.$ac_ext >&5
9128   fi
9129   rm -f conftest* conftst*
9130
9131   # Do not use the global_symbol_pipe unless it works.
9132   if test "$pipe_works" = yes; then
9133     break
9134   else
9135     lt_cv_sys_global_symbol_pipe=
9136   fi
9137 done
9138
9139 fi
9140
9141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9142   lt_cv_sys_global_symbol_to_cdecl=
9143 fi
9144 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9145   { echo "$as_me:$LINENO: result: failed" >&5
9146 echo "${ECHO_T}failed" >&6; }
9147 else
9148   { echo "$as_me:$LINENO: result: ok" >&5
9149 echo "${ECHO_T}ok" >&6; }
9150 fi
9151
9152
9153 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9154 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9155 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9159     libltdl_cv_preloaded_symbols=yes
9160   else
9161     libltdl_cv_preloaded_symbols=no
9162   fi
9163
9164 fi
9165 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9166 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9167 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9168
9169 cat >>confdefs.h <<\_ACEOF
9170 #define HAVE_PRELOADED_SYMBOLS 1
9171 _ACEOF
9172
9173 fi
9174
9175 LIBADD_DL=
9176
9177 ac_ext=c
9178 ac_cpp='$CPP $CPPFLAGS'
9179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9182
9183
9184 { echo "$as_me:$LINENO: checking for shl_load" >&5
9185 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9186 if test "${ac_cv_func_shl_load+set}" = set; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189   cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9197 #define shl_load innocuous_shl_load
9198
9199 /* System header to define __stub macros and hopefully few prototypes,
9200     which can conflict with char shl_load (); below.
9201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9202     <limits.h> exists even on freestanding compilers.  */
9203
9204 #ifdef __STDC__
9205 # include <limits.h>
9206 #else
9207 # include <assert.h>
9208 #endif
9209
9210 #undef shl_load
9211
9212 /* Override any GCC internal prototype to avoid an error.
9213    Use char because int might match the return type of a GCC
9214    builtin and then its argument prototype would still apply.  */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 char shl_load ();
9219 /* The GNU C library defines this for functions which it implements
9220     to always fail with ENOSYS.  Some functions are actually named
9221     something starting with __ and the normal name is an alias.  */
9222 #if defined __stub_shl_load || defined __stub___shl_load
9223 choke me
9224 #endif
9225
9226 int
9227 main ()
9228 {
9229 return shl_load ();
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9236 case "(($ac_try" in
9237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238   *) ac_try_echo=$ac_try;;
9239 esac
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241   (eval "$ac_link") 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } && {
9248          test -z "$ac_c_werror_flag" ||
9249          test ! -s conftest.err
9250        } && test -s conftest$ac_exeext &&
9251        $as_test_x conftest$ac_exeext; then
9252   ac_cv_func_shl_load=yes
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257         ac_cv_func_shl_load=no
9258 fi
9259
9260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9261       conftest$ac_exeext conftest.$ac_ext
9262 fi
9263 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9264 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9265 if test $ac_cv_func_shl_load = yes; then
9266
9267 cat >>confdefs.h <<\_ACEOF
9268 #define HAVE_SHL_LOAD 1
9269 _ACEOF
9270
9271 else
9272   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9273 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9274 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   ac_check_lib_save_LIBS=$LIBS
9278 LIBS="-ldld  $LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 /* Override any GCC internal prototype to avoid an error.
9287    Use char because int might match the return type of a GCC
9288    builtin and then its argument prototype would still apply.  */
9289 #ifdef __cplusplus
9290 extern "C"
9291 #endif
9292 char shl_load ();
9293 int
9294 main ()
9295 {
9296 return shl_load ();
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (ac_try="$ac_link"
9303 case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308   (eval "$ac_link") 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } && {
9315          test -z "$ac_c_werror_flag" ||
9316          test ! -s conftest.err
9317        } && test -s conftest$ac_exeext &&
9318        $as_test_x conftest$ac_exeext; then
9319   ac_cv_lib_dld_shl_load=yes
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324         ac_cv_lib_dld_shl_load=no
9325 fi
9326
9327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9328       conftest$ac_exeext conftest.$ac_ext
9329 LIBS=$ac_check_lib_save_LIBS
9330 fi
9331 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9332 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9333 if test $ac_cv_lib_dld_shl_load = yes; then
9334
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_SHL_LOAD 1
9337 _ACEOF
9338
9339         LIBADD_DL="$LIBADD_DL -ldld"
9340 else
9341   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9342 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9343 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346   ac_check_lib_save_LIBS=$LIBS
9347 LIBS="-ldl  $LIBS"
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354
9355 /* Override any GCC internal prototype to avoid an error.
9356    Use char because int might match the return type of a GCC
9357    builtin and then its argument prototype would still apply.  */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char dlopen ();
9362 int
9363 main ()
9364 {
9365 return dlopen ();
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9372 case "(($ac_try" in
9373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374   *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377   (eval "$ac_link") 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } && {
9384          test -z "$ac_c_werror_flag" ||
9385          test ! -s conftest.err
9386        } && test -s conftest$ac_exeext &&
9387        $as_test_x conftest$ac_exeext; then
9388   ac_cv_lib_dl_dlopen=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393         ac_cv_lib_dl_dlopen=no
9394 fi
9395
9396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9397       conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9399 fi
9400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9402 if test $ac_cv_lib_dl_dlopen = yes; then
9403
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_LIBDL 1
9406 _ACEOF
9407
9408                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9409 else
9410   cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416 #if HAVE_DLFCN_H
9417 #  include <dlfcn.h>
9418 #endif
9419
9420 int
9421 main ()
9422 {
9423 dlopen(0, 0);
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 rm -f conftest.$ac_objext conftest$ac_exeext
9429 if { (ac_try="$ac_link"
9430 case "(($ac_try" in
9431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432   *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435   (eval "$ac_link") 2>conftest.er1
9436   ac_status=$?
9437   grep -v '^ *+' conftest.er1 >conftest.err
9438   rm -f conftest.er1
9439   cat conftest.err >&5
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } && {
9442          test -z "$ac_c_werror_flag" ||
9443          test ! -s conftest.err
9444        } && test -s conftest$ac_exeext &&
9445        $as_test_x conftest$ac_exeext; then
9446
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_LIBDL 1
9449 _ACEOF
9450  libltdl_cv_func_dlopen="yes"
9451 else
9452   echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9454
9455         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9458   echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460   ac_check_lib_save_LIBS=$LIBS
9461 LIBS="-lsvld  $LIBS"
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468
9469 /* Override any GCC internal prototype to avoid an error.
9470    Use char because int might match the return type of a GCC
9471    builtin and then its argument prototype would still apply.  */
9472 #ifdef __cplusplus
9473 extern "C"
9474 #endif
9475 char dlopen ();
9476 int
9477 main ()
9478 {
9479 return dlopen ();
9480   ;
9481   return 0;
9482 }
9483 _ACEOF
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9486 case "(($ac_try" in
9487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488   *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491   (eval "$ac_link") 2>conftest.er1
9492   ac_status=$?
9493   grep -v '^ *+' conftest.er1 >conftest.err
9494   rm -f conftest.er1
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } && {
9498          test -z "$ac_c_werror_flag" ||
9499          test ! -s conftest.err
9500        } && test -s conftest$ac_exeext &&
9501        $as_test_x conftest$ac_exeext; then
9502   ac_cv_lib_svld_dlopen=yes
9503 else
9504   echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9506
9507         ac_cv_lib_svld_dlopen=no
9508 fi
9509
9510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9511       conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_lib_save_LIBS
9513 fi
9514 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9515 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9516 if test $ac_cv_lib_svld_dlopen = yes; then
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_LIBDL 1
9520 _ACEOF
9521
9522                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9523 else
9524   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9525 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9526 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-ldld  $LIBS"
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539    Use char because int might match the return type of a GCC
9540    builtin and then its argument prototype would still apply.  */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char dld_link ();
9545 int
9546 main ()
9547 {
9548 return dld_link ();
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (ac_try="$ac_link"
9555 case "(($ac_try" in
9556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557   *) ac_try_echo=$ac_try;;
9558 esac
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560   (eval "$ac_link") 2>conftest.er1
9561   ac_status=$?
9562   grep -v '^ *+' conftest.er1 >conftest.err
9563   rm -f conftest.er1
9564   cat conftest.err >&5
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } && {
9567          test -z "$ac_c_werror_flag" ||
9568          test ! -s conftest.err
9569        } && test -s conftest$ac_exeext &&
9570        $as_test_x conftest$ac_exeext; then
9571   ac_cv_lib_dld_dld_link=yes
9572 else
9573   echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576         ac_cv_lib_dld_dld_link=no
9577 fi
9578
9579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9580       conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9582 fi
9583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9585 if test $ac_cv_lib_dld_dld_link = yes; then
9586
9587 cat >>confdefs.h <<\_ACEOF
9588 #define HAVE_DLD 1
9589 _ACEOF
9590
9591                 LIBADD_DL="$LIBADD_DL -ldld"
9592 else
9593   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9594 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9595 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9606 #define _dyld_func_lookup innocuous__dyld_func_lookup
9607
9608 /* System header to define __stub macros and hopefully few prototypes,
9609     which can conflict with char _dyld_func_lookup (); below.
9610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9611     <limits.h> exists even on freestanding compilers.  */
9612
9613 #ifdef __STDC__
9614 # include <limits.h>
9615 #else
9616 # include <assert.h>
9617 #endif
9618
9619 #undef _dyld_func_lookup
9620
9621 /* Override any GCC internal prototype to avoid an error.
9622    Use char because int might match the return type of a GCC
9623    builtin and then its argument prototype would still apply.  */
9624 #ifdef __cplusplus
9625 extern "C"
9626 #endif
9627 char _dyld_func_lookup ();
9628 /* The GNU C library defines this for functions which it implements
9629     to always fail with ENOSYS.  Some functions are actually named
9630     something starting with __ and the normal name is an alias.  */
9631 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9632 choke me
9633 #endif
9634
9635 int
9636 main ()
9637 {
9638 return _dyld_func_lookup ();
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9645 case "(($ac_try" in
9646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647   *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650   (eval "$ac_link") 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } && {
9657          test -z "$ac_c_werror_flag" ||
9658          test ! -s conftest.err
9659        } && test -s conftest$ac_exeext &&
9660        $as_test_x conftest$ac_exeext; then
9661   ac_cv_func__dyld_func_lookup=yes
9662 else
9663   echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9665
9666         ac_cv_func__dyld_func_lookup=no
9667 fi
9668
9669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9670       conftest$ac_exeext conftest.$ac_ext
9671 fi
9672 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9673 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9674 if test $ac_cv_func__dyld_func_lookup = yes; then
9675
9676 cat >>confdefs.h <<\_ACEOF
9677 #define HAVE_DYLD 1
9678 _ACEOF
9679
9680 fi
9681
9682
9683 fi
9684
9685
9686 fi
9687
9688
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692       conftest$ac_exeext conftest.$ac_ext
9693
9694 fi
9695
9696
9697 fi
9698
9699
9700 fi
9701
9702
9703 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9704 then
9705   lt_save_LIBS="$LIBS"
9706   LIBS="$LIBS $LIBADD_DL"
9707
9708 for ac_func in dlerror
9709 do
9710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9724 #define $ac_func innocuous_$ac_func
9725
9726 /* System header to define __stub macros and hopefully few prototypes,
9727     which can conflict with char $ac_func (); below.
9728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729     <limits.h> exists even on freestanding compilers.  */
9730
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9736
9737 #undef $ac_func
9738
9739 /* Override any GCC internal prototype to avoid an error.
9740    Use char because int might match the return type of a GCC
9741    builtin and then its argument prototype would still apply.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char $ac_func ();
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined __stub_$ac_func || defined __stub___$ac_func
9750 choke me
9751 #endif
9752
9753 int
9754 main ()
9755 {
9756 return $ac_func ();
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_link") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } && {
9775          test -z "$ac_c_werror_flag" ||
9776          test ! -s conftest.err
9777        } && test -s conftest$ac_exeext &&
9778        $as_test_x conftest$ac_exeext; then
9779   eval "$as_ac_var=yes"
9780 else
9781   echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784         eval "$as_ac_var=no"
9785 fi
9786
9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9788       conftest$ac_exeext conftest.$ac_ext
9789 fi
9790 ac_res=`eval echo '${'$as_ac_var'}'`
9791                { echo "$as_me:$LINENO: result: $ac_res" >&5
9792 echo "${ECHO_T}$ac_res" >&6; }
9793 if test `eval echo '${'$as_ac_var'}'` = yes; then
9794   cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9796 _ACEOF
9797
9798 fi
9799 done
9800
9801   LIBS="$lt_save_LIBS"
9802 fi
9803 ac_ext=c
9804 ac_cpp='$CPP $CPPFLAGS'
9805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9808
9809
9810
9811 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9812 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9813 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   ac_cv_sys_symbol_underscore=no
9817   cat > conftest.$ac_ext <<EOF
9818 void nm_test_func(){}
9819 int main(){nm_test_func;return 0;}
9820 EOF
9821   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822   (eval $ac_compile) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; then
9826     # Now try to grab the symbols.
9827     ac_nlist=conftest.nm
9828     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9829   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } && test -s "$ac_nlist"; then
9833       # See whether the symbols have a leading underscore.
9834       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9835         ac_cv_sys_symbol_underscore=yes
9836       else
9837         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9838           :
9839         else
9840           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9841         fi
9842       fi
9843     else
9844       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9845     fi
9846   else
9847     echo "configure: failed program was:" >&5
9848     cat conftest.c >&5
9849   fi
9850   rm -rf conftest*
9851
9852 fi
9853 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9854 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9855
9856
9857 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9858   if test x"$libltdl_cv_func_dlopen" = xyes ||
9859      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9860         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9861 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9862 if test "${libltdl_cv_need_uscore+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   libltdl_cv_need_uscore=unknown
9866           save_LIBS="$LIBS"
9867           LIBS="$LIBS $LIBADD_DL"
9868           if test "$cross_compiling" = yes; then :
9869   libltdl_cv_need_uscore=cross
9870 else
9871   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9872   lt_status=$lt_dlunknown
9873   cat > conftest.$ac_ext <<EOF
9874 #line 9874 "configure"
9875 #include "confdefs.h"
9876
9877 #if HAVE_DLFCN_H
9878 #include <dlfcn.h>
9879 #endif
9880
9881 #include <stdio.h>
9882
9883 #ifdef RTLD_GLOBAL
9884 #  define LT_DLGLOBAL           RTLD_GLOBAL
9885 #else
9886 #  ifdef DL_GLOBAL
9887 #    define LT_DLGLOBAL         DL_GLOBAL
9888 #  else
9889 #    define LT_DLGLOBAL         0
9890 #  endif
9891 #endif
9892
9893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9894    find out it does not work in some platform. */
9895 #ifndef LT_DLLAZY_OR_NOW
9896 #  ifdef RTLD_LAZY
9897 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9898 #  else
9899 #    ifdef DL_LAZY
9900 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9901 #    else
9902 #      ifdef RTLD_NOW
9903 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9904 #      else
9905 #        ifdef DL_NOW
9906 #          define LT_DLLAZY_OR_NOW      DL_NOW
9907 #        else
9908 #          define LT_DLLAZY_OR_NOW      0
9909 #        endif
9910 #      endif
9911 #    endif
9912 #  endif
9913 #endif
9914
9915 #ifdef __cplusplus
9916 extern "C" void exit (int);
9917 #endif
9918
9919 void fnord() { int i=42;}
9920 int main ()
9921 {
9922   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9923   int status = $lt_dlunknown;
9924
9925   if (self)
9926     {
9927       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9928       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9929       /* dlclose (self); */
9930     }
9931   else
9932     puts (dlerror ());
9933
9934     exit (status);
9935 }
9936 EOF
9937   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938   (eval $ac_link) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9942     (./conftest; exit; ) >&5 2>/dev/null
9943     lt_status=$?
9944     case x$lt_status in
9945       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9946       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9947       x$lt_dlunknown|x*)  ;;
9948     esac
9949   else :
9950     # compilation failed
9951
9952   fi
9953 fi
9954 rm -fr conftest*
9955
9956           LIBS="$save_LIBS"
9957
9958 fi
9959 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9960 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9961   fi
9962 fi
9963
9964 if test x"$libltdl_cv_need_uscore" = xyes; then
9965
9966 cat >>confdefs.h <<\_ACEOF
9967 #define NEED_USCORE 1
9968 _ACEOF
9969
9970 fi
9971
9972
9973 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9974 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9975 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   # PORTME does your system automatically load deplibs for dlopen?
9979   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9980   # For now, we just catch OSes we know something about -- in the
9981   # future, we'll try test this programmatically.
9982   libltdl_cv_sys_dlopen_deplibs=unknown
9983   case "$host_os" in
9984   aix3*|aix4.1.*|aix4.2.*)
9985     # Unknown whether this is true for these versions of AIX, but
9986     # we want this `case' here to explicitly catch those versions.
9987     libltdl_cv_sys_dlopen_deplibs=unknown
9988     ;;
9989   aix[45]*)
9990     libltdl_cv_sys_dlopen_deplibs=yes
9991     ;;
9992   darwin*)
9993     # Assuming the user has installed a libdl from somewhere, this is true
9994     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9995     libltdl_cv_sys_dlopen_deplibs=yes
9996     ;;
9997   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9998     # GNU and its variants, using gnu ld.so (Glibc)
9999     libltdl_cv_sys_dlopen_deplibs=yes
10000     ;;
10001   hpux10*|hpux11*)
10002     libltdl_cv_sys_dlopen_deplibs=yes
10003     ;;
10004   interix*)
10005     libltdl_cv_sys_dlopen_deplibs=yes
10006     ;;
10007   irix[12345]*|irix6.[01]*)
10008     # Catch all versions of IRIX before 6.2, and indicate that we don't
10009     # know how it worked for any of those versions.
10010     libltdl_cv_sys_dlopen_deplibs=unknown
10011     ;;
10012   irix*)
10013     # The case above catches anything before 6.2, and it's known that
10014     # at 6.2 and later dlopen does load deplibs.
10015     libltdl_cv_sys_dlopen_deplibs=yes
10016     ;;
10017   netbsd*)
10018     libltdl_cv_sys_dlopen_deplibs=yes
10019     ;;
10020   openbsd*)
10021     libltdl_cv_sys_dlopen_deplibs=yes
10022     ;;
10023   osf[1234]*)
10024     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10025     # it did *not* use an RPATH in a shared library to find objects the
10026     # library depends on, so we explictly say `no'.
10027     libltdl_cv_sys_dlopen_deplibs=no
10028     ;;
10029   osf5.0|osf5.0a|osf5.1)
10030     # dlopen *does* load deplibs and with the right loader patch applied
10031     # it even uses RPATH in a shared library to search for shared objects
10032     # that the library depends on, but there's no easy way to know if that
10033     # patch is installed.  Since this is the case, all we can really
10034     # say is unknown -- it depends on the patch being installed.  If
10035     # it is, this changes to `yes'.  Without it, it would be `no'.
10036     libltdl_cv_sys_dlopen_deplibs=unknown
10037     ;;
10038   osf*)
10039     # the two cases above should catch all versions of osf <= 5.1.  Read
10040     # the comments above for what we know about them.
10041     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10042     # is used to find them so we can finally say `yes'.
10043     libltdl_cv_sys_dlopen_deplibs=yes
10044     ;;
10045   solaris*)
10046     libltdl_cv_sys_dlopen_deplibs=yes
10047     ;;
10048   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10049     libltdl_cv_sys_dlopen_deplibs=yes
10050     ;;
10051   esac
10052
10053 fi
10054 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10055 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10056 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10057
10058 cat >>confdefs.h <<\_ACEOF
10059 #define LTDL_DLOPEN_DEPLIBS 1
10060 _ACEOF
10061
10062 fi
10063
10064
10065 for ac_header in argz.h
10066 do
10067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 fi
10074 ac_res=`eval echo '${'$as_ac_Header'}'`
10075                { echo "$as_me:$LINENO: result: $ac_res" >&5
10076 echo "${ECHO_T}$ac_res" >&6; }
10077 else
10078   # Is the header compilable?
10079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 $ac_includes_default
10088 #include <$ac_header>
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (ac_try="$ac_compile"
10092 case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097   (eval "$ac_compile") 2>conftest.er1
10098   ac_status=$?
10099   grep -v '^ *+' conftest.er1 >conftest.err
10100   rm -f conftest.er1
10101   cat conftest.err >&5
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); } && {
10104          test -z "$ac_c_werror_flag" ||
10105          test ! -s conftest.err
10106        } && test -s conftest.$ac_objext; then
10107   ac_header_compiler=yes
10108 else
10109   echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112         ac_header_compiler=no
10113 fi
10114
10115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10117 echo "${ECHO_T}$ac_header_compiler" >&6; }
10118
10119 # Is the header present?
10120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 #include <$ac_header>
10129 _ACEOF
10130 if { (ac_try="$ac_cpp conftest.$ac_ext"
10131 case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } >/dev/null && {
10143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10144          test ! -s conftest.err
10145        }; then
10146   ac_header_preproc=yes
10147 else
10148   echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151   ac_header_preproc=no
10152 fi
10153
10154 rm -f conftest.err conftest.$ac_ext
10155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10156 echo "${ECHO_T}$ac_header_preproc" >&6; }
10157
10158 # So?  What about this header?
10159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10160   yes:no: )
10161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10165     ac_header_preproc=yes
10166     ;;
10167   no:yes:* )
10168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10180     ( cat <<\_ASBOX
10181 ## ----------------------------------- ##
10182 ## Report this to llvmbugs@cs.uiuc.edu ##
10183 ## ----------------------------------- ##
10184 _ASBOX
10185      ) | sed "s/^/$as_me: WARNING:     /" >&2
10186     ;;
10187 esac
10188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   eval "$as_ac_Header=\$ac_header_preproc"
10194 fi
10195 ac_res=`eval echo '${'$as_ac_Header'}'`
10196                { echo "$as_me:$LINENO: result: $ac_res" >&5
10197 echo "${ECHO_T}$ac_res" >&6; }
10198
10199 fi
10200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10201   cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10203 _ACEOF
10204
10205 fi
10206
10207 done
10208
10209
10210 { echo "$as_me:$LINENO: checking for error_t" >&5
10211 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10212 if test "${ac_cv_type_error_t+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221 #if HAVE_ARGZ_H
10222 #  include <argz.h>
10223 #endif
10224
10225 typedef error_t ac__type_new_;
10226 int
10227 main ()
10228 {
10229 if ((ac__type_new_ *) 0)
10230   return 0;
10231 if (sizeof (ac__type_new_))
10232   return 0;
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext
10238 if { (ac_try="$ac_compile"
10239 case "(($ac_try" in
10240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241   *) ac_try_echo=$ac_try;;
10242 esac
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244   (eval "$ac_compile") 2>conftest.er1
10245   ac_status=$?
10246   grep -v '^ *+' conftest.er1 >conftest.err
10247   rm -f conftest.er1
10248   cat conftest.err >&5
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } && {
10251          test -z "$ac_c_werror_flag" ||
10252          test ! -s conftest.err
10253        } && test -s conftest.$ac_objext; then
10254   ac_cv_type_error_t=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259         ac_cv_type_error_t=no
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 fi
10264 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10265 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10266 if test $ac_cv_type_error_t = yes; then
10267
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_ERROR_T 1
10270 _ACEOF
10271
10272
10273 else
10274
10275 cat >>confdefs.h <<\_ACEOF
10276 #define error_t int
10277 _ACEOF
10278
10279 fi
10280
10281
10282
10283
10284
10285
10286
10287 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10288 do
10289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10303 #define $ac_func innocuous_$ac_func
10304
10305 /* System header to define __stub macros and hopefully few prototypes,
10306     which can conflict with char $ac_func (); below.
10307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308     <limits.h> exists even on freestanding compilers.  */
10309
10310 #ifdef __STDC__
10311 # include <limits.h>
10312 #else
10313 # include <assert.h>
10314 #endif
10315
10316 #undef $ac_func
10317
10318 /* Override any GCC internal prototype to avoid an error.
10319    Use char because int might match the return type of a GCC
10320    builtin and then its argument prototype would still apply.  */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char $ac_func ();
10325 /* The GNU C library defines this for functions which it implements
10326     to always fail with ENOSYS.  Some functions are actually named
10327     something starting with __ and the normal name is an alias.  */
10328 #if defined __stub_$ac_func || defined __stub___$ac_func
10329 choke me
10330 #endif
10331
10332 int
10333 main ()
10334 {
10335 return $ac_func ();
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (ac_try="$ac_link"
10342 case "(($ac_try" in
10343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344   *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347   (eval "$ac_link") 2>conftest.er1
10348   ac_status=$?
10349   grep -v '^ *+' conftest.er1 >conftest.err
10350   rm -f conftest.er1
10351   cat conftest.err >&5
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } && {
10354          test -z "$ac_c_werror_flag" ||
10355          test ! -s conftest.err
10356        } && test -s conftest$ac_exeext &&
10357        $as_test_x conftest$ac_exeext; then
10358   eval "$as_ac_var=yes"
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363         eval "$as_ac_var=no"
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367       conftest$ac_exeext conftest.$ac_ext
10368 fi
10369 ac_res=`eval echo '${'$as_ac_var'}'`
10370                { echo "$as_me:$LINENO: result: $ac_res" >&5
10371 echo "${ECHO_T}$ac_res" >&6; }
10372 if test `eval echo '${'$as_ac_var'}'` = yes; then
10373   cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375 _ACEOF
10376
10377 fi
10378 done
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
10404
10405
10406
10407 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10408                   stdio.h unistd.h
10409 do
10410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 fi
10417 ac_res=`eval echo '${'$as_ac_Header'}'`
10418                { echo "$as_me:$LINENO: result: $ac_res" >&5
10419 echo "${ECHO_T}$ac_res" >&6; }
10420 else
10421   # Is the header compilable?
10422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h.  */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h.  */
10430 $ac_includes_default
10431 #include <$ac_header>
10432 _ACEOF
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437   *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440   (eval "$ac_compile") 2>conftest.er1
10441   ac_status=$?
10442   grep -v '^ *+' conftest.er1 >conftest.err
10443   rm -f conftest.er1
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } && {
10447          test -z "$ac_c_werror_flag" ||
10448          test ! -s conftest.err
10449        } && test -s conftest.$ac_objext; then
10450   ac_header_compiler=yes
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455         ac_header_compiler=no
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460 echo "${ECHO_T}$ac_header_compiler" >&6; }
10461
10462 # Is the header present?
10463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 #include <$ac_header>
10472 _ACEOF
10473 if { (ac_try="$ac_cpp conftest.$ac_ext"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } >/dev/null && {
10486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10487          test ! -s conftest.err
10488        }; then
10489   ac_header_preproc=yes
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494   ac_header_preproc=no
10495 fi
10496
10497 rm -f conftest.err conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6; }
10500
10501 # So?  What about this header?
10502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10503   yes:no: )
10504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508     ac_header_preproc=yes
10509     ;;
10510   no:yes:* )
10511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10523     ( cat <<\_ASBOX
10524 ## ----------------------------------- ##
10525 ## Report this to llvmbugs@cs.uiuc.edu ##
10526 ## ----------------------------------- ##
10527 _ASBOX
10528      ) | sed "s/^/$as_me: WARNING:     /" >&2
10529     ;;
10530 esac
10531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10534   echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536   eval "$as_ac_Header=\$ac_header_preproc"
10537 fi
10538 ac_res=`eval echo '${'$as_ac_Header'}'`
10539                { echo "$as_me:$LINENO: result: $ac_res" >&5
10540 echo "${ECHO_T}$ac_res" >&6; }
10541
10542 fi
10543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10544   cat >>confdefs.h <<_ACEOF
10545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10546 _ACEOF
10547
10548 fi
10549
10550 done
10551
10552
10553
10554
10555
10556 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10557 do
10558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 fi
10565 ac_res=`eval echo '${'$as_ac_Header'}'`
10566                { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10568 else
10569   # Is the header compilable?
10570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h.  */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h.  */
10578 $ac_includes_default
10579 #include <$ac_header>
10580 _ACEOF
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585   *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588   (eval "$ac_compile") 2>conftest.er1
10589   ac_status=$?
10590   grep -v '^ *+' conftest.er1 >conftest.err
10591   rm -f conftest.er1
10592   cat conftest.err >&5
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } && {
10595          test -z "$ac_c_werror_flag" ||
10596          test ! -s conftest.err
10597        } && test -s conftest.$ac_objext; then
10598   ac_header_compiler=yes
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603         ac_header_compiler=no
10604 fi
10605
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6; }
10609
10610 # Is the header present?
10611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 #include <$ac_header>
10620 _ACEOF
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624   *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } >/dev/null && {
10634          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635          test ! -s conftest.err
10636        }; then
10637   ac_header_preproc=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642   ac_header_preproc=no
10643 fi
10644
10645 rm -f conftest.err conftest.$ac_ext
10646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 echo "${ECHO_T}$ac_header_preproc" >&6; }
10648
10649 # So?  What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10651   yes:no: )
10652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656     ac_header_preproc=yes
10657     ;;
10658   no:yes:* )
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10671     ( cat <<\_ASBOX
10672 ## ----------------------------------- ##
10673 ## Report this to llvmbugs@cs.uiuc.edu ##
10674 ## ----------------------------------- ##
10675 _ASBOX
10676      ) | sed "s/^/$as_me: WARNING:     /" >&2
10677     ;;
10678 esac
10679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   eval "$as_ac_Header=\$ac_header_preproc"
10685 fi
10686 ac_res=`eval echo '${'$as_ac_Header'}'`
10687                { echo "$as_me:$LINENO: result: $ac_res" >&5
10688 echo "${ECHO_T}$ac_res" >&6; }
10689
10690 fi
10691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10692   cat >>confdefs.h <<_ACEOF
10693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694 _ACEOF
10695
10696 fi
10697
10698 done
10699
10700
10701
10702 for ac_header in string.h strings.h
10703 do
10704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 fi
10711 ac_res=`eval echo '${'$as_ac_Header'}'`
10712                { echo "$as_me:$LINENO: result: $ac_res" >&5
10713 echo "${ECHO_T}$ac_res" >&6; }
10714 else
10715   # Is the header compilable?
10716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h.  */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h.  */
10724 $ac_includes_default
10725 #include <$ac_header>
10726 _ACEOF
10727 rm -f conftest.$ac_objext
10728 if { (ac_try="$ac_compile"
10729 case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_compile") 2>conftest.er1
10735   ac_status=$?
10736   grep -v '^ *+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } && {
10741          test -z "$ac_c_werror_flag" ||
10742          test ! -s conftest.err
10743        } && test -s conftest.$ac_objext; then
10744   ac_header_compiler=yes
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749         ac_header_compiler=no
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 echo "${ECHO_T}$ac_header_compiler" >&6; }
10755
10756 # Is the header present?
10757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765 #include <$ac_header>
10766 _ACEOF
10767 if { (ac_try="$ac_cpp conftest.$ac_ext"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } >/dev/null && {
10780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10781          test ! -s conftest.err
10782        }; then
10783   ac_header_preproc=yes
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788   ac_header_preproc=no
10789 fi
10790
10791 rm -f conftest.err conftest.$ac_ext
10792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10793 echo "${ECHO_T}$ac_header_preproc" >&6; }
10794
10795 # So?  What about this header?
10796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10797   yes:no: )
10798     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10802     ac_header_preproc=yes
10803     ;;
10804   no:yes:* )
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10808 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10812 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10817     ( cat <<\_ASBOX
10818 ## ----------------------------------- ##
10819 ## Report this to llvmbugs@cs.uiuc.edu ##
10820 ## ----------------------------------- ##
10821 _ASBOX
10822      ) | sed "s/^/$as_me: WARNING:     /" >&2
10823     ;;
10824 esac
10825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   eval "$as_ac_Header=\$ac_header_preproc"
10831 fi
10832 ac_res=`eval echo '${'$as_ac_Header'}'`
10833                { echo "$as_me:$LINENO: result: $ac_res" >&5
10834 echo "${ECHO_T}$ac_res" >&6; }
10835
10836 fi
10837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10838   cat >>confdefs.h <<_ACEOF
10839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840 _ACEOF
10841  break
10842 fi
10843
10844 done
10845
10846
10847
10848
10849 for ac_func in strchr index
10850 do
10851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10855   echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857   cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10865 #define $ac_func innocuous_$ac_func
10866
10867 /* System header to define __stub macros and hopefully few prototypes,
10868     which can conflict with char $ac_func (); below.
10869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870     <limits.h> exists even on freestanding compilers.  */
10871
10872 #ifdef __STDC__
10873 # include <limits.h>
10874 #else
10875 # include <assert.h>
10876 #endif
10877
10878 #undef $ac_func
10879
10880 /* Override any GCC internal prototype to avoid an error.
10881    Use char because int might match the return type of a GCC
10882    builtin and then its argument prototype would still apply.  */
10883 #ifdef __cplusplus
10884 extern "C"
10885 #endif
10886 char $ac_func ();
10887 /* The GNU C library defines this for functions which it implements
10888     to always fail with ENOSYS.  Some functions are actually named
10889     something starting with __ and the normal name is an alias.  */
10890 #if defined __stub_$ac_func || defined __stub___$ac_func
10891 choke me
10892 #endif
10893
10894 int
10895 main ()
10896 {
10897 return $ac_func ();
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 rm -f conftest.$ac_objext conftest$ac_exeext
10903 if { (ac_try="$ac_link"
10904 case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_link") 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } && {
10916          test -z "$ac_c_werror_flag" ||
10917          test ! -s conftest.err
10918        } && test -s conftest$ac_exeext &&
10919        $as_test_x conftest$ac_exeext; then
10920   eval "$as_ac_var=yes"
10921 else
10922   echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10924
10925         eval "$as_ac_var=no"
10926 fi
10927
10928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929       conftest$ac_exeext conftest.$ac_ext
10930 fi
10931 ac_res=`eval echo '${'$as_ac_var'}'`
10932                { echo "$as_me:$LINENO: result: $ac_res" >&5
10933 echo "${ECHO_T}$ac_res" >&6; }
10934 if test `eval echo '${'$as_ac_var'}'` = yes; then
10935   cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937 _ACEOF
10938  break
10939 fi
10940 done
10941
10942
10943
10944 for ac_func in strrchr rindex
10945 do
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10960 #define $ac_func innocuous_$ac_func
10961
10962 /* System header to define __stub macros and hopefully few prototypes,
10963     which can conflict with char $ac_func (); below.
10964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965     <limits.h> exists even on freestanding compilers.  */
10966
10967 #ifdef __STDC__
10968 # include <limits.h>
10969 #else
10970 # include <assert.h>
10971 #endif
10972
10973 #undef $ac_func
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976    Use char because int might match the return type of a GCC
10977    builtin and then its argument prototype would still apply.  */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char $ac_func ();
10982 /* The GNU C library defines this for functions which it implements
10983     to always fail with ENOSYS.  Some functions are actually named
10984     something starting with __ and the normal name is an alias.  */
10985 #if defined __stub_$ac_func || defined __stub___$ac_func
10986 choke me
10987 #endif
10988
10989 int
10990 main ()
10991 {
10992 return $ac_func ();
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (ac_try="$ac_link"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_link") 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } && {
11011          test -z "$ac_c_werror_flag" ||
11012          test ! -s conftest.err
11013        } && test -s conftest$ac_exeext &&
11014        $as_test_x conftest$ac_exeext; then
11015   eval "$as_ac_var=yes"
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020         eval "$as_ac_var=no"
11021 fi
11022
11023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11024       conftest$ac_exeext conftest.$ac_ext
11025 fi
11026 ac_res=`eval echo '${'$as_ac_var'}'`
11027                { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11029 if test `eval echo '${'$as_ac_var'}'` = yes; then
11030   cat >>confdefs.h <<_ACEOF
11031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032 _ACEOF
11033  break
11034 fi
11035 done
11036
11037
11038
11039 for ac_func in memcpy bcopy
11040 do
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11055 #define $ac_func innocuous_$ac_func
11056
11057 /* System header to define __stub macros and hopefully few prototypes,
11058     which can conflict with char $ac_func (); below.
11059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060     <limits.h> exists even on freestanding compilers.  */
11061
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11067
11068 #undef $ac_func
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071    Use char because int might match the return type of a GCC
11072    builtin and then its argument prototype would still apply.  */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char $ac_func ();
11077 /* The GNU C library defines this for functions which it implements
11078     to always fail with ENOSYS.  Some functions are actually named
11079     something starting with __ and the normal name is an alias.  */
11080 #if defined __stub_$ac_func || defined __stub___$ac_func
11081 choke me
11082 #endif
11083
11084 int
11085 main ()
11086 {
11087 return $ac_func ();
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_link") 2>conftest.er1
11100   ac_status=$?
11101   grep -v '^ *+' conftest.er1 >conftest.err
11102   rm -f conftest.er1
11103   cat conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } && {
11106          test -z "$ac_c_werror_flag" ||
11107          test ! -s conftest.err
11108        } && test -s conftest$ac_exeext &&
11109        $as_test_x conftest$ac_exeext; then
11110   eval "$as_ac_var=yes"
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115         eval "$as_ac_var=no"
11116 fi
11117
11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119       conftest$ac_exeext conftest.$ac_ext
11120 fi
11121 ac_res=`eval echo '${'$as_ac_var'}'`
11122                { echo "$as_me:$LINENO: result: $ac_res" >&5
11123 echo "${ECHO_T}$ac_res" >&6; }
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125   cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 _ACEOF
11128  break
11129 fi
11130 done
11131
11132
11133
11134 for ac_func in memmove strcmp
11135 do
11136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11150 #define $ac_func innocuous_$ac_func
11151
11152 /* System header to define __stub macros and hopefully few prototypes,
11153     which can conflict with char $ac_func (); below.
11154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155     <limits.h> exists even on freestanding compilers.  */
11156
11157 #ifdef __STDC__
11158 # include <limits.h>
11159 #else
11160 # include <assert.h>
11161 #endif
11162
11163 #undef $ac_func
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166    Use char because int might match the return type of a GCC
11167    builtin and then its argument prototype would still apply.  */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char $ac_func ();
11172 /* The GNU C library defines this for functions which it implements
11173     to always fail with ENOSYS.  Some functions are actually named
11174     something starting with __ and the normal name is an alias.  */
11175 #if defined __stub_$ac_func || defined __stub___$ac_func
11176 choke me
11177 #endif
11178
11179 int
11180 main ()
11181 {
11182 return $ac_func ();
11183   ;
11184   return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (ac_try="$ac_link"
11189 case "(($ac_try" in
11190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191   *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194   (eval "$ac_link") 2>conftest.er1
11195   ac_status=$?
11196   grep -v '^ *+' conftest.er1 >conftest.err
11197   rm -f conftest.er1
11198   cat conftest.err >&5
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } && {
11201          test -z "$ac_c_werror_flag" ||
11202          test ! -s conftest.err
11203        } && test -s conftest$ac_exeext &&
11204        $as_test_x conftest$ac_exeext; then
11205   eval "$as_ac_var=yes"
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210         eval "$as_ac_var=no"
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214       conftest$ac_exeext conftest.$ac_ext
11215 fi
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217                { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220   cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 _ACEOF
11223
11224 fi
11225 done
11226
11227
11228
11229
11230 for ac_func in closedir opendir readdir
11231 do
11232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238   cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11246 #define $ac_func innocuous_$ac_func
11247
11248 /* System header to define __stub macros and hopefully few prototypes,
11249     which can conflict with char $ac_func (); below.
11250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251     <limits.h> exists even on freestanding compilers.  */
11252
11253 #ifdef __STDC__
11254 # include <limits.h>
11255 #else
11256 # include <assert.h>
11257 #endif
11258
11259 #undef $ac_func
11260
11261 /* Override any GCC internal prototype to avoid an error.
11262    Use char because int might match the return type of a GCC
11263    builtin and then its argument prototype would still apply.  */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 char $ac_func ();
11268 /* The GNU C library defines this for functions which it implements
11269     to always fail with ENOSYS.  Some functions are actually named
11270     something starting with __ and the normal name is an alias.  */
11271 #if defined __stub_$ac_func || defined __stub___$ac_func
11272 choke me
11273 #endif
11274
11275 int
11276 main ()
11277 {
11278 return $ac_func ();
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290   (eval "$ac_link") 2>conftest.er1
11291   ac_status=$?
11292   grep -v '^ *+' conftest.er1 >conftest.err
11293   rm -f conftest.er1
11294   cat conftest.err >&5
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } && {
11297          test -z "$ac_c_werror_flag" ||
11298          test ! -s conftest.err
11299        } && test -s conftest$ac_exeext &&
11300        $as_test_x conftest$ac_exeext; then
11301   eval "$as_ac_var=yes"
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         eval "$as_ac_var=no"
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310       conftest$ac_exeext conftest.$ac_ext
11311 fi
11312 ac_res=`eval echo '${'$as_ac_var'}'`
11313                { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11315 if test `eval echo '${'$as_ac_var'}'` = yes; then
11316   cat >>confdefs.h <<_ACEOF
11317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318 _ACEOF
11319
11320 fi
11321 done
11322
11323
11324 # Check whether --enable-shared was given.
11325 if test "${enable_shared+set}" = set; then
11326   enableval=$enable_shared; p=${PACKAGE-default}
11327     case $enableval in
11328     yes) enable_shared=yes ;;
11329     no) enable_shared=no ;;
11330     *)
11331       enable_shared=no
11332       # Look at the argument we got.  We use all the common list separators.
11333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11334       for pkg in $enableval; do
11335         IFS="$lt_save_ifs"
11336         if test "X$pkg" = "X$p"; then
11337           enable_shared=yes
11338         fi
11339       done
11340       IFS="$lt_save_ifs"
11341       ;;
11342     esac
11343 else
11344   enable_shared=yes
11345 fi
11346
11347
11348 # Check whether --enable-static was given.
11349 if test "${enable_static+set}" = set; then
11350   enableval=$enable_static; p=${PACKAGE-default}
11351     case $enableval in
11352     yes) enable_static=yes ;;
11353     no) enable_static=no ;;
11354     *)
11355      enable_static=no
11356       # Look at the argument we got.  We use all the common list separators.
11357       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11358       for pkg in $enableval; do
11359         IFS="$lt_save_ifs"
11360         if test "X$pkg" = "X$p"; then
11361           enable_static=yes
11362         fi
11363       done
11364       IFS="$lt_save_ifs"
11365       ;;
11366     esac
11367 else
11368   enable_static=yes
11369 fi
11370
11371
11372 # Check whether --enable-fast-install was given.
11373 if test "${enable_fast_install+set}" = set; then
11374   enableval=$enable_fast_install; p=${PACKAGE-default}
11375     case $enableval in
11376     yes) enable_fast_install=yes ;;
11377     no) enable_fast_install=no ;;
11378     *)
11379       enable_fast_install=no
11380       # Look at the argument we got.  We use all the common list separators.
11381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11382       for pkg in $enableval; do
11383         IFS="$lt_save_ifs"
11384         if test "X$pkg" = "X$p"; then
11385           enable_fast_install=yes
11386         fi
11387       done
11388       IFS="$lt_save_ifs"
11389       ;;
11390     esac
11391 else
11392   enable_fast_install=yes
11393 fi
11394
11395
11396 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11397 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11398 if test "${lt_cv_path_SED+set}" = set; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   # Loop through the user's path and test for sed and gsed.
11402 # Then use that list of sed's as ones to test for truncation.
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11405 do
11406   IFS=$as_save_IFS
11407   test -z "$as_dir" && as_dir=.
11408   for lt_ac_prog in sed gsed; do
11409     for ac_exec_ext in '' $ac_executable_extensions; do
11410       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11411         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11412       fi
11413     done
11414   done
11415 done
11416 lt_ac_max=0
11417 lt_ac_count=0
11418 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11419 # along with /bin/sed that truncates output.
11420 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11421   test ! -f $lt_ac_sed && continue
11422   cat /dev/null > conftest.in
11423   lt_ac_count=0
11424   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11425   # Check for GNU sed and select it if it is found.
11426   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11427     lt_cv_path_SED=$lt_ac_sed
11428     break
11429   fi
11430   while true; do
11431     cat conftest.in conftest.in >conftest.tmp
11432     mv conftest.tmp conftest.in
11433     cp conftest.in conftest.nl
11434     echo >>conftest.nl
11435     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11436     cmp -s conftest.out conftest.nl || break
11437     # 10000 chars as input seems more than enough
11438     test $lt_ac_count -gt 10 && break
11439     lt_ac_count=`expr $lt_ac_count + 1`
11440     if test $lt_ac_count -gt $lt_ac_max; then
11441       lt_ac_max=$lt_ac_count
11442       lt_cv_path_SED=$lt_ac_sed
11443     fi
11444   done
11445 done
11446
11447 fi
11448
11449 SED=$lt_cv_path_SED
11450 { echo "$as_me:$LINENO: result: $SED" >&5
11451 echo "${ECHO_T}$SED" >&6; }
11452
11453
11454 # Check whether --with-gnu-ld was given.
11455 if test "${with_gnu_ld+set}" = set; then
11456   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11457 else
11458   with_gnu_ld=no
11459 fi
11460
11461 ac_prog=ld
11462 if test "$GCC" = yes; then
11463   # Check if gcc -print-prog-name=ld gives a path.
11464   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11465 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11466   case $host in
11467   *-*-mingw*)
11468     # gcc leaves a trailing carriage return which upsets mingw
11469     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11470   *)
11471     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11472   esac
11473   case $ac_prog in
11474     # Accept absolute paths.
11475     [\\/]* | ?:[\\/]*)
11476       re_direlt='/[^/][^/]*/\.\./'
11477       # Canonicalize the pathname of ld
11478       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11479       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11480         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11481       done
11482       test -z "$LD" && LD="$ac_prog"
11483       ;;
11484   "")
11485     # If it fails, then pretend we aren't using GCC.
11486     ac_prog=ld
11487     ;;
11488   *)
11489     # If it is relative, then search for the first ld in PATH.
11490     with_gnu_ld=unknown
11491     ;;
11492   esac
11493 elif test "$with_gnu_ld" = yes; then
11494   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11495 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11496 else
11497   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11498 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11499 fi
11500 if test "${lt_cv_path_LD+set}" = set; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   if test -z "$LD"; then
11504   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11505   for ac_dir in $PATH; do
11506     IFS="$lt_save_ifs"
11507     test -z "$ac_dir" && ac_dir=.
11508     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11509       lt_cv_path_LD="$ac_dir/$ac_prog"
11510       # Check to see if the program is GNU ld.  I'd rather use --version,
11511       # but apparently some variants of GNU ld only accept -v.
11512       # Break only if it was the GNU/non-GNU ld that we prefer.
11513       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11514       *GNU* | *'with BFD'*)
11515         test "$with_gnu_ld" != no && break
11516         ;;
11517       *)
11518         test "$with_gnu_ld" != yes && break
11519         ;;
11520       esac
11521     fi
11522   done
11523   IFS="$lt_save_ifs"
11524 else
11525   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11526 fi
11527 fi
11528
11529 LD="$lt_cv_path_LD"
11530 if test -n "$LD"; then
11531   { echo "$as_me:$LINENO: result: $LD" >&5
11532 echo "${ECHO_T}$LD" >&6; }
11533 else
11534   { echo "$as_me:$LINENO: result: no" >&5
11535 echo "${ECHO_T}no" >&6; }
11536 fi
11537 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11538 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11539    { (exit 1); exit 1; }; }
11540 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11541 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11542 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11546 case `$LD -v 2>&1 </dev/null` in
11547 *GNU* | *'with BFD'*)
11548   lt_cv_prog_gnu_ld=yes
11549   ;;
11550 *)
11551   lt_cv_prog_gnu_ld=no
11552   ;;
11553 esac
11554 fi
11555 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11556 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11557 with_gnu_ld=$lt_cv_prog_gnu_ld
11558
11559
11560 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11561 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11562 if test "${lt_cv_ld_reload_flag+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   lt_cv_ld_reload_flag='-r'
11566 fi
11567 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11568 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11569 reload_flag=$lt_cv_ld_reload_flag
11570 case $reload_flag in
11571 "" | " "*) ;;
11572 *) reload_flag=" $reload_flag" ;;
11573 esac
11574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11575 case $host_os in
11576   darwin*)
11577     if test "$GCC" = yes; then
11578       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11579     else
11580       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11581     fi
11582     ;;
11583 esac
11584
11585 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11586 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11587 if test "${lt_cv_deplibs_check_method+set}" = set; then
11588   echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590   lt_cv_file_magic_cmd='$MAGIC_CMD'
11591 lt_cv_file_magic_test_file=
11592 lt_cv_deplibs_check_method='unknown'
11593 # Need to set the preceding variable on all platforms that support
11594 # interlibrary dependencies.
11595 # 'none' -- dependencies not supported.
11596 # `unknown' -- same as none, but documents that we really don't know.
11597 # 'pass_all' -- all dependencies passed with no checks.
11598 # 'test_compile' -- check by making test program.
11599 # 'file_magic [[regex]]' -- check by looking for files in library path
11600 # which responds to the $file_magic_cmd with a given extended regex.
11601 # If you have `file' or equivalent on your system and you're not sure
11602 # whether `pass_all' will *always* work, you probably want this one.
11603
11604 case $host_os in
11605 aix4* | aix5*)
11606   lt_cv_deplibs_check_method=pass_all
11607   ;;
11608
11609 beos*)
11610   lt_cv_deplibs_check_method=pass_all
11611   ;;
11612
11613 bsdi[45]*)
11614   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11615   lt_cv_file_magic_cmd='/usr/bin/file -L'
11616   lt_cv_file_magic_test_file=/shlib/libc.so
11617   ;;
11618
11619 cygwin*)
11620   # func_win32_libid is a shell function defined in ltmain.sh
11621   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11622   lt_cv_file_magic_cmd='func_win32_libid'
11623   ;;
11624
11625 mingw* | pw32*)
11626   # Base MSYS/MinGW do not provide the 'file' command needed by
11627   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11628   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11629   lt_cv_file_magic_cmd='$OBJDUMP -f'
11630   ;;
11631
11632 darwin* | rhapsody*)
11633   lt_cv_deplibs_check_method=pass_all
11634   ;;
11635
11636 freebsd* | kfreebsd*-gnu | dragonfly*)
11637   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11638     case $host_cpu in
11639     i*86 )
11640       # Not sure whether the presence of OpenBSD here was a mistake.
11641       # Let's accept both of them until this is cleared up.
11642       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11643       lt_cv_file_magic_cmd=/usr/bin/file
11644       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11645       ;;
11646     esac
11647   else
11648     lt_cv_deplibs_check_method=pass_all
11649   fi
11650   ;;
11651
11652 gnu*)
11653   lt_cv_deplibs_check_method=pass_all
11654   ;;
11655
11656 hpux10.20* | hpux11*)
11657   lt_cv_file_magic_cmd=/usr/bin/file
11658   case $host_cpu in
11659   ia64*)
11660     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11661     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11662     ;;
11663   hppa*64*)
11664     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]'
11665     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11666     ;;
11667   *)
11668     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11669     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11670     ;;
11671   esac
11672   ;;
11673
11674 interix3*)
11675   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11676   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11677   ;;
11678
11679 irix5* | irix6* | nonstopux*)
11680   case $LD in
11681   *-32|*"-32 ") libmagic=32-bit;;
11682   *-n32|*"-n32 ") libmagic=N32;;
11683   *-64|*"-64 ") libmagic=64-bit;;
11684   *) libmagic=never-match;;
11685   esac
11686   lt_cv_deplibs_check_method=pass_all
11687   ;;
11688
11689 # This must be Linux ELF.
11690 linux*)
11691   lt_cv_deplibs_check_method=pass_all
11692   ;;
11693
11694 netbsd*)
11695   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11696     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11697   else
11698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11699   fi
11700   ;;
11701
11702 newos6*)
11703   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11704   lt_cv_file_magic_cmd=/usr/bin/file
11705   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11706   ;;
11707
11708 nto-qnx*)
11709   lt_cv_deplibs_check_method=unknown
11710   ;;
11711
11712 openbsd*)
11713   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11715   else
11716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11717   fi
11718   ;;
11719
11720 osf3* | osf4* | osf5*)
11721   lt_cv_deplibs_check_method=pass_all
11722   ;;
11723
11724 solaris*)
11725   lt_cv_deplibs_check_method=pass_all
11726   ;;
11727
11728 sysv4 | sysv4.3*)
11729   case $host_vendor in
11730   motorola)
11731     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]'
11732     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11733     ;;
11734   ncr)
11735     lt_cv_deplibs_check_method=pass_all
11736     ;;
11737   sequent)
11738     lt_cv_file_magic_cmd='/bin/file'
11739     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11740     ;;
11741   sni)
11742     lt_cv_file_magic_cmd='/bin/file'
11743     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11744     lt_cv_file_magic_test_file=/lib/libc.so
11745     ;;
11746   siemens)
11747     lt_cv_deplibs_check_method=pass_all
11748     ;;
11749   pc)
11750     lt_cv_deplibs_check_method=pass_all
11751     ;;
11752   esac
11753   ;;
11754
11755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11756   lt_cv_deplibs_check_method=pass_all
11757   ;;
11758 esac
11759
11760 fi
11761 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11762 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11763 file_magic_cmd=$lt_cv_file_magic_cmd
11764 deplibs_check_method=$lt_cv_deplibs_check_method
11765 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11766
11767
11768
11769 # If no C compiler was specified, use CC.
11770 LTCC=${LTCC-"$CC"}
11771
11772 # If no C compiler flags were specified, use CFLAGS.
11773 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11774
11775 # Allow CC to be a program name with arguments.
11776 compiler=$CC
11777
11778 # Check whether --enable-libtool-lock was given.
11779 if test "${enable_libtool_lock+set}" = set; then
11780   enableval=$enable_libtool_lock;
11781 fi
11782
11783 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11784
11785 # Some flags need to be propagated to the compiler or linker for good
11786 # libtool support.
11787 case $host in
11788 ia64-*-hpux*)
11789   # Find out which ABI we are using.
11790   echo 'int i;' > conftest.$ac_ext
11791   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792   (eval $ac_compile) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; then
11796     case `/usr/bin/file conftest.$ac_objext` in
11797     *ELF-32*)
11798       HPUX_IA64_MODE="32"
11799       ;;
11800     *ELF-64*)
11801       HPUX_IA64_MODE="64"
11802       ;;
11803     esac
11804   fi
11805   rm -rf conftest*
11806   ;;
11807 *-*-irix6*)
11808   # Find out which ABI we are using.
11809   echo '#line 11809 "configure"' > conftest.$ac_ext
11810   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811   (eval $ac_compile) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; then
11815    if test "$lt_cv_prog_gnu_ld" = yes; then
11816     case `/usr/bin/file conftest.$ac_objext` in
11817     *32-bit*)
11818       LD="${LD-ld} -melf32bsmip"
11819       ;;
11820     *N32*)
11821       LD="${LD-ld} -melf32bmipn32"
11822       ;;
11823     *64-bit*)
11824       LD="${LD-ld} -melf64bmip"
11825       ;;
11826     esac
11827    else
11828     case `/usr/bin/file conftest.$ac_objext` in
11829     *32-bit*)
11830       LD="${LD-ld} -32"
11831       ;;
11832     *N32*)
11833       LD="${LD-ld} -n32"
11834       ;;
11835     *64-bit*)
11836       LD="${LD-ld} -64"
11837       ;;
11838     esac
11839    fi
11840   fi
11841   rm -rf conftest*
11842   ;;
11843
11844 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11845   # Find out which ABI we are using.
11846   echo 'int i;' > conftest.$ac_ext
11847   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848   (eval $ac_compile) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; then
11852     case `/usr/bin/file conftest.o` in
11853     *32-bit*)
11854       case $host in
11855         x86_64-*linux*)
11856           LD="${LD-ld} -m elf_i386"
11857           ;;
11858         ppc64-*linux*|powerpc64-*linux*)
11859           LD="${LD-ld} -m elf32ppclinux"
11860           ;;
11861         s390x-*linux*)
11862           LD="${LD-ld} -m elf_s390"
11863           ;;
11864         sparc64-*linux*)
11865           LD="${LD-ld} -m elf32_sparc"
11866           ;;
11867       esac
11868       ;;
11869     *64-bit*)
11870       case $host in
11871         x86_64-*linux*)
11872           LD="${LD-ld} -m elf_x86_64"
11873           ;;
11874         ppc*-*linux*|powerpc*-*linux*)
11875           LD="${LD-ld} -m elf64ppc"
11876           ;;
11877         s390*-*linux*)
11878           LD="${LD-ld} -m elf64_s390"
11879           ;;
11880         sparc*-*linux*)
11881           LD="${LD-ld} -m elf64_sparc"
11882           ;;
11883       esac
11884       ;;
11885     esac
11886   fi
11887   rm -rf conftest*
11888   ;;
11889
11890 *-*-sco3.2v5*)
11891   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11892   SAVE_CFLAGS="$CFLAGS"
11893   CFLAGS="$CFLAGS -belf"
11894   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11895 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11896 if test "${lt_cv_cc_needs_belf+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   ac_ext=c
11900 ac_cpp='$CPP $CPPFLAGS'
11901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11904
11905      cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h.  */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h.  */
11911
11912 int
11913 main ()
11914 {
11915
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924   *) ac_try_echo=$ac_try;;
11925 esac
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927   (eval "$ac_link") 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } && {
11934          test -z "$ac_c_werror_flag" ||
11935          test ! -s conftest.err
11936        } && test -s conftest$ac_exeext &&
11937        $as_test_x conftest$ac_exeext; then
11938   lt_cv_cc_needs_belf=yes
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943         lt_cv_cc_needs_belf=no
11944 fi
11945
11946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11947       conftest$ac_exeext conftest.$ac_ext
11948      ac_ext=c
11949 ac_cpp='$CPP $CPPFLAGS'
11950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11953
11954 fi
11955 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11956 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11957   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11958     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11959     CFLAGS="$SAVE_CFLAGS"
11960   fi
11961   ;;
11962 sparc*-*solaris*)
11963   # Find out which ABI we are using.
11964   echo 'int i;' > conftest.$ac_ext
11965   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966   (eval $ac_compile) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; then
11970     case `/usr/bin/file conftest.o` in
11971     *64-bit*)
11972       case $lt_cv_prog_gnu_ld in
11973       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11974       *)    LD="${LD-ld} -64" ;;
11975       esac
11976       ;;
11977     esac
11978   fi
11979   rm -rf conftest*
11980   ;;
11981
11982
11983 esac
11984
11985 need_locks="$enable_libtool_lock"
11986
11987
11988
11989
11990 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11991     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11992     (test "X$CXX" != "Xg++"))) ; then
11993   ac_ext=cpp
11994 ac_cpp='$CXXCPP $CPPFLAGS'
11995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11998 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11999 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12000 if test -z "$CXXCPP"; then
12001   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004       # Double quotes because CXXCPP needs to be expanded
12005     for CXXCPP in "$CXX -E" "/lib/cpp"
12006     do
12007       ac_preproc_ok=false
12008 for ac_cxx_preproc_warn_flag in '' yes
12009 do
12010   # Use a header file that comes with gcc, so configuring glibc
12011   # with a fresh cross-compiler works.
12012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013   # <limits.h> exists even on freestanding compilers.
12014   # On the NeXT, cc -E runs the code through the compiler's parser,
12015   # not just through cpp. "Syntax error" is here to catch this case.
12016   cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 #ifdef __STDC__
12023 # include <limits.h>
12024 #else
12025 # include <assert.h>
12026 #endif
12027                      Syntax error
12028 _ACEOF
12029 if { (ac_try="$ac_cpp conftest.$ac_ext"
12030 case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } >/dev/null && {
12042          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12043          test ! -s conftest.err
12044        }; then
12045   :
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050   # Broken: fails on valid input.
12051 continue
12052 fi
12053
12054 rm -f conftest.err conftest.$ac_ext
12055
12056   # OK, works on sane cases.  Now check whether nonexistent headers
12057   # can be detected and how.
12058   cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h.  */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h.  */
12064 #include <ac_nonexistent.h>
12065 _ACEOF
12066 if { (ac_try="$ac_cpp conftest.$ac_ext"
12067 case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12073   ac_status=$?
12074   grep -v '^ *+' conftest.er1 >conftest.err
12075   rm -f conftest.er1
12076   cat conftest.err >&5
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } >/dev/null && {
12079          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12080          test ! -s conftest.err
12081        }; then
12082   # Broken: success on invalid input.
12083 continue
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088   # Passes both tests.
12089 ac_preproc_ok=:
12090 break
12091 fi
12092
12093 rm -f conftest.err conftest.$ac_ext
12094
12095 done
12096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12097 rm -f conftest.err conftest.$ac_ext
12098 if $ac_preproc_ok; then
12099   break
12100 fi
12101
12102     done
12103     ac_cv_prog_CXXCPP=$CXXCPP
12104
12105 fi
12106   CXXCPP=$ac_cv_prog_CXXCPP
12107 else
12108   ac_cv_prog_CXXCPP=$CXXCPP
12109 fi
12110 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12111 echo "${ECHO_T}$CXXCPP" >&6; }
12112 ac_preproc_ok=false
12113 for ac_cxx_preproc_warn_flag in '' yes
12114 do
12115   # Use a header file that comes with gcc, so configuring glibc
12116   # with a fresh cross-compiler works.
12117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118   # <limits.h> exists even on freestanding compilers.
12119   # On the NeXT, cc -E runs the code through the compiler's parser,
12120   # not just through cpp. "Syntax error" is here to catch this case.
12121   cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127 #ifdef __STDC__
12128 # include <limits.h>
12129 #else
12130 # include <assert.h>
12131 #endif
12132                      Syntax error
12133 _ACEOF
12134 if { (ac_try="$ac_cpp conftest.$ac_ext"
12135 case "(($ac_try" in
12136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137   *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12141   ac_status=$?
12142   grep -v '^ *+' conftest.er1 >conftest.err
12143   rm -f conftest.er1
12144   cat conftest.err >&5
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } >/dev/null && {
12147          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12148          test ! -s conftest.err
12149        }; then
12150   :
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155   # Broken: fails on valid input.
12156 continue
12157 fi
12158
12159 rm -f conftest.err conftest.$ac_ext
12160
12161   # OK, works on sane cases.  Now check whether nonexistent headers
12162   # can be detected and how.
12163   cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h.  */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h.  */
12169 #include <ac_nonexistent.h>
12170 _ACEOF
12171 if { (ac_try="$ac_cpp conftest.$ac_ext"
12172 case "(($ac_try" in
12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174   *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12178   ac_status=$?
12179   grep -v '^ *+' conftest.er1 >conftest.err
12180   rm -f conftest.er1
12181   cat conftest.err >&5
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); } >/dev/null && {
12184          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12185          test ! -s conftest.err
12186        }; then
12187   # Broken: success on invalid input.
12188 continue
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193   # Passes both tests.
12194 ac_preproc_ok=:
12195 break
12196 fi
12197
12198 rm -f conftest.err conftest.$ac_ext
12199
12200 done
12201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12202 rm -f conftest.err conftest.$ac_ext
12203 if $ac_preproc_ok; then
12204   :
12205 else
12206   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12207 See \`config.log' for more details." >&5
12208 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12209 See \`config.log' for more details." >&2;}
12210    { (exit 1); exit 1; }; }
12211 fi
12212
12213 ac_ext=cpp
12214 ac_cpp='$CXXCPP $CPPFLAGS'
12215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12218
12219 fi
12220
12221
12222 ac_ext=f
12223 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12224 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12226 if test -n "$ac_tool_prefix"; then
12227   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
12228   do
12229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12233 if test "${ac_cv_prog_F77+set}" = set; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   if test -n "$F77"; then
12237   ac_cv_prog_F77="$F77" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244   for ac_exec_ext in '' $ac_executable_extensions; do
12245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12248     break 2
12249   fi
12250 done
12251 done
12252 IFS=$as_save_IFS
12253
12254 fi
12255 fi
12256 F77=$ac_cv_prog_F77
12257 if test -n "$F77"; then
12258   { echo "$as_me:$LINENO: result: $F77" >&5
12259 echo "${ECHO_T}$F77" >&6; }
12260 else
12261   { echo "$as_me:$LINENO: result: no" >&5
12262 echo "${ECHO_T}no" >&6; }
12263 fi
12264
12265
12266     test -n "$F77" && break
12267   done
12268 fi
12269 if test -z "$F77"; then
12270   ac_ct_F77=$F77
12271   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
12272 do
12273   # Extract the first word of "$ac_prog", so it can be a program name with args.
12274 set dummy $ac_prog; ac_word=$2
12275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12277 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12278   echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280   if test -n "$ac_ct_F77"; then
12281   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12282 else
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12285 do
12286   IFS=$as_save_IFS
12287   test -z "$as_dir" && as_dir=.
12288   for ac_exec_ext in '' $ac_executable_extensions; do
12289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290     ac_cv_prog_ac_ct_F77="$ac_prog"
12291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12292     break 2
12293   fi
12294 done
12295 done
12296 IFS=$as_save_IFS
12297
12298 fi
12299 fi
12300 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12301 if test -n "$ac_ct_F77"; then
12302   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12303 echo "${ECHO_T}$ac_ct_F77" >&6; }
12304 else
12305   { echo "$as_me:$LINENO: result: no" >&5
12306 echo "${ECHO_T}no" >&6; }
12307 fi
12308
12309
12310   test -n "$ac_ct_F77" && break
12311 done
12312
12313   if test "x$ac_ct_F77" = x; then
12314     F77=""
12315   else
12316     case $cross_compiling:$ac_tool_warned in
12317 yes:)
12318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12319 whose name does not start with the host triplet.  If you think this
12320 configuration is useful to you, please write to autoconf@gnu.org." >&5
12321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12322 whose name does not start with the host triplet.  If you think this
12323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12324 ac_tool_warned=yes ;;
12325 esac
12326     F77=$ac_ct_F77
12327   fi
12328 fi
12329
12330
12331 # Provide some information about the compiler.
12332 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12333 ac_compiler=`set X $ac_compile; echo $2`
12334 { (ac_try="$ac_compiler --version >&5"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_compiler --version >&5") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }
12344 { (ac_try="$ac_compiler -v >&5"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_compiler -v >&5") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }
12354 { (ac_try="$ac_compiler -V >&5"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_compiler -V >&5") 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }
12364 rm -f a.out
12365
12366 # If we don't use `.F' as extension, the preprocessor is not run on the
12367 # input file.  (Note that this only needs to work for GNU compilers.)
12368 ac_save_ext=$ac_ext
12369 ac_ext=F
12370 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12371 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12372 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12373   echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375   cat >conftest.$ac_ext <<_ACEOF
12376       program main
12377 #ifndef __GNUC__
12378        choke me
12379 #endif
12380
12381       end
12382 _ACEOF
12383 rm -f conftest.$ac_objext
12384 if { (ac_try="$ac_compile"
12385 case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390   (eval "$ac_compile") 2>conftest.er1
12391   ac_status=$?
12392   grep -v '^ *+' conftest.er1 >conftest.err
12393   rm -f conftest.er1
12394   cat conftest.err >&5
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } && {
12397          test -z "$ac_f77_werror_flag" ||
12398          test ! -s conftest.err
12399        } && test -s conftest.$ac_objext; then
12400   ac_compiler_gnu=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405         ac_compiler_gnu=no
12406 fi
12407
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12410
12411 fi
12412 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12413 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12414 ac_ext=$ac_save_ext
12415 ac_test_FFLAGS=${FFLAGS+set}
12416 ac_save_FFLAGS=$FFLAGS
12417 FFLAGS=
12418 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12419 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12420 if test "${ac_cv_prog_f77_g+set}" = set; then
12421   echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423   FFLAGS=-g
12424 cat >conftest.$ac_ext <<_ACEOF
12425       program main
12426
12427       end
12428 _ACEOF
12429 rm -f conftest.$ac_objext
12430 if { (ac_try="$ac_compile"
12431 case "(($ac_try" in
12432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433   *) ac_try_echo=$ac_try;;
12434 esac
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436   (eval "$ac_compile") 2>conftest.er1
12437   ac_status=$?
12438   grep -v '^ *+' conftest.er1 >conftest.err
12439   rm -f conftest.er1
12440   cat conftest.err >&5
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); } && {
12443          test -z "$ac_f77_werror_flag" ||
12444          test ! -s conftest.err
12445        } && test -s conftest.$ac_objext; then
12446   ac_cv_prog_f77_g=yes
12447 else
12448   echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451         ac_cv_prog_f77_g=no
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455
12456 fi
12457 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12458 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12459 if test "$ac_test_FFLAGS" = set; then
12460   FFLAGS=$ac_save_FFLAGS
12461 elif test $ac_cv_prog_f77_g = yes; then
12462   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12463     FFLAGS="-g -O2"
12464   else
12465     FFLAGS="-g"
12466   fi
12467 else
12468   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12469     FFLAGS="-O2"
12470   else
12471     FFLAGS=
12472   fi
12473 fi
12474
12475 G77=`test $ac_compiler_gnu = yes && echo yes`
12476 ac_ext=c
12477 ac_cpp='$CPP $CPPFLAGS'
12478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12481
12482
12483
12484 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12485
12486 # find the maximum length of command line arguments
12487 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12488 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12489 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492     i=0
12493   teststring="ABCD"
12494
12495   case $build_os in
12496   msdosdjgpp*)
12497     # On DJGPP, this test can blow up pretty badly due to problems in libc
12498     # (any single argument exceeding 2000 bytes causes a buffer overrun
12499     # during glob expansion).  Even if it were fixed, the result of this
12500     # check would be larger than it should be.
12501     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12502     ;;
12503
12504   gnu*)
12505     # Under GNU Hurd, this test is not required because there is
12506     # no limit to the length of command line arguments.
12507     # Libtool will interpret -1 as no limit whatsoever
12508     lt_cv_sys_max_cmd_len=-1;
12509     ;;
12510
12511   cygwin* | mingw*)
12512     # On Win9x/ME, this test blows up -- it succeeds, but takes
12513     # about 5 minutes as the teststring grows exponentially.
12514     # Worse, since 9x/ME are not pre-emptively multitasking,
12515     # you end up with a "frozen" computer, even though with patience
12516     # the test eventually succeeds (with a max line length of 256k).
12517     # Instead, let's just punt: use the minimum linelength reported by
12518     # all of the supported platforms: 8192 (on NT/2K/XP).
12519     lt_cv_sys_max_cmd_len=8192;
12520     ;;
12521
12522   amigaos*)
12523     # On AmigaOS with pdksh, this test takes hours, literally.
12524     # So we just punt and use a minimum line length of 8192.
12525     lt_cv_sys_max_cmd_len=8192;
12526     ;;
12527
12528   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12529     # This has been around since 386BSD, at least.  Likely further.
12530     if test -x /sbin/sysctl; then
12531       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12532     elif test -x /usr/sbin/sysctl; then
12533       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12534     else
12535       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12536     fi
12537     # And add a safety zone
12538     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12539     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12540     ;;
12541
12542   interix*)
12543     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12544     lt_cv_sys_max_cmd_len=196608
12545     ;;
12546
12547   osf*)
12548     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12549     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12550     # nice to cause kernel panics so lets avoid the loop below.
12551     # First set a reasonable default.
12552     lt_cv_sys_max_cmd_len=16384
12553     #
12554     if test -x /sbin/sysconfig; then
12555       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12556         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12557       esac
12558     fi
12559     ;;
12560   sco3.2v5*)
12561     lt_cv_sys_max_cmd_len=102400
12562     ;;
12563   sysv5* | sco5v6* | sysv4.2uw2*)
12564     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12565     if test -n "$kargmax"; then
12566       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12567     else
12568       lt_cv_sys_max_cmd_len=32768
12569     fi
12570     ;;
12571   *)
12572     # If test is not a shell built-in, we'll probably end up computing a
12573     # maximum length that is only half of the actual maximum length, but
12574     # we can't tell.
12575     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12576     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12577                = "XX$teststring") >/dev/null 2>&1 &&
12578             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12579             lt_cv_sys_max_cmd_len=$new_result &&
12580             test $i != 17 # 1/2 MB should be enough
12581     do
12582       i=`expr $i + 1`
12583       teststring=$teststring$teststring
12584     done
12585     teststring=
12586     # Add a significant safety factor because C++ compilers can tack on massive
12587     # amounts of additional arguments before passing them to the linker.
12588     # It appears as though 1/2 is a usable value.
12589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12590     ;;
12591   esac
12592
12593 fi
12594
12595 if test -n $lt_cv_sys_max_cmd_len ; then
12596   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12597 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12598 else
12599   { echo "$as_me:$LINENO: result: none" >&5
12600 echo "${ECHO_T}none" >&6; }
12601 fi
12602
12603
12604
12605
12606 # Check for command to grab the raw symbol name followed by C symbol from nm.
12607 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12610   echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612
12613 # These are sane defaults that work on at least a few old systems.
12614 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12615
12616 # Character class describing NM global symbol codes.
12617 symcode='[BCDEGRST]'
12618
12619 # Regexp to match symbols that can be accessed directly from C.
12620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12621
12622 # Transform an extracted symbol line into a proper C declaration
12623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12624
12625 # Transform an extracted symbol line into symbol name and symbol address
12626 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'"
12627
12628 # Define system-specific variables.
12629 case $host_os in
12630 aix*)
12631   symcode='[BCDT]'
12632   ;;
12633 cygwin* | mingw* | pw32*)
12634   symcode='[ABCDGISTW]'
12635   ;;
12636 hpux*) # Its linker distinguishes data from code symbols
12637   if test "$host_cpu" = ia64; then
12638     symcode='[ABCDEGRST]'
12639   fi
12640   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12641   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'"
12642   ;;
12643 linux*)
12644   if test "$host_cpu" = ia64; then
12645     symcode='[ABCDGIRSTW]'
12646     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12647     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'"
12648   fi
12649   ;;
12650 irix* | nonstopux*)
12651   symcode='[BCDEGRST]'
12652   ;;
12653 osf*)
12654   symcode='[BCDEGQRST]'
12655   ;;
12656 solaris*)
12657   symcode='[BDRT]'
12658   ;;
12659 sco3.2v5*)
12660   symcode='[DT]'
12661   ;;
12662 sysv4.2uw2*)
12663   symcode='[DT]'
12664   ;;
12665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12666   symcode='[ABDT]'
12667   ;;
12668 sysv4)
12669   symcode='[DFNSTU]'
12670   ;;
12671 esac
12672
12673 # Handle CRLF in mingw tool chain
12674 opt_cr=
12675 case $build_os in
12676 mingw*)
12677   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12678   ;;
12679 esac
12680
12681 # If we're using GNU nm, then use its standard symbol codes.
12682 case `$NM -V 2>&1` in
12683 *GNU* | *'with BFD'*)
12684   symcode='[ABCDGIRSTW]' ;;
12685 esac
12686
12687 # Try without a prefix undercore, then with it.
12688 for ac_symprfx in "" "_"; do
12689
12690   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12691   symxfrm="\\1 $ac_symprfx\\2 \\2"
12692
12693   # Write the raw and C identifiers.
12694   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12695
12696   # Check to see that the pipe works correctly.
12697   pipe_works=no
12698
12699   rm -f conftest*
12700   cat > conftest.$ac_ext <<EOF
12701 #ifdef __cplusplus
12702 extern "C" {
12703 #endif
12704 char nm_test_var;
12705 void nm_test_func(){}
12706 #ifdef __cplusplus
12707 }
12708 #endif
12709 int main(){nm_test_var='a';nm_test_func();return(0);}
12710 EOF
12711
12712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713   (eval $ac_compile) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; then
12717     # Now try to grab the symbols.
12718     nlist=conftest.nm
12719     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12720   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } && test -s "$nlist"; then
12724       # Try sorting and uniquifying the output.
12725       if sort "$nlist" | uniq > "$nlist"T; then
12726         mv -f "$nlist"T "$nlist"
12727       else
12728         rm -f "$nlist"T
12729       fi
12730
12731       # Make sure that we snagged all the symbols we need.
12732       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12733         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12734           cat <<EOF > conftest.$ac_ext
12735 #ifdef __cplusplus
12736 extern "C" {
12737 #endif
12738
12739 EOF
12740           # Now generate the symbol file.
12741           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12742
12743           cat <<EOF >> conftest.$ac_ext
12744 #if defined (__STDC__) && __STDC__
12745 # define lt_ptr_t void *
12746 #else
12747 # define lt_ptr_t char *
12748 # define const
12749 #endif
12750
12751 /* The mapping between symbol names and symbols. */
12752 const struct {
12753   const char *name;
12754   lt_ptr_t address;
12755 }
12756 lt_preloaded_symbols[] =
12757 {
12758 EOF
12759           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12760           cat <<\EOF >> conftest.$ac_ext
12761   {0, (lt_ptr_t) 0}
12762 };
12763
12764 #ifdef __cplusplus
12765 }
12766 #endif
12767 EOF
12768           # Now try linking the two files.
12769           mv conftest.$ac_objext conftstm.$ac_objext
12770           lt_save_LIBS="$LIBS"
12771           lt_save_CFLAGS="$CFLAGS"
12772           LIBS="conftstm.$ac_objext"
12773           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12774           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775   (eval $ac_link) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12779             pipe_works=yes
12780           fi
12781           LIBS="$lt_save_LIBS"
12782           CFLAGS="$lt_save_CFLAGS"
12783         else
12784           echo "cannot find nm_test_func in $nlist" >&5
12785         fi
12786       else
12787         echo "cannot find nm_test_var in $nlist" >&5
12788       fi
12789     else
12790       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12791     fi
12792   else
12793     echo "$progname: failed program was:" >&5
12794     cat conftest.$ac_ext >&5
12795   fi
12796   rm -f conftest* conftst*
12797
12798   # Do not use the global_symbol_pipe unless it works.
12799   if test "$pipe_works" = yes; then
12800     break
12801   else
12802     lt_cv_sys_global_symbol_pipe=
12803   fi
12804 done
12805
12806 fi
12807
12808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12809   lt_cv_sys_global_symbol_to_cdecl=
12810 fi
12811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12812   { echo "$as_me:$LINENO: result: failed" >&5
12813 echo "${ECHO_T}failed" >&6; }
12814 else
12815   { echo "$as_me:$LINENO: result: ok" >&5
12816 echo "${ECHO_T}ok" >&6; }
12817 fi
12818
12819 { echo "$as_me:$LINENO: checking for objdir" >&5
12820 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12821 if test "${lt_cv_objdir+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   rm -f .libs 2>/dev/null
12825 mkdir .libs 2>/dev/null
12826 if test -d .libs; then
12827   lt_cv_objdir=.libs
12828 else
12829   # MS-DOS does not allow filenames that begin with a dot.
12830   lt_cv_objdir=_libs
12831 fi
12832 rmdir .libs 2>/dev/null
12833 fi
12834 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12835 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12836 objdir=$lt_cv_objdir
12837
12838
12839
12840
12841
12842 case $host_os in
12843 aix3*)
12844   # AIX sometimes has problems with the GCC collect2 program.  For some
12845   # reason, if we set the COLLECT_NAMES environment variable, the problems
12846   # vanish in a puff of smoke.
12847   if test "X${COLLECT_NAMES+set}" != Xset; then
12848     COLLECT_NAMES=
12849     export COLLECT_NAMES
12850   fi
12851   ;;
12852 esac
12853
12854 # Sed substitution that helps us do robust quoting.  It backslashifies
12855 # metacharacters that are still active within double-quoted strings.
12856 Xsed='sed -e 1s/^X//'
12857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12858
12859 # Same as above, but do not quote variable references.
12860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12861
12862 # Sed substitution to delay expansion of an escaped shell variable in a
12863 # double_quote_subst'ed string.
12864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12865
12866 # Sed substitution to avoid accidental globbing in evaled expressions
12867 no_glob_subst='s/\*/\\\*/g'
12868
12869 # Constants:
12870 rm="rm -f"
12871
12872 # Global variables:
12873 default_ofile=mklib
12874 can_build_shared=yes
12875
12876 # All known linkers require a `.a' archive for static linking (except MSVC,
12877 # which needs '.lib').
12878 libext=a
12879 ltmain="$ac_aux_dir/ltmain.sh"
12880 ofile="$default_ofile"
12881 with_gnu_ld="$lt_cv_prog_gnu_ld"
12882
12883 if test -n "$ac_tool_prefix"; then
12884   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12885 set dummy ${ac_tool_prefix}ar; ac_word=$2
12886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12888 if test "${ac_cv_prog_AR+set}" = set; then
12889   echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891   if test -n "$AR"; then
12892   ac_cv_prog_AR="$AR" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897   IFS=$as_save_IFS
12898   test -z "$as_dir" && as_dir=.
12899   for ac_exec_ext in '' $ac_executable_extensions; do
12900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901     ac_cv_prog_AR="${ac_tool_prefix}ar"
12902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12903     break 2
12904   fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 AR=$ac_cv_prog_AR
12912 if test -n "$AR"; then
12913   { echo "$as_me:$LINENO: result: $AR" >&5
12914 echo "${ECHO_T}$AR" >&6; }
12915 else
12916   { echo "$as_me:$LINENO: result: no" >&5
12917 echo "${ECHO_T}no" >&6; }
12918 fi
12919
12920
12921 fi
12922 if test -z "$ac_cv_prog_AR"; then
12923   ac_ct_AR=$AR
12924   # Extract the first word of "ar", so it can be a program name with args.
12925 set dummy ar; ac_word=$2
12926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12929   echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931   if test -n "$ac_ct_AR"; then
12932   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12936 do
12937   IFS=$as_save_IFS
12938   test -z "$as_dir" && as_dir=.
12939   for ac_exec_ext in '' $ac_executable_extensions; do
12940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941     ac_cv_prog_ac_ct_AR="ar"
12942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12943     break 2
12944   fi
12945 done
12946 done
12947 IFS=$as_save_IFS
12948
12949 fi
12950 fi
12951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12952 if test -n "$ac_ct_AR"; then
12953   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12954 echo "${ECHO_T}$ac_ct_AR" >&6; }
12955 else
12956   { echo "$as_me:$LINENO: result: no" >&5
12957 echo "${ECHO_T}no" >&6; }
12958 fi
12959
12960   if test "x$ac_ct_AR" = x; then
12961     AR="false"
12962   else
12963     case $cross_compiling:$ac_tool_warned in
12964 yes:)
12965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12966 whose name does not start with the host triplet.  If you think this
12967 configuration is useful to you, please write to autoconf@gnu.org." >&5
12968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12969 whose name does not start with the host triplet.  If you think this
12970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12971 ac_tool_warned=yes ;;
12972 esac
12973     AR=$ac_ct_AR
12974   fi
12975 else
12976   AR="$ac_cv_prog_AR"
12977 fi
12978
12979 if test -n "$ac_tool_prefix"; then
12980   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_prog_RANLIB+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   if test -n "$RANLIB"; then
12988   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12989 else
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995   for ac_exec_ext in '' $ac_executable_extensions; do
12996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999     break 2
13000   fi
13001 done
13002 done
13003 IFS=$as_save_IFS
13004
13005 fi
13006 fi
13007 RANLIB=$ac_cv_prog_RANLIB
13008 if test -n "$RANLIB"; then
13009   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13010 echo "${ECHO_T}$RANLIB" >&6; }
13011 else
13012   { echo "$as_me:$LINENO: result: no" >&5
13013 echo "${ECHO_T}no" >&6; }
13014 fi
13015
13016
13017 fi
13018 if test -z "$ac_cv_prog_RANLIB"; then
13019   ac_ct_RANLIB=$RANLIB
13020   # Extract the first word of "ranlib", so it can be a program name with args.
13021 set dummy ranlib; ac_word=$2
13022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   if test -n "$ac_ct_RANLIB"; then
13028   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13032 do
13033   IFS=$as_save_IFS
13034   test -z "$as_dir" && as_dir=.
13035   for ac_exec_ext in '' $ac_executable_extensions; do
13036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037     ac_cv_prog_ac_ct_RANLIB="ranlib"
13038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13039     break 2
13040   fi
13041 done
13042 done
13043 IFS=$as_save_IFS
13044
13045 fi
13046 fi
13047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13048 if test -n "$ac_ct_RANLIB"; then
13049   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13050 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13051 else
13052   { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13054 fi
13055
13056   if test "x$ac_ct_RANLIB" = x; then
13057     RANLIB=":"
13058   else
13059     case $cross_compiling:$ac_tool_warned in
13060 yes:)
13061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13062 whose name does not start with the host triplet.  If you think this
13063 configuration is useful to you, please write to autoconf@gnu.org." >&5
13064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13065 whose name does not start with the host triplet.  If you think this
13066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13067 ac_tool_warned=yes ;;
13068 esac
13069     RANLIB=$ac_ct_RANLIB
13070   fi
13071 else
13072   RANLIB="$ac_cv_prog_RANLIB"
13073 fi
13074
13075 if test -n "$ac_tool_prefix"; then
13076   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13077 set dummy ${ac_tool_prefix}strip; ac_word=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_prog_STRIP+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   if test -n "$STRIP"; then
13084   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13085 else
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091   for ac_exec_ext in '' $ac_executable_extensions; do
13092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 fi
13102 fi
13103 STRIP=$ac_cv_prog_STRIP
13104 if test -n "$STRIP"; then
13105   { echo "$as_me:$LINENO: result: $STRIP" >&5
13106 echo "${ECHO_T}$STRIP" >&6; }
13107 else
13108   { echo "$as_me:$LINENO: result: no" >&5
13109 echo "${ECHO_T}no" >&6; }
13110 fi
13111
13112
13113 fi
13114 if test -z "$ac_cv_prog_STRIP"; then
13115   ac_ct_STRIP=$STRIP
13116   # Extract the first word of "strip", so it can be a program name with args.
13117 set dummy strip; ac_word=$2
13118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123   if test -n "$ac_ct_STRIP"; then
13124   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13125 else
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13128 do
13129   IFS=$as_save_IFS
13130   test -z "$as_dir" && as_dir=.
13131   for ac_exec_ext in '' $ac_executable_extensions; do
13132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133     ac_cv_prog_ac_ct_STRIP="strip"
13134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13135     break 2
13136   fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 fi
13142 fi
13143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13144 if test -n "$ac_ct_STRIP"; then
13145   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13146 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13147 else
13148   { echo "$as_me:$LINENO: result: no" >&5
13149 echo "${ECHO_T}no" >&6; }
13150 fi
13151
13152   if test "x$ac_ct_STRIP" = x; then
13153     STRIP=":"
13154   else
13155     case $cross_compiling:$ac_tool_warned in
13156 yes:)
13157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13158 whose name does not start with the host triplet.  If you think this
13159 configuration is useful to you, please write to autoconf@gnu.org." >&5
13160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13161 whose name does not start with the host triplet.  If you think this
13162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13163 ac_tool_warned=yes ;;
13164 esac
13165     STRIP=$ac_ct_STRIP
13166   fi
13167 else
13168   STRIP="$ac_cv_prog_STRIP"
13169 fi
13170
13171
13172 old_CC="$CC"
13173 old_CFLAGS="$CFLAGS"
13174
13175 # Set sane defaults for various variables
13176 test -z "$AR" && AR=ar
13177 test -z "$AR_FLAGS" && AR_FLAGS=cru
13178 test -z "$AS" && AS=as
13179 test -z "$CC" && CC=cc
13180 test -z "$LTCC" && LTCC=$CC
13181 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13182 test -z "$DLLTOOL" && DLLTOOL=dlltool
13183 test -z "$LD" && LD=ld
13184 test -z "$LN_S" && LN_S="ln -s"
13185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13186 test -z "$NM" && NM=nm
13187 test -z "$SED" && SED=sed
13188 test -z "$OBJDUMP" && OBJDUMP=objdump
13189 test -z "$RANLIB" && RANLIB=:
13190 test -z "$STRIP" && STRIP=:
13191 test -z "$ac_objext" && ac_objext=o
13192
13193 # Determine commands to create old-style static archives.
13194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13195 old_postinstall_cmds='chmod 644 $oldlib'
13196 old_postuninstall_cmds=
13197
13198 if test -n "$RANLIB"; then
13199   case $host_os in
13200   openbsd*)
13201     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13202     ;;
13203   *)
13204     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13205     ;;
13206   esac
13207   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13208 fi
13209
13210 for cc_temp in $compiler""; do
13211   case $cc_temp in
13212     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13213     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13214     \-*) ;;
13215     *) break;;
13216   esac
13217 done
13218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13219
13220
13221 # Only perform the check for file, if the check method requires it
13222 case $deplibs_check_method in
13223 file_magic*)
13224   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13225     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13226 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13228   echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230   case $MAGIC_CMD in
13231 [\\/*] |  ?:[\\/]*)
13232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13233   ;;
13234 *)
13235   lt_save_MAGIC_CMD="$MAGIC_CMD"
13236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13238   for ac_dir in $ac_dummy; do
13239     IFS="$lt_save_ifs"
13240     test -z "$ac_dir" && ac_dir=.
13241     if test -f $ac_dir/${ac_tool_prefix}file; then
13242       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13243       if test -n "$file_magic_test_file"; then
13244         case $deplibs_check_method in
13245         "file_magic "*)
13246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13249             $EGREP "$file_magic_regex" > /dev/null; then
13250             :
13251           else
13252             cat <<EOF 1>&2
13253
13254 *** Warning: the command libtool uses to detect shared libraries,
13255 *** $file_magic_cmd, produces output that libtool cannot recognize.
13256 *** The result is that libtool may fail to recognize shared libraries
13257 *** as such.  This will affect the creation of libtool libraries that
13258 *** depend on shared libraries, but programs linked with such libtool
13259 *** libraries will work regardless of this problem.  Nevertheless, you
13260 *** may want to report the problem to your system manager and/or to
13261 *** bug-libtool@gnu.org
13262
13263 EOF
13264           fi ;;
13265         esac
13266       fi
13267       break
13268     fi
13269   done
13270   IFS="$lt_save_ifs"
13271   MAGIC_CMD="$lt_save_MAGIC_CMD"
13272   ;;
13273 esac
13274 fi
13275
13276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13277 if test -n "$MAGIC_CMD"; then
13278   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13280 else
13281   { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13283 fi
13284
13285 if test -z "$lt_cv_path_MAGIC_CMD"; then
13286   if test -n "$ac_tool_prefix"; then
13287     { echo "$as_me:$LINENO: checking for file" >&5
13288 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   case $MAGIC_CMD in
13293 [\\/*] |  ?:[\\/]*)
13294   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13295   ;;
13296 *)
13297   lt_save_MAGIC_CMD="$MAGIC_CMD"
13298   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13299   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13300   for ac_dir in $ac_dummy; do
13301     IFS="$lt_save_ifs"
13302     test -z "$ac_dir" && ac_dir=.
13303     if test -f $ac_dir/file; then
13304       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13305       if test -n "$file_magic_test_file"; then
13306         case $deplibs_check_method in
13307         "file_magic "*)
13308           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13309           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13310           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13311             $EGREP "$file_magic_regex" > /dev/null; then
13312             :
13313           else
13314             cat <<EOF 1>&2
13315
13316 *** Warning: the command libtool uses to detect shared libraries,
13317 *** $file_magic_cmd, produces output that libtool cannot recognize.
13318 *** The result is that libtool may fail to recognize shared libraries
13319 *** as such.  This will affect the creation of libtool libraries that
13320 *** depend on shared libraries, but programs linked with such libtool
13321 *** libraries will work regardless of this problem.  Nevertheless, you
13322 *** may want to report the problem to your system manager and/or to
13323 *** bug-libtool@gnu.org
13324
13325 EOF
13326           fi ;;
13327         esac
13328       fi
13329       break
13330     fi
13331   done
13332   IFS="$lt_save_ifs"
13333   MAGIC_CMD="$lt_save_MAGIC_CMD"
13334   ;;
13335 esac
13336 fi
13337
13338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13339 if test -n "$MAGIC_CMD"; then
13340   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13341 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13342 else
13343   { echo "$as_me:$LINENO: result: no" >&5
13344 echo "${ECHO_T}no" >&6; }
13345 fi
13346
13347   else
13348     MAGIC_CMD=:
13349   fi
13350 fi
13351
13352   fi
13353   ;;
13354 esac
13355
13356 enable_dlopen=yes
13357 enable_win32_dll=no
13358
13359 # Check whether --enable-libtool-lock was given.
13360 if test "${enable_libtool_lock+set}" = set; then
13361   enableval=$enable_libtool_lock;
13362 fi
13363
13364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13365
13366
13367 # Check whether --with-pic was given.
13368 if test "${with_pic+set}" = set; then
13369   withval=$with_pic; pic_mode="$withval"
13370 else
13371   pic_mode=default
13372 fi
13373
13374 test -z "$pic_mode" && pic_mode=default
13375
13376 # Use C for the default configuration in the libtool script
13377 tagname=
13378 lt_save_CC="$CC"
13379 ac_ext=c
13380 ac_cpp='$CPP $CPPFLAGS'
13381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13384
13385
13386 # Source file extension for C test sources.
13387 ac_ext=c
13388
13389 # Object file extension for compiled C test sources.
13390 objext=o
13391 objext=$objext
13392
13393 # Code to be used in simple compile tests
13394 lt_simple_compile_test_code="int some_variable = 0;\n"
13395
13396 # Code to be used in simple link tests
13397 lt_simple_link_test_code='int main(){return(0);}\n'
13398
13399
13400 # If no C compiler was specified, use CC.
13401 LTCC=${LTCC-"$CC"}
13402
13403 # If no C compiler flags were specified, use CFLAGS.
13404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13405
13406 # Allow CC to be a program name with arguments.
13407 compiler=$CC
13408
13409
13410 # save warnings/boilerplate of simple test code
13411 ac_outfile=conftest.$ac_objext
13412 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13414 _lt_compiler_boilerplate=`cat conftest.err`
13415 $rm conftest*
13416
13417 ac_outfile=conftest.$ac_objext
13418 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13420 _lt_linker_boilerplate=`cat conftest.err`
13421 $rm conftest*
13422
13423
13424
13425 lt_prog_compiler_no_builtin_flag=
13426
13427 if test "$GCC" = yes; then
13428   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13429
13430
13431 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   lt_cv_prog_compiler_rtti_exceptions=no
13437   ac_outfile=conftest.$ac_objext
13438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13439    lt_compiler_flag="-fno-rtti -fno-exceptions"
13440    # Insert the option either (1) after the last *FLAGS variable, or
13441    # (2) before a word containing "conftest.", or (3) at the end.
13442    # Note that $ac_compile itself does not contain backslashes and begins
13443    # with a dollar sign (not a hyphen), so the echo should work correctly.
13444    # The option is referenced via a variable to avoid confusing sed.
13445    lt_compile=`echo "$ac_compile" | $SED \
13446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13448    -e 's:$: $lt_compiler_flag:'`
13449    (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
13450    (eval "$lt_compile" 2>conftest.err)
13451    ac_status=$?
13452    cat conftest.err >&5
13453    echo "$as_me:13453: \$? = $ac_status" >&5
13454    if (exit $ac_status) && test -s "$ac_outfile"; then
13455      # The compiler can only warn and ignore the option if not recognized
13456      # So say no if there are warnings other than the usual output.
13457      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13458      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13460        lt_cv_prog_compiler_rtti_exceptions=yes
13461      fi
13462    fi
13463    $rm conftest*
13464
13465 fi
13466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13467 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13468
13469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13470     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13471 else
13472     :
13473 fi
13474
13475 fi
13476
13477 lt_prog_compiler_wl=
13478 lt_prog_compiler_pic=
13479 lt_prog_compiler_static=
13480
13481 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13483
13484   if test "$GCC" = yes; then
13485     lt_prog_compiler_wl='-Wl,'
13486     lt_prog_compiler_static='-static'
13487
13488     case $host_os in
13489       aix*)
13490       # All AIX code is PIC.
13491       if test "$host_cpu" = ia64; then
13492         # AIX 5 now supports IA64 processor
13493         lt_prog_compiler_static='-Bstatic'
13494       fi
13495       ;;
13496
13497     amigaos*)
13498       # FIXME: we need at least 68020 code to build shared libraries, but
13499       # adding the `-m68020' flag to GCC prevents building anything better,
13500       # like `-m68040'.
13501       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13502       ;;
13503
13504     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13505       # PIC is the default for these OSes.
13506       ;;
13507
13508     mingw* | pw32* | os2*)
13509       # This hack is so that the source file can tell whether it is being
13510       # built for inclusion in a dll (and should export symbols for example).
13511       lt_prog_compiler_pic='-DDLL_EXPORT'
13512       ;;
13513
13514     darwin* | rhapsody*)
13515       # PIC is the default on this platform
13516       # Common symbols not allowed in MH_DYLIB files
13517       lt_prog_compiler_pic='-fno-common'
13518       ;;
13519
13520     interix3*)
13521       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13522       # Instead, we relocate shared libraries at runtime.
13523       ;;
13524
13525     msdosdjgpp*)
13526       # Just because we use GCC doesn't mean we suddenly get shared libraries
13527       # on systems that don't support them.
13528       lt_prog_compiler_can_build_shared=no
13529       enable_shared=no
13530       ;;
13531
13532     sysv4*MP*)
13533       if test -d /usr/nec; then
13534         lt_prog_compiler_pic=-Kconform_pic
13535       fi
13536       ;;
13537
13538     hpux*)
13539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13540       # not for PA HP-UX.
13541       case $host_cpu in
13542       hppa*64*|ia64*)
13543         # +Z the default
13544         ;;
13545       *)
13546         lt_prog_compiler_pic='-fPIC'
13547         ;;
13548       esac
13549       ;;
13550
13551     *)
13552       lt_prog_compiler_pic='-fPIC'
13553       ;;
13554     esac
13555   else
13556     # PORTME Check for flag to pass linker flags through the system compiler.
13557     case $host_os in
13558     aix*)
13559       lt_prog_compiler_wl='-Wl,'
13560       if test "$host_cpu" = ia64; then
13561         # AIX 5 now supports IA64 processor
13562         lt_prog_compiler_static='-Bstatic'
13563       else
13564         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13565       fi
13566       ;;
13567       darwin*)
13568         # PIC is the default on this platform
13569         # Common symbols not allowed in MH_DYLIB files
13570        case $cc_basename in
13571          xlc*)
13572          lt_prog_compiler_pic='-qnocommon'
13573          lt_prog_compiler_wl='-Wl,'
13574          ;;
13575        esac
13576        ;;
13577
13578     mingw* | pw32* | os2*)
13579       # This hack is so that the source file can tell whether it is being
13580       # built for inclusion in a dll (and should export symbols for example).
13581       lt_prog_compiler_pic='-DDLL_EXPORT'
13582       ;;
13583
13584     hpux9* | hpux10* | hpux11*)
13585       lt_prog_compiler_wl='-Wl,'
13586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13587       # not for PA HP-UX.
13588       case $host_cpu in
13589       hppa*64*|ia64*)
13590         # +Z the default
13591         ;;
13592       *)
13593         lt_prog_compiler_pic='+Z'
13594         ;;
13595       esac
13596       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13597       lt_prog_compiler_static='${wl}-a ${wl}archive'
13598       ;;
13599
13600     irix5* | irix6* | nonstopux*)
13601       lt_prog_compiler_wl='-Wl,'
13602       # PIC (with -KPIC) is the default.
13603       lt_prog_compiler_static='-non_shared'
13604       ;;
13605
13606     newsos6)
13607       lt_prog_compiler_pic='-KPIC'
13608       lt_prog_compiler_static='-Bstatic'
13609       ;;
13610
13611     linux*)
13612       case $cc_basename in
13613       icc* | ecc*)
13614         lt_prog_compiler_wl='-Wl,'
13615         lt_prog_compiler_pic='-KPIC'
13616         lt_prog_compiler_static='-static'
13617         ;;
13618       pgcc* | pgf77* | pgf90* | pgf95*)
13619         # Portland Group compilers (*not* the Pentium gcc compiler,
13620         # which looks to be a dead project)
13621         lt_prog_compiler_wl='-Wl,'
13622         lt_prog_compiler_pic='-fpic'
13623         lt_prog_compiler_static='-Bstatic'
13624         ;;
13625       ccc*)
13626         lt_prog_compiler_wl='-Wl,'
13627         # All Alpha code is PIC.
13628         lt_prog_compiler_static='-non_shared'
13629         ;;
13630       esac
13631       ;;
13632
13633     osf3* | osf4* | osf5*)
13634       lt_prog_compiler_wl='-Wl,'
13635       # All OSF/1 code is PIC.
13636       lt_prog_compiler_static='-non_shared'
13637       ;;
13638
13639     solaris*)
13640       lt_prog_compiler_pic='-KPIC'
13641       lt_prog_compiler_static='-Bstatic'
13642       case $cc_basename in
13643       f77* | f90* | f95*)
13644         lt_prog_compiler_wl='-Qoption ld ';;
13645       *)
13646         lt_prog_compiler_wl='-Wl,';;
13647       esac
13648       ;;
13649
13650     sunos4*)
13651       lt_prog_compiler_wl='-Qoption ld '
13652       lt_prog_compiler_pic='-PIC'
13653       lt_prog_compiler_static='-Bstatic'
13654       ;;
13655
13656     sysv4 | sysv4.2uw2* | sysv4.3*)
13657       lt_prog_compiler_wl='-Wl,'
13658       lt_prog_compiler_pic='-KPIC'
13659       lt_prog_compiler_static='-Bstatic'
13660       ;;
13661
13662     sysv4*MP*)
13663       if test -d /usr/nec ;then
13664         lt_prog_compiler_pic='-Kconform_pic'
13665         lt_prog_compiler_static='-Bstatic'
13666       fi
13667       ;;
13668
13669     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13670       lt_prog_compiler_wl='-Wl,'
13671       lt_prog_compiler_pic='-KPIC'
13672       lt_prog_compiler_static='-Bstatic'
13673       ;;
13674
13675     unicos*)
13676       lt_prog_compiler_wl='-Wl,'
13677       lt_prog_compiler_can_build_shared=no
13678       ;;
13679
13680     uts4*)
13681       lt_prog_compiler_pic='-pic'
13682       lt_prog_compiler_static='-Bstatic'
13683       ;;
13684
13685     *)
13686       lt_prog_compiler_can_build_shared=no
13687       ;;
13688     esac
13689   fi
13690
13691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13692 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13693
13694 #
13695 # Check to make sure the PIC flag actually works.
13696 #
13697 if test -n "$lt_prog_compiler_pic"; then
13698
13699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13701 if test "${lt_prog_compiler_pic_works+set}" = set; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 else
13704   lt_prog_compiler_pic_works=no
13705   ac_outfile=conftest.$ac_objext
13706    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13707    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13708    # Insert the option either (1) after the last *FLAGS variable, or
13709    # (2) before a word containing "conftest.", or (3) at the end.
13710    # Note that $ac_compile itself does not contain backslashes and begins
13711    # with a dollar sign (not a hyphen), so the echo should work correctly.
13712    # The option is referenced via a variable to avoid confusing sed.
13713    lt_compile=`echo "$ac_compile" | $SED \
13714    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13716    -e 's:$: $lt_compiler_flag:'`
13717    (eval echo "\"\$as_me:13717: $lt_compile\"" >&5)
13718    (eval "$lt_compile" 2>conftest.err)
13719    ac_status=$?
13720    cat conftest.err >&5
13721    echo "$as_me:13721: \$? = $ac_status" >&5
13722    if (exit $ac_status) && test -s "$ac_outfile"; then
13723      # The compiler can only warn and ignore the option if not recognized
13724      # So say no if there are warnings other than the usual output.
13725      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13726      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13727      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13728        lt_prog_compiler_pic_works=yes
13729      fi
13730    fi
13731    $rm conftest*
13732
13733 fi
13734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13735 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13736
13737 if test x"$lt_prog_compiler_pic_works" = xyes; then
13738     case $lt_prog_compiler_pic in
13739      "" | " "*) ;;
13740      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13741      esac
13742 else
13743     lt_prog_compiler_pic=
13744      lt_prog_compiler_can_build_shared=no
13745 fi
13746
13747 fi
13748 case $host_os in
13749   # For platforms which do not support PIC, -DPIC is meaningless:
13750   *djgpp*)
13751     lt_prog_compiler_pic=
13752     ;;
13753   *)
13754     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13755     ;;
13756 esac
13757
13758 #
13759 # Check to make sure the static flag actually works.
13760 #
13761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13764 if test "${lt_prog_compiler_static_works+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   lt_prog_compiler_static_works=no
13768    save_LDFLAGS="$LDFLAGS"
13769    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13770    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13771    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13772      # The linker can only warn and ignore the option if not recognized
13773      # So say no if there are warnings
13774      if test -s conftest.err; then
13775        # Append any errors to the config.log.
13776        cat conftest.err 1>&5
13777        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13778        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13779        if diff conftest.exp conftest.er2 >/dev/null; then
13780          lt_prog_compiler_static_works=yes
13781        fi
13782      else
13783        lt_prog_compiler_static_works=yes
13784      fi
13785    fi
13786    $rm conftest*
13787    LDFLAGS="$save_LDFLAGS"
13788
13789 fi
13790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13791 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13792
13793 if test x"$lt_prog_compiler_static_works" = xyes; then
13794     :
13795 else
13796     lt_prog_compiler_static=
13797 fi
13798
13799
13800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   lt_cv_prog_compiler_c_o=no
13806    $rm -r conftest 2>/dev/null
13807    mkdir conftest
13808    cd conftest
13809    mkdir out
13810    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812    lt_compiler_flag="-o out/conftest2.$ac_objext"
13813    # Insert the option either (1) after the last *FLAGS variable, or
13814    # (2) before a word containing "conftest.", or (3) at the end.
13815    # Note that $ac_compile itself does not contain backslashes and begins
13816    # with a dollar sign (not a hyphen), so the echo should work correctly.
13817    lt_compile=`echo "$ac_compile" | $SED \
13818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820    -e 's:$: $lt_compiler_flag:'`
13821    (eval echo "\"\$as_me:13821: $lt_compile\"" >&5)
13822    (eval "$lt_compile" 2>out/conftest.err)
13823    ac_status=$?
13824    cat out/conftest.err >&5
13825    echo "$as_me:13825: \$? = $ac_status" >&5
13826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827    then
13828      # The compiler can only warn and ignore the option if not recognized
13829      # So say no if there are warnings
13830      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833        lt_cv_prog_compiler_c_o=yes
13834      fi
13835    fi
13836    chmod u+w . 2>&5
13837    $rm conftest*
13838    # SGI C++ compiler will create directory out/ii_files/ for
13839    # template instantiation
13840    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13841    $rm out/* && rmdir out
13842    cd ..
13843    rmdir conftest
13844    $rm conftest*
13845
13846 fi
13847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13849
13850
13851 hard_links="nottested"
13852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13853   # do not overwrite the value of need_locks provided by the user
13854   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13856   hard_links=yes
13857   $rm conftest*
13858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13859   touch conftest.a
13860   ln conftest.a conftest.b 2>&5 || hard_links=no
13861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13862   { echo "$as_me:$LINENO: result: $hard_links" >&5
13863 echo "${ECHO_T}$hard_links" >&6; }
13864   if test "$hard_links" = no; then
13865     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13867     need_locks=warn
13868   fi
13869 else
13870   need_locks=no
13871 fi
13872
13873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13875
13876   runpath_var=
13877   allow_undefined_flag=
13878   enable_shared_with_static_runtimes=no
13879   archive_cmds=
13880   archive_expsym_cmds=
13881   old_archive_From_new_cmds=
13882   old_archive_from_expsyms_cmds=
13883   export_dynamic_flag_spec=
13884   whole_archive_flag_spec=
13885   thread_safe_flag_spec=
13886   hardcode_libdir_flag_spec=
13887   hardcode_libdir_flag_spec_ld=
13888   hardcode_libdir_separator=
13889   hardcode_direct=no
13890   hardcode_minus_L=no
13891   hardcode_shlibpath_var=unsupported
13892   link_all_deplibs=unknown
13893   hardcode_automatic=no
13894   module_cmds=
13895   module_expsym_cmds=
13896   always_export_symbols=no
13897   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13898   # include_expsyms should be a list of space-separated symbols to be *always*
13899   # included in the symbol list
13900   include_expsyms=
13901   # exclude_expsyms can be an extended regexp of symbols to exclude
13902   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13903   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13904   # as well as any symbol that contains `d'.
13905   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13906   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13907   # platforms (ab)use it in PIC code, but their linkers get confused if
13908   # the symbol is explicitly referenced.  Since portable code cannot
13909   # rely on this symbol name, it's probably fine to never include it in
13910   # preloaded symbol tables.
13911   extract_expsyms_cmds=
13912   # Just being paranoid about ensuring that cc_basename is set.
13913   for cc_temp in $compiler""; do
13914   case $cc_temp in
13915     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13916     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13917     \-*) ;;
13918     *) break;;
13919   esac
13920 done
13921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13922
13923   case $host_os in
13924   cygwin* | mingw* | pw32*)
13925     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13926     # When not using gcc, we currently assume that we are using
13927     # Microsoft Visual C++.
13928     if test "$GCC" != yes; then
13929       with_gnu_ld=no
13930     fi
13931     ;;
13932   interix*)
13933     # we just hope/assume this is gcc and not c89 (= MSVC++)
13934     with_gnu_ld=yes
13935     ;;
13936   openbsd*)
13937     with_gnu_ld=no
13938     ;;
13939   esac
13940
13941   ld_shlibs=yes
13942   if test "$with_gnu_ld" = yes; then
13943     # If archive_cmds runs LD, not CC, wlarc should be empty
13944     wlarc='${wl}'
13945
13946     # Set some defaults for GNU ld with shared library support. These
13947     # are reset later if shared libraries are not supported. Putting them
13948     # here allows them to be overridden if necessary.
13949     runpath_var=LD_RUN_PATH
13950     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13951     export_dynamic_flag_spec='${wl}--export-dynamic'
13952     # ancient GNU ld didn't support --whole-archive et. al.
13953     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13954         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13955       else
13956         whole_archive_flag_spec=
13957     fi
13958     supports_anon_versioning=no
13959     case `$LD -v 2>/dev/null` in
13960       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13961       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13962       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13963       *\ 2.11.*) ;; # other 2.11 versions
13964       *) supports_anon_versioning=yes ;;
13965     esac
13966
13967     # See if GNU ld supports shared libraries.
13968     case $host_os in
13969     aix3* | aix4* | aix5*)
13970       # On AIX/PPC, the GNU linker is very broken
13971       if test "$host_cpu" != ia64; then
13972         ld_shlibs=no
13973         cat <<EOF 1>&2
13974
13975 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13976 *** to be unable to reliably create shared libraries on AIX.
13977 *** Therefore, libtool is disabling shared libraries support.  If you
13978 *** really care for shared libraries, you may want to modify your PATH
13979 *** so that a non-GNU linker is found, and then restart.
13980
13981 EOF
13982       fi
13983       ;;
13984
13985     amigaos*)
13986       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)'
13987       hardcode_libdir_flag_spec='-L$libdir'
13988       hardcode_minus_L=yes
13989
13990       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13991       # that the semantics of dynamic libraries on AmigaOS, at least up
13992       # to version 4, is to share data among multiple programs linked
13993       # with the same dynamic library.  Since this doesn't match the
13994       # behavior of shared libraries on other platforms, we can't use
13995       # them.
13996       ld_shlibs=no
13997       ;;
13998
13999     beos*)
14000       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14001         allow_undefined_flag=unsupported
14002         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14003         # support --undefined.  This deserves some investigation.  FIXME
14004         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14005       else
14006         ld_shlibs=no
14007       fi
14008       ;;
14009
14010     cygwin* | mingw* | pw32*)
14011       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14012       # as there is no search path for DLLs.
14013       hardcode_libdir_flag_spec='-L$libdir'
14014       allow_undefined_flag=unsupported
14015       always_export_symbols=no
14016       enable_shared_with_static_runtimes=yes
14017       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14018
14019       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14020         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14021         # If the export-symbols file already is a .def file (1st line
14022         # is EXPORTS), use it as is; otherwise, prepend...
14023         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14024           cp $export_symbols $output_objdir/$soname.def;
14025         else
14026           echo EXPORTS > $output_objdir/$soname.def;
14027           cat $export_symbols >> $output_objdir/$soname.def;
14028         fi~
14029         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14030       else
14031         ld_shlibs=no
14032       fi
14033       ;;
14034
14035     interix3*)
14036       hardcode_direct=no
14037       hardcode_shlibpath_var=no
14038       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14039       export_dynamic_flag_spec='${wl}-E'
14040       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14041       # Instead, shared libraries are loaded at an image base (0x10000000 by
14042       # default) and relocated if they conflict, which is a slow very memory
14043       # consuming and fragmenting process.  To avoid this, we pick a random,
14044       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14045       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14046       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14047       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'
14048       ;;
14049
14050     linux*)
14051       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14052         tmp_addflag=
14053         case $cc_basename,$host_cpu in
14054         pgcc*)                          # Portland Group C compiler
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'
14057           ;;
14058         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14059           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'
14060           tmp_addflag=' $pic_flag -Mnomain' ;;
14061         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14062           tmp_addflag=' -i_dynamic' ;;
14063         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14064           tmp_addflag=' -i_dynamic -nofor_main' ;;
14065         ifc* | ifort*)                  # Intel Fortran compiler
14066           tmp_addflag=' -nofor_main' ;;
14067         esac
14068         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14069
14070         if test $supports_anon_versioning = yes; then
14071           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14072   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073   $echo "local: *; };" >> $output_objdir/$libname.ver~
14074           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14075         fi
14076       else
14077         ld_shlibs=no
14078       fi
14079       ;;
14080
14081     netbsd*)
14082       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14083         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14084         wlarc=
14085       else
14086         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14088       fi
14089       ;;
14090
14091     solaris*)
14092       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14093         ld_shlibs=no
14094         cat <<EOF 1>&2
14095
14096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14097 *** create shared libraries on Solaris systems.  Therefore, libtool
14098 *** is disabling shared libraries support.  We urge you to upgrade GNU
14099 *** binutils to release 2.9.1 or newer.  Another option is to modify
14100 *** your PATH or compiler configuration so that the native linker is
14101 *** used, and then restart.
14102
14103 EOF
14104       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14107       else
14108         ld_shlibs=no
14109       fi
14110       ;;
14111
14112     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14113       case `$LD -v 2>&1` in
14114         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14115         ld_shlibs=no
14116         cat <<_LT_EOF 1>&2
14117
14118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14119 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14120 *** is disabling shared libraries support.  We urge you to upgrade GNU
14121 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14122 *** your PATH or compiler configuration so that the native linker is
14123 *** used, and then restart.
14124
14125 _LT_EOF
14126         ;;
14127         *)
14128           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14129             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14130             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14131             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14132           else
14133             ld_shlibs=no
14134           fi
14135         ;;
14136       esac
14137       ;;
14138
14139     sunos4*)
14140       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14141       wlarc=
14142       hardcode_direct=yes
14143       hardcode_shlibpath_var=no
14144       ;;
14145
14146     *)
14147       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14148         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14150       else
14151         ld_shlibs=no
14152       fi
14153       ;;
14154     esac
14155
14156     if test "$ld_shlibs" = no; then
14157       runpath_var=
14158       hardcode_libdir_flag_spec=
14159       export_dynamic_flag_spec=
14160       whole_archive_flag_spec=
14161     fi
14162   else
14163     # PORTME fill in a description of your system's linker (not GNU ld)
14164     case $host_os in
14165     aix3*)
14166       allow_undefined_flag=unsupported
14167       always_export_symbols=yes
14168       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'
14169       # Note: this linker hardcodes the directories in LIBPATH if there
14170       # are no directories specified by -L.
14171       hardcode_minus_L=yes
14172       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14173         # Neither direct hardcoding nor static linking is supported with a
14174         # broken collect2.
14175         hardcode_direct=unsupported
14176       fi
14177       ;;
14178
14179     aix4* | aix5*)
14180       if test "$host_cpu" = ia64; then
14181         # On IA64, the linker does run time linking by default, so we don't
14182         # have to do anything special.
14183         aix_use_runtimelinking=no
14184         exp_sym_flag='-Bexport'
14185         no_entry_flag=""
14186       else
14187         # If we're using GNU nm, then we don't want the "-C" option.
14188         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14189         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14190           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'
14191         else
14192           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'
14193         fi
14194         aix_use_runtimelinking=no
14195
14196         # Test if we are trying to use run time linking or normal
14197         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14198         # need to do runtime linking.
14199         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14200           for ld_flag in $LDFLAGS; do
14201           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14202             aix_use_runtimelinking=yes
14203             break
14204           fi
14205           done
14206           ;;
14207         esac
14208
14209         exp_sym_flag='-bexport'
14210         no_entry_flag='-bnoentry'
14211       fi
14212
14213       # When large executables or shared objects are built, AIX ld can
14214       # have problems creating the table of contents.  If linking a library
14215       # or program results in "error TOC overflow" add -mminimal-toc to
14216       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14217       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14218
14219       archive_cmds=''
14220       hardcode_direct=yes
14221       hardcode_libdir_separator=':'
14222       link_all_deplibs=yes
14223
14224       if test "$GCC" = yes; then
14225         case $host_os in aix4.[012]|aix4.[012].*)
14226         # We only want to do this on AIX 4.2 and lower, the check
14227         # below for broken collect2 doesn't work under 4.3+
14228           collect2name=`${CC} -print-prog-name=collect2`
14229           if test -f "$collect2name" && \
14230            strings "$collect2name" | grep resolve_lib_name >/dev/null
14231           then
14232           # We have reworked collect2
14233           hardcode_direct=yes
14234           else
14235           # We have old collect2
14236           hardcode_direct=unsupported
14237           # It fails to find uninstalled libraries when the uninstalled
14238           # path is not listed in the libpath.  Setting hardcode_minus_L
14239           # to unsupported forces relinking
14240           hardcode_minus_L=yes
14241           hardcode_libdir_flag_spec='-L$libdir'
14242           hardcode_libdir_separator=
14243           fi
14244           ;;
14245         esac
14246         shared_flag='-shared'
14247         if test "$aix_use_runtimelinking" = yes; then
14248           shared_flag="$shared_flag "'${wl}-G'
14249         fi
14250       else
14251         # not using gcc
14252         if test "$host_cpu" = ia64; then
14253         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14254         # chokes on -Wl,-G. The following line is correct:
14255           shared_flag='-G'
14256         else
14257           if test "$aix_use_runtimelinking" = yes; then
14258             shared_flag='${wl}-G'
14259           else
14260             shared_flag='${wl}-bM:SRE'
14261           fi
14262         fi
14263       fi
14264
14265       # It seems that -bexpall does not export symbols beginning with
14266       # underscore (_), so it is better to generate a list of symbols to export.
14267       always_export_symbols=yes
14268       if test "$aix_use_runtimelinking" = yes; then
14269         # Warning - without using the other runtime loading flags (-brtl),
14270         # -berok will link without error, but may produce a broken library.
14271         allow_undefined_flag='-berok'
14272        # Determine the default libpath from the value encoded in an empty executable.
14273        cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h.  */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h.  */
14279
14280 int
14281 main ()
14282 {
14283
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (ac_try="$ac_link"
14290 case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_link") 2>conftest.er1
14296   ac_status=$?
14297   grep -v '^ *+' conftest.er1 >conftest.err
14298   rm -f conftest.er1
14299   cat conftest.err >&5
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } && {
14302          test -z "$ac_c_werror_flag" ||
14303          test ! -s conftest.err
14304        } && test -s conftest$ac_exeext &&
14305        $as_test_x conftest$ac_exeext; then
14306
14307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14308 }'`
14309 # Check for a 64-bit object if we didn't find anything.
14310 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; }
14311 }'`; fi
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316
14317 fi
14318
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320       conftest$ac_exeext conftest.$ac_ext
14321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14322
14323        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14324         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"
14325        else
14326         if test "$host_cpu" = ia64; then
14327           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14328           allow_undefined_flag="-z nodefs"
14329           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"
14330         else
14331          # Determine the default libpath from the value encoded in an empty executable.
14332          cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338
14339 int
14340 main ()
14341 {
14342
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (ac_try="$ac_link"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_link") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } && {
14361          test -z "$ac_c_werror_flag" ||
14362          test ! -s conftest.err
14363        } && test -s conftest$ac_exeext &&
14364        $as_test_x conftest$ac_exeext; then
14365
14366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14367 }'`
14368 # Check for a 64-bit object if we didn't find anything.
14369 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; }
14370 }'`; fi
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375
14376 fi
14377
14378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14379       conftest$ac_exeext conftest.$ac_ext
14380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14381
14382          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14383           # Warning - without using the other run time loading flags,
14384           # -berok will link without error, but may produce a broken library.
14385           no_undefined_flag=' ${wl}-bernotok'
14386           allow_undefined_flag=' ${wl}-berok'
14387           # Exported symbols can be pulled into shared objects from archives
14388           whole_archive_flag_spec='$convenience'
14389           archive_cmds_need_lc=yes
14390           # This is similar to how AIX traditionally builds its shared libraries.
14391           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'
14392         fi
14393       fi
14394       ;;
14395
14396     amigaos*)
14397       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)'
14398       hardcode_libdir_flag_spec='-L$libdir'
14399       hardcode_minus_L=yes
14400       # see comment about different semantics on the GNU ld section
14401       ld_shlibs=no
14402       ;;
14403
14404     bsdi[45]*)
14405       export_dynamic_flag_spec=-rdynamic
14406       ;;
14407
14408     cygwin* | mingw* | pw32*)
14409       # When not using gcc, we currently assume that we are using
14410       # Microsoft Visual C++.
14411       # hardcode_libdir_flag_spec is actually meaningless, as there is
14412       # no search path for DLLs.
14413       hardcode_libdir_flag_spec=' '
14414       allow_undefined_flag=unsupported
14415       # Tell ltmain to make .lib files, not .a files.
14416       libext=lib
14417       # Tell ltmain to make .dll files, not .so files.
14418       shrext_cmds=".dll"
14419       # FIXME: Setting linknames here is a bad hack.
14420       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14421       # The linker will automatically build a .lib file if we build a DLL.
14422       old_archive_From_new_cmds='true'
14423       # FIXME: Should let the user specify the lib program.
14424       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14425       fix_srcfile_path='`cygpath -w "$srcfile"`'
14426       enable_shared_with_static_runtimes=yes
14427       ;;
14428
14429     darwin* | rhapsody*)
14430       case $host_os in
14431         rhapsody* | darwin1.[012])
14432          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14433          ;;
14434        *) # Darwin 1.3 on
14435          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14436            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14437          else
14438            case ${MACOSX_DEPLOYMENT_TARGET} in
14439              10.[012])
14440                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14441                ;;
14442              10.*)
14443                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14444                ;;
14445            esac
14446          fi
14447          ;;
14448       esac
14449       archive_cmds_need_lc=no
14450       hardcode_direct=no
14451       hardcode_automatic=yes
14452       hardcode_shlibpath_var=unsupported
14453       whole_archive_flag_spec=''
14454       link_all_deplibs=yes
14455     if test "$GCC" = yes ; then
14456         output_verbose_link_cmd='echo'
14457         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14458       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14459       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14460       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}'
14461       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}'
14462     else
14463       case $cc_basename in
14464         xlc*)
14465          output_verbose_link_cmd='echo'
14466          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14467          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14468           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14469          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}'
14470           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}'
14471           ;;
14472        *)
14473          ld_shlibs=no
14474           ;;
14475       esac
14476     fi
14477       ;;
14478
14479     dgux*)
14480       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481       hardcode_libdir_flag_spec='-L$libdir'
14482       hardcode_shlibpath_var=no
14483       ;;
14484
14485     freebsd1*)
14486       ld_shlibs=no
14487       ;;
14488
14489     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14490     # support.  Future versions do this automatically, but an explicit c++rt0.o
14491     # does not break anything, and helps significantly (at the cost of a little
14492     # extra space).
14493     freebsd2.2*)
14494       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14495       hardcode_libdir_flag_spec='-R$libdir'
14496       hardcode_direct=yes
14497       hardcode_shlibpath_var=no
14498       ;;
14499
14500     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14501     freebsd2*)
14502       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14503       hardcode_direct=yes
14504       hardcode_minus_L=yes
14505       hardcode_shlibpath_var=no
14506       ;;
14507
14508     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14509     freebsd* | kfreebsd*-gnu | dragonfly*)
14510       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14511       hardcode_libdir_flag_spec='-R$libdir'
14512       hardcode_direct=yes
14513       hardcode_shlibpath_var=no
14514       ;;
14515
14516     hpux9*)
14517       if test "$GCC" = yes; then
14518         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'
14519       else
14520         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'
14521       fi
14522       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14523       hardcode_libdir_separator=:
14524       hardcode_direct=yes
14525
14526       # hardcode_minus_L: Not really in the search PATH,
14527       # but as the default location of the library.
14528       hardcode_minus_L=yes
14529       export_dynamic_flag_spec='${wl}-E'
14530       ;;
14531
14532     hpux10*)
14533       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14534         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14535       else
14536         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14537       fi
14538       if test "$with_gnu_ld" = no; then
14539         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14540         hardcode_libdir_separator=:
14541
14542         hardcode_direct=yes
14543         export_dynamic_flag_spec='${wl}-E'
14544
14545         # hardcode_minus_L: Not really in the search PATH,
14546         # but as the default location of the library.
14547         hardcode_minus_L=yes
14548       fi
14549       ;;
14550
14551     hpux11*)
14552       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14553         case $host_cpu in
14554         hppa*64*)
14555           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14556           ;;
14557         ia64*)
14558           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14559           ;;
14560         *)
14561           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14562           ;;
14563         esac
14564       else
14565         case $host_cpu in
14566         hppa*64*)
14567           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568           ;;
14569         ia64*)
14570           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14571           ;;
14572         *)
14573           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14574           ;;
14575         esac
14576       fi
14577       if test "$with_gnu_ld" = no; then
14578         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14579         hardcode_libdir_separator=:
14580
14581         case $host_cpu in
14582         hppa*64*|ia64*)
14583           hardcode_libdir_flag_spec_ld='+b $libdir'
14584           hardcode_direct=no
14585           hardcode_shlibpath_var=no
14586           ;;
14587         *)
14588           hardcode_direct=yes
14589           export_dynamic_flag_spec='${wl}-E'
14590
14591           # hardcode_minus_L: Not really in the search PATH,
14592           # but as the default location of the library.
14593           hardcode_minus_L=yes
14594           ;;
14595         esac
14596       fi
14597       ;;
14598
14599     irix5* | irix6* | nonstopux*)
14600       if test "$GCC" = yes; then
14601         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'
14602       else
14603         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'
14604         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14605       fi
14606       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14607       hardcode_libdir_separator=:
14608       link_all_deplibs=yes
14609       ;;
14610
14611     netbsd*)
14612       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14613         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14614       else
14615         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14616       fi
14617       hardcode_libdir_flag_spec='-R$libdir'
14618       hardcode_direct=yes
14619       hardcode_shlibpath_var=no
14620       ;;
14621
14622     newsos6)
14623       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14624       hardcode_direct=yes
14625       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14626       hardcode_libdir_separator=:
14627       hardcode_shlibpath_var=no
14628       ;;
14629
14630     openbsd*)
14631       hardcode_direct=yes
14632       hardcode_shlibpath_var=no
14633       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14634         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14635         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14636         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14637         export_dynamic_flag_spec='${wl}-E'
14638       else
14639        case $host_os in
14640          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14641            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14642            hardcode_libdir_flag_spec='-R$libdir'
14643            ;;
14644          *)
14645            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14646            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14647            ;;
14648        esac
14649       fi
14650       ;;
14651
14652     os2*)
14653       hardcode_libdir_flag_spec='-L$libdir'
14654       hardcode_minus_L=yes
14655       allow_undefined_flag=unsupported
14656       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'
14657       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14658       ;;
14659
14660     osf3*)
14661       if test "$GCC" = yes; then
14662         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14663         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'
14664       else
14665         allow_undefined_flag=' -expect_unresolved \*'
14666         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'
14667       fi
14668       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14669       hardcode_libdir_separator=:
14670       ;;
14671
14672     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14673       if test "$GCC" = yes; then
14674         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14675         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'
14676         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14677       else
14678         allow_undefined_flag=' -expect_unresolved \*'
14679         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'
14680         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14681         $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'
14682
14683         # Both c and cxx compiler support -rpath directly
14684         hardcode_libdir_flag_spec='-rpath $libdir'
14685       fi
14686       hardcode_libdir_separator=:
14687       ;;
14688
14689     solaris*)
14690       no_undefined_flag=' -z text'
14691       if test "$GCC" = yes; then
14692         wlarc='${wl}'
14693         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14695           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14696       else
14697         wlarc=''
14698         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14700         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14701       fi
14702       hardcode_libdir_flag_spec='-R$libdir'
14703       hardcode_shlibpath_var=no
14704       case $host_os in
14705       solaris2.[0-5] | solaris2.[0-5].*) ;;
14706       *)
14707         # The compiler driver will combine linker options so we
14708         # cannot just pass the convience library names through
14709         # without $wl, iff we do not link with $LD.
14710         # Luckily, gcc supports the same syntax we need for Sun Studio.
14711         # Supported since Solaris 2.6 (maybe 2.5.1?)
14712         case $wlarc in
14713         '')
14714           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14715         *)
14716           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' ;;
14717         esac ;;
14718       esac
14719       link_all_deplibs=yes
14720       ;;
14721
14722     sunos4*)
14723       if test "x$host_vendor" = xsequent; then
14724         # Use $CC to link under sequent, because it throws in some extra .o
14725         # files that make .init and .fini sections work.
14726         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14727       else
14728         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14729       fi
14730       hardcode_libdir_flag_spec='-L$libdir'
14731       hardcode_direct=yes
14732       hardcode_minus_L=yes
14733       hardcode_shlibpath_var=no
14734       ;;
14735
14736     sysv4)
14737       case $host_vendor in
14738         sni)
14739           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740           hardcode_direct=yes # is this really true???
14741         ;;
14742         siemens)
14743           ## LD is ld it makes a PLAMLIB
14744           ## CC just makes a GrossModule.
14745           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14746           reload_cmds='$CC -r -o $output$reload_objs'
14747           hardcode_direct=no
14748         ;;
14749         motorola)
14750           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14751           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14752         ;;
14753       esac
14754       runpath_var='LD_RUN_PATH'
14755       hardcode_shlibpath_var=no
14756       ;;
14757
14758     sysv4.3*)
14759       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760       hardcode_shlibpath_var=no
14761       export_dynamic_flag_spec='-Bexport'
14762       ;;
14763
14764     sysv4*MP*)
14765       if test -d /usr/nec; then
14766         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767         hardcode_shlibpath_var=no
14768         runpath_var=LD_RUN_PATH
14769         hardcode_runpath_var=yes
14770         ld_shlibs=yes
14771       fi
14772       ;;
14773
14774     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14775       no_undefined_flag='${wl}-z,text'
14776       archive_cmds_need_lc=no
14777       hardcode_shlibpath_var=no
14778       runpath_var='LD_RUN_PATH'
14779
14780       if test "$GCC" = yes; then
14781         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14783       else
14784         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14786       fi
14787       ;;
14788
14789     sysv5* | sco3.2v5* | sco5v6*)
14790       # Note: We can NOT use -z defs as we might desire, because we do not
14791       # link with -lc, and that would cause any symbols used from libc to
14792       # always be unresolved, which means just about no library would
14793       # ever link correctly.  If we're not using GNU ld we use -z text
14794       # though, which does catch some bad symbols but isn't as heavy-handed
14795       # as -z defs.
14796       no_undefined_flag='${wl}-z,text'
14797       allow_undefined_flag='${wl}-z,nodefs'
14798       archive_cmds_need_lc=no
14799       hardcode_shlibpath_var=no
14800       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14801       hardcode_libdir_separator=':'
14802       link_all_deplibs=yes
14803       export_dynamic_flag_spec='${wl}-Bexport'
14804       runpath_var='LD_RUN_PATH'
14805
14806       if test "$GCC" = yes; then
14807         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14808         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809       else
14810         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812       fi
14813       ;;
14814
14815     uts4*)
14816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14817       hardcode_libdir_flag_spec='-L$libdir'
14818       hardcode_shlibpath_var=no
14819       ;;
14820
14821     *)
14822       ld_shlibs=no
14823       ;;
14824     esac
14825   fi
14826
14827 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14828 echo "${ECHO_T}$ld_shlibs" >&6; }
14829 test "$ld_shlibs" = no && can_build_shared=no
14830
14831 #
14832 # Do we need to explicitly link libc?
14833 #
14834 case "x$archive_cmds_need_lc" in
14835 x|xyes)
14836   # Assume -lc should be added
14837   archive_cmds_need_lc=yes
14838
14839   if test "$enable_shared" = yes && test "$GCC" = yes; then
14840     case $archive_cmds in
14841     *'~'*)
14842       # FIXME: we may have to deal with multi-command sequences.
14843       ;;
14844     '$CC '*)
14845       # Test whether the compiler implicitly links with -lc since on some
14846       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14847       # to ld, don't add -lc before -lgcc.
14848       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14849 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14850       $rm conftest*
14851       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14852
14853       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854   (eval $ac_compile) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } 2>conftest.err; then
14858         soname=conftest
14859         lib=conftest
14860         libobjs=conftest.$ac_objext
14861         deplibs=
14862         wl=$lt_prog_compiler_wl
14863         pic_flag=$lt_prog_compiler_pic
14864         compiler_flags=-v
14865         linker_flags=-v
14866         verstring=
14867         output_objdir=.
14868         libname=conftest
14869         lt_save_allow_undefined_flag=$allow_undefined_flag
14870         allow_undefined_flag=
14871         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14872   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }
14876         then
14877           archive_cmds_need_lc=no
14878         else
14879           archive_cmds_need_lc=yes
14880         fi
14881         allow_undefined_flag=$lt_save_allow_undefined_flag
14882       else
14883         cat conftest.err 1>&5
14884       fi
14885       $rm conftest*
14886       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14887 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14888       ;;
14889     esac
14890   fi
14891   ;;
14892 esac
14893
14894 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14895 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14896 library_names_spec=
14897 libname_spec='lib$name'
14898 soname_spec=
14899 shrext_cmds=".so"
14900 postinstall_cmds=
14901 postuninstall_cmds=
14902 finish_cmds=
14903 finish_eval=
14904 shlibpath_var=
14905 shlibpath_overrides_runpath=unknown
14906 version_type=none
14907 dynamic_linker="$host_os ld.so"
14908 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14909 if test "$GCC" = yes; then
14910   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14911   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14912     # if the path contains ";" then we assume it to be the separator
14913     # otherwise default to the standard path separator (i.e. ":") - it is
14914     # assumed that no part of a normal pathname contains ";" but that should
14915     # okay in the real world where ";" in dirpaths is itself problematic.
14916     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14917   else
14918     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14919   fi
14920 else
14921   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14922 fi
14923 need_lib_prefix=unknown
14924 hardcode_into_libs=no
14925
14926 # when you set need_version to no, make sure it does not cause -set_version
14927 # flags to be left without arguments
14928 need_version=unknown
14929
14930 case $host_os in
14931 aix3*)
14932   version_type=linux
14933   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14934   shlibpath_var=LIBPATH
14935
14936   # AIX 3 has no versioning support, so we append a major version to the name.
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   ;;
14939
14940 aix4* | aix5*)
14941   version_type=linux
14942   need_lib_prefix=no
14943   need_version=no
14944   hardcode_into_libs=yes
14945   if test "$host_cpu" = ia64; then
14946     # AIX 5 supports IA64
14947     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14948     shlibpath_var=LD_LIBRARY_PATH
14949   else
14950     # With GCC up to 2.95.x, collect2 would create an import file
14951     # for dependence libraries.  The import file would start with
14952     # the line `#! .'.  This would cause the generated library to
14953     # depend on `.', always an invalid library.  This was fixed in
14954     # development snapshots of GCC prior to 3.0.
14955     case $host_os in
14956       aix4 | aix4.[01] | aix4.[01].*)
14957       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14958            echo ' yes '
14959            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14960         :
14961       else
14962         can_build_shared=no
14963       fi
14964       ;;
14965     esac
14966     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14967     # soname into executable. Probably we can add versioning support to
14968     # collect2, so additional links can be useful in future.
14969     if test "$aix_use_runtimelinking" = yes; then
14970       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14971       # instead of lib<name>.a to let people know that these are not
14972       # typical AIX shared libraries.
14973       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974     else
14975       # We preserve .a as extension for shared libraries through AIX4.2
14976       # and later when we are not doing run time linking.
14977       library_names_spec='${libname}${release}.a $libname.a'
14978       soname_spec='${libname}${release}${shared_ext}$major'
14979     fi
14980     shlibpath_var=LIBPATH
14981   fi
14982   ;;
14983
14984 amigaos*)
14985   library_names_spec='$libname.ixlibrary $libname.a'
14986   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14987   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'
14988   ;;
14989
14990 beos*)
14991   library_names_spec='${libname}${shared_ext}'
14992   dynamic_linker="$host_os ld.so"
14993   shlibpath_var=LIBRARY_PATH
14994   ;;
14995
14996 bsdi[45]*)
14997   version_type=linux
14998   need_version=no
14999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000   soname_spec='${libname}${release}${shared_ext}$major'
15001   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15002   shlibpath_var=LD_LIBRARY_PATH
15003   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15004   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15005   # the default ld.so.conf also contains /usr/contrib/lib and
15006   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15007   # libtool to hard-code these into programs
15008   ;;
15009
15010 cygwin* | mingw* | pw32*)
15011   version_type=windows
15012   shrext_cmds=".dll"
15013   need_version=no
15014   need_lib_prefix=no
15015
15016   case $GCC,$host_os in
15017   yes,cygwin* | yes,mingw* | yes,pw32*)
15018     library_names_spec='$libname.dll.a'
15019     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15020     postinstall_cmds='base_file=`basename \${file}`~
15021       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15022       dldir=$destdir/`dirname \$dlpath`~
15023       test -d \$dldir || mkdir -p \$dldir~
15024       $install_prog $dir/$dlname \$dldir/$dlname~
15025       chmod a+x \$dldir/$dlname'
15026     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15027       dlpath=$dir/\$dldll~
15028        $rm \$dlpath'
15029     shlibpath_overrides_runpath=yes
15030
15031     case $host_os in
15032     cygwin*)
15033       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15034       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15035       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15036       ;;
15037     mingw*)
15038       # MinGW DLLs use traditional 'lib' prefix
15039       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15040       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15041       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15042         # It is most probably a Windows format PATH printed by
15043         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15044         # path with ; separators, and with drive letters. We can handle the
15045         # drive letters (cygwin fileutils understands them), so leave them,
15046         # especially as we might pass files found there to a mingw objdump,
15047         # which wouldn't understand a cygwinified path. Ahh.
15048         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15049       else
15050         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15051       fi
15052       ;;
15053     pw32*)
15054       # pw32 DLLs use 'pw' prefix rather than 'lib'
15055       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15056       ;;
15057     esac
15058     ;;
15059
15060   *)
15061     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15062     ;;
15063   esac
15064   dynamic_linker='Win32 ld.exe'
15065   # FIXME: first we should search . and the directory the executable is in
15066   shlibpath_var=PATH
15067   ;;
15068
15069 darwin* | rhapsody*)
15070   dynamic_linker="$host_os dyld"
15071   version_type=darwin
15072   need_lib_prefix=no
15073   need_version=no
15074   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15075   soname_spec='${libname}${release}${major}$shared_ext'
15076   shlibpath_overrides_runpath=yes
15077   shlibpath_var=DYLD_LIBRARY_PATH
15078   shrext_cmds='.dylib'
15079   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15080   if test "$GCC" = yes; then
15081     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"`
15082   else
15083     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15084   fi
15085   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15086   ;;
15087
15088 dgux*)
15089   version_type=linux
15090   need_lib_prefix=no
15091   need_version=no
15092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15093   soname_spec='${libname}${release}${shared_ext}$major'
15094   shlibpath_var=LD_LIBRARY_PATH
15095   ;;
15096
15097 freebsd1*)
15098   dynamic_linker=no
15099   ;;
15100
15101 kfreebsd*-gnu)
15102   version_type=linux
15103   need_lib_prefix=no
15104   need_version=no
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106   soname_spec='${libname}${release}${shared_ext}$major'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   shlibpath_overrides_runpath=no
15109   hardcode_into_libs=yes
15110   dynamic_linker='GNU ld.so'
15111   ;;
15112
15113 freebsd* | dragonfly*)
15114   # DragonFly does not have aout.  When/if they implement a new
15115   # versioning mechanism, adjust this.
15116   if test -x /usr/bin/objformat; then
15117     objformat=`/usr/bin/objformat`
15118   else
15119     case $host_os in
15120     freebsd[123]*) objformat=aout ;;
15121     *) objformat=elf ;;
15122     esac
15123   fi
15124   version_type=freebsd-$objformat
15125   case $version_type in
15126     freebsd-elf*)
15127       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15128       need_version=no
15129       need_lib_prefix=no
15130       ;;
15131     freebsd-*)
15132       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15133       need_version=yes
15134       ;;
15135   esac
15136   shlibpath_var=LD_LIBRARY_PATH
15137   case $host_os in
15138   freebsd2*)
15139     shlibpath_overrides_runpath=yes
15140     ;;
15141   freebsd3.[01]* | freebsdelf3.[01]*)
15142     shlibpath_overrides_runpath=yes
15143     hardcode_into_libs=yes
15144     ;;
15145   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15146   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15147     shlibpath_overrides_runpath=no
15148     hardcode_into_libs=yes
15149     ;;
15150   freebsd*) # from 4.6 on
15151     shlibpath_overrides_runpath=yes
15152     hardcode_into_libs=yes
15153     ;;
15154   esac
15155   ;;
15156
15157 gnu*)
15158   version_type=linux
15159   need_lib_prefix=no
15160   need_version=no
15161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15162   soname_spec='${libname}${release}${shared_ext}$major'
15163   shlibpath_var=LD_LIBRARY_PATH
15164   hardcode_into_libs=yes
15165   ;;
15166
15167 hpux9* | hpux10* | hpux11*)
15168   # Give a soname corresponding to the major version so that dld.sl refuses to
15169   # link against other versions.
15170   version_type=sunos
15171   need_lib_prefix=no
15172   need_version=no
15173   case $host_cpu in
15174   ia64*)
15175     shrext_cmds='.so'
15176     hardcode_into_libs=yes
15177     dynamic_linker="$host_os dld.so"
15178     shlibpath_var=LD_LIBRARY_PATH
15179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181     soname_spec='${libname}${release}${shared_ext}$major'
15182     if test "X$HPUX_IA64_MODE" = X32; then
15183       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15184     else
15185       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15186     fi
15187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15188     ;;
15189    hppa*64*)
15190      shrext_cmds='.sl'
15191      hardcode_into_libs=yes
15192      dynamic_linker="$host_os dld.sl"
15193      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15194      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15195      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196      soname_spec='${libname}${release}${shared_ext}$major'
15197      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15198      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15199      ;;
15200    *)
15201     shrext_cmds='.sl'
15202     dynamic_linker="$host_os dld.sl"
15203     shlibpath_var=SHLIB_PATH
15204     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206     soname_spec='${libname}${release}${shared_ext}$major'
15207     ;;
15208   esac
15209   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15210   postinstall_cmds='chmod 555 $lib'
15211   ;;
15212
15213 interix3*)
15214   version_type=linux
15215   need_lib_prefix=no
15216   need_version=no
15217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15218   soname_spec='${libname}${release}${shared_ext}$major'
15219   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15220   shlibpath_var=LD_LIBRARY_PATH
15221   shlibpath_overrides_runpath=no
15222   hardcode_into_libs=yes
15223   ;;
15224
15225 irix5* | irix6* | nonstopux*)
15226   case $host_os in
15227     nonstopux*) version_type=nonstopux ;;
15228     *)
15229         if test "$lt_cv_prog_gnu_ld" = yes; then
15230                 version_type=linux
15231         else
15232                 version_type=irix
15233         fi ;;
15234   esac
15235   need_lib_prefix=no
15236   need_version=no
15237   soname_spec='${libname}${release}${shared_ext}$major'
15238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15239   case $host_os in
15240   irix5* | nonstopux*)
15241     libsuff= shlibsuff=
15242     ;;
15243   *)
15244     case $LD in # libtool.m4 will add one of these switches to LD
15245     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15246       libsuff= shlibsuff= libmagic=32-bit;;
15247     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15248       libsuff=32 shlibsuff=N32 libmagic=N32;;
15249     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15250       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15251     *) libsuff= shlibsuff= libmagic=never-match;;
15252     esac
15253     ;;
15254   esac
15255   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15256   shlibpath_overrides_runpath=no
15257   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15258   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15259   hardcode_into_libs=yes
15260   ;;
15261
15262 # No shared lib support for Linux oldld, aout, or coff.
15263 linux*oldld* | linux*aout* | linux*coff*)
15264   dynamic_linker=no
15265   ;;
15266
15267 # This must be Linux ELF.
15268 linux*)
15269   version_type=linux
15270   need_lib_prefix=no
15271   need_version=no
15272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273   soname_spec='${libname}${release}${shared_ext}$major'
15274   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15275   shlibpath_var=LD_LIBRARY_PATH
15276   shlibpath_overrides_runpath=no
15277   # This implies no fast_install, which is unacceptable.
15278   # Some rework will be needed to allow for fast_install
15279   # before this can be enabled.
15280   hardcode_into_libs=yes
15281
15282   # Append ld.so.conf contents to the search path
15283   if test -f /etc/ld.so.conf; then
15284     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' ' '`
15285     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15286   fi
15287
15288   # We used to test for /lib/ld.so.1 and disable shared libraries on
15289   # powerpc, because MkLinux only supported shared libraries with the
15290   # GNU dynamic linker.  Since this was broken with cross compilers,
15291   # most powerpc-linux boxes support dynamic linking these days and
15292   # people can always --disable-shared, the test was removed, and we
15293   # assume the GNU/Linux dynamic linker is in use.
15294   dynamic_linker='GNU/Linux ld.so'
15295   ;;
15296
15297 knetbsd*-gnu)
15298   version_type=linux
15299   need_lib_prefix=no
15300   need_version=no
15301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302   soname_spec='${libname}${release}${shared_ext}$major'
15303   shlibpath_var=LD_LIBRARY_PATH
15304   shlibpath_overrides_runpath=no
15305   hardcode_into_libs=yes
15306   dynamic_linker='GNU ld.so'
15307   ;;
15308
15309 netbsd*)
15310   version_type=sunos
15311   need_lib_prefix=no
15312   need_version=no
15313   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15315     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15316     dynamic_linker='NetBSD (a.out) ld.so'
15317   else
15318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15319     soname_spec='${libname}${release}${shared_ext}$major'
15320     dynamic_linker='NetBSD ld.elf_so'
15321   fi
15322   shlibpath_var=LD_LIBRARY_PATH
15323   shlibpath_overrides_runpath=yes
15324   hardcode_into_libs=yes
15325   ;;
15326
15327 newsos6)
15328   version_type=linux
15329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330   shlibpath_var=LD_LIBRARY_PATH
15331   shlibpath_overrides_runpath=yes
15332   ;;
15333
15334 nto-qnx*)
15335   version_type=linux
15336   need_lib_prefix=no
15337   need_version=no
15338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339   soname_spec='${libname}${release}${shared_ext}$major'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   shlibpath_overrides_runpath=yes
15342   ;;
15343
15344 openbsd*)
15345   version_type=sunos
15346   sys_lib_dlsearch_path_spec="/usr/lib"
15347   need_lib_prefix=no
15348   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15349   case $host_os in
15350     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15351     *)                         need_version=no  ;;
15352   esac
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15357     case $host_os in
15358       openbsd2.[89] | openbsd2.[89].*)
15359         shlibpath_overrides_runpath=no
15360         ;;
15361       *)
15362         shlibpath_overrides_runpath=yes
15363         ;;
15364       esac
15365   else
15366     shlibpath_overrides_runpath=yes
15367   fi
15368   ;;
15369
15370 os2*)
15371   libname_spec='$name'
15372   shrext_cmds=".dll"
15373   need_lib_prefix=no
15374   library_names_spec='$libname${shared_ext} $libname.a'
15375   dynamic_linker='OS/2 ld.exe'
15376   shlibpath_var=LIBPATH
15377   ;;
15378
15379 osf3* | osf4* | osf5*)
15380   version_type=osf
15381   need_lib_prefix=no
15382   need_version=no
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385   shlibpath_var=LD_LIBRARY_PATH
15386   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15387   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15388   ;;
15389
15390 solaris*)
15391   version_type=linux
15392   need_lib_prefix=no
15393   need_version=no
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   shlibpath_var=LD_LIBRARY_PATH
15397   shlibpath_overrides_runpath=yes
15398   hardcode_into_libs=yes
15399   # ldd complains unless libraries are executable
15400   postinstall_cmds='chmod +x $lib'
15401   ;;
15402
15403 sunos4*)
15404   version_type=sunos
15405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15406   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15407   shlibpath_var=LD_LIBRARY_PATH
15408   shlibpath_overrides_runpath=yes
15409   if test "$with_gnu_ld" = yes; then
15410     need_lib_prefix=no
15411   fi
15412   need_version=yes
15413   ;;
15414
15415 sysv4 | sysv4.3*)
15416   version_type=linux
15417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418   soname_spec='${libname}${release}${shared_ext}$major'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   case $host_vendor in
15421     sni)
15422       shlibpath_overrides_runpath=no
15423       need_lib_prefix=no
15424       export_dynamic_flag_spec='${wl}-Blargedynsym'
15425       runpath_var=LD_RUN_PATH
15426       ;;
15427     siemens)
15428       need_lib_prefix=no
15429       ;;
15430     motorola)
15431       need_lib_prefix=no
15432       need_version=no
15433       shlibpath_overrides_runpath=no
15434       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15435       ;;
15436   esac
15437   ;;
15438
15439 sysv4*MP*)
15440   if test -d /usr/nec ;then
15441     version_type=linux
15442     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15443     soname_spec='$libname${shared_ext}.$major'
15444     shlibpath_var=LD_LIBRARY_PATH
15445   fi
15446   ;;
15447
15448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15449   version_type=freebsd-elf
15450   need_lib_prefix=no
15451   need_version=no
15452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15453   soname_spec='${libname}${release}${shared_ext}$major'
15454   shlibpath_var=LD_LIBRARY_PATH
15455   hardcode_into_libs=yes
15456   if test "$with_gnu_ld" = yes; then
15457     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15458     shlibpath_overrides_runpath=no
15459   else
15460     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15461     shlibpath_overrides_runpath=yes
15462     case $host_os in
15463       sco3.2v5*)
15464         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15465         ;;
15466     esac
15467   fi
15468   sys_lib_dlsearch_path_spec='/usr/lib'
15469   ;;
15470
15471 uts4*)
15472   version_type=linux
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474   soname_spec='${libname}${release}${shared_ext}$major'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   ;;
15477
15478 *)
15479   dynamic_linker=no
15480   ;;
15481 esac
15482 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15483 echo "${ECHO_T}$dynamic_linker" >&6; }
15484 test "$dynamic_linker" = no && can_build_shared=no
15485
15486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15487 if test "$GCC" = yes; then
15488   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15489 fi
15490
15491 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15492 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15493 hardcode_action=
15494 if test -n "$hardcode_libdir_flag_spec" || \
15495    test -n "$runpath_var" || \
15496    test "X$hardcode_automatic" = "Xyes" ; then
15497
15498   # We can hardcode non-existant directories.
15499   if test "$hardcode_direct" != no &&
15500      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15501      # have to relink, otherwise we might link with an installed library
15502      # when we should be linking with a yet-to-be-installed one
15503      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15504      test "$hardcode_minus_L" != no; then
15505     # Linking always hardcodes the temporary library directory.
15506     hardcode_action=relink
15507   else
15508     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15509     hardcode_action=immediate
15510   fi
15511 else
15512   # We cannot hardcode anything, or else we can only hardcode existing
15513   # directories.
15514   hardcode_action=unsupported
15515 fi
15516 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15517 echo "${ECHO_T}$hardcode_action" >&6; }
15518
15519 if test "$hardcode_action" = relink; then
15520   # Fast installation is not supported
15521   enable_fast_install=no
15522 elif test "$shlibpath_overrides_runpath" = yes ||
15523      test "$enable_shared" = no; then
15524   # Fast installation is not necessary
15525   enable_fast_install=needless
15526 fi
15527
15528 striplib=
15529 old_striplib=
15530 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15531 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15532 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15533   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15534   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15535   { echo "$as_me:$LINENO: result: yes" >&5
15536 echo "${ECHO_T}yes" >&6; }
15537 else
15538 # FIXME - insert some real tests, host_os isn't really good enough
15539   case $host_os in
15540    darwin*)
15541        if test -n "$STRIP" ; then
15542          striplib="$STRIP -x"
15543          { echo "$as_me:$LINENO: result: yes" >&5
15544 echo "${ECHO_T}yes" >&6; }
15545        else
15546   { echo "$as_me:$LINENO: result: no" >&5
15547 echo "${ECHO_T}no" >&6; }
15548 fi
15549        ;;
15550    *)
15551   { echo "$as_me:$LINENO: result: no" >&5
15552 echo "${ECHO_T}no" >&6; }
15553     ;;
15554   esac
15555 fi
15556
15557 if test "x$enable_dlopen" != xyes; then
15558   enable_dlopen=unknown
15559   enable_dlopen_self=unknown
15560   enable_dlopen_self_static=unknown
15561 else
15562   lt_cv_dlopen=no
15563   lt_cv_dlopen_libs=
15564
15565   case $host_os in
15566   beos*)
15567     lt_cv_dlopen="load_add_on"
15568     lt_cv_dlopen_libs=
15569     lt_cv_dlopen_self=yes
15570     ;;
15571
15572   mingw* | pw32*)
15573     lt_cv_dlopen="LoadLibrary"
15574     lt_cv_dlopen_libs=
15575    ;;
15576
15577   cygwin*)
15578     lt_cv_dlopen="dlopen"
15579     lt_cv_dlopen_libs=
15580    ;;
15581
15582   darwin*)
15583   # if libdl is installed we need to link against it
15584     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15587   echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589   ac_check_lib_save_LIBS=$LIBS
15590 LIBS="-ldl  $LIBS"
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597
15598 /* Override any GCC internal prototype to avoid an error.
15599    Use char because int might match the return type of a GCC
15600    builtin and then its argument prototype would still apply.  */
15601 #ifdef __cplusplus
15602 extern "C"
15603 #endif
15604 char dlopen ();
15605 int
15606 main ()
15607 {
15608 return dlopen ();
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (ac_try="$ac_link"
15615 case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620   (eval "$ac_link") 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } && {
15627          test -z "$ac_c_werror_flag" ||
15628          test ! -s conftest.err
15629        } && test -s conftest$ac_exeext &&
15630        $as_test_x conftest$ac_exeext; then
15631   ac_cv_lib_dl_dlopen=yes
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15635
15636         ac_cv_lib_dl_dlopen=no
15637 fi
15638
15639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15640       conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15642 fi
15643 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15645 if test $ac_cv_lib_dl_dlopen = yes; then
15646   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15647 else
15648
15649     lt_cv_dlopen="dyld"
15650     lt_cv_dlopen_libs=
15651     lt_cv_dlopen_self=yes
15652
15653 fi
15654
15655    ;;
15656
15657   *)
15658     { echo "$as_me:$LINENO: checking for shl_load" >&5
15659 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15660 if test "${ac_cv_func_shl_load+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15671 #define shl_load innocuous_shl_load
15672
15673 /* System header to define __stub macros and hopefully few prototypes,
15674     which can conflict with char shl_load (); below.
15675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15676     <limits.h> exists even on freestanding compilers.  */
15677
15678 #ifdef __STDC__
15679 # include <limits.h>
15680 #else
15681 # include <assert.h>
15682 #endif
15683
15684 #undef shl_load
15685
15686 /* Override any GCC internal prototype to avoid an error.
15687    Use char because int might match the return type of a GCC
15688    builtin and then its argument prototype would still apply.  */
15689 #ifdef __cplusplus
15690 extern "C"
15691 #endif
15692 char shl_load ();
15693 /* The GNU C library defines this for functions which it implements
15694     to always fail with ENOSYS.  Some functions are actually named
15695     something starting with __ and the normal name is an alias.  */
15696 #if defined __stub_shl_load || defined __stub___shl_load
15697 choke me
15698 #endif
15699
15700 int
15701 main ()
15702 {
15703 return shl_load ();
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_link") 2>conftest.er1
15716   ac_status=$?
15717   grep -v '^ *+' conftest.er1 >conftest.err
15718   rm -f conftest.er1
15719   cat conftest.err >&5
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); } && {
15722          test -z "$ac_c_werror_flag" ||
15723          test ! -s conftest.err
15724        } && test -s conftest$ac_exeext &&
15725        $as_test_x conftest$ac_exeext; then
15726   ac_cv_func_shl_load=yes
15727 else
15728   echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731         ac_cv_func_shl_load=no
15732 fi
15733
15734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735       conftest$ac_exeext conftest.$ac_ext
15736 fi
15737 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15738 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15739 if test $ac_cv_func_shl_load = yes; then
15740   lt_cv_dlopen="shl_load"
15741 else
15742   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15743 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15744 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747   ac_check_lib_save_LIBS=$LIBS
15748 LIBS="-ldld  $LIBS"
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h.  */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h.  */
15755
15756 /* Override any GCC internal prototype to avoid an error.
15757    Use char because int might match the return type of a GCC
15758    builtin and then its argument prototype would still apply.  */
15759 #ifdef __cplusplus
15760 extern "C"
15761 #endif
15762 char shl_load ();
15763 int
15764 main ()
15765 {
15766 return shl_load ();
15767   ;
15768   return 0;
15769 }
15770 _ACEOF
15771 rm -f conftest.$ac_objext conftest$ac_exeext
15772 if { (ac_try="$ac_link"
15773 case "(($ac_try" in
15774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775   *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778   (eval "$ac_link") 2>conftest.er1
15779   ac_status=$?
15780   grep -v '^ *+' conftest.er1 >conftest.err
15781   rm -f conftest.er1
15782   cat conftest.err >&5
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } && {
15785          test -z "$ac_c_werror_flag" ||
15786          test ! -s conftest.err
15787        } && test -s conftest$ac_exeext &&
15788        $as_test_x conftest$ac_exeext; then
15789   ac_cv_lib_dld_shl_load=yes
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794         ac_cv_lib_dld_shl_load=no
15795 fi
15796
15797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15798       conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15800 fi
15801 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15802 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15803 if test $ac_cv_lib_dld_shl_load = yes; then
15804   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15805 else
15806   { echo "$as_me:$LINENO: checking for dlopen" >&5
15807 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15808 if test "${ac_cv_func_dlopen+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   cat >conftest.$ac_ext <<_ACEOF
15812 /* confdefs.h.  */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h.  */
15817 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15819 #define dlopen innocuous_dlopen
15820
15821 /* System header to define __stub macros and hopefully few prototypes,
15822     which can conflict with char dlopen (); below.
15823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15824     <limits.h> exists even on freestanding compilers.  */
15825
15826 #ifdef __STDC__
15827 # include <limits.h>
15828 #else
15829 # include <assert.h>
15830 #endif
15831
15832 #undef dlopen
15833
15834 /* Override any GCC internal prototype to avoid an error.
15835    Use char because int might match the return type of a GCC
15836    builtin and then its argument prototype would still apply.  */
15837 #ifdef __cplusplus
15838 extern "C"
15839 #endif
15840 char dlopen ();
15841 /* The GNU C library defines this for functions which it implements
15842     to always fail with ENOSYS.  Some functions are actually named
15843     something starting with __ and the normal name is an alias.  */
15844 #if defined __stub_dlopen || defined __stub___dlopen
15845 choke me
15846 #endif
15847
15848 int
15849 main ()
15850 {
15851 return dlopen ();
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (ac_try="$ac_link"
15858 case "(($ac_try" in
15859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860   *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863   (eval "$ac_link") 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } && {
15870          test -z "$ac_c_werror_flag" ||
15871          test ! -s conftest.err
15872        } && test -s conftest$ac_exeext &&
15873        $as_test_x conftest$ac_exeext; then
15874   ac_cv_func_dlopen=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879         ac_cv_func_dlopen=no
15880 fi
15881
15882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15883       conftest$ac_exeext conftest.$ac_ext
15884 fi
15885 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15886 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15887 if test $ac_cv_func_dlopen = yes; then
15888   lt_cv_dlopen="dlopen"
15889 else
15890   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15891 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15893   echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895   ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-ldl  $LIBS"
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903
15904 /* Override any GCC internal prototype to avoid an error.
15905    Use char because int might match the return type of a GCC
15906    builtin and then its argument prototype would still apply.  */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char dlopen ();
15911 int
15912 main ()
15913 {
15914 return dlopen ();
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926   (eval "$ac_link") 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } && {
15933          test -z "$ac_c_werror_flag" ||
15934          test ! -s conftest.err
15935        } && test -s conftest$ac_exeext &&
15936        $as_test_x conftest$ac_exeext; then
15937   ac_cv_lib_dl_dlopen=yes
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942         ac_cv_lib_dl_dlopen=no
15943 fi
15944
15945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15946       conftest$ac_exeext conftest.$ac_ext
15947 LIBS=$ac_check_lib_save_LIBS
15948 fi
15949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15951 if test $ac_cv_lib_dl_dlopen = yes; then
15952   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15953 else
15954   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15955 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15956 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   ac_check_lib_save_LIBS=$LIBS
15960 LIBS="-lsvld  $LIBS"
15961 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967
15968 /* Override any GCC internal prototype to avoid an error.
15969    Use char because int might match the return type of a GCC
15970    builtin and then its argument prototype would still apply.  */
15971 #ifdef __cplusplus
15972 extern "C"
15973 #endif
15974 char dlopen ();
15975 int
15976 main ()
15977 {
15978 return dlopen ();
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (ac_try="$ac_link"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_link") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } && {
15997          test -z "$ac_c_werror_flag" ||
15998          test ! -s conftest.err
15999        } && test -s conftest$ac_exeext &&
16000        $as_test_x conftest$ac_exeext; then
16001   ac_cv_lib_svld_dlopen=yes
16002 else
16003   echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16005
16006         ac_cv_lib_svld_dlopen=no
16007 fi
16008
16009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16010       conftest$ac_exeext conftest.$ac_ext
16011 LIBS=$ac_check_lib_save_LIBS
16012 fi
16013 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16014 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16015 if test $ac_cv_lib_svld_dlopen = yes; then
16016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16017 else
16018   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16019 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16021   echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023   ac_check_lib_save_LIBS=$LIBS
16024 LIBS="-ldld  $LIBS"
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031
16032 /* Override any GCC internal prototype to avoid an error.
16033    Use char because int might match the return type of a GCC
16034    builtin and then its argument prototype would still apply.  */
16035 #ifdef __cplusplus
16036 extern "C"
16037 #endif
16038 char dld_link ();
16039 int
16040 main ()
16041 {
16042 return dld_link ();
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_link") 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } && {
16061          test -z "$ac_c_werror_flag" ||
16062          test ! -s conftest.err
16063        } && test -s conftest$ac_exeext &&
16064        $as_test_x conftest$ac_exeext; then
16065   ac_cv_lib_dld_dld_link=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070         ac_cv_lib_dld_dld_link=no
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16074       conftest$ac_exeext conftest.$ac_ext
16075 LIBS=$ac_check_lib_save_LIBS
16076 fi
16077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16078 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16079 if test $ac_cv_lib_dld_dld_link = yes; then
16080   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16081 fi
16082
16083
16084 fi
16085
16086
16087 fi
16088
16089
16090 fi
16091
16092
16093 fi
16094
16095
16096 fi
16097
16098     ;;
16099   esac
16100
16101   if test "x$lt_cv_dlopen" != xno; then
16102     enable_dlopen=yes
16103   else
16104     enable_dlopen=no
16105   fi
16106
16107   case $lt_cv_dlopen in
16108   dlopen)
16109     save_CPPFLAGS="$CPPFLAGS"
16110     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16111
16112     save_LDFLAGS="$LDFLAGS"
16113     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16114
16115     save_LIBS="$LIBS"
16116     LIBS="$lt_cv_dlopen_libs $LIBS"
16117
16118     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16119 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16120 if test "${lt_cv_dlopen_self+set}" = set; then
16121   echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123           if test "$cross_compiling" = yes; then :
16124   lt_cv_dlopen_self=cross
16125 else
16126   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16127   lt_status=$lt_dlunknown
16128   cat > conftest.$ac_ext <<EOF
16129 #line 16129 "configure"
16130 #include "confdefs.h"
16131
16132 #if HAVE_DLFCN_H
16133 #include <dlfcn.h>
16134 #endif
16135
16136 #include <stdio.h>
16137
16138 #ifdef RTLD_GLOBAL
16139 #  define LT_DLGLOBAL           RTLD_GLOBAL
16140 #else
16141 #  ifdef DL_GLOBAL
16142 #    define LT_DLGLOBAL         DL_GLOBAL
16143 #  else
16144 #    define LT_DLGLOBAL         0
16145 #  endif
16146 #endif
16147
16148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16149    find out it does not work in some platform. */
16150 #ifndef LT_DLLAZY_OR_NOW
16151 #  ifdef RTLD_LAZY
16152 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16153 #  else
16154 #    ifdef DL_LAZY
16155 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16156 #    else
16157 #      ifdef RTLD_NOW
16158 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16159 #      else
16160 #        ifdef DL_NOW
16161 #          define LT_DLLAZY_OR_NOW      DL_NOW
16162 #        else
16163 #          define LT_DLLAZY_OR_NOW      0
16164 #        endif
16165 #      endif
16166 #    endif
16167 #  endif
16168 #endif
16169
16170 #ifdef __cplusplus
16171 extern "C" void exit (int);
16172 #endif
16173
16174 void fnord() { int i=42;}
16175 int main ()
16176 {
16177   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16178   int status = $lt_dlunknown;
16179
16180   if (self)
16181     {
16182       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16183       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16184       /* dlclose (self); */
16185     }
16186   else
16187     puts (dlerror ());
16188
16189     exit (status);
16190 }
16191 EOF
16192   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16193   (eval $ac_link) 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16197     (./conftest; exit; ) >&5 2>/dev/null
16198     lt_status=$?
16199     case x$lt_status in
16200       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16201       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16202       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16203     esac
16204   else :
16205     # compilation failed
16206     lt_cv_dlopen_self=no
16207   fi
16208 fi
16209 rm -fr conftest*
16210
16211
16212 fi
16213 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16214 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16215
16216     if test "x$lt_cv_dlopen_self" = xyes; then
16217       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16218       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16219 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16220 if test "${lt_cv_dlopen_self_static+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223           if test "$cross_compiling" = yes; then :
16224   lt_cv_dlopen_self_static=cross
16225 else
16226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16227   lt_status=$lt_dlunknown
16228   cat > conftest.$ac_ext <<EOF
16229 #line 16229 "configure"
16230 #include "confdefs.h"
16231
16232 #if HAVE_DLFCN_H
16233 #include <dlfcn.h>
16234 #endif
16235
16236 #include <stdio.h>
16237
16238 #ifdef RTLD_GLOBAL
16239 #  define LT_DLGLOBAL           RTLD_GLOBAL
16240 #else
16241 #  ifdef DL_GLOBAL
16242 #    define LT_DLGLOBAL         DL_GLOBAL
16243 #  else
16244 #    define LT_DLGLOBAL         0
16245 #  endif
16246 #endif
16247
16248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16249    find out it does not work in some platform. */
16250 #ifndef LT_DLLAZY_OR_NOW
16251 #  ifdef RTLD_LAZY
16252 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16253 #  else
16254 #    ifdef DL_LAZY
16255 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16256 #    else
16257 #      ifdef RTLD_NOW
16258 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16259 #      else
16260 #        ifdef DL_NOW
16261 #          define LT_DLLAZY_OR_NOW      DL_NOW
16262 #        else
16263 #          define LT_DLLAZY_OR_NOW      0
16264 #        endif
16265 #      endif
16266 #    endif
16267 #  endif
16268 #endif
16269
16270 #ifdef __cplusplus
16271 extern "C" void exit (int);
16272 #endif
16273
16274 void fnord() { int i=42;}
16275 int main ()
16276 {
16277   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16278   int status = $lt_dlunknown;
16279
16280   if (self)
16281     {
16282       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16283       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16284       /* dlclose (self); */
16285     }
16286   else
16287     puts (dlerror ());
16288
16289     exit (status);
16290 }
16291 EOF
16292   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16293   (eval $ac_link) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16297     (./conftest; exit; ) >&5 2>/dev/null
16298     lt_status=$?
16299     case x$lt_status in
16300       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16301       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16302       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16303     esac
16304   else :
16305     # compilation failed
16306     lt_cv_dlopen_self_static=no
16307   fi
16308 fi
16309 rm -fr conftest*
16310
16311
16312 fi
16313 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16314 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16315     fi
16316
16317     CPPFLAGS="$save_CPPFLAGS"
16318     LDFLAGS="$save_LDFLAGS"
16319     LIBS="$save_LIBS"
16320     ;;
16321   esac
16322
16323   case $lt_cv_dlopen_self in
16324   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16325   *) enable_dlopen_self=unknown ;;
16326   esac
16327
16328   case $lt_cv_dlopen_self_static in
16329   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16330   *) enable_dlopen_self_static=unknown ;;
16331   esac
16332 fi
16333
16334
16335 # Report which library types will actually be built
16336 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16337 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16338 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16339 echo "${ECHO_T}$can_build_shared" >&6; }
16340
16341 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16342 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16343 test "$can_build_shared" = "no" && enable_shared=no
16344
16345 # On AIX, shared libraries and static libraries use the same namespace, and
16346 # are all built from PIC.
16347 case $host_os in
16348 aix3*)
16349   test "$enable_shared" = yes && enable_static=no
16350   if test -n "$RANLIB"; then
16351     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16352     postinstall_cmds='$RANLIB $lib'
16353   fi
16354   ;;
16355
16356 aix4* | aix5*)
16357   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16358     test "$enable_shared" = yes && enable_static=no
16359   fi
16360     ;;
16361 esac
16362 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16363 echo "${ECHO_T}$enable_shared" >&6; }
16364
16365 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16366 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16367 # Make sure either enable_shared or enable_static is yes.
16368 test "$enable_shared" = yes || enable_static=yes
16369 { echo "$as_me:$LINENO: result: $enable_static" >&5
16370 echo "${ECHO_T}$enable_static" >&6; }
16371
16372 # The else clause should only fire when bootstrapping the
16373 # libtool distribution, otherwise you forgot to ship ltmain.sh
16374 # with your package, and you will get complaints that there are
16375 # no rules to generate ltmain.sh.
16376 if test -f "$ltmain"; then
16377   # See if we are running on zsh, and set the options which allow our commands through
16378   # without removal of \ escapes.
16379   if test -n "${ZSH_VERSION+set}" ; then
16380     setopt NO_GLOB_SUBST
16381   fi
16382   # Now quote all the things that may contain metacharacters while being
16383   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16384   # variables and quote the copies for generation of the libtool script.
16385   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16386     SED SHELL STRIP \
16387     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16388     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16389     deplibs_check_method reload_flag reload_cmds need_locks \
16390     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16391     lt_cv_sys_global_symbol_to_c_name_address \
16392     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16393     old_postinstall_cmds old_postuninstall_cmds \
16394     compiler \
16395     CC \
16396     LD \
16397     lt_prog_compiler_wl \
16398     lt_prog_compiler_pic \
16399     lt_prog_compiler_static \
16400     lt_prog_compiler_no_builtin_flag \
16401     export_dynamic_flag_spec \
16402     thread_safe_flag_spec \
16403     whole_archive_flag_spec \
16404     enable_shared_with_static_runtimes \
16405     old_archive_cmds \
16406     old_archive_from_new_cmds \
16407     predep_objects \
16408     postdep_objects \
16409     predeps \
16410     postdeps \
16411     compiler_lib_search_path \
16412     archive_cmds \
16413     archive_expsym_cmds \
16414     postinstall_cmds \
16415     postuninstall_cmds \
16416     old_archive_from_expsyms_cmds \
16417     allow_undefined_flag \
16418     no_undefined_flag \
16419     export_symbols_cmds \
16420     hardcode_libdir_flag_spec \
16421     hardcode_libdir_flag_spec_ld \
16422     hardcode_libdir_separator \
16423     hardcode_automatic \
16424     module_cmds \
16425     module_expsym_cmds \
16426     lt_cv_prog_compiler_c_o \
16427     exclude_expsyms \
16428     include_expsyms; do
16429
16430     case $var in
16431     old_archive_cmds | \
16432     old_archive_from_new_cmds | \
16433     archive_cmds | \
16434     archive_expsym_cmds | \
16435     module_cmds | \
16436     module_expsym_cmds | \
16437     old_archive_from_expsyms_cmds | \
16438     export_symbols_cmds | \
16439     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16440     postinstall_cmds | postuninstall_cmds | \
16441     old_postinstall_cmds | old_postuninstall_cmds | \
16442     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16443       # Double-quote double-evaled strings.
16444       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16445       ;;
16446     *)
16447       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16448       ;;
16449     esac
16450   done
16451
16452   case $lt_echo in
16453   *'\$0 --fallback-echo"')
16454     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16455     ;;
16456   esac
16457
16458 cfgfile="${ofile}T"
16459   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16460   $rm -f "$cfgfile"
16461   { echo "$as_me:$LINENO: creating $ofile" >&5
16462 echo "$as_me: creating $ofile" >&6;}
16463
16464   cat <<__EOF__ >> "$cfgfile"
16465 #! $SHELL
16466
16467 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16468 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16469 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16470 #
16471 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16472 # Free Software Foundation, Inc.
16473 #
16474 # This file is part of GNU Libtool:
16475 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16476 #
16477 # This program is free software; you can redistribute it and/or modify
16478 # it under the terms of the GNU General Public License as published by
16479 # the Free Software Foundation; either version 2 of the License, or
16480 # (at your option) any later version.
16481 #
16482 # This program is distributed in the hope that it will be useful, but
16483 # WITHOUT ANY WARRANTY; without even the implied warranty of
16484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16485 # General Public License for more details.
16486 #
16487 # You should have received a copy of the GNU General Public License
16488 # along with this program; if not, write to the Free Software
16489 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16490 #
16491 # As a special exception to the GNU General Public License, if you
16492 # distribute this file as part of a program that contains a
16493 # configuration script generated by Autoconf, you may include it under
16494 # the same distribution terms that you use for the rest of that program.
16495
16496 # A sed program that does not truncate output.
16497 SED=$lt_SED
16498
16499 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16500 Xsed="$SED -e 1s/^X//"
16501
16502 # The HP-UX ksh and POSIX shell print the target directory to stdout
16503 # if CDPATH is set.
16504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16505
16506 # The names of the tagged configurations supported by this script.
16507 available_tags=
16508
16509 # ### BEGIN LIBTOOL CONFIG
16510
16511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16512
16513 # Shell to use when invoking shell scripts.
16514 SHELL=$lt_SHELL
16515
16516 # Whether or not to build shared libraries.
16517 build_libtool_libs=$enable_shared
16518
16519 # Whether or not to build static libraries.
16520 build_old_libs=$enable_static
16521
16522 # Whether or not to add -lc for building shared libraries.
16523 build_libtool_need_lc=$archive_cmds_need_lc
16524
16525 # Whether or not to disallow shared libs when runtime libs are static
16526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16527
16528 # Whether or not to optimize for fast installation.
16529 fast_install=$enable_fast_install
16530
16531 # The host system.
16532 host_alias=$host_alias
16533 host=$host
16534 host_os=$host_os
16535
16536 # The build system.
16537 build_alias=$build_alias
16538 build=$build
16539 build_os=$build_os
16540
16541 # An echo program that does not interpret backslashes.
16542 echo=$lt_echo
16543
16544 # The archiver.
16545 AR=$lt_AR
16546 AR_FLAGS=$lt_AR_FLAGS
16547
16548 # A C compiler.
16549 LTCC=$lt_LTCC
16550
16551 # LTCC compiler flags.
16552 LTCFLAGS=$lt_LTCFLAGS
16553
16554 # A language-specific compiler.
16555 CC=$lt_compiler
16556
16557 # Is the compiler the GNU C compiler?
16558 with_gcc=$GCC
16559
16560 # An ERE matcher.
16561 EGREP=$lt_EGREP
16562
16563 # The linker used to build libraries.
16564 LD=$lt_LD
16565
16566 # Whether we need hard or soft links.
16567 LN_S=$lt_LN_S
16568
16569 # A BSD-compatible nm program.
16570 NM=$lt_NM
16571
16572 # A symbol stripping program
16573 STRIP=$lt_STRIP
16574
16575 # Used to examine libraries when file_magic_cmd begins "file"
16576 MAGIC_CMD=$MAGIC_CMD
16577
16578 # Used on cygwin: DLL creation program.
16579 DLLTOOL="$DLLTOOL"
16580
16581 # Used on cygwin: object dumper.
16582 OBJDUMP="$OBJDUMP"
16583
16584 # Used on cygwin: assembler.
16585 AS="$AS"
16586
16587 # The name of the directory that contains temporary libtool files.
16588 objdir=$objdir
16589
16590 # How to create reloadable object files.
16591 reload_flag=$lt_reload_flag
16592 reload_cmds=$lt_reload_cmds
16593
16594 # How to pass a linker flag through the compiler.
16595 wl=$lt_lt_prog_compiler_wl
16596
16597 # Object file suffix (normally "o").
16598 objext="$ac_objext"
16599
16600 # Old archive suffix (normally "a").
16601 libext="$libext"
16602
16603 # Shared library suffix (normally ".so").
16604 shrext_cmds='$shrext_cmds'
16605
16606 # Executable file suffix (normally "").
16607 exeext="$exeext"
16608
16609 # Additional compiler flags for building library objects.
16610 pic_flag=$lt_lt_prog_compiler_pic
16611 pic_mode=$pic_mode
16612
16613 # What is the maximum length of a command?
16614 max_cmd_len=$lt_cv_sys_max_cmd_len
16615
16616 # Does compiler simultaneously support -c and -o options?
16617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16618
16619 # Must we lock files when doing compilation?
16620 need_locks=$lt_need_locks
16621
16622 # Do we need the lib prefix for modules?
16623 need_lib_prefix=$need_lib_prefix
16624
16625 # Do we need a version for libraries?
16626 need_version=$need_version
16627
16628 # Whether dlopen is supported.
16629 dlopen_support=$enable_dlopen
16630
16631 # Whether dlopen of programs is supported.
16632 dlopen_self=$enable_dlopen_self
16633
16634 # Whether dlopen of statically linked programs is supported.
16635 dlopen_self_static=$enable_dlopen_self_static
16636
16637 # Compiler flag to prevent dynamic linking.
16638 link_static_flag=$lt_lt_prog_compiler_static
16639
16640 # Compiler flag to turn off builtin functions.
16641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16642
16643 # Compiler flag to allow reflexive dlopens.
16644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16645
16646 # Compiler flag to generate shared objects directly from archives.
16647 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16648
16649 # Compiler flag to generate thread-safe objects.
16650 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16651
16652 # Library versioning type.
16653 version_type=$version_type
16654
16655 # Format of library name prefix.
16656 libname_spec=$lt_libname_spec
16657
16658 # List of archive names.  First name is the real one, the rest are links.
16659 # The last name is the one that the linker finds with -lNAME.
16660 library_names_spec=$lt_library_names_spec
16661
16662 # The coded name of the library, if different from the real name.
16663 soname_spec=$lt_soname_spec
16664
16665 # Commands used to build and install an old-style archive.
16666 RANLIB=$lt_RANLIB
16667 old_archive_cmds=$lt_old_archive_cmds
16668 old_postinstall_cmds=$lt_old_postinstall_cmds
16669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16670
16671 # Create an old-style archive from a shared archive.
16672 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16673
16674 # Create a temporary old-style archive to link instead of a shared archive.
16675 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16676
16677 # Commands used to build and install a shared archive.
16678 archive_cmds=$lt_archive_cmds
16679 archive_expsym_cmds=$lt_archive_expsym_cmds
16680 postinstall_cmds=$lt_postinstall_cmds
16681 postuninstall_cmds=$lt_postuninstall_cmds
16682
16683 # Commands used to build a loadable module (assumed same as above if empty)
16684 module_cmds=$lt_module_cmds
16685 module_expsym_cmds=$lt_module_expsym_cmds
16686
16687 # Commands to strip libraries.
16688 old_striplib=$lt_old_striplib
16689 striplib=$lt_striplib
16690
16691 # Dependencies to place before the objects being linked to create a
16692 # shared library.
16693 predep_objects=$lt_predep_objects
16694
16695 # Dependencies to place after the objects being linked to create a
16696 # shared library.
16697 postdep_objects=$lt_postdep_objects
16698
16699 # Dependencies to place before the objects being linked to create a
16700 # shared library.
16701 predeps=$lt_predeps
16702
16703 # Dependencies to place after the objects being linked to create a
16704 # shared library.
16705 postdeps=$lt_postdeps
16706
16707 # The library search path used internally by the compiler when linking
16708 # a shared library.
16709 compiler_lib_search_path=$lt_compiler_lib_search_path
16710
16711 # Method to check whether dependent libraries are shared objects.
16712 deplibs_check_method=$lt_deplibs_check_method
16713
16714 # Command to use when deplibs_check_method == file_magic.
16715 file_magic_cmd=$lt_file_magic_cmd
16716
16717 # Flag that allows shared libraries with undefined symbols to be built.
16718 allow_undefined_flag=$lt_allow_undefined_flag
16719
16720 # Flag that forces no undefined symbols.
16721 no_undefined_flag=$lt_no_undefined_flag
16722
16723 # Commands used to finish a libtool library installation in a directory.
16724 finish_cmds=$lt_finish_cmds
16725
16726 # Same as above, but a single script fragment to be evaled but not shown.
16727 finish_eval=$lt_finish_eval
16728
16729 # Take the output of nm and produce a listing of raw symbols and C names.
16730 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16731
16732 # Transform the output of nm in a proper C declaration
16733 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16734
16735 # Transform the output of nm in a C name address pair
16736 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16737
16738 # This is the shared library runtime path variable.
16739 runpath_var=$runpath_var
16740
16741 # This is the shared library path variable.
16742 shlibpath_var=$shlibpath_var
16743
16744 # Is shlibpath searched before the hard-coded library search path?
16745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16746
16747 # How to hardcode a shared library path into an executable.
16748 hardcode_action=$hardcode_action
16749
16750 # Whether we should hardcode library paths into libraries.
16751 hardcode_into_libs=$hardcode_into_libs
16752
16753 # Flag to hardcode \$libdir into a binary during linking.
16754 # This must work even if \$libdir does not exist.
16755 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16756
16757 # If ld is used when linking, flag to hardcode \$libdir into
16758 # a binary during linking. This must work even if \$libdir does
16759 # not exist.
16760 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16761
16762 # Whether we need a single -rpath flag with a separated argument.
16763 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16764
16765 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16766 # resulting binary.
16767 hardcode_direct=$hardcode_direct
16768
16769 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16770 # resulting binary.
16771 hardcode_minus_L=$hardcode_minus_L
16772
16773 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16774 # the resulting binary.
16775 hardcode_shlibpath_var=$hardcode_shlibpath_var
16776
16777 # Set to yes if building a shared library automatically hardcodes DIR into the library
16778 # and all subsequent libraries and executables linked against it.
16779 hardcode_automatic=$hardcode_automatic
16780
16781 # Variables whose values should be saved in libtool wrapper scripts and
16782 # restored at relink time.
16783 variables_saved_for_relink="$variables_saved_for_relink"
16784
16785 # Whether libtool must link a program against all its dependency libraries.
16786 link_all_deplibs=$link_all_deplibs
16787
16788 # Compile-time system search path for libraries
16789 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16790
16791 # Run-time system search path for libraries
16792 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16793
16794 # Fix the shell variable \$srcfile for the compiler.
16795 fix_srcfile_path="$fix_srcfile_path"
16796
16797 # Set to yes if exported symbols are required.
16798 always_export_symbols=$always_export_symbols
16799
16800 # The commands to list exported symbols.
16801 export_symbols_cmds=$lt_export_symbols_cmds
16802
16803 # The commands to extract the exported symbol list from a shared archive.
16804 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16805
16806 # Symbols that should not be listed in the preloaded symbols.
16807 exclude_expsyms=$lt_exclude_expsyms
16808
16809 # Symbols that must always be exported.
16810 include_expsyms=$lt_include_expsyms
16811
16812 # ### END LIBTOOL CONFIG
16813
16814 __EOF__
16815
16816
16817   case $host_os in
16818   aix3*)
16819     cat <<\EOF >> "$cfgfile"
16820
16821 # AIX sometimes has problems with the GCC collect2 program.  For some
16822 # reason, if we set the COLLECT_NAMES environment variable, the problems
16823 # vanish in a puff of smoke.
16824 if test "X${COLLECT_NAMES+set}" != Xset; then
16825   COLLECT_NAMES=
16826   export COLLECT_NAMES
16827 fi
16828 EOF
16829     ;;
16830   esac
16831
16832   # We use sed instead of cat because bash on DJGPP gets confused if
16833   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16834   # text mode, it properly converts lines to CR/LF.  This bash problem
16835   # is reportedly fixed, but why not run on old versions too?
16836   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16837
16838   mv -f "$cfgfile" "$ofile" || \
16839     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16840   chmod +x "$ofile"
16841
16842 else
16843   # If there is no Makefile yet, we rely on a make rule to execute
16844   # `config.status --recheck' to rerun these tests and create the
16845   # libtool script then.
16846   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16847   if test -f "$ltmain_in"; then
16848     test -f Makefile && make "$ltmain"
16849   fi
16850 fi
16851
16852
16853 ac_ext=c
16854 ac_cpp='$CPP $CPPFLAGS'
16855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16858
16859 CC="$lt_save_CC"
16860
16861
16862 # Check whether --with-tags was given.
16863 if test "${with_tags+set}" = set; then
16864   withval=$with_tags; tagnames="$withval"
16865 fi
16866
16867
16868 if test -f "$ltmain" && test -n "$tagnames"; then
16869   if test ! -f "${ofile}"; then
16870     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16871 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16872   fi
16873
16874   if test -z "$LTCC"; then
16875     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16876     if test -z "$LTCC"; then
16877       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16878 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16879     else
16880       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16881 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16882     fi
16883   fi
16884   if test -z "$LTCFLAGS"; then
16885     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16886   fi
16887
16888   # Extract list of available tagged configurations in $ofile.
16889   # Note that this assumes the entire list is on one line.
16890   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16891
16892   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16893   for tagname in $tagnames; do
16894     IFS="$lt_save_ifs"
16895     # Check whether tagname contains only valid characters
16896     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16897     "") ;;
16898     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16899 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16900    { (exit 1); exit 1; }; }
16901         ;;
16902     esac
16903
16904     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16905     then
16906       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16907 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16908    { (exit 1); exit 1; }; }
16909     fi
16910
16911     # Update the list of available tags.
16912     if test -n "$tagname"; then
16913       echo appending configuration tag \"$tagname\" to $ofile
16914
16915       case $tagname in
16916       CXX)
16917         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16918             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16919             (test "X$CXX" != "Xg++"))) ; then
16920           ac_ext=cpp
16921 ac_cpp='$CXXCPP $CPPFLAGS'
16922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16925
16926
16927
16928
16929 archive_cmds_need_lc_CXX=no
16930 allow_undefined_flag_CXX=
16931 always_export_symbols_CXX=no
16932 archive_expsym_cmds_CXX=
16933 export_dynamic_flag_spec_CXX=
16934 hardcode_direct_CXX=no
16935 hardcode_libdir_flag_spec_CXX=
16936 hardcode_libdir_flag_spec_ld_CXX=
16937 hardcode_libdir_separator_CXX=
16938 hardcode_minus_L_CXX=no
16939 hardcode_shlibpath_var_CXX=unsupported
16940 hardcode_automatic_CXX=no
16941 module_cmds_CXX=
16942 module_expsym_cmds_CXX=
16943 link_all_deplibs_CXX=unknown
16944 old_archive_cmds_CXX=$old_archive_cmds
16945 no_undefined_flag_CXX=
16946 whole_archive_flag_spec_CXX=
16947 enable_shared_with_static_runtimes_CXX=no
16948
16949 # Dependencies to place before and after the object being linked:
16950 predep_objects_CXX=
16951 postdep_objects_CXX=
16952 predeps_CXX=
16953 postdeps_CXX=
16954 compiler_lib_search_path_CXX=
16955
16956 # Source file extension for C++ test sources.
16957 ac_ext=cpp
16958
16959 # Object file extension for compiled C++ test sources.
16960 objext=o
16961 objext_CXX=$objext
16962
16963 # Code to be used in simple compile tests
16964 lt_simple_compile_test_code="int some_variable = 0;\n"
16965
16966 # Code to be used in simple link tests
16967 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16968
16969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16970
16971 # If no C compiler was specified, use CC.
16972 LTCC=${LTCC-"$CC"}
16973
16974 # If no C compiler flags were specified, use CFLAGS.
16975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16976
16977 # Allow CC to be a program name with arguments.
16978 compiler=$CC
16979
16980
16981 # save warnings/boilerplate of simple test code
16982 ac_outfile=conftest.$ac_objext
16983 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16985 _lt_compiler_boilerplate=`cat conftest.err`
16986 $rm conftest*
16987
16988 ac_outfile=conftest.$ac_objext
16989 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16991 _lt_linker_boilerplate=`cat conftest.err`
16992 $rm conftest*
16993
16994
16995 # Allow CC to be a program name with arguments.
16996 lt_save_CC=$CC
16997 lt_save_LD=$LD
16998 lt_save_GCC=$GCC
16999 GCC=$GXX
17000 lt_save_with_gnu_ld=$with_gnu_ld
17001 lt_save_path_LD=$lt_cv_path_LD
17002 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17003   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17004 else
17005   $as_unset lt_cv_prog_gnu_ld
17006 fi
17007 if test -n "${lt_cv_path_LDCXX+set}"; then
17008   lt_cv_path_LD=$lt_cv_path_LDCXX
17009 else
17010   $as_unset lt_cv_path_LD
17011 fi
17012 test -z "${LDCXX+set}" || LD=$LDCXX
17013 CC=${CXX-"c++"}
17014 compiler=$CC
17015 compiler_CXX=$CC
17016 for cc_temp in $compiler""; do
17017   case $cc_temp in
17018     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17019     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17020     \-*) ;;
17021     *) break;;
17022   esac
17023 done
17024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17025
17026
17027 # We don't want -fno-exception wen compiling C++ code, so set the
17028 # no_builtin_flag separately
17029 if test "$GXX" = yes; then
17030   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17031 else
17032   lt_prog_compiler_no_builtin_flag_CXX=
17033 fi
17034
17035 if test "$GXX" = yes; then
17036   # Set up default GNU C++ configuration
17037
17038
17039 # Check whether --with-gnu-ld was given.
17040 if test "${with_gnu_ld+set}" = set; then
17041   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17042 else
17043   with_gnu_ld=no
17044 fi
17045
17046 ac_prog=ld
17047 if test "$GCC" = yes; then
17048   # Check if gcc -print-prog-name=ld gives a path.
17049   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17050 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17051   case $host in
17052   *-*-mingw*)
17053     # gcc leaves a trailing carriage return which upsets mingw
17054     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17055   *)
17056     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17057   esac
17058   case $ac_prog in
17059     # Accept absolute paths.
17060     [\\/]* | ?:[\\/]*)
17061       re_direlt='/[^/][^/]*/\.\./'
17062       # Canonicalize the pathname of ld
17063       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17064       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17065         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17066       done
17067       test -z "$LD" && LD="$ac_prog"
17068       ;;
17069   "")
17070     # If it fails, then pretend we aren't using GCC.
17071     ac_prog=ld
17072     ;;
17073   *)
17074     # If it is relative, then search for the first ld in PATH.
17075     with_gnu_ld=unknown
17076     ;;
17077   esac
17078 elif test "$with_gnu_ld" = yes; then
17079   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17080 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17081 else
17082   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17083 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17084 fi
17085 if test "${lt_cv_path_LD+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   if test -z "$LD"; then
17089   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17090   for ac_dir in $PATH; do
17091     IFS="$lt_save_ifs"
17092     test -z "$ac_dir" && ac_dir=.
17093     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17094       lt_cv_path_LD="$ac_dir/$ac_prog"
17095       # Check to see if the program is GNU ld.  I'd rather use --version,
17096       # but apparently some variants of GNU ld only accept -v.
17097       # Break only if it was the GNU/non-GNU ld that we prefer.
17098       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17099       *GNU* | *'with BFD'*)
17100         test "$with_gnu_ld" != no && break
17101         ;;
17102       *)
17103         test "$with_gnu_ld" != yes && break
17104         ;;
17105       esac
17106     fi
17107   done
17108   IFS="$lt_save_ifs"
17109 else
17110   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17111 fi
17112 fi
17113
17114 LD="$lt_cv_path_LD"
17115 if test -n "$LD"; then
17116   { echo "$as_me:$LINENO: result: $LD" >&5
17117 echo "${ECHO_T}$LD" >&6; }
17118 else
17119   { echo "$as_me:$LINENO: result: no" >&5
17120 echo "${ECHO_T}no" >&6; }
17121 fi
17122 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17123 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17124    { (exit 1); exit 1; }; }
17125 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17126 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17127 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17131 case `$LD -v 2>&1 </dev/null` in
17132 *GNU* | *'with BFD'*)
17133   lt_cv_prog_gnu_ld=yes
17134   ;;
17135 *)
17136   lt_cv_prog_gnu_ld=no
17137   ;;
17138 esac
17139 fi
17140 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17141 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17142 with_gnu_ld=$lt_cv_prog_gnu_ld
17143
17144
17145
17146   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17147   # archiving commands below assume that GNU ld is being used.
17148   if test "$with_gnu_ld" = yes; then
17149     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17150     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'
17151
17152     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17153     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17154
17155     # If archive_cmds runs LD, not CC, wlarc should be empty
17156     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17157     #     investigate it a little bit more. (MM)
17158     wlarc='${wl}'
17159
17160     # ancient GNU ld didn't support --whole-archive et. al.
17161     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17162         grep 'no-whole-archive' > /dev/null; then
17163       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17164     else
17165       whole_archive_flag_spec_CXX=
17166     fi
17167   else
17168     with_gnu_ld=no
17169     wlarc=
17170
17171     # A generic and very simple default shared library creation
17172     # command for GNU C++ for the case where it uses the native
17173     # linker, instead of GNU ld.  If possible, this setting should
17174     # overridden to take advantage of the native linker features on
17175     # the platform it is being used on.
17176     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17177   fi
17178
17179   # Commands to make compiler produce verbose output that lists
17180   # what "hidden" libraries, object files and flags are used when
17181   # linking a shared library.
17182   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17183
17184 else
17185   GXX=no
17186   with_gnu_ld=no
17187   wlarc=
17188 fi
17189
17190 # PORTME: fill in a description of your system's C++ link characteristics
17191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17193 ld_shlibs_CXX=yes
17194 case $host_os in
17195   aix3*)
17196     # FIXME: insert proper C++ library support
17197     ld_shlibs_CXX=no
17198     ;;
17199   aix4* | aix5*)
17200     if test "$host_cpu" = ia64; then
17201       # On IA64, the linker does run time linking by default, so we don't
17202       # have to do anything special.
17203       aix_use_runtimelinking=no
17204       exp_sym_flag='-Bexport'
17205       no_entry_flag=""
17206     else
17207       aix_use_runtimelinking=no
17208
17209       # Test if we are trying to use run time linking or normal
17210       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17211       # need to do runtime linking.
17212       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17213         for ld_flag in $LDFLAGS; do
17214           case $ld_flag in
17215           *-brtl*)
17216             aix_use_runtimelinking=yes
17217             break
17218             ;;
17219           esac
17220         done
17221         ;;
17222       esac
17223
17224       exp_sym_flag='-bexport'
17225       no_entry_flag='-bnoentry'
17226     fi
17227
17228     # When large executables or shared objects are built, AIX ld can
17229     # have problems creating the table of contents.  If linking a library
17230     # or program results in "error TOC overflow" add -mminimal-toc to
17231     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17232     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17233
17234     archive_cmds_CXX=''
17235     hardcode_direct_CXX=yes
17236     hardcode_libdir_separator_CXX=':'
17237     link_all_deplibs_CXX=yes
17238
17239     if test "$GXX" = yes; then
17240       case $host_os in aix4.[012]|aix4.[012].*)
17241       # We only want to do this on AIX 4.2 and lower, the check
17242       # below for broken collect2 doesn't work under 4.3+
17243         collect2name=`${CC} -print-prog-name=collect2`
17244         if test -f "$collect2name" && \
17245            strings "$collect2name" | grep resolve_lib_name >/dev/null
17246         then
17247           # We have reworked collect2
17248           hardcode_direct_CXX=yes
17249         else
17250           # We have old collect2
17251           hardcode_direct_CXX=unsupported
17252           # It fails to find uninstalled libraries when the uninstalled
17253           # path is not listed in the libpath.  Setting hardcode_minus_L
17254           # to unsupported forces relinking
17255           hardcode_minus_L_CXX=yes
17256           hardcode_libdir_flag_spec_CXX='-L$libdir'
17257           hardcode_libdir_separator_CXX=
17258         fi
17259         ;;
17260       esac
17261       shared_flag='-shared'
17262       if test "$aix_use_runtimelinking" = yes; then
17263         shared_flag="$shared_flag "'${wl}-G'
17264       fi
17265     else
17266       # not using gcc
17267       if test "$host_cpu" = ia64; then
17268         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17269         # chokes on -Wl,-G. The following line is correct:
17270         shared_flag='-G'
17271       else
17272         if test "$aix_use_runtimelinking" = yes; then
17273           shared_flag='${wl}-G'
17274         else
17275           shared_flag='${wl}-bM:SRE'
17276         fi
17277       fi
17278     fi
17279
17280     # It seems that -bexpall does not export symbols beginning with
17281     # underscore (_), so it is better to generate a list of symbols to export.
17282     always_export_symbols_CXX=yes
17283     if test "$aix_use_runtimelinking" = yes; then
17284       # Warning - without using the other runtime loading flags (-brtl),
17285       # -berok will link without error, but may produce a broken library.
17286       allow_undefined_flag_CXX='-berok'
17287       # Determine the default libpath from the value encoded in an empty executable.
17288       cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294
17295 int
17296 main ()
17297 {
17298
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_link") 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } && {
17317          test -z "$ac_cxx_werror_flag" ||
17318          test ! -s conftest.err
17319        } && test -s conftest$ac_exeext &&
17320        $as_test_x conftest$ac_exeext; then
17321
17322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17323 }'`
17324 # Check for a 64-bit object if we didn't find anything.
17325 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; }
17326 }'`; fi
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331
17332 fi
17333
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335       conftest$ac_exeext conftest.$ac_ext
17336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17337
17338       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17339
17340       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"
17341      else
17342       if test "$host_cpu" = ia64; then
17343         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17344         allow_undefined_flag_CXX="-z nodefs"
17345         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"
17346       else
17347         # Determine the default libpath from the value encoded in an empty executable.
17348         cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354
17355 int
17356 main ()
17357 {
17358
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_link") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_cxx_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest$ac_exeext &&
17380        $as_test_x conftest$ac_exeext; then
17381
17382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17383 }'`
17384 # Check for a 64-bit object if we didn't find anything.
17385 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; }
17386 }'`; fi
17387 else
17388   echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391
17392 fi
17393
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395       conftest$ac_exeext conftest.$ac_ext
17396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17397
17398         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17399         # Warning - without using the other run time loading flags,
17400         # -berok will link without error, but may produce a broken library.
17401         no_undefined_flag_CXX=' ${wl}-bernotok'
17402         allow_undefined_flag_CXX=' ${wl}-berok'
17403         # Exported symbols can be pulled into shared objects from archives
17404         whole_archive_flag_spec_CXX='$convenience'
17405         archive_cmds_need_lc_CXX=yes
17406         # This is similar to how AIX traditionally builds its shared libraries.
17407         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'
17408       fi
17409     fi
17410     ;;
17411
17412   beos*)
17413     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17414       allow_undefined_flag_CXX=unsupported
17415       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17416       # support --undefined.  This deserves some investigation.  FIXME
17417       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418     else
17419       ld_shlibs_CXX=no
17420     fi
17421     ;;
17422
17423   chorus*)
17424     case $cc_basename in
17425       *)
17426         # FIXME: insert proper C++ library support
17427         ld_shlibs_CXX=no
17428         ;;
17429     esac
17430     ;;
17431
17432   cygwin* | mingw* | pw32*)
17433     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17434     # as there is no search path for DLLs.
17435     hardcode_libdir_flag_spec_CXX='-L$libdir'
17436     allow_undefined_flag_CXX=unsupported
17437     always_export_symbols_CXX=no
17438     enable_shared_with_static_runtimes_CXX=yes
17439
17440     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17441       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'
17442       # If the export-symbols file already is a .def file (1st line
17443       # is EXPORTS), use it as is; otherwise, prepend...
17444       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17445         cp $export_symbols $output_objdir/$soname.def;
17446       else
17447         echo EXPORTS > $output_objdir/$soname.def;
17448         cat $export_symbols >> $output_objdir/$soname.def;
17449       fi~
17450       $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'
17451     else
17452       ld_shlibs_CXX=no
17453     fi
17454   ;;
17455       darwin* | rhapsody*)
17456         case $host_os in
17457         rhapsody* | darwin1.[012])
17458          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17459          ;;
17460        *) # Darwin 1.3 on
17461          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17462            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463          else
17464            case ${MACOSX_DEPLOYMENT_TARGET} in
17465              10.[012])
17466                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17467                ;;
17468              10.*)
17469                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17470                ;;
17471            esac
17472          fi
17473          ;;
17474         esac
17475       archive_cmds_need_lc_CXX=no
17476       hardcode_direct_CXX=no
17477       hardcode_automatic_CXX=yes
17478       hardcode_shlibpath_var_CXX=unsupported
17479       whole_archive_flag_spec_CXX=''
17480       link_all_deplibs_CXX=yes
17481
17482     if test "$GXX" = yes ; then
17483       lt_int_apple_cc_single_mod=no
17484       output_verbose_link_cmd='echo'
17485       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17486        lt_int_apple_cc_single_mod=yes
17487       fi
17488       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17489        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17490       else
17491           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'
17492         fi
17493         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17494         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17495           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17496             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}'
17497           else
17498             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}'
17499           fi
17500             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}'
17501       else
17502       case $cc_basename in
17503         xlc*)
17504          output_verbose_link_cmd='echo'
17505           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'
17506           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17507           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17508           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}'
17509           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}'
17510           ;;
17511        *)
17512          ld_shlibs_CXX=no
17513           ;;
17514       esac
17515       fi
17516         ;;
17517
17518   dgux*)
17519     case $cc_basename in
17520       ec++*)
17521         # FIXME: insert proper C++ library support
17522         ld_shlibs_CXX=no
17523         ;;
17524       ghcx*)
17525         # Green Hills C++ Compiler
17526         # FIXME: insert proper C++ library support
17527         ld_shlibs_CXX=no
17528         ;;
17529       *)
17530         # FIXME: insert proper C++ library support
17531         ld_shlibs_CXX=no
17532         ;;
17533     esac
17534     ;;
17535   freebsd[12]*)
17536     # C++ shared libraries reported to be fairly broken before switch to ELF
17537     ld_shlibs_CXX=no
17538     ;;
17539   freebsd-elf*)
17540     archive_cmds_need_lc_CXX=no
17541     ;;
17542   freebsd* | kfreebsd*-gnu | dragonfly*)
17543     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17544     # conventions
17545     ld_shlibs_CXX=yes
17546     ;;
17547   gnu*)
17548     ;;
17549   hpux9*)
17550     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17551     hardcode_libdir_separator_CXX=:
17552     export_dynamic_flag_spec_CXX='${wl}-E'
17553     hardcode_direct_CXX=yes
17554     hardcode_minus_L_CXX=yes # Not in the search PATH,
17555                                 # but as the default
17556                                 # location of the library.
17557
17558     case $cc_basename in
17559     CC*)
17560       # FIXME: insert proper C++ library support
17561       ld_shlibs_CXX=no
17562       ;;
17563     aCC*)
17564       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'
17565       # Commands to make compiler produce verbose output that lists
17566       # what "hidden" libraries, object files and flags are used when
17567       # linking a shared library.
17568       #
17569       # There doesn't appear to be a way to prevent this compiler from
17570       # explicitly linking system object files so we need to strip them
17571       # from the output so that they don't get included in the library
17572       # dependencies.
17573       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'
17574       ;;
17575     *)
17576       if test "$GXX" = yes; then
17577         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'
17578       else
17579         # FIXME: insert proper C++ library support
17580         ld_shlibs_CXX=no
17581       fi
17582       ;;
17583     esac
17584     ;;
17585   hpux10*|hpux11*)
17586     if test $with_gnu_ld = no; then
17587       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17588       hardcode_libdir_separator_CXX=:
17589
17590       case $host_cpu in
17591       hppa*64*|ia64*)
17592         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17593         ;;
17594       *)
17595         export_dynamic_flag_spec_CXX='${wl}-E'
17596         ;;
17597       esac
17598     fi
17599     case $host_cpu in
17600     hppa*64*|ia64*)
17601       hardcode_direct_CXX=no
17602       hardcode_shlibpath_var_CXX=no
17603       ;;
17604     *)
17605       hardcode_direct_CXX=yes
17606       hardcode_minus_L_CXX=yes # Not in the search PATH,
17607                                               # but as the default
17608                                               # location of the library.
17609       ;;
17610     esac
17611
17612     case $cc_basename in
17613       CC*)
17614         # FIXME: insert proper C++ library support
17615         ld_shlibs_CXX=no
17616         ;;
17617       aCC*)
17618         case $host_cpu in
17619         hppa*64*)
17620           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17621           ;;
17622         ia64*)
17623           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17624           ;;
17625         *)
17626           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17627           ;;
17628         esac
17629         # Commands to make compiler produce verbose output that lists
17630         # what "hidden" libraries, object files and flags are used when
17631         # linking a shared library.
17632         #
17633         # There doesn't appear to be a way to prevent this compiler from
17634         # explicitly linking system object files so we need to strip them
17635         # from the output so that they don't get included in the library
17636         # dependencies.
17637         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'
17638         ;;
17639       *)
17640         if test "$GXX" = yes; then
17641           if test $with_gnu_ld = no; then
17642             case $host_cpu in
17643             hppa*64*)
17644               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17645               ;;
17646             ia64*)
17647               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17648               ;;
17649             *)
17650               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'
17651               ;;
17652             esac
17653           fi
17654         else
17655           # FIXME: insert proper C++ library support
17656           ld_shlibs_CXX=no
17657         fi
17658         ;;
17659     esac
17660     ;;
17661   interix3*)
17662     hardcode_direct_CXX=no
17663     hardcode_shlibpath_var_CXX=no
17664     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17665     export_dynamic_flag_spec_CXX='${wl}-E'
17666     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17667     # Instead, shared libraries are loaded at an image base (0x10000000 by
17668     # default) and relocated if they conflict, which is a slow very memory
17669     # consuming and fragmenting process.  To avoid this, we pick a random,
17670     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17671     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17672     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'
17673     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'
17674     ;;
17675   irix5* | irix6*)
17676     case $cc_basename in
17677       CC*)
17678         # SGI C++
17679         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'
17680
17681         # Archives containing C++ object files must be created using
17682         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17683         # necessary to make sure instantiated templates are included
17684         # in the archive.
17685         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17686         ;;
17687       *)
17688         if test "$GXX" = yes; then
17689           if test "$with_gnu_ld" = no; then
17690             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'
17691           else
17692             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'
17693           fi
17694         fi
17695         link_all_deplibs_CXX=yes
17696         ;;
17697     esac
17698     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17699     hardcode_libdir_separator_CXX=:
17700     ;;
17701   linux*)
17702     case $cc_basename in
17703       KCC*)
17704         # Kuck and Associates, Inc. (KAI) C++ Compiler
17705
17706         # KCC will only create a shared library if the output file
17707         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17708         # to its proper name (with version) after linking.
17709         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'
17710         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'
17711         # Commands to make compiler produce verbose output that lists
17712         # what "hidden" libraries, object files and flags are used when
17713         # linking a shared library.
17714         #
17715         # There doesn't appear to be a way to prevent this compiler from
17716         # explicitly linking system object files so we need to strip them
17717         # from the output so that they don't get included in the library
17718         # dependencies.
17719         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'
17720
17721         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17722         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17723
17724         # Archives containing C++ object files must be created using
17725         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17726         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17727         ;;
17728       icpc*)
17729         # Intel C++
17730         with_gnu_ld=yes
17731         # version 8.0 and above of icpc choke on multiply defined symbols
17732         # if we add $predep_objects and $postdep_objects, however 7.1 and
17733         # earlier do not add the objects themselves.
17734         case `$CC -V 2>&1` in
17735         *"Version 7."*)
17736           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17737           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'
17738           ;;
17739         *)  # Version 8.0 or newer
17740           tmp_idyn=
17741           case $host_cpu in
17742             ia64*) tmp_idyn=' -i_dynamic';;
17743           esac
17744           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17745           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'
17746           ;;
17747         esac
17748         archive_cmds_need_lc_CXX=no
17749         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17750         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17751         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17752         ;;
17753       pgCC*)
17754         # Portland Group C++ compiler
17755         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17756         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'
17757
17758         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17759         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17760         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'
17761         ;;
17762       cxx*)
17763         # Compaq C++
17764         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17765         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'
17766
17767         runpath_var=LD_RUN_PATH
17768         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17769         hardcode_libdir_separator_CXX=:
17770
17771         # Commands to make compiler produce verbose output that lists
17772         # what "hidden" libraries, object files and flags are used when
17773         # linking a shared library.
17774         #
17775         # There doesn't appear to be a way to prevent this compiler from
17776         # explicitly linking system object files so we need to strip them
17777         # from the output so that they don't get included in the library
17778         # dependencies.
17779         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'
17780         ;;
17781     esac
17782     ;;
17783   lynxos*)
17784     # FIXME: insert proper C++ library support
17785     ld_shlibs_CXX=no
17786     ;;
17787   m88k*)
17788     # FIXME: insert proper C++ library support
17789     ld_shlibs_CXX=no
17790     ;;
17791   mvs*)
17792     case $cc_basename in
17793       cxx*)
17794         # FIXME: insert proper C++ library support
17795         ld_shlibs_CXX=no
17796         ;;
17797       *)
17798         # FIXME: insert proper C++ library support
17799         ld_shlibs_CXX=no
17800         ;;
17801     esac
17802     ;;
17803   netbsd*)
17804     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17805       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17806       wlarc=
17807       hardcode_libdir_flag_spec_CXX='-R$libdir'
17808       hardcode_direct_CXX=yes
17809       hardcode_shlibpath_var_CXX=no
17810     fi
17811     # Workaround some broken pre-1.5 toolchains
17812     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17813     ;;
17814   openbsd2*)
17815     # C++ shared libraries are fairly broken
17816     ld_shlibs_CXX=no
17817     ;;
17818   openbsd*)
17819     hardcode_direct_CXX=yes
17820     hardcode_shlibpath_var_CXX=no
17821     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17822     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17823     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17825       export_dynamic_flag_spec_CXX='${wl}-E'
17826       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17827     fi
17828     output_verbose_link_cmd='echo'
17829     ;;
17830   osf3*)
17831     case $cc_basename in
17832       KCC*)
17833         # Kuck and Associates, Inc. (KAI) C++ Compiler
17834
17835         # KCC will only create a shared library if the output file
17836         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17837         # to its proper name (with version) after linking.
17838         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'
17839
17840         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17841         hardcode_libdir_separator_CXX=:
17842
17843         # Archives containing C++ object files must be created using
17844         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17845         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17846
17847         ;;
17848       RCC*)
17849         # Rational C++ 2.4.1
17850         # FIXME: insert proper C++ library support
17851         ld_shlibs_CXX=no
17852         ;;
17853       cxx*)
17854         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17855         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'
17856
17857         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17858         hardcode_libdir_separator_CXX=:
17859
17860         # Commands to make compiler produce verbose output that lists
17861         # what "hidden" libraries, object files and flags are used when
17862         # linking a shared library.
17863         #
17864         # There doesn't appear to be a way to prevent this compiler from
17865         # explicitly linking system object files so we need to strip them
17866         # from the output so that they don't get included in the library
17867         # dependencies.
17868         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'
17869         ;;
17870       *)
17871         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17872           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17873           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'
17874
17875           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17876           hardcode_libdir_separator_CXX=:
17877
17878           # Commands to make compiler produce verbose output that lists
17879           # what "hidden" libraries, object files and flags are used when
17880           # linking a shared library.
17881           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17882
17883         else
17884           # FIXME: insert proper C++ library support
17885           ld_shlibs_CXX=no
17886         fi
17887         ;;
17888     esac
17889     ;;
17890   osf4* | osf5*)
17891     case $cc_basename in
17892       KCC*)
17893         # Kuck and Associates, Inc. (KAI) C++ Compiler
17894
17895         # KCC will only create a shared library if the output file
17896         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17897         # to its proper name (with version) after linking.
17898         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'
17899
17900         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901         hardcode_libdir_separator_CXX=:
17902
17903         # Archives containing C++ object files must be created using
17904         # the KAI C++ compiler.
17905         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17906         ;;
17907       RCC*)
17908         # Rational C++ 2.4.1
17909         # FIXME: insert proper C++ library support
17910         ld_shlibs_CXX=no
17911         ;;
17912       cxx*)
17913         allow_undefined_flag_CXX=' -expect_unresolved \*'
17914         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'
17915         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17916           echo "-hidden">> $lib.exp~
17917           $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~
17918           $rm $lib.exp'
17919
17920         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17921         hardcode_libdir_separator_CXX=:
17922
17923         # Commands to make compiler produce verbose output that lists
17924         # what "hidden" libraries, object files and flags are used when
17925         # linking a shared library.
17926         #
17927         # There doesn't appear to be a way to prevent this compiler from
17928         # explicitly linking system object files so we need to strip them
17929         # from the output so that they don't get included in the library
17930         # dependencies.
17931         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'
17932         ;;
17933       *)
17934         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17935           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17936          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'
17937
17938           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17939           hardcode_libdir_separator_CXX=:
17940
17941           # Commands to make compiler produce verbose output that lists
17942           # what "hidden" libraries, object files and flags are used when
17943           # linking a shared library.
17944           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17945
17946         else
17947           # FIXME: insert proper C++ library support
17948           ld_shlibs_CXX=no
17949         fi
17950         ;;
17951     esac
17952     ;;
17953   psos*)
17954     # FIXME: insert proper C++ library support
17955     ld_shlibs_CXX=no
17956     ;;
17957   sunos4*)
17958     case $cc_basename in
17959       CC*)
17960         # Sun C++ 4.x
17961         # FIXME: insert proper C++ library support
17962         ld_shlibs_CXX=no
17963         ;;
17964       lcc*)
17965         # Lucid
17966         # FIXME: insert proper C++ library support
17967         ld_shlibs_CXX=no
17968         ;;
17969       *)
17970         # FIXME: insert proper C++ library support
17971         ld_shlibs_CXX=no
17972         ;;
17973     esac
17974     ;;
17975   solaris*)
17976     case $cc_basename in
17977       CC*)
17978         # Sun C++ 4.2, 5.x and Centerline C++
17979         archive_cmds_need_lc_CXX=yes
17980         no_undefined_flag_CXX=' -zdefs'
17981         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17982         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17983         $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'
17984
17985         hardcode_libdir_flag_spec_CXX='-R$libdir'
17986         hardcode_shlibpath_var_CXX=no
17987         case $host_os in
17988           solaris2.[0-5] | solaris2.[0-5].*) ;;
17989           *)
17990             # The C++ compiler is used as linker so we must use $wl
17991             # flag to pass the commands to the underlying system
17992             # linker. We must also pass each convience library through
17993             # to the system linker between allextract/defaultextract.
17994             # The C++ compiler will combine linker options so we
17995             # cannot just pass the convience library names through
17996             # without $wl.
17997             # Supported since Solaris 2.6 (maybe 2.5.1?)
17998             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'
17999             ;;
18000         esac
18001         link_all_deplibs_CXX=yes
18002
18003         output_verbose_link_cmd='echo'
18004
18005         # Archives containing C++ object files must be created using
18006         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18007         # necessary to make sure instantiated templates are included
18008         # in the archive.
18009         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18010         ;;
18011       gcx*)
18012         # Green Hills C++ Compiler
18013         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18014
18015         # The C++ compiler must be used to create the archive.
18016         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18017         ;;
18018       *)
18019         # GNU C++ compiler with Solaris linker
18020         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18021           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18022           if $CC --version | grep -v '^2\.7' > /dev/null; then
18023             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18024             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18025                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18026
18027             # Commands to make compiler produce verbose output that lists
18028             # what "hidden" libraries, object files and flags are used when
18029             # linking a shared library.
18030             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18031           else
18032             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18033             # platform.
18034             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18035             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18036                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18037
18038             # Commands to make compiler produce verbose output that lists
18039             # what "hidden" libraries, object files and flags are used when
18040             # linking a shared library.
18041             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18042           fi
18043
18044           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18045         fi
18046         ;;
18047     esac
18048     ;;
18049   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18050     no_undefined_flag_CXX='${wl}-z,text'
18051     archive_cmds_need_lc_CXX=no
18052     hardcode_shlibpath_var_CXX=no
18053     runpath_var='LD_RUN_PATH'
18054
18055     case $cc_basename in
18056       CC*)
18057         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059         ;;
18060       *)
18061         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18063         ;;
18064     esac
18065     ;;
18066   sysv5* | sco3.2v5* | sco5v6*)
18067     # Note: We can NOT use -z defs as we might desire, because we do not
18068     # link with -lc, and that would cause any symbols used from libc to
18069     # always be unresolved, which means just about no library would
18070     # ever link correctly.  If we're not using GNU ld we use -z text
18071     # though, which does catch some bad symbols but isn't as heavy-handed
18072     # as -z defs.
18073     # For security reasons, it is highly recommended that you always
18074     # use absolute paths for naming shared libraries, and exclude the
18075     # DT_RUNPATH tag from executables and libraries.  But doing so
18076     # requires that you compile everything twice, which is a pain.
18077     # So that behaviour is only enabled if SCOABSPATH is set to a
18078     # non-empty value in the environment.  Most likely only useful for
18079     # creating official distributions of packages.
18080     # This is a hack until libtool officially supports absolute path
18081     # names for shared libraries.
18082     no_undefined_flag_CXX='${wl}-z,text'
18083     allow_undefined_flag_CXX='${wl}-z,nodefs'
18084     archive_cmds_need_lc_CXX=no
18085     hardcode_shlibpath_var_CXX=no
18086     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18087     hardcode_libdir_separator_CXX=':'
18088     link_all_deplibs_CXX=yes
18089     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18090     runpath_var='LD_RUN_PATH'
18091
18092     case $cc_basename in
18093       CC*)
18094         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096         ;;
18097       *)
18098         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100         ;;
18101     esac
18102     ;;
18103   tandem*)
18104     case $cc_basename in
18105       NCC*)
18106         # NonStop-UX NCC 3.20
18107         # FIXME: insert proper C++ library support
18108         ld_shlibs_CXX=no
18109         ;;
18110       *)
18111         # FIXME: insert proper C++ library support
18112         ld_shlibs_CXX=no
18113         ;;
18114     esac
18115     ;;
18116   vxworks*)
18117     # FIXME: insert proper C++ library support
18118     ld_shlibs_CXX=no
18119     ;;
18120   *)
18121     # FIXME: insert proper C++ library support
18122     ld_shlibs_CXX=no
18123     ;;
18124 esac
18125 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18126 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18127 test "$ld_shlibs_CXX" = no && can_build_shared=no
18128
18129 GCC_CXX="$GXX"
18130 LD_CXX="$LD"
18131
18132
18133 cat > conftest.$ac_ext <<EOF
18134 class Foo
18135 {
18136 public:
18137   Foo (void) { a = 0; }
18138 private:
18139   int a;
18140 };
18141 EOF
18142
18143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18144   (eval $ac_compile) 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; then
18148   # Parse the compiler output and extract the necessary
18149   # objects, libraries and library flags.
18150
18151   # Sentinel used to keep track of whether or not we are before
18152   # the conftest object file.
18153   pre_test_object_deps_done=no
18154
18155   # The `*' in the case matches for architectures that use `case' in
18156   # $output_verbose_cmd can trigger glob expansion during the loop
18157   # eval without this substitution.
18158   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18159
18160   for p in `eval $output_verbose_link_cmd`; do
18161     case $p in
18162
18163     -L* | -R* | -l*)
18164        # Some compilers place space between "-{L,R}" and the path.
18165        # Remove the space.
18166        if test $p = "-L" \
18167           || test $p = "-R"; then
18168          prev=$p
18169          continue
18170        else
18171          prev=
18172        fi
18173
18174        if test "$pre_test_object_deps_done" = no; then
18175          case $p in
18176          -L* | -R*)
18177            # Internal compiler library paths should come after those
18178            # provided the user.  The postdeps already come after the
18179            # user supplied libs so there is no need to process them.
18180            if test -z "$compiler_lib_search_path_CXX"; then
18181              compiler_lib_search_path_CXX="${prev}${p}"
18182            else
18183              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18184            fi
18185            ;;
18186          # The "-l" case would never come before the object being
18187          # linked, so don't bother handling this case.
18188          esac
18189        else
18190          if test -z "$postdeps_CXX"; then
18191            postdeps_CXX="${prev}${p}"
18192          else
18193            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18194          fi
18195        fi
18196        ;;
18197
18198     *.$objext)
18199        # This assumes that the test object file only shows up
18200        # once in the compiler output.
18201        if test "$p" = "conftest.$objext"; then
18202          pre_test_object_deps_done=yes
18203          continue
18204        fi
18205
18206        if test "$pre_test_object_deps_done" = no; then
18207          if test -z "$predep_objects_CXX"; then
18208            predep_objects_CXX="$p"
18209          else
18210            predep_objects_CXX="$predep_objects_CXX $p"
18211          fi
18212        else
18213          if test -z "$postdep_objects_CXX"; then
18214            postdep_objects_CXX="$p"
18215          else
18216            postdep_objects_CXX="$postdep_objects_CXX $p"
18217          fi
18218        fi
18219        ;;
18220
18221     *) ;; # Ignore the rest.
18222
18223     esac
18224   done
18225
18226   # Clean up.
18227   rm -f a.out a.exe
18228 else
18229   echo "libtool.m4: error: problem compiling CXX test program"
18230 fi
18231
18232 $rm -f confest.$objext
18233
18234 # PORTME: override above test on systems where it is broken
18235 case $host_os in
18236 interix3*)
18237   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18238   # hack all around it, let's just trust "g++" to DTRT.
18239   predep_objects_CXX=
18240   postdep_objects_CXX=
18241   postdeps_CXX=
18242   ;;
18243
18244 solaris*)
18245   case $cc_basename in
18246   CC*)
18247     # Adding this requires a known-good setup of shared libraries for
18248     # Sun compiler versions before 5.6, else PIC objects from an old
18249     # archive will be linked into the output, leading to subtle bugs.
18250     postdeps_CXX='-lCstd -lCrun'
18251     ;;
18252   esac
18253   ;;
18254 esac
18255
18256
18257 case " $postdeps_CXX " in
18258 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18259 esac
18260
18261 lt_prog_compiler_wl_CXX=
18262 lt_prog_compiler_pic_CXX=
18263 lt_prog_compiler_static_CXX=
18264
18265 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18267
18268   # C++ specific cases for pic, static, wl, etc.
18269   if test "$GXX" = yes; then
18270     lt_prog_compiler_wl_CXX='-Wl,'
18271     lt_prog_compiler_static_CXX='-static'
18272
18273     case $host_os in
18274     aix*)
18275       # All AIX code is PIC.
18276       if test "$host_cpu" = ia64; then
18277         # AIX 5 now supports IA64 processor
18278         lt_prog_compiler_static_CXX='-Bstatic'
18279       fi
18280       ;;
18281     amigaos*)
18282       # FIXME: we need at least 68020 code to build shared libraries, but
18283       # adding the `-m68020' flag to GCC prevents building anything better,
18284       # like `-m68040'.
18285       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18286       ;;
18287     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18288       # PIC is the default for these OSes.
18289       ;;
18290     mingw* | os2* | pw32*)
18291       # This hack is so that the source file can tell whether it is being
18292       # built for inclusion in a dll (and should export symbols for example).
18293       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18294       ;;
18295     darwin* | rhapsody*)
18296       # PIC is the default on this platform
18297       # Common symbols not allowed in MH_DYLIB files
18298       lt_prog_compiler_pic_CXX='-fno-common'
18299       ;;
18300     *djgpp*)
18301       # DJGPP does not support shared libraries at all
18302       lt_prog_compiler_pic_CXX=
18303       ;;
18304     interix3*)
18305       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18306       # Instead, we relocate shared libraries at runtime.
18307       ;;
18308     sysv4*MP*)
18309       if test -d /usr/nec; then
18310         lt_prog_compiler_pic_CXX=-Kconform_pic
18311       fi
18312       ;;
18313     hpux*)
18314       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18315       # not for PA HP-UX.
18316       case $host_cpu in
18317       hppa*64*|ia64*)
18318         ;;
18319       *)
18320         lt_prog_compiler_pic_CXX='-fPIC'
18321         ;;
18322       esac
18323       ;;
18324     *)
18325       lt_prog_compiler_pic_CXX='-fPIC'
18326       ;;
18327     esac
18328   else
18329     case $host_os in
18330       aix4* | aix5*)
18331         # All AIX code is PIC.
18332         if test "$host_cpu" = ia64; then
18333           # AIX 5 now supports IA64 processor
18334           lt_prog_compiler_static_CXX='-Bstatic'
18335         else
18336           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18337         fi
18338         ;;
18339       chorus*)
18340         case $cc_basename in
18341         cxch68*)
18342           # Green Hills C++ Compiler
18343           # _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"
18344           ;;
18345         esac
18346         ;;
18347        darwin*)
18348          # PIC is the default on this platform
18349          # Common symbols not allowed in MH_DYLIB files
18350          case $cc_basename in
18351            xlc*)
18352            lt_prog_compiler_pic_CXX='-qnocommon'
18353            lt_prog_compiler_wl_CXX='-Wl,'
18354            ;;
18355          esac
18356        ;;
18357       dgux*)
18358         case $cc_basename in
18359           ec++*)
18360             lt_prog_compiler_pic_CXX='-KPIC'
18361             ;;
18362           ghcx*)
18363             # Green Hills C++ Compiler
18364             lt_prog_compiler_pic_CXX='-pic'
18365             ;;
18366           *)
18367             ;;
18368         esac
18369         ;;
18370       freebsd* | kfreebsd*-gnu | dragonfly*)
18371         # FreeBSD uses GNU C++
18372         ;;
18373       hpux9* | hpux10* | hpux11*)
18374         case $cc_basename in
18375           CC*)
18376             lt_prog_compiler_wl_CXX='-Wl,'
18377             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18378             if test "$host_cpu" != ia64; then
18379               lt_prog_compiler_pic_CXX='+Z'
18380             fi
18381             ;;
18382           aCC*)
18383             lt_prog_compiler_wl_CXX='-Wl,'
18384             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18385             case $host_cpu in
18386             hppa*64*|ia64*)
18387               # +Z the default
18388               ;;
18389             *)
18390               lt_prog_compiler_pic_CXX='+Z'
18391               ;;
18392             esac
18393             ;;
18394           *)
18395             ;;
18396         esac
18397         ;;
18398       interix*)
18399         # This is c89, which is MS Visual C++ (no shared libs)
18400         # Anyone wants to do a port?
18401         ;;
18402       irix5* | irix6* | nonstopux*)
18403         case $cc_basename in
18404           CC*)
18405             lt_prog_compiler_wl_CXX='-Wl,'
18406             lt_prog_compiler_static_CXX='-non_shared'
18407             # CC pic flag -KPIC is the default.
18408             ;;
18409           *)
18410             ;;
18411         esac
18412         ;;
18413       linux*)
18414         case $cc_basename in
18415           KCC*)
18416             # KAI C++ Compiler
18417             lt_prog_compiler_wl_CXX='--backend -Wl,'
18418             lt_prog_compiler_pic_CXX='-fPIC'
18419             ;;
18420           icpc* | ecpc*)
18421             # Intel C++
18422             lt_prog_compiler_wl_CXX='-Wl,'
18423             lt_prog_compiler_pic_CXX='-KPIC'
18424             lt_prog_compiler_static_CXX='-static'
18425             ;;
18426           pgCC*)
18427             # Portland Group C++ compiler.
18428             lt_prog_compiler_wl_CXX='-Wl,'
18429             lt_prog_compiler_pic_CXX='-fpic'
18430             lt_prog_compiler_static_CXX='-Bstatic'
18431             ;;
18432           cxx*)
18433             # Compaq C++
18434             # Make sure the PIC flag is empty.  It appears that all Alpha
18435             # Linux and Compaq Tru64 Unix objects are PIC.
18436             lt_prog_compiler_pic_CXX=
18437             lt_prog_compiler_static_CXX='-non_shared'
18438             ;;
18439           *)
18440             ;;
18441         esac
18442         ;;
18443       lynxos*)
18444         ;;
18445       m88k*)
18446         ;;
18447       mvs*)
18448         case $cc_basename in
18449           cxx*)
18450             lt_prog_compiler_pic_CXX='-W c,exportall'
18451             ;;
18452           *)
18453             ;;
18454         esac
18455         ;;
18456       netbsd*)
18457         ;;
18458       osf3* | osf4* | osf5*)
18459         case $cc_basename in
18460           KCC*)
18461             lt_prog_compiler_wl_CXX='--backend -Wl,'
18462             ;;
18463           RCC*)
18464             # Rational C++ 2.4.1
18465             lt_prog_compiler_pic_CXX='-pic'
18466             ;;
18467           cxx*)
18468             # Digital/Compaq C++
18469             lt_prog_compiler_wl_CXX='-Wl,'
18470             # Make sure the PIC flag is empty.  It appears that all Alpha
18471             # Linux and Compaq Tru64 Unix objects are PIC.
18472             lt_prog_compiler_pic_CXX=
18473             lt_prog_compiler_static_CXX='-non_shared'
18474             ;;
18475           *)
18476             ;;
18477         esac
18478         ;;
18479       psos*)
18480         ;;
18481       solaris*)
18482         case $cc_basename in
18483           CC*)
18484             # Sun C++ 4.2, 5.x and Centerline C++
18485             lt_prog_compiler_pic_CXX='-KPIC'
18486             lt_prog_compiler_static_CXX='-Bstatic'
18487             lt_prog_compiler_wl_CXX='-Qoption ld '
18488             ;;
18489           gcx*)
18490             # Green Hills C++ Compiler
18491             lt_prog_compiler_pic_CXX='-PIC'
18492             ;;
18493           *)
18494             ;;
18495         esac
18496         ;;
18497       sunos4*)
18498         case $cc_basename in
18499           CC*)
18500             # Sun C++ 4.x
18501             lt_prog_compiler_pic_CXX='-pic'
18502             lt_prog_compiler_static_CXX='-Bstatic'
18503             ;;
18504           lcc*)
18505             # Lucid
18506             lt_prog_compiler_pic_CXX='-pic'
18507             ;;
18508           *)
18509             ;;
18510         esac
18511         ;;
18512       tandem*)
18513         case $cc_basename in
18514           NCC*)
18515             # NonStop-UX NCC 3.20
18516             lt_prog_compiler_pic_CXX='-KPIC'
18517             ;;
18518           *)
18519             ;;
18520         esac
18521         ;;
18522       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18523         case $cc_basename in
18524           CC*)
18525             lt_prog_compiler_wl_CXX='-Wl,'
18526             lt_prog_compiler_pic_CXX='-KPIC'
18527             lt_prog_compiler_static_CXX='-Bstatic'
18528             ;;
18529         esac
18530         ;;
18531       vxworks*)
18532         ;;
18533       *)
18534         lt_prog_compiler_can_build_shared_CXX=no
18535         ;;
18536     esac
18537   fi
18538
18539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18540 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18541
18542 #
18543 # Check to make sure the PIC flag actually works.
18544 #
18545 if test -n "$lt_prog_compiler_pic_CXX"; then
18546
18547 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18549 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552   lt_prog_compiler_pic_works_CXX=no
18553   ac_outfile=conftest.$ac_objext
18554    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18555    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18556    # Insert the option either (1) after the last *FLAGS variable, or
18557    # (2) before a word containing "conftest.", or (3) at the end.
18558    # Note that $ac_compile itself does not contain backslashes and begins
18559    # with a dollar sign (not a hyphen), so the echo should work correctly.
18560    # The option is referenced via a variable to avoid confusing sed.
18561    lt_compile=`echo "$ac_compile" | $SED \
18562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18564    -e 's:$: $lt_compiler_flag:'`
18565    (eval echo "\"\$as_me:18565: $lt_compile\"" >&5)
18566    (eval "$lt_compile" 2>conftest.err)
18567    ac_status=$?
18568    cat conftest.err >&5
18569    echo "$as_me:18569: \$? = $ac_status" >&5
18570    if (exit $ac_status) && test -s "$ac_outfile"; then
18571      # The compiler can only warn and ignore the option if not recognized
18572      # So say no if there are warnings other than the usual output.
18573      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18574      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18575      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18576        lt_prog_compiler_pic_works_CXX=yes
18577      fi
18578    fi
18579    $rm conftest*
18580
18581 fi
18582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18583 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18584
18585 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18586     case $lt_prog_compiler_pic_CXX in
18587      "" | " "*) ;;
18588      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18589      esac
18590 else
18591     lt_prog_compiler_pic_CXX=
18592      lt_prog_compiler_can_build_shared_CXX=no
18593 fi
18594
18595 fi
18596 case $host_os in
18597   # For platforms which do not support PIC, -DPIC is meaningless:
18598   *djgpp*)
18599     lt_prog_compiler_pic_CXX=
18600     ;;
18601   *)
18602     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18603     ;;
18604 esac
18605
18606 #
18607 # Check to make sure the static flag actually works.
18608 #
18609 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18610 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18611 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18612 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18613   echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615   lt_prog_compiler_static_works_CXX=no
18616    save_LDFLAGS="$LDFLAGS"
18617    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18618    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18619    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18620      # The linker can only warn and ignore the option if not recognized
18621      # So say no if there are warnings
18622      if test -s conftest.err; then
18623        # Append any errors to the config.log.
18624        cat conftest.err 1>&5
18625        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18626        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18627        if diff conftest.exp conftest.er2 >/dev/null; then
18628          lt_prog_compiler_static_works_CXX=yes
18629        fi
18630      else
18631        lt_prog_compiler_static_works_CXX=yes
18632      fi
18633    fi
18634    $rm conftest*
18635    LDFLAGS="$save_LDFLAGS"
18636
18637 fi
18638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18639 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18640
18641 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18642     :
18643 else
18644     lt_prog_compiler_static_CXX=
18645 fi
18646
18647
18648 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18649 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18650 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18651   echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653   lt_cv_prog_compiler_c_o_CXX=no
18654    $rm -r conftest 2>/dev/null
18655    mkdir conftest
18656    cd conftest
18657    mkdir out
18658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18659
18660    lt_compiler_flag="-o out/conftest2.$ac_objext"
18661    # Insert the option either (1) after the last *FLAGS variable, or
18662    # (2) before a word containing "conftest.", or (3) at the end.
18663    # Note that $ac_compile itself does not contain backslashes and begins
18664    # with a dollar sign (not a hyphen), so the echo should work correctly.
18665    lt_compile=`echo "$ac_compile" | $SED \
18666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18668    -e 's:$: $lt_compiler_flag:'`
18669    (eval echo "\"\$as_me:18669: $lt_compile\"" >&5)
18670    (eval "$lt_compile" 2>out/conftest.err)
18671    ac_status=$?
18672    cat out/conftest.err >&5
18673    echo "$as_me:18673: \$? = $ac_status" >&5
18674    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18675    then
18676      # The compiler can only warn and ignore the option if not recognized
18677      # So say no if there are warnings
18678      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18679      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18680      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18681        lt_cv_prog_compiler_c_o_CXX=yes
18682      fi
18683    fi
18684    chmod u+w . 2>&5
18685    $rm conftest*
18686    # SGI C++ compiler will create directory out/ii_files/ for
18687    # template instantiation
18688    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18689    $rm out/* && rmdir out
18690    cd ..
18691    rmdir conftest
18692    $rm conftest*
18693
18694 fi
18695 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18696 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18697
18698
18699 hard_links="nottested"
18700 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18701   # do not overwrite the value of need_locks provided by the user
18702   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18703 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18704   hard_links=yes
18705   $rm conftest*
18706   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18707   touch conftest.a
18708   ln conftest.a conftest.b 2>&5 || hard_links=no
18709   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18710   { echo "$as_me:$LINENO: result: $hard_links" >&5
18711 echo "${ECHO_T}$hard_links" >&6; }
18712   if test "$hard_links" = no; then
18713     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18714 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18715     need_locks=warn
18716   fi
18717 else
18718   need_locks=no
18719 fi
18720
18721 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18722 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18723
18724   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18725   case $host_os in
18726   aix4* | aix5*)
18727     # If we're using GNU nm, then we don't want the "-C" option.
18728     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18729     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18730       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'
18731     else
18732       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'
18733     fi
18734     ;;
18735   pw32*)
18736     export_symbols_cmds_CXX="$ltdll_cmds"
18737   ;;
18738   cygwin* | mingw*)
18739     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'
18740   ;;
18741   *)
18742     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18743   ;;
18744   esac
18745
18746 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18747 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18748 test "$ld_shlibs_CXX" = no && can_build_shared=no
18749
18750 #
18751 # Do we need to explicitly link libc?
18752 #
18753 case "x$archive_cmds_need_lc_CXX" in
18754 x|xyes)
18755   # Assume -lc should be added
18756   archive_cmds_need_lc_CXX=yes
18757
18758   if test "$enable_shared" = yes && test "$GCC" = yes; then
18759     case $archive_cmds_CXX in
18760     *'~'*)
18761       # FIXME: we may have to deal with multi-command sequences.
18762       ;;
18763     '$CC '*)
18764       # Test whether the compiler implicitly links with -lc since on some
18765       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18766       # to ld, don't add -lc before -lgcc.
18767       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18769       $rm conftest*
18770       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18771
18772       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773   (eval $ac_compile) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } 2>conftest.err; then
18777         soname=conftest
18778         lib=conftest
18779         libobjs=conftest.$ac_objext
18780         deplibs=
18781         wl=$lt_prog_compiler_wl_CXX
18782         pic_flag=$lt_prog_compiler_pic_CXX
18783         compiler_flags=-v
18784         linker_flags=-v
18785         verstring=
18786         output_objdir=.
18787         libname=conftest
18788         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18789         allow_undefined_flag_CXX=
18790         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18791   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }
18795         then
18796           archive_cmds_need_lc_CXX=no
18797         else
18798           archive_cmds_need_lc_CXX=yes
18799         fi
18800         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18801       else
18802         cat conftest.err 1>&5
18803       fi
18804       $rm conftest*
18805       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18806 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18807       ;;
18808     esac
18809   fi
18810   ;;
18811 esac
18812
18813 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18814 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18815 library_names_spec=
18816 libname_spec='lib$name'
18817 soname_spec=
18818 shrext_cmds=".so"
18819 postinstall_cmds=
18820 postuninstall_cmds=
18821 finish_cmds=
18822 finish_eval=
18823 shlibpath_var=
18824 shlibpath_overrides_runpath=unknown
18825 version_type=none
18826 dynamic_linker="$host_os ld.so"
18827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18828 if test "$GCC" = yes; then
18829   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18830   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18831     # if the path contains ";" then we assume it to be the separator
18832     # otherwise default to the standard path separator (i.e. ":") - it is
18833     # assumed that no part of a normal pathname contains ";" but that should
18834     # okay in the real world where ";" in dirpaths is itself problematic.
18835     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18836   else
18837     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18838   fi
18839 else
18840   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18841 fi
18842 need_lib_prefix=unknown
18843 hardcode_into_libs=no
18844
18845 # when you set need_version to no, make sure it does not cause -set_version
18846 # flags to be left without arguments
18847 need_version=unknown
18848
18849 case $host_os in
18850 aix3*)
18851   version_type=linux
18852   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18853   shlibpath_var=LIBPATH
18854
18855   # AIX 3 has no versioning support, so we append a major version to the name.
18856   soname_spec='${libname}${release}${shared_ext}$major'
18857   ;;
18858
18859 aix4* | aix5*)
18860   version_type=linux
18861   need_lib_prefix=no
18862   need_version=no
18863   hardcode_into_libs=yes
18864   if test "$host_cpu" = ia64; then
18865     # AIX 5 supports IA64
18866     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18867     shlibpath_var=LD_LIBRARY_PATH
18868   else
18869     # With GCC up to 2.95.x, collect2 would create an import file
18870     # for dependence libraries.  The import file would start with
18871     # the line `#! .'.  This would cause the generated library to
18872     # depend on `.', always an invalid library.  This was fixed in
18873     # development snapshots of GCC prior to 3.0.
18874     case $host_os in
18875       aix4 | aix4.[01] | aix4.[01].*)
18876       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18877            echo ' yes '
18878            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18879         :
18880       else
18881         can_build_shared=no
18882       fi
18883       ;;
18884     esac
18885     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18886     # soname into executable. Probably we can add versioning support to
18887     # collect2, so additional links can be useful in future.
18888     if test "$aix_use_runtimelinking" = yes; then
18889       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18890       # instead of lib<name>.a to let people know that these are not
18891       # typical AIX shared libraries.
18892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18893     else
18894       # We preserve .a as extension for shared libraries through AIX4.2
18895       # and later when we are not doing run time linking.
18896       library_names_spec='${libname}${release}.a $libname.a'
18897       soname_spec='${libname}${release}${shared_ext}$major'
18898     fi
18899     shlibpath_var=LIBPATH
18900   fi
18901   ;;
18902
18903 amigaos*)
18904   library_names_spec='$libname.ixlibrary $libname.a'
18905   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18906   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'
18907   ;;
18908
18909 beos*)
18910   library_names_spec='${libname}${shared_ext}'
18911   dynamic_linker="$host_os ld.so"
18912   shlibpath_var=LIBRARY_PATH
18913   ;;
18914
18915 bsdi[45]*)
18916   version_type=linux
18917   need_version=no
18918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919   soname_spec='${libname}${release}${shared_ext}$major'
18920   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18921   shlibpath_var=LD_LIBRARY_PATH
18922   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18923   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18924   # the default ld.so.conf also contains /usr/contrib/lib and
18925   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18926   # libtool to hard-code these into programs
18927   ;;
18928
18929 cygwin* | mingw* | pw32*)
18930   version_type=windows
18931   shrext_cmds=".dll"
18932   need_version=no
18933   need_lib_prefix=no
18934
18935   case $GCC,$host_os in
18936   yes,cygwin* | yes,mingw* | yes,pw32*)
18937     library_names_spec='$libname.dll.a'
18938     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18939     postinstall_cmds='base_file=`basename \${file}`~
18940       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18941       dldir=$destdir/`dirname \$dlpath`~
18942       test -d \$dldir || mkdir -p \$dldir~
18943       $install_prog $dir/$dlname \$dldir/$dlname~
18944       chmod a+x \$dldir/$dlname'
18945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18946       dlpath=$dir/\$dldll~
18947        $rm \$dlpath'
18948     shlibpath_overrides_runpath=yes
18949
18950     case $host_os in
18951     cygwin*)
18952       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18953       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18954       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18955       ;;
18956     mingw*)
18957       # MinGW DLLs use traditional 'lib' prefix
18958       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18959       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18960       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18961         # It is most probably a Windows format PATH printed by
18962         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18963         # path with ; separators, and with drive letters. We can handle the
18964         # drive letters (cygwin fileutils understands them), so leave them,
18965         # especially as we might pass files found there to a mingw objdump,
18966         # which wouldn't understand a cygwinified path. Ahh.
18967         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18968       else
18969         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18970       fi
18971       ;;
18972     pw32*)
18973       # pw32 DLLs use 'pw' prefix rather than 'lib'
18974       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18975       ;;
18976     esac
18977     ;;
18978
18979   *)
18980     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18981     ;;
18982   esac
18983   dynamic_linker='Win32 ld.exe'
18984   # FIXME: first we should search . and the directory the executable is in
18985   shlibpath_var=PATH
18986   ;;
18987
18988 darwin* | rhapsody*)
18989   dynamic_linker="$host_os dyld"
18990   version_type=darwin
18991   need_lib_prefix=no
18992   need_version=no
18993   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18994   soname_spec='${libname}${release}${major}$shared_ext'
18995   shlibpath_overrides_runpath=yes
18996   shlibpath_var=DYLD_LIBRARY_PATH
18997   shrext_cmds='.dylib'
18998   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18999   if test "$GCC" = yes; then
19000     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"`
19001   else
19002     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19003   fi
19004   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19005   ;;
19006
19007 dgux*)
19008   version_type=linux
19009   need_lib_prefix=no
19010   need_version=no
19011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19012   soname_spec='${libname}${release}${shared_ext}$major'
19013   shlibpath_var=LD_LIBRARY_PATH
19014   ;;
19015
19016 freebsd1*)
19017   dynamic_linker=no
19018   ;;
19019
19020 kfreebsd*-gnu)
19021   version_type=linux
19022   need_lib_prefix=no
19023   need_version=no
19024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19025   soname_spec='${libname}${release}${shared_ext}$major'
19026   shlibpath_var=LD_LIBRARY_PATH
19027   shlibpath_overrides_runpath=no
19028   hardcode_into_libs=yes
19029   dynamic_linker='GNU ld.so'
19030   ;;
19031
19032 freebsd* | dragonfly*)
19033   # DragonFly does not have aout.  When/if they implement a new
19034   # versioning mechanism, adjust this.
19035   if test -x /usr/bin/objformat; then
19036     objformat=`/usr/bin/objformat`
19037   else
19038     case $host_os in
19039     freebsd[123]*) objformat=aout ;;
19040     *) objformat=elf ;;
19041     esac
19042   fi
19043   version_type=freebsd-$objformat
19044   case $version_type in
19045     freebsd-elf*)
19046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19047       need_version=no
19048       need_lib_prefix=no
19049       ;;
19050     freebsd-*)
19051       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19052       need_version=yes
19053       ;;
19054   esac
19055   shlibpath_var=LD_LIBRARY_PATH
19056   case $host_os in
19057   freebsd2*)
19058     shlibpath_overrides_runpath=yes
19059     ;;
19060   freebsd3.[01]* | freebsdelf3.[01]*)
19061     shlibpath_overrides_runpath=yes
19062     hardcode_into_libs=yes
19063     ;;
19064   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19065   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19066     shlibpath_overrides_runpath=no
19067     hardcode_into_libs=yes
19068     ;;
19069   freebsd*) # from 4.6 on
19070     shlibpath_overrides_runpath=yes
19071     hardcode_into_libs=yes
19072     ;;
19073   esac
19074   ;;
19075
19076 gnu*)
19077   version_type=linux
19078   need_lib_prefix=no
19079   need_version=no
19080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19081   soname_spec='${libname}${release}${shared_ext}$major'
19082   shlibpath_var=LD_LIBRARY_PATH
19083   hardcode_into_libs=yes
19084   ;;
19085
19086 hpux9* | hpux10* | hpux11*)
19087   # Give a soname corresponding to the major version so that dld.sl refuses to
19088   # link against other versions.
19089   version_type=sunos
19090   need_lib_prefix=no
19091   need_version=no
19092   case $host_cpu in
19093   ia64*)
19094     shrext_cmds='.so'
19095     hardcode_into_libs=yes
19096     dynamic_linker="$host_os dld.so"
19097     shlibpath_var=LD_LIBRARY_PATH
19098     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100     soname_spec='${libname}${release}${shared_ext}$major'
19101     if test "X$HPUX_IA64_MODE" = X32; then
19102       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19103     else
19104       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19105     fi
19106     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19107     ;;
19108    hppa*64*)
19109      shrext_cmds='.sl'
19110      hardcode_into_libs=yes
19111      dynamic_linker="$host_os dld.sl"
19112      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19113      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19114      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115      soname_spec='${libname}${release}${shared_ext}$major'
19116      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19117      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19118      ;;
19119    *)
19120     shrext_cmds='.sl'
19121     dynamic_linker="$host_os dld.sl"
19122     shlibpath_var=SHLIB_PATH
19123     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125     soname_spec='${libname}${release}${shared_ext}$major'
19126     ;;
19127   esac
19128   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19129   postinstall_cmds='chmod 555 $lib'
19130   ;;
19131
19132 interix3*)
19133   version_type=linux
19134   need_lib_prefix=no
19135   need_version=no
19136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19137   soname_spec='${libname}${release}${shared_ext}$major'
19138   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19139   shlibpath_var=LD_LIBRARY_PATH
19140   shlibpath_overrides_runpath=no
19141   hardcode_into_libs=yes
19142   ;;
19143
19144 irix5* | irix6* | nonstopux*)
19145   case $host_os in
19146     nonstopux*) version_type=nonstopux ;;
19147     *)
19148         if test "$lt_cv_prog_gnu_ld" = yes; then
19149                 version_type=linux
19150         else
19151                 version_type=irix
19152         fi ;;
19153   esac
19154   need_lib_prefix=no
19155   need_version=no
19156   soname_spec='${libname}${release}${shared_ext}$major'
19157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19158   case $host_os in
19159   irix5* | nonstopux*)
19160     libsuff= shlibsuff=
19161     ;;
19162   *)
19163     case $LD in # libtool.m4 will add one of these switches to LD
19164     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19165       libsuff= shlibsuff= libmagic=32-bit;;
19166     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19167       libsuff=32 shlibsuff=N32 libmagic=N32;;
19168     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19169       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19170     *) libsuff= shlibsuff= libmagic=never-match;;
19171     esac
19172     ;;
19173   esac
19174   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19175   shlibpath_overrides_runpath=no
19176   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19177   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19178   hardcode_into_libs=yes
19179   ;;
19180
19181 # No shared lib support for Linux oldld, aout, or coff.
19182 linux*oldld* | linux*aout* | linux*coff*)
19183   dynamic_linker=no
19184   ;;
19185
19186 # This must be Linux ELF.
19187 linux*)
19188   version_type=linux
19189   need_lib_prefix=no
19190   need_version=no
19191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19192   soname_spec='${libname}${release}${shared_ext}$major'
19193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19194   shlibpath_var=LD_LIBRARY_PATH
19195   shlibpath_overrides_runpath=no
19196   # This implies no fast_install, which is unacceptable.
19197   # Some rework will be needed to allow for fast_install
19198   # before this can be enabled.
19199   hardcode_into_libs=yes
19200
19201   # Append ld.so.conf contents to the search path
19202   if test -f /etc/ld.so.conf; then
19203     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' ' '`
19204     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19205   fi
19206
19207   # We used to test for /lib/ld.so.1 and disable shared libraries on
19208   # powerpc, because MkLinux only supported shared libraries with the
19209   # GNU dynamic linker.  Since this was broken with cross compilers,
19210   # most powerpc-linux boxes support dynamic linking these days and
19211   # people can always --disable-shared, the test was removed, and we
19212   # assume the GNU/Linux dynamic linker is in use.
19213   dynamic_linker='GNU/Linux ld.so'
19214   ;;
19215
19216 knetbsd*-gnu)
19217   version_type=linux
19218   need_lib_prefix=no
19219   need_version=no
19220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19221   soname_spec='${libname}${release}${shared_ext}$major'
19222   shlibpath_var=LD_LIBRARY_PATH
19223   shlibpath_overrides_runpath=no
19224   hardcode_into_libs=yes
19225   dynamic_linker='GNU ld.so'
19226   ;;
19227
19228 netbsd*)
19229   version_type=sunos
19230   need_lib_prefix=no
19231   need_version=no
19232   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235     dynamic_linker='NetBSD (a.out) ld.so'
19236   else
19237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19238     soname_spec='${libname}${release}${shared_ext}$major'
19239     dynamic_linker='NetBSD ld.elf_so'
19240   fi
19241   shlibpath_var=LD_LIBRARY_PATH
19242   shlibpath_overrides_runpath=yes
19243   hardcode_into_libs=yes
19244   ;;
19245
19246 newsos6)
19247   version_type=linux
19248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249   shlibpath_var=LD_LIBRARY_PATH
19250   shlibpath_overrides_runpath=yes
19251   ;;
19252
19253 nto-qnx*)
19254   version_type=linux
19255   need_lib_prefix=no
19256   need_version=no
19257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258   soname_spec='${libname}${release}${shared_ext}$major'
19259   shlibpath_var=LD_LIBRARY_PATH
19260   shlibpath_overrides_runpath=yes
19261   ;;
19262
19263 openbsd*)
19264   version_type=sunos
19265   sys_lib_dlsearch_path_spec="/usr/lib"
19266   need_lib_prefix=no
19267   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19268   case $host_os in
19269     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19270     *)                         need_version=no  ;;
19271   esac
19272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19273   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19274   shlibpath_var=LD_LIBRARY_PATH
19275   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19276     case $host_os in
19277       openbsd2.[89] | openbsd2.[89].*)
19278         shlibpath_overrides_runpath=no
19279         ;;
19280       *)
19281         shlibpath_overrides_runpath=yes
19282         ;;
19283       esac
19284   else
19285     shlibpath_overrides_runpath=yes
19286   fi
19287   ;;
19288
19289 os2*)
19290   libname_spec='$name'
19291   shrext_cmds=".dll"
19292   need_lib_prefix=no
19293   library_names_spec='$libname${shared_ext} $libname.a'
19294   dynamic_linker='OS/2 ld.exe'
19295   shlibpath_var=LIBPATH
19296   ;;
19297
19298 osf3* | osf4* | osf5*)
19299   version_type=osf
19300   need_lib_prefix=no
19301   need_version=no
19302   soname_spec='${libname}${release}${shared_ext}$major'
19303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19304   shlibpath_var=LD_LIBRARY_PATH
19305   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19306   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19307   ;;
19308
19309 solaris*)
19310   version_type=linux
19311   need_lib_prefix=no
19312   need_version=no
19313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314   soname_spec='${libname}${release}${shared_ext}$major'
19315   shlibpath_var=LD_LIBRARY_PATH
19316   shlibpath_overrides_runpath=yes
19317   hardcode_into_libs=yes
19318   # ldd complains unless libraries are executable
19319   postinstall_cmds='chmod +x $lib'
19320   ;;
19321
19322 sunos4*)
19323   version_type=sunos
19324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19325   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19326   shlibpath_var=LD_LIBRARY_PATH
19327   shlibpath_overrides_runpath=yes
19328   if test "$with_gnu_ld" = yes; then
19329     need_lib_prefix=no
19330   fi
19331   need_version=yes
19332   ;;
19333
19334 sysv4 | sysv4.3*)
19335   version_type=linux
19336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19337   soname_spec='${libname}${release}${shared_ext}$major'
19338   shlibpath_var=LD_LIBRARY_PATH
19339   case $host_vendor in
19340     sni)
19341       shlibpath_overrides_runpath=no
19342       need_lib_prefix=no
19343       export_dynamic_flag_spec='${wl}-Blargedynsym'
19344       runpath_var=LD_RUN_PATH
19345       ;;
19346     siemens)
19347       need_lib_prefix=no
19348       ;;
19349     motorola)
19350       need_lib_prefix=no
19351       need_version=no
19352       shlibpath_overrides_runpath=no
19353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19354       ;;
19355   esac
19356   ;;
19357
19358 sysv4*MP*)
19359   if test -d /usr/nec ;then
19360     version_type=linux
19361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19362     soname_spec='$libname${shared_ext}.$major'
19363     shlibpath_var=LD_LIBRARY_PATH
19364   fi
19365   ;;
19366
19367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19368   version_type=freebsd-elf
19369   need_lib_prefix=no
19370   need_version=no
19371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19372   soname_spec='${libname}${release}${shared_ext}$major'
19373   shlibpath_var=LD_LIBRARY_PATH
19374   hardcode_into_libs=yes
19375   if test "$with_gnu_ld" = yes; then
19376     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19377     shlibpath_overrides_runpath=no
19378   else
19379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19380     shlibpath_overrides_runpath=yes
19381     case $host_os in
19382       sco3.2v5*)
19383         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19384         ;;
19385     esac
19386   fi
19387   sys_lib_dlsearch_path_spec='/usr/lib'
19388   ;;
19389
19390 uts4*)
19391   version_type=linux
19392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393   soname_spec='${libname}${release}${shared_ext}$major'
19394   shlibpath_var=LD_LIBRARY_PATH
19395   ;;
19396
19397 *)
19398   dynamic_linker=no
19399   ;;
19400 esac
19401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19402 echo "${ECHO_T}$dynamic_linker" >&6; }
19403 test "$dynamic_linker" = no && can_build_shared=no
19404
19405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19406 if test "$GCC" = yes; then
19407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19408 fi
19409
19410 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19412 hardcode_action_CXX=
19413 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19414    test -n "$runpath_var_CXX" || \
19415    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19416
19417   # We can hardcode non-existant directories.
19418   if test "$hardcode_direct_CXX" != no &&
19419      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19420      # have to relink, otherwise we might link with an installed library
19421      # when we should be linking with a yet-to-be-installed one
19422      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19423      test "$hardcode_minus_L_CXX" != no; then
19424     # Linking always hardcodes the temporary library directory.
19425     hardcode_action_CXX=relink
19426   else
19427     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19428     hardcode_action_CXX=immediate
19429   fi
19430 else
19431   # We cannot hardcode anything, or else we can only hardcode existing
19432   # directories.
19433   hardcode_action_CXX=unsupported
19434 fi
19435 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19436 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19437
19438 if test "$hardcode_action_CXX" = relink; then
19439   # Fast installation is not supported
19440   enable_fast_install=no
19441 elif test "$shlibpath_overrides_runpath" = yes ||
19442      test "$enable_shared" = no; then
19443   # Fast installation is not necessary
19444   enable_fast_install=needless
19445 fi
19446
19447
19448 # The else clause should only fire when bootstrapping the
19449 # libtool distribution, otherwise you forgot to ship ltmain.sh
19450 # with your package, and you will get complaints that there are
19451 # no rules to generate ltmain.sh.
19452 if test -f "$ltmain"; then
19453   # See if we are running on zsh, and set the options which allow our commands through
19454   # without removal of \ escapes.
19455   if test -n "${ZSH_VERSION+set}" ; then
19456     setopt NO_GLOB_SUBST
19457   fi
19458   # Now quote all the things that may contain metacharacters while being
19459   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19460   # variables and quote the copies for generation of the libtool script.
19461   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19462     SED SHELL STRIP \
19463     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19464     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19465     deplibs_check_method reload_flag reload_cmds need_locks \
19466     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19467     lt_cv_sys_global_symbol_to_c_name_address \
19468     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19469     old_postinstall_cmds old_postuninstall_cmds \
19470     compiler_CXX \
19471     CC_CXX \
19472     LD_CXX \
19473     lt_prog_compiler_wl_CXX \
19474     lt_prog_compiler_pic_CXX \
19475     lt_prog_compiler_static_CXX \
19476     lt_prog_compiler_no_builtin_flag_CXX \
19477     export_dynamic_flag_spec_CXX \
19478     thread_safe_flag_spec_CXX \
19479     whole_archive_flag_spec_CXX \
19480     enable_shared_with_static_runtimes_CXX \
19481     old_archive_cmds_CXX \
19482     old_archive_from_new_cmds_CXX \
19483     predep_objects_CXX \
19484     postdep_objects_CXX \
19485     predeps_CXX \
19486     postdeps_CXX \
19487     compiler_lib_search_path_CXX \
19488     archive_cmds_CXX \
19489     archive_expsym_cmds_CXX \
19490     postinstall_cmds_CXX \
19491     postuninstall_cmds_CXX \
19492     old_archive_from_expsyms_cmds_CXX \
19493     allow_undefined_flag_CXX \
19494     no_undefined_flag_CXX \
19495     export_symbols_cmds_CXX \
19496     hardcode_libdir_flag_spec_CXX \
19497     hardcode_libdir_flag_spec_ld_CXX \
19498     hardcode_libdir_separator_CXX \
19499     hardcode_automatic_CXX \
19500     module_cmds_CXX \
19501     module_expsym_cmds_CXX \
19502     lt_cv_prog_compiler_c_o_CXX \
19503     exclude_expsyms_CXX \
19504     include_expsyms_CXX; do
19505
19506     case $var in
19507     old_archive_cmds_CXX | \
19508     old_archive_from_new_cmds_CXX | \
19509     archive_cmds_CXX | \
19510     archive_expsym_cmds_CXX | \
19511     module_cmds_CXX | \
19512     module_expsym_cmds_CXX | \
19513     old_archive_from_expsyms_cmds_CXX | \
19514     export_symbols_cmds_CXX | \
19515     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19516     postinstall_cmds | postuninstall_cmds | \
19517     old_postinstall_cmds | old_postuninstall_cmds | \
19518     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19519       # Double-quote double-evaled strings.
19520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19521       ;;
19522     *)
19523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19524       ;;
19525     esac
19526   done
19527
19528   case $lt_echo in
19529   *'\$0 --fallback-echo"')
19530     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19531     ;;
19532   esac
19533
19534 cfgfile="$ofile"
19535
19536   cat <<__EOF__ >> "$cfgfile"
19537 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19538
19539 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19540
19541 # Shell to use when invoking shell scripts.
19542 SHELL=$lt_SHELL
19543
19544 # Whether or not to build shared libraries.
19545 build_libtool_libs=$enable_shared
19546
19547 # Whether or not to build static libraries.
19548 build_old_libs=$enable_static
19549
19550 # Whether or not to add -lc for building shared libraries.
19551 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19552
19553 # Whether or not to disallow shared libs when runtime libs are static
19554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19555
19556 # Whether or not to optimize for fast installation.
19557 fast_install=$enable_fast_install
19558
19559 # The host system.
19560 host_alias=$host_alias
19561 host=$host
19562 host_os=$host_os
19563
19564 # The build system.
19565 build_alias=$build_alias
19566 build=$build
19567 build_os=$build_os
19568
19569 # An echo program that does not interpret backslashes.
19570 echo=$lt_echo
19571
19572 # The archiver.
19573 AR=$lt_AR
19574 AR_FLAGS=$lt_AR_FLAGS
19575
19576 # A C compiler.
19577 LTCC=$lt_LTCC
19578
19579 # LTCC compiler flags.
19580 LTCFLAGS=$lt_LTCFLAGS
19581
19582 # A language-specific compiler.
19583 CC=$lt_compiler_CXX
19584
19585 # Is the compiler the GNU C compiler?
19586 with_gcc=$GCC_CXX
19587
19588 # An ERE matcher.
19589 EGREP=$lt_EGREP
19590
19591 # The linker used to build libraries.
19592 LD=$lt_LD_CXX
19593
19594 # Whether we need hard or soft links.
19595 LN_S=$lt_LN_S
19596
19597 # A BSD-compatible nm program.
19598 NM=$lt_NM
19599
19600 # A symbol stripping program
19601 STRIP=$lt_STRIP
19602
19603 # Used to examine libraries when file_magic_cmd begins "file"
19604 MAGIC_CMD=$MAGIC_CMD
19605
19606 # Used on cygwin: DLL creation program.
19607 DLLTOOL="$DLLTOOL"
19608
19609 # Used on cygwin: object dumper.
19610 OBJDUMP="$OBJDUMP"
19611
19612 # Used on cygwin: assembler.
19613 AS="$AS"
19614
19615 # The name of the directory that contains temporary libtool files.
19616 objdir=$objdir
19617
19618 # How to create reloadable object files.
19619 reload_flag=$lt_reload_flag
19620 reload_cmds=$lt_reload_cmds
19621
19622 # How to pass a linker flag through the compiler.
19623 wl=$lt_lt_prog_compiler_wl_CXX
19624
19625 # Object file suffix (normally "o").
19626 objext="$ac_objext"
19627
19628 # Old archive suffix (normally "a").
19629 libext="$libext"
19630
19631 # Shared library suffix (normally ".so").
19632 shrext_cmds='$shrext_cmds'
19633
19634 # Executable file suffix (normally "").
19635 exeext="$exeext"
19636
19637 # Additional compiler flags for building library objects.
19638 pic_flag=$lt_lt_prog_compiler_pic_CXX
19639 pic_mode=$pic_mode
19640
19641 # What is the maximum length of a command?
19642 max_cmd_len=$lt_cv_sys_max_cmd_len
19643
19644 # Does compiler simultaneously support -c and -o options?
19645 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19646
19647 # Must we lock files when doing compilation?
19648 need_locks=$lt_need_locks
19649
19650 # Do we need the lib prefix for modules?
19651 need_lib_prefix=$need_lib_prefix
19652
19653 # Do we need a version for libraries?
19654 need_version=$need_version
19655
19656 # Whether dlopen is supported.
19657 dlopen_support=$enable_dlopen
19658
19659 # Whether dlopen of programs is supported.
19660 dlopen_self=$enable_dlopen_self
19661
19662 # Whether dlopen of statically linked programs is supported.
19663 dlopen_self_static=$enable_dlopen_self_static
19664
19665 # Compiler flag to prevent dynamic linking.
19666 link_static_flag=$lt_lt_prog_compiler_static_CXX
19667
19668 # Compiler flag to turn off builtin functions.
19669 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19670
19671 # Compiler flag to allow reflexive dlopens.
19672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19673
19674 # Compiler flag to generate shared objects directly from archives.
19675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19676
19677 # Compiler flag to generate thread-safe objects.
19678 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19679
19680 # Library versioning type.
19681 version_type=$version_type
19682
19683 # Format of library name prefix.
19684 libname_spec=$lt_libname_spec
19685
19686 # List of archive names.  First name is the real one, the rest are links.
19687 # The last name is the one that the linker finds with -lNAME.
19688 library_names_spec=$lt_library_names_spec
19689
19690 # The coded name of the library, if different from the real name.
19691 soname_spec=$lt_soname_spec
19692
19693 # Commands used to build and install an old-style archive.
19694 RANLIB=$lt_RANLIB
19695 old_archive_cmds=$lt_old_archive_cmds_CXX
19696 old_postinstall_cmds=$lt_old_postinstall_cmds
19697 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19698
19699 # Create an old-style archive from a shared archive.
19700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19701
19702 # Create a temporary old-style archive to link instead of a shared archive.
19703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19704
19705 # Commands used to build and install a shared archive.
19706 archive_cmds=$lt_archive_cmds_CXX
19707 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19708 postinstall_cmds=$lt_postinstall_cmds
19709 postuninstall_cmds=$lt_postuninstall_cmds
19710
19711 # Commands used to build a loadable module (assumed same as above if empty)
19712 module_cmds=$lt_module_cmds_CXX
19713 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19714
19715 # Commands to strip libraries.
19716 old_striplib=$lt_old_striplib
19717 striplib=$lt_striplib
19718
19719 # Dependencies to place before the objects being linked to create a
19720 # shared library.
19721 predep_objects=$lt_predep_objects_CXX
19722
19723 # Dependencies to place after the objects being linked to create a
19724 # shared library.
19725 postdep_objects=$lt_postdep_objects_CXX
19726
19727 # Dependencies to place before the objects being linked to create a
19728 # shared library.
19729 predeps=$lt_predeps_CXX
19730
19731 # Dependencies to place after the objects being linked to create a
19732 # shared library.
19733 postdeps=$lt_postdeps_CXX
19734
19735 # The library search path used internally by the compiler when linking
19736 # a shared library.
19737 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19738
19739 # Method to check whether dependent libraries are shared objects.
19740 deplibs_check_method=$lt_deplibs_check_method
19741
19742 # Command to use when deplibs_check_method == file_magic.
19743 file_magic_cmd=$lt_file_magic_cmd
19744
19745 # Flag that allows shared libraries with undefined symbols to be built.
19746 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19747
19748 # Flag that forces no undefined symbols.
19749 no_undefined_flag=$lt_no_undefined_flag_CXX
19750
19751 # Commands used to finish a libtool library installation in a directory.
19752 finish_cmds=$lt_finish_cmds
19753
19754 # Same as above, but a single script fragment to be evaled but not shown.
19755 finish_eval=$lt_finish_eval
19756
19757 # Take the output of nm and produce a listing of raw symbols and C names.
19758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19759
19760 # Transform the output of nm in a proper C declaration
19761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19762
19763 # Transform the output of nm in a C name address pair
19764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19765
19766 # This is the shared library runtime path variable.
19767 runpath_var=$runpath_var
19768
19769 # This is the shared library path variable.
19770 shlibpath_var=$shlibpath_var
19771
19772 # Is shlibpath searched before the hard-coded library search path?
19773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19774
19775 # How to hardcode a shared library path into an executable.
19776 hardcode_action=$hardcode_action_CXX
19777
19778 # Whether we should hardcode library paths into libraries.
19779 hardcode_into_libs=$hardcode_into_libs
19780
19781 # Flag to hardcode \$libdir into a binary during linking.
19782 # This must work even if \$libdir does not exist.
19783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19784
19785 # If ld is used when linking, flag to hardcode \$libdir into
19786 # a binary during linking. This must work even if \$libdir does
19787 # not exist.
19788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19789
19790 # Whether we need a single -rpath flag with a separated argument.
19791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19792
19793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19794 # resulting binary.
19795 hardcode_direct=$hardcode_direct_CXX
19796
19797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19798 # resulting binary.
19799 hardcode_minus_L=$hardcode_minus_L_CXX
19800
19801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19802 # the resulting binary.
19803 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19804
19805 # Set to yes if building a shared library automatically hardcodes DIR into the library
19806 # and all subsequent libraries and executables linked against it.
19807 hardcode_automatic=$hardcode_automatic_CXX
19808
19809 # Variables whose values should be saved in libtool wrapper scripts and
19810 # restored at relink time.
19811 variables_saved_for_relink="$variables_saved_for_relink"
19812
19813 # Whether libtool must link a program against all its dependency libraries.
19814 link_all_deplibs=$link_all_deplibs_CXX
19815
19816 # Compile-time system search path for libraries
19817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19818
19819 # Run-time system search path for libraries
19820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19821
19822 # Fix the shell variable \$srcfile for the compiler.
19823 fix_srcfile_path="$fix_srcfile_path_CXX"
19824
19825 # Set to yes if exported symbols are required.
19826 always_export_symbols=$always_export_symbols_CXX
19827
19828 # The commands to list exported symbols.
19829 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19830
19831 # The commands to extract the exported symbol list from a shared archive.
19832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19833
19834 # Symbols that should not be listed in the preloaded symbols.
19835 exclude_expsyms=$lt_exclude_expsyms_CXX
19836
19837 # Symbols that must always be exported.
19838 include_expsyms=$lt_include_expsyms_CXX
19839
19840 # ### END LIBTOOL TAG CONFIG: $tagname
19841
19842 __EOF__
19843
19844
19845 else
19846   # If there is no Makefile yet, we rely on a make rule to execute
19847   # `config.status --recheck' to rerun these tests and create the
19848   # libtool script then.
19849   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19850   if test -f "$ltmain_in"; then
19851     test -f Makefile && make "$ltmain"
19852   fi
19853 fi
19854
19855
19856 ac_ext=c
19857 ac_cpp='$CPP $CPPFLAGS'
19858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19861
19862 CC=$lt_save_CC
19863 LDCXX=$LD
19864 LD=$lt_save_LD
19865 GCC=$lt_save_GCC
19866 with_gnu_ldcxx=$with_gnu_ld
19867 with_gnu_ld=$lt_save_with_gnu_ld
19868 lt_cv_path_LDCXX=$lt_cv_path_LD
19869 lt_cv_path_LD=$lt_save_path_LD
19870 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19871 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19872
19873         else
19874           tagname=""
19875         fi
19876         ;;
19877
19878       F77)
19879         if test -n "$F77" && test "X$F77" != "Xno"; then
19880
19881 ac_ext=f
19882 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19883 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19885
19886
19887 archive_cmds_need_lc_F77=no
19888 allow_undefined_flag_F77=
19889 always_export_symbols_F77=no
19890 archive_expsym_cmds_F77=
19891 export_dynamic_flag_spec_F77=
19892 hardcode_direct_F77=no
19893 hardcode_libdir_flag_spec_F77=
19894 hardcode_libdir_flag_spec_ld_F77=
19895 hardcode_libdir_separator_F77=
19896 hardcode_minus_L_F77=no
19897 hardcode_automatic_F77=no
19898 module_cmds_F77=
19899 module_expsym_cmds_F77=
19900 link_all_deplibs_F77=unknown
19901 old_archive_cmds_F77=$old_archive_cmds
19902 no_undefined_flag_F77=
19903 whole_archive_flag_spec_F77=
19904 enable_shared_with_static_runtimes_F77=no
19905
19906 # Source file extension for f77 test sources.
19907 ac_ext=f
19908
19909 # Object file extension for compiled f77 test sources.
19910 objext=o
19911 objext_F77=$objext
19912
19913 # Code to be used in simple compile tests
19914 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19915
19916 # Code to be used in simple link tests
19917 lt_simple_link_test_code="      program t\n      end\n"
19918
19919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19920
19921 # If no C compiler was specified, use CC.
19922 LTCC=${LTCC-"$CC"}
19923
19924 # If no C compiler flags were specified, use CFLAGS.
19925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19926
19927 # Allow CC to be a program name with arguments.
19928 compiler=$CC
19929
19930
19931 # save warnings/boilerplate of simple test code
19932 ac_outfile=conftest.$ac_objext
19933 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19935 _lt_compiler_boilerplate=`cat conftest.err`
19936 $rm conftest*
19937
19938 ac_outfile=conftest.$ac_objext
19939 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19941 _lt_linker_boilerplate=`cat conftest.err`
19942 $rm conftest*
19943
19944
19945 # Allow CC to be a program name with arguments.
19946 lt_save_CC="$CC"
19947 CC=${F77-"f77"}
19948 compiler=$CC
19949 compiler_F77=$CC
19950 for cc_temp in $compiler""; do
19951   case $cc_temp in
19952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19954     \-*) ;;
19955     *) break;;
19956   esac
19957 done
19958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19959
19960
19961 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19962 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19963 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19964 echo "${ECHO_T}$can_build_shared" >&6; }
19965
19966 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19967 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19968 test "$can_build_shared" = "no" && enable_shared=no
19969
19970 # On AIX, shared libraries and static libraries use the same namespace, and
19971 # are all built from PIC.
19972 case $host_os in
19973 aix3*)
19974   test "$enable_shared" = yes && enable_static=no
19975   if test -n "$RANLIB"; then
19976     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19977     postinstall_cmds='$RANLIB $lib'
19978   fi
19979   ;;
19980 aix4* | aix5*)
19981   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19982     test "$enable_shared" = yes && enable_static=no
19983   fi
19984   ;;
19985 esac
19986 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19987 echo "${ECHO_T}$enable_shared" >&6; }
19988
19989 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19990 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
19991 # Make sure either enable_shared or enable_static is yes.
19992 test "$enable_shared" = yes || enable_static=yes
19993 { echo "$as_me:$LINENO: result: $enable_static" >&5
19994 echo "${ECHO_T}$enable_static" >&6; }
19995
19996 GCC_F77="$G77"
19997 LD_F77="$LD"
19998
19999 lt_prog_compiler_wl_F77=
20000 lt_prog_compiler_pic_F77=
20001 lt_prog_compiler_static_F77=
20002
20003 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20005
20006   if test "$GCC" = yes; then
20007     lt_prog_compiler_wl_F77='-Wl,'
20008     lt_prog_compiler_static_F77='-static'
20009
20010     case $host_os in
20011       aix*)
20012       # All AIX code is PIC.
20013       if test "$host_cpu" = ia64; then
20014         # AIX 5 now supports IA64 processor
20015         lt_prog_compiler_static_F77='-Bstatic'
20016       fi
20017       ;;
20018
20019     amigaos*)
20020       # FIXME: we need at least 68020 code to build shared libraries, but
20021       # adding the `-m68020' flag to GCC prevents building anything better,
20022       # like `-m68040'.
20023       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20024       ;;
20025
20026     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20027       # PIC is the default for these OSes.
20028       ;;
20029
20030     mingw* | pw32* | os2*)
20031       # This hack is so that the source file can tell whether it is being
20032       # built for inclusion in a dll (and should export symbols for example).
20033       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20034       ;;
20035
20036     darwin* | rhapsody*)
20037       # PIC is the default on this platform
20038       # Common symbols not allowed in MH_DYLIB files
20039       lt_prog_compiler_pic_F77='-fno-common'
20040       ;;
20041
20042     interix3*)
20043       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20044       # Instead, we relocate shared libraries at runtime.
20045       ;;
20046
20047     msdosdjgpp*)
20048       # Just because we use GCC doesn't mean we suddenly get shared libraries
20049       # on systems that don't support them.
20050       lt_prog_compiler_can_build_shared_F77=no
20051       enable_shared=no
20052       ;;
20053
20054     sysv4*MP*)
20055       if test -d /usr/nec; then
20056         lt_prog_compiler_pic_F77=-Kconform_pic
20057       fi
20058       ;;
20059
20060     hpux*)
20061       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20062       # not for PA HP-UX.
20063       case $host_cpu in
20064       hppa*64*|ia64*)
20065         # +Z the default
20066         ;;
20067       *)
20068         lt_prog_compiler_pic_F77='-fPIC'
20069         ;;
20070       esac
20071       ;;
20072
20073     *)
20074       lt_prog_compiler_pic_F77='-fPIC'
20075       ;;
20076     esac
20077   else
20078     # PORTME Check for flag to pass linker flags through the system compiler.
20079     case $host_os in
20080     aix*)
20081       lt_prog_compiler_wl_F77='-Wl,'
20082       if test "$host_cpu" = ia64; then
20083         # AIX 5 now supports IA64 processor
20084         lt_prog_compiler_static_F77='-Bstatic'
20085       else
20086         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20087       fi
20088       ;;
20089       darwin*)
20090         # PIC is the default on this platform
20091         # Common symbols not allowed in MH_DYLIB files
20092        case $cc_basename in
20093          xlc*)
20094          lt_prog_compiler_pic_F77='-qnocommon'
20095          lt_prog_compiler_wl_F77='-Wl,'
20096          ;;
20097        esac
20098        ;;
20099
20100     mingw* | pw32* | os2*)
20101       # This hack is so that the source file can tell whether it is being
20102       # built for inclusion in a dll (and should export symbols for example).
20103       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20104       ;;
20105
20106     hpux9* | hpux10* | hpux11*)
20107       lt_prog_compiler_wl_F77='-Wl,'
20108       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20109       # not for PA HP-UX.
20110       case $host_cpu in
20111       hppa*64*|ia64*)
20112         # +Z the default
20113         ;;
20114       *)
20115         lt_prog_compiler_pic_F77='+Z'
20116         ;;
20117       esac
20118       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20119       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20120       ;;
20121
20122     irix5* | irix6* | nonstopux*)
20123       lt_prog_compiler_wl_F77='-Wl,'
20124       # PIC (with -KPIC) is the default.
20125       lt_prog_compiler_static_F77='-non_shared'
20126       ;;
20127
20128     newsos6)
20129       lt_prog_compiler_pic_F77='-KPIC'
20130       lt_prog_compiler_static_F77='-Bstatic'
20131       ;;
20132
20133     linux*)
20134       case $cc_basename in
20135       icc* | ecc*)
20136         lt_prog_compiler_wl_F77='-Wl,'
20137         lt_prog_compiler_pic_F77='-KPIC'
20138         lt_prog_compiler_static_F77='-static'
20139         ;;
20140       pgcc* | pgf77* | pgf90* | pgf95*)
20141         # Portland Group compilers (*not* the Pentium gcc compiler,
20142         # which looks to be a dead project)
20143         lt_prog_compiler_wl_F77='-Wl,'
20144         lt_prog_compiler_pic_F77='-fpic'
20145         lt_prog_compiler_static_F77='-Bstatic'
20146         ;;
20147       ccc*)
20148         lt_prog_compiler_wl_F77='-Wl,'
20149         # All Alpha code is PIC.
20150         lt_prog_compiler_static_F77='-non_shared'
20151         ;;
20152       esac
20153       ;;
20154
20155     osf3* | osf4* | osf5*)
20156       lt_prog_compiler_wl_F77='-Wl,'
20157       # All OSF/1 code is PIC.
20158       lt_prog_compiler_static_F77='-non_shared'
20159       ;;
20160
20161     solaris*)
20162       lt_prog_compiler_pic_F77='-KPIC'
20163       lt_prog_compiler_static_F77='-Bstatic'
20164       case $cc_basename in
20165       f77* | f90* | f95*)
20166         lt_prog_compiler_wl_F77='-Qoption ld ';;
20167       *)
20168         lt_prog_compiler_wl_F77='-Wl,';;
20169       esac
20170       ;;
20171
20172     sunos4*)
20173       lt_prog_compiler_wl_F77='-Qoption ld '
20174       lt_prog_compiler_pic_F77='-PIC'
20175       lt_prog_compiler_static_F77='-Bstatic'
20176       ;;
20177
20178     sysv4 | sysv4.2uw2* | sysv4.3*)
20179       lt_prog_compiler_wl_F77='-Wl,'
20180       lt_prog_compiler_pic_F77='-KPIC'
20181       lt_prog_compiler_static_F77='-Bstatic'
20182       ;;
20183
20184     sysv4*MP*)
20185       if test -d /usr/nec ;then
20186         lt_prog_compiler_pic_F77='-Kconform_pic'
20187         lt_prog_compiler_static_F77='-Bstatic'
20188       fi
20189       ;;
20190
20191     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20192       lt_prog_compiler_wl_F77='-Wl,'
20193       lt_prog_compiler_pic_F77='-KPIC'
20194       lt_prog_compiler_static_F77='-Bstatic'
20195       ;;
20196
20197     unicos*)
20198       lt_prog_compiler_wl_F77='-Wl,'
20199       lt_prog_compiler_can_build_shared_F77=no
20200       ;;
20201
20202     uts4*)
20203       lt_prog_compiler_pic_F77='-pic'
20204       lt_prog_compiler_static_F77='-Bstatic'
20205       ;;
20206
20207     *)
20208       lt_prog_compiler_can_build_shared_F77=no
20209       ;;
20210     esac
20211   fi
20212
20213 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20214 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20215
20216 #
20217 # Check to make sure the PIC flag actually works.
20218 #
20219 if test -n "$lt_prog_compiler_pic_F77"; then
20220
20221 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20223 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226   lt_prog_compiler_pic_works_F77=no
20227   ac_outfile=conftest.$ac_objext
20228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20229    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20230    # Insert the option either (1) after the last *FLAGS variable, or
20231    # (2) before a word containing "conftest.", or (3) at the end.
20232    # Note that $ac_compile itself does not contain backslashes and begins
20233    # with a dollar sign (not a hyphen), so the echo should work correctly.
20234    # The option is referenced via a variable to avoid confusing sed.
20235    lt_compile=`echo "$ac_compile" | $SED \
20236    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20238    -e 's:$: $lt_compiler_flag:'`
20239    (eval echo "\"\$as_me:20239: $lt_compile\"" >&5)
20240    (eval "$lt_compile" 2>conftest.err)
20241    ac_status=$?
20242    cat conftest.err >&5
20243    echo "$as_me:20243: \$? = $ac_status" >&5
20244    if (exit $ac_status) && test -s "$ac_outfile"; then
20245      # The compiler can only warn and ignore the option if not recognized
20246      # So say no if there are warnings other than the usual output.
20247      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20248      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20249      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20250        lt_prog_compiler_pic_works_F77=yes
20251      fi
20252    fi
20253    $rm conftest*
20254
20255 fi
20256 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20257 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20258
20259 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20260     case $lt_prog_compiler_pic_F77 in
20261      "" | " "*) ;;
20262      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20263      esac
20264 else
20265     lt_prog_compiler_pic_F77=
20266      lt_prog_compiler_can_build_shared_F77=no
20267 fi
20268
20269 fi
20270 case $host_os in
20271   # For platforms which do not support PIC, -DPIC is meaningless:
20272   *djgpp*)
20273     lt_prog_compiler_pic_F77=
20274     ;;
20275   *)
20276     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20277     ;;
20278 esac
20279
20280 #
20281 # Check to make sure the static flag actually works.
20282 #
20283 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20284 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20285 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20286 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   lt_prog_compiler_static_works_F77=no
20290    save_LDFLAGS="$LDFLAGS"
20291    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20292    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20293    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20294      # The linker can only warn and ignore the option if not recognized
20295      # So say no if there are warnings
20296      if test -s conftest.err; then
20297        # Append any errors to the config.log.
20298        cat conftest.err 1>&5
20299        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20300        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20301        if diff conftest.exp conftest.er2 >/dev/null; then
20302          lt_prog_compiler_static_works_F77=yes
20303        fi
20304      else
20305        lt_prog_compiler_static_works_F77=yes
20306      fi
20307    fi
20308    $rm conftest*
20309    LDFLAGS="$save_LDFLAGS"
20310
20311 fi
20312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20313 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20314
20315 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20316     :
20317 else
20318     lt_prog_compiler_static_F77=
20319 fi
20320
20321
20322 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20323 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20324 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20325   echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327   lt_cv_prog_compiler_c_o_F77=no
20328    $rm -r conftest 2>/dev/null
20329    mkdir conftest
20330    cd conftest
20331    mkdir out
20332    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20333
20334    lt_compiler_flag="-o out/conftest2.$ac_objext"
20335    # Insert the option either (1) after the last *FLAGS variable, or
20336    # (2) before a word containing "conftest.", or (3) at the end.
20337    # Note that $ac_compile itself does not contain backslashes and begins
20338    # with a dollar sign (not a hyphen), so the echo should work correctly.
20339    lt_compile=`echo "$ac_compile" | $SED \
20340    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20341    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20342    -e 's:$: $lt_compiler_flag:'`
20343    (eval echo "\"\$as_me:20343: $lt_compile\"" >&5)
20344    (eval "$lt_compile" 2>out/conftest.err)
20345    ac_status=$?
20346    cat out/conftest.err >&5
20347    echo "$as_me:20347: \$? = $ac_status" >&5
20348    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20349    then
20350      # The compiler can only warn and ignore the option if not recognized
20351      # So say no if there are warnings
20352      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20353      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20354      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20355        lt_cv_prog_compiler_c_o_F77=yes
20356      fi
20357    fi
20358    chmod u+w . 2>&5
20359    $rm conftest*
20360    # SGI C++ compiler will create directory out/ii_files/ for
20361    # template instantiation
20362    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20363    $rm out/* && rmdir out
20364    cd ..
20365    rmdir conftest
20366    $rm conftest*
20367
20368 fi
20369 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20370 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20371
20372
20373 hard_links="nottested"
20374 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20375   # do not overwrite the value of need_locks provided by the user
20376   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20377 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20378   hard_links=yes
20379   $rm conftest*
20380   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20381   touch conftest.a
20382   ln conftest.a conftest.b 2>&5 || hard_links=no
20383   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20384   { echo "$as_me:$LINENO: result: $hard_links" >&5
20385 echo "${ECHO_T}$hard_links" >&6; }
20386   if test "$hard_links" = no; then
20387     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20388 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20389     need_locks=warn
20390   fi
20391 else
20392   need_locks=no
20393 fi
20394
20395 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20397
20398   runpath_var=
20399   allow_undefined_flag_F77=
20400   enable_shared_with_static_runtimes_F77=no
20401   archive_cmds_F77=
20402   archive_expsym_cmds_F77=
20403   old_archive_From_new_cmds_F77=
20404   old_archive_from_expsyms_cmds_F77=
20405   export_dynamic_flag_spec_F77=
20406   whole_archive_flag_spec_F77=
20407   thread_safe_flag_spec_F77=
20408   hardcode_libdir_flag_spec_F77=
20409   hardcode_libdir_flag_spec_ld_F77=
20410   hardcode_libdir_separator_F77=
20411   hardcode_direct_F77=no
20412   hardcode_minus_L_F77=no
20413   hardcode_shlibpath_var_F77=unsupported
20414   link_all_deplibs_F77=unknown
20415   hardcode_automatic_F77=no
20416   module_cmds_F77=
20417   module_expsym_cmds_F77=
20418   always_export_symbols_F77=no
20419   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20420   # include_expsyms should be a list of space-separated symbols to be *always*
20421   # included in the symbol list
20422   include_expsyms_F77=
20423   # exclude_expsyms can be an extended regexp of symbols to exclude
20424   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20425   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20426   # as well as any symbol that contains `d'.
20427   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20428   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20429   # platforms (ab)use it in PIC code, but their linkers get confused if
20430   # the symbol is explicitly referenced.  Since portable code cannot
20431   # rely on this symbol name, it's probably fine to never include it in
20432   # preloaded symbol tables.
20433   extract_expsyms_cmds=
20434   # Just being paranoid about ensuring that cc_basename is set.
20435   for cc_temp in $compiler""; do
20436   case $cc_temp in
20437     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20438     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20439     \-*) ;;
20440     *) break;;
20441   esac
20442 done
20443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20444
20445   case $host_os in
20446   cygwin* | mingw* | pw32*)
20447     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20448     # When not using gcc, we currently assume that we are using
20449     # Microsoft Visual C++.
20450     if test "$GCC" != yes; then
20451       with_gnu_ld=no
20452     fi
20453     ;;
20454   interix*)
20455     # we just hope/assume this is gcc and not c89 (= MSVC++)
20456     with_gnu_ld=yes
20457     ;;
20458   openbsd*)
20459     with_gnu_ld=no
20460     ;;
20461   esac
20462
20463   ld_shlibs_F77=yes
20464   if test "$with_gnu_ld" = yes; then
20465     # If archive_cmds runs LD, not CC, wlarc should be empty
20466     wlarc='${wl}'
20467
20468     # Set some defaults for GNU ld with shared library support. These
20469     # are reset later if shared libraries are not supported. Putting them
20470     # here allows them to be overridden if necessary.
20471     runpath_var=LD_RUN_PATH
20472     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20473     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20474     # ancient GNU ld didn't support --whole-archive et. al.
20475     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20476         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20477       else
20478         whole_archive_flag_spec_F77=
20479     fi
20480     supports_anon_versioning=no
20481     case `$LD -v 2>/dev/null` in
20482       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20483       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20484       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20485       *\ 2.11.*) ;; # other 2.11 versions
20486       *) supports_anon_versioning=yes ;;
20487     esac
20488
20489     # See if GNU ld supports shared libraries.
20490     case $host_os in
20491     aix3* | aix4* | aix5*)
20492       # On AIX/PPC, the GNU linker is very broken
20493       if test "$host_cpu" != ia64; then
20494         ld_shlibs_F77=no
20495         cat <<EOF 1>&2
20496
20497 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20498 *** to be unable to reliably create shared libraries on AIX.
20499 *** Therefore, libtool is disabling shared libraries support.  If you
20500 *** really care for shared libraries, you may want to modify your PATH
20501 *** so that a non-GNU linker is found, and then restart.
20502
20503 EOF
20504       fi
20505       ;;
20506
20507     amigaos*)
20508       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)'
20509       hardcode_libdir_flag_spec_F77='-L$libdir'
20510       hardcode_minus_L_F77=yes
20511
20512       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20513       # that the semantics of dynamic libraries on AmigaOS, at least up
20514       # to version 4, is to share data among multiple programs linked
20515       # with the same dynamic library.  Since this doesn't match the
20516       # behavior of shared libraries on other platforms, we can't use
20517       # them.
20518       ld_shlibs_F77=no
20519       ;;
20520
20521     beos*)
20522       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20523         allow_undefined_flag_F77=unsupported
20524         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20525         # support --undefined.  This deserves some investigation.  FIXME
20526         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20527       else
20528         ld_shlibs_F77=no
20529       fi
20530       ;;
20531
20532     cygwin* | mingw* | pw32*)
20533       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20534       # as there is no search path for DLLs.
20535       hardcode_libdir_flag_spec_F77='-L$libdir'
20536       allow_undefined_flag_F77=unsupported
20537       always_export_symbols_F77=no
20538       enable_shared_with_static_runtimes_F77=yes
20539       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20540
20541       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20542         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20543         # If the export-symbols file already is a .def file (1st line
20544         # is EXPORTS), use it as is; otherwise, prepend...
20545         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20546           cp $export_symbols $output_objdir/$soname.def;
20547         else
20548           echo EXPORTS > $output_objdir/$soname.def;
20549           cat $export_symbols >> $output_objdir/$soname.def;
20550         fi~
20551         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20552       else
20553         ld_shlibs_F77=no
20554       fi
20555       ;;
20556
20557     interix3*)
20558       hardcode_direct_F77=no
20559       hardcode_shlibpath_var_F77=no
20560       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20561       export_dynamic_flag_spec_F77='${wl}-E'
20562       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20563       # Instead, shared libraries are loaded at an image base (0x10000000 by
20564       # default) and relocated if they conflict, which is a slow very memory
20565       # consuming and fragmenting process.  To avoid this, we pick a random,
20566       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20567       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20568       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'
20569       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'
20570       ;;
20571
20572     linux*)
20573       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20574         tmp_addflag=
20575         case $cc_basename,$host_cpu in
20576         pgcc*)                          # Portland Group C compiler
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'
20579           ;;
20580         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20581           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'
20582           tmp_addflag=' $pic_flag -Mnomain' ;;
20583         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20584           tmp_addflag=' -i_dynamic' ;;
20585         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20586           tmp_addflag=' -i_dynamic -nofor_main' ;;
20587         ifc* | ifort*)                  # Intel Fortran compiler
20588           tmp_addflag=' -nofor_main' ;;
20589         esac
20590         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20591
20592         if test $supports_anon_versioning = yes; then
20593           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20594   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20595   $echo "local: *; };" >> $output_objdir/$libname.ver~
20596           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20597         fi
20598       else
20599         ld_shlibs_F77=no
20600       fi
20601       ;;
20602
20603     netbsd*)
20604       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20605         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20606         wlarc=
20607       else
20608         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20609         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20610       fi
20611       ;;
20612
20613     solaris*)
20614       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20615         ld_shlibs_F77=no
20616         cat <<EOF 1>&2
20617
20618 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20619 *** create shared libraries on Solaris systems.  Therefore, libtool
20620 *** is disabling shared libraries support.  We urge you to upgrade GNU
20621 *** binutils to release 2.9.1 or newer.  Another option is to modify
20622 *** your PATH or compiler configuration so that the native linker is
20623 *** used, and then restart.
20624
20625 EOF
20626       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20627         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20628         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20629       else
20630         ld_shlibs_F77=no
20631       fi
20632       ;;
20633
20634     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20635       case `$LD -v 2>&1` in
20636         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20637         ld_shlibs_F77=no
20638         cat <<_LT_EOF 1>&2
20639
20640 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20641 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20642 *** is disabling shared libraries support.  We urge you to upgrade GNU
20643 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20644 *** your PATH or compiler configuration so that the native linker is
20645 *** used, and then restart.
20646
20647 _LT_EOF
20648         ;;
20649         *)
20650           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20651             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20652             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20653             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20654           else
20655             ld_shlibs_F77=no
20656           fi
20657         ;;
20658       esac
20659       ;;
20660
20661     sunos4*)
20662       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20663       wlarc=
20664       hardcode_direct_F77=yes
20665       hardcode_shlibpath_var_F77=no
20666       ;;
20667
20668     *)
20669       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20670         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20671         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20672       else
20673         ld_shlibs_F77=no
20674       fi
20675       ;;
20676     esac
20677
20678     if test "$ld_shlibs_F77" = no; then
20679       runpath_var=
20680       hardcode_libdir_flag_spec_F77=
20681       export_dynamic_flag_spec_F77=
20682       whole_archive_flag_spec_F77=
20683     fi
20684   else
20685     # PORTME fill in a description of your system's linker (not GNU ld)
20686     case $host_os in
20687     aix3*)
20688       allow_undefined_flag_F77=unsupported
20689       always_export_symbols_F77=yes
20690       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'
20691       # Note: this linker hardcodes the directories in LIBPATH if there
20692       # are no directories specified by -L.
20693       hardcode_minus_L_F77=yes
20694       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20695         # Neither direct hardcoding nor static linking is supported with a
20696         # broken collect2.
20697         hardcode_direct_F77=unsupported
20698       fi
20699       ;;
20700
20701     aix4* | aix5*)
20702       if test "$host_cpu" = ia64; then
20703         # On IA64, the linker does run time linking by default, so we don't
20704         # have to do anything special.
20705         aix_use_runtimelinking=no
20706         exp_sym_flag='-Bexport'
20707         no_entry_flag=""
20708       else
20709         # If we're using GNU nm, then we don't want the "-C" option.
20710         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20711         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20712           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'
20713         else
20714           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'
20715         fi
20716         aix_use_runtimelinking=no
20717
20718         # Test if we are trying to use run time linking or normal
20719         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20720         # need to do runtime linking.
20721         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20722           for ld_flag in $LDFLAGS; do
20723           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20724             aix_use_runtimelinking=yes
20725             break
20726           fi
20727           done
20728           ;;
20729         esac
20730
20731         exp_sym_flag='-bexport'
20732         no_entry_flag='-bnoentry'
20733       fi
20734
20735       # When large executables or shared objects are built, AIX ld can
20736       # have problems creating the table of contents.  If linking a library
20737       # or program results in "error TOC overflow" add -mminimal-toc to
20738       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20739       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20740
20741       archive_cmds_F77=''
20742       hardcode_direct_F77=yes
20743       hardcode_libdir_separator_F77=':'
20744       link_all_deplibs_F77=yes
20745
20746       if test "$GCC" = yes; then
20747         case $host_os in aix4.[012]|aix4.[012].*)
20748         # We only want to do this on AIX 4.2 and lower, the check
20749         # below for broken collect2 doesn't work under 4.3+
20750           collect2name=`${CC} -print-prog-name=collect2`
20751           if test -f "$collect2name" && \
20752            strings "$collect2name" | grep resolve_lib_name >/dev/null
20753           then
20754           # We have reworked collect2
20755           hardcode_direct_F77=yes
20756           else
20757           # We have old collect2
20758           hardcode_direct_F77=unsupported
20759           # It fails to find uninstalled libraries when the uninstalled
20760           # path is not listed in the libpath.  Setting hardcode_minus_L
20761           # to unsupported forces relinking
20762           hardcode_minus_L_F77=yes
20763           hardcode_libdir_flag_spec_F77='-L$libdir'
20764           hardcode_libdir_separator_F77=
20765           fi
20766           ;;
20767         esac
20768         shared_flag='-shared'
20769         if test "$aix_use_runtimelinking" = yes; then
20770           shared_flag="$shared_flag "'${wl}-G'
20771         fi
20772       else
20773         # not using gcc
20774         if test "$host_cpu" = ia64; then
20775         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20776         # chokes on -Wl,-G. The following line is correct:
20777           shared_flag='-G'
20778         else
20779           if test "$aix_use_runtimelinking" = yes; then
20780             shared_flag='${wl}-G'
20781           else
20782             shared_flag='${wl}-bM:SRE'
20783           fi
20784         fi
20785       fi
20786
20787       # It seems that -bexpall does not export symbols beginning with
20788       # underscore (_), so it is better to generate a list of symbols to export.
20789       always_export_symbols_F77=yes
20790       if test "$aix_use_runtimelinking" = yes; then
20791         # Warning - without using the other runtime loading flags (-brtl),
20792         # -berok will link without error, but may produce a broken library.
20793         allow_undefined_flag_F77='-berok'
20794        # Determine the default libpath from the value encoded in an empty executable.
20795        cat >conftest.$ac_ext <<_ACEOF
20796       program main
20797
20798       end
20799 _ACEOF
20800 rm -f conftest.$ac_objext conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_link") 2>conftest.er1
20808   ac_status=$?
20809   grep -v '^ *+' conftest.er1 >conftest.err
20810   rm -f conftest.er1
20811   cat conftest.err >&5
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); } && {
20814          test -z "$ac_f77_werror_flag" ||
20815          test ! -s conftest.err
20816        } && test -s conftest$ac_exeext &&
20817        $as_test_x conftest$ac_exeext; then
20818
20819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20820 }'`
20821 # Check for a 64-bit object if we didn't find anything.
20822 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; }
20823 }'`; fi
20824 else
20825   echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828
20829 fi
20830
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832       conftest$ac_exeext conftest.$ac_ext
20833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20834
20835        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20836         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"
20837        else
20838         if test "$host_cpu" = ia64; then
20839           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20840           allow_undefined_flag_F77="-z nodefs"
20841           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"
20842         else
20843          # Determine the default libpath from the value encoded in an empty executable.
20844          cat >conftest.$ac_ext <<_ACEOF
20845       program main
20846
20847       end
20848 _ACEOF
20849 rm -f conftest.$ac_objext conftest$ac_exeext
20850 if { (ac_try="$ac_link"
20851 case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856   (eval "$ac_link") 2>conftest.er1
20857   ac_status=$?
20858   grep -v '^ *+' conftest.er1 >conftest.err
20859   rm -f conftest.er1
20860   cat conftest.err >&5
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } && {
20863          test -z "$ac_f77_werror_flag" ||
20864          test ! -s conftest.err
20865        } && test -s conftest$ac_exeext &&
20866        $as_test_x conftest$ac_exeext; then
20867
20868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20869 }'`
20870 # Check for a 64-bit object if we didn't find anything.
20871 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; }
20872 }'`; fi
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877
20878 fi
20879
20880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20881       conftest$ac_exeext conftest.$ac_ext
20882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20883
20884          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20885           # Warning - without using the other run time loading flags,
20886           # -berok will link without error, but may produce a broken library.
20887           no_undefined_flag_F77=' ${wl}-bernotok'
20888           allow_undefined_flag_F77=' ${wl}-berok'
20889           # Exported symbols can be pulled into shared objects from archives
20890           whole_archive_flag_spec_F77='$convenience'
20891           archive_cmds_need_lc_F77=yes
20892           # This is similar to how AIX traditionally builds its shared libraries.
20893           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'
20894         fi
20895       fi
20896       ;;
20897
20898     amigaos*)
20899       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)'
20900       hardcode_libdir_flag_spec_F77='-L$libdir'
20901       hardcode_minus_L_F77=yes
20902       # see comment about different semantics on the GNU ld section
20903       ld_shlibs_F77=no
20904       ;;
20905
20906     bsdi[45]*)
20907       export_dynamic_flag_spec_F77=-rdynamic
20908       ;;
20909
20910     cygwin* | mingw* | pw32*)
20911       # When not using gcc, we currently assume that we are using
20912       # Microsoft Visual C++.
20913       # hardcode_libdir_flag_spec is actually meaningless, as there is
20914       # no search path for DLLs.
20915       hardcode_libdir_flag_spec_F77=' '
20916       allow_undefined_flag_F77=unsupported
20917       # Tell ltmain to make .lib files, not .a files.
20918       libext=lib
20919       # Tell ltmain to make .dll files, not .so files.
20920       shrext_cmds=".dll"
20921       # FIXME: Setting linknames here is a bad hack.
20922       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20923       # The linker will automatically build a .lib file if we build a DLL.
20924       old_archive_From_new_cmds_F77='true'
20925       # FIXME: Should let the user specify the lib program.
20926       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20927       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20928       enable_shared_with_static_runtimes_F77=yes
20929       ;;
20930
20931     darwin* | rhapsody*)
20932       case $host_os in
20933         rhapsody* | darwin1.[012])
20934          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20935          ;;
20936        *) # Darwin 1.3 on
20937          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20938            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20939          else
20940            case ${MACOSX_DEPLOYMENT_TARGET} in
20941              10.[012])
20942                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20943                ;;
20944              10.*)
20945                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20946                ;;
20947            esac
20948          fi
20949          ;;
20950       esac
20951       archive_cmds_need_lc_F77=no
20952       hardcode_direct_F77=no
20953       hardcode_automatic_F77=yes
20954       hardcode_shlibpath_var_F77=unsupported
20955       whole_archive_flag_spec_F77=''
20956       link_all_deplibs_F77=yes
20957     if test "$GCC" = yes ; then
20958         output_verbose_link_cmd='echo'
20959         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20960       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20961       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20962       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}'
20963       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}'
20964     else
20965       case $cc_basename in
20966         xlc*)
20967          output_verbose_link_cmd='echo'
20968          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20969          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20970           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20971          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}'
20972           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}'
20973           ;;
20974        *)
20975          ld_shlibs_F77=no
20976           ;;
20977       esac
20978     fi
20979       ;;
20980
20981     dgux*)
20982       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20983       hardcode_libdir_flag_spec_F77='-L$libdir'
20984       hardcode_shlibpath_var_F77=no
20985       ;;
20986
20987     freebsd1*)
20988       ld_shlibs_F77=no
20989       ;;
20990
20991     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20992     # support.  Future versions do this automatically, but an explicit c++rt0.o
20993     # does not break anything, and helps significantly (at the cost of a little
20994     # extra space).
20995     freebsd2.2*)
20996       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20997       hardcode_libdir_flag_spec_F77='-R$libdir'
20998       hardcode_direct_F77=yes
20999       hardcode_shlibpath_var_F77=no
21000       ;;
21001
21002     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21003     freebsd2*)
21004       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21005       hardcode_direct_F77=yes
21006       hardcode_minus_L_F77=yes
21007       hardcode_shlibpath_var_F77=no
21008       ;;
21009
21010     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21011     freebsd* | kfreebsd*-gnu | dragonfly*)
21012       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21013       hardcode_libdir_flag_spec_F77='-R$libdir'
21014       hardcode_direct_F77=yes
21015       hardcode_shlibpath_var_F77=no
21016       ;;
21017
21018     hpux9*)
21019       if test "$GCC" = yes; then
21020         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'
21021       else
21022         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'
21023       fi
21024       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21025       hardcode_libdir_separator_F77=:
21026       hardcode_direct_F77=yes
21027
21028       # hardcode_minus_L: Not really in the search PATH,
21029       # but as the default location of the library.
21030       hardcode_minus_L_F77=yes
21031       export_dynamic_flag_spec_F77='${wl}-E'
21032       ;;
21033
21034     hpux10*)
21035       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21036         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21037       else
21038         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21039       fi
21040       if test "$with_gnu_ld" = no; then
21041         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21042         hardcode_libdir_separator_F77=:
21043
21044         hardcode_direct_F77=yes
21045         export_dynamic_flag_spec_F77='${wl}-E'
21046
21047         # hardcode_minus_L: Not really in the search PATH,
21048         # but as the default location of the library.
21049         hardcode_minus_L_F77=yes
21050       fi
21051       ;;
21052
21053     hpux11*)
21054       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21055         case $host_cpu in
21056         hppa*64*)
21057           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21058           ;;
21059         ia64*)
21060           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21061           ;;
21062         *)
21063           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21064           ;;
21065         esac
21066       else
21067         case $host_cpu in
21068         hppa*64*)
21069           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21070           ;;
21071         ia64*)
21072           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21073           ;;
21074         *)
21075           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21076           ;;
21077         esac
21078       fi
21079       if test "$with_gnu_ld" = no; then
21080         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21081         hardcode_libdir_separator_F77=:
21082
21083         case $host_cpu in
21084         hppa*64*|ia64*)
21085           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21086           hardcode_direct_F77=no
21087           hardcode_shlibpath_var_F77=no
21088           ;;
21089         *)
21090           hardcode_direct_F77=yes
21091           export_dynamic_flag_spec_F77='${wl}-E'
21092
21093           # hardcode_minus_L: Not really in the search PATH,
21094           # but as the default location of the library.
21095           hardcode_minus_L_F77=yes
21096           ;;
21097         esac
21098       fi
21099       ;;
21100
21101     irix5* | irix6* | nonstopux*)
21102       if test "$GCC" = yes; then
21103         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'
21104       else
21105         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'
21106         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21107       fi
21108       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21109       hardcode_libdir_separator_F77=:
21110       link_all_deplibs_F77=yes
21111       ;;
21112
21113     netbsd*)
21114       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21115         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21116       else
21117         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21118       fi
21119       hardcode_libdir_flag_spec_F77='-R$libdir'
21120       hardcode_direct_F77=yes
21121       hardcode_shlibpath_var_F77=no
21122       ;;
21123
21124     newsos6)
21125       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21126       hardcode_direct_F77=yes
21127       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21128       hardcode_libdir_separator_F77=:
21129       hardcode_shlibpath_var_F77=no
21130       ;;
21131
21132     openbsd*)
21133       hardcode_direct_F77=yes
21134       hardcode_shlibpath_var_F77=no
21135       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21136         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21137         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21138         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21139         export_dynamic_flag_spec_F77='${wl}-E'
21140       else
21141        case $host_os in
21142          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21143            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21144            hardcode_libdir_flag_spec_F77='-R$libdir'
21145            ;;
21146          *)
21147            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21148            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21149            ;;
21150        esac
21151       fi
21152       ;;
21153
21154     os2*)
21155       hardcode_libdir_flag_spec_F77='-L$libdir'
21156       hardcode_minus_L_F77=yes
21157       allow_undefined_flag_F77=unsupported
21158       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'
21159       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21160       ;;
21161
21162     osf3*)
21163       if test "$GCC" = yes; then
21164         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21165         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'
21166       else
21167         allow_undefined_flag_F77=' -expect_unresolved \*'
21168         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'
21169       fi
21170       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21171       hardcode_libdir_separator_F77=:
21172       ;;
21173
21174     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21175       if test "$GCC" = yes; then
21176         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21177         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'
21178         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21179       else
21180         allow_undefined_flag_F77=' -expect_unresolved \*'
21181         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'
21182         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~
21183         $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'
21184
21185         # Both c and cxx compiler support -rpath directly
21186         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21187       fi
21188       hardcode_libdir_separator_F77=:
21189       ;;
21190
21191     solaris*)
21192       no_undefined_flag_F77=' -z text'
21193       if test "$GCC" = yes; then
21194         wlarc='${wl}'
21195         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21196         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21197           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21198       else
21199         wlarc=''
21200         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21201         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21202         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21203       fi
21204       hardcode_libdir_flag_spec_F77='-R$libdir'
21205       hardcode_shlibpath_var_F77=no
21206       case $host_os in
21207       solaris2.[0-5] | solaris2.[0-5].*) ;;
21208       *)
21209         # The compiler driver will combine linker options so we
21210         # cannot just pass the convience library names through
21211         # without $wl, iff we do not link with $LD.
21212         # Luckily, gcc supports the same syntax we need for Sun Studio.
21213         # Supported since Solaris 2.6 (maybe 2.5.1?)
21214         case $wlarc in
21215         '')
21216           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21217         *)
21218           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' ;;
21219         esac ;;
21220       esac
21221       link_all_deplibs_F77=yes
21222       ;;
21223
21224     sunos4*)
21225       if test "x$host_vendor" = xsequent; then
21226         # Use $CC to link under sequent, because it throws in some extra .o
21227         # files that make .init and .fini sections work.
21228         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21229       else
21230         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21231       fi
21232       hardcode_libdir_flag_spec_F77='-L$libdir'
21233       hardcode_direct_F77=yes
21234       hardcode_minus_L_F77=yes
21235       hardcode_shlibpath_var_F77=no
21236       ;;
21237
21238     sysv4)
21239       case $host_vendor in
21240         sni)
21241           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21242           hardcode_direct_F77=yes # is this really true???
21243         ;;
21244         siemens)
21245           ## LD is ld it makes a PLAMLIB
21246           ## CC just makes a GrossModule.
21247           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21248           reload_cmds_F77='$CC -r -o $output$reload_objs'
21249           hardcode_direct_F77=no
21250         ;;
21251         motorola)
21252           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21253           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21254         ;;
21255       esac
21256       runpath_var='LD_RUN_PATH'
21257       hardcode_shlibpath_var_F77=no
21258       ;;
21259
21260     sysv4.3*)
21261       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21262       hardcode_shlibpath_var_F77=no
21263       export_dynamic_flag_spec_F77='-Bexport'
21264       ;;
21265
21266     sysv4*MP*)
21267       if test -d /usr/nec; then
21268         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21269         hardcode_shlibpath_var_F77=no
21270         runpath_var=LD_RUN_PATH
21271         hardcode_runpath_var=yes
21272         ld_shlibs_F77=yes
21273       fi
21274       ;;
21275
21276     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21277       no_undefined_flag_F77='${wl}-z,text'
21278       archive_cmds_need_lc_F77=no
21279       hardcode_shlibpath_var_F77=no
21280       runpath_var='LD_RUN_PATH'
21281
21282       if test "$GCC" = yes; then
21283         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21284         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21285       else
21286         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21288       fi
21289       ;;
21290
21291     sysv5* | sco3.2v5* | sco5v6*)
21292       # Note: We can NOT use -z defs as we might desire, because we do not
21293       # link with -lc, and that would cause any symbols used from libc to
21294       # always be unresolved, which means just about no library would
21295       # ever link correctly.  If we're not using GNU ld we use -z text
21296       # though, which does catch some bad symbols but isn't as heavy-handed
21297       # as -z defs.
21298       no_undefined_flag_F77='${wl}-z,text'
21299       allow_undefined_flag_F77='${wl}-z,nodefs'
21300       archive_cmds_need_lc_F77=no
21301       hardcode_shlibpath_var_F77=no
21302       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21303       hardcode_libdir_separator_F77=':'
21304       link_all_deplibs_F77=yes
21305       export_dynamic_flag_spec_F77='${wl}-Bexport'
21306       runpath_var='LD_RUN_PATH'
21307
21308       if test "$GCC" = yes; then
21309         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21311       else
21312         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21314       fi
21315       ;;
21316
21317     uts4*)
21318       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21319       hardcode_libdir_flag_spec_F77='-L$libdir'
21320       hardcode_shlibpath_var_F77=no
21321       ;;
21322
21323     *)
21324       ld_shlibs_F77=no
21325       ;;
21326     esac
21327   fi
21328
21329 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21330 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21331 test "$ld_shlibs_F77" = no && can_build_shared=no
21332
21333 #
21334 # Do we need to explicitly link libc?
21335 #
21336 case "x$archive_cmds_need_lc_F77" in
21337 x|xyes)
21338   # Assume -lc should be added
21339   archive_cmds_need_lc_F77=yes
21340
21341   if test "$enable_shared" = yes && test "$GCC" = yes; then
21342     case $archive_cmds_F77 in
21343     *'~'*)
21344       # FIXME: we may have to deal with multi-command sequences.
21345       ;;
21346     '$CC '*)
21347       # Test whether the compiler implicitly links with -lc since on some
21348       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21349       # to ld, don't add -lc before -lgcc.
21350       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21351 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21352       $rm conftest*
21353       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21354
21355       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21356   (eval $ac_compile) 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } 2>conftest.err; then
21360         soname=conftest
21361         lib=conftest
21362         libobjs=conftest.$ac_objext
21363         deplibs=
21364         wl=$lt_prog_compiler_wl_F77
21365         pic_flag=$lt_prog_compiler_pic_F77
21366         compiler_flags=-v
21367         linker_flags=-v
21368         verstring=
21369         output_objdir=.
21370         libname=conftest
21371         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21372         allow_undefined_flag_F77=
21373         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21374   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }
21378         then
21379           archive_cmds_need_lc_F77=no
21380         else
21381           archive_cmds_need_lc_F77=yes
21382         fi
21383         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21384       else
21385         cat conftest.err 1>&5
21386       fi
21387       $rm conftest*
21388       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21389 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21390       ;;
21391     esac
21392   fi
21393   ;;
21394 esac
21395
21396 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21398 library_names_spec=
21399 libname_spec='lib$name'
21400 soname_spec=
21401 shrext_cmds=".so"
21402 postinstall_cmds=
21403 postuninstall_cmds=
21404 finish_cmds=
21405 finish_eval=
21406 shlibpath_var=
21407 shlibpath_overrides_runpath=unknown
21408 version_type=none
21409 dynamic_linker="$host_os ld.so"
21410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21411 if test "$GCC" = yes; then
21412   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21413   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21414     # if the path contains ";" then we assume it to be the separator
21415     # otherwise default to the standard path separator (i.e. ":") - it is
21416     # assumed that no part of a normal pathname contains ";" but that should
21417     # okay in the real world where ";" in dirpaths is itself problematic.
21418     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21419   else
21420     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21421   fi
21422 else
21423   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21424 fi
21425 need_lib_prefix=unknown
21426 hardcode_into_libs=no
21427
21428 # when you set need_version to no, make sure it does not cause -set_version
21429 # flags to be left without arguments
21430 need_version=unknown
21431
21432 case $host_os in
21433 aix3*)
21434   version_type=linux
21435   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21436   shlibpath_var=LIBPATH
21437
21438   # AIX 3 has no versioning support, so we append a major version to the name.
21439   soname_spec='${libname}${release}${shared_ext}$major'
21440   ;;
21441
21442 aix4* | aix5*)
21443   version_type=linux
21444   need_lib_prefix=no
21445   need_version=no
21446   hardcode_into_libs=yes
21447   if test "$host_cpu" = ia64; then
21448     # AIX 5 supports IA64
21449     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21450     shlibpath_var=LD_LIBRARY_PATH
21451   else
21452     # With GCC up to 2.95.x, collect2 would create an import file
21453     # for dependence libraries.  The import file would start with
21454     # the line `#! .'.  This would cause the generated library to
21455     # depend on `.', always an invalid library.  This was fixed in
21456     # development snapshots of GCC prior to 3.0.
21457     case $host_os in
21458       aix4 | aix4.[01] | aix4.[01].*)
21459       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21460            echo ' yes '
21461            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21462         :
21463       else
21464         can_build_shared=no
21465       fi
21466       ;;
21467     esac
21468     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21469     # soname into executable. Probably we can add versioning support to
21470     # collect2, so additional links can be useful in future.
21471     if test "$aix_use_runtimelinking" = yes; then
21472       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21473       # instead of lib<name>.a to let people know that these are not
21474       # typical AIX shared libraries.
21475       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21476     else
21477       # We preserve .a as extension for shared libraries through AIX4.2
21478       # and later when we are not doing run time linking.
21479       library_names_spec='${libname}${release}.a $libname.a'
21480       soname_spec='${libname}${release}${shared_ext}$major'
21481     fi
21482     shlibpath_var=LIBPATH
21483   fi
21484   ;;
21485
21486 amigaos*)
21487   library_names_spec='$libname.ixlibrary $libname.a'
21488   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21489   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'
21490   ;;
21491
21492 beos*)
21493   library_names_spec='${libname}${shared_ext}'
21494   dynamic_linker="$host_os ld.so"
21495   shlibpath_var=LIBRARY_PATH
21496   ;;
21497
21498 bsdi[45]*)
21499   version_type=linux
21500   need_version=no
21501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21502   soname_spec='${libname}${release}${shared_ext}$major'
21503   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21504   shlibpath_var=LD_LIBRARY_PATH
21505   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21506   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21507   # the default ld.so.conf also contains /usr/contrib/lib and
21508   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21509   # libtool to hard-code these into programs
21510   ;;
21511
21512 cygwin* | mingw* | pw32*)
21513   version_type=windows
21514   shrext_cmds=".dll"
21515   need_version=no
21516   need_lib_prefix=no
21517
21518   case $GCC,$host_os in
21519   yes,cygwin* | yes,mingw* | yes,pw32*)
21520     library_names_spec='$libname.dll.a'
21521     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21522     postinstall_cmds='base_file=`basename \${file}`~
21523       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21524       dldir=$destdir/`dirname \$dlpath`~
21525       test -d \$dldir || mkdir -p \$dldir~
21526       $install_prog $dir/$dlname \$dldir/$dlname~
21527       chmod a+x \$dldir/$dlname'
21528     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21529       dlpath=$dir/\$dldll~
21530        $rm \$dlpath'
21531     shlibpath_overrides_runpath=yes
21532
21533     case $host_os in
21534     cygwin*)
21535       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21536       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21537       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21538       ;;
21539     mingw*)
21540       # MinGW DLLs use traditional 'lib' prefix
21541       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21542       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21543       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21544         # It is most probably a Windows format PATH printed by
21545         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21546         # path with ; separators, and with drive letters. We can handle the
21547         # drive letters (cygwin fileutils understands them), so leave them,
21548         # especially as we might pass files found there to a mingw objdump,
21549         # which wouldn't understand a cygwinified path. Ahh.
21550         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21551       else
21552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21553       fi
21554       ;;
21555     pw32*)
21556       # pw32 DLLs use 'pw' prefix rather than 'lib'
21557       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21558       ;;
21559     esac
21560     ;;
21561
21562   *)
21563     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21564     ;;
21565   esac
21566   dynamic_linker='Win32 ld.exe'
21567   # FIXME: first we should search . and the directory the executable is in
21568   shlibpath_var=PATH
21569   ;;
21570
21571 darwin* | rhapsody*)
21572   dynamic_linker="$host_os dyld"
21573   version_type=darwin
21574   need_lib_prefix=no
21575   need_version=no
21576   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21577   soname_spec='${libname}${release}${major}$shared_ext'
21578   shlibpath_overrides_runpath=yes
21579   shlibpath_var=DYLD_LIBRARY_PATH
21580   shrext_cmds='.dylib'
21581   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21582   if test "$GCC" = yes; then
21583     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"`
21584   else
21585     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21586   fi
21587   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21588   ;;
21589
21590 dgux*)
21591   version_type=linux
21592   need_lib_prefix=no
21593   need_version=no
21594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21595   soname_spec='${libname}${release}${shared_ext}$major'
21596   shlibpath_var=LD_LIBRARY_PATH
21597   ;;
21598
21599 freebsd1*)
21600   dynamic_linker=no
21601   ;;
21602
21603 kfreebsd*-gnu)
21604   version_type=linux
21605   need_lib_prefix=no
21606   need_version=no
21607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21608   soname_spec='${libname}${release}${shared_ext}$major'
21609   shlibpath_var=LD_LIBRARY_PATH
21610   shlibpath_overrides_runpath=no
21611   hardcode_into_libs=yes
21612   dynamic_linker='GNU ld.so'
21613   ;;
21614
21615 freebsd* | dragonfly*)
21616   # DragonFly does not have aout.  When/if they implement a new
21617   # versioning mechanism, adjust this.
21618   if test -x /usr/bin/objformat; then
21619     objformat=`/usr/bin/objformat`
21620   else
21621     case $host_os in
21622     freebsd[123]*) objformat=aout ;;
21623     *) objformat=elf ;;
21624     esac
21625   fi
21626   version_type=freebsd-$objformat
21627   case $version_type in
21628     freebsd-elf*)
21629       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21630       need_version=no
21631       need_lib_prefix=no
21632       ;;
21633     freebsd-*)
21634       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21635       need_version=yes
21636       ;;
21637   esac
21638   shlibpath_var=LD_LIBRARY_PATH
21639   case $host_os in
21640   freebsd2*)
21641     shlibpath_overrides_runpath=yes
21642     ;;
21643   freebsd3.[01]* | freebsdelf3.[01]*)
21644     shlibpath_overrides_runpath=yes
21645     hardcode_into_libs=yes
21646     ;;
21647   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21648   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21649     shlibpath_overrides_runpath=no
21650     hardcode_into_libs=yes
21651     ;;
21652   freebsd*) # from 4.6 on
21653     shlibpath_overrides_runpath=yes
21654     hardcode_into_libs=yes
21655     ;;
21656   esac
21657   ;;
21658
21659 gnu*)
21660   version_type=linux
21661   need_lib_prefix=no
21662   need_version=no
21663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21664   soname_spec='${libname}${release}${shared_ext}$major'
21665   shlibpath_var=LD_LIBRARY_PATH
21666   hardcode_into_libs=yes
21667   ;;
21668
21669 hpux9* | hpux10* | hpux11*)
21670   # Give a soname corresponding to the major version so that dld.sl refuses to
21671   # link against other versions.
21672   version_type=sunos
21673   need_lib_prefix=no
21674   need_version=no
21675   case $host_cpu in
21676   ia64*)
21677     shrext_cmds='.so'
21678     hardcode_into_libs=yes
21679     dynamic_linker="$host_os dld.so"
21680     shlibpath_var=LD_LIBRARY_PATH
21681     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21683     soname_spec='${libname}${release}${shared_ext}$major'
21684     if test "X$HPUX_IA64_MODE" = X32; then
21685       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21686     else
21687       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21688     fi
21689     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21690     ;;
21691    hppa*64*)
21692      shrext_cmds='.sl'
21693      hardcode_into_libs=yes
21694      dynamic_linker="$host_os dld.sl"
21695      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21696      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21697      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21698      soname_spec='${libname}${release}${shared_ext}$major'
21699      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21700      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21701      ;;
21702    *)
21703     shrext_cmds='.sl'
21704     dynamic_linker="$host_os dld.sl"
21705     shlibpath_var=SHLIB_PATH
21706     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708     soname_spec='${libname}${release}${shared_ext}$major'
21709     ;;
21710   esac
21711   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21712   postinstall_cmds='chmod 555 $lib'
21713   ;;
21714
21715 interix3*)
21716   version_type=linux
21717   need_lib_prefix=no
21718   need_version=no
21719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21720   soname_spec='${libname}${release}${shared_ext}$major'
21721   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21722   shlibpath_var=LD_LIBRARY_PATH
21723   shlibpath_overrides_runpath=no
21724   hardcode_into_libs=yes
21725   ;;
21726
21727 irix5* | irix6* | nonstopux*)
21728   case $host_os in
21729     nonstopux*) version_type=nonstopux ;;
21730     *)
21731         if test "$lt_cv_prog_gnu_ld" = yes; then
21732                 version_type=linux
21733         else
21734                 version_type=irix
21735         fi ;;
21736   esac
21737   need_lib_prefix=no
21738   need_version=no
21739   soname_spec='${libname}${release}${shared_ext}$major'
21740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21741   case $host_os in
21742   irix5* | nonstopux*)
21743     libsuff= shlibsuff=
21744     ;;
21745   *)
21746     case $LD in # libtool.m4 will add one of these switches to LD
21747     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21748       libsuff= shlibsuff= libmagic=32-bit;;
21749     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21750       libsuff=32 shlibsuff=N32 libmagic=N32;;
21751     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21752       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21753     *) libsuff= shlibsuff= libmagic=never-match;;
21754     esac
21755     ;;
21756   esac
21757   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21758   shlibpath_overrides_runpath=no
21759   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21760   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21761   hardcode_into_libs=yes
21762   ;;
21763
21764 # No shared lib support for Linux oldld, aout, or coff.
21765 linux*oldld* | linux*aout* | linux*coff*)
21766   dynamic_linker=no
21767   ;;
21768
21769 # This must be Linux ELF.
21770 linux*)
21771   version_type=linux
21772   need_lib_prefix=no
21773   need_version=no
21774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21775   soname_spec='${libname}${release}${shared_ext}$major'
21776   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21777   shlibpath_var=LD_LIBRARY_PATH
21778   shlibpath_overrides_runpath=no
21779   # This implies no fast_install, which is unacceptable.
21780   # Some rework will be needed to allow for fast_install
21781   # before this can be enabled.
21782   hardcode_into_libs=yes
21783
21784   # Append ld.so.conf contents to the search path
21785   if test -f /etc/ld.so.conf; then
21786     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' ' '`
21787     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21788   fi
21789
21790   # We used to test for /lib/ld.so.1 and disable shared libraries on
21791   # powerpc, because MkLinux only supported shared libraries with the
21792   # GNU dynamic linker.  Since this was broken with cross compilers,
21793   # most powerpc-linux boxes support dynamic linking these days and
21794   # people can always --disable-shared, the test was removed, and we
21795   # assume the GNU/Linux dynamic linker is in use.
21796   dynamic_linker='GNU/Linux ld.so'
21797   ;;
21798
21799 knetbsd*-gnu)
21800   version_type=linux
21801   need_lib_prefix=no
21802   need_version=no
21803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21804   soname_spec='${libname}${release}${shared_ext}$major'
21805   shlibpath_var=LD_LIBRARY_PATH
21806   shlibpath_overrides_runpath=no
21807   hardcode_into_libs=yes
21808   dynamic_linker='GNU ld.so'
21809   ;;
21810
21811 netbsd*)
21812   version_type=sunos
21813   need_lib_prefix=no
21814   need_version=no
21815   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21817     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21818     dynamic_linker='NetBSD (a.out) ld.so'
21819   else
21820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21821     soname_spec='${libname}${release}${shared_ext}$major'
21822     dynamic_linker='NetBSD ld.elf_so'
21823   fi
21824   shlibpath_var=LD_LIBRARY_PATH
21825   shlibpath_overrides_runpath=yes
21826   hardcode_into_libs=yes
21827   ;;
21828
21829 newsos6)
21830   version_type=linux
21831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21832   shlibpath_var=LD_LIBRARY_PATH
21833   shlibpath_overrides_runpath=yes
21834   ;;
21835
21836 nto-qnx*)
21837   version_type=linux
21838   need_lib_prefix=no
21839   need_version=no
21840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21841   soname_spec='${libname}${release}${shared_ext}$major'
21842   shlibpath_var=LD_LIBRARY_PATH
21843   shlibpath_overrides_runpath=yes
21844   ;;
21845
21846 openbsd*)
21847   version_type=sunos
21848   sys_lib_dlsearch_path_spec="/usr/lib"
21849   need_lib_prefix=no
21850   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21851   case $host_os in
21852     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21853     *)                         need_version=no  ;;
21854   esac
21855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21856   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21857   shlibpath_var=LD_LIBRARY_PATH
21858   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21859     case $host_os in
21860       openbsd2.[89] | openbsd2.[89].*)
21861         shlibpath_overrides_runpath=no
21862         ;;
21863       *)
21864         shlibpath_overrides_runpath=yes
21865         ;;
21866       esac
21867   else
21868     shlibpath_overrides_runpath=yes
21869   fi
21870   ;;
21871
21872 os2*)
21873   libname_spec='$name'
21874   shrext_cmds=".dll"
21875   need_lib_prefix=no
21876   library_names_spec='$libname${shared_ext} $libname.a'
21877   dynamic_linker='OS/2 ld.exe'
21878   shlibpath_var=LIBPATH
21879   ;;
21880
21881 osf3* | osf4* | osf5*)
21882   version_type=osf
21883   need_lib_prefix=no
21884   need_version=no
21885   soname_spec='${libname}${release}${shared_ext}$major'
21886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21887   shlibpath_var=LD_LIBRARY_PATH
21888   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21889   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21890   ;;
21891
21892 solaris*)
21893   version_type=linux
21894   need_lib_prefix=no
21895   need_version=no
21896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21897   soname_spec='${libname}${release}${shared_ext}$major'
21898   shlibpath_var=LD_LIBRARY_PATH
21899   shlibpath_overrides_runpath=yes
21900   hardcode_into_libs=yes
21901   # ldd complains unless libraries are executable
21902   postinstall_cmds='chmod +x $lib'
21903   ;;
21904
21905 sunos4*)
21906   version_type=sunos
21907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21908   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21909   shlibpath_var=LD_LIBRARY_PATH
21910   shlibpath_overrides_runpath=yes
21911   if test "$with_gnu_ld" = yes; then
21912     need_lib_prefix=no
21913   fi
21914   need_version=yes
21915   ;;
21916
21917 sysv4 | sysv4.3*)
21918   version_type=linux
21919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21920   soname_spec='${libname}${release}${shared_ext}$major'
21921   shlibpath_var=LD_LIBRARY_PATH
21922   case $host_vendor in
21923     sni)
21924       shlibpath_overrides_runpath=no
21925       need_lib_prefix=no
21926       export_dynamic_flag_spec='${wl}-Blargedynsym'
21927       runpath_var=LD_RUN_PATH
21928       ;;
21929     siemens)
21930       need_lib_prefix=no
21931       ;;
21932     motorola)
21933       need_lib_prefix=no
21934       need_version=no
21935       shlibpath_overrides_runpath=no
21936       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21937       ;;
21938   esac
21939   ;;
21940
21941 sysv4*MP*)
21942   if test -d /usr/nec ;then
21943     version_type=linux
21944     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21945     soname_spec='$libname${shared_ext}.$major'
21946     shlibpath_var=LD_LIBRARY_PATH
21947   fi
21948   ;;
21949
21950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21951   version_type=freebsd-elf
21952   need_lib_prefix=no
21953   need_version=no
21954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21955   soname_spec='${libname}${release}${shared_ext}$major'
21956   shlibpath_var=LD_LIBRARY_PATH
21957   hardcode_into_libs=yes
21958   if test "$with_gnu_ld" = yes; then
21959     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21960     shlibpath_overrides_runpath=no
21961   else
21962     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21963     shlibpath_overrides_runpath=yes
21964     case $host_os in
21965       sco3.2v5*)
21966         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21967         ;;
21968     esac
21969   fi
21970   sys_lib_dlsearch_path_spec='/usr/lib'
21971   ;;
21972
21973 uts4*)
21974   version_type=linux
21975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21976   soname_spec='${libname}${release}${shared_ext}$major'
21977   shlibpath_var=LD_LIBRARY_PATH
21978   ;;
21979
21980 *)
21981   dynamic_linker=no
21982   ;;
21983 esac
21984 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21985 echo "${ECHO_T}$dynamic_linker" >&6; }
21986 test "$dynamic_linker" = no && can_build_shared=no
21987
21988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21989 if test "$GCC" = yes; then
21990   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21991 fi
21992
21993 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21994 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21995 hardcode_action_F77=
21996 if test -n "$hardcode_libdir_flag_spec_F77" || \
21997    test -n "$runpath_var_F77" || \
21998    test "X$hardcode_automatic_F77" = "Xyes" ; then
21999
22000   # We can hardcode non-existant directories.
22001   if test "$hardcode_direct_F77" != no &&
22002      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22003      # have to relink, otherwise we might link with an installed library
22004      # when we should be linking with a yet-to-be-installed one
22005      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22006      test "$hardcode_minus_L_F77" != no; then
22007     # Linking always hardcodes the temporary library directory.
22008     hardcode_action_F77=relink
22009   else
22010     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22011     hardcode_action_F77=immediate
22012   fi
22013 else
22014   # We cannot hardcode anything, or else we can only hardcode existing
22015   # directories.
22016   hardcode_action_F77=unsupported
22017 fi
22018 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22019 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22020
22021 if test "$hardcode_action_F77" = relink; then
22022   # Fast installation is not supported
22023   enable_fast_install=no
22024 elif test "$shlibpath_overrides_runpath" = yes ||
22025      test "$enable_shared" = no; then
22026   # Fast installation is not necessary
22027   enable_fast_install=needless
22028 fi
22029
22030
22031 # The else clause should only fire when bootstrapping the
22032 # libtool distribution, otherwise you forgot to ship ltmain.sh
22033 # with your package, and you will get complaints that there are
22034 # no rules to generate ltmain.sh.
22035 if test -f "$ltmain"; then
22036   # See if we are running on zsh, and set the options which allow our commands through
22037   # without removal of \ escapes.
22038   if test -n "${ZSH_VERSION+set}" ; then
22039     setopt NO_GLOB_SUBST
22040   fi
22041   # Now quote all the things that may contain metacharacters while being
22042   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22043   # variables and quote the copies for generation of the libtool script.
22044   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22045     SED SHELL STRIP \
22046     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22047     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22048     deplibs_check_method reload_flag reload_cmds need_locks \
22049     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22050     lt_cv_sys_global_symbol_to_c_name_address \
22051     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22052     old_postinstall_cmds old_postuninstall_cmds \
22053     compiler_F77 \
22054     CC_F77 \
22055     LD_F77 \
22056     lt_prog_compiler_wl_F77 \
22057     lt_prog_compiler_pic_F77 \
22058     lt_prog_compiler_static_F77 \
22059     lt_prog_compiler_no_builtin_flag_F77 \
22060     export_dynamic_flag_spec_F77 \
22061     thread_safe_flag_spec_F77 \
22062     whole_archive_flag_spec_F77 \
22063     enable_shared_with_static_runtimes_F77 \
22064     old_archive_cmds_F77 \
22065     old_archive_from_new_cmds_F77 \
22066     predep_objects_F77 \
22067     postdep_objects_F77 \
22068     predeps_F77 \
22069     postdeps_F77 \
22070     compiler_lib_search_path_F77 \
22071     archive_cmds_F77 \
22072     archive_expsym_cmds_F77 \
22073     postinstall_cmds_F77 \
22074     postuninstall_cmds_F77 \
22075     old_archive_from_expsyms_cmds_F77 \
22076     allow_undefined_flag_F77 \
22077     no_undefined_flag_F77 \
22078     export_symbols_cmds_F77 \
22079     hardcode_libdir_flag_spec_F77 \
22080     hardcode_libdir_flag_spec_ld_F77 \
22081     hardcode_libdir_separator_F77 \
22082     hardcode_automatic_F77 \
22083     module_cmds_F77 \
22084     module_expsym_cmds_F77 \
22085     lt_cv_prog_compiler_c_o_F77 \
22086     exclude_expsyms_F77 \
22087     include_expsyms_F77; do
22088
22089     case $var in
22090     old_archive_cmds_F77 | \
22091     old_archive_from_new_cmds_F77 | \
22092     archive_cmds_F77 | \
22093     archive_expsym_cmds_F77 | \
22094     module_cmds_F77 | \
22095     module_expsym_cmds_F77 | \
22096     old_archive_from_expsyms_cmds_F77 | \
22097     export_symbols_cmds_F77 | \
22098     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22099     postinstall_cmds | postuninstall_cmds | \
22100     old_postinstall_cmds | old_postuninstall_cmds | \
22101     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22102       # Double-quote double-evaled strings.
22103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22104       ;;
22105     *)
22106       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22107       ;;
22108     esac
22109   done
22110
22111   case $lt_echo in
22112   *'\$0 --fallback-echo"')
22113     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22114     ;;
22115   esac
22116
22117 cfgfile="$ofile"
22118
22119   cat <<__EOF__ >> "$cfgfile"
22120 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22121
22122 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22123
22124 # Shell to use when invoking shell scripts.
22125 SHELL=$lt_SHELL
22126
22127 # Whether or not to build shared libraries.
22128 build_libtool_libs=$enable_shared
22129
22130 # Whether or not to build static libraries.
22131 build_old_libs=$enable_static
22132
22133 # Whether or not to add -lc for building shared libraries.
22134 build_libtool_need_lc=$archive_cmds_need_lc_F77
22135
22136 # Whether or not to disallow shared libs when runtime libs are static
22137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22138
22139 # Whether or not to optimize for fast installation.
22140 fast_install=$enable_fast_install
22141
22142 # The host system.
22143 host_alias=$host_alias
22144 host=$host
22145 host_os=$host_os
22146
22147 # The build system.
22148 build_alias=$build_alias
22149 build=$build
22150 build_os=$build_os
22151
22152 # An echo program that does not interpret backslashes.
22153 echo=$lt_echo
22154
22155 # The archiver.
22156 AR=$lt_AR
22157 AR_FLAGS=$lt_AR_FLAGS
22158
22159 # A C compiler.
22160 LTCC=$lt_LTCC
22161
22162 # LTCC compiler flags.
22163 LTCFLAGS=$lt_LTCFLAGS
22164
22165 # A language-specific compiler.
22166 CC=$lt_compiler_F77
22167
22168 # Is the compiler the GNU C compiler?
22169 with_gcc=$GCC_F77
22170
22171 # An ERE matcher.
22172 EGREP=$lt_EGREP
22173
22174 # The linker used to build libraries.
22175 LD=$lt_LD_F77
22176
22177 # Whether we need hard or soft links.
22178 LN_S=$lt_LN_S
22179
22180 # A BSD-compatible nm program.
22181 NM=$lt_NM
22182
22183 # A symbol stripping program
22184 STRIP=$lt_STRIP
22185
22186 # Used to examine libraries when file_magic_cmd begins "file"
22187 MAGIC_CMD=$MAGIC_CMD
22188
22189 # Used on cygwin: DLL creation program.
22190 DLLTOOL="$DLLTOOL"
22191
22192 # Used on cygwin: object dumper.
22193 OBJDUMP="$OBJDUMP"
22194
22195 # Used on cygwin: assembler.
22196 AS="$AS"
22197
22198 # The name of the directory that contains temporary libtool files.
22199 objdir=$objdir
22200
22201 # How to create reloadable object files.
22202 reload_flag=$lt_reload_flag
22203 reload_cmds=$lt_reload_cmds
22204
22205 # How to pass a linker flag through the compiler.
22206 wl=$lt_lt_prog_compiler_wl_F77
22207
22208 # Object file suffix (normally "o").
22209 objext="$ac_objext"
22210
22211 # Old archive suffix (normally "a").
22212 libext="$libext"
22213
22214 # Shared library suffix (normally ".so").
22215 shrext_cmds='$shrext_cmds'
22216
22217 # Executable file suffix (normally "").
22218 exeext="$exeext"
22219
22220 # Additional compiler flags for building library objects.
22221 pic_flag=$lt_lt_prog_compiler_pic_F77
22222 pic_mode=$pic_mode
22223
22224 # What is the maximum length of a command?
22225 max_cmd_len=$lt_cv_sys_max_cmd_len
22226
22227 # Does compiler simultaneously support -c and -o options?
22228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22229
22230 # Must we lock files when doing compilation?
22231 need_locks=$lt_need_locks
22232
22233 # Do we need the lib prefix for modules?
22234 need_lib_prefix=$need_lib_prefix
22235
22236 # Do we need a version for libraries?
22237 need_version=$need_version
22238
22239 # Whether dlopen is supported.
22240 dlopen_support=$enable_dlopen
22241
22242 # Whether dlopen of programs is supported.
22243 dlopen_self=$enable_dlopen_self
22244
22245 # Whether dlopen of statically linked programs is supported.
22246 dlopen_self_static=$enable_dlopen_self_static
22247
22248 # Compiler flag to prevent dynamic linking.
22249 link_static_flag=$lt_lt_prog_compiler_static_F77
22250
22251 # Compiler flag to turn off builtin functions.
22252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22253
22254 # Compiler flag to allow reflexive dlopens.
22255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22256
22257 # Compiler flag to generate shared objects directly from archives.
22258 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22259
22260 # Compiler flag to generate thread-safe objects.
22261 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22262
22263 # Library versioning type.
22264 version_type=$version_type
22265
22266 # Format of library name prefix.
22267 libname_spec=$lt_libname_spec
22268
22269 # List of archive names.  First name is the real one, the rest are links.
22270 # The last name is the one that the linker finds with -lNAME.
22271 library_names_spec=$lt_library_names_spec
22272
22273 # The coded name of the library, if different from the real name.
22274 soname_spec=$lt_soname_spec
22275
22276 # Commands used to build and install an old-style archive.
22277 RANLIB=$lt_RANLIB
22278 old_archive_cmds=$lt_old_archive_cmds_F77
22279 old_postinstall_cmds=$lt_old_postinstall_cmds
22280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22281
22282 # Create an old-style archive from a shared archive.
22283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22284
22285 # Create a temporary old-style archive to link instead of a shared archive.
22286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22287
22288 # Commands used to build and install a shared archive.
22289 archive_cmds=$lt_archive_cmds_F77
22290 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22291 postinstall_cmds=$lt_postinstall_cmds
22292 postuninstall_cmds=$lt_postuninstall_cmds
22293
22294 # Commands used to build a loadable module (assumed same as above if empty)
22295 module_cmds=$lt_module_cmds_F77
22296 module_expsym_cmds=$lt_module_expsym_cmds_F77
22297
22298 # Commands to strip libraries.
22299 old_striplib=$lt_old_striplib
22300 striplib=$lt_striplib
22301
22302 # Dependencies to place before the objects being linked to create a
22303 # shared library.
22304 predep_objects=$lt_predep_objects_F77
22305
22306 # Dependencies to place after the objects being linked to create a
22307 # shared library.
22308 postdep_objects=$lt_postdep_objects_F77
22309
22310 # Dependencies to place before the objects being linked to create a
22311 # shared library.
22312 predeps=$lt_predeps_F77
22313
22314 # Dependencies to place after the objects being linked to create a
22315 # shared library.
22316 postdeps=$lt_postdeps_F77
22317
22318 # The library search path used internally by the compiler when linking
22319 # a shared library.
22320 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22321
22322 # Method to check whether dependent libraries are shared objects.
22323 deplibs_check_method=$lt_deplibs_check_method
22324
22325 # Command to use when deplibs_check_method == file_magic.
22326 file_magic_cmd=$lt_file_magic_cmd
22327
22328 # Flag that allows shared libraries with undefined symbols to be built.
22329 allow_undefined_flag=$lt_allow_undefined_flag_F77
22330
22331 # Flag that forces no undefined symbols.
22332 no_undefined_flag=$lt_no_undefined_flag_F77
22333
22334 # Commands used to finish a libtool library installation in a directory.
22335 finish_cmds=$lt_finish_cmds
22336
22337 # Same as above, but a single script fragment to be evaled but not shown.
22338 finish_eval=$lt_finish_eval
22339
22340 # Take the output of nm and produce a listing of raw symbols and C names.
22341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22342
22343 # Transform the output of nm in a proper C declaration
22344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22345
22346 # Transform the output of nm in a C name address pair
22347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22348
22349 # This is the shared library runtime path variable.
22350 runpath_var=$runpath_var
22351
22352 # This is the shared library path variable.
22353 shlibpath_var=$shlibpath_var
22354
22355 # Is shlibpath searched before the hard-coded library search path?
22356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22357
22358 # How to hardcode a shared library path into an executable.
22359 hardcode_action=$hardcode_action_F77
22360
22361 # Whether we should hardcode library paths into libraries.
22362 hardcode_into_libs=$hardcode_into_libs
22363
22364 # Flag to hardcode \$libdir into a binary during linking.
22365 # This must work even if \$libdir does not exist.
22366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22367
22368 # If ld is used when linking, flag to hardcode \$libdir into
22369 # a binary during linking. This must work even if \$libdir does
22370 # not exist.
22371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22372
22373 # Whether we need a single -rpath flag with a separated argument.
22374 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22375
22376 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22377 # resulting binary.
22378 hardcode_direct=$hardcode_direct_F77
22379
22380 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22381 # resulting binary.
22382 hardcode_minus_L=$hardcode_minus_L_F77
22383
22384 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22385 # the resulting binary.
22386 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22387
22388 # Set to yes if building a shared library automatically hardcodes DIR into the library
22389 # and all subsequent libraries and executables linked against it.
22390 hardcode_automatic=$hardcode_automatic_F77
22391
22392 # Variables whose values should be saved in libtool wrapper scripts and
22393 # restored at relink time.
22394 variables_saved_for_relink="$variables_saved_for_relink"
22395
22396 # Whether libtool must link a program against all its dependency libraries.
22397 link_all_deplibs=$link_all_deplibs_F77
22398
22399 # Compile-time system search path for libraries
22400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22401
22402 # Run-time system search path for libraries
22403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22404
22405 # Fix the shell variable \$srcfile for the compiler.
22406 fix_srcfile_path="$fix_srcfile_path_F77"
22407
22408 # Set to yes if exported symbols are required.
22409 always_export_symbols=$always_export_symbols_F77
22410
22411 # The commands to list exported symbols.
22412 export_symbols_cmds=$lt_export_symbols_cmds_F77
22413
22414 # The commands to extract the exported symbol list from a shared archive.
22415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22416
22417 # Symbols that should not be listed in the preloaded symbols.
22418 exclude_expsyms=$lt_exclude_expsyms_F77
22419
22420 # Symbols that must always be exported.
22421 include_expsyms=$lt_include_expsyms_F77
22422
22423 # ### END LIBTOOL TAG CONFIG: $tagname
22424
22425 __EOF__
22426
22427
22428 else
22429   # If there is no Makefile yet, we rely on a make rule to execute
22430   # `config.status --recheck' to rerun these tests and create the
22431   # libtool script then.
22432   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22433   if test -f "$ltmain_in"; then
22434     test -f Makefile && make "$ltmain"
22435   fi
22436 fi
22437
22438
22439 ac_ext=c
22440 ac_cpp='$CPP $CPPFLAGS'
22441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22444
22445 CC="$lt_save_CC"
22446
22447         else
22448           tagname=""
22449         fi
22450         ;;
22451
22452       GCJ)
22453         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22454           ac_ext=c
22455 ac_cpp='$CPP $CPPFLAGS'
22456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22459
22460
22461 # Source file extension for Java test sources.
22462 ac_ext=java
22463
22464 # Object file extension for compiled Java test sources.
22465 objext=o
22466 objext_GCJ=$objext
22467
22468 # Code to be used in simple compile tests
22469 lt_simple_compile_test_code="class foo {}\n"
22470
22471 # Code to be used in simple link tests
22472 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22473
22474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22475
22476 # If no C compiler was specified, use CC.
22477 LTCC=${LTCC-"$CC"}
22478
22479 # If no C compiler flags were specified, use CFLAGS.
22480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22481
22482 # Allow CC to be a program name with arguments.
22483 compiler=$CC
22484
22485
22486 # save warnings/boilerplate of simple test code
22487 ac_outfile=conftest.$ac_objext
22488 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22490 _lt_compiler_boilerplate=`cat conftest.err`
22491 $rm conftest*
22492
22493 ac_outfile=conftest.$ac_objext
22494 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22496 _lt_linker_boilerplate=`cat conftest.err`
22497 $rm conftest*
22498
22499
22500 # Allow CC to be a program name with arguments.
22501 lt_save_CC="$CC"
22502 CC=${GCJ-"gcj"}
22503 compiler=$CC
22504 compiler_GCJ=$CC
22505 for cc_temp in $compiler""; do
22506   case $cc_temp in
22507     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22508     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22509     \-*) ;;
22510     *) break;;
22511   esac
22512 done
22513 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22514
22515
22516 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22517 archive_cmds_need_lc_GCJ=no
22518
22519 old_archive_cmds_GCJ=$old_archive_cmds
22520
22521
22522 lt_prog_compiler_no_builtin_flag_GCJ=
22523
22524 if test "$GCC" = yes; then
22525   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22526
22527
22528 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533   lt_cv_prog_compiler_rtti_exceptions=no
22534   ac_outfile=conftest.$ac_objext
22535    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22536    lt_compiler_flag="-fno-rtti -fno-exceptions"
22537    # Insert the option either (1) after the last *FLAGS variable, or
22538    # (2) before a word containing "conftest.", or (3) at the end.
22539    # Note that $ac_compile itself does not contain backslashes and begins
22540    # with a dollar sign (not a hyphen), so the echo should work correctly.
22541    # The option is referenced via a variable to avoid confusing sed.
22542    lt_compile=`echo "$ac_compile" | $SED \
22543    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22544    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22545    -e 's:$: $lt_compiler_flag:'`
22546    (eval echo "\"\$as_me:22546: $lt_compile\"" >&5)
22547    (eval "$lt_compile" 2>conftest.err)
22548    ac_status=$?
22549    cat conftest.err >&5
22550    echo "$as_me:22550: \$? = $ac_status" >&5
22551    if (exit $ac_status) && test -s "$ac_outfile"; then
22552      # The compiler can only warn and ignore the option if not recognized
22553      # So say no if there are warnings other than the usual output.
22554      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22555      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22556      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22557        lt_cv_prog_compiler_rtti_exceptions=yes
22558      fi
22559    fi
22560    $rm conftest*
22561
22562 fi
22563 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22564 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22565
22566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22567     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22568 else
22569     :
22570 fi
22571
22572 fi
22573
22574 lt_prog_compiler_wl_GCJ=
22575 lt_prog_compiler_pic_GCJ=
22576 lt_prog_compiler_static_GCJ=
22577
22578 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22579 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22580
22581   if test "$GCC" = yes; then
22582     lt_prog_compiler_wl_GCJ='-Wl,'
22583     lt_prog_compiler_static_GCJ='-static'
22584
22585     case $host_os in
22586       aix*)
22587       # All AIX code is PIC.
22588       if test "$host_cpu" = ia64; then
22589         # AIX 5 now supports IA64 processor
22590         lt_prog_compiler_static_GCJ='-Bstatic'
22591       fi
22592       ;;
22593
22594     amigaos*)
22595       # FIXME: we need at least 68020 code to build shared libraries, but
22596       # adding the `-m68020' flag to GCC prevents building anything better,
22597       # like `-m68040'.
22598       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22599       ;;
22600
22601     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22602       # PIC is the default for these OSes.
22603       ;;
22604
22605     mingw* | pw32* | os2*)
22606       # This hack is so that the source file can tell whether it is being
22607       # built for inclusion in a dll (and should export symbols for example).
22608       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22609       ;;
22610
22611     darwin* | rhapsody*)
22612       # PIC is the default on this platform
22613       # Common symbols not allowed in MH_DYLIB files
22614       lt_prog_compiler_pic_GCJ='-fno-common'
22615       ;;
22616
22617     interix3*)
22618       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22619       # Instead, we relocate shared libraries at runtime.
22620       ;;
22621
22622     msdosdjgpp*)
22623       # Just because we use GCC doesn't mean we suddenly get shared libraries
22624       # on systems that don't support them.
22625       lt_prog_compiler_can_build_shared_GCJ=no
22626       enable_shared=no
22627       ;;
22628
22629     sysv4*MP*)
22630       if test -d /usr/nec; then
22631         lt_prog_compiler_pic_GCJ=-Kconform_pic
22632       fi
22633       ;;
22634
22635     hpux*)
22636       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22637       # not for PA HP-UX.
22638       case $host_cpu in
22639       hppa*64*|ia64*)
22640         # +Z the default
22641         ;;
22642       *)
22643         lt_prog_compiler_pic_GCJ='-fPIC'
22644         ;;
22645       esac
22646       ;;
22647
22648     *)
22649       lt_prog_compiler_pic_GCJ='-fPIC'
22650       ;;
22651     esac
22652   else
22653     # PORTME Check for flag to pass linker flags through the system compiler.
22654     case $host_os in
22655     aix*)
22656       lt_prog_compiler_wl_GCJ='-Wl,'
22657       if test "$host_cpu" = ia64; then
22658         # AIX 5 now supports IA64 processor
22659         lt_prog_compiler_static_GCJ='-Bstatic'
22660       else
22661         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22662       fi
22663       ;;
22664       darwin*)
22665         # PIC is the default on this platform
22666         # Common symbols not allowed in MH_DYLIB files
22667        case $cc_basename in
22668          xlc*)
22669          lt_prog_compiler_pic_GCJ='-qnocommon'
22670          lt_prog_compiler_wl_GCJ='-Wl,'
22671          ;;
22672        esac
22673        ;;
22674
22675     mingw* | pw32* | os2*)
22676       # This hack is so that the source file can tell whether it is being
22677       # built for inclusion in a dll (and should export symbols for example).
22678       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22679       ;;
22680
22681     hpux9* | hpux10* | hpux11*)
22682       lt_prog_compiler_wl_GCJ='-Wl,'
22683       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22684       # not for PA HP-UX.
22685       case $host_cpu in
22686       hppa*64*|ia64*)
22687         # +Z the default
22688         ;;
22689       *)
22690         lt_prog_compiler_pic_GCJ='+Z'
22691         ;;
22692       esac
22693       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22694       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22695       ;;
22696
22697     irix5* | irix6* | nonstopux*)
22698       lt_prog_compiler_wl_GCJ='-Wl,'
22699       # PIC (with -KPIC) is the default.
22700       lt_prog_compiler_static_GCJ='-non_shared'
22701       ;;
22702
22703     newsos6)
22704       lt_prog_compiler_pic_GCJ='-KPIC'
22705       lt_prog_compiler_static_GCJ='-Bstatic'
22706       ;;
22707
22708     linux*)
22709       case $cc_basename in
22710       icc* | ecc*)
22711         lt_prog_compiler_wl_GCJ='-Wl,'
22712         lt_prog_compiler_pic_GCJ='-KPIC'
22713         lt_prog_compiler_static_GCJ='-static'
22714         ;;
22715       pgcc* | pgf77* | pgf90* | pgf95*)
22716         # Portland Group compilers (*not* the Pentium gcc compiler,
22717         # which looks to be a dead project)
22718         lt_prog_compiler_wl_GCJ='-Wl,'
22719         lt_prog_compiler_pic_GCJ='-fpic'
22720         lt_prog_compiler_static_GCJ='-Bstatic'
22721         ;;
22722       ccc*)
22723         lt_prog_compiler_wl_GCJ='-Wl,'
22724         # All Alpha code is PIC.
22725         lt_prog_compiler_static_GCJ='-non_shared'
22726         ;;
22727       esac
22728       ;;
22729
22730     osf3* | osf4* | osf5*)
22731       lt_prog_compiler_wl_GCJ='-Wl,'
22732       # All OSF/1 code is PIC.
22733       lt_prog_compiler_static_GCJ='-non_shared'
22734       ;;
22735
22736     solaris*)
22737       lt_prog_compiler_pic_GCJ='-KPIC'
22738       lt_prog_compiler_static_GCJ='-Bstatic'
22739       case $cc_basename in
22740       f77* | f90* | f95*)
22741         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22742       *)
22743         lt_prog_compiler_wl_GCJ='-Wl,';;
22744       esac
22745       ;;
22746
22747     sunos4*)
22748       lt_prog_compiler_wl_GCJ='-Qoption ld '
22749       lt_prog_compiler_pic_GCJ='-PIC'
22750       lt_prog_compiler_static_GCJ='-Bstatic'
22751       ;;
22752
22753     sysv4 | sysv4.2uw2* | sysv4.3*)
22754       lt_prog_compiler_wl_GCJ='-Wl,'
22755       lt_prog_compiler_pic_GCJ='-KPIC'
22756       lt_prog_compiler_static_GCJ='-Bstatic'
22757       ;;
22758
22759     sysv4*MP*)
22760       if test -d /usr/nec ;then
22761         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22762         lt_prog_compiler_static_GCJ='-Bstatic'
22763       fi
22764       ;;
22765
22766     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22767       lt_prog_compiler_wl_GCJ='-Wl,'
22768       lt_prog_compiler_pic_GCJ='-KPIC'
22769       lt_prog_compiler_static_GCJ='-Bstatic'
22770       ;;
22771
22772     unicos*)
22773       lt_prog_compiler_wl_GCJ='-Wl,'
22774       lt_prog_compiler_can_build_shared_GCJ=no
22775       ;;
22776
22777     uts4*)
22778       lt_prog_compiler_pic_GCJ='-pic'
22779       lt_prog_compiler_static_GCJ='-Bstatic'
22780       ;;
22781
22782     *)
22783       lt_prog_compiler_can_build_shared_GCJ=no
22784       ;;
22785     esac
22786   fi
22787
22788 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22789 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22790
22791 #
22792 # Check to make sure the PIC flag actually works.
22793 #
22794 if test -n "$lt_prog_compiler_pic_GCJ"; then
22795
22796 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22798 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22799   echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801   lt_prog_compiler_pic_works_GCJ=no
22802   ac_outfile=conftest.$ac_objext
22803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22804    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22805    # Insert the option either (1) after the last *FLAGS variable, or
22806    # (2) before a word containing "conftest.", or (3) at the end.
22807    # Note that $ac_compile itself does not contain backslashes and begins
22808    # with a dollar sign (not a hyphen), so the echo should work correctly.
22809    # The option is referenced via a variable to avoid confusing sed.
22810    lt_compile=`echo "$ac_compile" | $SED \
22811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22813    -e 's:$: $lt_compiler_flag:'`
22814    (eval echo "\"\$as_me:22814: $lt_compile\"" >&5)
22815    (eval "$lt_compile" 2>conftest.err)
22816    ac_status=$?
22817    cat conftest.err >&5
22818    echo "$as_me:22818: \$? = $ac_status" >&5
22819    if (exit $ac_status) && test -s "$ac_outfile"; then
22820      # The compiler can only warn and ignore the option if not recognized
22821      # So say no if there are warnings other than the usual output.
22822      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22823      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22824      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22825        lt_prog_compiler_pic_works_GCJ=yes
22826      fi
22827    fi
22828    $rm conftest*
22829
22830 fi
22831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22832 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22833
22834 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22835     case $lt_prog_compiler_pic_GCJ in
22836      "" | " "*) ;;
22837      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22838      esac
22839 else
22840     lt_prog_compiler_pic_GCJ=
22841      lt_prog_compiler_can_build_shared_GCJ=no
22842 fi
22843
22844 fi
22845 case $host_os in
22846   # For platforms which do not support PIC, -DPIC is meaningless:
22847   *djgpp*)
22848     lt_prog_compiler_pic_GCJ=
22849     ;;
22850   *)
22851     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22852     ;;
22853 esac
22854
22855 #
22856 # Check to make sure the static flag actually works.
22857 #
22858 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22859 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22860 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22861 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22862   echo $ECHO_N "(cached) $ECHO_C" >&6
22863 else
22864   lt_prog_compiler_static_works_GCJ=no
22865    save_LDFLAGS="$LDFLAGS"
22866    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22867    printf "$lt_simple_link_test_code" > conftest.$ac_ext
22868    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22869      # The linker can only warn and ignore the option if not recognized
22870      # So say no if there are warnings
22871      if test -s conftest.err; then
22872        # Append any errors to the config.log.
22873        cat conftest.err 1>&5
22874        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22875        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22876        if diff conftest.exp conftest.er2 >/dev/null; then
22877          lt_prog_compiler_static_works_GCJ=yes
22878        fi
22879      else
22880        lt_prog_compiler_static_works_GCJ=yes
22881      fi
22882    fi
22883    $rm conftest*
22884    LDFLAGS="$save_LDFLAGS"
22885
22886 fi
22887 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22888 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22889
22890 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22891     :
22892 else
22893     lt_prog_compiler_static_GCJ=
22894 fi
22895
22896
22897 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22899 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22900   echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902   lt_cv_prog_compiler_c_o_GCJ=no
22903    $rm -r conftest 2>/dev/null
22904    mkdir conftest
22905    cd conftest
22906    mkdir out
22907    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22908
22909    lt_compiler_flag="-o out/conftest2.$ac_objext"
22910    # Insert the option either (1) after the last *FLAGS variable, or
22911    # (2) before a word containing "conftest.", or (3) at the end.
22912    # Note that $ac_compile itself does not contain backslashes and begins
22913    # with a dollar sign (not a hyphen), so the echo should work correctly.
22914    lt_compile=`echo "$ac_compile" | $SED \
22915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22917    -e 's:$: $lt_compiler_flag:'`
22918    (eval echo "\"\$as_me:22918: $lt_compile\"" >&5)
22919    (eval "$lt_compile" 2>out/conftest.err)
22920    ac_status=$?
22921    cat out/conftest.err >&5
22922    echo "$as_me:22922: \$? = $ac_status" >&5
22923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22924    then
22925      # The compiler can only warn and ignore the option if not recognized
22926      # So say no if there are warnings
22927      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22928      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22929      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22930        lt_cv_prog_compiler_c_o_GCJ=yes
22931      fi
22932    fi
22933    chmod u+w . 2>&5
22934    $rm conftest*
22935    # SGI C++ compiler will create directory out/ii_files/ for
22936    # template instantiation
22937    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22938    $rm out/* && rmdir out
22939    cd ..
22940    rmdir conftest
22941    $rm conftest*
22942
22943 fi
22944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22946
22947
22948 hard_links="nottested"
22949 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22950   # do not overwrite the value of need_locks provided by the user
22951   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22953   hard_links=yes
22954   $rm conftest*
22955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22956   touch conftest.a
22957   ln conftest.a conftest.b 2>&5 || hard_links=no
22958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22959   { echo "$as_me:$LINENO: result: $hard_links" >&5
22960 echo "${ECHO_T}$hard_links" >&6; }
22961   if test "$hard_links" = no; then
22962     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22964     need_locks=warn
22965   fi
22966 else
22967   need_locks=no
22968 fi
22969
22970 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22972
22973   runpath_var=
22974   allow_undefined_flag_GCJ=
22975   enable_shared_with_static_runtimes_GCJ=no
22976   archive_cmds_GCJ=
22977   archive_expsym_cmds_GCJ=
22978   old_archive_From_new_cmds_GCJ=
22979   old_archive_from_expsyms_cmds_GCJ=
22980   export_dynamic_flag_spec_GCJ=
22981   whole_archive_flag_spec_GCJ=
22982   thread_safe_flag_spec_GCJ=
22983   hardcode_libdir_flag_spec_GCJ=
22984   hardcode_libdir_flag_spec_ld_GCJ=
22985   hardcode_libdir_separator_GCJ=
22986   hardcode_direct_GCJ=no
22987   hardcode_minus_L_GCJ=no
22988   hardcode_shlibpath_var_GCJ=unsupported
22989   link_all_deplibs_GCJ=unknown
22990   hardcode_automatic_GCJ=no
22991   module_cmds_GCJ=
22992   module_expsym_cmds_GCJ=
22993   always_export_symbols_GCJ=no
22994   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22995   # include_expsyms should be a list of space-separated symbols to be *always*
22996   # included in the symbol list
22997   include_expsyms_GCJ=
22998   # exclude_expsyms can be an extended regexp of symbols to exclude
22999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23001   # as well as any symbol that contains `d'.
23002   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23004   # platforms (ab)use it in PIC code, but their linkers get confused if
23005   # the symbol is explicitly referenced.  Since portable code cannot
23006   # rely on this symbol name, it's probably fine to never include it in
23007   # preloaded symbol tables.
23008   extract_expsyms_cmds=
23009   # Just being paranoid about ensuring that cc_basename is set.
23010   for cc_temp in $compiler""; do
23011   case $cc_temp in
23012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23014     \-*) ;;
23015     *) break;;
23016   esac
23017 done
23018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23019
23020   case $host_os in
23021   cygwin* | mingw* | pw32*)
23022     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23023     # When not using gcc, we currently assume that we are using
23024     # Microsoft Visual C++.
23025     if test "$GCC" != yes; then
23026       with_gnu_ld=no
23027     fi
23028     ;;
23029   interix*)
23030     # we just hope/assume this is gcc and not c89 (= MSVC++)
23031     with_gnu_ld=yes
23032     ;;
23033   openbsd*)
23034     with_gnu_ld=no
23035     ;;
23036   esac
23037
23038   ld_shlibs_GCJ=yes
23039   if test "$with_gnu_ld" = yes; then
23040     # If archive_cmds runs LD, not CC, wlarc should be empty
23041     wlarc='${wl}'
23042
23043     # Set some defaults for GNU ld with shared library support. These
23044     # are reset later if shared libraries are not supported. Putting them
23045     # here allows them to be overridden if necessary.
23046     runpath_var=LD_RUN_PATH
23047     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23048     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23049     # ancient GNU ld didn't support --whole-archive et. al.
23050     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23051         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23052       else
23053         whole_archive_flag_spec_GCJ=
23054     fi
23055     supports_anon_versioning=no
23056     case `$LD -v 2>/dev/null` in
23057       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23058       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23059       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23060       *\ 2.11.*) ;; # other 2.11 versions
23061       *) supports_anon_versioning=yes ;;
23062     esac
23063
23064     # See if GNU ld supports shared libraries.
23065     case $host_os in
23066     aix3* | aix4* | aix5*)
23067       # On AIX/PPC, the GNU linker is very broken
23068       if test "$host_cpu" != ia64; then
23069         ld_shlibs_GCJ=no
23070         cat <<EOF 1>&2
23071
23072 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23073 *** to be unable to reliably create shared libraries on AIX.
23074 *** Therefore, libtool is disabling shared libraries support.  If you
23075 *** really care for shared libraries, you may want to modify your PATH
23076 *** so that a non-GNU linker is found, and then restart.
23077
23078 EOF
23079       fi
23080       ;;
23081
23082     amigaos*)
23083       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)'
23084       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23085       hardcode_minus_L_GCJ=yes
23086
23087       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23088       # that the semantics of dynamic libraries on AmigaOS, at least up
23089       # to version 4, is to share data among multiple programs linked
23090       # with the same dynamic library.  Since this doesn't match the
23091       # behavior of shared libraries on other platforms, we can't use
23092       # them.
23093       ld_shlibs_GCJ=no
23094       ;;
23095
23096     beos*)
23097       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23098         allow_undefined_flag_GCJ=unsupported
23099         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23100         # support --undefined.  This deserves some investigation.  FIXME
23101         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23102       else
23103         ld_shlibs_GCJ=no
23104       fi
23105       ;;
23106
23107     cygwin* | mingw* | pw32*)
23108       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23109       # as there is no search path for DLLs.
23110       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23111       allow_undefined_flag_GCJ=unsupported
23112       always_export_symbols_GCJ=no
23113       enable_shared_with_static_runtimes_GCJ=yes
23114       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23115
23116       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23117         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23118         # If the export-symbols file already is a .def file (1st line
23119         # is EXPORTS), use it as is; otherwise, prepend...
23120         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23121           cp $export_symbols $output_objdir/$soname.def;
23122         else
23123           echo EXPORTS > $output_objdir/$soname.def;
23124           cat $export_symbols >> $output_objdir/$soname.def;
23125         fi~
23126         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23127       else
23128         ld_shlibs_GCJ=no
23129       fi
23130       ;;
23131
23132     interix3*)
23133       hardcode_direct_GCJ=no
23134       hardcode_shlibpath_var_GCJ=no
23135       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23136       export_dynamic_flag_spec_GCJ='${wl}-E'
23137       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23138       # Instead, shared libraries are loaded at an image base (0x10000000 by
23139       # default) and relocated if they conflict, which is a slow very memory
23140       # consuming and fragmenting process.  To avoid this, we pick a random,
23141       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23142       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23143       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'
23144       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'
23145       ;;
23146
23147     linux*)
23148       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23149         tmp_addflag=
23150         case $cc_basename,$host_cpu in
23151         pgcc*)                          # Portland Group C compiler
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'
23154           ;;
23155         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23156           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'
23157           tmp_addflag=' $pic_flag -Mnomain' ;;
23158         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23159           tmp_addflag=' -i_dynamic' ;;
23160         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23161           tmp_addflag=' -i_dynamic -nofor_main' ;;
23162         ifc* | ifort*)                  # Intel Fortran compiler
23163           tmp_addflag=' -nofor_main' ;;
23164         esac
23165         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23166
23167         if test $supports_anon_versioning = yes; then
23168           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23169   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23170   $echo "local: *; };" >> $output_objdir/$libname.ver~
23171           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23172         fi
23173       else
23174         ld_shlibs_GCJ=no
23175       fi
23176       ;;
23177
23178     netbsd*)
23179       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23180         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23181         wlarc=
23182       else
23183         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23184         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23185       fi
23186       ;;
23187
23188     solaris*)
23189       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23190         ld_shlibs_GCJ=no
23191         cat <<EOF 1>&2
23192
23193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23194 *** create shared libraries on Solaris systems.  Therefore, libtool
23195 *** is disabling shared libraries support.  We urge you to upgrade GNU
23196 *** binutils to release 2.9.1 or newer.  Another option is to modify
23197 *** your PATH or compiler configuration so that the native linker is
23198 *** used, and then restart.
23199
23200 EOF
23201       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23202         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23203         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23204       else
23205         ld_shlibs_GCJ=no
23206       fi
23207       ;;
23208
23209     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23210       case `$LD -v 2>&1` in
23211         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23212         ld_shlibs_GCJ=no
23213         cat <<_LT_EOF 1>&2
23214
23215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23216 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23217 *** is disabling shared libraries support.  We urge you to upgrade GNU
23218 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23219 *** your PATH or compiler configuration so that the native linker is
23220 *** used, and then restart.
23221
23222 _LT_EOF
23223         ;;
23224         *)
23225           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23226             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23227             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23228             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23229           else
23230             ld_shlibs_GCJ=no
23231           fi
23232         ;;
23233       esac
23234       ;;
23235
23236     sunos4*)
23237       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23238       wlarc=
23239       hardcode_direct_GCJ=yes
23240       hardcode_shlibpath_var_GCJ=no
23241       ;;
23242
23243     *)
23244       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23245         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23246         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23247       else
23248         ld_shlibs_GCJ=no
23249       fi
23250       ;;
23251     esac
23252
23253     if test "$ld_shlibs_GCJ" = no; then
23254       runpath_var=
23255       hardcode_libdir_flag_spec_GCJ=
23256       export_dynamic_flag_spec_GCJ=
23257       whole_archive_flag_spec_GCJ=
23258     fi
23259   else
23260     # PORTME fill in a description of your system's linker (not GNU ld)
23261     case $host_os in
23262     aix3*)
23263       allow_undefined_flag_GCJ=unsupported
23264       always_export_symbols_GCJ=yes
23265       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'
23266       # Note: this linker hardcodes the directories in LIBPATH if there
23267       # are no directories specified by -L.
23268       hardcode_minus_L_GCJ=yes
23269       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23270         # Neither direct hardcoding nor static linking is supported with a
23271         # broken collect2.
23272         hardcode_direct_GCJ=unsupported
23273       fi
23274       ;;
23275
23276     aix4* | aix5*)
23277       if test "$host_cpu" = ia64; then
23278         # On IA64, the linker does run time linking by default, so we don't
23279         # have to do anything special.
23280         aix_use_runtimelinking=no
23281         exp_sym_flag='-Bexport'
23282         no_entry_flag=""
23283       else
23284         # If we're using GNU nm, then we don't want the "-C" option.
23285         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23286         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23287           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'
23288         else
23289           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'
23290         fi
23291         aix_use_runtimelinking=no
23292
23293         # Test if we are trying to use run time linking or normal
23294         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23295         # need to do runtime linking.
23296         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23297           for ld_flag in $LDFLAGS; do
23298           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23299             aix_use_runtimelinking=yes
23300             break
23301           fi
23302           done
23303           ;;
23304         esac
23305
23306         exp_sym_flag='-bexport'
23307         no_entry_flag='-bnoentry'
23308       fi
23309
23310       # When large executables or shared objects are built, AIX ld can
23311       # have problems creating the table of contents.  If linking a library
23312       # or program results in "error TOC overflow" add -mminimal-toc to
23313       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23314       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23315
23316       archive_cmds_GCJ=''
23317       hardcode_direct_GCJ=yes
23318       hardcode_libdir_separator_GCJ=':'
23319       link_all_deplibs_GCJ=yes
23320
23321       if test "$GCC" = yes; then
23322         case $host_os in aix4.[012]|aix4.[012].*)
23323         # We only want to do this on AIX 4.2 and lower, the check
23324         # below for broken collect2 doesn't work under 4.3+
23325           collect2name=`${CC} -print-prog-name=collect2`
23326           if test -f "$collect2name" && \
23327            strings "$collect2name" | grep resolve_lib_name >/dev/null
23328           then
23329           # We have reworked collect2
23330           hardcode_direct_GCJ=yes
23331           else
23332           # We have old collect2
23333           hardcode_direct_GCJ=unsupported
23334           # It fails to find uninstalled libraries when the uninstalled
23335           # path is not listed in the libpath.  Setting hardcode_minus_L
23336           # to unsupported forces relinking
23337           hardcode_minus_L_GCJ=yes
23338           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23339           hardcode_libdir_separator_GCJ=
23340           fi
23341           ;;
23342         esac
23343         shared_flag='-shared'
23344         if test "$aix_use_runtimelinking" = yes; then
23345           shared_flag="$shared_flag "'${wl}-G'
23346         fi
23347       else
23348         # not using gcc
23349         if test "$host_cpu" = ia64; then
23350         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23351         # chokes on -Wl,-G. The following line is correct:
23352           shared_flag='-G'
23353         else
23354           if test "$aix_use_runtimelinking" = yes; then
23355             shared_flag='${wl}-G'
23356           else
23357             shared_flag='${wl}-bM:SRE'
23358           fi
23359         fi
23360       fi
23361
23362       # It seems that -bexpall does not export symbols beginning with
23363       # underscore (_), so it is better to generate a list of symbols to export.
23364       always_export_symbols_GCJ=yes
23365       if test "$aix_use_runtimelinking" = yes; then
23366         # Warning - without using the other runtime loading flags (-brtl),
23367         # -berok will link without error, but may produce a broken library.
23368         allow_undefined_flag_GCJ='-berok'
23369        # Determine the default libpath from the value encoded in an empty executable.
23370        cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376
23377 int
23378 main ()
23379 {
23380
23381   ;
23382   return 0;
23383 }
23384 _ACEOF
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (ac_try="$ac_link"
23387 case "(($ac_try" in
23388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389   *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392   (eval "$ac_link") 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } && {
23399          test -z "$ac_c_werror_flag" ||
23400          test ! -s conftest.err
23401        } && test -s conftest$ac_exeext &&
23402        $as_test_x conftest$ac_exeext; then
23403
23404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23405 }'`
23406 # Check for a 64-bit object if we didn't find anything.
23407 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; }
23408 }'`; fi
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23417       conftest$ac_exeext conftest.$ac_ext
23418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23419
23420        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23421         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"
23422        else
23423         if test "$host_cpu" = ia64; then
23424           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23425           allow_undefined_flag_GCJ="-z nodefs"
23426           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"
23427         else
23428          # Determine the default libpath from the value encoded in an empty executable.
23429          cat >conftest.$ac_ext <<_ACEOF
23430 /* confdefs.h.  */
23431 _ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h.  */
23435
23436 int
23437 main ()
23438 {
23439
23440   ;
23441   return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448   *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451   (eval "$ac_link") 2>conftest.er1
23452   ac_status=$?
23453   grep -v '^ *+' conftest.er1 >conftest.err
23454   rm -f conftest.er1
23455   cat conftest.err >&5
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); } && {
23458          test -z "$ac_c_werror_flag" ||
23459          test ! -s conftest.err
23460        } && test -s conftest$ac_exeext &&
23461        $as_test_x conftest$ac_exeext; then
23462
23463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23464 }'`
23465 # Check for a 64-bit object if we didn't find anything.
23466 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; }
23467 }'`; fi
23468 else
23469   echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472
23473 fi
23474
23475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23476       conftest$ac_exeext conftest.$ac_ext
23477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23478
23479          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23480           # Warning - without using the other run time loading flags,
23481           # -berok will link without error, but may produce a broken library.
23482           no_undefined_flag_GCJ=' ${wl}-bernotok'
23483           allow_undefined_flag_GCJ=' ${wl}-berok'
23484           # Exported symbols can be pulled into shared objects from archives
23485           whole_archive_flag_spec_GCJ='$convenience'
23486           archive_cmds_need_lc_GCJ=yes
23487           # This is similar to how AIX traditionally builds its shared libraries.
23488           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'
23489         fi
23490       fi
23491       ;;
23492
23493     amigaos*)
23494       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)'
23495       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23496       hardcode_minus_L_GCJ=yes
23497       # see comment about different semantics on the GNU ld section
23498       ld_shlibs_GCJ=no
23499       ;;
23500
23501     bsdi[45]*)
23502       export_dynamic_flag_spec_GCJ=-rdynamic
23503       ;;
23504
23505     cygwin* | mingw* | pw32*)
23506       # When not using gcc, we currently assume that we are using
23507       # Microsoft Visual C++.
23508       # hardcode_libdir_flag_spec is actually meaningless, as there is
23509       # no search path for DLLs.
23510       hardcode_libdir_flag_spec_GCJ=' '
23511       allow_undefined_flag_GCJ=unsupported
23512       # Tell ltmain to make .lib files, not .a files.
23513       libext=lib
23514       # Tell ltmain to make .dll files, not .so files.
23515       shrext_cmds=".dll"
23516       # FIXME: Setting linknames here is a bad hack.
23517       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23518       # The linker will automatically build a .lib file if we build a DLL.
23519       old_archive_From_new_cmds_GCJ='true'
23520       # FIXME: Should let the user specify the lib program.
23521       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23522       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23523       enable_shared_with_static_runtimes_GCJ=yes
23524       ;;
23525
23526     darwin* | rhapsody*)
23527       case $host_os in
23528         rhapsody* | darwin1.[012])
23529          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23530          ;;
23531        *) # Darwin 1.3 on
23532          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23533            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23534          else
23535            case ${MACOSX_DEPLOYMENT_TARGET} in
23536              10.[012])
23537                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23538                ;;
23539              10.*)
23540                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23541                ;;
23542            esac
23543          fi
23544          ;;
23545       esac
23546       archive_cmds_need_lc_GCJ=no
23547       hardcode_direct_GCJ=no
23548       hardcode_automatic_GCJ=yes
23549       hardcode_shlibpath_var_GCJ=unsupported
23550       whole_archive_flag_spec_GCJ=''
23551       link_all_deplibs_GCJ=yes
23552     if test "$GCC" = yes ; then
23553         output_verbose_link_cmd='echo'
23554         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23555       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23556       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23557       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}'
23558       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}'
23559     else
23560       case $cc_basename in
23561         xlc*)
23562          output_verbose_link_cmd='echo'
23563          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23564          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23565           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23566          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}'
23567           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}'
23568           ;;
23569        *)
23570          ld_shlibs_GCJ=no
23571           ;;
23572       esac
23573     fi
23574       ;;
23575
23576     dgux*)
23577       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23578       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23579       hardcode_shlibpath_var_GCJ=no
23580       ;;
23581
23582     freebsd1*)
23583       ld_shlibs_GCJ=no
23584       ;;
23585
23586     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23587     # support.  Future versions do this automatically, but an explicit c++rt0.o
23588     # does not break anything, and helps significantly (at the cost of a little
23589     # extra space).
23590     freebsd2.2*)
23591       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23592       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23593       hardcode_direct_GCJ=yes
23594       hardcode_shlibpath_var_GCJ=no
23595       ;;
23596
23597     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23598     freebsd2*)
23599       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23600       hardcode_direct_GCJ=yes
23601       hardcode_minus_L_GCJ=yes
23602       hardcode_shlibpath_var_GCJ=no
23603       ;;
23604
23605     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23606     freebsd* | kfreebsd*-gnu | dragonfly*)
23607       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23608       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23609       hardcode_direct_GCJ=yes
23610       hardcode_shlibpath_var_GCJ=no
23611       ;;
23612
23613     hpux9*)
23614       if test "$GCC" = yes; then
23615         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'
23616       else
23617         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'
23618       fi
23619       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23620       hardcode_libdir_separator_GCJ=:
23621       hardcode_direct_GCJ=yes
23622
23623       # hardcode_minus_L: Not really in the search PATH,
23624       # but as the default location of the library.
23625       hardcode_minus_L_GCJ=yes
23626       export_dynamic_flag_spec_GCJ='${wl}-E'
23627       ;;
23628
23629     hpux10*)
23630       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23631         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23632       else
23633         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23634       fi
23635       if test "$with_gnu_ld" = no; then
23636         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23637         hardcode_libdir_separator_GCJ=:
23638
23639         hardcode_direct_GCJ=yes
23640         export_dynamic_flag_spec_GCJ='${wl}-E'
23641
23642         # hardcode_minus_L: Not really in the search PATH,
23643         # but as the default location of the library.
23644         hardcode_minus_L_GCJ=yes
23645       fi
23646       ;;
23647
23648     hpux11*)
23649       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23650         case $host_cpu in
23651         hppa*64*)
23652           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23653           ;;
23654         ia64*)
23655           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23656           ;;
23657         *)
23658           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23659           ;;
23660         esac
23661       else
23662         case $host_cpu in
23663         hppa*64*)
23664           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23665           ;;
23666         ia64*)
23667           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23668           ;;
23669         *)
23670           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23671           ;;
23672         esac
23673       fi
23674       if test "$with_gnu_ld" = no; then
23675         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23676         hardcode_libdir_separator_GCJ=:
23677
23678         case $host_cpu in
23679         hppa*64*|ia64*)
23680           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23681           hardcode_direct_GCJ=no
23682           hardcode_shlibpath_var_GCJ=no
23683           ;;
23684         *)
23685           hardcode_direct_GCJ=yes
23686           export_dynamic_flag_spec_GCJ='${wl}-E'
23687
23688           # hardcode_minus_L: Not really in the search PATH,
23689           # but as the default location of the library.
23690           hardcode_minus_L_GCJ=yes
23691           ;;
23692         esac
23693       fi
23694       ;;
23695
23696     irix5* | irix6* | nonstopux*)
23697       if test "$GCC" = yes; then
23698         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'
23699       else
23700         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'
23701         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23702       fi
23703       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23704       hardcode_libdir_separator_GCJ=:
23705       link_all_deplibs_GCJ=yes
23706       ;;
23707
23708     netbsd*)
23709       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23710         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23711       else
23712         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23713       fi
23714       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23715       hardcode_direct_GCJ=yes
23716       hardcode_shlibpath_var_GCJ=no
23717       ;;
23718
23719     newsos6)
23720       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23721       hardcode_direct_GCJ=yes
23722       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23723       hardcode_libdir_separator_GCJ=:
23724       hardcode_shlibpath_var_GCJ=no
23725       ;;
23726
23727     openbsd*)
23728       hardcode_direct_GCJ=yes
23729       hardcode_shlibpath_var_GCJ=no
23730       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23731         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23732         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23733         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23734         export_dynamic_flag_spec_GCJ='${wl}-E'
23735       else
23736        case $host_os in
23737          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23738            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23739            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23740            ;;
23741          *)
23742            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23743            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23744            ;;
23745        esac
23746       fi
23747       ;;
23748
23749     os2*)
23750       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23751       hardcode_minus_L_GCJ=yes
23752       allow_undefined_flag_GCJ=unsupported
23753       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'
23754       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23755       ;;
23756
23757     osf3*)
23758       if test "$GCC" = yes; then
23759         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23760         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'
23761       else
23762         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23763         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'
23764       fi
23765       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23766       hardcode_libdir_separator_GCJ=:
23767       ;;
23768
23769     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23770       if test "$GCC" = yes; then
23771         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23772         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'
23773         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23774       else
23775         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23776         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'
23777         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~
23778         $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'
23779
23780         # Both c and cxx compiler support -rpath directly
23781         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23782       fi
23783       hardcode_libdir_separator_GCJ=:
23784       ;;
23785
23786     solaris*)
23787       no_undefined_flag_GCJ=' -z text'
23788       if test "$GCC" = yes; then
23789         wlarc='${wl}'
23790         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23791         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23792           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23793       else
23794         wlarc=''
23795         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23796         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23797         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23798       fi
23799       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23800       hardcode_shlibpath_var_GCJ=no
23801       case $host_os in
23802       solaris2.[0-5] | solaris2.[0-5].*) ;;
23803       *)
23804         # The compiler driver will combine linker options so we
23805         # cannot just pass the convience library names through
23806         # without $wl, iff we do not link with $LD.
23807         # Luckily, gcc supports the same syntax we need for Sun Studio.
23808         # Supported since Solaris 2.6 (maybe 2.5.1?)
23809         case $wlarc in
23810         '')
23811           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23812         *)
23813           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' ;;
23814         esac ;;
23815       esac
23816       link_all_deplibs_GCJ=yes
23817       ;;
23818
23819     sunos4*)
23820       if test "x$host_vendor" = xsequent; then
23821         # Use $CC to link under sequent, because it throws in some extra .o
23822         # files that make .init and .fini sections work.
23823         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23824       else
23825         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23826       fi
23827       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23828       hardcode_direct_GCJ=yes
23829       hardcode_minus_L_GCJ=yes
23830       hardcode_shlibpath_var_GCJ=no
23831       ;;
23832
23833     sysv4)
23834       case $host_vendor in
23835         sni)
23836           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23837           hardcode_direct_GCJ=yes # is this really true???
23838         ;;
23839         siemens)
23840           ## LD is ld it makes a PLAMLIB
23841           ## CC just makes a GrossModule.
23842           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23843           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23844           hardcode_direct_GCJ=no
23845         ;;
23846         motorola)
23847           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23848           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23849         ;;
23850       esac
23851       runpath_var='LD_RUN_PATH'
23852       hardcode_shlibpath_var_GCJ=no
23853       ;;
23854
23855     sysv4.3*)
23856       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23857       hardcode_shlibpath_var_GCJ=no
23858       export_dynamic_flag_spec_GCJ='-Bexport'
23859       ;;
23860
23861     sysv4*MP*)
23862       if test -d /usr/nec; then
23863         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23864         hardcode_shlibpath_var_GCJ=no
23865         runpath_var=LD_RUN_PATH
23866         hardcode_runpath_var=yes
23867         ld_shlibs_GCJ=yes
23868       fi
23869       ;;
23870
23871     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23872       no_undefined_flag_GCJ='${wl}-z,text'
23873       archive_cmds_need_lc_GCJ=no
23874       hardcode_shlibpath_var_GCJ=no
23875       runpath_var='LD_RUN_PATH'
23876
23877       if test "$GCC" = yes; then
23878         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23879         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23880       else
23881         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23882         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23883       fi
23884       ;;
23885
23886     sysv5* | sco3.2v5* | sco5v6*)
23887       # Note: We can NOT use -z defs as we might desire, because we do not
23888       # link with -lc, and that would cause any symbols used from libc to
23889       # always be unresolved, which means just about no library would
23890       # ever link correctly.  If we're not using GNU ld we use -z text
23891       # though, which does catch some bad symbols but isn't as heavy-handed
23892       # as -z defs.
23893       no_undefined_flag_GCJ='${wl}-z,text'
23894       allow_undefined_flag_GCJ='${wl}-z,nodefs'
23895       archive_cmds_need_lc_GCJ=no
23896       hardcode_shlibpath_var_GCJ=no
23897       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23898       hardcode_libdir_separator_GCJ=':'
23899       link_all_deplibs_GCJ=yes
23900       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23901       runpath_var='LD_RUN_PATH'
23902
23903       if test "$GCC" = yes; then
23904         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23905         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23906       else
23907         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23908         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909       fi
23910       ;;
23911
23912     uts4*)
23913       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23914       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23915       hardcode_shlibpath_var_GCJ=no
23916       ;;
23917
23918     *)
23919       ld_shlibs_GCJ=no
23920       ;;
23921     esac
23922   fi
23923
23924 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23925 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23926 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23927
23928 #
23929 # Do we need to explicitly link libc?
23930 #
23931 case "x$archive_cmds_need_lc_GCJ" in
23932 x|xyes)
23933   # Assume -lc should be added
23934   archive_cmds_need_lc_GCJ=yes
23935
23936   if test "$enable_shared" = yes && test "$GCC" = yes; then
23937     case $archive_cmds_GCJ in
23938     *'~'*)
23939       # FIXME: we may have to deal with multi-command sequences.
23940       ;;
23941     '$CC '*)
23942       # Test whether the compiler implicitly links with -lc since on some
23943       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23944       # to ld, don't add -lc before -lgcc.
23945       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23946 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23947       $rm conftest*
23948       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23949
23950       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23951   (eval $ac_compile) 2>&5
23952   ac_status=$?
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); } 2>conftest.err; then
23955         soname=conftest
23956         lib=conftest
23957         libobjs=conftest.$ac_objext
23958         deplibs=
23959         wl=$lt_prog_compiler_wl_GCJ
23960         pic_flag=$lt_prog_compiler_pic_GCJ
23961         compiler_flags=-v
23962         linker_flags=-v
23963         verstring=
23964         output_objdir=.
23965         libname=conftest
23966         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23967         allow_undefined_flag_GCJ=
23968         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23969   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23970   ac_status=$?
23971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972   (exit $ac_status); }
23973         then
23974           archive_cmds_need_lc_GCJ=no
23975         else
23976           archive_cmds_need_lc_GCJ=yes
23977         fi
23978         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23979       else
23980         cat conftest.err 1>&5
23981       fi
23982       $rm conftest*
23983       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23984 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
23985       ;;
23986     esac
23987   fi
23988   ;;
23989 esac
23990
23991 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23992 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23993 library_names_spec=
23994 libname_spec='lib$name'
23995 soname_spec=
23996 shrext_cmds=".so"
23997 postinstall_cmds=
23998 postuninstall_cmds=
23999 finish_cmds=
24000 finish_eval=
24001 shlibpath_var=
24002 shlibpath_overrides_runpath=unknown
24003 version_type=none
24004 dynamic_linker="$host_os ld.so"
24005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24006 if test "$GCC" = yes; then
24007   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24008   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24009     # if the path contains ";" then we assume it to be the separator
24010     # otherwise default to the standard path separator (i.e. ":") - it is
24011     # assumed that no part of a normal pathname contains ";" but that should
24012     # okay in the real world where ";" in dirpaths is itself problematic.
24013     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24014   else
24015     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24016   fi
24017 else
24018   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24019 fi
24020 need_lib_prefix=unknown
24021 hardcode_into_libs=no
24022
24023 # when you set need_version to no, make sure it does not cause -set_version
24024 # flags to be left without arguments
24025 need_version=unknown
24026
24027 case $host_os in
24028 aix3*)
24029   version_type=linux
24030   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24031   shlibpath_var=LIBPATH
24032
24033   # AIX 3 has no versioning support, so we append a major version to the name.
24034   soname_spec='${libname}${release}${shared_ext}$major'
24035   ;;
24036
24037 aix4* | aix5*)
24038   version_type=linux
24039   need_lib_prefix=no
24040   need_version=no
24041   hardcode_into_libs=yes
24042   if test "$host_cpu" = ia64; then
24043     # AIX 5 supports IA64
24044     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24045     shlibpath_var=LD_LIBRARY_PATH
24046   else
24047     # With GCC up to 2.95.x, collect2 would create an import file
24048     # for dependence libraries.  The import file would start with
24049     # the line `#! .'.  This would cause the generated library to
24050     # depend on `.', always an invalid library.  This was fixed in
24051     # development snapshots of GCC prior to 3.0.
24052     case $host_os in
24053       aix4 | aix4.[01] | aix4.[01].*)
24054       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24055            echo ' yes '
24056            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24057         :
24058       else
24059         can_build_shared=no
24060       fi
24061       ;;
24062     esac
24063     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24064     # soname into executable. Probably we can add versioning support to
24065     # collect2, so additional links can be useful in future.
24066     if test "$aix_use_runtimelinking" = yes; then
24067       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24068       # instead of lib<name>.a to let people know that these are not
24069       # typical AIX shared libraries.
24070       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24071     else
24072       # We preserve .a as extension for shared libraries through AIX4.2
24073       # and later when we are not doing run time linking.
24074       library_names_spec='${libname}${release}.a $libname.a'
24075       soname_spec='${libname}${release}${shared_ext}$major'
24076     fi
24077     shlibpath_var=LIBPATH
24078   fi
24079   ;;
24080
24081 amigaos*)
24082   library_names_spec='$libname.ixlibrary $libname.a'
24083   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24084   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'
24085   ;;
24086
24087 beos*)
24088   library_names_spec='${libname}${shared_ext}'
24089   dynamic_linker="$host_os ld.so"
24090   shlibpath_var=LIBRARY_PATH
24091   ;;
24092
24093 bsdi[45]*)
24094   version_type=linux
24095   need_version=no
24096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24097   soname_spec='${libname}${release}${shared_ext}$major'
24098   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24099   shlibpath_var=LD_LIBRARY_PATH
24100   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24101   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24102   # the default ld.so.conf also contains /usr/contrib/lib and
24103   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24104   # libtool to hard-code these into programs
24105   ;;
24106
24107 cygwin* | mingw* | pw32*)
24108   version_type=windows
24109   shrext_cmds=".dll"
24110   need_version=no
24111   need_lib_prefix=no
24112
24113   case $GCC,$host_os in
24114   yes,cygwin* | yes,mingw* | yes,pw32*)
24115     library_names_spec='$libname.dll.a'
24116     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24117     postinstall_cmds='base_file=`basename \${file}`~
24118       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24119       dldir=$destdir/`dirname \$dlpath`~
24120       test -d \$dldir || mkdir -p \$dldir~
24121       $install_prog $dir/$dlname \$dldir/$dlname~
24122       chmod a+x \$dldir/$dlname'
24123     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24124       dlpath=$dir/\$dldll~
24125        $rm \$dlpath'
24126     shlibpath_overrides_runpath=yes
24127
24128     case $host_os in
24129     cygwin*)
24130       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24131       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24132       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24133       ;;
24134     mingw*)
24135       # MinGW DLLs use traditional 'lib' prefix
24136       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24137       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24138       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24139         # It is most probably a Windows format PATH printed by
24140         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24141         # path with ; separators, and with drive letters. We can handle the
24142         # drive letters (cygwin fileutils understands them), so leave them,
24143         # especially as we might pass files found there to a mingw objdump,
24144         # which wouldn't understand a cygwinified path. Ahh.
24145         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24146       else
24147         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24148       fi
24149       ;;
24150     pw32*)
24151       # pw32 DLLs use 'pw' prefix rather than 'lib'
24152       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24153       ;;
24154     esac
24155     ;;
24156
24157   *)
24158     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24159     ;;
24160   esac
24161   dynamic_linker='Win32 ld.exe'
24162   # FIXME: first we should search . and the directory the executable is in
24163   shlibpath_var=PATH
24164   ;;
24165
24166 darwin* | rhapsody*)
24167   dynamic_linker="$host_os dyld"
24168   version_type=darwin
24169   need_lib_prefix=no
24170   need_version=no
24171   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24172   soname_spec='${libname}${release}${major}$shared_ext'
24173   shlibpath_overrides_runpath=yes
24174   shlibpath_var=DYLD_LIBRARY_PATH
24175   shrext_cmds='.dylib'
24176   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24177   if test "$GCC" = yes; then
24178     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"`
24179   else
24180     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24181   fi
24182   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24183   ;;
24184
24185 dgux*)
24186   version_type=linux
24187   need_lib_prefix=no
24188   need_version=no
24189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24190   soname_spec='${libname}${release}${shared_ext}$major'
24191   shlibpath_var=LD_LIBRARY_PATH
24192   ;;
24193
24194 freebsd1*)
24195   dynamic_linker=no
24196   ;;
24197
24198 kfreebsd*-gnu)
24199   version_type=linux
24200   need_lib_prefix=no
24201   need_version=no
24202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24203   soname_spec='${libname}${release}${shared_ext}$major'
24204   shlibpath_var=LD_LIBRARY_PATH
24205   shlibpath_overrides_runpath=no
24206   hardcode_into_libs=yes
24207   dynamic_linker='GNU ld.so'
24208   ;;
24209
24210 freebsd* | dragonfly*)
24211   # DragonFly does not have aout.  When/if they implement a new
24212   # versioning mechanism, adjust this.
24213   if test -x /usr/bin/objformat; then
24214     objformat=`/usr/bin/objformat`
24215   else
24216     case $host_os in
24217     freebsd[123]*) objformat=aout ;;
24218     *) objformat=elf ;;
24219     esac
24220   fi
24221   version_type=freebsd-$objformat
24222   case $version_type in
24223     freebsd-elf*)
24224       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24225       need_version=no
24226       need_lib_prefix=no
24227       ;;
24228     freebsd-*)
24229       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24230       need_version=yes
24231       ;;
24232   esac
24233   shlibpath_var=LD_LIBRARY_PATH
24234   case $host_os in
24235   freebsd2*)
24236     shlibpath_overrides_runpath=yes
24237     ;;
24238   freebsd3.[01]* | freebsdelf3.[01]*)
24239     shlibpath_overrides_runpath=yes
24240     hardcode_into_libs=yes
24241     ;;
24242   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24243   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24244     shlibpath_overrides_runpath=no
24245     hardcode_into_libs=yes
24246     ;;
24247   freebsd*) # from 4.6 on
24248     shlibpath_overrides_runpath=yes
24249     hardcode_into_libs=yes
24250     ;;
24251   esac
24252   ;;
24253
24254 gnu*)
24255   version_type=linux
24256   need_lib_prefix=no
24257   need_version=no
24258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24259   soname_spec='${libname}${release}${shared_ext}$major'
24260   shlibpath_var=LD_LIBRARY_PATH
24261   hardcode_into_libs=yes
24262   ;;
24263
24264 hpux9* | hpux10* | hpux11*)
24265   # Give a soname corresponding to the major version so that dld.sl refuses to
24266   # link against other versions.
24267   version_type=sunos
24268   need_lib_prefix=no
24269   need_version=no
24270   case $host_cpu in
24271   ia64*)
24272     shrext_cmds='.so'
24273     hardcode_into_libs=yes
24274     dynamic_linker="$host_os dld.so"
24275     shlibpath_var=LD_LIBRARY_PATH
24276     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24278     soname_spec='${libname}${release}${shared_ext}$major'
24279     if test "X$HPUX_IA64_MODE" = X32; then
24280       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24281     else
24282       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24283     fi
24284     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24285     ;;
24286    hppa*64*)
24287      shrext_cmds='.sl'
24288      hardcode_into_libs=yes
24289      dynamic_linker="$host_os dld.sl"
24290      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24291      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24292      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24293      soname_spec='${libname}${release}${shared_ext}$major'
24294      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24295      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24296      ;;
24297    *)
24298     shrext_cmds='.sl'
24299     dynamic_linker="$host_os dld.sl"
24300     shlibpath_var=SHLIB_PATH
24301     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303     soname_spec='${libname}${release}${shared_ext}$major'
24304     ;;
24305   esac
24306   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24307   postinstall_cmds='chmod 555 $lib'
24308   ;;
24309
24310 interix3*)
24311   version_type=linux
24312   need_lib_prefix=no
24313   need_version=no
24314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24315   soname_spec='${libname}${release}${shared_ext}$major'
24316   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24317   shlibpath_var=LD_LIBRARY_PATH
24318   shlibpath_overrides_runpath=no
24319   hardcode_into_libs=yes
24320   ;;
24321
24322 irix5* | irix6* | nonstopux*)
24323   case $host_os in
24324     nonstopux*) version_type=nonstopux ;;
24325     *)
24326         if test "$lt_cv_prog_gnu_ld" = yes; then
24327                 version_type=linux
24328         else
24329                 version_type=irix
24330         fi ;;
24331   esac
24332   need_lib_prefix=no
24333   need_version=no
24334   soname_spec='${libname}${release}${shared_ext}$major'
24335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24336   case $host_os in
24337   irix5* | nonstopux*)
24338     libsuff= shlibsuff=
24339     ;;
24340   *)
24341     case $LD in # libtool.m4 will add one of these switches to LD
24342     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24343       libsuff= shlibsuff= libmagic=32-bit;;
24344     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24345       libsuff=32 shlibsuff=N32 libmagic=N32;;
24346     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24347       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24348     *) libsuff= shlibsuff= libmagic=never-match;;
24349     esac
24350     ;;
24351   esac
24352   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24353   shlibpath_overrides_runpath=no
24354   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24355   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24356   hardcode_into_libs=yes
24357   ;;
24358
24359 # No shared lib support for Linux oldld, aout, or coff.
24360 linux*oldld* | linux*aout* | linux*coff*)
24361   dynamic_linker=no
24362   ;;
24363
24364 # This must be Linux ELF.
24365 linux*)
24366   version_type=linux
24367   need_lib_prefix=no
24368   need_version=no
24369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24370   soname_spec='${libname}${release}${shared_ext}$major'
24371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24372   shlibpath_var=LD_LIBRARY_PATH
24373   shlibpath_overrides_runpath=no
24374   # This implies no fast_install, which is unacceptable.
24375   # Some rework will be needed to allow for fast_install
24376   # before this can be enabled.
24377   hardcode_into_libs=yes
24378
24379   # Append ld.so.conf contents to the search path
24380   if test -f /etc/ld.so.conf; then
24381     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' ' '`
24382     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24383   fi
24384
24385   # We used to test for /lib/ld.so.1 and disable shared libraries on
24386   # powerpc, because MkLinux only supported shared libraries with the
24387   # GNU dynamic linker.  Since this was broken with cross compilers,
24388   # most powerpc-linux boxes support dynamic linking these days and
24389   # people can always --disable-shared, the test was removed, and we
24390   # assume the GNU/Linux dynamic linker is in use.
24391   dynamic_linker='GNU/Linux ld.so'
24392   ;;
24393
24394 knetbsd*-gnu)
24395   version_type=linux
24396   need_lib_prefix=no
24397   need_version=no
24398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24399   soname_spec='${libname}${release}${shared_ext}$major'
24400   shlibpath_var=LD_LIBRARY_PATH
24401   shlibpath_overrides_runpath=no
24402   hardcode_into_libs=yes
24403   dynamic_linker='GNU ld.so'
24404   ;;
24405
24406 netbsd*)
24407   version_type=sunos
24408   need_lib_prefix=no
24409   need_version=no
24410   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24412     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24413     dynamic_linker='NetBSD (a.out) ld.so'
24414   else
24415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24416     soname_spec='${libname}${release}${shared_ext}$major'
24417     dynamic_linker='NetBSD ld.elf_so'
24418   fi
24419   shlibpath_var=LD_LIBRARY_PATH
24420   shlibpath_overrides_runpath=yes
24421   hardcode_into_libs=yes
24422   ;;
24423
24424 newsos6)
24425   version_type=linux
24426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24427   shlibpath_var=LD_LIBRARY_PATH
24428   shlibpath_overrides_runpath=yes
24429   ;;
24430
24431 nto-qnx*)
24432   version_type=linux
24433   need_lib_prefix=no
24434   need_version=no
24435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24436   soname_spec='${libname}${release}${shared_ext}$major'
24437   shlibpath_var=LD_LIBRARY_PATH
24438   shlibpath_overrides_runpath=yes
24439   ;;
24440
24441 openbsd*)
24442   version_type=sunos
24443   sys_lib_dlsearch_path_spec="/usr/lib"
24444   need_lib_prefix=no
24445   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24446   case $host_os in
24447     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24448     *)                         need_version=no  ;;
24449   esac
24450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24451   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24452   shlibpath_var=LD_LIBRARY_PATH
24453   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24454     case $host_os in
24455       openbsd2.[89] | openbsd2.[89].*)
24456         shlibpath_overrides_runpath=no
24457         ;;
24458       *)
24459         shlibpath_overrides_runpath=yes
24460         ;;
24461       esac
24462   else
24463     shlibpath_overrides_runpath=yes
24464   fi
24465   ;;
24466
24467 os2*)
24468   libname_spec='$name'
24469   shrext_cmds=".dll"
24470   need_lib_prefix=no
24471   library_names_spec='$libname${shared_ext} $libname.a'
24472   dynamic_linker='OS/2 ld.exe'
24473   shlibpath_var=LIBPATH
24474   ;;
24475
24476 osf3* | osf4* | osf5*)
24477   version_type=osf
24478   need_lib_prefix=no
24479   need_version=no
24480   soname_spec='${libname}${release}${shared_ext}$major'
24481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24482   shlibpath_var=LD_LIBRARY_PATH
24483   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24484   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24485   ;;
24486
24487 solaris*)
24488   version_type=linux
24489   need_lib_prefix=no
24490   need_version=no
24491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492   soname_spec='${libname}${release}${shared_ext}$major'
24493   shlibpath_var=LD_LIBRARY_PATH
24494   shlibpath_overrides_runpath=yes
24495   hardcode_into_libs=yes
24496   # ldd complains unless libraries are executable
24497   postinstall_cmds='chmod +x $lib'
24498   ;;
24499
24500 sunos4*)
24501   version_type=sunos
24502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24503   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24504   shlibpath_var=LD_LIBRARY_PATH
24505   shlibpath_overrides_runpath=yes
24506   if test "$with_gnu_ld" = yes; then
24507     need_lib_prefix=no
24508   fi
24509   need_version=yes
24510   ;;
24511
24512 sysv4 | sysv4.3*)
24513   version_type=linux
24514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24515   soname_spec='${libname}${release}${shared_ext}$major'
24516   shlibpath_var=LD_LIBRARY_PATH
24517   case $host_vendor in
24518     sni)
24519       shlibpath_overrides_runpath=no
24520       need_lib_prefix=no
24521       export_dynamic_flag_spec='${wl}-Blargedynsym'
24522       runpath_var=LD_RUN_PATH
24523       ;;
24524     siemens)
24525       need_lib_prefix=no
24526       ;;
24527     motorola)
24528       need_lib_prefix=no
24529       need_version=no
24530       shlibpath_overrides_runpath=no
24531       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24532       ;;
24533   esac
24534   ;;
24535
24536 sysv4*MP*)
24537   if test -d /usr/nec ;then
24538     version_type=linux
24539     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24540     soname_spec='$libname${shared_ext}.$major'
24541     shlibpath_var=LD_LIBRARY_PATH
24542   fi
24543   ;;
24544
24545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24546   version_type=freebsd-elf
24547   need_lib_prefix=no
24548   need_version=no
24549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24550   soname_spec='${libname}${release}${shared_ext}$major'
24551   shlibpath_var=LD_LIBRARY_PATH
24552   hardcode_into_libs=yes
24553   if test "$with_gnu_ld" = yes; then
24554     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24555     shlibpath_overrides_runpath=no
24556   else
24557     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24558     shlibpath_overrides_runpath=yes
24559     case $host_os in
24560       sco3.2v5*)
24561         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24562         ;;
24563     esac
24564   fi
24565   sys_lib_dlsearch_path_spec='/usr/lib'
24566   ;;
24567
24568 uts4*)
24569   version_type=linux
24570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24571   soname_spec='${libname}${release}${shared_ext}$major'
24572   shlibpath_var=LD_LIBRARY_PATH
24573   ;;
24574
24575 *)
24576   dynamic_linker=no
24577   ;;
24578 esac
24579 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24580 echo "${ECHO_T}$dynamic_linker" >&6; }
24581 test "$dynamic_linker" = no && can_build_shared=no
24582
24583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24584 if test "$GCC" = yes; then
24585   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24586 fi
24587
24588 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24590 hardcode_action_GCJ=
24591 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24592    test -n "$runpath_var_GCJ" || \
24593    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24594
24595   # We can hardcode non-existant directories.
24596   if test "$hardcode_direct_GCJ" != no &&
24597      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24598      # have to relink, otherwise we might link with an installed library
24599      # when we should be linking with a yet-to-be-installed one
24600      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24601      test "$hardcode_minus_L_GCJ" != no; then
24602     # Linking always hardcodes the temporary library directory.
24603     hardcode_action_GCJ=relink
24604   else
24605     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24606     hardcode_action_GCJ=immediate
24607   fi
24608 else
24609   # We cannot hardcode anything, or else we can only hardcode existing
24610   # directories.
24611   hardcode_action_GCJ=unsupported
24612 fi
24613 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24614 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24615
24616 if test "$hardcode_action_GCJ" = relink; then
24617   # Fast installation is not supported
24618   enable_fast_install=no
24619 elif test "$shlibpath_overrides_runpath" = yes ||
24620      test "$enable_shared" = no; then
24621   # Fast installation is not necessary
24622   enable_fast_install=needless
24623 fi
24624
24625
24626 # The else clause should only fire when bootstrapping the
24627 # libtool distribution, otherwise you forgot to ship ltmain.sh
24628 # with your package, and you will get complaints that there are
24629 # no rules to generate ltmain.sh.
24630 if test -f "$ltmain"; then
24631   # See if we are running on zsh, and set the options which allow our commands through
24632   # without removal of \ escapes.
24633   if test -n "${ZSH_VERSION+set}" ; then
24634     setopt NO_GLOB_SUBST
24635   fi
24636   # Now quote all the things that may contain metacharacters while being
24637   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24638   # variables and quote the copies for generation of the libtool script.
24639   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24640     SED SHELL STRIP \
24641     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24642     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24643     deplibs_check_method reload_flag reload_cmds need_locks \
24644     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24645     lt_cv_sys_global_symbol_to_c_name_address \
24646     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24647     old_postinstall_cmds old_postuninstall_cmds \
24648     compiler_GCJ \
24649     CC_GCJ \
24650     LD_GCJ \
24651     lt_prog_compiler_wl_GCJ \
24652     lt_prog_compiler_pic_GCJ \
24653     lt_prog_compiler_static_GCJ \
24654     lt_prog_compiler_no_builtin_flag_GCJ \
24655     export_dynamic_flag_spec_GCJ \
24656     thread_safe_flag_spec_GCJ \
24657     whole_archive_flag_spec_GCJ \
24658     enable_shared_with_static_runtimes_GCJ \
24659     old_archive_cmds_GCJ \
24660     old_archive_from_new_cmds_GCJ \
24661     predep_objects_GCJ \
24662     postdep_objects_GCJ \
24663     predeps_GCJ \
24664     postdeps_GCJ \
24665     compiler_lib_search_path_GCJ \
24666     archive_cmds_GCJ \
24667     archive_expsym_cmds_GCJ \
24668     postinstall_cmds_GCJ \
24669     postuninstall_cmds_GCJ \
24670     old_archive_from_expsyms_cmds_GCJ \
24671     allow_undefined_flag_GCJ \
24672     no_undefined_flag_GCJ \
24673     export_symbols_cmds_GCJ \
24674     hardcode_libdir_flag_spec_GCJ \
24675     hardcode_libdir_flag_spec_ld_GCJ \
24676     hardcode_libdir_separator_GCJ \
24677     hardcode_automatic_GCJ \
24678     module_cmds_GCJ \
24679     module_expsym_cmds_GCJ \
24680     lt_cv_prog_compiler_c_o_GCJ \
24681     exclude_expsyms_GCJ \
24682     include_expsyms_GCJ; do
24683
24684     case $var in
24685     old_archive_cmds_GCJ | \
24686     old_archive_from_new_cmds_GCJ | \
24687     archive_cmds_GCJ | \
24688     archive_expsym_cmds_GCJ | \
24689     module_cmds_GCJ | \
24690     module_expsym_cmds_GCJ | \
24691     old_archive_from_expsyms_cmds_GCJ | \
24692     export_symbols_cmds_GCJ | \
24693     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24694     postinstall_cmds | postuninstall_cmds | \
24695     old_postinstall_cmds | old_postuninstall_cmds | \
24696     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24697       # Double-quote double-evaled strings.
24698       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24699       ;;
24700     *)
24701       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24702       ;;
24703     esac
24704   done
24705
24706   case $lt_echo in
24707   *'\$0 --fallback-echo"')
24708     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24709     ;;
24710   esac
24711
24712 cfgfile="$ofile"
24713
24714   cat <<__EOF__ >> "$cfgfile"
24715 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24716
24717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24718
24719 # Shell to use when invoking shell scripts.
24720 SHELL=$lt_SHELL
24721
24722 # Whether or not to build shared libraries.
24723 build_libtool_libs=$enable_shared
24724
24725 # Whether or not to build static libraries.
24726 build_old_libs=$enable_static
24727
24728 # Whether or not to add -lc for building shared libraries.
24729 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24730
24731 # Whether or not to disallow shared libs when runtime libs are static
24732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24733
24734 # Whether or not to optimize for fast installation.
24735 fast_install=$enable_fast_install
24736
24737 # The host system.
24738 host_alias=$host_alias
24739 host=$host
24740 host_os=$host_os
24741
24742 # The build system.
24743 build_alias=$build_alias
24744 build=$build
24745 build_os=$build_os
24746
24747 # An echo program that does not interpret backslashes.
24748 echo=$lt_echo
24749
24750 # The archiver.
24751 AR=$lt_AR
24752 AR_FLAGS=$lt_AR_FLAGS
24753
24754 # A C compiler.
24755 LTCC=$lt_LTCC
24756
24757 # LTCC compiler flags.
24758 LTCFLAGS=$lt_LTCFLAGS
24759
24760 # A language-specific compiler.
24761 CC=$lt_compiler_GCJ
24762
24763 # Is the compiler the GNU C compiler?
24764 with_gcc=$GCC_GCJ
24765
24766 # An ERE matcher.
24767 EGREP=$lt_EGREP
24768
24769 # The linker used to build libraries.
24770 LD=$lt_LD_GCJ
24771
24772 # Whether we need hard or soft links.
24773 LN_S=$lt_LN_S
24774
24775 # A BSD-compatible nm program.
24776 NM=$lt_NM
24777
24778 # A symbol stripping program
24779 STRIP=$lt_STRIP
24780
24781 # Used to examine libraries when file_magic_cmd begins "file"
24782 MAGIC_CMD=$MAGIC_CMD
24783
24784 # Used on cygwin: DLL creation program.
24785 DLLTOOL="$DLLTOOL"
24786
24787 # Used on cygwin: object dumper.
24788 OBJDUMP="$OBJDUMP"
24789
24790 # Used on cygwin: assembler.
24791 AS="$AS"
24792
24793 # The name of the directory that contains temporary libtool files.
24794 objdir=$objdir
24795
24796 # How to create reloadable object files.
24797 reload_flag=$lt_reload_flag
24798 reload_cmds=$lt_reload_cmds
24799
24800 # How to pass a linker flag through the compiler.
24801 wl=$lt_lt_prog_compiler_wl_GCJ
24802
24803 # Object file suffix (normally "o").
24804 objext="$ac_objext"
24805
24806 # Old archive suffix (normally "a").
24807 libext="$libext"
24808
24809 # Shared library suffix (normally ".so").
24810 shrext_cmds='$shrext_cmds'
24811
24812 # Executable file suffix (normally "").
24813 exeext="$exeext"
24814
24815 # Additional compiler flags for building library objects.
24816 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24817 pic_mode=$pic_mode
24818
24819 # What is the maximum length of a command?
24820 max_cmd_len=$lt_cv_sys_max_cmd_len
24821
24822 # Does compiler simultaneously support -c and -o options?
24823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24824
24825 # Must we lock files when doing compilation?
24826 need_locks=$lt_need_locks
24827
24828 # Do we need the lib prefix for modules?
24829 need_lib_prefix=$need_lib_prefix
24830
24831 # Do we need a version for libraries?
24832 need_version=$need_version
24833
24834 # Whether dlopen is supported.
24835 dlopen_support=$enable_dlopen
24836
24837 # Whether dlopen of programs is supported.
24838 dlopen_self=$enable_dlopen_self
24839
24840 # Whether dlopen of statically linked programs is supported.
24841 dlopen_self_static=$enable_dlopen_self_static
24842
24843 # Compiler flag to prevent dynamic linking.
24844 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24845
24846 # Compiler flag to turn off builtin functions.
24847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24848
24849 # Compiler flag to allow reflexive dlopens.
24850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24851
24852 # Compiler flag to generate shared objects directly from archives.
24853 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24854
24855 # Compiler flag to generate thread-safe objects.
24856 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24857
24858 # Library versioning type.
24859 version_type=$version_type
24860
24861 # Format of library name prefix.
24862 libname_spec=$lt_libname_spec
24863
24864 # List of archive names.  First name is the real one, the rest are links.
24865 # The last name is the one that the linker finds with -lNAME.
24866 library_names_spec=$lt_library_names_spec
24867
24868 # The coded name of the library, if different from the real name.
24869 soname_spec=$lt_soname_spec
24870
24871 # Commands used to build and install an old-style archive.
24872 RANLIB=$lt_RANLIB
24873 old_archive_cmds=$lt_old_archive_cmds_GCJ
24874 old_postinstall_cmds=$lt_old_postinstall_cmds
24875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24876
24877 # Create an old-style archive from a shared archive.
24878 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24879
24880 # Create a temporary old-style archive to link instead of a shared archive.
24881 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24882
24883 # Commands used to build and install a shared archive.
24884 archive_cmds=$lt_archive_cmds_GCJ
24885 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24886 postinstall_cmds=$lt_postinstall_cmds
24887 postuninstall_cmds=$lt_postuninstall_cmds
24888
24889 # Commands used to build a loadable module (assumed same as above if empty)
24890 module_cmds=$lt_module_cmds_GCJ
24891 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24892
24893 # Commands to strip libraries.
24894 old_striplib=$lt_old_striplib
24895 striplib=$lt_striplib
24896
24897 # Dependencies to place before the objects being linked to create a
24898 # shared library.
24899 predep_objects=$lt_predep_objects_GCJ
24900
24901 # Dependencies to place after the objects being linked to create a
24902 # shared library.
24903 postdep_objects=$lt_postdep_objects_GCJ
24904
24905 # Dependencies to place before the objects being linked to create a
24906 # shared library.
24907 predeps=$lt_predeps_GCJ
24908
24909 # Dependencies to place after the objects being linked to create a
24910 # shared library.
24911 postdeps=$lt_postdeps_GCJ
24912
24913 # The library search path used internally by the compiler when linking
24914 # a shared library.
24915 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24916
24917 # Method to check whether dependent libraries are shared objects.
24918 deplibs_check_method=$lt_deplibs_check_method
24919
24920 # Command to use when deplibs_check_method == file_magic.
24921 file_magic_cmd=$lt_file_magic_cmd
24922
24923 # Flag that allows shared libraries with undefined symbols to be built.
24924 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24925
24926 # Flag that forces no undefined symbols.
24927 no_undefined_flag=$lt_no_undefined_flag_GCJ
24928
24929 # Commands used to finish a libtool library installation in a directory.
24930 finish_cmds=$lt_finish_cmds
24931
24932 # Same as above, but a single script fragment to be evaled but not shown.
24933 finish_eval=$lt_finish_eval
24934
24935 # Take the output of nm and produce a listing of raw symbols and C names.
24936 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24937
24938 # Transform the output of nm in a proper C declaration
24939 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24940
24941 # Transform the output of nm in a C name address pair
24942 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24943
24944 # This is the shared library runtime path variable.
24945 runpath_var=$runpath_var
24946
24947 # This is the shared library path variable.
24948 shlibpath_var=$shlibpath_var
24949
24950 # Is shlibpath searched before the hard-coded library search path?
24951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24952
24953 # How to hardcode a shared library path into an executable.
24954 hardcode_action=$hardcode_action_GCJ
24955
24956 # Whether we should hardcode library paths into libraries.
24957 hardcode_into_libs=$hardcode_into_libs
24958
24959 # Flag to hardcode \$libdir into a binary during linking.
24960 # This must work even if \$libdir does not exist.
24961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24962
24963 # If ld is used when linking, flag to hardcode \$libdir into
24964 # a binary during linking. This must work even if \$libdir does
24965 # not exist.
24966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24967
24968 # Whether we need a single -rpath flag with a separated argument.
24969 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24970
24971 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24972 # resulting binary.
24973 hardcode_direct=$hardcode_direct_GCJ
24974
24975 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24976 # resulting binary.
24977 hardcode_minus_L=$hardcode_minus_L_GCJ
24978
24979 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24980 # the resulting binary.
24981 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24982
24983 # Set to yes if building a shared library automatically hardcodes DIR into the library
24984 # and all subsequent libraries and executables linked against it.
24985 hardcode_automatic=$hardcode_automatic_GCJ
24986
24987 # Variables whose values should be saved in libtool wrapper scripts and
24988 # restored at relink time.
24989 variables_saved_for_relink="$variables_saved_for_relink"
24990
24991 # Whether libtool must link a program against all its dependency libraries.
24992 link_all_deplibs=$link_all_deplibs_GCJ
24993
24994 # Compile-time system search path for libraries
24995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24996
24997 # Run-time system search path for libraries
24998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24999
25000 # Fix the shell variable \$srcfile for the compiler.
25001 fix_srcfile_path="$fix_srcfile_path_GCJ"
25002
25003 # Set to yes if exported symbols are required.
25004 always_export_symbols=$always_export_symbols_GCJ
25005
25006 # The commands to list exported symbols.
25007 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25008
25009 # The commands to extract the exported symbol list from a shared archive.
25010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25011
25012 # Symbols that should not be listed in the preloaded symbols.
25013 exclude_expsyms=$lt_exclude_expsyms_GCJ
25014
25015 # Symbols that must always be exported.
25016 include_expsyms=$lt_include_expsyms_GCJ
25017
25018 # ### END LIBTOOL TAG CONFIG: $tagname
25019
25020 __EOF__
25021
25022
25023 else
25024   # If there is no Makefile yet, we rely on a make rule to execute
25025   # `config.status --recheck' to rerun these tests and create the
25026   # libtool script then.
25027   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25028   if test -f "$ltmain_in"; then
25029     test -f Makefile && make "$ltmain"
25030   fi
25031 fi
25032
25033
25034 ac_ext=c
25035 ac_cpp='$CPP $CPPFLAGS'
25036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25039
25040 CC="$lt_save_CC"
25041
25042         else
25043           tagname=""
25044         fi
25045         ;;
25046
25047       RC)
25048         ac_ext=c
25049 ac_cpp='$CPP $CPPFLAGS'
25050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25053
25054
25055 # Source file extension for RC test sources.
25056 ac_ext=rc
25057
25058 # Object file extension for compiled RC test sources.
25059 objext=o
25060 objext_RC=$objext
25061
25062 # Code to be used in simple compile tests
25063 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25064
25065 # Code to be used in simple link tests
25066 lt_simple_link_test_code="$lt_simple_compile_test_code"
25067
25068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25069
25070 # If no C compiler was specified, use CC.
25071 LTCC=${LTCC-"$CC"}
25072
25073 # If no C compiler flags were specified, use CFLAGS.
25074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25075
25076 # Allow CC to be a program name with arguments.
25077 compiler=$CC
25078
25079
25080 # save warnings/boilerplate of simple test code
25081 ac_outfile=conftest.$ac_objext
25082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25084 _lt_compiler_boilerplate=`cat conftest.err`
25085 $rm conftest*
25086
25087 ac_outfile=conftest.$ac_objext
25088 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25090 _lt_linker_boilerplate=`cat conftest.err`
25091 $rm conftest*
25092
25093
25094 # Allow CC to be a program name with arguments.
25095 lt_save_CC="$CC"
25096 CC=${RC-"windres"}
25097 compiler=$CC
25098 compiler_RC=$CC
25099 for cc_temp in $compiler""; do
25100   case $cc_temp in
25101     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25102     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25103     \-*) ;;
25104     *) break;;
25105   esac
25106 done
25107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25108
25109 lt_cv_prog_compiler_c_o_RC=yes
25110
25111 # The else clause should only fire when bootstrapping the
25112 # libtool distribution, otherwise you forgot to ship ltmain.sh
25113 # with your package, and you will get complaints that there are
25114 # no rules to generate ltmain.sh.
25115 if test -f "$ltmain"; then
25116   # See if we are running on zsh, and set the options which allow our commands through
25117   # without removal of \ escapes.
25118   if test -n "${ZSH_VERSION+set}" ; then
25119     setopt NO_GLOB_SUBST
25120   fi
25121   # Now quote all the things that may contain metacharacters while being
25122   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25123   # variables and quote the copies for generation of the libtool script.
25124   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25125     SED SHELL STRIP \
25126     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25127     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25128     deplibs_check_method reload_flag reload_cmds need_locks \
25129     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25130     lt_cv_sys_global_symbol_to_c_name_address \
25131     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25132     old_postinstall_cmds old_postuninstall_cmds \
25133     compiler_RC \
25134     CC_RC \
25135     LD_RC \
25136     lt_prog_compiler_wl_RC \
25137     lt_prog_compiler_pic_RC \
25138     lt_prog_compiler_static_RC \
25139     lt_prog_compiler_no_builtin_flag_RC \
25140     export_dynamic_flag_spec_RC \
25141     thread_safe_flag_spec_RC \
25142     whole_archive_flag_spec_RC \
25143     enable_shared_with_static_runtimes_RC \
25144     old_archive_cmds_RC \
25145     old_archive_from_new_cmds_RC \
25146     predep_objects_RC \
25147     postdep_objects_RC \
25148     predeps_RC \
25149     postdeps_RC \
25150     compiler_lib_search_path_RC \
25151     archive_cmds_RC \
25152     archive_expsym_cmds_RC \
25153     postinstall_cmds_RC \
25154     postuninstall_cmds_RC \
25155     old_archive_from_expsyms_cmds_RC \
25156     allow_undefined_flag_RC \
25157     no_undefined_flag_RC \
25158     export_symbols_cmds_RC \
25159     hardcode_libdir_flag_spec_RC \
25160     hardcode_libdir_flag_spec_ld_RC \
25161     hardcode_libdir_separator_RC \
25162     hardcode_automatic_RC \
25163     module_cmds_RC \
25164     module_expsym_cmds_RC \
25165     lt_cv_prog_compiler_c_o_RC \
25166     exclude_expsyms_RC \
25167     include_expsyms_RC; do
25168
25169     case $var in
25170     old_archive_cmds_RC | \
25171     old_archive_from_new_cmds_RC | \
25172     archive_cmds_RC | \
25173     archive_expsym_cmds_RC | \
25174     module_cmds_RC | \
25175     module_expsym_cmds_RC | \
25176     old_archive_from_expsyms_cmds_RC | \
25177     export_symbols_cmds_RC | \
25178     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25179     postinstall_cmds | postuninstall_cmds | \
25180     old_postinstall_cmds | old_postuninstall_cmds | \
25181     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25182       # Double-quote double-evaled strings.
25183       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25184       ;;
25185     *)
25186       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25187       ;;
25188     esac
25189   done
25190
25191   case $lt_echo in
25192   *'\$0 --fallback-echo"')
25193     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25194     ;;
25195   esac
25196
25197 cfgfile="$ofile"
25198
25199   cat <<__EOF__ >> "$cfgfile"
25200 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25201
25202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25203
25204 # Shell to use when invoking shell scripts.
25205 SHELL=$lt_SHELL
25206
25207 # Whether or not to build shared libraries.
25208 build_libtool_libs=$enable_shared
25209
25210 # Whether or not to build static libraries.
25211 build_old_libs=$enable_static
25212
25213 # Whether or not to add -lc for building shared libraries.
25214 build_libtool_need_lc=$archive_cmds_need_lc_RC
25215
25216 # Whether or not to disallow shared libs when runtime libs are static
25217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25218
25219 # Whether or not to optimize for fast installation.
25220 fast_install=$enable_fast_install
25221
25222 # The host system.
25223 host_alias=$host_alias
25224 host=$host
25225 host_os=$host_os
25226
25227 # The build system.
25228 build_alias=$build_alias
25229 build=$build
25230 build_os=$build_os
25231
25232 # An echo program that does not interpret backslashes.
25233 echo=$lt_echo
25234
25235 # The archiver.
25236 AR=$lt_AR
25237 AR_FLAGS=$lt_AR_FLAGS
25238
25239 # A C compiler.
25240 LTCC=$lt_LTCC
25241
25242 # LTCC compiler flags.
25243 LTCFLAGS=$lt_LTCFLAGS
25244
25245 # A language-specific compiler.
25246 CC=$lt_compiler_RC
25247
25248 # Is the compiler the GNU C compiler?
25249 with_gcc=$GCC_RC
25250
25251 # An ERE matcher.
25252 EGREP=$lt_EGREP
25253
25254 # The linker used to build libraries.
25255 LD=$lt_LD_RC
25256
25257 # Whether we need hard or soft links.
25258 LN_S=$lt_LN_S
25259
25260 # A BSD-compatible nm program.
25261 NM=$lt_NM
25262
25263 # A symbol stripping program
25264 STRIP=$lt_STRIP
25265
25266 # Used to examine libraries when file_magic_cmd begins "file"
25267 MAGIC_CMD=$MAGIC_CMD
25268
25269 # Used on cygwin: DLL creation program.
25270 DLLTOOL="$DLLTOOL"
25271
25272 # Used on cygwin: object dumper.
25273 OBJDUMP="$OBJDUMP"
25274
25275 # Used on cygwin: assembler.
25276 AS="$AS"
25277
25278 # The name of the directory that contains temporary libtool files.
25279 objdir=$objdir
25280
25281 # How to create reloadable object files.
25282 reload_flag=$lt_reload_flag
25283 reload_cmds=$lt_reload_cmds
25284
25285 # How to pass a linker flag through the compiler.
25286 wl=$lt_lt_prog_compiler_wl_RC
25287
25288 # Object file suffix (normally "o").
25289 objext="$ac_objext"
25290
25291 # Old archive suffix (normally "a").
25292 libext="$libext"
25293
25294 # Shared library suffix (normally ".so").
25295 shrext_cmds='$shrext_cmds'
25296
25297 # Executable file suffix (normally "").
25298 exeext="$exeext"
25299
25300 # Additional compiler flags for building library objects.
25301 pic_flag=$lt_lt_prog_compiler_pic_RC
25302 pic_mode=$pic_mode
25303
25304 # What is the maximum length of a command?
25305 max_cmd_len=$lt_cv_sys_max_cmd_len
25306
25307 # Does compiler simultaneously support -c and -o options?
25308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25309
25310 # Must we lock files when doing compilation?
25311 need_locks=$lt_need_locks
25312
25313 # Do we need the lib prefix for modules?
25314 need_lib_prefix=$need_lib_prefix
25315
25316 # Do we need a version for libraries?
25317 need_version=$need_version
25318
25319 # Whether dlopen is supported.
25320 dlopen_support=$enable_dlopen
25321
25322 # Whether dlopen of programs is supported.
25323 dlopen_self=$enable_dlopen_self
25324
25325 # Whether dlopen of statically linked programs is supported.
25326 dlopen_self_static=$enable_dlopen_self_static
25327
25328 # Compiler flag to prevent dynamic linking.
25329 link_static_flag=$lt_lt_prog_compiler_static_RC
25330
25331 # Compiler flag to turn off builtin functions.
25332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25333
25334 # Compiler flag to allow reflexive dlopens.
25335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25336
25337 # Compiler flag to generate shared objects directly from archives.
25338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25339
25340 # Compiler flag to generate thread-safe objects.
25341 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25342
25343 # Library versioning type.
25344 version_type=$version_type
25345
25346 # Format of library name prefix.
25347 libname_spec=$lt_libname_spec
25348
25349 # List of archive names.  First name is the real one, the rest are links.
25350 # The last name is the one that the linker finds with -lNAME.
25351 library_names_spec=$lt_library_names_spec
25352
25353 # The coded name of the library, if different from the real name.
25354 soname_spec=$lt_soname_spec
25355
25356 # Commands used to build and install an old-style archive.
25357 RANLIB=$lt_RANLIB
25358 old_archive_cmds=$lt_old_archive_cmds_RC
25359 old_postinstall_cmds=$lt_old_postinstall_cmds
25360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25361
25362 # Create an old-style archive from a shared archive.
25363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25364
25365 # Create a temporary old-style archive to link instead of a shared archive.
25366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25367
25368 # Commands used to build and install a shared archive.
25369 archive_cmds=$lt_archive_cmds_RC
25370 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25371 postinstall_cmds=$lt_postinstall_cmds
25372 postuninstall_cmds=$lt_postuninstall_cmds
25373
25374 # Commands used to build a loadable module (assumed same as above if empty)
25375 module_cmds=$lt_module_cmds_RC
25376 module_expsym_cmds=$lt_module_expsym_cmds_RC
25377
25378 # Commands to strip libraries.
25379 old_striplib=$lt_old_striplib
25380 striplib=$lt_striplib
25381
25382 # Dependencies to place before the objects being linked to create a
25383 # shared library.
25384 predep_objects=$lt_predep_objects_RC
25385
25386 # Dependencies to place after the objects being linked to create a
25387 # shared library.
25388 postdep_objects=$lt_postdep_objects_RC
25389
25390 # Dependencies to place before the objects being linked to create a
25391 # shared library.
25392 predeps=$lt_predeps_RC
25393
25394 # Dependencies to place after the objects being linked to create a
25395 # shared library.
25396 postdeps=$lt_postdeps_RC
25397
25398 # The library search path used internally by the compiler when linking
25399 # a shared library.
25400 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25401
25402 # Method to check whether dependent libraries are shared objects.
25403 deplibs_check_method=$lt_deplibs_check_method
25404
25405 # Command to use when deplibs_check_method == file_magic.
25406 file_magic_cmd=$lt_file_magic_cmd
25407
25408 # Flag that allows shared libraries with undefined symbols to be built.
25409 allow_undefined_flag=$lt_allow_undefined_flag_RC
25410
25411 # Flag that forces no undefined symbols.
25412 no_undefined_flag=$lt_no_undefined_flag_RC
25413
25414 # Commands used to finish a libtool library installation in a directory.
25415 finish_cmds=$lt_finish_cmds
25416
25417 # Same as above, but a single script fragment to be evaled but not shown.
25418 finish_eval=$lt_finish_eval
25419
25420 # Take the output of nm and produce a listing of raw symbols and C names.
25421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25422
25423 # Transform the output of nm in a proper C declaration
25424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25425
25426 # Transform the output of nm in a C name address pair
25427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25428
25429 # This is the shared library runtime path variable.
25430 runpath_var=$runpath_var
25431
25432 # This is the shared library path variable.
25433 shlibpath_var=$shlibpath_var
25434
25435 # Is shlibpath searched before the hard-coded library search path?
25436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25437
25438 # How to hardcode a shared library path into an executable.
25439 hardcode_action=$hardcode_action_RC
25440
25441 # Whether we should hardcode library paths into libraries.
25442 hardcode_into_libs=$hardcode_into_libs
25443
25444 # Flag to hardcode \$libdir into a binary during linking.
25445 # This must work even if \$libdir does not exist.
25446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25447
25448 # If ld is used when linking, flag to hardcode \$libdir into
25449 # a binary during linking. This must work even if \$libdir does
25450 # not exist.
25451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25452
25453 # Whether we need a single -rpath flag with a separated argument.
25454 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25455
25456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25457 # resulting binary.
25458 hardcode_direct=$hardcode_direct_RC
25459
25460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25461 # resulting binary.
25462 hardcode_minus_L=$hardcode_minus_L_RC
25463
25464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25465 # the resulting binary.
25466 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25467
25468 # Set to yes if building a shared library automatically hardcodes DIR into the library
25469 # and all subsequent libraries and executables linked against it.
25470 hardcode_automatic=$hardcode_automatic_RC
25471
25472 # Variables whose values should be saved in libtool wrapper scripts and
25473 # restored at relink time.
25474 variables_saved_for_relink="$variables_saved_for_relink"
25475
25476 # Whether libtool must link a program against all its dependency libraries.
25477 link_all_deplibs=$link_all_deplibs_RC
25478
25479 # Compile-time system search path for libraries
25480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25481
25482 # Run-time system search path for libraries
25483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25484
25485 # Fix the shell variable \$srcfile for the compiler.
25486 fix_srcfile_path="$fix_srcfile_path_RC"
25487
25488 # Set to yes if exported symbols are required.
25489 always_export_symbols=$always_export_symbols_RC
25490
25491 # The commands to list exported symbols.
25492 export_symbols_cmds=$lt_export_symbols_cmds_RC
25493
25494 # The commands to extract the exported symbol list from a shared archive.
25495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25496
25497 # Symbols that should not be listed in the preloaded symbols.
25498 exclude_expsyms=$lt_exclude_expsyms_RC
25499
25500 # Symbols that must always be exported.
25501 include_expsyms=$lt_include_expsyms_RC
25502
25503 # ### END LIBTOOL TAG CONFIG: $tagname
25504
25505 __EOF__
25506
25507
25508 else
25509   # If there is no Makefile yet, we rely on a make rule to execute
25510   # `config.status --recheck' to rerun these tests and create the
25511   # libtool script then.
25512   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25513   if test -f "$ltmain_in"; then
25514     test -f Makefile && make "$ltmain"
25515   fi
25516 fi
25517
25518
25519 ac_ext=c
25520 ac_cpp='$CPP $CPPFLAGS'
25521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25524
25525 CC="$lt_save_CC"
25526
25527         ;;
25528
25529       *)
25530         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25531 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25532    { (exit 1); exit 1; }; }
25533         ;;
25534       esac
25535
25536       # Append the new tag name to the list of available tags.
25537       if test -n "$tagname" ; then
25538       available_tags="$available_tags $tagname"
25539     fi
25540     fi
25541   done
25542   IFS="$lt_save_ifs"
25543
25544   # Now substitute the updated list of available tags.
25545   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25546     mv "${ofile}T" "$ofile"
25547     chmod +x "$ofile"
25548   else
25549     rm -f "${ofile}T"
25550     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25551 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25552    { (exit 1); exit 1; }; }
25553   fi
25554 fi
25555
25556
25557
25558 # This can be used to rebuild libtool when needed
25559 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25560
25561 # Always use our own libtool.
25562 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25563
25564 # Prevent multiple expansion
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586 if test "$lt_cv_dlopen_self" = "yes" ; then
25587
25588 cat >>confdefs.h <<\_ACEOF
25589 #define CAN_DLOPEN_SELF 1
25590 _ACEOF
25591
25592 fi
25593
25594 if test "$WITH_LLVMGCCDIR" = "default" ; then
25595   LLVMGCC="llvm-gcc${EXEEXT}"
25596   LLVMGXX="llvm-g++${EXEEXT}"
25597   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25598 set dummy $LLVMGCC; ac_word=$2
25599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25601 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25602   echo $ECHO_N "(cached) $ECHO_C" >&6
25603 else
25604   case $LLVMGCC in
25605   [\\/]* | ?:[\\/]*)
25606   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25607   ;;
25608   *)
25609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610 for as_dir in $PATH
25611 do
25612   IFS=$as_save_IFS
25613   test -z "$as_dir" && as_dir=.
25614   for ac_exec_ext in '' $ac_executable_extensions; do
25615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25616     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25618     break 2
25619   fi
25620 done
25621 done
25622 IFS=$as_save_IFS
25623
25624   ;;
25625 esac
25626 fi
25627 LLVMGCC=$ac_cv_path_LLVMGCC
25628 if test -n "$LLVMGCC"; then
25629   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25630 echo "${ECHO_T}$LLVMGCC" >&6; }
25631 else
25632   { echo "$as_me:$LINENO: result: no" >&5
25633 echo "${ECHO_T}no" >&6; }
25634 fi
25635
25636
25637   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25638 set dummy $LLVMGXX; ac_word=$2
25639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25641 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25642   echo $ECHO_N "(cached) $ECHO_C" >&6
25643 else
25644   case $LLVMGXX in
25645   [\\/]* | ?:[\\/]*)
25646   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25647   ;;
25648   *)
25649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25650 for as_dir in $PATH
25651 do
25652   IFS=$as_save_IFS
25653   test -z "$as_dir" && as_dir=.
25654   for ac_exec_ext in '' $ac_executable_extensions; do
25655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25656     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25658     break 2
25659   fi
25660 done
25661 done
25662 IFS=$as_save_IFS
25663
25664   ;;
25665 esac
25666 fi
25667 LLVMGXX=$ac_cv_path_LLVMGXX
25668 if test -n "$LLVMGXX"; then
25669   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25670 echo "${ECHO_T}$LLVMGXX" >&6; }
25671 else
25672   { echo "$as_me:$LINENO: result: no" >&5
25673 echo "${ECHO_T}no" >&6; }
25674 fi
25675
25676
25677 else
25678   if test -z "$LLVMGCC"; then
25679     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25680   fi
25681   if test -z "$LLVMGXX"; then
25682     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25683   fi
25684   LLVMGCC=$LLVMGCC
25685
25686   LLVMGXX=$LLVMGXX
25687
25688 fi
25689
25690 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25691 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25692
25693 ICC=no
25694 IXX=no
25695 case $CC in
25696   icc*|icpc*)
25697     ICC=yes
25698     IXX=yes
25699     ;;
25700    *)
25701     ;;
25702 esac
25703
25704 if test "$GCC" != "yes" && test "$ICC" != "yes"
25705 then
25706   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25707 echo "$as_me: error: gcc|icc required but not found" >&2;}
25708    { (exit 1); exit 1; }; }
25709 fi
25710
25711 if test "$GXX" != "yes" && test "$IXX" != "yes"
25712 then
25713   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25714 echo "$as_me: error: g++|icc required but not found" >&2;}
25715    { (exit 1); exit 1; }; }
25716 fi
25717
25718 if test "$GCC" = "yes"
25719 then
25720   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25721   if test "$gccmajor" -lt "3"
25722   then
25723     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25724 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25725    { (exit 1); exit 1; }; }
25726   fi
25727 fi
25728
25729 if test -z "$llvm_cv_gnu_make_command"
25730 then
25731   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25732 echo "$as_me: error: GNU Make required but not found" >&2;}
25733    { (exit 1); exit 1; }; }
25734 fi
25735
25736 { echo "$as_me:$LINENO: result: ok" >&5
25737 echo "${ECHO_T}ok" >&6; }
25738
25739
25740
25741 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25742 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25743 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25744   echo $ECHO_N "(cached) $ECHO_C" >&6
25745 else
25746   ac_check_lib_save_LIBS=$LIBS
25747 LIBS="-lelf  $LIBS"
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754
25755 /* Override any GCC internal prototype to avoid an error.
25756    Use char because int might match the return type of a GCC
25757    builtin and then its argument prototype would still apply.  */
25758 #ifdef __cplusplus
25759 extern "C"
25760 #endif
25761 char elf_begin ();
25762 int
25763 main ()
25764 {
25765 return elf_begin ();
25766   ;
25767   return 0;
25768 }
25769 _ACEOF
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (ac_try="$ac_link"
25772 case "(($ac_try" in
25773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774   *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777   (eval "$ac_link") 2>conftest.er1
25778   ac_status=$?
25779   grep -v '^ *+' conftest.er1 >conftest.err
25780   rm -f conftest.er1
25781   cat conftest.err >&5
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); } && {
25784          test -z "$ac_c_werror_flag" ||
25785          test ! -s conftest.err
25786        } && test -s conftest$ac_exeext &&
25787        $as_test_x conftest$ac_exeext; then
25788   ac_cv_lib_elf_elf_begin=yes
25789 else
25790   echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25792
25793         ac_cv_lib_elf_elf_begin=no
25794 fi
25795
25796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797       conftest$ac_exeext conftest.$ac_ext
25798 LIBS=$ac_check_lib_save_LIBS
25799 fi
25800 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25801 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25802 if test $ac_cv_lib_elf_elf_begin = yes; then
25803   cat >>confdefs.h <<_ACEOF
25804 #define HAVE_LIBELF 1
25805 _ACEOF
25806
25807   LIBS="-lelf $LIBS"
25808
25809 fi
25810
25811
25812 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25813 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25814 if test "${ac_cv_lib_m_sin+set}" = set; then
25815   echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25817   ac_check_lib_save_LIBS=$LIBS
25818 LIBS="-lm  $LIBS"
25819 cat >conftest.$ac_ext <<_ACEOF
25820 /* confdefs.h.  */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h.  */
25825
25826 /* Override any GCC internal prototype to avoid an error.
25827    Use char because int might match the return type of a GCC
25828    builtin and then its argument prototype would still apply.  */
25829 #ifdef __cplusplus
25830 extern "C"
25831 #endif
25832 char sin ();
25833 int
25834 main ()
25835 {
25836 return sin ();
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 rm -f conftest.$ac_objext conftest$ac_exeext
25842 if { (ac_try="$ac_link"
25843 case "(($ac_try" in
25844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845   *) ac_try_echo=$ac_try;;
25846 esac
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848   (eval "$ac_link") 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } && {
25855          test -z "$ac_c_werror_flag" ||
25856          test ! -s conftest.err
25857        } && test -s conftest$ac_exeext &&
25858        $as_test_x conftest$ac_exeext; then
25859   ac_cv_lib_m_sin=yes
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864         ac_cv_lib_m_sin=no
25865 fi
25866
25867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25868       conftest$ac_exeext conftest.$ac_ext
25869 LIBS=$ac_check_lib_save_LIBS
25870 fi
25871 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25872 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25873 if test $ac_cv_lib_m_sin = yes; then
25874   cat >>confdefs.h <<_ACEOF
25875 #define HAVE_LIBM 1
25876 _ACEOF
25877
25878   LIBS="-lm $LIBS"
25879
25880 fi
25881
25882 if test "$llvm_cv_os_type" = "MingW" ; then
25883
25884 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25885 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25886 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889   ac_check_lib_save_LIBS=$LIBS
25890 LIBS="-limagehlp  $LIBS"
25891 cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897
25898
25899 int
25900 main ()
25901 {
25902 return main ();
25903   ;
25904   return 0;
25905 }
25906 _ACEOF
25907 rm -f conftest.$ac_objext conftest$ac_exeext
25908 if { (ac_try="$ac_link"
25909 case "(($ac_try" in
25910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911   *) ac_try_echo=$ac_try;;
25912 esac
25913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25914   (eval "$ac_link") 2>conftest.er1
25915   ac_status=$?
25916   grep -v '^ *+' conftest.er1 >conftest.err
25917   rm -f conftest.er1
25918   cat conftest.err >&5
25919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920   (exit $ac_status); } && {
25921          test -z "$ac_c_werror_flag" ||
25922          test ! -s conftest.err
25923        } && test -s conftest$ac_exeext &&
25924        $as_test_x conftest$ac_exeext; then
25925   ac_cv_lib_imagehlp_main=yes
25926 else
25927   echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.$ac_ext >&5
25929
25930         ac_cv_lib_imagehlp_main=no
25931 fi
25932
25933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25934       conftest$ac_exeext conftest.$ac_ext
25935 LIBS=$ac_check_lib_save_LIBS
25936 fi
25937 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25938 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25939 if test $ac_cv_lib_imagehlp_main = yes; then
25940   cat >>confdefs.h <<_ACEOF
25941 #define HAVE_LIBIMAGEHLP 1
25942 _ACEOF
25943
25944   LIBS="-limagehlp $LIBS"
25945
25946 fi
25947
25948
25949 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25950 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25951 if test "${ac_cv_lib_psapi_main+set}" = set; then
25952   echo $ECHO_N "(cached) $ECHO_C" >&6
25953 else
25954   ac_check_lib_save_LIBS=$LIBS
25955 LIBS="-lpsapi  $LIBS"
25956 cat >conftest.$ac_ext <<_ACEOF
25957 /* confdefs.h.  */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h.  */
25962
25963
25964 int
25965 main ()
25966 {
25967 return main ();
25968   ;
25969   return 0;
25970 }
25971 _ACEOF
25972 rm -f conftest.$ac_objext conftest$ac_exeext
25973 if { (ac_try="$ac_link"
25974 case "(($ac_try" in
25975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976   *) ac_try_echo=$ac_try;;
25977 esac
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979   (eval "$ac_link") 2>conftest.er1
25980   ac_status=$?
25981   grep -v '^ *+' conftest.er1 >conftest.err
25982   rm -f conftest.er1
25983   cat conftest.err >&5
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); } && {
25986          test -z "$ac_c_werror_flag" ||
25987          test ! -s conftest.err
25988        } && test -s conftest$ac_exeext &&
25989        $as_test_x conftest$ac_exeext; then
25990   ac_cv_lib_psapi_main=yes
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995         ac_cv_lib_psapi_main=no
25996 fi
25997
25998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25999       conftest$ac_exeext conftest.$ac_ext
26000 LIBS=$ac_check_lib_save_LIBS
26001 fi
26002 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26003 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26004 if test $ac_cv_lib_psapi_main = yes; then
26005   cat >>confdefs.h <<_ACEOF
26006 #define HAVE_LIBPSAPI 1
26007 _ACEOF
26008
26009   LIBS="-lpsapi $LIBS"
26010
26011 fi
26012
26013 fi
26014
26015 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26016 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26017 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26018   echo $ECHO_N "(cached) $ECHO_C" >&6
26019 else
26020   ac_func_search_save_LIBS=$LIBS
26021 cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h.  */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h.  */
26027
26028 /* Override any GCC internal prototype to avoid an error.
26029    Use char because int might match the return type of a GCC
26030    builtin and then its argument prototype would still apply.  */
26031 #ifdef __cplusplus
26032 extern "C"
26033 #endif
26034 char lt_dlopen ();
26035 int
26036 main ()
26037 {
26038 return lt_dlopen ();
26039   ;
26040   return 0;
26041 }
26042 _ACEOF
26043 for ac_lib in '' ltdl; do
26044   if test -z "$ac_lib"; then
26045     ac_res="none required"
26046   else
26047     ac_res=-l$ac_lib
26048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26049   fi
26050   rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (ac_try="$ac_link"
26052 case "(($ac_try" in
26053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054   *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057   (eval "$ac_link") 2>conftest.er1
26058   ac_status=$?
26059   grep -v '^ *+' conftest.er1 >conftest.err
26060   rm -f conftest.er1
26061   cat conftest.err >&5
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); } && {
26064          test -z "$ac_c_werror_flag" ||
26065          test ! -s conftest.err
26066        } && test -s conftest$ac_exeext &&
26067        $as_test_x conftest$ac_exeext; then
26068   ac_cv_search_lt_dlopen=$ac_res
26069 else
26070   echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26072
26073
26074 fi
26075
26076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26077       conftest$ac_exeext
26078   if test "${ac_cv_search_lt_dlopen+set}" = set; then
26079   break
26080 fi
26081 done
26082 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26083   :
26084 else
26085   ac_cv_search_lt_dlopen=no
26086 fi
26087 rm conftest.$ac_ext
26088 LIBS=$ac_func_search_save_LIBS
26089 fi
26090 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26091 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26092 ac_res=$ac_cv_search_lt_dlopen
26093 if test "$ac_res" != no; then
26094   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26095
26096 cat >>confdefs.h <<\_ACEOF
26097 #define HAVE_LT_DLOPEN 1
26098 _ACEOF
26099
26100 else
26101   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26102                            not be available" >&5
26103 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26104                            not be available" >&2;}
26105 fi
26106
26107
26108 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26109 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26110 if test "${ac_cv_search_dlopen+set}" = set; then
26111   echo $ECHO_N "(cached) $ECHO_C" >&6
26112 else
26113   ac_func_search_save_LIBS=$LIBS
26114 cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120
26121 /* Override any GCC internal prototype to avoid an error.
26122    Use char because int might match the return type of a GCC
26123    builtin and then its argument prototype would still apply.  */
26124 #ifdef __cplusplus
26125 extern "C"
26126 #endif
26127 char dlopen ();
26128 int
26129 main ()
26130 {
26131 return dlopen ();
26132   ;
26133   return 0;
26134 }
26135 _ACEOF
26136 for ac_lib in '' dl; do
26137   if test -z "$ac_lib"; then
26138     ac_res="none required"
26139   else
26140     ac_res=-l$ac_lib
26141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26142   fi
26143   rm -f conftest.$ac_objext conftest$ac_exeext
26144 if { (ac_try="$ac_link"
26145 case "(($ac_try" in
26146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147   *) ac_try_echo=$ac_try;;
26148 esac
26149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150   (eval "$ac_link") 2>conftest.er1
26151   ac_status=$?
26152   grep -v '^ *+' conftest.er1 >conftest.err
26153   rm -f conftest.er1
26154   cat conftest.err >&5
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); } && {
26157          test -z "$ac_c_werror_flag" ||
26158          test ! -s conftest.err
26159        } && test -s conftest$ac_exeext &&
26160        $as_test_x conftest$ac_exeext; then
26161   ac_cv_search_dlopen=$ac_res
26162 else
26163   echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166
26167 fi
26168
26169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26170       conftest$ac_exeext
26171   if test "${ac_cv_search_dlopen+set}" = set; then
26172   break
26173 fi
26174 done
26175 if test "${ac_cv_search_dlopen+set}" = set; then
26176   :
26177 else
26178   ac_cv_search_dlopen=no
26179 fi
26180 rm conftest.$ac_ext
26181 LIBS=$ac_func_search_save_LIBS
26182 fi
26183 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26184 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26185 ac_res=$ac_cv_search_dlopen
26186 if test "$ac_res" != no; then
26187   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26188
26189 cat >>confdefs.h <<\_ACEOF
26190 #define HAVE_DLOPEN 1
26191 _ACEOF
26192
26193 else
26194   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26195 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26196 fi
26197
26198
26199 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26200 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26201 if test "${ac_cv_search_mallinfo+set}" = set; then
26202   echo $ECHO_N "(cached) $ECHO_C" >&6
26203 else
26204   ac_func_search_save_LIBS=$LIBS
26205 cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h.  */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h.  */
26211
26212 /* Override any GCC internal prototype to avoid an error.
26213    Use char because int might match the return type of a GCC
26214    builtin and then its argument prototype would still apply.  */
26215 #ifdef __cplusplus
26216 extern "C"
26217 #endif
26218 char mallinfo ();
26219 int
26220 main ()
26221 {
26222 return mallinfo ();
26223   ;
26224   return 0;
26225 }
26226 _ACEOF
26227 for ac_lib in '' malloc; do
26228   if test -z "$ac_lib"; then
26229     ac_res="none required"
26230   else
26231     ac_res=-l$ac_lib
26232     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26233   fi
26234   rm -f conftest.$ac_objext conftest$ac_exeext
26235 if { (ac_try="$ac_link"
26236 case "(($ac_try" in
26237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238   *) ac_try_echo=$ac_try;;
26239 esac
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241   (eval "$ac_link") 2>conftest.er1
26242   ac_status=$?
26243   grep -v '^ *+' conftest.er1 >conftest.err
26244   rm -f conftest.er1
26245   cat conftest.err >&5
26246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247   (exit $ac_status); } && {
26248          test -z "$ac_c_werror_flag" ||
26249          test ! -s conftest.err
26250        } && test -s conftest$ac_exeext &&
26251        $as_test_x conftest$ac_exeext; then
26252   ac_cv_search_mallinfo=$ac_res
26253 else
26254   echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26256
26257
26258 fi
26259
26260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26261       conftest$ac_exeext
26262   if test "${ac_cv_search_mallinfo+set}" = set; then
26263   break
26264 fi
26265 done
26266 if test "${ac_cv_search_mallinfo+set}" = set; then
26267   :
26268 else
26269   ac_cv_search_mallinfo=no
26270 fi
26271 rm conftest.$ac_ext
26272 LIBS=$ac_func_search_save_LIBS
26273 fi
26274 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26275 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26276 ac_res=$ac_cv_search_mallinfo
26277 if test "$ac_res" != no; then
26278   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26279
26280 cat >>confdefs.h <<\_ACEOF
26281 #define HAVE_MALLINFO 1
26282 _ACEOF
26283
26284 fi
26285
26286
26287 if test "$ENABLE_THREADS" -eq 1 ; then
26288
26289 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26290 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26291 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26292   echo $ECHO_N "(cached) $ECHO_C" >&6
26293 else
26294   ac_check_lib_save_LIBS=$LIBS
26295 LIBS="-lpthread  $LIBS"
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h.  */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h.  */
26302
26303 /* Override any GCC internal prototype to avoid an error.
26304    Use char because int might match the return type of a GCC
26305    builtin and then its argument prototype would still apply.  */
26306 #ifdef __cplusplus
26307 extern "C"
26308 #endif
26309 char pthread_mutex_init ();
26310 int
26311 main ()
26312 {
26313 return pthread_mutex_init ();
26314   ;
26315   return 0;
26316 }
26317 _ACEOF
26318 rm -f conftest.$ac_objext conftest$ac_exeext
26319 if { (ac_try="$ac_link"
26320 case "(($ac_try" in
26321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322   *) ac_try_echo=$ac_try;;
26323 esac
26324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26325   (eval "$ac_link") 2>conftest.er1
26326   ac_status=$?
26327   grep -v '^ *+' conftest.er1 >conftest.err
26328   rm -f conftest.er1
26329   cat conftest.err >&5
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); } && {
26332          test -z "$ac_c_werror_flag" ||
26333          test ! -s conftest.err
26334        } && test -s conftest$ac_exeext &&
26335        $as_test_x conftest$ac_exeext; then
26336   ac_cv_lib_pthread_pthread_mutex_init=yes
26337 else
26338   echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341         ac_cv_lib_pthread_pthread_mutex_init=no
26342 fi
26343
26344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26345       conftest$ac_exeext conftest.$ac_ext
26346 LIBS=$ac_check_lib_save_LIBS
26347 fi
26348 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26349 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26350 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26351   cat >>confdefs.h <<_ACEOF
26352 #define HAVE_LIBPTHREAD 1
26353 _ACEOF
26354
26355   LIBS="-lpthread $LIBS"
26356
26357 fi
26358
26359   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26360 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26361 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364   ac_func_search_save_LIBS=$LIBS
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h.  */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h.  */
26371
26372 /* Override any GCC internal prototype to avoid an error.
26373    Use char because int might match the return type of a GCC
26374    builtin and then its argument prototype would still apply.  */
26375 #ifdef __cplusplus
26376 extern "C"
26377 #endif
26378 char pthread_mutex_lock ();
26379 int
26380 main ()
26381 {
26382 return pthread_mutex_lock ();
26383   ;
26384   return 0;
26385 }
26386 _ACEOF
26387 for ac_lib in '' pthread; do
26388   if test -z "$ac_lib"; then
26389     ac_res="none required"
26390   else
26391     ac_res=-l$ac_lib
26392     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26393   fi
26394   rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (ac_try="$ac_link"
26396 case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401   (eval "$ac_link") 2>conftest.er1
26402   ac_status=$?
26403   grep -v '^ *+' conftest.er1 >conftest.err
26404   rm -f conftest.er1
26405   cat conftest.err >&5
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); } && {
26408          test -z "$ac_c_werror_flag" ||
26409          test ! -s conftest.err
26410        } && test -s conftest$ac_exeext &&
26411        $as_test_x conftest$ac_exeext; then
26412   ac_cv_search_pthread_mutex_lock=$ac_res
26413 else
26414   echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417
26418 fi
26419
26420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26421       conftest$ac_exeext
26422   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26423   break
26424 fi
26425 done
26426 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26427   :
26428 else
26429   ac_cv_search_pthread_mutex_lock=no
26430 fi
26431 rm conftest.$ac_ext
26432 LIBS=$ac_func_search_save_LIBS
26433 fi
26434 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26435 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26436 ac_res=$ac_cv_search_pthread_mutex_lock
26437 if test "$ac_res" != no; then
26438   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26439
26440 cat >>confdefs.h <<\_ACEOF
26441 #define HAVE_PTHREAD_MUTEX_LOCK 1
26442 _ACEOF
26443
26444 fi
26445
26446 fi
26447
26448
26449 # Check whether --with-udis86 was given.
26450 if test "${with_udis86+set}" = set; then
26451   withval=$with_udis86;
26452       USE_UDIS86=1
26453
26454       case "$withval" in
26455         /usr/lib|yes) ;;
26456         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26457       esac
26458
26459 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26460 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26461 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26462   echo $ECHO_N "(cached) $ECHO_C" >&6
26463 else
26464   ac_check_lib_save_LIBS=$LIBS
26465 LIBS="-ludis86  $LIBS"
26466 cat >conftest.$ac_ext <<_ACEOF
26467 /* confdefs.h.  */
26468 _ACEOF
26469 cat confdefs.h >>conftest.$ac_ext
26470 cat >>conftest.$ac_ext <<_ACEOF
26471 /* end confdefs.h.  */
26472
26473 /* Override any GCC internal prototype to avoid an error.
26474    Use char because int might match the return type of a GCC
26475    builtin and then its argument prototype would still apply.  */
26476 #ifdef __cplusplus
26477 extern "C"
26478 #endif
26479 char ud_init ();
26480 int
26481 main ()
26482 {
26483 return ud_init ();
26484   ;
26485   return 0;
26486 }
26487 _ACEOF
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (ac_try="$ac_link"
26490 case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495   (eval "$ac_link") 2>conftest.er1
26496   ac_status=$?
26497   grep -v '^ *+' conftest.er1 >conftest.err
26498   rm -f conftest.er1
26499   cat conftest.err >&5
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); } && {
26502          test -z "$ac_c_werror_flag" ||
26503          test ! -s conftest.err
26504        } && test -s conftest$ac_exeext &&
26505        $as_test_x conftest$ac_exeext; then
26506   ac_cv_lib_udis86_ud_init=yes
26507 else
26508   echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26510
26511         ac_cv_lib_udis86_ud_init=no
26512 fi
26513
26514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26515       conftest$ac_exeext conftest.$ac_ext
26516 LIBS=$ac_check_lib_save_LIBS
26517 fi
26518 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26519 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26520 if test $ac_cv_lib_udis86_ud_init = yes; then
26521   cat >>confdefs.h <<_ACEOF
26522 #define HAVE_LIBUDIS86 1
26523 _ACEOF
26524
26525   LIBS="-ludis86 $LIBS"
26526
26527 else
26528
26529         echo "Error! You need to have libudis86 around."
26530         exit -1
26531
26532 fi
26533
26534
26535 else
26536   USE_UDIS86=0
26537
26538 fi
26539
26540
26541 cat >>confdefs.h <<_ACEOF
26542 #define USE_UDIS86 $USE_UDIS86
26543 _ACEOF
26544
26545
26546
26547
26548
26549
26550
26551
26552 ac_header_dirent=no
26553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26554   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26555 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26558   echo $ECHO_N "(cached) $ECHO_C" >&6
26559 else
26560   cat >conftest.$ac_ext <<_ACEOF
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566 #include <sys/types.h>
26567 #include <$ac_hdr>
26568
26569 int
26570 main ()
26571 {
26572 if ((DIR *) 0)
26573 return 0;
26574   ;
26575   return 0;
26576 }
26577 _ACEOF
26578 rm -f conftest.$ac_objext
26579 if { (ac_try="$ac_compile"
26580 case "(($ac_try" in
26581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582   *) ac_try_echo=$ac_try;;
26583 esac
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585   (eval "$ac_compile") 2>conftest.er1
26586   ac_status=$?
26587   grep -v '^ *+' conftest.er1 >conftest.err
26588   rm -f conftest.er1
26589   cat conftest.err >&5
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); } && {
26592          test -z "$ac_c_werror_flag" ||
26593          test ! -s conftest.err
26594        } && test -s conftest.$ac_objext; then
26595   eval "$as_ac_Header=yes"
26596 else
26597   echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26599
26600         eval "$as_ac_Header=no"
26601 fi
26602
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 fi
26605 ac_res=`eval echo '${'$as_ac_Header'}'`
26606                { echo "$as_me:$LINENO: result: $ac_res" >&5
26607 echo "${ECHO_T}$ac_res" >&6; }
26608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609   cat >>confdefs.h <<_ACEOF
26610 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26611 _ACEOF
26612
26613 ac_header_dirent=$ac_hdr; break
26614 fi
26615
26616 done
26617 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26618 if test $ac_header_dirent = dirent.h; then
26619   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26621 if test "${ac_cv_search_opendir+set}" = set; then
26622   echo $ECHO_N "(cached) $ECHO_C" >&6
26623 else
26624   ac_func_search_save_LIBS=$LIBS
26625 cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631
26632 /* Override any GCC internal prototype to avoid an error.
26633    Use char because int might match the return type of a GCC
26634    builtin and then its argument prototype would still apply.  */
26635 #ifdef __cplusplus
26636 extern "C"
26637 #endif
26638 char opendir ();
26639 int
26640 main ()
26641 {
26642 return opendir ();
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 for ac_lib in '' dir; do
26648   if test -z "$ac_lib"; then
26649     ac_res="none required"
26650   else
26651     ac_res=-l$ac_lib
26652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26653   fi
26654   rm -f conftest.$ac_objext conftest$ac_exeext
26655 if { (ac_try="$ac_link"
26656 case "(($ac_try" in
26657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658   *) ac_try_echo=$ac_try;;
26659 esac
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661   (eval "$ac_link") 2>conftest.er1
26662   ac_status=$?
26663   grep -v '^ *+' conftest.er1 >conftest.err
26664   rm -f conftest.er1
26665   cat conftest.err >&5
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); } && {
26668          test -z "$ac_c_werror_flag" ||
26669          test ! -s conftest.err
26670        } && test -s conftest$ac_exeext &&
26671        $as_test_x conftest$ac_exeext; then
26672   ac_cv_search_opendir=$ac_res
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677
26678 fi
26679
26680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26681       conftest$ac_exeext
26682   if test "${ac_cv_search_opendir+set}" = set; then
26683   break
26684 fi
26685 done
26686 if test "${ac_cv_search_opendir+set}" = set; then
26687   :
26688 else
26689   ac_cv_search_opendir=no
26690 fi
26691 rm conftest.$ac_ext
26692 LIBS=$ac_func_search_save_LIBS
26693 fi
26694 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26695 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26696 ac_res=$ac_cv_search_opendir
26697 if test "$ac_res" != no; then
26698   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26699
26700 fi
26701
26702 else
26703   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26704 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26705 if test "${ac_cv_search_opendir+set}" = set; then
26706   echo $ECHO_N "(cached) $ECHO_C" >&6
26707 else
26708   ac_func_search_save_LIBS=$LIBS
26709 cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715
26716 /* Override any GCC internal prototype to avoid an error.
26717    Use char because int might match the return type of a GCC
26718    builtin and then its argument prototype would still apply.  */
26719 #ifdef __cplusplus
26720 extern "C"
26721 #endif
26722 char opendir ();
26723 int
26724 main ()
26725 {
26726 return opendir ();
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 for ac_lib in '' x; do
26732   if test -z "$ac_lib"; then
26733     ac_res="none required"
26734   else
26735     ac_res=-l$ac_lib
26736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26737   fi
26738   rm -f conftest.$ac_objext conftest$ac_exeext
26739 if { (ac_try="$ac_link"
26740 case "(($ac_try" in
26741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742   *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745   (eval "$ac_link") 2>conftest.er1
26746   ac_status=$?
26747   grep -v '^ *+' conftest.er1 >conftest.err
26748   rm -f conftest.er1
26749   cat conftest.err >&5
26750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751   (exit $ac_status); } && {
26752          test -z "$ac_c_werror_flag" ||
26753          test ! -s conftest.err
26754        } && test -s conftest$ac_exeext &&
26755        $as_test_x conftest$ac_exeext; then
26756   ac_cv_search_opendir=$ac_res
26757 else
26758   echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26760
26761
26762 fi
26763
26764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26765       conftest$ac_exeext
26766   if test "${ac_cv_search_opendir+set}" = set; then
26767   break
26768 fi
26769 done
26770 if test "${ac_cv_search_opendir+set}" = set; then
26771   :
26772 else
26773   ac_cv_search_opendir=no
26774 fi
26775 rm conftest.$ac_ext
26776 LIBS=$ac_func_search_save_LIBS
26777 fi
26778 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26779 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26780 ac_res=$ac_cv_search_opendir
26781 if test "$ac_res" != no; then
26782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26783
26784 fi
26785
26786 fi
26787
26788 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26789 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26790 if test "${ac_cv_header_mmap_anon+set}" = set; then
26791   echo $ECHO_N "(cached) $ECHO_C" >&6
26792 else
26793    ac_ext=c
26794 ac_cpp='$CPP $CPPFLAGS'
26795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26798
26799   cat >conftest.$ac_ext <<_ACEOF
26800 /* confdefs.h.  */
26801 _ACEOF
26802 cat confdefs.h >>conftest.$ac_ext
26803 cat >>conftest.$ac_ext <<_ACEOF
26804 /* end confdefs.h.  */
26805 #include <sys/mman.h>
26806 #include <unistd.h>
26807 #include <fcntl.h>
26808 int
26809 main ()
26810 {
26811 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26812   ;
26813   return 0;
26814 }
26815 _ACEOF
26816 rm -f conftest.$ac_objext
26817 if { (ac_try="$ac_compile"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_compile") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } && {
26830          test -z "$ac_c_werror_flag" ||
26831          test ! -s conftest.err
26832        } && test -s conftest.$ac_objext; then
26833   ac_cv_header_mmap_anon=yes
26834 else
26835   echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26837
26838         ac_cv_header_mmap_anon=no
26839 fi
26840
26841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26842   ac_ext=c
26843 ac_cpp='$CPP $CPPFLAGS'
26844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26847
26848
26849 fi
26850 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26851 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26852 if test "$ac_cv_header_mmap_anon" = yes; then
26853
26854 cat >>confdefs.h <<\_ACEOF
26855 #define HAVE_MMAP_ANONYMOUS 1
26856 _ACEOF
26857
26858 fi
26859
26860 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26861 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26862 if test "${ac_cv_header_stat_broken+set}" = set; then
26863   echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865   cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871 #include <sys/types.h>
26872 #include <sys/stat.h>
26873
26874 #if defined S_ISBLK && defined S_IFDIR
26875 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26876 #endif
26877
26878 #if defined S_ISBLK && defined S_IFCHR
26879 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26880 #endif
26881
26882 #if defined S_ISLNK && defined S_IFREG
26883 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26884 #endif
26885
26886 #if defined S_ISSOCK && defined S_IFREG
26887 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26888 #endif
26889
26890 _ACEOF
26891 rm -f conftest.$ac_objext
26892 if { (ac_try="$ac_compile"
26893 case "(($ac_try" in
26894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895   *) ac_try_echo=$ac_try;;
26896 esac
26897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898   (eval "$ac_compile") 2>conftest.er1
26899   ac_status=$?
26900   grep -v '^ *+' conftest.er1 >conftest.err
26901   rm -f conftest.er1
26902   cat conftest.err >&5
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } && {
26905          test -z "$ac_c_werror_flag" ||
26906          test ! -s conftest.err
26907        } && test -s conftest.$ac_objext; then
26908   ac_cv_header_stat_broken=no
26909 else
26910   echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26912
26913         ac_cv_header_stat_broken=yes
26914 fi
26915
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 fi
26918 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26919 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26920 if test $ac_cv_header_stat_broken = yes; then
26921
26922 cat >>confdefs.h <<\_ACEOF
26923 #define STAT_MACROS_BROKEN 1
26924 _ACEOF
26925
26926 fi
26927
26928 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26930 if test "${ac_cv_header_stdc+set}" = set; then
26931   echo $ECHO_N "(cached) $ECHO_C" >&6
26932 else
26933   cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939 #include <stdlib.h>
26940 #include <stdarg.h>
26941 #include <string.h>
26942 #include <float.h>
26943
26944 int
26945 main ()
26946 {
26947
26948   ;
26949   return 0;
26950 }
26951 _ACEOF
26952 rm -f conftest.$ac_objext
26953 if { (ac_try="$ac_compile"
26954 case "(($ac_try" in
26955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956   *) ac_try_echo=$ac_try;;
26957 esac
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959   (eval "$ac_compile") 2>conftest.er1
26960   ac_status=$?
26961   grep -v '^ *+' conftest.er1 >conftest.err
26962   rm -f conftest.er1
26963   cat conftest.err >&5
26964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965   (exit $ac_status); } && {
26966          test -z "$ac_c_werror_flag" ||
26967          test ! -s conftest.err
26968        } && test -s conftest.$ac_objext; then
26969   ac_cv_header_stdc=yes
26970 else
26971   echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26973
26974         ac_cv_header_stdc=no
26975 fi
26976
26977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26978
26979 if test $ac_cv_header_stdc = yes; then
26980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26981   cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h.  */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h.  */
26987 #include <string.h>
26988
26989 _ACEOF
26990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26991   $EGREP "memchr" >/dev/null 2>&1; then
26992   :
26993 else
26994   ac_cv_header_stdc=no
26995 fi
26996 rm -f conftest*
26997
26998 fi
26999
27000 if test $ac_cv_header_stdc = yes; then
27001   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27002   cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 #include <stdlib.h>
27009
27010 _ACEOF
27011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27012   $EGREP "free" >/dev/null 2>&1; then
27013   :
27014 else
27015   ac_cv_header_stdc=no
27016 fi
27017 rm -f conftest*
27018
27019 fi
27020
27021 if test $ac_cv_header_stdc = yes; then
27022   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27023   if test "$cross_compiling" = yes; then
27024   :
27025 else
27026   cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032 #include <ctype.h>
27033 #include <stdlib.h>
27034 #if ((' ' & 0x0FF) == 0x020)
27035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27037 #else
27038 # define ISLOWER(c) \
27039                    (('a' <= (c) && (c) <= 'i') \
27040                      || ('j' <= (c) && (c) <= 'r') \
27041                      || ('s' <= (c) && (c) <= 'z'))
27042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27043 #endif
27044
27045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27046 int
27047 main ()
27048 {
27049   int i;
27050   for (i = 0; i < 256; i++)
27051     if (XOR (islower (i), ISLOWER (i))
27052         || toupper (i) != TOUPPER (i))
27053       return 2;
27054   return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest$ac_exeext
27058 if { (ac_try="$ac_link"
27059 case "(($ac_try" in
27060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061   *) ac_try_echo=$ac_try;;
27062 esac
27063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064   (eval "$ac_link") 2>&5
27065   ac_status=$?
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27068   { (case "(($ac_try" in
27069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070   *) ac_try_echo=$ac_try;;
27071 esac
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073   (eval "$ac_try") 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   :
27078 else
27079   echo "$as_me: program exited with status $ac_status" >&5
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27082
27083 ( exit $ac_status )
27084 ac_cv_header_stdc=no
27085 fi
27086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27087 fi
27088
27089
27090 fi
27091 fi
27092 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27093 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27094 if test $ac_cv_header_stdc = yes; then
27095
27096 cat >>confdefs.h <<\_ACEOF
27097 #define STDC_HEADERS 1
27098 _ACEOF
27099
27100 fi
27101
27102 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27103 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27104 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27105   echo $ECHO_N "(cached) $ECHO_C" >&6
27106 else
27107   cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 #include <sys/types.h>
27114 #include <sys/wait.h>
27115 #ifndef WEXITSTATUS
27116 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27117 #endif
27118 #ifndef WIFEXITED
27119 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27120 #endif
27121
27122 int
27123 main ()
27124 {
27125   int s;
27126   wait (&s);
27127   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (ac_try="$ac_compile"
27134 case "(($ac_try" in
27135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136   *) ac_try_echo=$ac_try;;
27137 esac
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139   (eval "$ac_compile") 2>conftest.er1
27140   ac_status=$?
27141   grep -v '^ *+' conftest.er1 >conftest.err
27142   rm -f conftest.er1
27143   cat conftest.err >&5
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); } && {
27146          test -z "$ac_c_werror_flag" ||
27147          test ! -s conftest.err
27148        } && test -s conftest.$ac_objext; then
27149   ac_cv_header_sys_wait_h=yes
27150 else
27151   echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27153
27154         ac_cv_header_sys_wait_h=no
27155 fi
27156
27157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27158 fi
27159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27161 if test $ac_cv_header_sys_wait_h = yes; then
27162
27163 cat >>confdefs.h <<\_ACEOF
27164 #define HAVE_SYS_WAIT_H 1
27165 _ACEOF
27166
27167 fi
27168
27169 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27170 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27171 if test "${ac_cv_header_time+set}" = set; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180 #include <sys/types.h>
27181 #include <sys/time.h>
27182 #include <time.h>
27183
27184 int
27185 main ()
27186 {
27187 if ((struct tm *) 0)
27188 return 0;
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_compile") 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } && {
27207          test -z "$ac_c_werror_flag" ||
27208          test ! -s conftest.err
27209        } && test -s conftest.$ac_objext; then
27210   ac_cv_header_time=yes
27211 else
27212   echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27214
27215         ac_cv_header_time=no
27216 fi
27217
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27219 fi
27220 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27221 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27222 if test $ac_cv_header_time = yes; then
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define TIME_WITH_SYS_TIME 1
27226 _ACEOF
27227
27228 fi
27229
27230
27231
27232
27233
27234
27235
27236
27237 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27238 do
27239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27241   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27244   echo $ECHO_N "(cached) $ECHO_C" >&6
27245 fi
27246 ac_res=`eval echo '${'$as_ac_Header'}'`
27247                { echo "$as_me:$LINENO: result: $ac_res" >&5
27248 echo "${ECHO_T}$ac_res" >&6; }
27249 else
27250   # Is the header compilable?
27251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27253 cat >conftest.$ac_ext <<_ACEOF
27254 /* confdefs.h.  */
27255 _ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h.  */
27259 $ac_includes_default
27260 #include <$ac_header>
27261 _ACEOF
27262 rm -f conftest.$ac_objext
27263 if { (ac_try="$ac_compile"
27264 case "(($ac_try" in
27265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27266   *) ac_try_echo=$ac_try;;
27267 esac
27268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27269   (eval "$ac_compile") 2>conftest.er1
27270   ac_status=$?
27271   grep -v '^ *+' conftest.er1 >conftest.err
27272   rm -f conftest.er1
27273   cat conftest.err >&5
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); } && {
27276          test -z "$ac_c_werror_flag" ||
27277          test ! -s conftest.err
27278        } && test -s conftest.$ac_objext; then
27279   ac_header_compiler=yes
27280 else
27281   echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27283
27284         ac_header_compiler=no
27285 fi
27286
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27289 echo "${ECHO_T}$ac_header_compiler" >&6; }
27290
27291 # Is the header present?
27292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27294 cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300 #include <$ac_header>
27301 _ACEOF
27302 if { (ac_try="$ac_cpp conftest.$ac_ext"
27303 case "(($ac_try" in
27304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305   *) ac_try_echo=$ac_try;;
27306 esac
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27309   ac_status=$?
27310   grep -v '^ *+' conftest.er1 >conftest.err
27311   rm -f conftest.er1
27312   cat conftest.err >&5
27313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314   (exit $ac_status); } >/dev/null && {
27315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27316          test ! -s conftest.err
27317        }; then
27318   ac_header_preproc=yes
27319 else
27320   echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27322
27323   ac_header_preproc=no
27324 fi
27325
27326 rm -f conftest.err conftest.$ac_ext
27327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27328 echo "${ECHO_T}$ac_header_preproc" >&6; }
27329
27330 # So?  What about this header?
27331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27332   yes:no: )
27333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27337     ac_header_preproc=yes
27338     ;;
27339   no:yes:* )
27340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27352     ( cat <<\_ASBOX
27353 ## ----------------------------------- ##
27354 ## Report this to llvmbugs@cs.uiuc.edu ##
27355 ## ----------------------------------- ##
27356 _ASBOX
27357      ) | sed "s/^/$as_me: WARNING:     /" >&2
27358     ;;
27359 esac
27360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27363   echo $ECHO_N "(cached) $ECHO_C" >&6
27364 else
27365   eval "$as_ac_Header=\$ac_header_preproc"
27366 fi
27367 ac_res=`eval echo '${'$as_ac_Header'}'`
27368                { echo "$as_me:$LINENO: result: $ac_res" >&5
27369 echo "${ECHO_T}$ac_res" >&6; }
27370
27371 fi
27372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27373   cat >>confdefs.h <<_ACEOF
27374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27375 _ACEOF
27376
27377 fi
27378
27379 done
27380
27381
27382
27383
27384
27385
27386
27387 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27388 do
27389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27391   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27394   echo $ECHO_N "(cached) $ECHO_C" >&6
27395 fi
27396 ac_res=`eval echo '${'$as_ac_Header'}'`
27397                { echo "$as_me:$LINENO: result: $ac_res" >&5
27398 echo "${ECHO_T}$ac_res" >&6; }
27399 else
27400   # Is the header compilable?
27401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27403 cat >conftest.$ac_ext <<_ACEOF
27404 /* confdefs.h.  */
27405 _ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h.  */
27409 $ac_includes_default
27410 #include <$ac_header>
27411 _ACEOF
27412 rm -f conftest.$ac_objext
27413 if { (ac_try="$ac_compile"
27414 case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419   (eval "$ac_compile") 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } && {
27426          test -z "$ac_c_werror_flag" ||
27427          test ! -s conftest.err
27428        } && test -s conftest.$ac_objext; then
27429   ac_header_compiler=yes
27430 else
27431   echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434         ac_header_compiler=no
27435 fi
27436
27437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27439 echo "${ECHO_T}$ac_header_compiler" >&6; }
27440
27441 # Is the header present?
27442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27444 cat >conftest.$ac_ext <<_ACEOF
27445 /* confdefs.h.  */
27446 _ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h.  */
27450 #include <$ac_header>
27451 _ACEOF
27452 if { (ac_try="$ac_cpp conftest.$ac_ext"
27453 case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27459   ac_status=$?
27460   grep -v '^ *+' conftest.er1 >conftest.err
27461   rm -f conftest.er1
27462   cat conftest.err >&5
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); } >/dev/null && {
27465          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27466          test ! -s conftest.err
27467        }; then
27468   ac_header_preproc=yes
27469 else
27470   echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27472
27473   ac_header_preproc=no
27474 fi
27475
27476 rm -f conftest.err conftest.$ac_ext
27477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27478 echo "${ECHO_T}$ac_header_preproc" >&6; }
27479
27480 # So?  What about this header?
27481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27482   yes:no: )
27483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27487     ac_header_preproc=yes
27488     ;;
27489   no:yes:* )
27490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27502     ( cat <<\_ASBOX
27503 ## ----------------------------------- ##
27504 ## Report this to llvmbugs@cs.uiuc.edu ##
27505 ## ----------------------------------- ##
27506 _ASBOX
27507      ) | sed "s/^/$as_me: WARNING:     /" >&2
27508     ;;
27509 esac
27510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27513   echo $ECHO_N "(cached) $ECHO_C" >&6
27514 else
27515   eval "$as_ac_Header=\$ac_header_preproc"
27516 fi
27517 ac_res=`eval echo '${'$as_ac_Header'}'`
27518                { echo "$as_me:$LINENO: result: $ac_res" >&5
27519 echo "${ECHO_T}$ac_res" >&6; }
27520
27521 fi
27522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27523   cat >>confdefs.h <<_ACEOF
27524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27525 _ACEOF
27526
27527 fi
27528
27529 done
27530
27531
27532 for ac_header in windows.h
27533 do
27534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27536   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27539   echo $ECHO_N "(cached) $ECHO_C" >&6
27540 fi
27541 ac_res=`eval echo '${'$as_ac_Header'}'`
27542                { echo "$as_me:$LINENO: result: $ac_res" >&5
27543 echo "${ECHO_T}$ac_res" >&6; }
27544 else
27545   # Is the header compilable?
27546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27548 cat >conftest.$ac_ext <<_ACEOF
27549 /* confdefs.h.  */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h.  */
27554 $ac_includes_default
27555 #include <$ac_header>
27556 _ACEOF
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_compile") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } && {
27571          test -z "$ac_c_werror_flag" ||
27572          test ! -s conftest.err
27573        } && test -s conftest.$ac_objext; then
27574   ac_header_compiler=yes
27575 else
27576   echo "$as_me: failed program was:" >&5
27577 sed 's/^/| /' conftest.$ac_ext >&5
27578
27579         ac_header_compiler=no
27580 fi
27581
27582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27584 echo "${ECHO_T}$ac_header_compiler" >&6; }
27585
27586 # Is the header present?
27587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27589 cat >conftest.$ac_ext <<_ACEOF
27590 /* confdefs.h.  */
27591 _ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h.  */
27595 #include <$ac_header>
27596 _ACEOF
27597 if { (ac_try="$ac_cpp conftest.$ac_ext"
27598 case "(($ac_try" in
27599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600   *) ac_try_echo=$ac_try;;
27601 esac
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27604   ac_status=$?
27605   grep -v '^ *+' conftest.er1 >conftest.err
27606   rm -f conftest.er1
27607   cat conftest.err >&5
27608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609   (exit $ac_status); } >/dev/null && {
27610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27611          test ! -s conftest.err
27612        }; then
27613   ac_header_preproc=yes
27614 else
27615   echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618   ac_header_preproc=no
27619 fi
27620
27621 rm -f conftest.err conftest.$ac_ext
27622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27623 echo "${ECHO_T}$ac_header_preproc" >&6; }
27624
27625 # So?  What about this header?
27626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27627   yes:no: )
27628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27632     ac_header_preproc=yes
27633     ;;
27634   no:yes:* )
27635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27647     ( cat <<\_ASBOX
27648 ## ----------------------------------- ##
27649 ## Report this to llvmbugs@cs.uiuc.edu ##
27650 ## ----------------------------------- ##
27651 _ASBOX
27652      ) | sed "s/^/$as_me: WARNING:     /" >&2
27653     ;;
27654 esac
27655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27658   echo $ECHO_N "(cached) $ECHO_C" >&6
27659 else
27660   eval "$as_ac_Header=\$ac_header_preproc"
27661 fi
27662 ac_res=`eval echo '${'$as_ac_Header'}'`
27663                { echo "$as_me:$LINENO: result: $ac_res" >&5
27664 echo "${ECHO_T}$ac_res" >&6; }
27665
27666 fi
27667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27668   cat >>confdefs.h <<_ACEOF
27669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27670 _ACEOF
27671
27672 fi
27673
27674 done
27675
27676
27677
27678
27679
27680 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27681 do
27682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27684   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 fi
27689 ac_res=`eval echo '${'$as_ac_Header'}'`
27690                { echo "$as_me:$LINENO: result: $ac_res" >&5
27691 echo "${ECHO_T}$ac_res" >&6; }
27692 else
27693   # Is the header compilable?
27694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27696 cat >conftest.$ac_ext <<_ACEOF
27697 /* confdefs.h.  */
27698 _ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h.  */
27702 $ac_includes_default
27703 #include <$ac_header>
27704 _ACEOF
27705 rm -f conftest.$ac_objext
27706 if { (ac_try="$ac_compile"
27707 case "(($ac_try" in
27708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709   *) ac_try_echo=$ac_try;;
27710 esac
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712   (eval "$ac_compile") 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } && {
27719          test -z "$ac_c_werror_flag" ||
27720          test ! -s conftest.err
27721        } && test -s conftest.$ac_objext; then
27722   ac_header_compiler=yes
27723 else
27724   echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27726
27727         ac_header_compiler=no
27728 fi
27729
27730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27732 echo "${ECHO_T}$ac_header_compiler" >&6; }
27733
27734 # Is the header present?
27735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27737 cat >conftest.$ac_ext <<_ACEOF
27738 /* confdefs.h.  */
27739 _ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h.  */
27743 #include <$ac_header>
27744 _ACEOF
27745 if { (ac_try="$ac_cpp conftest.$ac_ext"
27746 case "(($ac_try" in
27747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748   *) ac_try_echo=$ac_try;;
27749 esac
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27752   ac_status=$?
27753   grep -v '^ *+' conftest.er1 >conftest.err
27754   rm -f conftest.er1
27755   cat conftest.err >&5
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); } >/dev/null && {
27758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27759          test ! -s conftest.err
27760        }; then
27761   ac_header_preproc=yes
27762 else
27763   echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27765
27766   ac_header_preproc=no
27767 fi
27768
27769 rm -f conftest.err conftest.$ac_ext
27770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27771 echo "${ECHO_T}$ac_header_preproc" >&6; }
27772
27773 # So?  What about this header?
27774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27775   yes:no: )
27776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27780     ac_header_preproc=yes
27781     ;;
27782   no:yes:* )
27783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27795     ( cat <<\_ASBOX
27796 ## ----------------------------------- ##
27797 ## Report this to llvmbugs@cs.uiuc.edu ##
27798 ## ----------------------------------- ##
27799 _ASBOX
27800      ) | sed "s/^/$as_me: WARNING:     /" >&2
27801     ;;
27802 esac
27803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808   eval "$as_ac_Header=\$ac_header_preproc"
27809 fi
27810 ac_res=`eval echo '${'$as_ac_Header'}'`
27811                { echo "$as_me:$LINENO: result: $ac_res" >&5
27812 echo "${ECHO_T}$ac_res" >&6; }
27813
27814 fi
27815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27816   cat >>confdefs.h <<_ACEOF
27817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27818 _ACEOF
27819
27820 fi
27821
27822 done
27823
27824
27825
27826
27827 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27828 do
27829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27834   echo $ECHO_N "(cached) $ECHO_C" >&6
27835 fi
27836 ac_res=`eval echo '${'$as_ac_Header'}'`
27837                { echo "$as_me:$LINENO: result: $ac_res" >&5
27838 echo "${ECHO_T}$ac_res" >&6; }
27839 else
27840   # Is the header compilable?
27841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27843 cat >conftest.$ac_ext <<_ACEOF
27844 /* confdefs.h.  */
27845 _ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h.  */
27849 $ac_includes_default
27850 #include <$ac_header>
27851 _ACEOF
27852 rm -f conftest.$ac_objext
27853 if { (ac_try="$ac_compile"
27854 case "(($ac_try" in
27855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856   *) ac_try_echo=$ac_try;;
27857 esac
27858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859   (eval "$ac_compile") 2>conftest.er1
27860   ac_status=$?
27861   grep -v '^ *+' conftest.er1 >conftest.err
27862   rm -f conftest.er1
27863   cat conftest.err >&5
27864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865   (exit $ac_status); } && {
27866          test -z "$ac_c_werror_flag" ||
27867          test ! -s conftest.err
27868        } && test -s conftest.$ac_objext; then
27869   ac_header_compiler=yes
27870 else
27871   echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874         ac_header_compiler=no
27875 fi
27876
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27879 echo "${ECHO_T}$ac_header_compiler" >&6; }
27880
27881 # Is the header present?
27882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27884 cat >conftest.$ac_ext <<_ACEOF
27885 /* confdefs.h.  */
27886 _ACEOF
27887 cat confdefs.h >>conftest.$ac_ext
27888 cat >>conftest.$ac_ext <<_ACEOF
27889 /* end confdefs.h.  */
27890 #include <$ac_header>
27891 _ACEOF
27892 if { (ac_try="$ac_cpp conftest.$ac_ext"
27893 case "(($ac_try" in
27894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895   *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27899   ac_status=$?
27900   grep -v '^ *+' conftest.er1 >conftest.err
27901   rm -f conftest.er1
27902   cat conftest.err >&5
27903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904   (exit $ac_status); } >/dev/null && {
27905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27906          test ! -s conftest.err
27907        }; then
27908   ac_header_preproc=yes
27909 else
27910   echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27912
27913   ac_header_preproc=no
27914 fi
27915
27916 rm -f conftest.err conftest.$ac_ext
27917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27918 echo "${ECHO_T}$ac_header_preproc" >&6; }
27919
27920 # So?  What about this header?
27921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27922   yes:no: )
27923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27927     ac_header_preproc=yes
27928     ;;
27929   no:yes:* )
27930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27942     ( cat <<\_ASBOX
27943 ## ----------------------------------- ##
27944 ## Report this to llvmbugs@cs.uiuc.edu ##
27945 ## ----------------------------------- ##
27946 _ASBOX
27947      ) | sed "s/^/$as_me: WARNING:     /" >&2
27948     ;;
27949 esac
27950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27953   echo $ECHO_N "(cached) $ECHO_C" >&6
27954 else
27955   eval "$as_ac_Header=\$ac_header_preproc"
27956 fi
27957 ac_res=`eval echo '${'$as_ac_Header'}'`
27958                { echo "$as_me:$LINENO: result: $ac_res" >&5
27959 echo "${ECHO_T}$ac_res" >&6; }
27960
27961 fi
27962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27963   cat >>confdefs.h <<_ACEOF
27964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27965 _ACEOF
27966
27967 fi
27968
27969 done
27970
27971 if test "$ENABLE_THREADS" -eq 1 ; then
27972
27973 for ac_header in pthread.h
27974 do
27975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27977   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27980   echo $ECHO_N "(cached) $ECHO_C" >&6
27981 fi
27982 ac_res=`eval echo '${'$as_ac_Header'}'`
27983                { echo "$as_me:$LINENO: result: $ac_res" >&5
27984 echo "${ECHO_T}$ac_res" >&6; }
27985 else
27986   # Is the header compilable?
27987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995 $ac_includes_default
27996 #include <$ac_header>
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002   *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005   (eval "$ac_compile") 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } && {
28012          test -z "$ac_c_werror_flag" ||
28013          test ! -s conftest.err
28014        } && test -s conftest.$ac_objext; then
28015   ac_header_compiler=yes
28016 else
28017   echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28019
28020         ac_header_compiler=no
28021 fi
28022
28023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28025 echo "${ECHO_T}$ac_header_compiler" >&6; }
28026
28027 # Is the header present?
28028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28030 cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036 #include <$ac_header>
28037 _ACEOF
28038 if { (ac_try="$ac_cpp conftest.$ac_ext"
28039 case "(($ac_try" in
28040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041   *) ac_try_echo=$ac_try;;
28042 esac
28043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28045   ac_status=$?
28046   grep -v '^ *+' conftest.er1 >conftest.err
28047   rm -f conftest.er1
28048   cat conftest.err >&5
28049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050   (exit $ac_status); } >/dev/null && {
28051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28052          test ! -s conftest.err
28053        }; then
28054   ac_header_preproc=yes
28055 else
28056   echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28058
28059   ac_header_preproc=no
28060 fi
28061
28062 rm -f conftest.err conftest.$ac_ext
28063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28064 echo "${ECHO_T}$ac_header_preproc" >&6; }
28065
28066 # So?  What about this header?
28067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28068   yes:no: )
28069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28073     ac_header_preproc=yes
28074     ;;
28075   no:yes:* )
28076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28088     ( cat <<\_ASBOX
28089 ## ----------------------------------- ##
28090 ## Report this to llvmbugs@cs.uiuc.edu ##
28091 ## ----------------------------------- ##
28092 _ASBOX
28093      ) | sed "s/^/$as_me: WARNING:     /" >&2
28094     ;;
28095 esac
28096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28099   echo $ECHO_N "(cached) $ECHO_C" >&6
28100 else
28101   eval "$as_ac_Header=\$ac_header_preproc"
28102 fi
28103 ac_res=`eval echo '${'$as_ac_Header'}'`
28104                { echo "$as_me:$LINENO: result: $ac_res" >&5
28105 echo "${ECHO_T}$ac_res" >&6; }
28106
28107 fi
28108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28109   cat >>confdefs.h <<_ACEOF
28110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28111 _ACEOF
28112  HAVE_PTHREAD=1
28113
28114 else
28115   HAVE_PTHREAD=0
28116
28117 fi
28118
28119 done
28120
28121 else
28122   HAVE_PTHREAD=0
28123
28124 fi
28125
28126
28127
28128   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28129 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28130 if test "${ac_cv_huge_val_sanity+set}" = set; then
28131   echo $ECHO_N "(cached) $ECHO_C" >&6
28132 else
28133
28134     ac_ext=cpp
28135 ac_cpp='$CXXCPP $CPPFLAGS'
28136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28139
28140     CXXFLAGS=-pedantic
28141     if test "$cross_compiling" = yes; then
28142   ac_cv_huge_val_sanity=yes
28143 else
28144   cat >conftest.$ac_ext <<_ACEOF
28145 /* confdefs.h.  */
28146 _ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h.  */
28150 #include <math.h>
28151 int
28152 main ()
28153 {
28154 double x = HUGE_VAL; return x != x;
28155   ;
28156   return 0;
28157 }
28158 _ACEOF
28159 rm -f conftest$ac_exeext
28160 if { (ac_try="$ac_link"
28161 case "(($ac_try" in
28162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163   *) ac_try_echo=$ac_try;;
28164 esac
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166   (eval "$ac_link") 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28170   { (case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175   (eval "$ac_try") 2>&5
28176   ac_status=$?
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); }; }; then
28179   ac_cv_huge_val_sanity=yes
28180 else
28181   echo "$as_me: program exited with status $ac_status" >&5
28182 echo "$as_me: failed program was:" >&5
28183 sed 's/^/| /' conftest.$ac_ext >&5
28184
28185 ( exit $ac_status )
28186 ac_cv_huge_val_sanity=no
28187 fi
28188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28189 fi
28190
28191
28192     ac_ext=c
28193 ac_cpp='$CPP $CPPFLAGS'
28194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28197
28198
28199 fi
28200 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28201 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28202   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28203
28204
28205 { echo "$as_me:$LINENO: checking for pid_t" >&5
28206 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28207 if test "${ac_cv_type_pid_t+set}" = set; then
28208   echo $ECHO_N "(cached) $ECHO_C" >&6
28209 else
28210   cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216 $ac_includes_default
28217 typedef pid_t ac__type_new_;
28218 int
28219 main ()
28220 {
28221 if ((ac__type_new_ *) 0)
28222   return 0;
28223 if (sizeof (ac__type_new_))
28224   return 0;
28225   ;
28226   return 0;
28227 }
28228 _ACEOF
28229 rm -f conftest.$ac_objext
28230 if { (ac_try="$ac_compile"
28231 case "(($ac_try" in
28232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233   *) ac_try_echo=$ac_try;;
28234 esac
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236   (eval "$ac_compile") 2>conftest.er1
28237   ac_status=$?
28238   grep -v '^ *+' conftest.er1 >conftest.err
28239   rm -f conftest.er1
28240   cat conftest.err >&5
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); } && {
28243          test -z "$ac_c_werror_flag" ||
28244          test ! -s conftest.err
28245        } && test -s conftest.$ac_objext; then
28246   ac_cv_type_pid_t=yes
28247 else
28248   echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251         ac_cv_type_pid_t=no
28252 fi
28253
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255 fi
28256 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28258 if test $ac_cv_type_pid_t = yes; then
28259   :
28260 else
28261
28262 cat >>confdefs.h <<_ACEOF
28263 #define pid_t int
28264 _ACEOF
28265
28266 fi
28267
28268 { echo "$as_me:$LINENO: checking for size_t" >&5
28269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28270 if test "${ac_cv_type_size_t+set}" = set; then
28271   echo $ECHO_N "(cached) $ECHO_C" >&6
28272 else
28273   cat >conftest.$ac_ext <<_ACEOF
28274 /* confdefs.h.  */
28275 _ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h.  */
28279 $ac_includes_default
28280 typedef size_t ac__type_new_;
28281 int
28282 main ()
28283 {
28284 if ((ac__type_new_ *) 0)
28285   return 0;
28286 if (sizeof (ac__type_new_))
28287   return 0;
28288   ;
28289   return 0;
28290 }
28291 _ACEOF
28292 rm -f conftest.$ac_objext
28293 if { (ac_try="$ac_compile"
28294 case "(($ac_try" in
28295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296   *) ac_try_echo=$ac_try;;
28297 esac
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299   (eval "$ac_compile") 2>conftest.er1
28300   ac_status=$?
28301   grep -v '^ *+' conftest.er1 >conftest.err
28302   rm -f conftest.er1
28303   cat conftest.err >&5
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); } && {
28306          test -z "$ac_c_werror_flag" ||
28307          test ! -s conftest.err
28308        } && test -s conftest.$ac_objext; then
28309   ac_cv_type_size_t=yes
28310 else
28311   echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28313
28314         ac_cv_type_size_t=no
28315 fi
28316
28317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28318 fi
28319 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28320 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28321 if test $ac_cv_type_size_t = yes; then
28322   :
28323 else
28324
28325 cat >>confdefs.h <<_ACEOF
28326 #define size_t unsigned int
28327 _ACEOF
28328
28329 fi
28330
28331 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28332 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28333 if test "${ac_cv_type_signal+set}" = set; then
28334   echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336   cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h.  */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h.  */
28342 #include <sys/types.h>
28343 #include <signal.h>
28344
28345 int
28346 main ()
28347 {
28348 return *(signal (0, 0)) (0) == 1;
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357   *) ac_try_echo=$ac_try;;
28358 esac
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360   (eval "$ac_compile") 2>conftest.er1
28361   ac_status=$?
28362   grep -v '^ *+' conftest.er1 >conftest.err
28363   rm -f conftest.er1
28364   cat conftest.err >&5
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); } && {
28367          test -z "$ac_c_werror_flag" ||
28368          test ! -s conftest.err
28369        } && test -s conftest.$ac_objext; then
28370   ac_cv_type_signal=int
28371 else
28372   echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375         ac_cv_type_signal=void
28376 fi
28377
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28379 fi
28380 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28381 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28382
28383 cat >>confdefs.h <<_ACEOF
28384 #define RETSIGTYPE $ac_cv_type_signal
28385 _ACEOF
28386
28387
28388 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28389 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28390 if test "${ac_cv_struct_tm+set}" = set; then
28391   echo $ECHO_N "(cached) $ECHO_C" >&6
28392 else
28393   cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399 #include <sys/types.h>
28400 #include <time.h>
28401
28402 int
28403 main ()
28404 {
28405 struct tm tm;
28406                                      int *p = &tm.tm_sec;
28407                                      return !p;
28408   ;
28409   return 0;
28410 }
28411 _ACEOF
28412 rm -f conftest.$ac_objext
28413 if { (ac_try="$ac_compile"
28414 case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_compile") 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } && {
28426          test -z "$ac_c_werror_flag" ||
28427          test ! -s conftest.err
28428        } && test -s conftest.$ac_objext; then
28429   ac_cv_struct_tm=time.h
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         ac_cv_struct_tm=sys/time.h
28435 fi
28436
28437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28438 fi
28439 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28440 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28441 if test $ac_cv_struct_tm = sys/time.h; then
28442
28443 cat >>confdefs.h <<\_ACEOF
28444 #define TM_IN_SYS_TIME 1
28445 _ACEOF
28446
28447 fi
28448
28449 { echo "$as_me:$LINENO: checking for int64_t" >&5
28450 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28451 if test "${ac_cv_type_int64_t+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454   cat >conftest.$ac_ext <<_ACEOF
28455 /* confdefs.h.  */
28456 _ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h.  */
28460 $ac_includes_default
28461 typedef int64_t ac__type_new_;
28462 int
28463 main ()
28464 {
28465 if ((ac__type_new_ *) 0)
28466   return 0;
28467 if (sizeof (ac__type_new_))
28468   return 0;
28469   ;
28470   return 0;
28471 }
28472 _ACEOF
28473 rm -f conftest.$ac_objext
28474 if { (ac_try="$ac_compile"
28475 case "(($ac_try" in
28476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477   *) ac_try_echo=$ac_try;;
28478 esac
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480   (eval "$ac_compile") 2>conftest.er1
28481   ac_status=$?
28482   grep -v '^ *+' conftest.er1 >conftest.err
28483   rm -f conftest.er1
28484   cat conftest.err >&5
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); } && {
28487          test -z "$ac_c_werror_flag" ||
28488          test ! -s conftest.err
28489        } && test -s conftest.$ac_objext; then
28490   ac_cv_type_int64_t=yes
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495         ac_cv_type_int64_t=no
28496 fi
28497
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499 fi
28500 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28501 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28502 if test $ac_cv_type_int64_t = yes; then
28503
28504 cat >>confdefs.h <<_ACEOF
28505 #define HAVE_INT64_T 1
28506 _ACEOF
28507
28508
28509 else
28510   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28511 echo "$as_me: error: Type int64_t required but not found" >&2;}
28512    { (exit 1); exit 1; }; }
28513 fi
28514
28515 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28516 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28517 if test "${ac_cv_type_uint64_t+set}" = set; then
28518   echo $ECHO_N "(cached) $ECHO_C" >&6
28519 else
28520   cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526 $ac_includes_default
28527 typedef uint64_t ac__type_new_;
28528 int
28529 main ()
28530 {
28531 if ((ac__type_new_ *) 0)
28532   return 0;
28533 if (sizeof (ac__type_new_))
28534   return 0;
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_compile") 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } && {
28553          test -z "$ac_c_werror_flag" ||
28554          test ! -s conftest.err
28555        } && test -s conftest.$ac_objext; then
28556   ac_cv_type_uint64_t=yes
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561         ac_cv_type_uint64_t=no
28562 fi
28563
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 fi
28566 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28567 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28568 if test $ac_cv_type_uint64_t = yes; then
28569
28570 cat >>confdefs.h <<_ACEOF
28571 #define HAVE_UINT64_T 1
28572 _ACEOF
28573
28574
28575 else
28576   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28577 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28578 if test "${ac_cv_type_u_int64_t+set}" = set; then
28579   echo $ECHO_N "(cached) $ECHO_C" >&6
28580 else
28581   cat >conftest.$ac_ext <<_ACEOF
28582 /* confdefs.h.  */
28583 _ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h.  */
28587 $ac_includes_default
28588 typedef u_int64_t ac__type_new_;
28589 int
28590 main ()
28591 {
28592 if ((ac__type_new_ *) 0)
28593   return 0;
28594 if (sizeof (ac__type_new_))
28595   return 0;
28596   ;
28597   return 0;
28598 }
28599 _ACEOF
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607   (eval "$ac_compile") 2>conftest.er1
28608   ac_status=$?
28609   grep -v '^ *+' conftest.er1 >conftest.err
28610   rm -f conftest.er1
28611   cat conftest.err >&5
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); } && {
28614          test -z "$ac_c_werror_flag" ||
28615          test ! -s conftest.err
28616        } && test -s conftest.$ac_objext; then
28617   ac_cv_type_u_int64_t=yes
28618 else
28619   echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28621
28622         ac_cv_type_u_int64_t=no
28623 fi
28624
28625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28626 fi
28627 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28628 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28629 if test $ac_cv_type_u_int64_t = yes; then
28630
28631 cat >>confdefs.h <<_ACEOF
28632 #define HAVE_U_INT64_T 1
28633 _ACEOF
28634
28635
28636 else
28637   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28638 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28639    { (exit 1); exit 1; }; }
28640 fi
28641
28642 fi
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28654 do
28655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661   cat >conftest.$ac_ext <<_ACEOF
28662 /* confdefs.h.  */
28663 _ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h.  */
28667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28669 #define $ac_func innocuous_$ac_func
28670
28671 /* System header to define __stub macros and hopefully few prototypes,
28672     which can conflict with char $ac_func (); below.
28673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28674     <limits.h> exists even on freestanding compilers.  */
28675
28676 #ifdef __STDC__
28677 # include <limits.h>
28678 #else
28679 # include <assert.h>
28680 #endif
28681
28682 #undef $ac_func
28683
28684 /* Override any GCC internal prototype to avoid an error.
28685    Use char because int might match the return type of a GCC
28686    builtin and then its argument prototype would still apply.  */
28687 #ifdef __cplusplus
28688 extern "C"
28689 #endif
28690 char $ac_func ();
28691 /* The GNU C library defines this for functions which it implements
28692     to always fail with ENOSYS.  Some functions are actually named
28693     something starting with __ and the normal name is an alias.  */
28694 #if defined __stub_$ac_func || defined __stub___$ac_func
28695 choke me
28696 #endif
28697
28698 int
28699 main ()
28700 {
28701 return $ac_func ();
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (ac_try="$ac_link"
28708 case "(($ac_try" in
28709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710   *) ac_try_echo=$ac_try;;
28711 esac
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713   (eval "$ac_link") 2>conftest.er1
28714   ac_status=$?
28715   grep -v '^ *+' conftest.er1 >conftest.err
28716   rm -f conftest.er1
28717   cat conftest.err >&5
28718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719   (exit $ac_status); } && {
28720          test -z "$ac_c_werror_flag" ||
28721          test ! -s conftest.err
28722        } && test -s conftest$ac_exeext &&
28723        $as_test_x conftest$ac_exeext; then
28724   eval "$as_ac_var=yes"
28725 else
28726   echo "$as_me: failed program was:" >&5
28727 sed 's/^/| /' conftest.$ac_ext >&5
28728
28729         eval "$as_ac_var=no"
28730 fi
28731
28732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28733       conftest$ac_exeext conftest.$ac_ext
28734 fi
28735 ac_res=`eval echo '${'$as_ac_var'}'`
28736                { echo "$as_me:$LINENO: result: $ac_res" >&5
28737 echo "${ECHO_T}$ac_res" >&6; }
28738 if test `eval echo '${'$as_ac_var'}'` = yes; then
28739   cat >>confdefs.h <<_ACEOF
28740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28741 _ACEOF
28742
28743 fi
28744 done
28745
28746
28747
28748
28749
28750 for ac_func in powf fmodf strtof round
28751 do
28752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28756   echo $ECHO_N "(cached) $ECHO_C" >&6
28757 else
28758   cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28766 #define $ac_func innocuous_$ac_func
28767
28768 /* System header to define __stub macros and hopefully few prototypes,
28769     which can conflict with char $ac_func (); below.
28770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28771     <limits.h> exists even on freestanding compilers.  */
28772
28773 #ifdef __STDC__
28774 # include <limits.h>
28775 #else
28776 # include <assert.h>
28777 #endif
28778
28779 #undef $ac_func
28780
28781 /* Override any GCC internal prototype to avoid an error.
28782    Use char because int might match the return type of a GCC
28783    builtin and then its argument prototype would still apply.  */
28784 #ifdef __cplusplus
28785 extern "C"
28786 #endif
28787 char $ac_func ();
28788 /* The GNU C library defines this for functions which it implements
28789     to always fail with ENOSYS.  Some functions are actually named
28790     something starting with __ and the normal name is an alias.  */
28791 #if defined __stub_$ac_func || defined __stub___$ac_func
28792 choke me
28793 #endif
28794
28795 int
28796 main ()
28797 {
28798 return $ac_func ();
28799   ;
28800   return 0;
28801 }
28802 _ACEOF
28803 rm -f conftest.$ac_objext conftest$ac_exeext
28804 if { (ac_try="$ac_link"
28805 case "(($ac_try" in
28806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807   *) ac_try_echo=$ac_try;;
28808 esac
28809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28810   (eval "$ac_link") 2>conftest.er1
28811   ac_status=$?
28812   grep -v '^ *+' conftest.er1 >conftest.err
28813   rm -f conftest.er1
28814   cat conftest.err >&5
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); } && {
28817          test -z "$ac_c_werror_flag" ||
28818          test ! -s conftest.err
28819        } && test -s conftest$ac_exeext &&
28820        $as_test_x conftest$ac_exeext; then
28821   eval "$as_ac_var=yes"
28822 else
28823   echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28825
28826         eval "$as_ac_var=no"
28827 fi
28828
28829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28830       conftest$ac_exeext conftest.$ac_ext
28831 fi
28832 ac_res=`eval echo '${'$as_ac_var'}'`
28833                { echo "$as_me:$LINENO: result: $ac_res" >&5
28834 echo "${ECHO_T}$ac_res" >&6; }
28835 if test `eval echo '${'$as_ac_var'}'` = yes; then
28836   cat >>confdefs.h <<_ACEOF
28837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28838 _ACEOF
28839
28840 fi
28841 done
28842
28843
28844
28845
28846
28847
28848 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28849 do
28850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28854   echo $ECHO_N "(cached) $ECHO_C" >&6
28855 else
28856   cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28864 #define $ac_func innocuous_$ac_func
28865
28866 /* System header to define __stub macros and hopefully few prototypes,
28867     which can conflict with char $ac_func (); below.
28868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869     <limits.h> exists even on freestanding compilers.  */
28870
28871 #ifdef __STDC__
28872 # include <limits.h>
28873 #else
28874 # include <assert.h>
28875 #endif
28876
28877 #undef $ac_func
28878
28879 /* Override any GCC internal prototype to avoid an error.
28880    Use char because int might match the return type of a GCC
28881    builtin and then its argument prototype would still apply.  */
28882 #ifdef __cplusplus
28883 extern "C"
28884 #endif
28885 char $ac_func ();
28886 /* The GNU C library defines this for functions which it implements
28887     to always fail with ENOSYS.  Some functions are actually named
28888     something starting with __ and the normal name is an alias.  */
28889 #if defined __stub_$ac_func || defined __stub___$ac_func
28890 choke me
28891 #endif
28892
28893 int
28894 main ()
28895 {
28896 return $ac_func ();
28897   ;
28898   return 0;
28899 }
28900 _ACEOF
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (ac_try="$ac_link"
28903 case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908   (eval "$ac_link") 2>conftest.er1
28909   ac_status=$?
28910   grep -v '^ *+' conftest.er1 >conftest.err
28911   rm -f conftest.er1
28912   cat conftest.err >&5
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); } && {
28915          test -z "$ac_c_werror_flag" ||
28916          test ! -s conftest.err
28917        } && test -s conftest$ac_exeext &&
28918        $as_test_x conftest$ac_exeext; then
28919   eval "$as_ac_var=yes"
28920 else
28921   echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28923
28924         eval "$as_ac_var=no"
28925 fi
28926
28927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28928       conftest$ac_exeext conftest.$ac_ext
28929 fi
28930 ac_res=`eval echo '${'$as_ac_var'}'`
28931                { echo "$as_me:$LINENO: result: $ac_res" >&5
28932 echo "${ECHO_T}$ac_res" >&6; }
28933 if test `eval echo '${'$as_ac_var'}'` = yes; then
28934   cat >>confdefs.h <<_ACEOF
28935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28936 _ACEOF
28937
28938 fi
28939 done
28940
28941
28942
28943
28944 for ac_func in isatty mkdtemp mkstemp
28945 do
28946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28950   echo $ECHO_N "(cached) $ECHO_C" >&6
28951 else
28952   cat >conftest.$ac_ext <<_ACEOF
28953 /* confdefs.h.  */
28954 _ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h.  */
28958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28960 #define $ac_func innocuous_$ac_func
28961
28962 /* System header to define __stub macros and hopefully few prototypes,
28963     which can conflict with char $ac_func (); below.
28964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28965     <limits.h> exists even on freestanding compilers.  */
28966
28967 #ifdef __STDC__
28968 # include <limits.h>
28969 #else
28970 # include <assert.h>
28971 #endif
28972
28973 #undef $ac_func
28974
28975 /* Override any GCC internal prototype to avoid an error.
28976    Use char because int might match the return type of a GCC
28977    builtin and then its argument prototype would still apply.  */
28978 #ifdef __cplusplus
28979 extern "C"
28980 #endif
28981 char $ac_func ();
28982 /* The GNU C library defines this for functions which it implements
28983     to always fail with ENOSYS.  Some functions are actually named
28984     something starting with __ and the normal name is an alias.  */
28985 #if defined __stub_$ac_func || defined __stub___$ac_func
28986 choke me
28987 #endif
28988
28989 int
28990 main ()
28991 {
28992 return $ac_func ();
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest.$ac_objext conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004   (eval "$ac_link") 2>conftest.er1
29005   ac_status=$?
29006   grep -v '^ *+' conftest.er1 >conftest.err
29007   rm -f conftest.er1
29008   cat conftest.err >&5
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); } && {
29011          test -z "$ac_c_werror_flag" ||
29012          test ! -s conftest.err
29013        } && test -s conftest$ac_exeext &&
29014        $as_test_x conftest$ac_exeext; then
29015   eval "$as_ac_var=yes"
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020         eval "$as_ac_var=no"
29021 fi
29022
29023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29024       conftest$ac_exeext conftest.$ac_ext
29025 fi
29026 ac_res=`eval echo '${'$as_ac_var'}'`
29027                { echo "$as_me:$LINENO: result: $ac_res" >&5
29028 echo "${ECHO_T}$ac_res" >&6; }
29029 if test `eval echo '${'$as_ac_var'}'` = yes; then
29030   cat >>confdefs.h <<_ACEOF
29031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29032 _ACEOF
29033
29034 fi
29035 done
29036
29037
29038
29039
29040
29041
29042
29043
29044 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29045 do
29046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29050   echo $ECHO_N "(cached) $ECHO_C" >&6
29051 else
29052   cat >conftest.$ac_ext <<_ACEOF
29053 /* confdefs.h.  */
29054 _ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h.  */
29058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29060 #define $ac_func innocuous_$ac_func
29061
29062 /* System header to define __stub macros and hopefully few prototypes,
29063     which can conflict with char $ac_func (); below.
29064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29065     <limits.h> exists even on freestanding compilers.  */
29066
29067 #ifdef __STDC__
29068 # include <limits.h>
29069 #else
29070 # include <assert.h>
29071 #endif
29072
29073 #undef $ac_func
29074
29075 /* Override any GCC internal prototype to avoid an error.
29076    Use char because int might match the return type of a GCC
29077    builtin and then its argument prototype would still apply.  */
29078 #ifdef __cplusplus
29079 extern "C"
29080 #endif
29081 char $ac_func ();
29082 /* The GNU C library defines this for functions which it implements
29083     to always fail with ENOSYS.  Some functions are actually named
29084     something starting with __ and the normal name is an alias.  */
29085 #if defined __stub_$ac_func || defined __stub___$ac_func
29086 choke me
29087 #endif
29088
29089 int
29090 main ()
29091 {
29092 return $ac_func ();
29093   ;
29094   return 0;
29095 }
29096 _ACEOF
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (ac_try="$ac_link"
29099 case "(($ac_try" in
29100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101   *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104   (eval "$ac_link") 2>conftest.er1
29105   ac_status=$?
29106   grep -v '^ *+' conftest.er1 >conftest.err
29107   rm -f conftest.er1
29108   cat conftest.err >&5
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } && {
29111          test -z "$ac_c_werror_flag" ||
29112          test ! -s conftest.err
29113        } && test -s conftest$ac_exeext &&
29114        $as_test_x conftest$ac_exeext; then
29115   eval "$as_ac_var=yes"
29116 else
29117   echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29119
29120         eval "$as_ac_var=no"
29121 fi
29122
29123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29124       conftest$ac_exeext conftest.$ac_ext
29125 fi
29126 ac_res=`eval echo '${'$as_ac_var'}'`
29127                { echo "$as_me:$LINENO: result: $ac_res" >&5
29128 echo "${ECHO_T}$ac_res" >&6; }
29129 if test `eval echo '${'$as_ac_var'}'` = yes; then
29130   cat >>confdefs.h <<_ACEOF
29131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29132 _ACEOF
29133
29134 fi
29135 done
29136
29137
29138
29139
29140
29141 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29142 do
29143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29147   echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149   cat >conftest.$ac_ext <<_ACEOF
29150 /* confdefs.h.  */
29151 _ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h.  */
29155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29157 #define $ac_func innocuous_$ac_func
29158
29159 /* System header to define __stub macros and hopefully few prototypes,
29160     which can conflict with char $ac_func (); below.
29161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29162     <limits.h> exists even on freestanding compilers.  */
29163
29164 #ifdef __STDC__
29165 # include <limits.h>
29166 #else
29167 # include <assert.h>
29168 #endif
29169
29170 #undef $ac_func
29171
29172 /* Override any GCC internal prototype to avoid an error.
29173    Use char because int might match the return type of a GCC
29174    builtin and then its argument prototype would still apply.  */
29175 #ifdef __cplusplus
29176 extern "C"
29177 #endif
29178 char $ac_func ();
29179 /* The GNU C library defines this for functions which it implements
29180     to always fail with ENOSYS.  Some functions are actually named
29181     something starting with __ and the normal name is an alias.  */
29182 #if defined __stub_$ac_func || defined __stub___$ac_func
29183 choke me
29184 #endif
29185
29186 int
29187 main ()
29188 {
29189 return $ac_func ();
29190   ;
29191   return 0;
29192 }
29193 _ACEOF
29194 rm -f conftest.$ac_objext conftest$ac_exeext
29195 if { (ac_try="$ac_link"
29196 case "(($ac_try" in
29197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198   *) ac_try_echo=$ac_try;;
29199 esac
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201   (eval "$ac_link") 2>conftest.er1
29202   ac_status=$?
29203   grep -v '^ *+' conftest.er1 >conftest.err
29204   rm -f conftest.er1
29205   cat conftest.err >&5
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } && {
29208          test -z "$ac_c_werror_flag" ||
29209          test ! -s conftest.err
29210        } && test -s conftest$ac_exeext &&
29211        $as_test_x conftest$ac_exeext; then
29212   eval "$as_ac_var=yes"
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217         eval "$as_ac_var=no"
29218 fi
29219
29220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29221       conftest$ac_exeext conftest.$ac_ext
29222 fi
29223 ac_res=`eval echo '${'$as_ac_var'}'`
29224                { echo "$as_me:$LINENO: result: $ac_res" >&5
29225 echo "${ECHO_T}$ac_res" >&6; }
29226 if test `eval echo '${'$as_ac_var'}'` = yes; then
29227   cat >>confdefs.h <<_ACEOF
29228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29229 _ACEOF
29230
29231 fi
29232 done
29233
29234
29235
29236
29237
29238 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29239 do
29240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29244   echo $ECHO_N "(cached) $ECHO_C" >&6
29245 else
29246   cat >conftest.$ac_ext <<_ACEOF
29247 /* confdefs.h.  */
29248 _ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h.  */
29252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29254 #define $ac_func innocuous_$ac_func
29255
29256 /* System header to define __stub macros and hopefully few prototypes,
29257     which can conflict with char $ac_func (); below.
29258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29259     <limits.h> exists even on freestanding compilers.  */
29260
29261 #ifdef __STDC__
29262 # include <limits.h>
29263 #else
29264 # include <assert.h>
29265 #endif
29266
29267 #undef $ac_func
29268
29269 /* Override any GCC internal prototype to avoid an error.
29270    Use char because int might match the return type of a GCC
29271    builtin and then its argument prototype would still apply.  */
29272 #ifdef __cplusplus
29273 extern "C"
29274 #endif
29275 char $ac_func ();
29276 /* The GNU C library defines this for functions which it implements
29277     to always fail with ENOSYS.  Some functions are actually named
29278     something starting with __ and the normal name is an alias.  */
29279 #if defined __stub_$ac_func || defined __stub___$ac_func
29280 choke me
29281 #endif
29282
29283 int
29284 main ()
29285 {
29286 return $ac_func ();
29287   ;
29288   return 0;
29289 }
29290 _ACEOF
29291 rm -f conftest.$ac_objext conftest$ac_exeext
29292 if { (ac_try="$ac_link"
29293 case "(($ac_try" in
29294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29295   *) ac_try_echo=$ac_try;;
29296 esac
29297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29298   (eval "$ac_link") 2>conftest.er1
29299   ac_status=$?
29300   grep -v '^ *+' conftest.er1 >conftest.err
29301   rm -f conftest.er1
29302   cat conftest.err >&5
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); } && {
29305          test -z "$ac_c_werror_flag" ||
29306          test ! -s conftest.err
29307        } && test -s conftest$ac_exeext &&
29308        $as_test_x conftest$ac_exeext; then
29309   eval "$as_ac_var=yes"
29310 else
29311   echo "$as_me: failed program was:" >&5
29312 sed 's/^/| /' conftest.$ac_ext >&5
29313
29314         eval "$as_ac_var=no"
29315 fi
29316
29317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29318       conftest$ac_exeext conftest.$ac_ext
29319 fi
29320 ac_res=`eval echo '${'$as_ac_var'}'`
29321                { echo "$as_me:$LINENO: result: $ac_res" >&5
29322 echo "${ECHO_T}$ac_res" >&6; }
29323 if test `eval echo '${'$as_ac_var'}'` = yes; then
29324   cat >>confdefs.h <<_ACEOF
29325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29326 _ACEOF
29327
29328 fi
29329 done
29330
29331 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29332 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29333 if test "${llvm_cv_c_printf_a+set}" = set; then
29334   echo $ECHO_N "(cached) $ECHO_C" >&6
29335 else
29336   ac_ext=c
29337 ac_cpp='$CPP $CPPFLAGS'
29338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29341
29342  if test "$cross_compiling" = yes; then
29343   llvmac_cv_c_printf_a=no
29344 else
29345   cat >conftest.$ac_ext <<_ACEOF
29346
29347   /* confdefs.h.  */
29348 _ACEOF
29349 cat confdefs.h >>conftest.$ac_ext
29350 cat >>conftest.$ac_ext <<_ACEOF
29351 /* end confdefs.h.  */
29352
29353 #include <stdio.h>
29354 #include <stdlib.h>
29355
29356 int
29357 main ()
29358 {
29359
29360 volatile double A, B;
29361 char Buffer[100];
29362 A = 1;
29363 A /= 10.0;
29364 sprintf(Buffer, "%a", A);
29365 B = atof(Buffer);
29366 if (A != B)
29367   return (1);
29368 if (A != 0x1.999999999999ap-4)
29369   return (1);
29370 return (0);
29371   ;
29372   return 0;
29373 }
29374 _ACEOF
29375 rm -f conftest$ac_exeext
29376 if { (ac_try="$ac_link"
29377 case "(($ac_try" in
29378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379   *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382   (eval "$ac_link") 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29386   { (case "(($ac_try" in
29387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388   *) ac_try_echo=$ac_try;;
29389 esac
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391   (eval "$ac_try") 2>&5
29392   ac_status=$?
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); }; }; then
29395   llvm_cv_c_printf_a=yes
29396 else
29397   echo "$as_me: program exited with status $ac_status" >&5
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29400
29401 ( exit $ac_status )
29402 llvmac_cv_c_printf_a=no
29403 fi
29404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29405 fi
29406
29407
29408  ac_ext=c
29409 ac_cpp='$CPP $CPPFLAGS'
29410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29413
29414 fi
29415 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29416 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29417  if test "$llvm_cv_c_printf_a" = "yes"; then
29418
29419 cat >>confdefs.h <<\_ACEOF
29420 #define HAVE_PRINTF_A 1
29421 _ACEOF
29422
29423  fi
29424
29425 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29426 # for constant arguments.  Useless!
29427 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29428 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29429 if test "${ac_cv_working_alloca_h+set}" = set; then
29430   echo $ECHO_N "(cached) $ECHO_C" >&6
29431 else
29432   cat >conftest.$ac_ext <<_ACEOF
29433 /* confdefs.h.  */
29434 _ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h.  */
29438 #include <alloca.h>
29439 int
29440 main ()
29441 {
29442 char *p = (char *) alloca (2 * sizeof (int));
29443                           if (p) return 0;
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext conftest$ac_exeext
29449 if { (ac_try="$ac_link"
29450 case "(($ac_try" in
29451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452   *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455   (eval "$ac_link") 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } && {
29462          test -z "$ac_c_werror_flag" ||
29463          test ! -s conftest.err
29464        } && test -s conftest$ac_exeext &&
29465        $as_test_x conftest$ac_exeext; then
29466   ac_cv_working_alloca_h=yes
29467 else
29468   echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29470
29471         ac_cv_working_alloca_h=no
29472 fi
29473
29474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29475       conftest$ac_exeext conftest.$ac_ext
29476 fi
29477 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29478 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29479 if test $ac_cv_working_alloca_h = yes; then
29480
29481 cat >>confdefs.h <<\_ACEOF
29482 #define HAVE_ALLOCA_H 1
29483 _ACEOF
29484
29485 fi
29486
29487 { echo "$as_me:$LINENO: checking for alloca" >&5
29488 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29489 if test "${ac_cv_func_alloca_works+set}" = set; then
29490   echo $ECHO_N "(cached) $ECHO_C" >&6
29491 else
29492   cat >conftest.$ac_ext <<_ACEOF
29493 /* confdefs.h.  */
29494 _ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h.  */
29498 #ifdef __GNUC__
29499 # define alloca __builtin_alloca
29500 #else
29501 # ifdef _MSC_VER
29502 #  include <malloc.h>
29503 #  define alloca _alloca
29504 # else
29505 #  ifdef HAVE_ALLOCA_H
29506 #   include <alloca.h>
29507 #  else
29508 #   ifdef _AIX
29509  #pragma alloca
29510 #   else
29511 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29512 char *alloca ();
29513 #    endif
29514 #   endif
29515 #  endif
29516 # endif
29517 #endif
29518
29519 int
29520 main ()
29521 {
29522 char *p = (char *) alloca (1);
29523                                     if (p) return 0;
29524   ;
29525   return 0;
29526 }
29527 _ACEOF
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (ac_try="$ac_link"
29530 case "(($ac_try" in
29531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532   *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535   (eval "$ac_link") 2>conftest.er1
29536   ac_status=$?
29537   grep -v '^ *+' conftest.er1 >conftest.err
29538   rm -f conftest.er1
29539   cat conftest.err >&5
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } && {
29542          test -z "$ac_c_werror_flag" ||
29543          test ! -s conftest.err
29544        } && test -s conftest$ac_exeext &&
29545        $as_test_x conftest$ac_exeext; then
29546   ac_cv_func_alloca_works=yes
29547 else
29548   echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29550
29551         ac_cv_func_alloca_works=no
29552 fi
29553
29554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29555       conftest$ac_exeext conftest.$ac_ext
29556 fi
29557 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29558 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29559
29560 if test $ac_cv_func_alloca_works = yes; then
29561
29562 cat >>confdefs.h <<\_ACEOF
29563 #define HAVE_ALLOCA 1
29564 _ACEOF
29565
29566 else
29567   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29568 # that cause trouble.  Some versions do not even contain alloca or
29569 # contain a buggy version.  If you still want to use their alloca,
29570 # use ar to extract alloca.o from them instead of compiling alloca.c.
29571
29572 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29573
29574 cat >>confdefs.h <<\_ACEOF
29575 #define C_ALLOCA 1
29576 _ACEOF
29577
29578
29579 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29580 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29581 if test "${ac_cv_os_cray+set}" = set; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584   cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 #if defined CRAY && ! defined CRAY2
29591 webecray
29592 #else
29593 wenotbecray
29594 #endif
29595
29596 _ACEOF
29597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29598   $EGREP "webecray" >/dev/null 2>&1; then
29599   ac_cv_os_cray=yes
29600 else
29601   ac_cv_os_cray=no
29602 fi
29603 rm -f conftest*
29604
29605 fi
29606 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29607 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29608 if test $ac_cv_os_cray = yes; then
29609   for ac_func in _getb67 GETB67 getb67; do
29610     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29614   echo $ECHO_N "(cached) $ECHO_C" >&6
29615 else
29616   cat >conftest.$ac_ext <<_ACEOF
29617 /* confdefs.h.  */
29618 _ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h.  */
29622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29624 #define $ac_func innocuous_$ac_func
29625
29626 /* System header to define __stub macros and hopefully few prototypes,
29627     which can conflict with char $ac_func (); below.
29628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29629     <limits.h> exists even on freestanding compilers.  */
29630
29631 #ifdef __STDC__
29632 # include <limits.h>
29633 #else
29634 # include <assert.h>
29635 #endif
29636
29637 #undef $ac_func
29638
29639 /* Override any GCC internal prototype to avoid an error.
29640    Use char because int might match the return type of a GCC
29641    builtin and then its argument prototype would still apply.  */
29642 #ifdef __cplusplus
29643 extern "C"
29644 #endif
29645 char $ac_func ();
29646 /* The GNU C library defines this for functions which it implements
29647     to always fail with ENOSYS.  Some functions are actually named
29648     something starting with __ and the normal name is an alias.  */
29649 #if defined __stub_$ac_func || defined __stub___$ac_func
29650 choke me
29651 #endif
29652
29653 int
29654 main ()
29655 {
29656 return $ac_func ();
29657   ;
29658   return 0;
29659 }
29660 _ACEOF
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (ac_try="$ac_link"
29663 case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668   (eval "$ac_link") 2>conftest.er1
29669   ac_status=$?
29670   grep -v '^ *+' conftest.er1 >conftest.err
29671   rm -f conftest.er1
29672   cat conftest.err >&5
29673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); } && {
29675          test -z "$ac_c_werror_flag" ||
29676          test ! -s conftest.err
29677        } && test -s conftest$ac_exeext &&
29678        $as_test_x conftest$ac_exeext; then
29679   eval "$as_ac_var=yes"
29680 else
29681   echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29683
29684         eval "$as_ac_var=no"
29685 fi
29686
29687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29688       conftest$ac_exeext conftest.$ac_ext
29689 fi
29690 ac_res=`eval echo '${'$as_ac_var'}'`
29691                { echo "$as_me:$LINENO: result: $ac_res" >&5
29692 echo "${ECHO_T}$ac_res" >&6; }
29693 if test `eval echo '${'$as_ac_var'}'` = yes; then
29694
29695 cat >>confdefs.h <<_ACEOF
29696 #define CRAY_STACKSEG_END $ac_func
29697 _ACEOF
29698
29699     break
29700 fi
29701
29702   done
29703 fi
29704
29705 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29706 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29707 if test "${ac_cv_c_stack_direction+set}" = set; then
29708   echo $ECHO_N "(cached) $ECHO_C" >&6
29709 else
29710   if test "$cross_compiling" = yes; then
29711   ac_cv_c_stack_direction=0
29712 else
29713   cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h.  */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h.  */
29719 $ac_includes_default
29720 int
29721 find_stack_direction ()
29722 {
29723   static char *addr = 0;
29724   auto char dummy;
29725   if (addr == 0)
29726     {
29727       addr = &dummy;
29728       return find_stack_direction ();
29729     }
29730   else
29731     return (&dummy > addr) ? 1 : -1;
29732 }
29733
29734 int
29735 main ()
29736 {
29737   return find_stack_direction () < 0;
29738 }
29739 _ACEOF
29740 rm -f conftest$ac_exeext
29741 if { (ac_try="$ac_link"
29742 case "(($ac_try" in
29743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744   *) ac_try_echo=$ac_try;;
29745 esac
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747   (eval "$ac_link") 2>&5
29748   ac_status=$?
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29751   { (case "(($ac_try" in
29752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753   *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756   (eval "$ac_try") 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); }; }; then
29760   ac_cv_c_stack_direction=1
29761 else
29762   echo "$as_me: program exited with status $ac_status" >&5
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29765
29766 ( exit $ac_status )
29767 ac_cv_c_stack_direction=-1
29768 fi
29769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29770 fi
29771
29772
29773 fi
29774 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29775 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29776
29777 cat >>confdefs.h <<_ACEOF
29778 #define STACK_DIRECTION $ac_cv_c_stack_direction
29779 _ACEOF
29780
29781
29782 fi
29783
29784
29785 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29786 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29787 if test "${ac_cv_func_rand48+set}" = set; then
29788   echo $ECHO_N "(cached) $ECHO_C" >&6
29789 else
29790   ac_ext=cpp
29791 ac_cpp='$CXXCPP $CPPFLAGS'
29792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29795
29796    cat >conftest.$ac_ext <<_ACEOF
29797 /* confdefs.h.  */
29798 _ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h.  */
29802 #include <stdlib.h>
29803 int
29804 main ()
29805 {
29806 srand48(0);lrand48();drand48();
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815   *) ac_try_echo=$ac_try;;
29816 esac
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818   (eval "$ac_compile") 2>conftest.er1
29819   ac_status=$?
29820   grep -v '^ *+' conftest.er1 >conftest.err
29821   rm -f conftest.er1
29822   cat conftest.err >&5
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } && {
29825          test -z "$ac_cxx_werror_flag" ||
29826          test ! -s conftest.err
29827        } && test -s conftest.$ac_objext; then
29828   ac_cv_func_rand48=yes
29829 else
29830   echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833         ac_cv_func_rand48=no
29834 fi
29835
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29837   ac_ext=c
29838 ac_cpp='$CPP $CPPFLAGS'
29839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29842
29843 fi
29844 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29845 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29846
29847 if test "$ac_cv_func_rand48" = "yes" ; then
29848
29849 cat >>confdefs.h <<\_ACEOF
29850 #define HAVE_RAND48 1
29851 _ACEOF
29852
29853 fi
29854
29855
29856 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29857 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29858 if test "${ac_cv_cxx_namespaces+set}" = set; then
29859   echo $ECHO_N "(cached) $ECHO_C" >&6
29860 else
29861   ac_ext=cpp
29862 ac_cpp='$CXXCPP $CPPFLAGS'
29863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29866
29867  cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873 namespace Outer { namespace Inner { int i = 0; }}
29874 int
29875 main ()
29876 {
29877 using namespace Outer::Inner; return i;
29878   ;
29879   return 0;
29880 }
29881 _ACEOF
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_compile") 2>conftest.er1
29890   ac_status=$?
29891   grep -v '^ *+' conftest.er1 >conftest.err
29892   rm -f conftest.er1
29893   cat conftest.err >&5
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); } && {
29896          test -z "$ac_cxx_werror_flag" ||
29897          test ! -s conftest.err
29898        } && test -s conftest.$ac_objext; then
29899   ac_cv_cxx_namespaces=yes
29900 else
29901   echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904         ac_cv_cxx_namespaces=no
29905 fi
29906
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29908  ac_ext=c
29909 ac_cpp='$CPP $CPPFLAGS'
29910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29913
29914
29915 fi
29916 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29917 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29918 if test "$ac_cv_cxx_namespaces" = yes; then
29919
29920 cat >>confdefs.h <<\_ACEOF
29921 #define HAVE_NAMESPACES
29922 _ACEOF
29923
29924 fi
29925
29926 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29927 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29928 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29929   echo $ECHO_N "(cached) $ECHO_C" >&6
29930 else
29931
29932   ac_ext=cpp
29933 ac_cpp='$CXXCPP $CPPFLAGS'
29934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29937
29938   cat >conftest.$ac_ext <<_ACEOF
29939 /* confdefs.h.  */
29940 _ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h.  */
29944 #include <ext/hash_map>
29945 #ifdef HAVE_NAMESPACES
29946 using namespace std;
29947 #endif
29948 int
29949 main ()
29950 {
29951 hash_map<int, int> t;
29952   ;
29953   return 0;
29954 }
29955 _ACEOF
29956 rm -f conftest.$ac_objext
29957 if { (ac_try="$ac_compile"
29958 case "(($ac_try" in
29959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960   *) ac_try_echo=$ac_try;;
29961 esac
29962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963   (eval "$ac_compile") 2>conftest.er1
29964   ac_status=$?
29965   grep -v '^ *+' conftest.er1 >conftest.err
29966   rm -f conftest.er1
29967   cat conftest.err >&5
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); } && {
29970          test -z "$ac_cxx_werror_flag" ||
29971          test ! -s conftest.err
29972        } && test -s conftest.$ac_objext; then
29973   ac_cv_cxx_have_std_ext_hash_map=yes
29974 else
29975   echo "$as_me: failed program was:" >&5
29976 sed 's/^/| /' conftest.$ac_ext >&5
29977
29978         ac_cv_cxx_have_std_ext_hash_map=no
29979 fi
29980
29981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29982   ac_ext=c
29983 ac_cpp='$CPP $CPPFLAGS'
29984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29987
29988 fi
29989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29990 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
29991  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29992  then
29993
29994 cat >>confdefs.h <<\_ACEOF
29995 #define HAVE_STD_EXT_HASH_MAP 1
29996 _ACEOF
29997
29998  else
29999
30000 cat >>confdefs.h <<\_ACEOF
30001 #define HAVE_STD_EXT_HASH_MAP 0
30002 _ACEOF
30003
30004  fi
30005
30006  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30007 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30008 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30009   echo $ECHO_N "(cached) $ECHO_C" >&6
30010 else
30011
30012   ac_ext=cpp
30013 ac_cpp='$CXXCPP $CPPFLAGS'
30014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30017
30018   cat >conftest.$ac_ext <<_ACEOF
30019 /* confdefs.h.  */
30020 _ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h.  */
30024 #include <ext/hash_map>
30025 #ifdef HAVE_NAMESPACES
30026 using namespace __gnu_cxx;
30027 #endif
30028 int
30029 main ()
30030 {
30031 hash_map<int,int> t;
30032   ;
30033   return 0;
30034 }
30035 _ACEOF
30036 rm -f conftest.$ac_objext
30037 if { (ac_try="$ac_compile"
30038 case "(($ac_try" in
30039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040   *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043   (eval "$ac_compile") 2>conftest.er1
30044   ac_status=$?
30045   grep -v '^ *+' conftest.er1 >conftest.err
30046   rm -f conftest.er1
30047   cat conftest.err >&5
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); } && {
30050          test -z "$ac_cxx_werror_flag" ||
30051          test ! -s conftest.err
30052        } && test -s conftest.$ac_objext; then
30053   ac_cv_cxx_have_gnu_ext_hash_map=yes
30054 else
30055   echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30057
30058         ac_cv_cxx_have_gnu_ext_hash_map=no
30059 fi
30060
30061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30062   ac_ext=c
30063 ac_cpp='$CPP $CPPFLAGS'
30064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30067
30068 fi
30069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30070 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30071  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30072  then
30073
30074 cat >>confdefs.h <<\_ACEOF
30075 #define HAVE_GNU_EXT_HASH_MAP 1
30076 _ACEOF
30077
30078  else
30079
30080 cat >>confdefs.h <<\_ACEOF
30081 #define HAVE_GNU_EXT_HASH_MAP 0
30082 _ACEOF
30083
30084  fi
30085
30086  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30087 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30088 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30089   echo $ECHO_N "(cached) $ECHO_C" >&6
30090 else
30091
30092   ac_ext=cpp
30093 ac_cpp='$CXXCPP $CPPFLAGS'
30094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30097
30098   cat >conftest.$ac_ext <<_ACEOF
30099 /* confdefs.h.  */
30100 _ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h.  */
30104 #include <hash_map>
30105 int
30106 main ()
30107 {
30108 hash_map<int,int> t;
30109   ;
30110   return 0;
30111 }
30112 _ACEOF
30113 rm -f conftest.$ac_objext
30114 if { (ac_try="$ac_compile"
30115 case "(($ac_try" in
30116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30117   *) ac_try_echo=$ac_try;;
30118 esac
30119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30120   (eval "$ac_compile") 2>conftest.er1
30121   ac_status=$?
30122   grep -v '^ *+' conftest.er1 >conftest.err
30123   rm -f conftest.er1
30124   cat conftest.err >&5
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); } && {
30127          test -z "$ac_cxx_werror_flag" ||
30128          test ! -s conftest.err
30129        } && test -s conftest.$ac_objext; then
30130   ac_cv_cxx_have_global_hash_map=yes
30131 else
30132   echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30134
30135         ac_cv_cxx_have_global_hash_map=no
30136 fi
30137
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30139   ac_ext=c
30140 ac_cpp='$CPP $CPPFLAGS'
30141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30144
30145 fi
30146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30147 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30148  if test "$ac_cv_cxx_have_global_hash_map" = yes
30149  then
30150
30151 cat >>confdefs.h <<\_ACEOF
30152 #define HAVE_GLOBAL_HASH_MAP 1
30153 _ACEOF
30154
30155  else
30156
30157 cat >>confdefs.h <<\_ACEOF
30158 #define HAVE_GLOBAL_HASH_MAP 0
30159 _ACEOF
30160
30161  fi
30162
30163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30164 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30165 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30166   echo $ECHO_N "(cached) $ECHO_C" >&6
30167 else
30168
30169   ac_ext=cpp
30170 ac_cpp='$CXXCPP $CPPFLAGS'
30171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30174
30175   cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181 #include <ext/hash_set>
30182 #ifdef HAVE_NAMESPACES
30183 using namespace std;
30184 #endif
30185 int
30186 main ()
30187 {
30188 hash_set<int> t;
30189   ;
30190   return 0;
30191 }
30192 _ACEOF
30193 rm -f conftest.$ac_objext
30194 if { (ac_try="$ac_compile"
30195 case "(($ac_try" in
30196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197   *) ac_try_echo=$ac_try;;
30198 esac
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200   (eval "$ac_compile") 2>conftest.er1
30201   ac_status=$?
30202   grep -v '^ *+' conftest.er1 >conftest.err
30203   rm -f conftest.er1
30204   cat conftest.err >&5
30205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206   (exit $ac_status); } && {
30207          test -z "$ac_cxx_werror_flag" ||
30208          test ! -s conftest.err
30209        } && test -s conftest.$ac_objext; then
30210   ac_cv_cxx_have_std_ext_hash_set=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215         ac_cv_cxx_have_std_ext_hash_set=no
30216 fi
30217
30218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30219   ac_ext=c
30220 ac_cpp='$CPP $CPPFLAGS'
30221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30224
30225 fi
30226 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30227 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30228  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30229  then
30230
30231 cat >>confdefs.h <<\_ACEOF
30232 #define HAVE_STD_EXT_HASH_SET 1
30233 _ACEOF
30234
30235  else
30236
30237 cat >>confdefs.h <<\_ACEOF
30238 #define HAVE_STD_EXT_HASH_SET 0
30239 _ACEOF
30240
30241  fi
30242
30243  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30244 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30245 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30246   echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248
30249   ac_ext=cpp
30250 ac_cpp='$CXXCPP $CPPFLAGS'
30251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30254
30255   cat >conftest.$ac_ext <<_ACEOF
30256 /* confdefs.h.  */
30257 _ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h.  */
30261 #include <ext/hash_set>
30262 #ifdef HAVE_NAMESPACES
30263 using namespace __gnu_cxx;
30264 #endif
30265 int
30266 main ()
30267 {
30268 hash_set<int> t;
30269   ;
30270   return 0;
30271 }
30272 _ACEOF
30273 rm -f conftest.$ac_objext
30274 if { (ac_try="$ac_compile"
30275 case "(($ac_try" in
30276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277   *) ac_try_echo=$ac_try;;
30278 esac
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280   (eval "$ac_compile") 2>conftest.er1
30281   ac_status=$?
30282   grep -v '^ *+' conftest.er1 >conftest.err
30283   rm -f conftest.er1
30284   cat conftest.err >&5
30285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286   (exit $ac_status); } && {
30287          test -z "$ac_cxx_werror_flag" ||
30288          test ! -s conftest.err
30289        } && test -s conftest.$ac_objext; then
30290   ac_cv_cxx_have_gnu_ext_hash_set=yes
30291 else
30292   echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30294
30295         ac_cv_cxx_have_gnu_ext_hash_set=no
30296 fi
30297
30298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30299   ac_ext=c
30300 ac_cpp='$CPP $CPPFLAGS'
30301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30304
30305 fi
30306 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30307 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30308  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30309  then
30310
30311 cat >>confdefs.h <<\_ACEOF
30312 #define HAVE_GNU_EXT_HASH_SET 1
30313 _ACEOF
30314
30315  else
30316
30317 cat >>confdefs.h <<\_ACEOF
30318 #define HAVE_GNU_EXT_HASH_SET 0
30319 _ACEOF
30320
30321  fi
30322
30323  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30324 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30325 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30326   echo $ECHO_N "(cached) $ECHO_C" >&6
30327 else
30328
30329   ac_ext=cpp
30330 ac_cpp='$CXXCPP $CPPFLAGS'
30331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30334
30335   cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h.  */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h.  */
30341 #include <hash_set>
30342 int
30343 main ()
30344 {
30345 hash_set<int> t; return 0;
30346   ;
30347   return 0;
30348 }
30349 _ACEOF
30350 rm -f conftest.$ac_objext
30351 if { (ac_try="$ac_compile"
30352 case "(($ac_try" in
30353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354   *) ac_try_echo=$ac_try;;
30355 esac
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357   (eval "$ac_compile") 2>conftest.er1
30358   ac_status=$?
30359   grep -v '^ *+' conftest.er1 >conftest.err
30360   rm -f conftest.er1
30361   cat conftest.err >&5
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); } && {
30364          test -z "$ac_cxx_werror_flag" ||
30365          test ! -s conftest.err
30366        } && test -s conftest.$ac_objext; then
30367   ac_cv_cxx_have_global_hash_set=yes
30368 else
30369   echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30371
30372         ac_cv_cxx_have_global_hash_set=no
30373 fi
30374
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376   ac_ext=c
30377 ac_cpp='$CPP $CPPFLAGS'
30378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
30382 fi
30383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30384 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30385  if test "$ac_cv_cxx_have_global_hash_set" = yes
30386  then
30387
30388 cat >>confdefs.h <<\_ACEOF
30389 #define HAVE_GLOBAL_HASH_SET 1
30390 _ACEOF
30391
30392  else
30393
30394 cat >>confdefs.h <<\_ACEOF
30395 #define HAVE_GLOBAL_HASH_SET 0
30396 _ACEOF
30397
30398  fi
30399
30400 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30401 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30402 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30403   echo $ECHO_N "(cached) $ECHO_C" >&6
30404 else
30405
30406   ac_ext=cpp
30407 ac_cpp='$CXXCPP $CPPFLAGS'
30408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30411
30412   cat >conftest.$ac_ext <<_ACEOF
30413 /* confdefs.h.  */
30414 _ACEOF
30415 cat confdefs.h >>conftest.$ac_ext
30416 cat >>conftest.$ac_ext <<_ACEOF
30417 /* end confdefs.h.  */
30418 #include <iterator>
30419 #ifdef HAVE_NAMESPACES
30420 using namespace std;
30421 #endif
30422 int
30423 main ()
30424 {
30425 iterator<int,int,int> t; return 0;
30426   ;
30427   return 0;
30428 }
30429 _ACEOF
30430 rm -f conftest.$ac_objext
30431 if { (ac_try="$ac_compile"
30432 case "(($ac_try" in
30433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434   *) ac_try_echo=$ac_try;;
30435 esac
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437   (eval "$ac_compile") 2>conftest.er1
30438   ac_status=$?
30439   grep -v '^ *+' conftest.er1 >conftest.err
30440   rm -f conftest.er1
30441   cat conftest.err >&5
30442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443   (exit $ac_status); } && {
30444          test -z "$ac_cxx_werror_flag" ||
30445          test ! -s conftest.err
30446        } && test -s conftest.$ac_objext; then
30447   ac_cv_cxx_have_std_iterator=yes
30448 else
30449   echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30451
30452         ac_cv_cxx_have_std_iterator=no
30453 fi
30454
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456   ac_ext=c
30457 ac_cpp='$CPP $CPPFLAGS'
30458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30461
30462
30463 fi
30464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30465 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30466 if test "$ac_cv_cxx_have_std_iterator" = yes
30467 then
30468
30469 cat >>confdefs.h <<\_ACEOF
30470 #define HAVE_STD_ITERATOR 1
30471 _ACEOF
30472
30473 else
30474
30475 cat >>confdefs.h <<\_ACEOF
30476 #define HAVE_STD_ITERATOR 0
30477 _ACEOF
30478
30479 fi
30480
30481 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30482 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30483 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30484   echo $ECHO_N "(cached) $ECHO_C" >&6
30485 else
30486
30487   ac_ext=cpp
30488 ac_cpp='$CXXCPP $CPPFLAGS'
30489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30492
30493   cat >conftest.$ac_ext <<_ACEOF
30494 /* confdefs.h.  */
30495 _ACEOF
30496 cat confdefs.h >>conftest.$ac_ext
30497 cat >>conftest.$ac_ext <<_ACEOF
30498 /* end confdefs.h.  */
30499 #include <iterator>
30500 #ifdef HAVE_NAMESPACES
30501 using namespace std;
30502 #endif
30503 int
30504 main ()
30505 {
30506 bidirectional_iterator<int,int> t; return 0;
30507   ;
30508   return 0;
30509 }
30510 _ACEOF
30511 rm -f conftest.$ac_objext
30512 if { (ac_try="$ac_compile"
30513 case "(($ac_try" in
30514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515   *) ac_try_echo=$ac_try;;
30516 esac
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518   (eval "$ac_compile") 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } && {
30525          test -z "$ac_cxx_werror_flag" ||
30526          test ! -s conftest.err
30527        } && test -s conftest.$ac_objext; then
30528   ac_cv_cxx_have_bi_iterator=yes
30529 else
30530   echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533         ac_cv_cxx_have_bi_iterator=no
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537   ac_ext=c
30538 ac_cpp='$CPP $CPPFLAGS'
30539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30542
30543
30544 fi
30545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30546 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30547 if test "$ac_cv_cxx_have_bi_iterator" = yes
30548 then
30549
30550 cat >>confdefs.h <<\_ACEOF
30551 #define HAVE_BI_ITERATOR 1
30552 _ACEOF
30553
30554 else
30555
30556 cat >>confdefs.h <<\_ACEOF
30557 #define HAVE_BI_ITERATOR 0
30558 _ACEOF
30559
30560 fi
30561
30562 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30563 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30564 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30565   echo $ECHO_N "(cached) $ECHO_C" >&6
30566 else
30567
30568   ac_ext=cpp
30569 ac_cpp='$CXXCPP $CPPFLAGS'
30570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30573
30574   cat >conftest.$ac_ext <<_ACEOF
30575 /* confdefs.h.  */
30576 _ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h.  */
30580 #include <iterator>
30581 #ifdef HAVE_NAMESPACES
30582 using namespace std;
30583 #endif
30584 int
30585 main ()
30586 {
30587 forward_iterator<int,int> t; return 0;
30588   ;
30589   return 0;
30590 }
30591 _ACEOF
30592 rm -f conftest.$ac_objext
30593 if { (ac_try="$ac_compile"
30594 case "(($ac_try" in
30595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596   *) ac_try_echo=$ac_try;;
30597 esac
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599   (eval "$ac_compile") 2>conftest.er1
30600   ac_status=$?
30601   grep -v '^ *+' conftest.er1 >conftest.err
30602   rm -f conftest.er1
30603   cat conftest.err >&5
30604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605   (exit $ac_status); } && {
30606          test -z "$ac_cxx_werror_flag" ||
30607          test ! -s conftest.err
30608        } && test -s conftest.$ac_objext; then
30609   ac_cv_cxx_have_fwd_iterator=yes
30610 else
30611   echo "$as_me: failed program was:" >&5
30612 sed 's/^/| /' conftest.$ac_ext >&5
30613
30614         ac_cv_cxx_have_fwd_iterator=no
30615 fi
30616
30617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30618   ac_ext=c
30619 ac_cpp='$CPP $CPPFLAGS'
30620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30623
30624
30625 fi
30626 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30627 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30628 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30629 then
30630
30631 cat >>confdefs.h <<\_ACEOF
30632 #define HAVE_FWD_ITERATOR 1
30633 _ACEOF
30634
30635 else
30636
30637 cat >>confdefs.h <<\_ACEOF
30638 #define HAVE_FWD_ITERATOR 0
30639 _ACEOF
30640
30641 fi
30642
30643
30644 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30645 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30646 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30647   echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649   ac_ext=cpp
30650 ac_cpp='$CXXCPP $CPPFLAGS'
30651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30654
30655    cat >conftest.$ac_ext <<_ACEOF
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661 #include <math.h>
30662 int
30663 main ()
30664 {
30665 float f; isnan(f);
30666   ;
30667   return 0;
30668 }
30669 _ACEOF
30670 rm -f conftest.$ac_objext
30671 if { (ac_try="$ac_compile"
30672 case "(($ac_try" in
30673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674   *) ac_try_echo=$ac_try;;
30675 esac
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677   (eval "$ac_compile") 2>conftest.er1
30678   ac_status=$?
30679   grep -v '^ *+' conftest.er1 >conftest.err
30680   rm -f conftest.er1
30681   cat conftest.err >&5
30682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683   (exit $ac_status); } && {
30684          test -z "$ac_cxx_werror_flag" ||
30685          test ! -s conftest.err
30686        } && test -s conftest.$ac_objext; then
30687   ac_cv_func_isnan_in_math_h=yes
30688 else
30689   echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30691
30692         ac_cv_func_isnan_in_math_h=no
30693 fi
30694
30695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30696   ac_ext=c
30697 ac_cpp='$CPP $CPPFLAGS'
30698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30701
30702 fi
30703 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30704 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30705
30706
30707 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30708
30709 cat >>confdefs.h <<\_ACEOF
30710 #define HAVE_ISNAN_IN_MATH_H 1
30711 _ACEOF
30712
30713 fi
30714
30715 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30716 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30717 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30718   echo $ECHO_N "(cached) $ECHO_C" >&6
30719 else
30720   ac_ext=cpp
30721 ac_cpp='$CXXCPP $CPPFLAGS'
30722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30725
30726    cat >conftest.$ac_ext <<_ACEOF
30727 /* confdefs.h.  */
30728 _ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h.  */
30732 #include <cmath>
30733 int
30734 main ()
30735 {
30736 float f; isnan(f);
30737   ;
30738   return 0;
30739 }
30740 _ACEOF
30741 rm -f conftest.$ac_objext
30742 if { (ac_try="$ac_compile"
30743 case "(($ac_try" in
30744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745   *) ac_try_echo=$ac_try;;
30746 esac
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748   (eval "$ac_compile") 2>conftest.er1
30749   ac_status=$?
30750   grep -v '^ *+' conftest.er1 >conftest.err
30751   rm -f conftest.er1
30752   cat conftest.err >&5
30753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754   (exit $ac_status); } && {
30755          test -z "$ac_cxx_werror_flag" ||
30756          test ! -s conftest.err
30757        } && test -s conftest.$ac_objext; then
30758   ac_cv_func_isnan_in_cmath=yes
30759 else
30760   echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30762
30763         ac_cv_func_isnan_in_cmath=no
30764 fi
30765
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30767   ac_ext=c
30768 ac_cpp='$CPP $CPPFLAGS'
30769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30772
30773 fi
30774 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30775 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30776
30777 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30778
30779 cat >>confdefs.h <<\_ACEOF
30780 #define HAVE_ISNAN_IN_CMATH 1
30781 _ACEOF
30782
30783 fi
30784
30785 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30786 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30787 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30788   echo $ECHO_N "(cached) $ECHO_C" >&6
30789 else
30790   ac_ext=cpp
30791 ac_cpp='$CXXCPP $CPPFLAGS'
30792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30795
30796    cat >conftest.$ac_ext <<_ACEOF
30797 /* confdefs.h.  */
30798 _ACEOF
30799 cat confdefs.h >>conftest.$ac_ext
30800 cat >>conftest.$ac_ext <<_ACEOF
30801 /* end confdefs.h.  */
30802 #include <cmath>
30803 int
30804 main ()
30805 {
30806 float f; std::isnan(f);
30807   ;
30808   return 0;
30809 }
30810 _ACEOF
30811 rm -f conftest.$ac_objext
30812 if { (ac_try="$ac_compile"
30813 case "(($ac_try" in
30814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815   *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818   (eval "$ac_compile") 2>conftest.er1
30819   ac_status=$?
30820   grep -v '^ *+' conftest.er1 >conftest.err
30821   rm -f conftest.er1
30822   cat conftest.err >&5
30823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824   (exit $ac_status); } && {
30825          test -z "$ac_cxx_werror_flag" ||
30826          test ! -s conftest.err
30827        } && test -s conftest.$ac_objext; then
30828   ac_cv_func_std_isnan_in_cmath=yes
30829 else
30830   echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833         ac_cv_func_std_isnan_in_cmath=no
30834 fi
30835
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837   ac_ext=c
30838 ac_cpp='$CPP $CPPFLAGS'
30839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30842
30843 fi
30844 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30845 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30846
30847 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30848
30849 cat >>confdefs.h <<\_ACEOF
30850 #define HAVE_STD_ISNAN_IN_CMATH 1
30851 _ACEOF
30852
30853 fi
30854
30855
30856 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30857 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30858 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30859   echo $ECHO_N "(cached) $ECHO_C" >&6
30860 else
30861   ac_ext=cpp
30862 ac_cpp='$CXXCPP $CPPFLAGS'
30863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30866
30867    cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873 #include <math.h>
30874 int
30875 main ()
30876 {
30877 float f; isinf(f);
30878   ;
30879   return 0;
30880 }
30881 _ACEOF
30882 rm -f conftest.$ac_objext
30883 if { (ac_try="$ac_compile"
30884 case "(($ac_try" in
30885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886   *) ac_try_echo=$ac_try;;
30887 esac
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889   (eval "$ac_compile") 2>conftest.er1
30890   ac_status=$?
30891   grep -v '^ *+' conftest.er1 >conftest.err
30892   rm -f conftest.er1
30893   cat conftest.err >&5
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); } && {
30896          test -z "$ac_cxx_werror_flag" ||
30897          test ! -s conftest.err
30898        } && test -s conftest.$ac_objext; then
30899   ac_cv_func_isinf_in_math_h=yes
30900 else
30901   echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30903
30904         ac_cv_func_isinf_in_math_h=no
30905 fi
30906
30907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30908   ac_ext=c
30909 ac_cpp='$CPP $CPPFLAGS'
30910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30913
30914 fi
30915 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30916 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30917
30918 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30919
30920 cat >>confdefs.h <<\_ACEOF
30921 #define HAVE_ISINF_IN_MATH_H 1
30922 _ACEOF
30923
30924 fi
30925
30926 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30927 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30928 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30929   echo $ECHO_N "(cached) $ECHO_C" >&6
30930 else
30931   ac_ext=cpp
30932 ac_cpp='$CXXCPP $CPPFLAGS'
30933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30936
30937    cat >conftest.$ac_ext <<_ACEOF
30938 /* confdefs.h.  */
30939 _ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h.  */
30943 #include <cmath>
30944 int
30945 main ()
30946 {
30947 float f; isinf(f);
30948   ;
30949   return 0;
30950 }
30951 _ACEOF
30952 rm -f conftest.$ac_objext
30953 if { (ac_try="$ac_compile"
30954 case "(($ac_try" in
30955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956   *) ac_try_echo=$ac_try;;
30957 esac
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959   (eval "$ac_compile") 2>conftest.er1
30960   ac_status=$?
30961   grep -v '^ *+' conftest.er1 >conftest.err
30962   rm -f conftest.er1
30963   cat conftest.err >&5
30964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965   (exit $ac_status); } && {
30966          test -z "$ac_cxx_werror_flag" ||
30967          test ! -s conftest.err
30968        } && test -s conftest.$ac_objext; then
30969   ac_cv_func_isinf_in_cmath=yes
30970 else
30971   echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30973
30974         ac_cv_func_isinf_in_cmath=no
30975 fi
30976
30977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30978   ac_ext=c
30979 ac_cpp='$CPP $CPPFLAGS'
30980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30983
30984 fi
30985 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30986 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30987
30988 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30989
30990 cat >>confdefs.h <<\_ACEOF
30991 #define HAVE_ISINF_IN_CMATH 1
30992 _ACEOF
30993
30994 fi
30995
30996 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30997 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30998 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30999   echo $ECHO_N "(cached) $ECHO_C" >&6
31000 else
31001   ac_ext=cpp
31002 ac_cpp='$CXXCPP $CPPFLAGS'
31003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31006
31007    cat >conftest.$ac_ext <<_ACEOF
31008 /* confdefs.h.  */
31009 _ACEOF
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h.  */
31013 #include <cmath>
31014 int
31015 main ()
31016 {
31017 float f; std::isinf(f)}
31018   ;
31019   return 0;
31020 }
31021 _ACEOF
31022 rm -f conftest.$ac_objext
31023 if { (ac_try="$ac_compile"
31024 case "(($ac_try" in
31025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026   *) ac_try_echo=$ac_try;;
31027 esac
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029   (eval "$ac_compile") 2>conftest.er1
31030   ac_status=$?
31031   grep -v '^ *+' conftest.er1 >conftest.err
31032   rm -f conftest.er1
31033   cat conftest.err >&5
31034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035   (exit $ac_status); } && {
31036          test -z "$ac_cxx_werror_flag" ||
31037          test ! -s conftest.err
31038        } && test -s conftest.$ac_objext; then
31039   ac_cv_func_std_isinf_in_cmath=yes
31040 else
31041   echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31043
31044         ac_cv_func_std_isinf_in_cmath=no
31045 fi
31046
31047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31048   ac_ext=c
31049 ac_cpp='$CPP $CPPFLAGS'
31050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31053
31054 fi
31055 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31056 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31057
31058 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31059
31060 cat >>confdefs.h <<\_ACEOF
31061 #define HAVE_STD_ISINF_IN_CMATH 1
31062 _ACEOF
31063
31064 fi
31065
31066 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31067 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31068 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31069   echo $ECHO_N "(cached) $ECHO_C" >&6
31070 else
31071   ac_ext=cpp
31072 ac_cpp='$CXXCPP $CPPFLAGS'
31073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31076
31077    cat >conftest.$ac_ext <<_ACEOF
31078 /* confdefs.h.  */
31079 _ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h.  */
31083 #include <ieeefp.h>
31084 int
31085 main ()
31086 {
31087 float f; finite(f);
31088   ;
31089   return 0;
31090 }
31091 _ACEOF
31092 rm -f conftest.$ac_objext
31093 if { (ac_try="$ac_compile"
31094 case "(($ac_try" in
31095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096   *) ac_try_echo=$ac_try;;
31097 esac
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099   (eval "$ac_compile") 2>conftest.er1
31100   ac_status=$?
31101   grep -v '^ *+' conftest.er1 >conftest.err
31102   rm -f conftest.er1
31103   cat conftest.err >&5
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); } && {
31106          test -z "$ac_cxx_werror_flag" ||
31107          test ! -s conftest.err
31108        } && test -s conftest.$ac_objext; then
31109   ac_cv_func_finite_in_ieeefp_h=yes
31110 else
31111   echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31113
31114         ac_cv_func_finite_in_ieeefp_h=no
31115 fi
31116
31117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31118   ac_ext=c
31119 ac_cpp='$CPP $CPPFLAGS'
31120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31123
31124 fi
31125 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31126 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31127
31128 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31129
31130 cat >>confdefs.h <<\_ACEOF
31131 #define HAVE_FINITE_IN_IEEEFP_H 1
31132 _ACEOF
31133
31134 fi
31135
31136
31137
31138 if test "$llvm_cv_platform_type" = "Unix" ; then
31139
31140
31141 for ac_header in stdlib.h unistd.h
31142 do
31143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31145   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31148   echo $ECHO_N "(cached) $ECHO_C" >&6
31149 fi
31150 ac_res=`eval echo '${'$as_ac_Header'}'`
31151                { echo "$as_me:$LINENO: result: $ac_res" >&5
31152 echo "${ECHO_T}$ac_res" >&6; }
31153 else
31154   # Is the header compilable?
31155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31157 cat >conftest.$ac_ext <<_ACEOF
31158 /* confdefs.h.  */
31159 _ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h.  */
31163 $ac_includes_default
31164 #include <$ac_header>
31165 _ACEOF
31166 rm -f conftest.$ac_objext
31167 if { (ac_try="$ac_compile"
31168 case "(($ac_try" in
31169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170   *) ac_try_echo=$ac_try;;
31171 esac
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173   (eval "$ac_compile") 2>conftest.er1
31174   ac_status=$?
31175   grep -v '^ *+' conftest.er1 >conftest.err
31176   rm -f conftest.er1
31177   cat conftest.err >&5
31178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179   (exit $ac_status); } && {
31180          test -z "$ac_c_werror_flag" ||
31181          test ! -s conftest.err
31182        } && test -s conftest.$ac_objext; then
31183   ac_header_compiler=yes
31184 else
31185   echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31187
31188         ac_header_compiler=no
31189 fi
31190
31191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31193 echo "${ECHO_T}$ac_header_compiler" >&6; }
31194
31195 # Is the header present?
31196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31198 cat >conftest.$ac_ext <<_ACEOF
31199 /* confdefs.h.  */
31200 _ACEOF
31201 cat confdefs.h >>conftest.$ac_ext
31202 cat >>conftest.$ac_ext <<_ACEOF
31203 /* end confdefs.h.  */
31204 #include <$ac_header>
31205 _ACEOF
31206 if { (ac_try="$ac_cpp conftest.$ac_ext"
31207 case "(($ac_try" in
31208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209   *) ac_try_echo=$ac_try;;
31210 esac
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31213   ac_status=$?
31214   grep -v '^ *+' conftest.er1 >conftest.err
31215   rm -f conftest.er1
31216   cat conftest.err >&5
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); } >/dev/null && {
31219          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31220          test ! -s conftest.err
31221        }; then
31222   ac_header_preproc=yes
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227   ac_header_preproc=no
31228 fi
31229
31230 rm -f conftest.err conftest.$ac_ext
31231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31232 echo "${ECHO_T}$ac_header_preproc" >&6; }
31233
31234 # So?  What about this header?
31235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31236   yes:no: )
31237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31241     ac_header_preproc=yes
31242     ;;
31243   no:yes:* )
31244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31256     ( cat <<\_ASBOX
31257 ## ----------------------------------- ##
31258 ## Report this to llvmbugs@cs.uiuc.edu ##
31259 ## ----------------------------------- ##
31260 _ASBOX
31261      ) | sed "s/^/$as_me: WARNING:     /" >&2
31262     ;;
31263 esac
31264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31267   echo $ECHO_N "(cached) $ECHO_C" >&6
31268 else
31269   eval "$as_ac_Header=\$ac_header_preproc"
31270 fi
31271 ac_res=`eval echo '${'$as_ac_Header'}'`
31272                { echo "$as_me:$LINENO: result: $ac_res" >&5
31273 echo "${ECHO_T}$ac_res" >&6; }
31274
31275 fi
31276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31277   cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31279 _ACEOF
31280
31281 fi
31282
31283 done
31284
31285
31286 for ac_func in getpagesize
31287 do
31288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31292   echo $ECHO_N "(cached) $ECHO_C" >&6
31293 else
31294   cat >conftest.$ac_ext <<_ACEOF
31295 /* confdefs.h.  */
31296 _ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h.  */
31300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31302 #define $ac_func innocuous_$ac_func
31303
31304 /* System header to define __stub macros and hopefully few prototypes,
31305     which can conflict with char $ac_func (); below.
31306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31307     <limits.h> exists even on freestanding compilers.  */
31308
31309 #ifdef __STDC__
31310 # include <limits.h>
31311 #else
31312 # include <assert.h>
31313 #endif
31314
31315 #undef $ac_func
31316
31317 /* Override any GCC internal prototype to avoid an error.
31318    Use char because int might match the return type of a GCC
31319    builtin and then its argument prototype would still apply.  */
31320 #ifdef __cplusplus
31321 extern "C"
31322 #endif
31323 char $ac_func ();
31324 /* The GNU C library defines this for functions which it implements
31325     to always fail with ENOSYS.  Some functions are actually named
31326     something starting with __ and the normal name is an alias.  */
31327 #if defined __stub_$ac_func || defined __stub___$ac_func
31328 choke me
31329 #endif
31330
31331 int
31332 main ()
31333 {
31334 return $ac_func ();
31335   ;
31336   return 0;
31337 }
31338 _ACEOF
31339 rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (ac_try="$ac_link"
31341 case "(($ac_try" in
31342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343   *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346   (eval "$ac_link") 2>conftest.er1
31347   ac_status=$?
31348   grep -v '^ *+' conftest.er1 >conftest.err
31349   rm -f conftest.er1
31350   cat conftest.err >&5
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); } && {
31353          test -z "$ac_c_werror_flag" ||
31354          test ! -s conftest.err
31355        } && test -s conftest$ac_exeext &&
31356        $as_test_x conftest$ac_exeext; then
31357   eval "$as_ac_var=yes"
31358 else
31359   echo "$as_me: failed program was:" >&5
31360 sed 's/^/| /' conftest.$ac_ext >&5
31361
31362         eval "$as_ac_var=no"
31363 fi
31364
31365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31366       conftest$ac_exeext conftest.$ac_ext
31367 fi
31368 ac_res=`eval echo '${'$as_ac_var'}'`
31369                { echo "$as_me:$LINENO: result: $ac_res" >&5
31370 echo "${ECHO_T}$ac_res" >&6; }
31371 if test `eval echo '${'$as_ac_var'}'` = yes; then
31372   cat >>confdefs.h <<_ACEOF
31373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31374 _ACEOF
31375
31376 fi
31377 done
31378
31379 { echo "$as_me:$LINENO: checking for working mmap" >&5
31380 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31381 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31382   echo $ECHO_N "(cached) $ECHO_C" >&6
31383 else
31384   if test "$cross_compiling" = yes; then
31385   ac_cv_func_mmap_fixed_mapped=no
31386 else
31387   cat >conftest.$ac_ext <<_ACEOF
31388 /* confdefs.h.  */
31389 _ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h.  */
31393 $ac_includes_default
31394 /* malloc might have been renamed as rpl_malloc. */
31395 #undef malloc
31396
31397 /* Thanks to Mike Haertel and Jim Avera for this test.
31398    Here is a matrix of mmap possibilities:
31399         mmap private not fixed
31400         mmap private fixed at somewhere currently unmapped
31401         mmap private fixed at somewhere already mapped
31402         mmap shared not fixed
31403         mmap shared fixed at somewhere currently unmapped
31404         mmap shared fixed at somewhere already mapped
31405    For private mappings, we should verify that changes cannot be read()
31406    back from the file, nor mmap's back from the file at a different
31407    address.  (There have been systems where private was not correctly
31408    implemented like the infamous i386 svr4.0, and systems where the
31409    VM page cache was not coherent with the file system buffer cache
31410    like early versions of FreeBSD and possibly contemporary NetBSD.)
31411    For shared mappings, we should conversely verify that changes get
31412    propagated back to all the places they're supposed to be.
31413
31414    Grep wants private fixed already mapped.
31415    The main things grep needs to know about mmap are:
31416    * does it exist and is it safe to write into the mmap'd area
31417    * how to use it (BSD variants)  */
31418
31419 #include <fcntl.h>
31420 #include <sys/mman.h>
31421
31422 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31423 char *malloc ();
31424 #endif
31425
31426 /* This mess was copied from the GNU getpagesize.h.  */
31427 #ifndef HAVE_GETPAGESIZE
31428 /* Assume that all systems that can run configure have sys/param.h.  */
31429 # ifndef HAVE_SYS_PARAM_H
31430 #  define HAVE_SYS_PARAM_H 1
31431 # endif
31432
31433 # ifdef _SC_PAGESIZE
31434 #  define getpagesize() sysconf(_SC_PAGESIZE)
31435 # else /* no _SC_PAGESIZE */
31436 #  ifdef HAVE_SYS_PARAM_H
31437 #   include <sys/param.h>
31438 #   ifdef EXEC_PAGESIZE
31439 #    define getpagesize() EXEC_PAGESIZE
31440 #   else /* no EXEC_PAGESIZE */
31441 #    ifdef NBPG
31442 #     define getpagesize() NBPG * CLSIZE
31443 #     ifndef CLSIZE
31444 #      define CLSIZE 1
31445 #     endif /* no CLSIZE */
31446 #    else /* no NBPG */
31447 #     ifdef NBPC
31448 #      define getpagesize() NBPC
31449 #     else /* no NBPC */
31450 #      ifdef PAGESIZE
31451 #       define getpagesize() PAGESIZE
31452 #      endif /* PAGESIZE */
31453 #     endif /* no NBPC */
31454 #    endif /* no NBPG */
31455 #   endif /* no EXEC_PAGESIZE */
31456 #  else /* no HAVE_SYS_PARAM_H */
31457 #   define getpagesize() 8192   /* punt totally */
31458 #  endif /* no HAVE_SYS_PARAM_H */
31459 # endif /* no _SC_PAGESIZE */
31460
31461 #endif /* no HAVE_GETPAGESIZE */
31462
31463 int
31464 main ()
31465 {
31466   char *data, *data2, *data3;
31467   int i, pagesize;
31468   int fd;
31469
31470   pagesize = getpagesize ();
31471
31472   /* First, make a file with some known garbage in it. */
31473   data = (char *) malloc (pagesize);
31474   if (!data)
31475     return 1;
31476   for (i = 0; i < pagesize; ++i)
31477     *(data + i) = rand ();
31478   umask (0);
31479   fd = creat ("conftest.mmap", 0600);
31480   if (fd < 0)
31481     return 1;
31482   if (write (fd, data, pagesize) != pagesize)
31483     return 1;
31484   close (fd);
31485
31486   /* Next, try to mmap the file at a fixed address which already has
31487      something else allocated at it.  If we can, also make sure that
31488      we see the same garbage.  */
31489   fd = open ("conftest.mmap", O_RDWR);
31490   if (fd < 0)
31491     return 1;
31492   data2 = (char *) malloc (2 * pagesize);
31493   if (!data2)
31494     return 1;
31495   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31496   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31497                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31498     return 1;
31499   for (i = 0; i < pagesize; ++i)
31500     if (*(data + i) != *(data2 + i))
31501       return 1;
31502
31503   /* Finally, make sure that changes to the mapped area do not
31504      percolate back to the file as seen by read().  (This is a bug on
31505      some variants of i386 svr4.0.)  */
31506   for (i = 0; i < pagesize; ++i)
31507     *(data2 + i) = *(data2 + i) + 1;
31508   data3 = (char *) malloc (pagesize);
31509   if (!data3)
31510     return 1;
31511   if (read (fd, data3, pagesize) != pagesize)
31512     return 1;
31513   for (i = 0; i < pagesize; ++i)
31514     if (*(data + i) != *(data3 + i))
31515       return 1;
31516   close (fd);
31517   return 0;
31518 }
31519 _ACEOF
31520 rm -f conftest$ac_exeext
31521 if { (ac_try="$ac_link"
31522 case "(($ac_try" in
31523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524   *) ac_try_echo=$ac_try;;
31525 esac
31526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527   (eval "$ac_link") 2>&5
31528   ac_status=$?
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31531   { (case "(($ac_try" in
31532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533   *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536   (eval "$ac_try") 2>&5
31537   ac_status=$?
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); }; }; then
31540   ac_cv_func_mmap_fixed_mapped=yes
31541 else
31542   echo "$as_me: program exited with status $ac_status" >&5
31543 echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31545
31546 ( exit $ac_status )
31547 ac_cv_func_mmap_fixed_mapped=no
31548 fi
31549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31550 fi
31551
31552
31553 fi
31554 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31555 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31556 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31557
31558 cat >>confdefs.h <<\_ACEOF
31559 #define HAVE_MMAP 1
31560 _ACEOF
31561
31562 fi
31563 rm -f conftest.mmap
31564
31565   { echo "$as_me:$LINENO: checking for mmap of files" >&5
31566 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31567 if test "${ac_cv_func_mmap_file+set}" = set; then
31568   echo $ECHO_N "(cached) $ECHO_C" >&6
31569 else
31570    ac_ext=c
31571 ac_cpp='$CPP $CPPFLAGS'
31572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31575
31576   if test "$cross_compiling" = yes; then
31577   ac_cv_func_mmap_file=no
31578 else
31579   cat >conftest.$ac_ext <<_ACEOF
31580
31581     /* confdefs.h.  */
31582 _ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h.  */
31586
31587 #include <sys/types.h>
31588 #include <sys/mman.h>
31589 #include <fcntl.h>
31590
31591 int
31592 main ()
31593 {
31594
31595   int fd;
31596   fd = creat ("foo",0777);
31597   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31598   unlink ("foo");
31599   return (fd != (int) MAP_FAILED);
31600   ;
31601   return 0;
31602 }
31603 _ACEOF
31604 rm -f conftest$ac_exeext
31605 if { (ac_try="$ac_link"
31606 case "(($ac_try" in
31607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608   *) ac_try_echo=$ac_try;;
31609 esac
31610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611   (eval "$ac_link") 2>&5
31612   ac_status=$?
31613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31615   { (case "(($ac_try" in
31616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617   *) ac_try_echo=$ac_try;;
31618 esac
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620   (eval "$ac_try") 2>&5
31621   ac_status=$?
31622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623   (exit $ac_status); }; }; then
31624   ac_cv_func_mmap_file=yes
31625 else
31626   echo "$as_me: program exited with status $ac_status" >&5
31627 echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.$ac_ext >&5
31629
31630 ( exit $ac_status )
31631 ac_cv_func_mmap_file=no
31632 fi
31633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31634 fi
31635
31636
31637   ac_ext=c
31638 ac_cpp='$CPP $CPPFLAGS'
31639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31642
31643
31644 fi
31645 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31646 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31647 if test "$ac_cv_func_mmap_file" = yes; then
31648
31649 cat >>confdefs.h <<\_ACEOF
31650 #define HAVE_MMAP_FILE
31651 _ACEOF
31652
31653    MMAP_FILE=yes
31654
31655 fi
31656
31657   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31658 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31659 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31660   echo $ECHO_N "(cached) $ECHO_C" >&6
31661 else
31662   if test "$llvm_cv_os_type" = "Interix" ; then
31663    ac_cv_need_dev_zero_for_mmap=yes
31664  else
31665    ac_cv_need_dev_zero_for_mmap=no
31666  fi
31667
31668 fi
31669 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31670 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31671 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31672
31673 cat >>confdefs.h <<\_ACEOF
31674 #define NEED_DEV_ZERO_FOR_MMAP 1
31675 _ACEOF
31676
31677 fi
31678
31679   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31680   then
31681     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31682 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31683   fi
31684   if test "$ac_cv_func_mmap_file" = "no"
31685   then
31686     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31687 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31688   fi
31689 fi
31690
31691
31692
31693 for ac_func in __dso_handle
31694 do
31695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31699   echo $ECHO_N "(cached) $ECHO_C" >&6
31700 else
31701   cat >conftest.$ac_ext <<_ACEOF
31702 /* confdefs.h.  */
31703 _ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h.  */
31707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31709 #define $ac_func innocuous_$ac_func
31710
31711 /* System header to define __stub macros and hopefully few prototypes,
31712     which can conflict with char $ac_func (); below.
31713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31714     <limits.h> exists even on freestanding compilers.  */
31715
31716 #ifdef __STDC__
31717 # include <limits.h>
31718 #else
31719 # include <assert.h>
31720 #endif
31721
31722 #undef $ac_func
31723
31724 /* Override any GCC internal prototype to avoid an error.
31725    Use char because int might match the return type of a GCC
31726    builtin and then its argument prototype would still apply.  */
31727 #ifdef __cplusplus
31728 extern "C"
31729 #endif
31730 char $ac_func ();
31731 /* The GNU C library defines this for functions which it implements
31732     to always fail with ENOSYS.  Some functions are actually named
31733     something starting with __ and the normal name is an alias.  */
31734 #if defined __stub_$ac_func || defined __stub___$ac_func
31735 choke me
31736 #endif
31737
31738 int
31739 main ()
31740 {
31741 return $ac_func ();
31742   ;
31743   return 0;
31744 }
31745 _ACEOF
31746 rm -f conftest.$ac_objext conftest$ac_exeext
31747 if { (ac_try="$ac_link"
31748 case "(($ac_try" in
31749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31750   *) ac_try_echo=$ac_try;;
31751 esac
31752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31753   (eval "$ac_link") 2>conftest.er1
31754   ac_status=$?
31755   grep -v '^ *+' conftest.er1 >conftest.err
31756   rm -f conftest.er1
31757   cat conftest.err >&5
31758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759   (exit $ac_status); } && {
31760          test -z "$ac_c_werror_flag" ||
31761          test ! -s conftest.err
31762        } && test -s conftest$ac_exeext &&
31763        $as_test_x conftest$ac_exeext; then
31764   eval "$as_ac_var=yes"
31765 else
31766   echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31768
31769         eval "$as_ac_var=no"
31770 fi
31771
31772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31773       conftest$ac_exeext conftest.$ac_ext
31774 fi
31775 ac_res=`eval echo '${'$as_ac_var'}'`
31776                { echo "$as_me:$LINENO: result: $ac_res" >&5
31777 echo "${ECHO_T}$ac_res" >&6; }
31778 if test `eval echo '${'$as_ac_var'}'` = yes; then
31779   cat >>confdefs.h <<_ACEOF
31780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31781 _ACEOF
31782
31783 fi
31784 done
31785
31786
31787 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31788 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31789 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31790   echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792   llvm_cv_llvmgcc_sanity="no"
31793 if test -x "$LLVMGCC" ; then
31794   cp /dev/null conftest.c
31795   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31796       grep 'target datalayout =' > /dev/null 2>&1
31797   if test $? -eq 0 ; then
31798     llvm_cv_llvmgcc_sanity="yes"
31799   fi
31800   rm conftest.c
31801 fi
31802 fi
31803 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31804 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31805
31806 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31807   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31808 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31809   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31810   LLVMCC1=$llvmcc1path
31811
31812   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31813   LLVMCC1PLUS=$llvmcc1pluspath
31814
31815   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31816   LLVMGCCDIR=$llvmgccdir
31817
31818   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31819   LLVMGCCLIBEXEC=$llvmgcclibexec
31820
31821   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31822   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31823   LLVMGCC_VERSION=$llvmgccversion
31824
31825   LLVMGCC_MAJVERS=$llvmgccmajvers
31826
31827   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31828   LLVMGCC_LANGS=$llvmgcclangs
31829
31830   { echo "$as_me:$LINENO: result: ok" >&5
31831 echo "${ECHO_T}ok" >&6; }
31832 fi
31833
31834 SHLIBEXT=$libltdl_cv_shlibext
31835
31836
31837 # Translate the various configuration directories and other basic
31838 # information into substitutions that will end up in Makefile.config.in
31839 # that these configured values can be used by the makefiles
31840 if test "${prefix}" = "NONE" ; then
31841   prefix="/usr/local"
31842 fi
31843 eval LLVM_PREFIX="${prefix}";
31844 eval LLVM_BINDIR="${prefix}/bin";
31845 eval LLVM_LIBDIR="${prefix}/lib";
31846 eval LLVM_DATADIR="${prefix}/share/llvm";
31847 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31848 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31849 eval LLVM_INCLUDEDIR="${prefix}/include";
31850 eval LLVM_INFODIR="${prefix}/info";
31851 eval LLVM_MANDIR="${prefix}/man";
31852 LLVM_CONFIGTIME=`date`
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864 # Place the various directores into the config.h file as #defines so that we
31865 # can know about the installation paths within LLVM.
31866
31867 cat >>confdefs.h <<_ACEOF
31868 #define LLVM_PREFIX "$LLVM_PREFIX"
31869 _ACEOF
31870
31871
31872 cat >>confdefs.h <<_ACEOF
31873 #define LLVM_BINDIR "$LLVM_BINDIR"
31874 _ACEOF
31875
31876
31877 cat >>confdefs.h <<_ACEOF
31878 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31879 _ACEOF
31880
31881
31882 cat >>confdefs.h <<_ACEOF
31883 #define LLVM_DATADIR "$LLVM_DATADIR"
31884 _ACEOF
31885
31886
31887 cat >>confdefs.h <<_ACEOF
31888 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31889 _ACEOF
31890
31891
31892 cat >>confdefs.h <<_ACEOF
31893 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31894 _ACEOF
31895
31896
31897 cat >>confdefs.h <<_ACEOF
31898 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31899 _ACEOF
31900
31901
31902 cat >>confdefs.h <<_ACEOF
31903 #define LLVM_INFODIR "$LLVM_INFODIR"
31904 _ACEOF
31905
31906
31907 cat >>confdefs.h <<_ACEOF
31908 #define LLVM_MANDIR "$LLVM_MANDIR"
31909 _ACEOF
31910
31911
31912 cat >>confdefs.h <<_ACEOF
31913 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31914 _ACEOF
31915
31916
31917 cat >>confdefs.h <<_ACEOF
31918 #define LLVM_HOSTTRIPLE "$host"
31919 _ACEOF
31920
31921
31922 # Determine which bindings to build.
31923 if test "$BINDINGS_TO_BUILD" = auto ; then
31924   BINDINGS_TO_BUILD=""
31925   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31926     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31927   fi
31928 fi
31929 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31930
31931
31932 # This isn't really configurey, but it avoids having to repeat the list in
31933 # other files.
31934 ALL_BINDINGS=ocaml
31935
31936
31937 # Do any work necessary to ensure that bindings have what they need.
31938 binding_prereqs_failed=0
31939 for a_binding in $BINDINGS_TO_BUILD ; do
31940   case "$a_binding" in
31941   ocaml)
31942     if test "x$OCAMLC" = x ; then
31943       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31944 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31945       binding_prereqs_failed=1
31946     fi
31947     if test "x$OCAMLDEP" = x ; then
31948       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31949 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31950       binding_prereqs_failed=1
31951     fi
31952     if test "x$OCAMLOPT" = x ; then
31953       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31954 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31955           fi
31956     if test "x$with_ocaml_libdir" != xauto ; then
31957       OCAML_LIBDIR=$with_ocaml_libdir
31958
31959     else
31960       ocaml_stdlib="`"$OCAMLC" -where`"
31961       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31962       then
31963         # ocaml stdlib is beneath our prefix; use stdlib
31964         OCAML_LIBDIR=$ocaml_stdlib
31965
31966       else
31967         # ocaml stdlib is outside our prefix; use libdir/ocaml
31968         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31969
31970       fi
31971     fi
31972     ;;
31973   esac
31974 done
31975 if test "$binding_prereqs_failed" = 1 ; then
31976   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31977 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31978    { (exit 1); exit 1; }; }
31979 fi
31980
31981
31982
31983 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31984
31985 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31986
31987 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31988
31989 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31990
31991 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31992
31993
31994 ac_config_files="$ac_config_files Makefile.config"
31995
31996
31997 ac_config_files="$ac_config_files llvm.spec"
31998
31999
32000 ac_config_files="$ac_config_files docs/doxygen.cfg"
32001
32002
32003 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32004
32005
32006 ac_config_commands="$ac_config_commands setup"
32007
32008 ac_config_commands="$ac_config_commands Makefile"
32009
32010
32011 ac_config_commands="$ac_config_commands Makefile.common"
32012
32013
32014 ac_config_commands="$ac_config_commands examples/Makefile"
32015
32016
32017 ac_config_commands="$ac_config_commands lib/Makefile"
32018
32019
32020 ac_config_commands="$ac_config_commands runtime/Makefile"
32021
32022
32023 ac_config_commands="$ac_config_commands test/Makefile"
32024
32025
32026 ac_config_commands="$ac_config_commands test/Makefile.tests"
32027
32028
32029 ac_config_commands="$ac_config_commands tools/Makefile"
32030
32031
32032 ac_config_commands="$ac_config_commands utils/Makefile"
32033
32034
32035 ac_config_commands="$ac_config_commands projects/Makefile"
32036
32037
32038 ac_config_commands="$ac_config_commands bindings/Makefile"
32039
32040
32041 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32042
32043
32044
32045 cat >confcache <<\_ACEOF
32046 # This file is a shell script that caches the results of configure
32047 # tests run on this system so they can be shared between configure
32048 # scripts and configure runs, see configure's option --config-cache.
32049 # It is not useful on other systems.  If it contains results you don't
32050 # want to keep, you may remove or edit it.
32051 #
32052 # config.status only pays attention to the cache file if you give it
32053 # the --recheck option to rerun configure.
32054 #
32055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32057 # following values.
32058
32059 _ACEOF
32060
32061 # The following way of writing the cache mishandles newlines in values,
32062 # but we know of no workaround that is simple, portable, and efficient.
32063 # So, we kill variables containing newlines.
32064 # Ultrix sh set writes to stderr and can't be redirected directly,
32065 # and sets the high bit in the cache file unless we assign to the vars.
32066 (
32067   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32068     eval ac_val=\$$ac_var
32069     case $ac_val in #(
32070     *${as_nl}*)
32071       case $ac_var in #(
32072       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32073 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32074       esac
32075       case $ac_var in #(
32076       _ | IFS | as_nl) ;; #(
32077       *) $as_unset $ac_var ;;
32078       esac ;;
32079     esac
32080   done
32081
32082   (set) 2>&1 |
32083     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32084     *${as_nl}ac_space=\ *)
32085       # `set' does not quote correctly, so add quotes (double-quote
32086       # substitution turns \\\\ into \\, and sed turns \\ into \).
32087       sed -n \
32088         "s/'/'\\\\''/g;
32089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32090       ;; #(
32091     *)
32092       # `set' quotes correctly as required by POSIX, so do not add quotes.
32093       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32094       ;;
32095     esac |
32096     sort
32097 ) |
32098   sed '
32099      /^ac_cv_env_/b end
32100      t clear
32101      :clear
32102      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32103      t end
32104      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32105      :end' >>confcache
32106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32107   if test -w "$cache_file"; then
32108     test "x$cache_file" != "x/dev/null" &&
32109       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32110 echo "$as_me: updating cache $cache_file" >&6;}
32111     cat confcache >$cache_file
32112   else
32113     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32114 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32115   fi
32116 fi
32117 rm -f confcache
32118
32119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32120 # Let make expand exec_prefix.
32121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32122
32123 DEFS=-DHAVE_CONFIG_H
32124
32125 ac_libobjs=
32126 ac_ltlibobjs=
32127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32128   # 1. Remove the extension, and $U if already installed.
32129   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32130   ac_i=`echo "$ac_i" | sed "$ac_script"`
32131   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32132   #    will be set to the directory where LIBOBJS objects are built.
32133   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32134   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32135 done
32136 LIBOBJS=$ac_libobjs
32137
32138 LTLIBOBJS=$ac_ltlibobjs
32139
32140
32141 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32142   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32143 Usually this means the macro was only invoked conditionally." >&5
32144 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32145 Usually this means the macro was only invoked conditionally." >&2;}
32146    { (exit 1); exit 1; }; }
32147 fi
32148 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32149   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32150 Usually this means the macro was only invoked conditionally." >&5
32151 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32152 Usually this means the macro was only invoked conditionally." >&2;}
32153    { (exit 1); exit 1; }; }
32154 fi
32155
32156 : ${CONFIG_STATUS=./config.status}
32157 ac_clean_files_save=$ac_clean_files
32158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32161 cat >$CONFIG_STATUS <<_ACEOF
32162 #! $SHELL
32163 # Generated by $as_me.
32164 # Run this file to recreate the current configuration.
32165 # Compiler output produced by configure, useful for debugging
32166 # configure, is in config.log if it exists.
32167
32168 debug=false
32169 ac_cs_recheck=false
32170 ac_cs_silent=false
32171 SHELL=\${CONFIG_SHELL-$SHELL}
32172 _ACEOF
32173
32174 cat >>$CONFIG_STATUS <<\_ACEOF
32175 ## --------------------- ##
32176 ## M4sh Initialization.  ##
32177 ## --------------------- ##
32178
32179 # Be more Bourne compatible
32180 DUALCASE=1; export DUALCASE # for MKS sh
32181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32182   emulate sh
32183   NULLCMD=:
32184   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32185   # is contrary to our usage.  Disable this feature.
32186   alias -g '${1+"$@"}'='"$@"'
32187   setopt NO_GLOB_SUBST
32188 else
32189   case `(set -o) 2>/dev/null` in
32190   *posix*) set -o posix ;;
32191 esac
32192
32193 fi
32194
32195
32196
32197
32198 # PATH needs CR
32199 # Avoid depending upon Character Ranges.
32200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32203 as_cr_digits='0123456789'
32204 as_cr_alnum=$as_cr_Letters$as_cr_digits
32205
32206 # The user is always right.
32207 if test "${PATH_SEPARATOR+set}" != set; then
32208   echo "#! /bin/sh" >conf$$.sh
32209   echo  "exit 0"   >>conf$$.sh
32210   chmod +x conf$$.sh
32211   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32212     PATH_SEPARATOR=';'
32213   else
32214     PATH_SEPARATOR=:
32215   fi
32216   rm -f conf$$.sh
32217 fi
32218
32219 # Support unset when possible.
32220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32221   as_unset=unset
32222 else
32223   as_unset=false
32224 fi
32225
32226
32227 # IFS
32228 # We need space, tab and new line, in precisely that order.  Quoting is
32229 # there to prevent editors from complaining about space-tab.
32230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32231 # splitting by setting IFS to empty value.)
32232 as_nl='
32233 '
32234 IFS=" ""        $as_nl"
32235
32236 # Find who we are.  Look in the path if we contain no directory separator.
32237 case $0 in
32238   *[\\/]* ) as_myself=$0 ;;
32239   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32240 for as_dir in $PATH
32241 do
32242   IFS=$as_save_IFS
32243   test -z "$as_dir" && as_dir=.
32244   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32245 done
32246 IFS=$as_save_IFS
32247
32248      ;;
32249 esac
32250 # We did not find ourselves, most probably we were run as `sh COMMAND'
32251 # in which case we are not to be found in the path.
32252 if test "x$as_myself" = x; then
32253   as_myself=$0
32254 fi
32255 if test ! -f "$as_myself"; then
32256   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32257   { (exit 1); exit 1; }
32258 fi
32259
32260 # Work around bugs in pre-3.0 UWIN ksh.
32261 for as_var in ENV MAIL MAILPATH
32262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32263 done
32264 PS1='$ '
32265 PS2='> '
32266 PS4='+ '
32267
32268 # NLS nuisances.
32269 for as_var in \
32270   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32271   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32272   LC_TELEPHONE LC_TIME
32273 do
32274   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32275     eval $as_var=C; export $as_var
32276   else
32277     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32278   fi
32279 done
32280
32281 # Required to use basename.
32282 if expr a : '\(a\)' >/dev/null 2>&1 &&
32283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32284   as_expr=expr
32285 else
32286   as_expr=false
32287 fi
32288
32289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32290   as_basename=basename
32291 else
32292   as_basename=false
32293 fi
32294
32295
32296 # Name of the executable.
32297 as_me=`$as_basename -- "$0" ||
32298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32299          X"$0" : 'X\(//\)$' \| \
32300          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32301 echo X/"$0" |
32302     sed '/^.*\/\([^/][^/]*\)\/*$/{
32303             s//\1/
32304             q
32305           }
32306           /^X\/\(\/\/\)$/{
32307             s//\1/
32308             q
32309           }
32310           /^X\/\(\/\).*/{
32311             s//\1/
32312             q
32313           }
32314           s/.*/./; q'`
32315
32316 # CDPATH.
32317 $as_unset CDPATH
32318
32319
32320
32321   as_lineno_1=$LINENO
32322   as_lineno_2=$LINENO
32323   test "x$as_lineno_1" != "x$as_lineno_2" &&
32324   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32325
32326   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32327   # uniformly replaced by the line number.  The first 'sed' inserts a
32328   # line-number line after each line using $LINENO; the second 'sed'
32329   # does the real work.  The second script uses 'N' to pair each
32330   # line-number line with the line containing $LINENO, and appends
32331   # trailing '-' during substitution so that $LINENO is not a special
32332   # case at line end.
32333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32334   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32335   # E. McMahon (1931-1989) for sed's syntax.  :-)
32336   sed -n '
32337     p
32338     /[$]LINENO/=
32339   ' <$as_myself |
32340     sed '
32341       s/[$]LINENO.*/&-/
32342       t lineno
32343       b
32344       :lineno
32345       N
32346       :loop
32347       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32348       t loop
32349       s/-\n.*//
32350     ' >$as_me.lineno &&
32351   chmod +x "$as_me.lineno" ||
32352     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32353    { (exit 1); exit 1; }; }
32354
32355   # Don't try to exec as it changes $[0], causing all sort of problems
32356   # (the dirname of $[0] is not the place where we might find the
32357   # original and so on.  Autoconf is especially sensitive to this).
32358   . "./$as_me.lineno"
32359   # Exit status is that of the last command.
32360   exit
32361 }
32362
32363
32364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32365   as_dirname=dirname
32366 else
32367   as_dirname=false
32368 fi
32369
32370 ECHO_C= ECHO_N= ECHO_T=
32371 case `echo -n x` in
32372 -n*)
32373   case `echo 'x\c'` in
32374   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32375   *)   ECHO_C='\c';;
32376   esac;;
32377 *)
32378   ECHO_N='-n';;
32379 esac
32380
32381 if expr a : '\(a\)' >/dev/null 2>&1 &&
32382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32383   as_expr=expr
32384 else
32385   as_expr=false
32386 fi
32387
32388 rm -f conf$$ conf$$.exe conf$$.file
32389 if test -d conf$$.dir; then
32390   rm -f conf$$.dir/conf$$.file
32391 else
32392   rm -f conf$$.dir
32393   mkdir conf$$.dir
32394 fi
32395 echo >conf$$.file
32396 if ln -s conf$$.file conf$$ 2>/dev/null; then
32397   as_ln_s='ln -s'
32398   # ... but there are two gotchas:
32399   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32400   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32401   # In both cases, we have to default to `cp -p'.
32402   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32403     as_ln_s='cp -p'
32404 elif ln conf$$.file conf$$ 2>/dev/null; then
32405   as_ln_s=ln
32406 else
32407   as_ln_s='cp -p'
32408 fi
32409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32410 rmdir conf$$.dir 2>/dev/null
32411
32412 if mkdir -p . 2>/dev/null; then
32413   as_mkdir_p=:
32414 else
32415   test -d ./-p && rmdir ./-p
32416   as_mkdir_p=false
32417 fi
32418
32419 if test -x / >/dev/null 2>&1; then
32420   as_test_x='test -x'
32421 else
32422   if ls -dL / >/dev/null 2>&1; then
32423     as_ls_L_option=L
32424   else
32425     as_ls_L_option=
32426   fi
32427   as_test_x='
32428     eval sh -c '\''
32429       if test -d "$1"; then
32430         test -d "$1/.";
32431       else
32432         case $1 in
32433         -*)set "./$1";;
32434         esac;
32435         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32436         ???[sx]*):;;*)false;;esac;fi
32437     '\'' sh
32438   '
32439 fi
32440 as_executable_p=$as_test_x
32441
32442 # Sed expression to map a string onto a valid CPP name.
32443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32444
32445 # Sed expression to map a string onto a valid variable name.
32446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32447
32448
32449 exec 6>&1
32450
32451 # Save the log message, to keep $[0] and so on meaningful, and to
32452 # report actual input values of CONFIG_FILES etc. instead of their
32453 # values after options handling.
32454 ac_log="
32455 This file was extended by llvm $as_me 2.2svn, which was
32456 generated by GNU Autoconf 2.61.  Invocation command line was
32457
32458   CONFIG_FILES    = $CONFIG_FILES
32459   CONFIG_HEADERS  = $CONFIG_HEADERS
32460   CONFIG_LINKS    = $CONFIG_LINKS
32461   CONFIG_COMMANDS = $CONFIG_COMMANDS
32462   $ $0 $@
32463
32464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32465 "
32466
32467 _ACEOF
32468
32469 cat >>$CONFIG_STATUS <<_ACEOF
32470 # Files that config.status was made for.
32471 config_files="$ac_config_files"
32472 config_headers="$ac_config_headers"
32473 config_commands="$ac_config_commands"
32474
32475 _ACEOF
32476
32477 cat >>$CONFIG_STATUS <<\_ACEOF
32478 ac_cs_usage="\
32479 \`$as_me' instantiates files from templates according to the
32480 current configuration.
32481
32482 Usage: $0 [OPTIONS] [FILE]...
32483
32484   -h, --help       print this help, then exit
32485   -V, --version    print version number and configuration settings, then exit
32486   -q, --quiet      do not print progress messages
32487   -d, --debug      don't remove temporary files
32488       --recheck    update $as_me by reconfiguring in the same conditions
32489   --file=FILE[:TEMPLATE]
32490                    instantiate the configuration file FILE
32491   --header=FILE[:TEMPLATE]
32492                    instantiate the configuration header FILE
32493
32494 Configuration files:
32495 $config_files
32496
32497 Configuration headers:
32498 $config_headers
32499
32500 Configuration commands:
32501 $config_commands
32502
32503 Report bugs to <bug-autoconf@gnu.org>."
32504
32505 _ACEOF
32506 cat >>$CONFIG_STATUS <<_ACEOF
32507 ac_cs_version="\\
32508 llvm config.status 2.2svn
32509 configured by $0, generated by GNU Autoconf 2.61,
32510   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32511
32512 Copyright (C) 2006 Free Software Foundation, Inc.
32513 This config.status script is free software; the Free Software Foundation
32514 gives unlimited permission to copy, distribute and modify it."
32515
32516 ac_pwd='$ac_pwd'
32517 srcdir='$srcdir'
32518 INSTALL='$INSTALL'
32519 _ACEOF
32520
32521 cat >>$CONFIG_STATUS <<\_ACEOF
32522 # If no file are specified by the user, then we need to provide default
32523 # value.  By we need to know if files were specified by the user.
32524 ac_need_defaults=:
32525 while test $# != 0
32526 do
32527   case $1 in
32528   --*=*)
32529     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32530     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32531     ac_shift=:
32532     ;;
32533   *)
32534     ac_option=$1
32535     ac_optarg=$2
32536     ac_shift=shift
32537     ;;
32538   esac
32539
32540   case $ac_option in
32541   # Handling of the options.
32542   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32543     ac_cs_recheck=: ;;
32544   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32545     echo "$ac_cs_version"; exit ;;
32546   --debug | --debu | --deb | --de | --d | -d )
32547     debug=: ;;
32548   --file | --fil | --fi | --f )
32549     $ac_shift
32550     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32551     ac_need_defaults=false;;
32552   --header | --heade | --head | --hea )
32553     $ac_shift
32554     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32555     ac_need_defaults=false;;
32556   --he | --h)
32557     # Conflict between --help and --header
32558     { echo "$as_me: error: ambiguous option: $1
32559 Try \`$0 --help' for more information." >&2
32560    { (exit 1); exit 1; }; };;
32561   --help | --hel | -h )
32562     echo "$ac_cs_usage"; exit ;;
32563   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32564   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32565     ac_cs_silent=: ;;
32566
32567   # This is an error.
32568   -*) { echo "$as_me: error: unrecognized option: $1
32569 Try \`$0 --help' for more information." >&2
32570    { (exit 1); exit 1; }; } ;;
32571
32572   *) ac_config_targets="$ac_config_targets $1"
32573      ac_need_defaults=false ;;
32574
32575   esac
32576   shift
32577 done
32578
32579 ac_configure_extra_args=
32580
32581 if $ac_cs_silent; then
32582   exec 6>/dev/null
32583   ac_configure_extra_args="$ac_configure_extra_args --silent"
32584 fi
32585
32586 _ACEOF
32587 cat >>$CONFIG_STATUS <<_ACEOF
32588 if \$ac_cs_recheck; then
32589   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32590   CONFIG_SHELL=$SHELL
32591   export CONFIG_SHELL
32592   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32593 fi
32594
32595 _ACEOF
32596 cat >>$CONFIG_STATUS <<\_ACEOF
32597 exec 5>>config.log
32598 {
32599   echo
32600   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32601 ## Running $as_me. ##
32602 _ASBOX
32603   echo "$ac_log"
32604 } >&5
32605
32606 _ACEOF
32607 cat >>$CONFIG_STATUS <<_ACEOF
32608 #
32609 # INIT-COMMANDS
32610 #
32611 llvm_src="${srcdir}"
32612
32613 _ACEOF
32614
32615 cat >>$CONFIG_STATUS <<\_ACEOF
32616
32617 # Handling of arguments.
32618 for ac_config_target in $ac_config_targets
32619 do
32620   case $ac_config_target in
32621     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32622     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32623     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32624     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32625     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32626     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32627     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32628     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32629     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32630     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32631     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32632     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32633     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32634     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32635     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32636     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32637     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32638     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32639     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32640     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32641     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32642     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32643
32644   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32646    { (exit 1); exit 1; }; };;
32647   esac
32648 done
32649
32650
32651 # If the user did not use the arguments to specify the items to instantiate,
32652 # then the envvar interface is used.  Set only those that are not.
32653 # We use the long form for the default assignment because of an extremely
32654 # bizarre bug on SunOS 4.1.3.
32655 if $ac_need_defaults; then
32656   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32657   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32658   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32659 fi
32660
32661 # Have a temporary directory for convenience.  Make it in the build tree
32662 # simply because there is no reason against having it here, and in addition,
32663 # creating and moving files from /tmp can sometimes cause problems.
32664 # Hook for its removal unless debugging.
32665 # Note that there is a small window in which the directory will not be cleaned:
32666 # after its creation but before its name has been assigned to `$tmp'.
32667 $debug ||
32668 {
32669   tmp=
32670   trap 'exit_status=$?
32671   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32672 ' 0
32673   trap '{ (exit 1); exit 1; }' 1 2 13 15
32674 }
32675 # Create a (secure) tmp directory for tmp files.
32676
32677 {
32678   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32679   test -n "$tmp" && test -d "$tmp"
32680 }  ||
32681 {
32682   tmp=./conf$$-$RANDOM
32683   (umask 077 && mkdir "$tmp")
32684 } ||
32685 {
32686    echo "$me: cannot create a temporary directory in ." >&2
32687    { (exit 1); exit 1; }
32688 }
32689
32690 #
32691 # Set up the sed scripts for CONFIG_FILES section.
32692 #
32693
32694 # No need to generate the scripts if there are no CONFIG_FILES.
32695 # This happens for instance when ./config.status config.h
32696 if test -n "$CONFIG_FILES"; then
32697
32698 _ACEOF
32699
32700
32701
32702 ac_delim='%!_!# '
32703 for ac_last_try in false false false false false :; do
32704   cat >conf$$subs.sed <<_ACEOF
32705 SHELL!$SHELL$ac_delim
32706 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32707 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32708 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32709 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32710 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32711 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32712 exec_prefix!$exec_prefix$ac_delim
32713 prefix!$prefix$ac_delim
32714 program_transform_name!$program_transform_name$ac_delim
32715 bindir!$bindir$ac_delim
32716 sbindir!$sbindir$ac_delim
32717 libexecdir!$libexecdir$ac_delim
32718 datarootdir!$datarootdir$ac_delim
32719 datadir!$datadir$ac_delim
32720 sysconfdir!$sysconfdir$ac_delim
32721 sharedstatedir!$sharedstatedir$ac_delim
32722 localstatedir!$localstatedir$ac_delim
32723 includedir!$includedir$ac_delim
32724 oldincludedir!$oldincludedir$ac_delim
32725 docdir!$docdir$ac_delim
32726 infodir!$infodir$ac_delim
32727 htmldir!$htmldir$ac_delim
32728 dvidir!$dvidir$ac_delim
32729 pdfdir!$pdfdir$ac_delim
32730 psdir!$psdir$ac_delim
32731 libdir!$libdir$ac_delim
32732 localedir!$localedir$ac_delim
32733 mandir!$mandir$ac_delim
32734 DEFS!$DEFS$ac_delim
32735 ECHO_C!$ECHO_C$ac_delim
32736 ECHO_N!$ECHO_N$ac_delim
32737 ECHO_T!$ECHO_T$ac_delim
32738 LIBS!$LIBS$ac_delim
32739 build_alias!$build_alias$ac_delim
32740 host_alias!$host_alias$ac_delim
32741 target_alias!$target_alias$ac_delim
32742 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32743 subdirs!$subdirs$ac_delim
32744 build!$build$ac_delim
32745 build_cpu!$build_cpu$ac_delim
32746 build_vendor!$build_vendor$ac_delim
32747 build_os!$build_os$ac_delim
32748 host!$host$ac_delim
32749 host_cpu!$host_cpu$ac_delim
32750 host_vendor!$host_vendor$ac_delim
32751 host_os!$host_os$ac_delim
32752 target!$target$ac_delim
32753 target_cpu!$target_cpu$ac_delim
32754 target_vendor!$target_vendor$ac_delim
32755 target_os!$target_os$ac_delim
32756 OS!$OS$ac_delim
32757 LINKALL!$LINKALL$ac_delim
32758 NOLINKALL!$NOLINKALL$ac_delim
32759 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32760 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32761 ARCH!$ARCH$ac_delim
32762 ENDIAN!$ENDIAN$ac_delim
32763 CC!$CC$ac_delim
32764 CFLAGS!$CFLAGS$ac_delim
32765 LDFLAGS!$LDFLAGS$ac_delim
32766 CPPFLAGS!$CPPFLAGS$ac_delim
32767 ac_ct_CC!$ac_ct_CC$ac_delim
32768 EXEEXT!$EXEEXT$ac_delim
32769 OBJEXT!$OBJEXT$ac_delim
32770 CPP!$CPP$ac_delim
32771 GREP!$GREP$ac_delim
32772 EGREP!$EGREP$ac_delim
32773 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32774 BUILD_CC!$BUILD_CC$ac_delim
32775 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32776 CVSBUILD!$CVSBUILD$ac_delim
32777 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32778 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32779 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32780 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32781 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32782 JIT!$JIT$ac_delim
32783 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32784 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32785 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32786 ENABLE_PIC!$ENABLE_PIC$ac_delim
32787 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32788 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32789 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32790 CXX!$CXX$ac_delim
32791 CXXFLAGS!$CXXFLAGS$ac_delim
32792 ac_ct_CXX!$ac_ct_CXX$ac_delim
32793 LEX!$LEX$ac_delim
32794 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32795 LEXLIB!$LEXLIB$ac_delim
32796 FLEX!$FLEX$ac_delim
32797 YACC!$YACC$ac_delim
32798 YFLAGS!$YFLAGS$ac_delim
32799 BISON!$BISON$ac_delim
32800 NM!$NM$ac_delim
32801 ifGNUmake!$ifGNUmake$ac_delim
32802 _ACEOF
32803
32804   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32805     break
32806   elif $ac_last_try; then
32807     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32808 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32809    { (exit 1); exit 1; }; }
32810   else
32811     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32812   fi
32813 done
32814
32815 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32816 if test -n "$ac_eof"; then
32817   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32818   ac_eof=`expr $ac_eof + 1`
32819 fi
32820
32821 cat >>$CONFIG_STATUS <<_ACEOF
32822 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32824 _ACEOF
32825 sed '
32826 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32827 s/^/s,@/; s/!/@,|#_!!_#|/
32828 :n
32829 t n
32830 s/'"$ac_delim"'$/,g/; t
32831 s/$/\\/; p
32832 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32833 ' >>$CONFIG_STATUS <conf$$subs.sed
32834 rm -f conf$$subs.sed
32835 cat >>$CONFIG_STATUS <<_ACEOF
32836 CEOF$ac_eof
32837 _ACEOF
32838
32839
32840 ac_delim='%!_!# '
32841 for ac_last_try in false false false false false :; do
32842   cat >conf$$subs.sed <<_ACEOF
32843 LN_S!$LN_S$ac_delim
32844 CMP!$CMP$ac_delim
32845 CP!$CP$ac_delim
32846 DATE!$DATE$ac_delim
32847 FIND!$FIND$ac_delim
32848 MKDIR!$MKDIR$ac_delim
32849 MV!$MV$ac_delim
32850 RANLIB!$RANLIB$ac_delim
32851 RM!$RM$ac_delim
32852 SED!$SED$ac_delim
32853 TAR!$TAR$ac_delim
32854 BINPWD!$BINPWD$ac_delim
32855 GRAPHVIZ!$GRAPHVIZ$ac_delim
32856 DOT!$DOT$ac_delim
32857 GV!$GV$ac_delim
32858 DOTTY!$DOTTY$ac_delim
32859 PERL!$PERL$ac_delim
32860 HAVE_PERL!$HAVE_PERL$ac_delim
32861 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32862 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32863 INSTALL_DATA!$INSTALL_DATA$ac_delim
32864 BZIP2!$BZIP2$ac_delim
32865 DOXYGEN!$DOXYGEN$ac_delim
32866 GROFF!$GROFF$ac_delim
32867 GZIP!$GZIP$ac_delim
32868 POD2HTML!$POD2HTML$ac_delim
32869 POD2MAN!$POD2MAN$ac_delim
32870 RUNTEST!$RUNTEST$ac_delim
32871 TCLSH!$TCLSH$ac_delim
32872 ZIP!$ZIP$ac_delim
32873 OCAMLC!$OCAMLC$ac_delim
32874 OCAMLOPT!$OCAMLOPT$ac_delim
32875 OCAMLDEP!$OCAMLDEP$ac_delim
32876 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32877 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32878 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32879 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32880 LIBADD_DL!$LIBADD_DL$ac_delim
32881 ECHO!$ECHO$ac_delim
32882 AR!$AR$ac_delim
32883 STRIP!$STRIP$ac_delim
32884 CXXCPP!$CXXCPP$ac_delim
32885 F77!$F77$ac_delim
32886 FFLAGS!$FFLAGS$ac_delim
32887 ac_ct_F77!$ac_ct_F77$ac_delim
32888 LIBTOOL!$LIBTOOL$ac_delim
32889 LLVMGCC!$LLVMGCC$ac_delim
32890 LLVMGXX!$LLVMGXX$ac_delim
32891 USE_UDIS86!$USE_UDIS86$ac_delim
32892 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32893 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32894 ALLOCA!$ALLOCA$ac_delim
32895 MMAP_FILE!$MMAP_FILE$ac_delim
32896 LLVMCC1!$LLVMCC1$ac_delim
32897 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32898 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32899 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32900 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32901 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32902 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32903 SHLIBEXT!$SHLIBEXT$ac_delim
32904 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32905 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32906 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32907 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32908 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32909 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32910 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32911 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32912 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32913 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32914 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32915 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32916 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32917 LIBOBJS!$LIBOBJS$ac_delim
32918 LTLIBOBJS!$LTLIBOBJS$ac_delim
32919 _ACEOF
32920
32921   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32922     break
32923   elif $ac_last_try; then
32924     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32925 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32926    { (exit 1); exit 1; }; }
32927   else
32928     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32929   fi
32930 done
32931
32932 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32933 if test -n "$ac_eof"; then
32934   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32935   ac_eof=`expr $ac_eof + 1`
32936 fi
32937
32938 cat >>$CONFIG_STATUS <<_ACEOF
32939 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32941 _ACEOF
32942 sed '
32943 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32944 s/^/s,@/; s/!/@,|#_!!_#|/
32945 :n
32946 t n
32947 s/'"$ac_delim"'$/,g/; t
32948 s/$/\\/; p
32949 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32950 ' >>$CONFIG_STATUS <conf$$subs.sed
32951 rm -f conf$$subs.sed
32952 cat >>$CONFIG_STATUS <<_ACEOF
32953 :end
32954 s/|#_!!_#|//g
32955 CEOF$ac_eof
32956 _ACEOF
32957
32958
32959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32961 # trailing colons and then remove the whole line if VPATH becomes empty
32962 # (actually we leave an empty line to preserve line numbers).
32963 if test "x$srcdir" = x.; then
32964   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32965 s/:*\$(srcdir):*/:/
32966 s/:*\${srcdir}:*/:/
32967 s/:*@srcdir@:*/:/
32968 s/^\([^=]*=[     ]*\):*/\1/
32969 s/:*$//
32970 s/^[^=]*=[       ]*$//
32971 }'
32972 fi
32973
32974 cat >>$CONFIG_STATUS <<\_ACEOF
32975 fi # test -n "$CONFIG_FILES"
32976
32977
32978 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
32979 do
32980   case $ac_tag in
32981   :[FHLC]) ac_mode=$ac_tag; continue;;
32982   esac
32983   case $ac_mode$ac_tag in
32984   :[FHL]*:*);;
32985   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32986 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32987    { (exit 1); exit 1; }; };;
32988   :[FH]-) ac_tag=-:-;;
32989   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32990   esac
32991   ac_save_IFS=$IFS
32992   IFS=:
32993   set x $ac_tag
32994   IFS=$ac_save_IFS
32995   shift
32996   ac_file=$1
32997   shift
32998
32999   case $ac_mode in
33000   :L) ac_source=$1;;
33001   :[FH])
33002     ac_file_inputs=
33003     for ac_f
33004     do
33005       case $ac_f in
33006       -) ac_f="$tmp/stdin";;
33007       *) # Look for the file first in the build tree, then in the source tree
33008          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33009          # because $ac_f cannot contain `:'.
33010          test -f "$ac_f" ||
33011            case $ac_f in
33012            [\\/$]*) false;;
33013            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33014            esac ||
33015            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33016 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33017    { (exit 1); exit 1; }; };;
33018       esac
33019       ac_file_inputs="$ac_file_inputs $ac_f"
33020     done
33021
33022     # Let's still pretend it is `configure' which instantiates (i.e., don't
33023     # use $as_me), people would be surprised to read:
33024     #    /* config.h.  Generated by config.status.  */
33025     configure_input="Generated from "`IFS=:
33026           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33027     if test x"$ac_file" != x-; then
33028       configure_input="$ac_file.  $configure_input"
33029       { echo "$as_me:$LINENO: creating $ac_file" >&5
33030 echo "$as_me: creating $ac_file" >&6;}
33031     fi
33032
33033     case $ac_tag in
33034     *:-:* | *:-) cat >"$tmp/stdin";;
33035     esac
33036     ;;
33037   esac
33038
33039   ac_dir=`$as_dirname -- "$ac_file" ||
33040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33041          X"$ac_file" : 'X\(//\)[^/]' \| \
33042          X"$ac_file" : 'X\(//\)$' \| \
33043          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33044 echo X"$ac_file" |
33045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33046             s//\1/
33047             q
33048           }
33049           /^X\(\/\/\)[^/].*/{
33050             s//\1/
33051             q
33052           }
33053           /^X\(\/\/\)$/{
33054             s//\1/
33055             q
33056           }
33057           /^X\(\/\).*/{
33058             s//\1/
33059             q
33060           }
33061           s/.*/./; q'`
33062   { as_dir="$ac_dir"
33063   case $as_dir in #(
33064   -*) as_dir=./$as_dir;;
33065   esac
33066   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33067     as_dirs=
33068     while :; do
33069       case $as_dir in #(
33070       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33071       *) as_qdir=$as_dir;;
33072       esac
33073       as_dirs="'$as_qdir' $as_dirs"
33074       as_dir=`$as_dirname -- "$as_dir" ||
33075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33076          X"$as_dir" : 'X\(//\)[^/]' \| \
33077          X"$as_dir" : 'X\(//\)$' \| \
33078          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33079 echo X"$as_dir" |
33080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33081             s//\1/
33082             q
33083           }
33084           /^X\(\/\/\)[^/].*/{
33085             s//\1/
33086             q
33087           }
33088           /^X\(\/\/\)$/{
33089             s//\1/
33090             q
33091           }
33092           /^X\(\/\).*/{
33093             s//\1/
33094             q
33095           }
33096           s/.*/./; q'`
33097       test -d "$as_dir" && break
33098     done
33099     test -z "$as_dirs" || eval "mkdir $as_dirs"
33100   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33101 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33102    { (exit 1); exit 1; }; }; }
33103   ac_builddir=.
33104
33105 case "$ac_dir" in
33106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33107 *)
33108   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33109   # A ".." for each directory in $ac_dir_suffix.
33110   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33111   case $ac_top_builddir_sub in
33112   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33113   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33114   esac ;;
33115 esac
33116 ac_abs_top_builddir=$ac_pwd
33117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33118 # for backward compatibility:
33119 ac_top_builddir=$ac_top_build_prefix
33120
33121 case $srcdir in
33122   .)  # We are building in place.
33123     ac_srcdir=.
33124     ac_top_srcdir=$ac_top_builddir_sub
33125     ac_abs_top_srcdir=$ac_pwd ;;
33126   [\\/]* | ?:[\\/]* )  # Absolute name.
33127     ac_srcdir=$srcdir$ac_dir_suffix;
33128     ac_top_srcdir=$srcdir
33129     ac_abs_top_srcdir=$srcdir ;;
33130   *) # Relative name.
33131     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33132     ac_top_srcdir=$ac_top_build_prefix$srcdir
33133     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33134 esac
33135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33136
33137
33138   case $ac_mode in
33139   :F)
33140   #
33141   # CONFIG_FILE
33142   #
33143
33144   case $INSTALL in
33145   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33146   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33147   esac
33148 _ACEOF
33149
33150 cat >>$CONFIG_STATUS <<\_ACEOF
33151 # If the template does not know about datarootdir, expand it.
33152 # FIXME: This hack should be removed a few years after 2.60.
33153 ac_datarootdir_hack=; ac_datarootdir_seen=
33154
33155 case `sed -n '/datarootdir/ {
33156   p
33157   q
33158 }
33159 /@datadir@/p
33160 /@docdir@/p
33161 /@infodir@/p
33162 /@localedir@/p
33163 /@mandir@/p
33164 ' $ac_file_inputs` in
33165 *datarootdir*) ac_datarootdir_seen=yes;;
33166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33167   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33169 _ACEOF
33170 cat >>$CONFIG_STATUS <<_ACEOF
33171   ac_datarootdir_hack='
33172   s&@datadir@&$datadir&g
33173   s&@docdir@&$docdir&g
33174   s&@infodir@&$infodir&g
33175   s&@localedir@&$localedir&g
33176   s&@mandir@&$mandir&g
33177     s&\\\${datarootdir}&$datarootdir&g' ;;
33178 esac
33179 _ACEOF
33180
33181 # Neutralize VPATH when `$srcdir' = `.'.
33182 # Shell code in configure.ac might set extrasub.
33183 # FIXME: do we really want to maintain this feature?
33184 cat >>$CONFIG_STATUS <<_ACEOF
33185   sed "$ac_vpsub
33186 $extrasub
33187 _ACEOF
33188 cat >>$CONFIG_STATUS <<\_ACEOF
33189 :t
33190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33191 s&@configure_input@&$configure_input&;t t
33192 s&@top_builddir@&$ac_top_builddir_sub&;t t
33193 s&@srcdir@&$ac_srcdir&;t t
33194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33195 s&@top_srcdir@&$ac_top_srcdir&;t t
33196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33197 s&@builddir@&$ac_builddir&;t t
33198 s&@abs_builddir@&$ac_abs_builddir&;t t
33199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33200 s&@INSTALL@&$ac_INSTALL&;t t
33201 $ac_datarootdir_hack
33202 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33203
33204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33205   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33206   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33207   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33208 which seems to be undefined.  Please make sure it is defined." >&5
33209 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33210 which seems to be undefined.  Please make sure it is defined." >&2;}
33211
33212   rm -f "$tmp/stdin"
33213   case $ac_file in
33214   -) cat "$tmp/out"; rm -f "$tmp/out";;
33215   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33216   esac
33217  ;;
33218   :H)
33219   #
33220   # CONFIG_HEADER
33221   #
33222 _ACEOF
33223
33224 # Transform confdefs.h into a sed script `conftest.defines', that
33225 # substitutes the proper values into config.h.in to produce config.h.
33226 rm -f conftest.defines conftest.tail
33227 # First, append a space to every undef/define line, to ease matching.
33228 echo 's/$/ /' >conftest.defines
33229 # Then, protect against being on the right side of a sed subst, or in
33230 # an unquoted here document, in config.status.  If some macros were
33231 # called several times there might be several #defines for the same
33232 # symbol, which is useless.  But do not sort them, since the last
33233 # AC_DEFINE must be honored.
33234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33235 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33236 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33237 # PARAMS is the parameter list in the macro definition--in most cases, it's
33238 # just an empty string.
33239 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33240 ac_dB='\\)[      (].*,\\1define\\2'
33241 ac_dC=' '
33242 ac_dD=' ,'
33243
33244 uniq confdefs.h |
33245   sed -n '
33246         t rset
33247         :rset
33248         s/^[     ]*#[    ]*define[       ][      ]*//
33249         t ok
33250         d
33251         :ok
33252         s/[\\&,]/\\&/g
33253         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33254         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33255   ' >>conftest.defines
33256
33257 # Remove the space that was appended to ease matching.
33258 # Then replace #undef with comments.  This is necessary, for
33259 # example, in the case of _POSIX_SOURCE, which is predefined and required
33260 # on some systems where configure will not decide to define it.
33261 # (The regexp can be short, since the line contains either #define or #undef.)
33262 echo 's/ $//
33263 s,^[     #]*u.*,/* & */,' >>conftest.defines
33264
33265 # Break up conftest.defines:
33266 ac_max_sed_lines=50
33267
33268 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33269 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33270 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33271 # et cetera.
33272 ac_in='$ac_file_inputs'
33273 ac_out='"$tmp/out1"'
33274 ac_nxt='"$tmp/out2"'
33275
33276 while :
33277 do
33278   # Write a here document:
33279     cat >>$CONFIG_STATUS <<_ACEOF
33280     # First, check the format of the line:
33281     cat >"\$tmp/defines.sed" <<\\CEOF
33282 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33283 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33284 b
33285 :def
33286 _ACEOF
33287   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33288   echo 'CEOF
33289     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33290   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33291   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33292   grep . conftest.tail >/dev/null || break
33293   rm -f conftest.defines
33294   mv conftest.tail conftest.defines
33295 done
33296 rm -f conftest.defines conftest.tail
33297
33298 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33299 cat >>$CONFIG_STATUS <<\_ACEOF
33300   if test x"$ac_file" != x-; then
33301     echo "/* $configure_input  */" >"$tmp/config.h"
33302     cat "$ac_result" >>"$tmp/config.h"
33303     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33304       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33305 echo "$as_me: $ac_file is unchanged" >&6;}
33306     else
33307       rm -f $ac_file
33308       mv "$tmp/config.h" $ac_file
33309     fi
33310   else
33311     echo "/* $configure_input  */"
33312     cat "$ac_result"
33313   fi
33314   rm -f "$tmp/out12"
33315  ;;
33316
33317   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33318 echo "$as_me: executing $ac_file commands" >&6;}
33319  ;;
33320   esac
33321
33322
33323   case $ac_file$ac_mode in
33324     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33325    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33326     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33327    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33328     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33329    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33330     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33331    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33332     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33333    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33334     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33335    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33336     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33337    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33338     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33339    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33340     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33341    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33342     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33343    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33344     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33345    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33346     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33347    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33348
33349   esac
33350 done # for ac_tag
33351
33352
33353 { (exit 0); exit 0; }
33354 _ACEOF
33355 chmod +x $CONFIG_STATUS
33356 ac_clean_files=$ac_clean_files_save
33357
33358
33359 # configure is writing to config.log, and then calls config.status.
33360 # config.status does its own redirection, appending to config.log.
33361 # Unfortunately, on DOS this fails, as config.log is still kept open
33362 # by configure, so config.status won't be able to write to it; its
33363 # output is simply discarded.  So we exec the FD to /dev/null,
33364 # effectively closing config.log, so it can be properly (re)opened and
33365 # appended to by config.status.  When coming back to configure, we
33366 # need to make the FD available again.
33367 if test "$no_create" != yes; then
33368   ac_cs_success=:
33369   ac_config_status_args=
33370   test "$silent" = yes &&
33371     ac_config_status_args="$ac_config_status_args --quiet"
33372   exec 5>/dev/null
33373   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33374   exec 5>>config.log
33375   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33376   # would make configure fail if this is the last instruction.
33377   $ac_cs_success || { (exit 1); exit 1; }
33378 fi
33379
33380 #
33381 # CONFIG_SUBDIRS section.
33382 #
33383 if test "$no_recursion" != yes; then
33384
33385   # Remove --cache-file and --srcdir arguments so they do not pile up.
33386   ac_sub_configure_args=
33387   ac_prev=
33388   eval "set x $ac_configure_args"
33389   shift
33390   for ac_arg
33391   do
33392     if test -n "$ac_prev"; then
33393       ac_prev=
33394       continue
33395     fi
33396     case $ac_arg in
33397     -cache-file | --cache-file | --cache-fil | --cache-fi \
33398     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33399       ac_prev=cache_file ;;
33400     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33401     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33402     | --c=*)
33403       ;;
33404     --config-cache | -C)
33405       ;;
33406     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33407       ac_prev=srcdir ;;
33408     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33409       ;;
33410     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33411       ac_prev=prefix ;;
33412     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33413       ;;
33414     *)
33415       case $ac_arg in
33416       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33417       esac
33418       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33419     esac
33420   done
33421
33422   # Always prepend --prefix to ensure using the same prefix
33423   # in subdir configurations.
33424   ac_arg="--prefix=$prefix"
33425   case $ac_arg in
33426   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33427   esac
33428   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33429
33430   # Pass --silent
33431   if test "$silent" = yes; then
33432     ac_sub_configure_args="--silent $ac_sub_configure_args"
33433   fi
33434
33435   ac_popdir=`pwd`
33436   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33437
33438     # Do not complain, so a configure script can configure whichever
33439     # parts of a large source tree are present.
33440     test -d "$srcdir/$ac_dir" || continue
33441
33442     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33443     echo "$as_me:$LINENO: $ac_msg" >&5
33444     echo "$ac_msg" >&6
33445     { as_dir="$ac_dir"
33446   case $as_dir in #(
33447   -*) as_dir=./$as_dir;;
33448   esac
33449   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33450     as_dirs=
33451     while :; do
33452       case $as_dir in #(
33453       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33454       *) as_qdir=$as_dir;;
33455       esac
33456       as_dirs="'$as_qdir' $as_dirs"
33457       as_dir=`$as_dirname -- "$as_dir" ||
33458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33459          X"$as_dir" : 'X\(//\)[^/]' \| \
33460          X"$as_dir" : 'X\(//\)$' \| \
33461          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33462 echo X"$as_dir" |
33463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33464             s//\1/
33465             q
33466           }
33467           /^X\(\/\/\)[^/].*/{
33468             s//\1/
33469             q
33470           }
33471           /^X\(\/\/\)$/{
33472             s//\1/
33473             q
33474           }
33475           /^X\(\/\).*/{
33476             s//\1/
33477             q
33478           }
33479           s/.*/./; q'`
33480       test -d "$as_dir" && break
33481     done
33482     test -z "$as_dirs" || eval "mkdir $as_dirs"
33483   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33485    { (exit 1); exit 1; }; }; }
33486     ac_builddir=.
33487
33488 case "$ac_dir" in
33489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33490 *)
33491   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33492   # A ".." for each directory in $ac_dir_suffix.
33493   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33494   case $ac_top_builddir_sub in
33495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33497   esac ;;
33498 esac
33499 ac_abs_top_builddir=$ac_pwd
33500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33501 # for backward compatibility:
33502 ac_top_builddir=$ac_top_build_prefix
33503
33504 case $srcdir in
33505   .)  # We are building in place.
33506     ac_srcdir=.
33507     ac_top_srcdir=$ac_top_builddir_sub
33508     ac_abs_top_srcdir=$ac_pwd ;;
33509   [\\/]* | ?:[\\/]* )  # Absolute name.
33510     ac_srcdir=$srcdir$ac_dir_suffix;
33511     ac_top_srcdir=$srcdir
33512     ac_abs_top_srcdir=$srcdir ;;
33513   *) # Relative name.
33514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33515     ac_top_srcdir=$ac_top_build_prefix$srcdir
33516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33517 esac
33518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33519
33520
33521     cd "$ac_dir"
33522
33523     # Check for guested configure; otherwise get Cygnus style configure.
33524     if test -f "$ac_srcdir/configure.gnu"; then
33525       ac_sub_configure=$ac_srcdir/configure.gnu
33526     elif test -f "$ac_srcdir/configure"; then
33527       ac_sub_configure=$ac_srcdir/configure
33528     elif test -f "$ac_srcdir/configure.in"; then
33529       # This should be Cygnus configure.
33530       ac_sub_configure=$ac_aux_dir/configure
33531     else
33532       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33534       ac_sub_configure=
33535     fi
33536
33537     # The recursion is here.
33538     if test -n "$ac_sub_configure"; then
33539       # Make the cache file name correct relative to the subdirectory.
33540       case $cache_file in
33541       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33542       *) # Relative name.
33543         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33544       esac
33545
33546       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33547 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33548       # The eval makes quoting arguments work.
33549       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33550            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33551         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33552 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33553    { (exit 1); exit 1; }; }
33554     fi
33555
33556     cd "$ac_popdir"
33557   done
33558 fi
33559